تفضيلات الخصوصية

الوظائف الضرورية

مطلوبة للأمان ووظائف الموقع الأساسية.

مفعّلة دائمًا

تشخيصات Landing وإعادة العرض مع إخفاء المحتوى

يقيس الزيارات العامة والمغادرة قبل الإكمال والتفاعلات مع روابط التسجيل باستخدام معرّف مجهول الهوية خاص بعلامة التبويب فقط، دون ربطه بحساب. تُخفى جميع النصوص وتُحظر النماذج.

تحليلات الاستخدام الاختيارية

هل تسمح بتحليلات استخدام PostHog؟ يمكنك تغيير اختيارك في أي وقت من التذييل.

السماح أيضاً بتسجيل الجلسات لإعادة عرضها على هذا الموقع العام

تُظهر إعادة عرض الجلسات في الوضع الاختياري عبر المواقع الصفحات العامة والتفاعلات، مع إخفاء المدخلات والمحتوى الخاص. إعادة عرض الجلسات في التطبيق خيار مستقل.

يتطلب التحليلات الاختيارية؛ إعادة العرض في هذا الوضع عبر المواقع معطّلة افتراضيًا. يعمل وضع Landing أعلاه بشكل منفصل.

لا تفعّل تحليلات المتصفح تحليلات الحساب.

يُحمّل البحث عند استخدامه فقط. تصفّح جميع الفئات أدناه.

أداة MCP

الاستعلام عن إحصاءات الإعلانات

sosoapi_ads_insights_query

جلب بيانات الأداء الإعلاني المدفوع الرسمية بحدود واضحة مع تحديد التواريخ والمنطقة الزمنية والعملة وفترة الإسناد وإجراء التحويل. تظل المقاييس المفقودة مفقودة.

اقرأ بصيغة Markdown

الملفات التعريفية ووسائل النقل

الملفات التعريفية: full · وسائل النقل: stdio, http

اختر core أو full للأدوات التي يراها عميلك؛ لا يغيّر ذلك أذوناته. يحتاج رفع الملفات المحلية stdio ولا يتاح بـ HTTP. اضبط SOSOAPI_OUTPUT_SCHEMAS=1 لمخططات المخرجات بالاكتشاف. النتائج منظّمة بهذا الإعداد أوبدونه.

الأذونات والآثار الجانبية

تساعد الشروح العملاء على وصف الأداة. يظل كل استدعاء يفحص مصادقة المستخدم ودوره ووصوله إلى المورد وتفويض الإمكانات.

{
  "readOnlyHint": true,
  "destructiveHint": false,
  "idempotentHint": true,
  "openWorldHint": true
}

حقول الإدخال

تعني «مطلوب» داخل الكائن الأب والفرع المختار. الحقل الابن المطلوب لا يجعل الأب الاختياري مطلوباً. نُسخت القواعد وأسماء الحقول أدناه من العقد.

حقول الإدخال
الحقل / الفرعالنوع / مطلوبالقيود
$objectمطلوب في العنصر الأب
  • additionalProperties: false
workspace_idstringمطلوب في العنصر الأب
  • format: "uuid"
advertising_account_idstringمطلوب في العنصر الأب
  • format: "uuid"
levelstringمطلوب في العنصر الأب
  • enum: ["campaign","adset","ad"]
start_datestringمطلوب في العنصر الأب
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
end_datestringمطلوب في العنصر الأب
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
action_attribution_windowsarrayمطلوب في العنصر الأب
  • minItems: 1
  • maxItems: 1
action_attribution_windows[]stringاختياري / عنصر
  • enum: ["1d_click","7d_click","1d_view"]
action_report_timestringمطلوب في العنصر الأب
  • enum: ["impression","conversion"]
conversion_action_typestringمطلوب في العنصر الأب
  • pattern: "^[a-z][a-z0-9_.]{0,99}$"
revenue_action_typestringمطلوب في العنصر الأب
  • pattern: "^[a-z][a-z0-9_.]{0,99}$"
afterstringاختياري / عنصر
  • maxLength: 2048
limitintegerاختياري / عنصر
  • minimum: 1
  • maximum: 50
مخطط JSON Schema الكامل
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "advertising_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "level": {
      "type": "string",
      "enum": [
        "campaign",
        "adset",
        "ad"
      ]
    },
    "start_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "end_date": {
      "type": "string",
      "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
    },
    "action_attribution_windows": {
      "minItems": 1,
      "maxItems": 1,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "1d_click",
          "7d_click",
          "1d_view"
        ]
      }
    },
    "action_report_time": {
      "type": "string",
      "enum": [
        "impression",
        "conversion"
      ]
    },
    "conversion_action_type": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_.]{0,99}$"
    },
    "revenue_action_type": {
      "type": "string",
      "pattern": "^[a-z][a-z0-9_.]{0,99}$"
    },
    "after": {
      "type": "string",
      "maxLength": 2048
    },
    "limit": {
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "workspace_id",
    "advertising_account_id",
    "level",
    "start_date",
    "end_date",
    "action_attribution_windows",
    "action_report_time",
    "conversion_action_type",
    "revenue_action_type"
  ],
  "additionalProperties": false
}

مخرجات منظّمة

يصف المخطط structuredContent في نتيجة أداة ناجحة. تشمل استجابة MCP أيضاً content وقد تضبط isError عند الفشل. للنشر، اقرأ النتيجة النهائية بدلاً من اعتبار القبول أوالنص تأكيداً. تشرح عملية API المرتبطة الأذونات وقواعد المحاولة.

تعني «مطلوب» داخل الكائن الأب والفرع المختار. الحقل الابن المطلوب لا يجعل الأب الاختياري مطلوباً. نُسخت القواعد وأسماء الحقول أدناه من العقد.

مخرجات منظّمة
الحقل / الفرعالنوع / مطلوبالقيود
$objectمطلوب في العنصر الأب
  • additionalProperties: false
contract_versionstringمطلوب في العنصر الأب
  • const: "ad-performance/v1"
source_idstringمطلوب في العنصر الأب
  • maxLength: 100
source_sha256stringمطلوب في العنصر الأب
  • pattern: "^[a-f0-9]{64}$"
identity_verificationstringمطلوب في العنصر الأب
  • enum: ["customer_supplied","accepted_provider_grant"]
currencystringمطلوب في العنصر الأب
  • pattern: "^[A-Z]{3}$"
timezonestringمطلوب في العنصر الأب
  • maxLength: 100
selectionobjectمطلوب في العنصر الأب
  • additionalProperties: false
selection.provider_api_versionstringمطلوب في العنصر الأب
  • const: "v26.0"
selection.provider_account_idstringمطلوب في العنصر الأب
  • pattern: "^[1-9]\\d{1,24}$"
selection.currencystringمطلوب في العنصر الأب
  • pattern: "^[A-Z]{3}$"
selection.timezonestringمطلوب في العنصر الأب
  • maxLength: 100
selection.levelstringمطلوب في العنصر الأب
  • enum: ["campaign","adset","ad"]
selection.start_datestringمطلوب في العنصر الأب
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
selection.end_datestringمطلوب في العنصر الأب
  • pattern: "^\\d{4}-\\d{2}-\\d{2}$"
selection.action_attribution_windowsarrayمطلوب في العنصر الأب
  • minItems: 1
  • maxItems: 1
selection.action_attribution_windows[]stringاختياري / عنصر
  • enum: ["1d_click","7d_click","1d_view"]
selection.action_report_timestringمطلوب في العنصر الأب
  • enum: ["impression","conversion"]
selection.conversion_action_typestringمطلوب في العنصر الأب
  • maxLength: 100
selection.revenue_action_typestringمطلوب في العنصر الأب
  • maxLength: 100
completebooleanمطلوب في العنصر الأب—
rowsarrayمطلوب في العنصر الأب
  • maxItems: 500
rows[]objectاختياري / عنصر
  • additionalProperties: false
rows[].row_idstringمطلوب في العنصر الأب
  • maxLength: 100
rows[].metricsobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.spendobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.spend.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.spend.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.spend.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.spend.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.spend.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.spend.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.spend.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.spend.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.spend.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.spend.input_refs[]stringاختياري / عنصر
  • maxLength: 300
rows[].metrics.clicksobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.clicks.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.clicks.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.clicks.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.clicks.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.clicks.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.clicks.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.clicks.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.clicks.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.clicks.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.clicks.input_refs[]stringاختياري / عنصر
  • maxLength: 300
rows[].metrics.conversionsobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.conversions.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.conversions.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.conversions.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.conversions.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.conversions.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.conversions.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.conversions.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.conversions.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.conversions.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.conversions.input_refs[]stringاختياري / عنصر
  • maxLength: 300
rows[].metrics.attributed_revenueobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.attributed_revenue.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.attributed_revenue.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.attributed_revenue.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.attributed_revenue.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.attributed_revenue.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.attributed_revenue.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.attributed_revenue.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.attributed_revenue.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.attributed_revenue.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.attributed_revenue.input_refs[]stringاختياري / عنصر
  • maxLength: 300
rows[].metrics.cpcobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.cpc.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.cpc.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.cpc.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.cpc.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.cpc.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.cpc.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.cpc.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.cpc.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.cpc.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.cpc.input_refs[]stringاختياري / عنصر
  • maxLength: 300
rows[].metrics.cpaobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.cpa.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.cpa.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.cpa.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.cpa.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.cpa.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.cpa.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.cpa.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.cpa.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.cpa.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.cpa.input_refs[]stringاختياري / عنصر
  • maxLength: 300
rows[].metrics.attributed_roasobjectمطلوب في العنصر الأب
  • additionalProperties: false
rows[].metrics.attributed_roas.valuestring | nullمطلوب في العنصر الأب—
rows[].metrics.attributed_roas.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
rows[].metrics.attributed_roas.valueanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.attributed_roas.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
rows[].metrics.attributed_roas.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
rows[].metrics.attributed_roas.reasonstring | nullمطلوب في العنصر الأب—
rows[].metrics.attributed_roas.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
rows[].metrics.attributed_roas.reasonanyOf 2nullمطلوب في العنصر الأب—
rows[].metrics.attributed_roas.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
rows[].metrics.attributed_roas.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totalsobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.spendobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.spend.valuestring | nullمطلوب في العنصر الأب—
totals.spend.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.spend.valueanyOf 2nullمطلوب في العنصر الأب—
totals.spend.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.spend.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.spend.reasonstring | nullمطلوب في العنصر الأب—
totals.spend.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.spend.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.spend.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.spend.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totals.clicksobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.clicks.valuestring | nullمطلوب في العنصر الأب—
totals.clicks.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.clicks.valueanyOf 2nullمطلوب في العنصر الأب—
totals.clicks.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.clicks.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.clicks.reasonstring | nullمطلوب في العنصر الأب—
totals.clicks.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.clicks.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.clicks.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.clicks.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totals.conversionsobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.conversions.valuestring | nullمطلوب في العنصر الأب—
totals.conversions.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.conversions.valueanyOf 2nullمطلوب في العنصر الأب—
totals.conversions.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.conversions.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.conversions.reasonstring | nullمطلوب في العنصر الأب—
totals.conversions.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.conversions.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.conversions.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.conversions.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totals.attributed_revenueobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.attributed_revenue.valuestring | nullمطلوب في العنصر الأب—
totals.attributed_revenue.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.attributed_revenue.valueanyOf 2nullمطلوب في العنصر الأب—
totals.attributed_revenue.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.attributed_revenue.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.attributed_revenue.reasonstring | nullمطلوب في العنصر الأب—
totals.attributed_revenue.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.attributed_revenue.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.attributed_revenue.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.attributed_revenue.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totals.cpcobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.cpc.valuestring | nullمطلوب في العنصر الأب—
totals.cpc.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.cpc.valueanyOf 2nullمطلوب في العنصر الأب—
totals.cpc.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.cpc.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.cpc.reasonstring | nullمطلوب في العنصر الأب—
totals.cpc.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.cpc.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.cpc.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.cpc.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totals.cpaobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.cpa.valuestring | nullمطلوب في العنصر الأب—
totals.cpa.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.cpa.valueanyOf 2nullمطلوب في العنصر الأب—
totals.cpa.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.cpa.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.cpa.reasonstring | nullمطلوب في العنصر الأب—
totals.cpa.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.cpa.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.cpa.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.cpa.input_refs[]stringاختياري / عنصر
  • maxLength: 300
totals.attributed_roasobjectمطلوب في العنصر الأب
  • additionalProperties: false
totals.attributed_roas.valuestring | nullمطلوب في العنصر الأب—
totals.attributed_roas.valueanyOf 1stringمطلوب في العنصر الأب
  • pattern: "^\\d{1,24}(?:\\.\\d{1,6})?$"
totals.attributed_roas.valueanyOf 2nullمطلوب في العنصر الأب—
totals.attributed_roas.unitstringمطلوب في العنصر الأب
  • enum: ["currency","count","currency_per_click","currency_per_conversion","ratio"]
totals.attributed_roas.availabilitystringمطلوب في العنصر الأب
  • enum: ["available","missing_input","zero_denominator","incompatible","partial"]
totals.attributed_roas.reasonstring | nullمطلوب في العنصر الأب—
totals.attributed_roas.reasonanyOf 1stringمطلوب في العنصر الأب
  • maxLength: 300
totals.attributed_roas.reasonanyOf 2nullمطلوب في العنصر الأب—
totals.attributed_roas.input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
totals.attributed_roas.input_refs[]stringاختياري / عنصر
  • maxLength: 300
gapsarrayمطلوب في العنصر الأب
  • maxItems: 1000
gaps[]stringاختياري / عنصر
  • maxLength: 300
suggestionsarrayمطلوب في العنصر الأب
  • maxItems: 3
suggestions[]objectاختياري / عنصر
  • additionalProperties: false
suggestions[].rule_idstringمطلوب في العنصر الأب
  • enum: ["supply_revenue","review_comparable_creative_test","complete_coverage"]
suggestions[].rule_versionnumberمطلوب في العنصر الأب
  • const: 1
suggestions[].proposalstringمطلوب في العنصر الأب
  • maxLength: 600
suggestions[].input_refsarrayمطلوب في العنصر الأب
  • maxItems: 2000
suggestions[].input_refs[]stringاختياري / عنصر
  • maxLength: 300
suggestions[].limitationsstringمطلوب في العنصر الأب
  • const: "Observational comparison only; no causal uplift or profitability claim. Human review required."
advertising_account_idstringمطلوب في العنصر الأب
  • format: "uuid"
next_cursorstring | nullمطلوب في العنصر الأب—
next_cursoranyOf 1stringمطلوب في العنصر الأب
  • maxLength: 2048
next_cursoranyOf 2nullمطلوب في العنصر الأب—
مخطط JSON Schema الكامل
{
  "type": "object",
  "properties": {
    "contract_version": {
      "type": "string",
      "const": "ad-performance/v1"
    },
    "source_id": {
      "type": "string",
      "maxLength": 100
    },
    "source_sha256": {
      "type": "string",
      "pattern": "^[a-f0-9]{64}$"
    },
    "identity_verification": {
      "type": "string",
      "enum": [
        "customer_supplied",
        "accepted_provider_grant"
      ]
    },
    "currency": {
      "type": "string",
      "pattern": "^[A-Z]{3}$"
    },
    "timezone": {
      "type": "string",
      "maxLength": 100
    },
    "selection": {
      "type": "object",
      "properties": {
        "provider_api_version": {
          "type": "string",
          "const": "v26.0"
        },
        "provider_account_id": {
          "type": "string",
          "pattern": "^[1-9]\\d{1,24}$"
        },
        "currency": {
          "type": "string",
          "pattern": "^[A-Z]{3}$"
        },
        "timezone": {
          "type": "string",
          "maxLength": 100
        },
        "level": {
          "type": "string",
          "enum": [
            "campaign",
            "adset",
            "ad"
          ]
        },
        "start_date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "end_date": {
          "type": "string",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        },
        "action_attribution_windows": {
          "minItems": 1,
          "maxItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "1d_click",
              "7d_click",
              "1d_view"
            ]
          }
        },
        "action_report_time": {
          "type": "string",
          "enum": [
            "impression",
            "conversion"
          ]
        },
        "conversion_action_type": {
          "type": "string",
          "maxLength": 100
        },
        "revenue_action_type": {
          "type": "string",
          "maxLength": 100
        }
      },
      "required": [
        "provider_api_version",
        "provider_account_id",
        "currency",
        "timezone",
        "level",
        "start_date",
        "end_date",
        "action_attribution_windows",
        "action_report_time",
        "conversion_action_type",
        "revenue_action_type"
      ],
      "additionalProperties": false
    },
    "complete": {
      "type": "boolean"
    },
    "rows": {
      "maxItems": 500,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "row_id": {
            "type": "string",
            "maxLength": 100
          },
          "metrics": {
            "type": "object",
            "properties": {
              "spend": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              },
              "clicks": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              },
              "conversions": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              },
              "attributed_revenue": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              },
              "cpc": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              },
              "cpa": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              },
              "attributed_roas": {
                "type": "object",
                "properties": {
                  "value": {
                    "anyOf": [
                      {
                        "type": "string",
                        "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "unit": {
                    "type": "string",
                    "enum": [
                      "currency",
                      "count",
                      "currency_per_click",
                      "currency_per_conversion",
                      "ratio"
                    ]
                  },
                  "availability": {
                    "type": "string",
                    "enum": [
                      "available",
                      "missing_input",
                      "zero_denominator",
                      "incompatible",
                      "partial"
                    ]
                  },
                  "reason": {
                    "anyOf": [
                      {
                        "type": "string",
                        "maxLength": 300
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "input_refs": {
                    "maxItems": 2000,
                    "type": "array",
                    "items": {
                      "type": "string",
                      "maxLength": 300
                    }
                  }
                },
                "required": [
                  "value",
                  "unit",
                  "availability",
                  "reason",
                  "input_refs"
                ],
                "additionalProperties": false
              }
            },
            "required": [
              "spend",
              "clicks",
              "conversions",
              "attributed_revenue",
              "cpc",
              "cpa",
              "attributed_roas"
            ],
            "additionalProperties": false
          }
        },
        "required": [
          "row_id",
          "metrics"
        ],
        "additionalProperties": false
      }
    },
    "totals": {
      "type": "object",
      "properties": {
        "spend": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        },
        "clicks": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        },
        "conversions": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        },
        "attributed_revenue": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        },
        "cpc": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        },
        "cpa": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        },
        "attributed_roas": {
          "type": "object",
          "properties": {
            "value": {
              "anyOf": [
                {
                  "type": "string",
                  "pattern": "^\\d{1,24}(?:\\.\\d{1,6})?$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "unit": {
              "type": "string",
              "enum": [
                "currency",
                "count",
                "currency_per_click",
                "currency_per_conversion",
                "ratio"
              ]
            },
            "availability": {
              "type": "string",
              "enum": [
                "available",
                "missing_input",
                "zero_denominator",
                "incompatible",
                "partial"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 300
                },
                {
                  "type": "null"
                }
              ]
            },
            "input_refs": {
              "maxItems": 2000,
              "type": "array",
              "items": {
                "type": "string",
                "maxLength": 300
              }
            }
          },
          "required": [
            "value",
            "unit",
            "availability",
            "reason",
            "input_refs"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "spend",
        "clicks",
        "conversions",
        "attributed_revenue",
        "cpc",
        "cpa",
        "attributed_roas"
      ],
      "additionalProperties": false
    },
    "gaps": {
      "maxItems": 1000,
      "type": "array",
      "items": {
        "type": "string",
        "maxLength": 300
      }
    },
    "suggestions": {
      "maxItems": 3,
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "rule_id": {
            "type": "string",
            "enum": [
              "supply_revenue",
              "review_comparable_creative_test",
              "complete_coverage"
            ]
          },
          "rule_version": {
            "type": "number",
            "const": 1
          },
          "proposal": {
            "type": "string",
            "maxLength": 600
          },
          "input_refs": {
            "maxItems": 2000,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 300
            }
          },
          "limitations": {
            "type": "string",
            "const": "Observational comparison only; no causal uplift or profitability claim. Human review required."
          }
        },
        "required": [
          "rule_id",
          "rule_version",
          "proposal",
          "input_refs",
          "limitations"
        ],
        "additionalProperties": false
      }
    },
    "advertising_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "next_cursor": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2048
        },
        {
          "type": "null"
        }
      ]
    }
  },
  "required": [
    "contract_version",
    "source_id",
    "source_sha256",
    "identity_verification",
    "currency",
    "timezone",
    "selection",
    "complete",
    "rows",
    "totals",
    "gaps",
    "suggestions",
    "advertising_account_id",
    "next_cursor"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

مثال لاستدعاء أداة

تستخدم الأمثلة قيماً خيالية مفحوصة بالمخططات. استبدل المعرّفات بالمفوّض لك، والوسائط بأصول جاهزة، والتواريخ بوقت نشر مؤكد. افحص أهلية الحساب قبل الكتابة. لا تُرسل الصفحة طلبات API.

{
  "name": "sosoapi_ads_insights_query",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "advertising_account_id": "11111111-1111-4111-8111-111111111111",
    "level": "campaign",
    "start_date": "2099-01-15",
    "end_date": "2099-01-15",
    "action_attribution_windows": [
      "1d_click"
    ],
    "action_report_time": "impression",
    "conversion_action_type": "example",
    "revenue_action_type": "example"
  }
}

structuredContent

{
  "contract_version": "ad-performance/v1",
  "source_id": "example",
  "source_sha256": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "identity_verification": "customer_supplied",
  "currency": "USD",
  "timezone": "UTC",
  "selection": {
    "provider_api_version": "v26.0",
    "provider_account_id": "12345",
    "currency": "USD",
    "timezone": "UTC",
    "level": "campaign",
    "start_date": "2099-01-15",
    "end_date": "2099-01-15",
    "action_attribution_windows": [
      "1d_click"
    ],
    "action_report_time": "impression",
    "conversion_action_type": "example",
    "revenue_action_type": "example"
  },
  "complete": false,
  "rows": [],
  "totals": {
    "spend": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    },
    "clicks": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    },
    "conversions": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    },
    "attributed_revenue": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    },
    "cpc": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    },
    "cpa": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    },
    "attributed_roas": {
      "value": null,
      "unit": "currency",
      "availability": "available",
      "reason": null,
      "input_refs": []
    }
  },
  "gaps": [],
  "suggestions": [],
  "advertising_account_id": "11111111-1111-4111-8111-111111111111",
  "next_cursor": null
}
تثبيت MCP أو ربطه