गोपनीयता प्राथमिकताएँ

आवश्यक सुविधाएँ

सुरक्षा और साइट की बुनियादी सुविधाओं के लिए आवश्यक।

हमेशा चालू

Landing डायग्नोस्टिक्स और छिपी सामग्री वाला रीप्ले

केवल इस टैब के अनाम ID से सार्वजनिक विज़िट, बीच में छोड़ने और साइनअप लिंक के साथ इंटरैक्शन को मापता है, बिना खाते से जोड़े। सारा टेक्स्ट छिपाया जाता है और फ़ॉर्म ब्लॉक किए जाते हैं।

वैकल्पिक उपयोग एनालिटिक्स

PostHog उपयोग एनालिटिक्स की अनुमति दें? फ़ुटर में कभी भी अपना चुनाव बदलें।

इस सार्वजनिक वेबसाइट पर सत्र रीप्ले की भी अनुमति दें

वैकल्पिक क्रॉस-साइट मोड के रीप्ले में इनपुट और निजी कंटेंट छिपाकर सार्वजनिक पेज और इंटरैक्शन दिखाए जाते हैं। App रीप्ले एक अलग चुनाव है।

वैकल्पिक एनालिटिक्स आवश्यक है; इस क्रॉस-साइट मोड में रीप्ले डिफ़ॉल्ट रूप से बंद रहता है। ऊपर दिया गया Landing मोड अलग से चलता है।

ब्राउज़र विश्लेषण से खाते का विश्लेषण चालू नहीं होता।

खोज केवल इस्तेमाल करने पर लोड होती है। नीचे सभी श्रेणियाँ देखें।

MCP टूल

विज्ञापन कार्रवाई तैयार करें

sosoapi_ads_actions_prepare

campaign/adset/ad/creative/saved-audience का सटीक निर्देश और समीक्षा किए गए प्रभाव स्थिर करें। नई चीज़ें PAUSED स्थिति में शुरू होती हैं; सक्रियण या बजट पर प्रभाव के लिए अलग वास्तविक निष्पादन अधिकार आवश्यक है।

Markdown में पढ़ें

प्रोफ़ाइल और ट्रांसपोर्ट

प्रोफ़ाइल: full · ट्रांसपोर्ट: stdio, http

क्लाइंट में दिखने वाले टूल के लिए core या full चुनें; इससे अनुमतियाँ नहीं बदलतीं। लोकल फ़ाइल अपलोड के लिए stdio चाहिए और HTTP पर उपलब्ध नहीं। खोज में आउटपुट स्कीमा के लिए SOSOAPI_OUTPUT_SCHEMAS=1 सेट करें। इस सेटिंग के साथ या बिना टूल संरचित परिणाम लौटाते हैं।

अनुमतियाँ और अन्य प्रभाव

एनोटेशन क्लाइंट को टूल का वर्णन करने में मदद करते हैं। हर कॉल फिर भी यूज़र का प्रमाणीकरण, भूमिका, संसाधन एक्सेस और क्षमता अधिकार जाँचती है।

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

इनपुट फ़ील्ड

Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।

इनपुट फ़ील्ड
फ़ील्ड / शाखाप्रकार / अनिवार्यशर्तें
$objectपैरेंट में अनिवार्य
  • additionalProperties: false
workspace_idstringपैरेंट में अनिवार्य
  • format: "uuid"
advertising_account_idstringपैरेंट में अनिवार्य
  • format: "uuid"
mutation_idstringपैरेंट में अनिवार्य
  • format: "uuid"
commandobjectपैरेंट में अनिवार्य—
commandanyOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["create_campaign"]
command.nameanyOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
command.budgetanyOf 1objectवैकल्पिक / आइटम
  • additionalProperties: false
command.budget.kindanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
command.budget.amount_minoranyOf 1stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
command.objectiveanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["OUTCOME_AWARENESS","OUTCOME_ENGAGEMENT","OUTCOME_LEADS","OUTCOME_SALES","OUTCOME_TRAFFIC","OUTCOME_APP_PROMOTION"]
command.special_ad_categoriesanyOf 1arrayवैकल्पिक / आइटम
  • maxItems: 4
command.special_ad_categories[]anyOf 1stringवैकल्पिक / आइटम
  • enum: ["CREDIT","EMPLOYMENT","HOUSING","ISSUES_ELECTIONS_POLITICS"]
command.statusanyOf 1stringवैकल्पिक / आइटम
  • enum: ["PAUSED"]
commandanyOf 2objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 2stringपैरेंट में अनिवार्य
  • enum: ["update_campaign"]
command.object_idanyOf 2stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.nameanyOf 2stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
command.budgetanyOf 2objectवैकल्पिक / आइटम
  • additionalProperties: false
command.budget.kindanyOf 2stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
command.budget.amount_minoranyOf 2stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
command.statusanyOf 2stringवैकल्पिक / आइटम
  • enum: ["ACTIVE","PAUSED","ARCHIVED"]
commandanyOf 3objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 3stringपैरेंट में अनिवार्य
  • enum: ["create_adset"]
command.campaign_idanyOf 3stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.nameanyOf 3stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
command.budgetanyOf 3objectवैकल्पिक / आइटम
  • additionalProperties: false
command.budget.kindanyOf 3stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
command.budget.amount_minoranyOf 3stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
command.targetinganyOf 3objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.targeting.geo_locationsanyOf 3objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.targeting.geo_locations.countriesanyOf 3arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
command.targeting.geo_locations.countries[]anyOf 3stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
command.targeting.age_minanyOf 3integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.age_maxanyOf 3integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.gendersanyOf 3arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
command.targeting.genders[]anyOf 3numberवैकल्पिक / आइटम—
command.targeting.genders[]anyOf 3 / anyOf 1numberवैकल्पिक / आइटम
  • enum: [1]
command.targeting.genders[]anyOf 3 / anyOf 2numberवैकल्पिक / आइटम
  • enum: [2]
command.targeting.localesanyOf 3arrayवैकल्पिक / आइटम
  • maxItems: 25
command.targeting.locales[]anyOf 3integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
command.targeting.publisher_platformsanyOf 3arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
command.targeting.publisher_platforms[]anyOf 3stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
command.targeting.facebook_positionsanyOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.facebook_positions[]anyOf 3stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
command.targeting.instagram_positionsanyOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.instagram_positions[]anyOf 3stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
command.targeting.threads_positionsanyOf 3arrayवैकल्पिक / आइटम
  • maxItems: 1
command.targeting.threads_positions[]anyOf 3stringवैकल्पिक / आइटम
  • enum: ["threads_stream"]
command.targeting.custom_audience_idsanyOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.custom_audience_ids[]anyOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.targeting.excluded_custom_audience_idsanyOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.excluded_custom_audience_ids[]anyOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.billing_eventanyOf 3stringपैरेंट में अनिवार्य
  • enum: ["IMPRESSIONS","LINK_CLICKS"]
command.optimization_goalanyOf 3stringपैरेंट में अनिवार्य
  • enum: ["REACH","IMPRESSIONS","LINK_CLICKS","LANDING_PAGE_VIEWS","OFFSITE_CONVERSIONS","LEAD_GENERATION"]
command.bid_strategyanyOf 3stringवैकल्पिक / आइटम
  • enum: ["LOWEST_COST_WITHOUT_CAP"]
command.start_timeanyOf 3stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
command.end_timeanyOf 3stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
command.promoted_objectanyOf 3objectवैकल्पिक / आइटम
  • additionalProperties: false
command.promoted_object.page_idanyOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.promoted_object.pixel_idanyOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.promoted_object.custom_event_typeanyOf 3stringवैकल्पिक / आइटम
  • enum: ["PURCHASE","LEAD","COMPLETE_REGISTRATION","ADD_TO_CART"]
command.statusanyOf 3stringवैकल्पिक / आइटम
  • enum: ["PAUSED"]
commandanyOf 4objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 4stringपैरेंट में अनिवार्य
  • enum: ["update_adset"]
command.object_idanyOf 4stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.nameanyOf 4stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
command.budgetanyOf 4objectवैकल्पिक / आइटम
  • additionalProperties: false
command.budget.kindanyOf 4stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
command.budget.amount_minoranyOf 4stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
command.statusanyOf 4stringवैकल्पिक / आइटम
  • enum: ["ACTIVE","PAUSED","ARCHIVED"]
command.targetinganyOf 4objectवैकल्पिक / आइटम
  • additionalProperties: false
command.targeting.geo_locationsanyOf 4objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.targeting.geo_locations.countriesanyOf 4arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
command.targeting.geo_locations.countries[]anyOf 4stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
command.targeting.age_minanyOf 4integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.age_maxanyOf 4integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.gendersanyOf 4arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
command.targeting.genders[]anyOf 4numberवैकल्पिक / आइटम—
command.targeting.genders[]anyOf 4 / anyOf 1numberवैकल्पिक / आइटम
  • enum: [1]
command.targeting.genders[]anyOf 4 / anyOf 2numberवैकल्पिक / आइटम
  • enum: [2]
command.targeting.localesanyOf 4arrayवैकल्पिक / आइटम
  • maxItems: 25
command.targeting.locales[]anyOf 4integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
command.targeting.publisher_platformsanyOf 4arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
command.targeting.publisher_platforms[]anyOf 4stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
command.targeting.facebook_positionsanyOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.facebook_positions[]anyOf 4stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
command.targeting.instagram_positionsanyOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.instagram_positions[]anyOf 4stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
command.targeting.threads_positionsanyOf 4arrayवैकल्पिक / आइटम
  • maxItems: 1
command.targeting.threads_positions[]anyOf 4stringवैकल्पिक / आइटम
  • enum: ["threads_stream"]
command.targeting.custom_audience_idsanyOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.custom_audience_ids[]anyOf 4stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.targeting.excluded_custom_audience_idsanyOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.excluded_custom_audience_ids[]anyOf 4stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.start_timeanyOf 4stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
command.end_timeanyOf 4stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
commandanyOf 5objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 5stringपैरेंट में अनिवार्य
  • enum: ["create_ad"]
command.nameanyOf 5stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
command.adset_idanyOf 5stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.creative_idanyOf 5stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.statusanyOf 5stringवैकल्पिक / आइटम
  • enum: ["PAUSED"]
commandanyOf 6objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 6stringपैरेंट में अनिवार्य
  • enum: ["update_ad"]
command.object_idanyOf 6stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.nameanyOf 6stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
command.creative_idanyOf 6stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.statusanyOf 6stringवैकल्पिक / आइटम
  • enum: ["ACTIVE","PAUSED","ARCHIVED"]
commandanyOf 7objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 7stringपैरेंट में अनिवार्य
  • enum: ["create_creative"]
command.nameanyOf 7stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
command.object_story_specanyOf 7objectवैकल्पिक / आइटम
  • additionalProperties: false
command.object_story_spec.page_idanyOf 7stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.object_story_spec.instagram_user_idanyOf 7stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.object_story_spec.link_dataanyOf 7objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.object_story_spec.link_data.linkanyOf 7stringपैरेंट में अनिवार्य
  • format: "uri"
  • maxLength: 2048
command.object_story_spec.link_data.messageanyOf 7stringपैरेंट में अनिवार्य
  • maxLength: 5000
command.object_story_spec.link_data.nameanyOf 7stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
command.object_story_spec.link_data.image_hashanyOf 7stringपैरेंट में अनिवार्य
  • pattern: "^[a-fA-F0-9]{16,128}$"
command.object_story_spec.link_data.call_to_actionanyOf 7stringवैकल्पिक / आइटम
  • enum: ["LEARN_MORE","SHOP_NOW","SIGN_UP","CONTACT_US"]
command.object_story_idanyOf 7stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}_[1-9]\\d{1,24}$"
commandanyOf 8objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 8stringपैरेंट में अनिवार्य
  • enum: ["create_saved_audience"]
command.nameanyOf 8stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
command.targetinganyOf 8objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.targeting.geo_locationsanyOf 8objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.targeting.geo_locations.countriesanyOf 8arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
command.targeting.geo_locations.countries[]anyOf 8stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
command.targeting.age_minanyOf 8integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.age_maxanyOf 8integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.gendersanyOf 8arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
command.targeting.genders[]anyOf 8numberवैकल्पिक / आइटम—
command.targeting.genders[]anyOf 8 / anyOf 1numberवैकल्पिक / आइटम
  • enum: [1]
command.targeting.genders[]anyOf 8 / anyOf 2numberवैकल्पिक / आइटम
  • enum: [2]
command.targeting.localesanyOf 8arrayवैकल्पिक / आइटम
  • maxItems: 25
command.targeting.locales[]anyOf 8integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
command.targeting.publisher_platformsanyOf 8arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
command.targeting.publisher_platforms[]anyOf 8stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
command.targeting.facebook_positionsanyOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.facebook_positions[]anyOf 8stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
command.targeting.instagram_positionsanyOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.instagram_positions[]anyOf 8stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
command.targeting.threads_positionsanyOf 8arrayवैकल्पिक / आइटम
  • maxItems: 1
command.targeting.threads_positions[]anyOf 8stringवैकल्पिक / आइटम
  • enum: ["threads_stream"]
command.targeting.custom_audience_idsanyOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.custom_audience_ids[]anyOf 8stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.targeting.excluded_custom_audience_idsanyOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.excluded_custom_audience_ids[]anyOf 8stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
commandanyOf 9objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.operationanyOf 9stringपैरेंट में अनिवार्य
  • enum: ["update_saved_audience"]
command.object_idanyOf 9stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
command.nameanyOf 9stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
command.targetinganyOf 9objectवैकल्पिक / आइटम
  • additionalProperties: false
command.targeting.geo_locationsanyOf 9objectपैरेंट में अनिवार्य
  • additionalProperties: false
command.targeting.geo_locations.countriesanyOf 9arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
command.targeting.geo_locations.countries[]anyOf 9stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
command.targeting.age_minanyOf 9integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.age_maxanyOf 9integerवैकल्पिक / आइटम
  • minimum: 18
  • maximum: 65
command.targeting.gendersanyOf 9arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
command.targeting.genders[]anyOf 9numberवैकल्पिक / आइटम—
command.targeting.genders[]anyOf 9 / anyOf 1numberवैकल्पिक / आइटम
  • enum: [1]
command.targeting.genders[]anyOf 9 / anyOf 2numberवैकल्पिक / आइटम
  • enum: [2]
command.targeting.localesanyOf 9arrayवैकल्पिक / आइटम
  • maxItems: 25
command.targeting.locales[]anyOf 9integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
command.targeting.publisher_platformsanyOf 9arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
command.targeting.publisher_platforms[]anyOf 9stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
command.targeting.facebook_positionsanyOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.facebook_positions[]anyOf 9stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
command.targeting.instagram_positionsanyOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.instagram_positions[]anyOf 9stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
command.targeting.threads_positionsanyOf 9arrayवैकल्पिक / आइटम
  • maxItems: 1
command.targeting.threads_positions[]anyOf 9stringवैकल्पिक / आइटम
  • enum: ["threads_stream"]
command.targeting.custom_audience_idsanyOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.custom_audience_ids[]anyOf 9stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
command.targeting.excluded_custom_audience_idsanyOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
command.targeting.excluded_custom_audience_ids[]anyOf 9stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
संपूर्ण JSON Schema
{
  "type": "object",
  "properties": {
    "workspace_id": {
      "type": "string",
      "format": "uuid"
    },
    "advertising_account_id": {
      "type": "string",
      "format": "uuid"
    },
    "mutation_id": {
      "type": "string",
      "format": "uuid"
    },
    "command": {
      "anyOf": [
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "create_campaign"
              ]
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "budget": {
              "$ref": "#/$defs/s2"
            },
            "objective": {
              "type": "string",
              "enum": [
                "OUTCOME_AWARENESS",
                "OUTCOME_ENGAGEMENT",
                "OUTCOME_LEADS",
                "OUTCOME_SALES",
                "OUTCOME_TRAFFIC",
                "OUTCOME_APP_PROMOTION"
              ]
            },
            "special_ad_categories": {
              "maxItems": 4,
              "type": "array",
              "items": {
                "type": "string",
                "enum": [
                  "CREDIT",
                  "EMPLOYMENT",
                  "HOUSING",
                  "ISSUES_ELECTIONS_POLITICS"
                ]
              }
            },
            "status": {
              "$ref": "#/$defs/s6"
            }
          },
          "required": [
            "operation",
            "name",
            "objective"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "update_campaign"
              ]
            },
            "object_id": {
              "$ref": "#/$defs/s3"
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "budget": {
              "$ref": "#/$defs/s2"
            },
            "status": {
              "$ref": "#/$defs/s5"
            }
          },
          "required": [
            "operation",
            "object_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "create_adset"
              ]
            },
            "campaign_id": {
              "$ref": "#/$defs/s3"
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "budget": {
              "$ref": "#/$defs/s2"
            },
            "targeting": {
              "$ref": "#/$defs/s0"
            },
            "billing_event": {
              "type": "string",
              "enum": [
                "IMPRESSIONS",
                "LINK_CLICKS"
              ]
            },
            "optimization_goal": {
              "type": "string",
              "enum": [
                "REACH",
                "IMPRESSIONS",
                "LINK_CLICKS",
                "LANDING_PAGE_VIEWS",
                "OFFSITE_CONVERSIONS",
                "LEAD_GENERATION"
              ]
            },
            "bid_strategy": {
              "type": "string",
              "enum": [
                "LOWEST_COST_WITHOUT_CAP"
              ]
            },
            "start_time": {
              "$ref": "#/$defs/s1"
            },
            "end_time": {
              "$ref": "#/$defs/s1"
            },
            "promoted_object": {
              "type": "object",
              "properties": {
                "page_id": {
                  "$ref": "#/$defs/s3"
                },
                "pixel_id": {
                  "$ref": "#/$defs/s3"
                },
                "custom_event_type": {
                  "type": "string",
                  "enum": [
                    "PURCHASE",
                    "LEAD",
                    "COMPLETE_REGISTRATION",
                    "ADD_TO_CART"
                  ]
                }
              },
              "additionalProperties": false
            },
            "status": {
              "$ref": "#/$defs/s6"
            }
          },
          "required": [
            "operation",
            "campaign_id",
            "name",
            "targeting",
            "billing_event",
            "optimization_goal"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "update_adset"
              ]
            },
            "object_id": {
              "$ref": "#/$defs/s3"
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "budget": {
              "$ref": "#/$defs/s2"
            },
            "status": {
              "$ref": "#/$defs/s5"
            },
            "targeting": {
              "$ref": "#/$defs/s0"
            },
            "start_time": {
              "$ref": "#/$defs/s1"
            },
            "end_time": {
              "$ref": "#/$defs/s1"
            }
          },
          "required": [
            "operation",
            "object_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "create_ad"
              ]
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "adset_id": {
              "$ref": "#/$defs/s3"
            },
            "creative_id": {
              "$ref": "#/$defs/s3"
            },
            "status": {
              "$ref": "#/$defs/s6"
            }
          },
          "required": [
            "operation",
            "name",
            "adset_id",
            "creative_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "update_ad"
              ]
            },
            "object_id": {
              "$ref": "#/$defs/s3"
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "creative_id": {
              "$ref": "#/$defs/s3"
            },
            "status": {
              "$ref": "#/$defs/s5"
            }
          },
          "required": [
            "operation",
            "object_id"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "create_creative"
              ]
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "object_story_spec": {
              "type": "object",
              "properties": {
                "page_id": {
                  "$ref": "#/$defs/s3"
                },
                "instagram_user_id": {
                  "$ref": "#/$defs/s3"
                },
                "link_data": {
                  "type": "object",
                  "properties": {
                    "link": {
                      "type": "string",
                      "maxLength": 2048,
                      "format": "uri"
                    },
                    "message": {
                      "type": "string",
                      "maxLength": 5000
                    },
                    "name": {
                      "$ref": "#/$defs/s4"
                    },
                    "image_hash": {
                      "type": "string",
                      "pattern": "^[a-fA-F0-9]{16,128}$"
                    },
                    "call_to_action": {
                      "type": "string",
                      "enum": [
                        "LEARN_MORE",
                        "SHOP_NOW",
                        "SIGN_UP",
                        "CONTACT_US"
                      ]
                    }
                  },
                  "required": [
                    "link",
                    "message",
                    "image_hash"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "page_id",
                "link_data"
              ],
              "additionalProperties": false
            },
            "object_story_id": {
              "type": "string",
              "pattern": "^[1-9]\\d{1,24}_[1-9]\\d{1,24}$"
            }
          },
          "required": [
            "operation",
            "name"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "create_saved_audience"
              ]
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "targeting": {
              "$ref": "#/$defs/s0"
            }
          },
          "required": [
            "operation",
            "name",
            "targeting"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "operation": {
              "type": "string",
              "enum": [
                "update_saved_audience"
              ]
            },
            "object_id": {
              "$ref": "#/$defs/s3"
            },
            "name": {
              "$ref": "#/$defs/s4"
            },
            "targeting": {
              "$ref": "#/$defs/s0"
            }
          },
          "required": [
            "operation",
            "object_id"
          ],
          "additionalProperties": false
        }
      ]
    }
  },
  "required": [
    "workspace_id",
    "advertising_account_id",
    "mutation_id",
    "command"
  ],
  "additionalProperties": false,
  "$defs": {
    "s0": {
      "type": "object",
      "properties": {
        "geo_locations": {
          "type": "object",
          "properties": {
            "countries": {
              "minItems": 1,
              "maxItems": 25,
              "type": "array",
              "items": {
                "type": "string",
                "pattern": "^[A-Z]{2}$"
              }
            }
          },
          "required": [
            "countries"
          ],
          "additionalProperties": false
        },
        "age_min": {
          "type": "integer",
          "minimum": 18,
          "maximum": 65
        },
        "age_max": {
          "type": "integer",
          "minimum": 18,
          "maximum": 65
        },
        "genders": {
          "minItems": 1,
          "maxItems": 2,
          "type": "array",
          "items": {
            "anyOf": [
              {
                "type": "number",
                "enum": [
                  1
                ]
              },
              {
                "type": "number",
                "enum": [
                  2
                ]
              }
            ]
          }
        },
        "locales": {
          "maxItems": 25,
          "type": "array",
          "items": {
            "type": "integer",
            "exclusiveMinimum": 0,
            "maximum": 9007199254740991
          }
        },
        "publisher_platforms": {
          "minItems": 1,
          "maxItems": 3,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "facebook",
              "instagram",
              "threads"
            ]
          }
        },
        "facebook_positions": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "feed",
              "story",
              "facebook_reels",
              "video_feeds"
            ]
          }
        },
        "instagram_positions": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "stream",
              "story",
              "reels",
              "explore"
            ]
          }
        },
        "threads_positions": {
          "maxItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "threads_stream"
            ]
          }
        },
        "custom_audience_ids": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[1-9]\\d{1,24}$"
          }
        },
        "excluded_custom_audience_ids": {
          "maxItems": 4,
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[1-9]\\d{1,24}$"
          }
        }
      },
      "required": [
        "geo_locations",
        "publisher_platforms"
      ],
      "additionalProperties": false
    },
    "s1": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "s2": {
      "type": "object",
      "properties": {
        "kind": {
          "type": "string",
          "enum": [
            "daily",
            "lifetime"
          ]
        },
        "amount_minor": {
          "type": "string",
          "pattern": "^[1-9]\\d{0,11}$"
        }
      },
      "required": [
        "kind",
        "amount_minor"
      ],
      "additionalProperties": false
    },
    "s3": {
      "type": "string",
      "pattern": "^[1-9]\\d{1,24}$"
    },
    "s4": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200
    },
    "s5": {
      "type": "string",
      "enum": [
        "ACTIVE",
        "PAUSED",
        "ARCHIVED"
      ]
    },
    "s6": {
      "type": "string",
      "enum": [
        "PAUSED"
      ]
    }
  }
}

संरचित आउटपुट

यह स्कीमा सफल टूल परिणाम के structuredContent का वर्णन करता है। MCP रिस्पॉन्स में content भी होता है और कॉल विफल होने पर isError सेट हो सकता है। प्रकाशन के लिए स्वीकृत अनुरोध या टेक्स्ट रिस्पॉन्स को पुष्टि मानने के बजाय पोस्ट का अंतिम परिणाम पढ़ें। लिंक किया गया API ऑपरेशन अनुमतियाँ और पुनः प्रयास के नियम समझाता है।

Required का अर्थ पैरेंट ऑब्जेक्ट और चुनी शाखा के भीतर अनिवार्य है। अनिवार्य चाइल्ड से वैकल्पिक पैरेंट अनिवार्य नहीं होता। नीचे के नियम और फ़ील्ड नाम कॉन्ट्रैक्ट से लिए गए हैं।

संरचित आउटपुट
फ़ील्ड / शाखाप्रकार / अनिवार्यशर्तें
$objectपैरेंट में अनिवार्य
  • additionalProperties: false
contract_versionstringपैरेंट में अनिवार्य
  • const: "advertising/v1"
prepare_tokenstringपैरेंट में अनिवार्य
  • minLength: 32
  • maxLength: 128
expires_atstringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
actionobjectपैरेंट में अनिवार्य
  • additionalProperties: false
action.idstringपैरेंट में अनिवार्य
  • format: "uuid"
action.workspace_idstringपैरेंट में अनिवार्य
  • format: "uuid"
action.advertising_account_idstringपैरेंट में अनिवार्य
  • format: "uuid"
action.mutation_idstringपैरेंट में अनिवार्य
  • format: "uuid"
action.statusstringपैरेंट में अनिवार्य
  • enum: ["prepared","queued","processing","succeeded","failed","unknown","cancelled"]
action.commandobjectपैरेंट में अनिवार्य—
action.commandoneOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 1stringपैरेंट में अनिवार्य
  • const: "create_campaign"
action.command.nameoneOf 1stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
action.command.budgetoneOf 1objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.budget.kindoneOf 1stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
action.command.budget.amount_minoroneOf 1stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
action.command.objectiveoneOf 1stringपैरेंट में अनिवार्य
  • enum: ["OUTCOME_AWARENESS","OUTCOME_ENGAGEMENT","OUTCOME_LEADS","OUTCOME_SALES","OUTCOME_TRAFFIC","OUTCOME_APP_PROMOTION"]
action.command.special_ad_categoriesoneOf 1arrayपैरेंट में अनिवार्य
  • maxItems: 4
  • default: []
action.command.special_ad_categories[]oneOf 1stringवैकल्पिक / आइटम
  • enum: ["CREDIT","EMPLOYMENT","HOUSING","ISSUES_ELECTIONS_POLITICS"]
action.command.statusoneOf 1stringपैरेंट में अनिवार्य
  • const: "PAUSED"
  • default: "PAUSED"
action.commandoneOf 2objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 2stringपैरेंट में अनिवार्य
  • const: "update_campaign"
action.command.object_idoneOf 2stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.nameoneOf 2stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
action.command.budgetoneOf 2objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.budget.kindoneOf 2stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
action.command.budget.amount_minoroneOf 2stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
action.command.statusoneOf 2stringवैकल्पिक / आइटम
  • enum: ["ACTIVE","PAUSED","ARCHIVED"]
action.commandoneOf 3objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 3stringपैरेंट में अनिवार्य
  • const: "create_adset"
action.command.campaign_idoneOf 3stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.nameoneOf 3stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
action.command.budgetoneOf 3objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.budget.kindoneOf 3stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
action.command.budget.amount_minoroneOf 3stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
action.command.targetingoneOf 3objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.targeting.geo_locationsoneOf 3objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.targeting.geo_locations.countriesoneOf 3arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
action.command.targeting.geo_locations.countries[]oneOf 3stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
action.command.targeting.age_minoneOf 3integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 18
action.command.targeting.age_maxoneOf 3integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 65
action.command.targeting.gendersoneOf 3arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
action.command.targeting.genders[]oneOf 3numberवैकल्पिक / आइटम—
action.command.targeting.genders[]oneOf 3 / anyOf 1numberवैकल्पिक / आइटम
  • const: 1
action.command.targeting.genders[]oneOf 3 / anyOf 2numberवैकल्पिक / आइटम
  • const: 2
action.command.targeting.localesoneOf 3arrayवैकल्पिक / आइटम
  • maxItems: 25
action.command.targeting.locales[]oneOf 3integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
action.command.targeting.publisher_platformsoneOf 3arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
action.command.targeting.publisher_platforms[]oneOf 3stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
action.command.targeting.facebook_positionsoneOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.facebook_positions[]oneOf 3stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
action.command.targeting.instagram_positionsoneOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.instagram_positions[]oneOf 3stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
action.command.targeting.threads_positionsoneOf 3arrayवैकल्पिक / आइटम
  • maxItems: 1
action.command.targeting.threads_positions[]oneOf 3stringवैकल्पिक / आइटम
  • const: "threads_stream"
action.command.targeting.custom_audience_idsoneOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.custom_audience_ids[]oneOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.targeting.excluded_custom_audience_idsoneOf 3arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.excluded_custom_audience_ids[]oneOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.billing_eventoneOf 3stringपैरेंट में अनिवार्य
  • enum: ["IMPRESSIONS","LINK_CLICKS"]
action.command.optimization_goaloneOf 3stringपैरेंट में अनिवार्य
  • enum: ["REACH","IMPRESSIONS","LINK_CLICKS","LANDING_PAGE_VIEWS","OFFSITE_CONVERSIONS","LEAD_GENERATION"]
action.command.bid_strategyoneOf 3stringपैरेंट में अनिवार्य
  • const: "LOWEST_COST_WITHOUT_CAP"
  • default: "LOWEST_COST_WITHOUT_CAP"
action.command.start_timeoneOf 3stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.command.end_timeoneOf 3stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.command.promoted_objectoneOf 3objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.promoted_object.page_idoneOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.promoted_object.pixel_idoneOf 3stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.promoted_object.custom_event_typeoneOf 3stringवैकल्पिक / आइटम
  • enum: ["PURCHASE","LEAD","COMPLETE_REGISTRATION","ADD_TO_CART"]
action.command.statusoneOf 3stringपैरेंट में अनिवार्य
  • const: "PAUSED"
  • default: "PAUSED"
action.commandoneOf 4objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 4stringपैरेंट में अनिवार्य
  • const: "update_adset"
action.command.object_idoneOf 4stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.nameoneOf 4stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
action.command.budgetoneOf 4objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.budget.kindoneOf 4stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
action.command.budget.amount_minoroneOf 4stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
action.command.statusoneOf 4stringवैकल्पिक / आइटम
  • enum: ["ACTIVE","PAUSED","ARCHIVED"]
action.command.targetingoneOf 4objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.targeting.geo_locationsoneOf 4objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.targeting.geo_locations.countriesoneOf 4arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
action.command.targeting.geo_locations.countries[]oneOf 4stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
action.command.targeting.age_minoneOf 4integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 18
action.command.targeting.age_maxoneOf 4integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 65
action.command.targeting.gendersoneOf 4arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
action.command.targeting.genders[]oneOf 4numberवैकल्पिक / आइटम—
action.command.targeting.genders[]oneOf 4 / anyOf 1numberवैकल्पिक / आइटम
  • const: 1
action.command.targeting.genders[]oneOf 4 / anyOf 2numberवैकल्पिक / आइटम
  • const: 2
action.command.targeting.localesoneOf 4arrayवैकल्पिक / आइटम
  • maxItems: 25
action.command.targeting.locales[]oneOf 4integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
action.command.targeting.publisher_platformsoneOf 4arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
action.command.targeting.publisher_platforms[]oneOf 4stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
action.command.targeting.facebook_positionsoneOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.facebook_positions[]oneOf 4stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
action.command.targeting.instagram_positionsoneOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.instagram_positions[]oneOf 4stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
action.command.targeting.threads_positionsoneOf 4arrayवैकल्पिक / आइटम
  • maxItems: 1
action.command.targeting.threads_positions[]oneOf 4stringवैकल्पिक / आइटम
  • const: "threads_stream"
action.command.targeting.custom_audience_idsoneOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.custom_audience_ids[]oneOf 4stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.targeting.excluded_custom_audience_idsoneOf 4arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.excluded_custom_audience_ids[]oneOf 4stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.start_timeoneOf 4stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.command.end_timeoneOf 4stringवैकल्पिक / आइटम
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.commandoneOf 5objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 5stringपैरेंट में अनिवार्य
  • const: "create_ad"
action.command.nameoneOf 5stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
action.command.adset_idoneOf 5stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.creative_idoneOf 5stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.statusoneOf 5stringपैरेंट में अनिवार्य
  • const: "PAUSED"
  • default: "PAUSED"
action.commandoneOf 6objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 6stringपैरेंट में अनिवार्य
  • const: "update_ad"
action.command.object_idoneOf 6stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.nameoneOf 6stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
action.command.creative_idoneOf 6stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.statusoneOf 6stringवैकल्पिक / आइटम
  • enum: ["ACTIVE","PAUSED","ARCHIVED"]
action.commandoneOf 7objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 7stringपैरेंट में अनिवार्य
  • const: "create_creative"
action.command.nameoneOf 7stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
action.command.object_story_speconeOf 7objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.object_story_spec.page_idoneOf 7stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.object_story_spec.instagram_user_idoneOf 7stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.object_story_spec.link_dataoneOf 7objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.object_story_spec.link_data.linkoneOf 7stringपैरेंट में अनिवार्य
  • format: "uri"
  • maxLength: 2048
action.command.object_story_spec.link_data.messageoneOf 7stringपैरेंट में अनिवार्य
  • maxLength: 5000
action.command.object_story_spec.link_data.nameoneOf 7stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
action.command.object_story_spec.link_data.image_hashoneOf 7stringपैरेंट में अनिवार्य
  • pattern: "^[a-fA-F0-9]{16,128}$"
action.command.object_story_spec.link_data.call_to_actiononeOf 7stringवैकल्पिक / आइटम
  • enum: ["LEARN_MORE","SHOP_NOW","SIGN_UP","CONTACT_US"]
action.command.object_story_idoneOf 7stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}_[1-9]\\d{1,24}$"
action.commandoneOf 8objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 8stringपैरेंट में अनिवार्य
  • const: "create_saved_audience"
action.command.nameoneOf 8stringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 200
action.command.targetingoneOf 8objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.targeting.geo_locationsoneOf 8objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.targeting.geo_locations.countriesoneOf 8arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
action.command.targeting.geo_locations.countries[]oneOf 8stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
action.command.targeting.age_minoneOf 8integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 18
action.command.targeting.age_maxoneOf 8integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 65
action.command.targeting.gendersoneOf 8arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
action.command.targeting.genders[]oneOf 8numberवैकल्पिक / आइटम—
action.command.targeting.genders[]oneOf 8 / anyOf 1numberवैकल्पिक / आइटम
  • const: 1
action.command.targeting.genders[]oneOf 8 / anyOf 2numberवैकल्पिक / आइटम
  • const: 2
action.command.targeting.localesoneOf 8arrayवैकल्पिक / आइटम
  • maxItems: 25
action.command.targeting.locales[]oneOf 8integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
action.command.targeting.publisher_platformsoneOf 8arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
action.command.targeting.publisher_platforms[]oneOf 8stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
action.command.targeting.facebook_positionsoneOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.facebook_positions[]oneOf 8stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
action.command.targeting.instagram_positionsoneOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.instagram_positions[]oneOf 8stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
action.command.targeting.threads_positionsoneOf 8arrayवैकल्पिक / आइटम
  • maxItems: 1
action.command.targeting.threads_positions[]oneOf 8stringवैकल्पिक / आइटम
  • const: "threads_stream"
action.command.targeting.custom_audience_idsoneOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.custom_audience_ids[]oneOf 8stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.targeting.excluded_custom_audience_idsoneOf 8arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.excluded_custom_audience_ids[]oneOf 8stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.commandoneOf 9objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.operationoneOf 9stringपैरेंट में अनिवार्य
  • const: "update_saved_audience"
action.command.object_idoneOf 9stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.command.nameoneOf 9stringवैकल्पिक / आइटम
  • minLength: 1
  • maxLength: 200
action.command.targetingoneOf 9objectवैकल्पिक / आइटम
  • additionalProperties: false
action.command.targeting.geo_locationsoneOf 9objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.command.targeting.geo_locations.countriesoneOf 9arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 25
action.command.targeting.geo_locations.countries[]oneOf 9stringवैकल्पिक / आइटम
  • pattern: "^[A-Z]{2}$"
action.command.targeting.age_minoneOf 9integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 18
action.command.targeting.age_maxoneOf 9integerपैरेंट में अनिवार्य
  • minimum: 18
  • maximum: 65
  • default: 65
action.command.targeting.gendersoneOf 9arrayवैकल्पिक / आइटम
  • minItems: 1
  • maxItems: 2
action.command.targeting.genders[]oneOf 9numberवैकल्पिक / आइटम—
action.command.targeting.genders[]oneOf 9 / anyOf 1numberवैकल्पिक / आइटम
  • const: 1
action.command.targeting.genders[]oneOf 9 / anyOf 2numberवैकल्पिक / आइटम
  • const: 2
action.command.targeting.localesoneOf 9arrayवैकल्पिक / आइटम
  • maxItems: 25
action.command.targeting.locales[]oneOf 9integerवैकल्पिक / आइटम
  • maximum: 9007199254740991
  • exclusiveMinimum: 0
action.command.targeting.publisher_platformsoneOf 9arrayपैरेंट में अनिवार्य
  • minItems: 1
  • maxItems: 3
action.command.targeting.publisher_platforms[]oneOf 9stringवैकल्पिक / आइटम
  • enum: ["facebook","instagram","threads"]
action.command.targeting.facebook_positionsoneOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.facebook_positions[]oneOf 9stringवैकल्पिक / आइटम
  • enum: ["feed","story","facebook_reels","video_feeds"]
action.command.targeting.instagram_positionsoneOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.instagram_positions[]oneOf 9stringवैकल्पिक / आइटम
  • enum: ["stream","story","reels","explore"]
action.command.targeting.threads_positionsoneOf 9arrayवैकल्पिक / आइटम
  • maxItems: 1
action.command.targeting.threads_positions[]oneOf 9stringवैकल्पिक / आइटम
  • const: "threads_stream"
action.command.targeting.custom_audience_idsoneOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.custom_audience_ids[]oneOf 9stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.command.targeting.excluded_custom_audience_idsoneOf 9arrayवैकल्पिक / आइटम
  • maxItems: 4
action.command.targeting.excluded_custom_audience_ids[]oneOf 9stringवैकल्पिक / आइटम
  • pattern: "^[1-9]\\d{1,24}$"
action.reviewed_digeststringपैरेंट में अनिवार्य
  • pattern: "^[a-f0-9]{64}$"
action.effectsobjectपैरेंट में अनिवार्य
  • additionalProperties: false
action.effects.creates_objectbooleanपैरेंट में अनिवार्य—
action.effects.initial_statusstring | nullपैरेंट में अनिवार्य—
action.effects.initial_statusanyOf 1stringपैरेंट में अनिवार्य
  • const: "PAUSED"
action.effects.initial_statusanyOf 2nullपैरेंट में अनिवार्य—
action.effects.activates_deliverybooleanपैरेंट में अनिवार्य—
action.effects.changes_budgetbooleanपैरेंट में अनिवार्य—
action.effects.changes_audiencebooleanपैरेंट में अनिवार्य—
action.effects.changes_creativebooleanपैरेंट में अनिवार्य—
action.effects.currencystringपैरेंट में अनिवार्य
  • pattern: "^[A-Z]{3}$"
action.effects.timezonestringपैरेंट में अनिवार्य
  • minLength: 1
  • maxLength: 100
action.effects.budgetobject | nullपैरेंट में अनिवार्य—
action.effects.budgetanyOf 1objectपैरेंट में अनिवार्य
  • additionalProperties: false
action.effects.budget.kindanyOf 1stringपैरेंट में अनिवार्य
  • enum: ["daily","lifetime"]
action.effects.budget.amount_minoranyOf 1stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{0,11}$"
action.effects.budgetanyOf 2nullपैरेंट में अनिवार्य—
action.live_approvalobjectपैरेंट में अनिवार्य
  • additionalProperties: false
action.live_approval.requiredbooleanपैरेंट में अनिवार्य—
action.live_approval.statestringपैरेंट में अनिवार्य
  • enum: ["not_required","missing","approved","expired","revoked","invalid"]
action.live_approval.reasonstring | nullपैरेंट में अनिवार्य—
action.live_approval.reasonanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 100
action.live_approval.reasonanyOf 2nullपैरेंट में अनिवार्य—
action.live_approval.expires_atstring | nullपैरेंट में अनिवार्य—
action.live_approval.expires_atanyOf 1stringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.live_approval.expires_atanyOf 2nullपैरेंट में अनिवार्य—
action.live_approval.approved_bystring | nullपैरेंट में अनिवार्य—
action.live_approval.approved_byanyOf 1stringपैरेंट में अनिवार्य
  • format: "uuid"
action.live_approval.approved_byanyOf 2nullपैरेंट में अनिवार्य—
action.provider_object_idstring | nullपैरेंट में अनिवार्य—
action.provider_object_idanyOf 1stringपैरेंट में अनिवार्य
  • pattern: "^[1-9]\\d{1,24}$"
action.provider_object_idanyOf 2nullपैरेंट में अनिवार्य—
action.failure_codestring | nullपैरेंट में अनिवार्य—
action.failure_codeanyOf 1stringपैरेंट में अनिवार्य
  • maxLength: 100
action.failure_codeanyOf 2nullपैरेंट में अनिवार्य—
action.created_atstringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.completed_atstring | nullपैरेंट में अनिवार्य—
action.completed_atanyOf 1stringपैरेंट में अनिवार्य
  • format: "date-time"
  • pattern: "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
action.completed_atanyOf 2nullपैरेंट में अनिवार्य—
संपूर्ण JSON Schema
{
  "type": "object",
  "properties": {
    "contract_version": {
      "type": "string",
      "const": "advertising/v1"
    },
    "prepare_token": {
      "type": "string",
      "minLength": 32,
      "maxLength": 128
    },
    "expires_at": {
      "type": "string",
      "format": "date-time",
      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
    },
    "action": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "format": "uuid"
        },
        "workspace_id": {
          "type": "string",
          "format": "uuid"
        },
        "advertising_account_id": {
          "type": "string",
          "format": "uuid"
        },
        "mutation_id": {
          "type": "string",
          "format": "uuid"
        },
        "status": {
          "type": "string",
          "enum": [
            "prepared",
            "queued",
            "processing",
            "succeeded",
            "failed",
            "unknown",
            "cancelled"
          ]
        },
        "command": {
          "oneOf": [
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "create_campaign"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "budget": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "lifetime"
                      ]
                    },
                    "amount_minor": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{0,11}$"
                    }
                  },
                  "required": [
                    "kind",
                    "amount_minor"
                  ],
                  "additionalProperties": false
                },
                "objective": {
                  "type": "string",
                  "enum": [
                    "OUTCOME_AWARENESS",
                    "OUTCOME_ENGAGEMENT",
                    "OUTCOME_LEADS",
                    "OUTCOME_SALES",
                    "OUTCOME_TRAFFIC",
                    "OUTCOME_APP_PROMOTION"
                  ]
                },
                "special_ad_categories": {
                  "default": [],
                  "maxItems": 4,
                  "type": "array",
                  "items": {
                    "type": "string",
                    "enum": [
                      "CREDIT",
                      "EMPLOYMENT",
                      "HOUSING",
                      "ISSUES_ELECTIONS_POLITICS"
                    ]
                  }
                },
                "status": {
                  "default": "PAUSED",
                  "type": "string",
                  "const": "PAUSED"
                }
              },
              "required": [
                "operation",
                "name",
                "objective",
                "special_ad_categories",
                "status"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "update_campaign"
                },
                "object_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "budget": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "lifetime"
                      ]
                    },
                    "amount_minor": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{0,11}$"
                    }
                  },
                  "required": [
                    "kind",
                    "amount_minor"
                  ],
                  "additionalProperties": false
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "PAUSED",
                    "ARCHIVED"
                  ]
                }
              },
              "required": [
                "operation",
                "object_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "create_adset"
                },
                "campaign_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "budget": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "lifetime"
                      ]
                    },
                    "amount_minor": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{0,11}$"
                    }
                  },
                  "required": [
                    "kind",
                    "amount_minor"
                  ],
                  "additionalProperties": false
                },
                "targeting": {
                  "type": "object",
                  "properties": {
                    "geo_locations": {
                      "type": "object",
                      "properties": {
                        "countries": {
                          "minItems": 1,
                          "maxItems": 25,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          }
                        }
                      },
                      "required": [
                        "countries"
                      ],
                      "additionalProperties": false
                    },
                    "age_min": {
                      "default": 18,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "age_max": {
                      "default": 65,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "genders": {
                      "minItems": 1,
                      "maxItems": 2,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number",
                            "const": 1
                          },
                          {
                            "type": "number",
                            "const": 2
                          }
                        ]
                      }
                    },
                    "locales": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "publisher_platforms": {
                      "minItems": 1,
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "facebook",
                          "instagram",
                          "threads"
                        ]
                      }
                    },
                    "facebook_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "feed",
                          "story",
                          "facebook_reels",
                          "video_feeds"
                        ]
                      }
                    },
                    "instagram_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "stream",
                          "story",
                          "reels",
                          "explore"
                        ]
                      }
                    },
                    "threads_positions": {
                      "maxItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "const": "threads_stream"
                      }
                    },
                    "custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    },
                    "excluded_custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    }
                  },
                  "required": [
                    "geo_locations",
                    "age_min",
                    "age_max",
                    "publisher_platforms"
                  ],
                  "additionalProperties": false
                },
                "billing_event": {
                  "type": "string",
                  "enum": [
                    "IMPRESSIONS",
                    "LINK_CLICKS"
                  ]
                },
                "optimization_goal": {
                  "type": "string",
                  "enum": [
                    "REACH",
                    "IMPRESSIONS",
                    "LINK_CLICKS",
                    "LANDING_PAGE_VIEWS",
                    "OFFSITE_CONVERSIONS",
                    "LEAD_GENERATION"
                  ]
                },
                "bid_strategy": {
                  "default": "LOWEST_COST_WITHOUT_CAP",
                  "type": "string",
                  "const": "LOWEST_COST_WITHOUT_CAP"
                },
                "start_time": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "end_time": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "promoted_object": {
                  "type": "object",
                  "properties": {
                    "page_id": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{1,24}$"
                    },
                    "pixel_id": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{1,24}$"
                    },
                    "custom_event_type": {
                      "type": "string",
                      "enum": [
                        "PURCHASE",
                        "LEAD",
                        "COMPLETE_REGISTRATION",
                        "ADD_TO_CART"
                      ]
                    }
                  },
                  "additionalProperties": false
                },
                "status": {
                  "default": "PAUSED",
                  "type": "string",
                  "const": "PAUSED"
                }
              },
              "required": [
                "operation",
                "campaign_id",
                "name",
                "targeting",
                "billing_event",
                "optimization_goal",
                "bid_strategy",
                "status"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "update_adset"
                },
                "object_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "budget": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "lifetime"
                      ]
                    },
                    "amount_minor": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{0,11}$"
                    }
                  },
                  "required": [
                    "kind",
                    "amount_minor"
                  ],
                  "additionalProperties": false
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "PAUSED",
                    "ARCHIVED"
                  ]
                },
                "targeting": {
                  "type": "object",
                  "properties": {
                    "geo_locations": {
                      "type": "object",
                      "properties": {
                        "countries": {
                          "minItems": 1,
                          "maxItems": 25,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          }
                        }
                      },
                      "required": [
                        "countries"
                      ],
                      "additionalProperties": false
                    },
                    "age_min": {
                      "default": 18,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "age_max": {
                      "default": 65,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "genders": {
                      "minItems": 1,
                      "maxItems": 2,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number",
                            "const": 1
                          },
                          {
                            "type": "number",
                            "const": 2
                          }
                        ]
                      }
                    },
                    "locales": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "publisher_platforms": {
                      "minItems": 1,
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "facebook",
                          "instagram",
                          "threads"
                        ]
                      }
                    },
                    "facebook_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "feed",
                          "story",
                          "facebook_reels",
                          "video_feeds"
                        ]
                      }
                    },
                    "instagram_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "stream",
                          "story",
                          "reels",
                          "explore"
                        ]
                      }
                    },
                    "threads_positions": {
                      "maxItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "const": "threads_stream"
                      }
                    },
                    "custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    },
                    "excluded_custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    }
                  },
                  "required": [
                    "geo_locations",
                    "age_min",
                    "age_max",
                    "publisher_platforms"
                  ],
                  "additionalProperties": false
                },
                "start_time": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                "end_time": {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                }
              },
              "required": [
                "operation",
                "object_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "create_ad"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "adset_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "creative_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "status": {
                  "default": "PAUSED",
                  "type": "string",
                  "const": "PAUSED"
                }
              },
              "required": [
                "operation",
                "name",
                "adset_id",
                "creative_id",
                "status"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "update_ad"
                },
                "object_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "creative_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "ACTIVE",
                    "PAUSED",
                    "ARCHIVED"
                  ]
                }
              },
              "required": [
                "operation",
                "object_id"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "create_creative"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "object_story_spec": {
                  "type": "object",
                  "properties": {
                    "page_id": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{1,24}$"
                    },
                    "instagram_user_id": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{1,24}$"
                    },
                    "link_data": {
                      "type": "object",
                      "properties": {
                        "link": {
                          "type": "string",
                          "maxLength": 2048,
                          "format": "uri"
                        },
                        "message": {
                          "type": "string",
                          "maxLength": 5000
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "image_hash": {
                          "type": "string",
                          "pattern": "^[a-fA-F0-9]{16,128}$"
                        },
                        "call_to_action": {
                          "type": "string",
                          "enum": [
                            "LEARN_MORE",
                            "SHOP_NOW",
                            "SIGN_UP",
                            "CONTACT_US"
                          ]
                        }
                      },
                      "required": [
                        "link",
                        "message",
                        "image_hash"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "required": [
                    "page_id",
                    "link_data"
                  ],
                  "additionalProperties": false
                },
                "object_story_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}_[1-9]\\d{1,24}$"
                }
              },
              "required": [
                "operation",
                "name"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "create_saved_audience"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "targeting": {
                  "type": "object",
                  "properties": {
                    "geo_locations": {
                      "type": "object",
                      "properties": {
                        "countries": {
                          "minItems": 1,
                          "maxItems": 25,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          }
                        }
                      },
                      "required": [
                        "countries"
                      ],
                      "additionalProperties": false
                    },
                    "age_min": {
                      "default": 18,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "age_max": {
                      "default": 65,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "genders": {
                      "minItems": 1,
                      "maxItems": 2,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number",
                            "const": 1
                          },
                          {
                            "type": "number",
                            "const": 2
                          }
                        ]
                      }
                    },
                    "locales": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "publisher_platforms": {
                      "minItems": 1,
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "facebook",
                          "instagram",
                          "threads"
                        ]
                      }
                    },
                    "facebook_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "feed",
                          "story",
                          "facebook_reels",
                          "video_feeds"
                        ]
                      }
                    },
                    "instagram_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "stream",
                          "story",
                          "reels",
                          "explore"
                        ]
                      }
                    },
                    "threads_positions": {
                      "maxItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "const": "threads_stream"
                      }
                    },
                    "custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    },
                    "excluded_custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    }
                  },
                  "required": [
                    "geo_locations",
                    "age_min",
                    "age_max",
                    "publisher_platforms"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "operation",
                "name",
                "targeting"
              ],
              "additionalProperties": false
            },
            {
              "type": "object",
              "properties": {
                "operation": {
                  "type": "string",
                  "const": "update_saved_audience"
                },
                "object_id": {
                  "type": "string",
                  "pattern": "^[1-9]\\d{1,24}$"
                },
                "name": {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 200
                },
                "targeting": {
                  "type": "object",
                  "properties": {
                    "geo_locations": {
                      "type": "object",
                      "properties": {
                        "countries": {
                          "minItems": 1,
                          "maxItems": 25,
                          "type": "array",
                          "items": {
                            "type": "string",
                            "pattern": "^[A-Z]{2}$"
                          }
                        }
                      },
                      "required": [
                        "countries"
                      ],
                      "additionalProperties": false
                    },
                    "age_min": {
                      "default": 18,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "age_max": {
                      "default": 65,
                      "type": "integer",
                      "minimum": 18,
                      "maximum": 65
                    },
                    "genders": {
                      "minItems": 1,
                      "maxItems": 2,
                      "type": "array",
                      "items": {
                        "anyOf": [
                          {
                            "type": "number",
                            "const": 1
                          },
                          {
                            "type": "number",
                            "const": 2
                          }
                        ]
                      }
                    },
                    "locales": {
                      "maxItems": 25,
                      "type": "array",
                      "items": {
                        "type": "integer",
                        "exclusiveMinimum": 0,
                        "maximum": 9007199254740991
                      }
                    },
                    "publisher_platforms": {
                      "minItems": 1,
                      "maxItems": 3,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "facebook",
                          "instagram",
                          "threads"
                        ]
                      }
                    },
                    "facebook_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "feed",
                          "story",
                          "facebook_reels",
                          "video_feeds"
                        ]
                      }
                    },
                    "instagram_positions": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "enum": [
                          "stream",
                          "story",
                          "reels",
                          "explore"
                        ]
                      }
                    },
                    "threads_positions": {
                      "maxItems": 1,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "const": "threads_stream"
                      }
                    },
                    "custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    },
                    "excluded_custom_audience_ids": {
                      "maxItems": 4,
                      "type": "array",
                      "items": {
                        "type": "string",
                        "pattern": "^[1-9]\\d{1,24}$"
                      }
                    }
                  },
                  "required": [
                    "geo_locations",
                    "age_min",
                    "age_max",
                    "publisher_platforms"
                  ],
                  "additionalProperties": false
                }
              },
              "required": [
                "operation",
                "object_id"
              ],
              "additionalProperties": false
            }
          ]
        },
        "reviewed_digest": {
          "type": "string",
          "pattern": "^[a-f0-9]{64}$"
        },
        "effects": {
          "type": "object",
          "properties": {
            "creates_object": {
              "type": "boolean"
            },
            "initial_status": {
              "anyOf": [
                {
                  "type": "string",
                  "const": "PAUSED"
                },
                {
                  "type": "null"
                }
              ]
            },
            "activates_delivery": {
              "type": "boolean"
            },
            "changes_budget": {
              "type": "boolean"
            },
            "changes_audience": {
              "type": "boolean"
            },
            "changes_creative": {
              "type": "boolean"
            },
            "currency": {
              "type": "string",
              "pattern": "^[A-Z]{3}$"
            },
            "timezone": {
              "type": "string",
              "minLength": 1,
              "maxLength": 100
            },
            "budget": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string",
                      "enum": [
                        "daily",
                        "lifetime"
                      ]
                    },
                    "amount_minor": {
                      "type": "string",
                      "pattern": "^[1-9]\\d{0,11}$"
                    }
                  },
                  "required": [
                    "kind",
                    "amount_minor"
                  ],
                  "additionalProperties": false
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "creates_object",
            "initial_status",
            "activates_delivery",
            "changes_budget",
            "changes_audience",
            "changes_creative",
            "currency",
            "timezone",
            "budget"
          ],
          "additionalProperties": false
        },
        "live_approval": {
          "type": "object",
          "properties": {
            "required": {
              "type": "boolean"
            },
            "state": {
              "type": "string",
              "enum": [
                "not_required",
                "missing",
                "approved",
                "expired",
                "revoked",
                "invalid"
              ]
            },
            "reason": {
              "anyOf": [
                {
                  "type": "string",
                  "maxLength": 100
                },
                {
                  "type": "null"
                }
              ]
            },
            "expires_at": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "date-time",
                  "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
                },
                {
                  "type": "null"
                }
              ]
            },
            "approved_by": {
              "anyOf": [
                {
                  "type": "string",
                  "format": "uuid"
                },
                {
                  "type": "null"
                }
              ]
            }
          },
          "required": [
            "required",
            "state",
            "reason",
            "expires_at",
            "approved_by"
          ],
          "additionalProperties": false
        },
        "provider_object_id": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^[1-9]\\d{1,24}$"
            },
            {
              "type": "null"
            }
          ]
        },
        "failure_code": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 100
            },
            {
              "type": "null"
            }
          ]
        },
        "created_at": {
          "type": "string",
          "format": "date-time",
          "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
        },
        "completed_at": {
          "anyOf": [
            {
              "type": "string",
              "format": "date-time",
              "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
            },
            {
              "type": "null"
            }
          ]
        }
      },
      "required": [
        "id",
        "workspace_id",
        "advertising_account_id",
        "mutation_id",
        "status",
        "command",
        "reviewed_digest",
        "effects",
        "live_approval",
        "provider_object_id",
        "failure_code",
        "created_at",
        "completed_at"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "contract_version",
    "prepare_token",
    "expires_at",
    "action"
  ],
  "$schema": "http://json-schema.org/draft-07/schema#",
  "additionalProperties": false
}

टूल कॉल का उदाहरण

उदाहरणों में स्कीमा से जाँचे काल्पनिक मान हैं। IDs को अधिकृत IDs, मीडिया को तैयार एसेट और तारीखों को पुष्ट प्रकाशन समय से बदलें। राइट सबमिट करने से पहले खाते की पात्रता जाँचें। यह पेज API अनुरोध नहीं भेजता।

{
  "name": "sosoapi_ads_actions_prepare",
  "arguments": {
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "advertising_account_id": "11111111-1111-4111-8111-111111111111",
    "mutation_id": "11111111-1111-4111-8111-111111111111",
    "command": {
      "operation": "create_campaign",
      "name": "example",
      "objective": "OUTCOME_AWARENESS"
    }
  }
}

structuredContent

{
  "contract_version": "advertising/v1",
  "prepare_token": "exampleaaaaaaaaaaaaaaaaaaaaaaaaa",
  "expires_at": "2099-01-15T09:00:00Z",
  "action": {
    "id": "11111111-1111-4111-8111-111111111111",
    "workspace_id": "11111111-1111-4111-8111-111111111111",
    "advertising_account_id": "11111111-1111-4111-8111-111111111111",
    "mutation_id": "11111111-1111-4111-8111-111111111111",
    "status": "prepared",
    "command": {
      "operation": "create_campaign",
      "name": "example",
      "objective": "OUTCOME_AWARENESS",
      "special_ad_categories": [],
      "status": "PAUSED"
    },
    "reviewed_digest": "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
    "effects": {
      "creates_object": false,
      "initial_status": null,
      "activates_delivery": false,
      "changes_budget": false,
      "changes_audience": false,
      "changes_creative": false,
      "currency": "USD",
      "timezone": "UTC",
      "budget": null
    },
    "live_approval": {
      "required": false,
      "state": "not_required",
      "reason": null,
      "expires_at": null,
      "approved_by": null
    },
    "provider_object_id": null,
    "failure_code": null,
    "created_at": "2099-01-15T09:00:00Z",
    "completed_at": null
  }
}
MCP इंस्टॉल या कनेक्ट करें