{
 "id": "ads-performance-tracker",
 "file": "softwiro-ads-performance-tracker.xlsx",
 "title": "شيت متابعة أداء الحملات الإعلانية",
 "language": "ar",
 "direction": "rtl",
 "how_it_works": "White cells are typed input; cells whose kind is \"formula\" are calculated and must not be overwritten. Add one record per row under the header row of a record table, keeping the columns in order.",
 "sheets": [
  {
   "name": "ابدأ هنا",
   "formula_cells": 0
  },
  {
   "name": "الإعدادات",
   "formula_cells": 1,
   "settings": [
    {
     "label": "اسم النشاط",
     "cell": "B4",
     "value": "متجر النور للأدوات المنزلية (مثال)"
    },
    {
     "label": "تاريخ اليوم",
     "cell": "B5",
     "value": "2026-11-13"
    },
    {
     "label": "أعلى تكلفة تحويل CPA مقبولة (جنيه) *",
     "cell": "B7",
     "value": 150
    },
    {
     "label": "أقل ROAS مقبول *",
     "cell": "B8",
     "value": 3
    },
    {
     "label": "أقل CTR مقبول *",
     "cell": "B9",
     "value": 0.01
    }
   ],
   "results": [
    {
     "label": "بداية الأسبوع الحالي (السبت)",
     "cell": "B6",
     "formula": "=B5-MOD(B5,7)"
    }
   ]
  },
  {
   "name": "اليوميات",
   "formula_cells": 13500,
   "record_tables": [
    {
     "header_row": 5,
     "first_record_row": 6,
     "sample_rows_filled": 292,
     "capacity_last_row": 1505,
     "columns": [
      {
       "column": "A",
       "header": "التاريخ",
       "kind": "input",
       "examples": [
        "2026-09-12",
        "2026-09-12",
        "2026-09-12"
       ]
      },
      {
       "column": "B",
       "header": "المنصة",
       "kind": "input",
       "examples": [
        "Meta",
        "Google Ads",
        "TikTok"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$13:$A$19"
       }
      },
      {
       "column": "C",
       "header": "الحملة",
       "kind": "input",
       "examples": [
        "عروض الجمعة البيضاء",
        "بحث - أسماء المنتجات",
        "تيك توك - فيديوهات الوعي"
       ],
       "allowed_values": {
        "from_range": "'الإعدادات'!$A$23:$A$42"
       }
      },
      {
       "column": "D",
       "header": "الإنفاق (جنيه)",
       "kind": "input",
       "examples": [
        400,
        400,
        180
       ]
      },
      {
       "column": "E",
       "header": "مرات الظهور",
       "kind": "input",
       "examples": [
        7238,
        3430,
        5352
       ]
      },
      {
       "column": "F",
       "header": "النقرات",
       "kind": "input",
       "examples": [
        118,
        172,
        35
       ]
      },
      {
       "column": "G",
       "header": "التحويلات",
       "kind": "input",
       "examples": [
        4,
        7,
        0
       ]
      },
      {
       "column": "H",
       "header": "الإيراد (جنيه)",
       "kind": "input",
       "examples": [
        2774,
        5276,
        0
       ]
      },
      {
       "column": "I",
       "header": "CTR",
       "kind": "formula",
       "formula_row_1": "=IF(N(E6)>0,F6/E6,\"\")"
      },
      {
       "column": "J",
       "header": "CPC",
       "kind": "formula",
       "formula_row_1": "=IF(N(F6)>0,D6/F6,\"\")"
      },
      {
       "column": "K",
       "header": "CPM",
       "kind": "formula",
       "formula_row_1": "=IF(N(E6)>0,D6/E6*1000,\"\")"
      },
      {
       "column": "L",
       "header": "CVR",
       "kind": "formula",
       "formula_row_1": "=IF(N(F6)>0,G6/F6,\"\")"
      },
      {
       "column": "M",
       "header": "CPA",
       "kind": "formula",
       "formula_row_1": "=IF(N(G6)>0,D6/G6,\"\")"
      },
      {
       "column": "N",
       "header": "ROAS",
       "kind": "formula",
       "formula_row_1": "=IF(N(D6)>0,H6/D6,\"\")"
      },
      {
       "column": "O",
       "header": "بداية الأسبوع",
       "kind": "formula",
       "formula_row_1": "=IF(ISNUMBER(A6),A6-MOD(A6,7),\"\")"
      },
      {
       "column": "P",
       "header": "تنبيه الأداء",
       "kind": "formula",
       "formula_row_1": "=IF(N(D6)=0,\"\",IF(AND(N(G6)=0,D6>='الإعدادات'!$B$7),\"إنفاق بلا تحويلات\",IF(AND(N(G6)>0,N(M6)>'الإعدادات'!$B$7),\"CPA أعلى من الهدف\",IF(N(N6)<'الإعدادات'!$B$8,\"ROAS أقل من الهدف\",IF(AND(N(E6)>0,N(I6)<'الإعدادات'!$B$9),\"CTR أقل من الحد\",\"\")))))"
      },
      {
       "column": "Q",
       "header": "تنبيه البيانات",
       "kind": "formula",
       "formula_row_1": "=IF(AND(A6=\"\",B6&\"\"=\"\",C6&\"\"=\"\",D6=\"\"),\"\",IF(NOT(ISNUMBER(A6)),\"التاريخ ناقص\",IF(COUNTIF('الإعدادات'!$A$13:$A$19,B6&\"\")=0,\"منصة غير مسجلة\",IF(COUNTIF('الإعدادات'!$A$23:$A$42,C6&\"\")=0,\"حملة غير مسجلة\",IF(N(F6)>N(E6),\"النقرات أكثر من المرات الظاهرة\",\"\")))))"
      }
     ]
    }
   ]
  },
  {
   "name": "الملخص",
   "formula_cells": 593,
   "record_tables": [
    {
     "header_row": 39,
     "first_record_row": 40,
     "sample_rows_filled": 0,
     "capacity_last_row": 85,
     "columns": [
      {
       "column": "A",
       "header": "المنصة",
       "kind": "formula",
       "formula_row_1": "=IF('الإعدادات'!A13&\"\"=\"\",\"\",'الإعدادات'!A13)"
      },
      {
       "column": "B",
       "header": "الإنفاق",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",SUMIFS('اليوميات'!$D$6:$D$1505,'اليوميات'!$B$6:$B$1505,$A40))"
      },
      {
       "column": "C",
       "header": "مرات الظهور",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",SUMIFS('اليوميات'!$E$6:$E$1505,'اليوميات'!$B$6:$B$1505,$A40))"
      },
      {
       "column": "D",
       "header": "النقرات",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",SUMIFS('اليوميات'!$F$6:$F$1505,'اليوميات'!$B$6:$B$1505,$A40))"
      },
      {
       "column": "E",
       "header": "التحويلات",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",SUMIFS('اليوميات'!$G$6:$G$1505,'اليوميات'!$B$6:$B$1505,$A40))"
      },
      {
       "column": "F",
       "header": "الإيراد",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",SUMIFS('اليوميات'!$H$6:$H$1505,'اليوميات'!$B$6:$B$1505,$A40))"
      },
      {
       "column": "G",
       "header": "CTR",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(C40)>0,D40/C40,\"\"))"
      },
      {
       "column": "H",
       "header": "CPC",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(D40)>0,B40/D40,\"\"))"
      },
      {
       "column": "I",
       "header": "CPM",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(C40)>0,B40/C40*1000,\"\"))"
      },
      {
       "column": "J",
       "header": "CVR",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(D40)>0,E40/D40,\"\"))"
      },
      {
       "column": "K",
       "header": "CPA",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(E40)>0,B40/E40,\"\"))"
      },
      {
       "column": "L",
       "header": "ROAS",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(B40)>0,F40/B40,\"\"))"
      },
      {
       "column": "M",
       "header": "تنبيه CPA",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(B40)=0,\"\",IF(N(E40)=0,\"بلا تحويلات\",IF(K40>'الإعدادات'!$B$7,\"أعلى من الهدف\",\"\"))))"
      },
      {
       "column": "N",
       "header": "تنبيه ROAS",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(B40)=0,\"\",IF(L40<'الإعدادات'!$B$8,\"أقل من الهدف\",\"\")))"
      },
      {
       "column": "O",
       "header": "تنبيه CTR",
       "kind": "formula",
       "formula_row_1": "=IF($A40=\"\",\"\",IF(N(C40)=0,\"\",IF(G40<'الإعدادات'!$B$9,\"أقل من الحد\",\"\")))"
      }
     ]
    }
   ],
   "results": [
    {
     "label": "النشاط",
     "cell": "B5",
     "formula": "='الإعدادات'!B4&\"\""
    },
    {
     "label": "الأهداف: CPA / ROAS / CTR",
     "cell": "B6",
     "formula": "='الإعدادات'!$B$7&\" / \"&'الإعدادات'!$B$8&\" / \"&ROUND('الإعدادات'!$B$9*100,2)&\"%\""
    },
    {
     "label": "الإنفاق (جنيه)",
     "cell": "B8",
     "formula": "=SUM('اليوميات'!$D$6:$D$1505)"
    },
    {
     "label": "الإيراد (جنيه)",
     "cell": "B9",
     "formula": "=SUM('اليوميات'!$H$6:$H$1505)"
    },
    {
     "label": "مرات الظهور",
     "cell": "B10",
     "formula": "=SUM('اليوميات'!$E$6:$E$1505)"
    },
    {
     "label": "النقرات",
     "cell": "B11",
     "formula": "=SUM('اليوميات'!$F$6:$F$1505)"
    },
    {
     "label": "التحويلات",
     "cell": "B12",
     "formula": "=SUM('اليوميات'!$G$6:$G$1505)"
    },
    {
     "label": "CTR = النقرات ÷ المرات",
     "cell": "B13",
     "formula": "=IF(B10>0,B11/B10,\"\")"
    },
    {
     "label": "CPC = الإنفاق ÷ النقرات",
     "cell": "B14",
     "formula": "=IF(B11>0,B8/B11,\"\")"
    },
    {
     "label": "CPM = الإنفاق ÷ المرات × 1000",
     "cell": "B15",
     "formula": "=IF(B10>0,B8/B10*1000,\"\")"
    },
    {
     "label": "CVR = التحويلات ÷ النقرات",
     "cell": "B16",
     "formula": "=IF(B11>0,B12/B11,\"\")"
    },
    {
     "label": "CPA = الإنفاق ÷ التحويلات",
     "cell": "B17",
     "formula": "=IF(B12>0,B8/B12,\"\")"
    },
    {
     "label": "ROAS = الإيراد ÷ الإنفاق",
     "cell": "B18",
     "formula": "=IF(B8>0,B9/B8,\"\")"
    },
    {
     "label": "الإيراد ناقص الإنفاق (جنيه)",
     "cell": "B19",
     "formula": "=B9-B8"
    },
    {
     "label": "سطور بها تنبيه بيانات في «اليوميات»",
     "cell": "B20",
     "formula": "=COUNTIF('اليوميات'!$Q$6:$Q$1505,\"?*\")"
    },
    {
     "label": "منصات تكلفة التحويل فيها فوق الهدف أو بلا تحويلات",
     "cell": "B23",
     "formula": "=COUNTIF($M$40:$M$46,\"?*\")"
    },
    {
     "label": "منصات ROAS فيها أقل من الهدف",
     "cell": "B24",
     "formula": "=COUNTIF($N$40:$N$46,\"?*\")"
    },
    {
     "label": "حملات تكلفة التحويل فيها فوق الهدف أو بلا تحويلات",
     "cell": "B25",
     "formula": "=COUNTIF($M$51:$M$70,\"?*\")"
    },
    {
     "label": "حملات ROAS فيها أقل من الهدف",
     "cell": "B26",
     "formula": "=COUNTIF($N$51:$N$70,\"?*\")"
    },
    {
     "label": "حملات CTR فيها أقل من الحد",
     "cell": "B27",
     "formula": "=COUNTIF($O$51:$O$70,\"?*\")"
    },
    {
     "label": "أفضل حملة",
     "cell": "B31",
     "formula": "=IF(COUNT($L$51:$L$70)=0,\"\",INDEX($A$51:$A$70,MATCH(MAX($L$51:$L$70),$L$51:$L$70,0)))"
    },
    {
     "label": "ROAS الأفضل",
     "cell": "B32",
     "formula": "=IF(COUNT($L$51:$L$70)=0,\"\",MAX($L$51:$L$70))"
    },
    {
     "label": "إنفاقها (جنيه)",
     "cell": "B33",
     "formula": "=IF(COUNT($L$51:$L$70)=0,\"\",INDEX($B$51:$B$70,MATCH(MAX($L$51:$L$70),$L$51:$L$70,0)))"
    },
    {
     "label": "أسوأ حملة",
     "cell": "B34",
     "formula": "=IF(COUNT($L$51:$L$70)=0,\"\",INDEX($A$51:$A$70,MATCH(MIN($L$51:$L$70),$L$51:$L$70,0)))"
    },
    {
     "label": "ROAS الأسوأ",
     "cell": "B35",
     "formula": "=IF(COUNT($L$51:$L$70)=0,\"\",MIN($L$51:$L$70))"
    },
    {
     "label": "إنفاقها (جنيه)",
     "cell": "B36",
     "formula": "=IF(COUNT($L$51:$L$70)=0,\"\",INDEX($B$51:$B$70,MATCH(MIN($L$51:$L$70),$L$51:$L$70,0)))"
    }
   ]
  },
  {
   "name": "لماذا ما زلت على إكسل؟",
   "formula_cells": 0
  }
 ]
}