Zernio · Schema
Ad
Marketing InfrastructureSocial Media APIAdvertising APICommunication APICreator ToolsAgent Platforms
Properties
| Name | Type | Description |
|---|---|---|
| _id | string | |
| name | string | |
| platform | string | |
| profileId | string | Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else |
| status | object | Delivery status. Derived from the platform `effective_status`, so it inherits ancestor pauses (an ACTIVE ad under a PAUSED campaign reads `paused`). For the ad's own on/off toggle use `configuredStatu |
| configuredStatus | stringnull | The ad's own on/off switch as configured on the platform, independent of its parents. An ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`. **Sources:** |
| reviewStatus | object | Platform review state of this ad, independent of delivery `status` / `configuredStatus`. Absent when the platform reports no review signal. Google: from `ad_group_ad.policy_summary.approval_status`, a |
| adType | string | |
| creativeType | stringnull | Creative format. Returned by `GET /v1/ads`, `GET /v1/ads/{adId}` and the ad nodes of `GET /v1/ads/tree`. `text` was added in 1.522.0, so treat unknown values as unclassified. - Google: from the ad typ |
| platformCreativeType | string | The platform's own creative or ad type, as stored by the last sync. Omitted when the platform reports none. - Google: `ad_group_ad.ad.type` (e.g. `RESPONSIVE_SEARCH_AD`, `RESPONSIVE_DISPLAY_AD`, `VIDE |
| goal | string | Available goals vary by platform: - **Meta (Facebook/Instagram):** all 11, including `lead_conversion` (website pixel lead optimization), `catalog_sales` (Advantage+ catalog ads), `page_likes` (Page L |
| isExternal | boolean | True for ads synced from platform ad managers |
| synced | boolean | Only on GET /v1/ads/{adId}. True when the ad comes from Zernio's synced store; false when it was read live from Meta because it is not synced yet (request made with `accountId`). An unsynced ad has no |
| budget | objectnull | |
| metrics | object | |
| platformAdId | string | |
| platformAdAccountId | string | |
| platformCampaignId | string | |
| platformAdSetId | string | |
| campaignName | string | |
| adSetName | string | |
| platformObjective | stringnull | The platform's own campaign objective, verbatim, alongside the normalized `goal` it maps to. The mapping is many-to-one, so `goal` alone cannot be mapped back to it. - Meta: campaign `objective` (e.g. |
| optimizationGoal | stringnull | What the delivery system optimizes for, at ad-set level. The value space depends on `platform`: - Meta: ad set `optimization_goal` (e.g. OFFSITE_CONVERSIONS, VALUE, LEAD_GENERATION, LINK_CLICKS). - Li |
| costType | stringnull | LinkedIn only. The campaign's EFFECTIVE cost model (billing event) as applied by LinkedIn, refreshed on every sync rather than echoing what was passed on create. `null` for non-LinkedIn ads. - `CPM`: |
| servingStatuses | array | LinkedIn only. Why the parent campaign is (or is not) delivering, verbatim from LinkedIn. A campaign can report `status: ACTIVE` and still serve nothing; this array says so. - `[]`: no serving data (a |
| platformAdAccountName | stringnull | Human-readable advertiser/account name (Meta `AdAccount.name`, TikTok `advertiser_name`, LinkedIn / X / Pinterest equivalents). Refreshed every sync so platform-side renames propagate within one cycle |
| platformCreatedAt | stringnull | Platform-reported creation timestamp (Meta `created_time`, TikTok `create_time`). Read this field to sort or filter by when the ad was actually created on the platform. Distinct from `createdAt`, whic |
| bidStrategy | object | Ad-set bid strategy (overrides campaign level on Meta). Populated for Meta and TikTok. TikTok's native `bid_type` is normalized to the cross-platform Meta enum: `BID_TYPE_NO_BID` -> `LOWEST_COST_WITHO |
| bidAmount | numbernull | Bid amount in WHOLE currency units of the ad account (USD: 5 = $5.00; JPY: 100 = ¥100). - Meta: `bid_amount` on the ad set (smallest-denomination int, decoded here). Populated when bidStrategy is `LOW |
| roasAverageFloor | numbernull | Minimum ROAS as a decimal multiplier (2.0 = 2.0x ROAS). Populated when bidStrategy is `LOWEST_COST_WITH_MIN_ROAS`. - Meta source: decoded from `bid_constraints.roas_average_floor` (Meta stores as fixe |
| specialAdCategories | array | Special ad categories declared when Zernio created this ad (`specialAdCategories` on POST /v1/ads/create or /v1/ads/boost), e.g. ["HOUSING"]. Empty or absent when none was declared or the ad was creat |
| promotedObject | objectnull | Meta promoted object containing conversion event details. Structure varies by objective. Only present for Meta ads. |
| creative | objectnull | Platform-specific creative data. Fields vary by platform. |
| targeting | object | The ad set's targeting (age, gender, geo, interests, placements, audience inclusions/exclusions). May be absent if the ad set exposes no targeting or the lookup fails. - Ads created through Zernio: th |
| schedule | objectnull | Delivery window as UTC instants. For ads created through Zernio this is the start and end the platform stored (on TikTok, read back from the ad group, whose schedule times TikTok keeps in UTC); `start |
| rejectionReason | string | |
| createdAt | string | |
| updatedAt | string |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://artifacts.apis.io/zernio-com/json-schema/zernio-com-ad-schema.json",
"title": "Ad",
"x-generated": "2026-11-29",
"x-method": "derived",
"x-generator": "derive-json-schema.py",
"x-source": "openapi/zernio-com-openapi.json#/components/schemas/Ad",
"type": "object",
"properties": {
"_id": {
"type": "string"
},
"name": {
"type": "string"
},
"platform": {
"type": "string",
"enum": [
"facebook",
"instagram",
"tiktok",
"linkedin",
"pinterest",
"google",
"twitter",
"openai",
"reddit",
"microsoft",
"amazon"
]
},
"profileId": {
"type": "string",
"description": "Profile the row belongs to: the profile of its owning connection (`accountId`); when that connection no longer exists, the requested profile (`profileId` filter) that reaches the row ad account, else the profile of the oldest connection of the row owner that reaches it."
},
"status": {
"allOf": [
{
"$ref": "#/$defs/AdStatus"
}
],
"description": "Delivery status. Derived from the platform `effective_status`, so it inherits ancestor pauses (an ACTIVE ad under a PAUSED campaign reads `paused`). For the ad's own on/off toggle use `configuredStatus`; for the review state use `reviewStatus`."
},
"configuredStatus": {
"type": [
"string",
"null"
],
"description": "The ad's own on/off switch as configured on the platform, independent of its parents. An ACTIVE ad under a paused ad set or campaign still reads ACTIVE here while `status` reads `paused`.\n\n**Sources:**\n\n- Meta: `configured_status`.\n- TikTok: ad `operation_status` (ENABLE -> ACTIVE, DISABLE -> PAUSED).\n- ChatGPT (OpenAI): ad `status` (ACTIVE / PAUSED, plus ARCHIVED on OpenAI).\n- Reddit: `configured_status` (ACTIVE / PAUSED / ARCHIVED).\n\nOn create it is read back from the platform, not copied from the request. A `PAUSED` create pauses only the top-most object it creates, so an ad under a new paused campaign or ad set reads ACTIVE with `status: paused`; only an ad attached to an existing ad set reads PAUSED.\n\nDistinct from `status`, the ancestor-cascaded delivery status. Present only for Meta, TikTok, OpenAI and Reddit ads created or synced after the field was added for that platform; null otherwise.\n"
},
"reviewStatus": {
"allOf": [
{
"$ref": "#/$defs/AdReviewStatus"
}
],
"description": "Platform review state of this ad, independent of delivery `status` / `configuredStatus`. Absent when the platform reports no review signal. Google: from `ad_group_ad.policy_summary.approval_status`, and for a Performance Max asset group from its primary status (DISAPPROVED -> `rejected`, under review -> `in_review`, ELIGIBLE or LIMITED -> `approved`)."
},
"adType": {
"type": "string",
"enum": [
"boost",
"standalone"
]
},
"creativeType": {
"type": [
"string",
"null"
],
"enum": [
"carousel",
"video",
"document",
"image",
"text",
null
],
"description": "Creative format. Returned by `GET /v1/ads`, `GET /v1/ads/{adId}` and the ad nodes of `GET /v1/ads/tree`. `text` was added in 1.522.0, so treat unknown values as unclassified.\n\n- Google: from the ad type. Search ads (`RESPONSIVE_SEARCH_AD`, `EXPANDED_TEXT_AD`, `TEXT_AD`, `EXPANDED_DYNAMIC_SEARCH_AD`, `CALL_AD`) are `text`, video ads or any ad with a YouTube video are `video`, `DEMAND_GEN_CAROUSEL_AD` is `carousel`, other ads with images are `image`.\n- Pinterest: from `creative_type`. `VIDEO` and `MAX_VIDEO` are `video`, `CAROUSEL` is `carousel`, `REGULAR` and `SHOPPING` are `image`, others are `image` when the pin has an image.\n- X: from the tweet media. `photo` is `image`, `video` and `animated_gif` are `video`. Card and text-only tweets are `null`.\n- Other platforms: from the media the creative carries. Two or more images or cards are `carousel`.\n\n`null` when nothing classifies it: no media and no known format, or a Performance Max asset group. A Google ad not re-synced since 1.522.0 is still classified by its media until the next sync (about 3 hours).\n"
},
"platformCreativeType": {
"type": "string",
"description": "The platform's own creative or ad type, as stored by the last sync. Omitted when the platform reports none.\n\n- Google: `ad_group_ad.ad.type` (e.g. `RESPONSIVE_SEARCH_AD`, `RESPONSIVE_DISPLAY_AD`, `VIDEO_RESPONSIVE_AD`).\n- Pinterest: the ad `creative_type` (e.g. `REGULAR`, `VIDEO`, `CAROUSEL`).\n- X: the promoted tweet's media type (`photo`, `video`, `animated_gif`).\n- TikTok: `ad_format`. LinkedIn: the campaign `format`. Meta: the creative `object_type`.\n"
},
"goal": {
"type": "string",
"enum": [
"engagement",
"traffic",
"awareness",
"video_views",
"lead_generation",
"lead_conversion",
"conversions",
"app_promotion",
"catalog_sales",
"page_likes",
"page_visits",
"job_applicants"
],
"description": "Available goals vary by platform:\n\n- **Meta (Facebook/Instagram):** all 11, including `lead_conversion` (website pixel lead optimization), `catalog_sales` (Advantage+ catalog ads), `page_likes` (Page Likes conversion location under Engagement) and `page_visits` (Page visits and followers under Traffic).\n- **TikTok:** engagement, traffic, awareness, video_views, lead_generation, conversions, app_promotion.\n- **LinkedIn:** all Meta goals except app_promotion / lead_conversion / catalog_sales / page_likes / page_visits.\n- **X:** engagement, traffic, awareness, video_views, app_promotion.\n- **Pinterest:** only engagement, traffic, awareness, video_views.\n- **Google Ads:** only engagement, traffic, awareness (video_views is rejected at create with 422 FEATURE_NOT_AVAILABLE)."
},
"isExternal": {
"type": "boolean",
"description": "True for ads synced from platform ad managers"
},
"synced": {
"type": "boolean",
"description": "Only on GET /v1/ads/{adId}. True when the ad comes from Zernio's synced store; false when it was read live from Meta because it is not synced yet (request made with `accountId`). An unsynced ad has no `id`."
},
"budget": {
"type": [
"object",
"null"
],
"properties": {
"amount": {
"type": "number"
},
"type": {
"type": "string",
"enum": [
"daily",
"lifetime"
]
},
"daily": {
"type": "number",
"description": "LinkedIn and X only. The daily budget (LinkedIn: the parent campaign's `dailyBudget`; X: the line item's, or the campaign's when the line item has none). Both allow a daily AND a lifetime budget together, which `amount`/`type` cannot express (daily wins there); read `daily` and `lifetime` to see both."
},
"lifetime": {
"type": "number",
"description": "LinkedIn and X only. The lifetime total (LinkedIn: the parent campaign's `totalBudget`; X: `total_budget_amount_local_micro`, for example the `lifetimeBudgetCap` of a boost), readable even when a daily budget is also set."
},
"pacing": {
"type": "string",
"description": "LinkedIn only. The campaign's `pacingStrategy`: how fast LinkedIn may spend the budget. Typically LINEAR or ACCELERATED; the list is open."
}
}
},
"metrics": {
"anyOf": [
{
"$ref": "#/$defs/AdMetrics"
},
{
"type": "null"
}
]
},
"platformAdId": {
"type": "string"
},
"platformAdAccountId": {
"type": "string"
},
"platformCampaignId": {
"type": "string"
},
"platformAdSetId": {
"type": "string"
},
"campaignName": {
"type": "string"
},
"adSetName": {
"type": "string"
},
"platformObjective": {
"type": [
"string",
"null"
],
"description": "The platform's own campaign objective, verbatim, alongside the normalized `goal` it maps to.\nThe mapping is many-to-one, so `goal` alone cannot be mapped back to it.\n\n- Meta: campaign `objective` (e.g. OUTCOME_SALES, OUTCOME_LEADS, OUTCOME_TRAFFIC).\n- LinkedIn: campaign `objectiveType` (e.g. WEBSITE_VISIT, LEAD_GENERATION, BRAND_AWARENESS,\n VIDEO_VIEW, ENGAGEMENT, JOB_APPLICANT, WEBSITE_CONVERSION). The list is open, so treat an\n unrecognized value as valid rather than an error.\n- TikTok and Pinterest: their raw objective_type.\n\nNull on platforms that report none, and on LinkedIn ads not yet re-synced.\n"
},
"optimizationGoal": {
"type": [
"string",
"null"
],
"description": "What the delivery system optimizes for, at ad-set level. The value space depends on `platform`:\n\n- Meta: ad set `optimization_goal` (e.g. OFFSITE_CONVERSIONS, VALUE, LEAD_GENERATION, LINK_CLICKS).\n- LinkedIn: the campaign's EFFECTIVE `optimizationTargetType`, refreshed from LinkedIn on every sync rather than echoing the create input. `NONE` means manual bidding: a real value, not missing data.\n- LinkedIn auto-bid values: MAX_IMPRESSION / MAX_CLICK / MAX_CONVERSION / MAX_VIDEO_VIEW / MAX_LEAD / MAX_REACH.\n- LinkedIn target-cost values: TARGET_COST_PER_CLICK / TARGET_COST_PER_IMPRESSION / TARGET_COST_PER_VIDEO_VIEW. Cost-cap values: the CAP_COST_AND_MAXIMIZE_* family.\n"
},
"costType": {
"type": [
"string",
"null"
],
"description": "LinkedIn only. The campaign's EFFECTIVE cost model (billing event) as applied by LinkedIn, refreshed on every sync rather than echoing what was passed on create. `null` for non-LinkedIn ads.\n\n- `CPM`: cost per thousand impressions. For campaign type SPONSORED_INMAILS, `CPM` bills as cost-per-send x 1000.\n- `CPC`: cost per click.\n- `CPV`: cost per video view.\n\nOn LinkedIn this is the axis that pairs with `bidAmount`; there is no `bidStrategy`.\n"
},
"servingStatuses": {
"type": "array",
"items": {
"type": "string"
},
"description": "LinkedIn only. Why the parent campaign is (or is not) delivering, verbatim from LinkedIn. A campaign can report `status: ACTIVE` and still serve nothing; this array says so.\n\n- `[]`: no serving data (a non-LinkedIn ad, or a LinkedIn ad not yet re-synced).\n- `[\"RUNNABLE\"]`: the campaign is eligible to serve.\n- Anything else is a hold. Known values: ACCOUNT_SERVING_HOLD, ACCOUNT_TOTAL_BUDGET_HOLD, ACCOUNT_END_DATE_HOLD, CAMPAIGN_START_DATE_HOLD, CAMPAIGN_END_DATE_HOLD, CAMPAIGN_TOTAL_BUDGET_HOLD, CAMPAIGN_AUDIENCE_COUNT_HOLD, CAMPAIGN_GROUP_START_DATE_HOLD, CAMPAIGN_GROUP_END_DATE_HOLD, CAMPAIGN_GROUP_TOTAL_BUDGET_HOLD, CAMPAIGN_GROUP_STATUS_HOLD, STOPPED.\n\nThe list is open on purpose: treat unrecognized values as holds, not errors. End-date and total-budget holds are terminal and surface as `status: completed`; the rest surface as `status: paused`.\n\nA hold is not the only cause of zero delivery: with manual, target-cost or cost-cap bidding, a `bidAmount` of 0 stops delivery while `servingStatuses` still reads `[\"RUNNABLE\"]`. Check `costType` / `bidAmount` / `optimizationGoal` as well.\n"
},
"platformAdAccountName": {
"type": [
"string",
"null"
],
"description": "Human-readable advertiser/account name (Meta `AdAccount.name`, TikTok\n`advertiser_name`, LinkedIn / X / Pinterest equivalents). Refreshed every\nsync so platform-side renames propagate within one cycle. `null` when the\nplatform doesn't return a name or the sync hasn't run yet.\n"
},
"platformCreatedAt": {
"type": [
"string",
"null"
],
"format": "date-time",
"description": "Platform-reported creation timestamp (Meta `created_time`, TikTok `create_time`). Read this field to sort or filter by when the ad was actually created on the platform.\n\nDistinct from `createdAt`, which is when Zernio first synced the doc.\n\n`null` for legacy ads synced before this field was added; aggregations then fall back to `createdAt`.\n"
},
"bidStrategy": {
"anyOf": [
{
"$ref": "#/$defs/BidStrategy"
},
{
"type": "null"
}
],
"description": "Ad-set bid strategy (overrides campaign level on Meta). Populated for Meta and\nTikTok. TikTok's native `bid_type` is normalized to the cross-platform Meta enum:\n`BID_TYPE_NO_BID` -> `LOWEST_COST_WITHOUT_CAP`, `BID_TYPE_CUSTOM` ->\n`LOWEST_COST_WITH_BID_CAP`, deep_bid_type=MIN_ROAS or roas_bid>0 ->\n`LOWEST_COST_WITH_MIN_ROAS`, `BID_TYPE_MAX_CONVERSION` -> `LOWEST_COST_WITHOUT_CAP`.\n"
},
"bidAmount": {
"type": [
"number",
"null"
],
"description": "Bid amount in WHOLE currency units of the ad account (USD: 5 = $5.00; JPY: 100 = ¥100).\n\n- Meta: `bid_amount` on the ad set (smallest-denomination int, decoded here). Populated when bidStrategy is `LOWEST_COST_WITH_BID_CAP` or `COST_CAP`; `null` for auto-bid (`LOWEST_COST_WITHOUT_CAP`).\n- TikTok: priority order `bid_price` -> `conversion_bid_price` -> `deep_cpa_bid` (whichever is set on the ad group). TikTok stores all three in whole currency units.\n- LinkedIn: the campaign's EFFECTIVE `unitCost`, refreshed on every sync rather than echoing what was passed on create. Its meaning depends on the bidding mode implied by `optimizationGoal`: bid amount (manual), target cost, or cost cap.\n- LinkedIn pairing: it pairs with `costType`, NOT with `bidStrategy`, which LinkedIn does not have. A value of `0` is a real, delivery-stopping configuration, not \"unset\", so do not gate this field on `bidStrategy` for LinkedIn ads.\n\nSource: facebook-business-sdk-codegen api_specs/specs/AdSet.json (`bid_amount`).\n"
},
"roasAverageFloor": {
"type": [
"number",
"null"
],
"description": "Minimum ROAS as a decimal multiplier (2.0 = 2.0x ROAS). Populated when bidStrategy\nis `LOWEST_COST_WITH_MIN_ROAS`.\n\n- Meta source: decoded from `bid_constraints.roas_average_floor` (Meta stores as\n fixed-point int × 10000; we return the decimal).\n- TikTok source: `roas_bid` on the ad group (already a decimal).\n\nSource: facebook-business-sdk-codegen api_specs/specs/AdCampaignBidConstraint.json.\n"
},
"specialAdCategories": {
"type": "array",
"items": {
"type": "string"
},
"description": "Special ad categories declared when Zernio created this ad (`specialAdCategories` on POST /v1/ads/create or /v1/ads/boost), e.g. [\"HOUSING\"]. Empty or absent when none was declared or the ad was created outside Zernio."
},
"promotedObject": {
"type": [
"object",
"null"
],
"description": "Meta promoted object containing conversion event details. Structure varies by objective. Only present for Meta ads.",
"properties": {
"custom_event_type": {
"type": "string",
"description": "Conversion event type (e.g. PURCHASE, LEAD, COMPLETE_REGISTRATION, ADD_TO_CART)"
},
"pixel_id": {
"type": "string",
"description": "Meta pixel ID"
},
"page_id": {
"type": "string",
"description": "Facebook page ID"
},
"application_id": {
"type": "string",
"description": "Facebook app ID"
},
"product_set_id": {
"type": "string",
"description": "Product catalog set ID"
}
}
},
"creative": {
"type": [
"object",
"null"
],
"description": "Platform-specific creative data. Fields vary by platform.",
"properties": {
"assetGroup": {
"$ref": "#/$defs/GooglePmaxAssetGroupInput",
"description": "Initial Performance Max asset group input. Use the asset-groups endpoint for current Google assets."
},
"assetGroupResourceName": {
"type": "string",
"description": "Google resource name of the created Performance Max asset group."
},
"headlines": {
"type": "array",
"maxItems": 15,
"items": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/GoogleRsaHeadline"
}
]
},
"description": "Google RSA: the headline assets as objects (3 to 15). Meta: every title variation of the creative (`asset_feed_spec.titles`) as strings, the same shape as the `headlines` create input. Present only with 2 or more titles; a single title is `headline`."
},
"descriptions": {
"type": "array",
"maxItems": 4,
"items": {
"oneOf": [
{
"type": "string"
},
{
"$ref": "#/$defs/GoogleRsaDescription"
}
]
},
"description": "Google RSA: the description assets as objects (2 to 4). Meta: every description variation of the creative (`asset_feed_spec.descriptions`) as strings, the same shape as the `descriptions` create input. Present only with 2 or more descriptions; a single one is `description`."
},
"headline": {
"type": "string",
"description": "Meta: the creative's title (`link_data.name`, `video_data.title`, or the first `asset_feed_spec.titles` entry). Absent when the creative has none."
},
"bodies": {
"type": "array",
"items": {
"type": "string"
},
"description": "Meta: every primary text variation of the creative (`asset_feed_spec.bodies`), the same shape as the `bodies` create input. Present only with 2 or more texts; a single text is `body`."
},
"description": {
"type": "string",
"description": "Meta: the creative's description under the title (`link_data.description`, `video_data.link_description`, or the first `asset_feed_spec.descriptions` entry)."
},
"callToAction": {
"type": "string",
"description": "Meta: the call to action type (`call_to_action.type`, or the first `asset_feed_spec.call_to_action_types` entry), e.g. LEARN_MORE or SIGN_UP. TikTok: the ad's `call_to_action`."
},
"identityId": {
"type": "string",
"description": "TikTok only, with `live=true` on GET /v1/ads/{adId}: the identity the ad runs as (`identity_id`), the same id GET /v1/ads/tiktok-identities lists."
},
"identityType": {
"type": "string",
"description": "TikTok only, with `live=true`: the identity type (`identity_type`), e.g. TT_USER, BC_AUTH_TT, CUSTOMIZED_USER or AUTH_CODE."
},
"identityAuthorizedBcId": {
"type": "string",
"description": "TikTok only, with `live=true`: the Business Center that authorized a BC_AUTH_TT identity (`identity_authorized_bc_id`)."
},
"tiktokItemId": {
"type": "string",
"description": "TikTok only, with `live=true`: the TikTok post a Spark ad runs (`tiktok_item_id`)."
},
"leadGenFormId": {
"type": "string",
"description": "Meta: the instant form the call to action opens (`call_to_action.value.lead_gen_form_id`, or the asset feed's `call_to_actions` on a dynamic creative), the same value as the `leadGenFormId` create input. Absent on ads without a lead form."
},
"caption": {
"type": "string",
"description": "Meta: the display link of a link (image) ad (`link_data.caption`). Absent when the creative has none."
},
"callToActionLink": {
"type": [
"string",
"null"
],
"description": "Meta: the `GET_DIRECTIONS` map location sent as `callToActionLink` on POST /v1/ads/create, the same value as that input. Absent on ads created without it; null once PUT /v1/ads/{adId} changed the call to action, which points the button back at `linkUrl`."
},
"imageHash": {
"type": "string",
"description": "Meta: the ad image hash (`image_hash`), reusable as `imageHash` on POST /v1/ads/create within the same ad account. `thumbnailUrl` and `mediaUrls` carry its stable full resolution permalink when Meta resolves it."
},
"urlTags": {
"type": [
"string",
"null"
],
"description": "Meta: the creative's `url_tags` query string appended to the destination URL."
},
"finalUrls": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"format": "uri"
},
"description": "Google RSA only. Replaces final URLs. Omitted lists stay unchanged."
},
"thumbnailUrl": {
"type": [
"string",
"null"
],
"description": "Primary thumbnail/image URL"
},
"imageUrl": {
"type": "string",
"description": "Alternative image URL"
},
"assetResourceName": {
"type": "string",
"description": "Google Display only. Resource name of the landscape marketing image asset (`creative.imageUrl`), for example customers/1234567890/assets/123. Set at creation and updated when PUT /v1/ads/{adId} replaces `creative.imageUrl`; replacing only `creative.squareImageUrl` leaves it unchanged."
},
"assets": {
"type": "object",
"description": "Google Display only. Native Google asset resource name of each image on the responsive display ad, keyed by Google's image role. Set at creation for ads created through Zernio. PUT /v1/ads/{adId} overwrites only the role it replaces: `creative.imageUrl` updates `marketingImages`, `creative.squareImageUrl` updates `squareMarketingImages`. Absent on ads synced from Google.",
"properties": {
"marketingImages": {
"type": "array",
"description": "Landscape (1.91:1) marketing images. The first item matches `assetResourceName`.",
"items": {
"type": "object",
"properties": {
"resourceName": {
"type": "string",
"description": "Google asset resource name, for example customers/1234567890/assets/123."
}
}
}
},
"squareMarketingImages": {
"type": "array",
"description": "Square (1:1) marketing images.",
"items": {
"type": "object",
"properties": {
"resourceName": {
"type": "string",
"description": "Google asset resource name, for example customers/1234567890/assets/124."
}
}
}
}
}
},
"videoId": {
"type": [
"string",
"null"
],
"description": "Meta video ID for VIDEO-type ads (TikTok: the ad library `video_id`). Null for non-video ads. Callers that need an embeddable MP4 can call GET /{videoId}?fields=source with the page access token."
},
"videoUrl": {
"type": [
"string",
"null"
],
"description": "Public Facebook watch URL for VIDEO-type ads (https://www.facebook.com/watch/?v={videoId}). Null for non-video ads."
},
"creativeId": {
"type": [
"string",
"null"
],
"description": "Meta ad creative id backing this ad, refreshed from Meta on every sync. Reusable via existingCreativeId on POST /v1/ads/create, and readable raw through GET /v1/ads/creatives/{creativeId}. Ads synced from Meta also carry it as the legacy `id` key."
},
"creativeFeatures": {
"$ref": "#/$defs/MetaCreativeFeatures",
"description": "Meta only. The creativeFeatures map sent at creation (degrees_of_freedom_spec.creative_features_spec). Absent on ads synced from Meta."
},
"catalog": {
"type": "object",
"description": "Meta catalog template ads created through Zernio only (absent on ads synced from Meta).",
"properties": {
"productSetId": {
"type": "string",
"description": "The creative's product_set_id."
},
"format": {
"type": "string",
"enum": [
"single_image",
"carousel_images_multi_items",
"carousel_images_single_item",
"carousel_slideshows"
],
"description": "object_story_spec.template_data.format_option, from catalogFormat."
},
"formatTransformationSpec": {
"type": "array",
"description": "The format_transformation_spec sent on the creative, as Meta's raw objects. Present for single_image.",
"items": {
"type": "object",
"properties": {
"format": {
"type": "string"
},
"data_source": {
"type": "array",
"items": {
"type": "string"
}
}
}
}
}
}
},
"objectType": {
"type": "string",
"description": "Meta creative object_type (e.g. SHARE, VIDEO, PRIVACY_CHECK_FAIL, POST_DELETED). Use this to render state-aware previews: when Meta moderation strips image/video fields, only thumbnailUrl at 64x64 is available."
},
"objectStoryId": {
"type": [
"string",
"null"
],
"description": "Meta creative `object_story_id` (the SHARE reference). Frequently absent, because Meta omits it for SHARE creatives. Use effectiveObjectStoryId instead."
},
"effectiveObjectStoryId": {
"type": [
"string",
"null"
],
"description": "Meta `effective_object_story_id`, the `{pageId}_{postId}` of the Facebook post the ad's engagement (comments) lives on. Pass to GET /v1/ads?effectiveObjectStoryId= to map a Business-Manager-visible post back to this ad; GET /v1/ads/{adId}/comments resolves comments against it."
},
"pageId": {
"type": [
"string",
"null"
],
"description": "Facebook Page backing the creative (Meta only). What the `pageId` filter on /v1/ads, /v1/ads/campaigns and /v1/ads/tree matches against. Absent for non-Meta ads and rare Meta creatives with no page signal."
},
"effectiveInstagramMediaId": {
"type": [
"string",
"null"
],
"description": "Meta `effective_instagram_media_id`, the Instagram media the ad's engagement lives on. For a boosted reel it can differ from the reel you boosted: Meta's promoted rendition, not a duplicate. Pass to GET /v1/ads?effectiveInstagramMediaId= to map a Business-Manager-visible IG post back to this ad."
},
"instagramUserId": {
"type": [
"string",
"null"
],
"description": "Meta `instagram_user_id`, the Instagram-scoped business ID that owns the boosted media."
},
"instagramPermalinkUrl": {
"type": [
"string",
"null"
],
"description": "Meta `instagram_permalink_url`, the public Instagram post URL of the boosted media."
},
"mediaUrls": {
"type": "array",
"items": {
"type": "string"
},
"description": "All media URLs for this ad (carousel images, multiple assets). Populated for Meta (carousel child_attachments), Google Ads (responsive display marketing_images), and LinkedIn (multi-image posts)."
},
"carouselCards": {
"type": "array",
"description": "Meta only today. The carousel's cards in display order, one per Meta `link_data.child_attachments` entry, using the same field names as the `carouselCards` create input. Absent on non-carousel ads and other platforms.\n\n- Synced from Meta: `imageUrl` is resolved exactly like `mediaUrls` (the stable `/adimages` permalink first), so cards with an image line up with `mediaUrls` in order. A card whose image Meta does not resolve keeps its place without `imageUrl`.\n- Created through Zernio: starts as the cards you sent.\n- Synced carousels stored before this field existed fill it in on their next sync.\n",
"items": {
"type": "object",
"properties": {
"imageUrl": {
"type": "string",
"description": "Card image, resolved like the matching `mediaUrls` entry. Absent when Meta returns no resolvable image for the card."
},
"imageHash": {
"type": "string",
"description": "Meta ad image hash of the card image (`image_hash`)."
},
"headline": {
"type": "string",
"description": "Card title (Meta `name`)."
},
"description": {
"type": "string",
"description": "Card description, under the title (Meta `description`)."
},
"linkUrl": {
"type": "string",
"description": "Card destination URL (Meta `link`)."
},
"callToAction": {
"type": "string",
"description": "Card call to action type (Meta `call_to_action.type`), e.g. SHOP_NOW or WATCH_MORE."
},
"videoId": {
"type": "string",
"description": "Meta video id when the card is a video (`video_id`)."
}
}
}
},
"assetFeed": {
"type": "object",
"description": "Meta only. The media of an asset feed creative (placement or language customization, dynamic creative). Absent on other creatives.\n\nSynced ads stored before this field existed fill it in when they next change on Meta.\n",
"properties": {
"optimizationType": {
"type": [
"string",
"null"
],
"description": "Meta `optimization_type`, e.g. PLACEMENT, LANGUAGE or REGULAR (dynamic creative)."
},
"images": {
"type": "array",
"items": {
"type": "object",
"properties": {
"hash": {
"type": "string",
"description": "Meta ad image hash."
},
"url": {
"type": [
"string",
"null"
],
"description": "Image URL, the stable permalink when Meta returns one."
}
}
}
},
"videos": {
"type": "array",
"items": {
"type": "object",
"properties": {
"videoId": {
"type": "string",
"description": "Meta video id."
},
"thumbnailUrl": {
"type": [
"string",
"null"
],
"description": "Video poster URL."
}
}
}
}
}
},
"isServing": {
"type": [
"boolean",
"null"
],
"description": "LinkedIn only. Whether LinkedIn is currently serving this specific creative. Complements the ad-level `servingStatuses`, which describes the parent campaign."
},
"adFormat": {
"type": [
"s
# --- truncated at 32 KB (67 KB total) ---
# Full source: https://artifacts.apis.io/zernio-com/json-schema/zernio-com-ad-schema.json
Work with this as data
Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for schemas
4 MCP tools reach this
find_json_schemasBrowse and filter every JSON Schema in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/zernio-com-ad"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.