PeumeAPI

Ads

Create standalone ad

Creates a paid ad with your own creative, building the campaign and ad set it needs or adding it to existing ones.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/create-standalone-ad \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "adAccountId": "your adAccountId",
    "buyingType": "AUCTION",
    "additionalHeadlines": [
      "Schedule Your Posts",
      {
        "text": "Build With example",
        "pinnedField": "HEADLINE_2"
      }
    ],
    "additionalDescriptions": [
      "Build social publishing into your application.",
      {
        "text": "Connect social accounts with one API.",
        "pinnedField": "DESCRIPTION_2"
      }
    ],
    "gender": "all"
  }
}'

Answer: {"id": "run_…", "status": "completed", "cost_usd": …, "output": {…}}. Long jobs answer 202 with a run id to read later. From an AI agent, connect the MCP server and ask for this by name: create-standalone-ad.

Parameters

stageboolean

Send true to stage this create instead of sending it. Nothing is created on the ad network; the response is `202` with the staged change. Create it with POST /v1/ads/changes/{changeId}/confirm. Meta and Google only; not with `validateOnly` or a presigned media URL.

accountIdRequiredstring
adAccountIdRequiredstring
namestring

Omitted, the ad is named `Ad <YYYY-MM-DD HH:MM:SS>` (UTC) and the response reports it in `appliedDefaults.name`.

campaignNamestring

Meta, Reddit and Google. Exact campaign name; overrides the default `<name> - Campaign`. Ignored when the request joins an existing campaign or ad set. Google: no line breaks and at most 255 characters, checked before calling Google. Names are unique in the Google Ads account, and on Search and Display a taken name is a 400 naming this field.

adSetNamestring

Exact ad set name. Meta, Reddit and Google (the ad group). - Overrides the default `<name> - Ad Set` (Google Search and Display: `<name> - Ad Group`). - Ignored when the request joins an existing ad set (`adSetId`). - Google Search and Display only: also works on `existingCampaignId`, where the new ad group's name is returned as `adSetName`. No line breaks, at most 255 characters, unique in the campaign (a taken name is a 400 naming this field). - Demand Gen names its ad group with `demandGen.adGroupName`, and Performance Max with `assetGroup.name`. - For per-ad names on the multi-creative sh

adNamestring

Meta only. Exact ad name, overriding the default `name`. On the multi-creative shape it names every ad, numbered `#1`, `#2`... when there are several, unless a `creatives[]` entry sets its own `name`.

trackingobject

tracking

goalstring

The ad's goal. Available goals vary by platform. When omitted, it is inferred from the ad (see `appliedDefaults.goal` in the response); the attach shape inherits it from the ad set. **Meta** - `conversions`: OUTCOME_SALES. Requires `promotedObject.pixelId` and `promotedObject.customEventType` with a commerce event (e.g. PURCHASE, START_TRIAL). Alternatives: `promotedObject.customConversionId` for a Custom Conversion, or `customEventType: OTHER` + `customEventStr` for a pixel custom event. - `lead_conversion`: OUTCOME_LEADS optimizing website pixel leads. Same pixel and event fields, with a l

engagement · traffic · awareness · video_views · lead_generation · lead_conversion · conversions · app_promotion · catalog_sales · page_likes · page_visits · job_applicants

smartTargetingobject

TikTok only (a 400 elsewhere). TikTok Smart Targeting on the ad group. When on, TikTok may deliver beyond the selected audiences or interests. - `audience`: TikTok's `smart_audience_enabled`. - `interestsBehaviors`: TikTok's `smart_interest_behavior_enabled`. Available on Video views, Traffic, Lead generation, App install, Web conversion and Community interaction. Not available with smartPlus or when attaching to an existing ad set (adSetId). Only the flags you send are written. An unwritten flag reads back null in `nativeSettings`, so send `false` explicitly to be able to verify it is off.

optimizationGoalstring

Explicit optimization goal. Supported on: - **TikTok** with goal video_views: ENGAGED_VIEW (the 6-second default) or ENGAGED_VIEW_FIFTEEN; both bill per view. - **Reddit** with goal video_views: VIDEO_VIEW_6S (default) or VIDEO_VIEW_15S; other values return 400. - **Meta:** the ad-set `optimization_goal` (e.g. `LANDING_PAGE_VIEWS`, `LINK_CLICKS`, `REACH`, `IMPRESSIONS`, `OFFSITE_CONVERSIONS`, `THRUPLAY`, `LEAD_GENERATION`). On Meta it overrides the default derived from `goal` (e.g. `traffic` defaults to `LINK_CLICKS`). It is forwarded verbatim; Meta validates compatibility with the campaign

billingEventstring

Meta only. Explicit ad-set `billing_event`. Defaults to `IMPRESSIONS`. Forwarded verbatim to Meta, which validates compatibility with the optimization goal.

buyingTypestring

Meta only. Buying type. Defaults to AUCTION and is explicitly sent on new campaigns, including validateOnly. Reusing existingCampaignId does not change the campaign. RESERVED = Reach & Frequency: - Requires `rfPredictionId` (a RESERVED prediction from /v1/ads/rf-predictions + /reserve). - Budget, schedule and pricing come from the reservation, so budgetAmount/budgetType are not required and bid fields are ignored. - Only the plain single-ad shape (no creatives[], adSetId, existingCampaignId or dynamicCreative).

AUCTION · RESERVED

Example: AUCTION

rfPredictionIdstring

Meta only. The RESERVED prediction id the R&F ad set runs on (reserving mints a new id, so pass that one). Requires buyingType RESERVED.

promotionobject

promotion

creativeFeaturesobject

creativeFeatures

catalogFormatstring

Meta catalog template creatives only (goal `catalog_sales`, goal `traffic` with `promotedObject.productSetId`, or `adSetId` with `promotedObject.productSetId`); a 400 otherwise. Omit it to let Meta pick the format. Sent as `object_story_spec.template_data.format_option`. `force_single_link` is never sent with it (Meta rejects the pair, subcode 1443051). - `single_image`: also sends `format_transformation_spec` with `carousel` and `da_collection` set to `data_source: ["none"]`, so Meta keeps the single image instead of turning it into a carousel or collection. - `carousel_images_single_item`:

single_image · carousel_images_multi_items · carousel_images_single_item · carousel_slideshows

catalogIntroCardsarray

Meta only. Static cards shown before the catalog products in a catalog carousel, for example a brand or offer slide. Valid only with goal `catalog_sales` and `catalogFormat` omitted or `carousel_images_multi_items`; a 400 otherwise. Sent in order as `object_story_spec.template_data.child_attachments` with `static_card: true`, followed by one catalog card built from the top-level `headline`, `description` and `callToAction`.

messageExtensionsobject

messageExtensions

multiAdvertiserstring

Meta only. Multi-advertiser ads: whether Meta may show this ad alongside other advertisers' in one unit. Meta auto-enrols since Aug 2024, so send OPT_OUT to leave. It is a top-level creative field, NOT a `creativeFeatures` key, and Meta rejects it there.

OPT_IN · OPT_OUT

aiDisclosurestring

Meta only. Meta's "Ad includes media created or edited with AI" disclosure (the Ads Manager checkbox), stored on the creative as `generative_asset_spec.transparency_metadata.self_disclosure`. - OPT_IN: checks it. - OPT_OUT: explicitly declares no AI media. - Omitted: leaves Meta's default. Applied to each new creative (standalone, creatives[] and attach shapes) and preserved when a creative is rebuilt. This sets the disclosure on the ad; whether and when the viewer-facing label renders is Meta's decision.

OPT_IN · OPT_OUT

websiteOnlyboolean

Meta only. Sets the creative's applink_treatment to web_only, so Ads Manager shows Website as the only destination instead of App with a website backup. - Omitted or false: keeps Meta's default. - Applies to new creatives (single, creatives[] and adSetId attach); rejected with existingCreativeId. - Meta rejects it when the campaign uses Website and App conversion locations.

retryOnServerErrorboolean

Meta only. `true` returns a 400 elsewhere, `false` is ignored there. When Meta answers a create with a 5xx and reading the parent back by name finds no such object, sends the create again (at most 3 POSTs per object, never for an object created ACTIVE) and reports it in `recoveredWrites`. `false` never sends it again: the request fails with 502 and `details.unconfirmedWrite`, so you can check the parent yourself. One object found by name is still reused.

validateOnlyboolean

Validate the request without creating anything. Supported on Meta, TikTok, ChatGPT (OpenAI) and Google Performance Max / Demand Gen. Any other platform, or a Google campaignType other than pmax or demand_gen, returns 501 `feature_not_available`. **Google Performance Max**: validates the complete atomic campaign and asset group, with no resource creation or local persistence. Validation still downloads image URLs and consumes quota. **Meta**: validates the inline campaign, ad set, creative and ad with execution_options validate_only. Nothing is uploaded or created; validation bypasses Idempot

budgetAmountnumber

Budget in WHOLE currency units (USD: 50 = $50.00), NOT cents. Meta's own Marketing API takes this number in minor units, an easy and expensive mix-up. Required on legacy, multi-creative and Performance Max shapes. Inherited on attach. **OpenAI Ads:** in the ad account currency, minimum 1. OpenAI can require a higher daily minimum for some currencies and names it in the error.

budgetTypestring

Defaults to daily when `budgetAmount` is sent without it (reported in `appliedDefaults.budgetType`). Inherited on attach. - **OpenAI Ads:** accepts both as the campaign's single spend cap. A lifetime cap can later switch to daily with PUT /v1/ads/campaigns/{campaignId}, but never daily back to lifetime (422). Automatic bidding (Maximize Results) needs a daily budget. - **Reddit Ads:** the ad group's daily or lifetime spend goal.

daily · lifetime

statusstring

Publish state of the created entities, on every platform. Omitted or ACTIVE publishes live (default, back-compat). PAUSED pauses only the TOP-MOST object this call creates and switches everything below it on, so one resume of that object brings the new tree live and nothing pre-existing is touched: - New campaign: held paused with its ad set and ad on. - With `existingCampaignId`: the new ad set is held paused with its ad on. - With `adSetId`: the new ad itself is paused. **Level overrides.** `campaignStatus`, `adSetStatus` and `adStatus` set one level each and always win for that level. `s

ACTIVE · PAUSED

campaignStatusstring

Every platform. Sets the switch of the new campaign alone (LinkedIn: the campaign group) and overrides `status` for it. Omitted, it follows `status`. Ignored when the request creates no campaign (`existingCampaignId` or `adSetId`). - `PAUSED`: holds the campaign off with its ad set and ad on, unless `adSetStatus` or `adStatus` say otherwise. - `ACTIVE` with `status: PAUSED`: switches the campaign on and holds the new ad set paused (its ad on).

ACTIVE · PAUSED

adSetStatusstring

Every platform. Sets the switch of the new ad set alone and overrides `status` for it. When omitted, it follows `status`. Equivalent object: Google, TikTok, Pinterest and ChatGPT, the ad group; LinkedIn, the campaign (stays DRAFT when held); X, the line item. Precedence: a level status (`campaignStatus`, `adSetStatus`, `adStatus`) always wins for its level. `status: PAUSED` then holds the top-most new object with no level status, only when no level status is PAUSED. Every other new object is switched on. So `campaignStatus: ACTIVE` + `adSetStatus: PAUSED` + `adStatus: PAUSED` keeps the campa

ACTIVE · PAUSED

adStatusobject

adStatus

budgetLevelstring

Meta only. Where the budget lives, which selects the Meta budget model: - `adset` (used when omitted): ABO (Ad-set Budget Optimization). The budget is set on the ad set. - `campaign`: CBO (Campaign Budget Optimization / Advantage Campaign Budget). The budget AND `bidStrategy` are set on the CAMPAIGN, and Meta distributes spend across ad sets automatically. The returned ad stores the applied `budgetLevel`, and the budget in `campaignBudget` (CBO) or `adSetBudget` (ABO). Edit CBO budgets with `PUT /v1/ads/campaigns/{campaignId}` and ABO budgets with `PUT /v1/ads/ad-sets/{adSetId}`. Meta requi

adset · campaign

currencystring

ISO 4217 currency code matching the ad account's currency (e.g. `USD`). Meta only. Optional: resolves it from the ad account when omitted. The value selects the minor-unit exponent converts budget/bid amounts by before calling Meta (most currencies are cents; zero-decimal currencies like JPY/KRW are sent as-is).

headlinestring

Ad headline. Required for Meta, Google, Pinterest, LinkedIn, OpenAI Ads and Reddit Ads on legacy + attach shapes (for multi-creative, skip it and use `creatives[].headline`). Ignored for TikTok. Max length: Meta=255, Google=30, Pinterest=100, LinkedIn=400, OpenAI=50 (min 3), Reddit=300. - LinkedIn: the ad's headline (the bold text on the creative); for traffic ads, the link card title. - OpenAI Ads: the chat card's title. - Reddit: the promoted post's title. - X: the website card title (needs imageUrl and linkUrl, max 70).

longHeadlinestring

Google Display only. Defaults to `headline` if omitted. On LinkedIn, reused as the optional secondary description text on traffic (link) ads; omitted if not provided.

bodystring

Required on legacy + attach shapes. - X: the tweet text (max 280 chars including a ~24-char URL when `linkUrl` is set). - LinkedIn: the post commentary (the intro text shown above the ad). - OpenAI Ads: the chat card's body text. - Reddit: the promoted post's body. Optional on image, video and carousel ads, required on text ads. Max: Google=90, Pinterest=500, OpenAI=100.

descriptionstring

Meta only (facebook/instagram). Link description: the secondary text shown below the headline (Meta's link_data.description; on video creatives mapped to video_data.link_description). When omitted, Meta auto-pulls the destination URL's OpenGraph description. - Applies on legacy, attach, and placementAssets shapes. - For multi-creative use creatives[].description (this field is the shared fallback). - For multi-text variations use `descriptions` (array) instead.

bodiesarray

Meta only. Multiple Text Options (Advantage+ Flexible Format): 1-5 primary-text variations that Meta optimises delivery across, WITHOUT enabling full Dynamic Creative (`dynamicCreative`). Uses `optimization_type: DEGREES_OF_FREEDOM` on the asset feed, so multiple ads per ad set are allowed (unlike `dynamicCreative`, which is limited to one). **Requirements:** `imageUrl` or `video`, `linkUrl`, `callToAction`, and `headlines`. The top-level `body` becomes `object_story_spec.link_data.message` (the preview text). On a video creative the copy lands in `video_data.message` / `video_data.title` in

headlinesarray

Meta only. Headline variations for Multiple Text Options. Must be sent alongside `bodies`. The top-level `headline` field is used as the `object_story_spec.link_data.name` (`video_data.title` on a video creative).

descriptionsarray

Meta only. Optional description variations for Multiple Text Options. Sent alongside `bodies` and `headlines`.

callToActionstring

The ad's call-to-action button. - **Meta:** required on legacy + attach shapes. Accepts every call to action type Meta itself accepts (the enum lists them), including values such as SEE_DETAILS that ads synced from Meta carry. - **TikTok:** honoured, passed through to the Spark Ad creative's `call_to_action`. - **LinkedIn:** the CTA button on the ad; defaults to LEARN_MORE when `linkUrl` is set. Accepts LEARN_MORE, SIGN_UP, DOWNLOAD, SUBSCRIBE, REGISTER, JOIN, ATTEND, REQUEST_DEMO, VIEW_QUOTE, APPLY, SEE_MORE, SHOP_NOW, BUY_NOW. - **Reddit** (image, video and carousel ads): accepts LEARN_MORE

BOOK_TRAVEL · CONTACT_US · DONATE · DONATE_NOW · DOWNLOAD · GET_DIRECTIONS · GO_LIVE · INTERESTED · LEARN_MORE · SEE_DETAILS · LIKE_PAGE · MESSAGE_PAGE …

linkUrlstring

The ad's destination URL. Required on legacy + attach shapes (skip for multi-creative). NOT required when `goal` is `lead_generation` (the ad opens a Lead Gen form instead). - **LinkedIn:** required for `traffic` ads, optional for `engagement` / `awareness`. `imageUrl` + `linkUrl` publishes an ARTICLE-content creative (LinkedIn's article ad format), with the image as thumbnail and `longHeadline` as description. - **OpenAI Ads:** required (the chat card's target_url). - **Reddit:** required on image and video ads (the post's destination and the ad's click URL), the fallback for carousel cards

callToActionLinkobject

callToActionLink

leadGenFormIdstring

Lead Gen form ID to attach to the ad's creative. REQUIRED when `goal` is `lead_generation`. Create one via POST /v1/ads/lead-forms. - Meta (facebook/instagram): the leadgen_forms ID. The ad set's promoted_object.page_id, LEAD_GENERATION optimization and destination_type ON_AD are derived automatically from the goal. - Meta: also required on every ATTACH (`adSetId`) call targeting an Instant Form lead ad set (the form attaches per-ad; Meta rejects a formless ad in a lead ad set, so returns a 400 naming `leadGenFormId` before uploading anything). This includes a carousel attached with `c

imageUrlstring

Image creative for Meta/Google/Pinterest/LinkedIn on legacy + attach shapes. Mutually exclusive with `video`. - LinkedIn: required unless `video` is set. Uploaded to LinkedIn under the authoring Company Page (see `organizationId`); recommended ratio 1.91:1 (e.g. 1200×627). - Google: not required for Search campaigns. For Display, treated as the landscape image (alias of `images.landscape`); supply `images.square` alongside or the request is rejected. - TikTok: this field carries the VIDEO URL (the endpoint is video-only; the `imageUrl` name is kept for cross-platform consistency).

imagesobject

Google Display (Responsive Display Ads) only. Google RDA requires both a landscape (1.91:1) and a square (1:1) marketing image; sending only one is rejected upstream as 'Too few.' (NOT_ENOUGH_*_MARKETING_IMAGE_ASSET). Supply both URLs here. Either this field or the legacy `imageUrl` can provide the landscape, but `square` has no legacy counterpart, so it must be set here for Display.

videoobject

Creates a single VIDEO ad. Meta (facebook, instagram), LinkedIn and Reddit. Mutually exclusive with `imageUrl`. Supply `url` to upload a file, or `id` to reuse a video already on the ad account (list them with GET /v1/ads/videos). Works on the single-ad and attach (`adSetId`) shapes; for Meta multi-creative, set `video` per entry inside `creatives[]` instead. Supply MP4 H.264/AAC, 3s-30min, 75KB-500MB. - Reddit: `url`, `linkUrl` and a thumbnail (`thumbnailUrl`, or `imageUrl`) are all required. - LinkedIn: uploaded under the authoring Company Page (see `organizationId`) and the campaign forma

creativesarray

Meta-only. When present, switches to the multi-creative shape: creates 1 campaign + 1 ad set + N ads (one per entry here). Mutually exclusive with `adSetId`. With `existingCampaignId` it creates 1 ad set + N ads under that campaign, so one call per audience launches a creative matrix. Top-level `headline` / `body` / `imageUrl` / `linkUrl` / `callToAction` are ignored in this mode. Entries that repeat an `imageUrl` or `video.url` share one upload.

adSetIdstring

When present, switches to the attach shape: adds one new ad to this existing ad set without creating a new campaign. Mutually exclusive with `creatives[]`. **Inherited from the ad set on Meta:** budget, targeting, goal, schedule and bid strategy. Passing `bidStrategy` in attach mode returns 400 (change an ad set's bid with `PUT /v1/ads/ad-sets/{adSetId}`). `dynamicCreative` returns 400 in attach mode: omit `adSetId` to create a new dynamic ad set instead. **Creative.** The attached ad takes the full single-creative surface: `headline`/`body`/`description`/`callToAction` plus one of: - `imag

existingCampaignIdstring

Create the new objects under this EXISTING campaign instead of creating a new one. Supported on Meta, Google Ads, LinkedIn, TikTok, Reddit Ads and Microsoft Ads. Mutually exclusive with `adSetId`. - TikTok: creates the ad group and the ad under this campaign. The campaign is neither created nor activated, and its objective must fit `goal`. Not with `smartPlus`. - Meta: adds the new ad set under this campaign (multi-ad-set audience testing). Its budget matches the campaign's mode: for a CBO campaign (campaign-level budget) omit `budgetAmount`/`budgetType`, since the campaign owns the budget; f

phoneNumberstring

Meta attach shape only (`adSetId`). The phone number (E.164, e.g. `+4712345678`) for an ad added to a "website and phone call" ad set (destination_type `WEBSITE_AND_PHONE_CALL`), sent as the creative's call configuration. Optional: when omitted, the number on the ad set's existing ads is reused; if none carries one, the request is a 400. Rejected with 400 on any other ad set, with `existingCreativeId`, without `adSetId`, or on other platforms (a new call campaign is `POST /v1/ads/call`).

existingCreativeIdstring

Meta only. Reuse an EXISTING ad creative by id instead of building a new one from the copy/media fields (which are then ignored). - Combine with `existingCampaignId` to build a multi-ad-set campaign that shares one creative. - Mutually exclusive with `creatives[]`, `dynamicCreative`, and `placementAssets`. - The creative id used is returned as `creativeId` on the create response.

businessNamestring

Google Display only

boardIdstring

Pinterest only. Board ID (auto-creates if not provided).

organizationIdstring

LinkedIn only (ignored by every other platform). The Company Page that authors the Direct Sponsored Content ("dark") post backing the ad. Accepts a numeric organization ID or a full `urn:li:organization:N` URN. Required unless it defaults: - to the page, when the resolved `accountId` is a connected LinkedIn Company-Page account; - to the owning organization, when the LinkedIn ad account is org-owned. The authenticated member must be an ADMINISTRATOR or DIRECT_SPONSORED_CONTENT_POSTER of this page, and the page must be associated with the ad account, or LinkedIn returns 403.

targetingstring

Nested targeting object: the same TargetingSpec shape as `POST /v1/ads/boost`, `POST /v1/ads/targeting/reach-estimate`, and `saved_targeting` audiences. Merged UNDER the flat inline targeting fields below: `savedTargetingId` < `targeting` < flat fields (a flat field present on the body replaces the nested value entirely). Both forms are equivalent; use whichever your integration already builds. Reddit-only targeting (`communities`, `excludedCommunities`, `conversationKeywords`, `excludedConversationKeywords`) is sent here.

countriesarray

ISO 3166-1 alpha-2 country codes (e.g. ['NL']). Defaults to ['US'] when no other geo targeting (flat or nested `targeting`) is provided. (LinkedIn and OpenAI Ads currently honour country-level targeting only; any other targeting field returns 400 for OpenAI Ads.)

countryGroupsarray

Meta only. Continents and trade blocs (`geo_locations.country_groups`), for targeting a whole region without listing its countries. Combines with `countries` rather than replacing it. Discoverable via `GET /v1/ads/targeting/search?dimension=geo&geoType=country_group`.

citiesarray

City-level geo targeting (Meta, Google and TikTok). An entry is `{ key }` or the key alone as a plain string (`["1006410"]`). Each city is targeted by the platform's opaque `key` (the city ID), found via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. **Radius (Meta only):** optional `radius` + `distance_unit` extend targeting beyond city limits (e.g. radius 25 km around the center). Set both or omit both (Meta defaults to ~16 km). - **Meta:** cannot overlap with the same country in `countries` (Meta returns a "locations overlap" error). Drop the country or scope it

regionsarray

Region-level (state/province) geo targeting (Meta, Google and TikTok). Each region is targeted by the platform's opaque `key` (the region ID) which can be looked up via `GET /v1/ads/targeting/search?dimension=geo&q=<name>&countryCode=<ISO>`. An entry may also be the key alone as a plain string.

ageMininteger
ageMaxinteger
interestsarray

Interest objects from /v1/ads/targeting/search?dimension=interest (or dimension=interestKeyword on TikTok). Each must include id and name. **TikTok:** - Bare numeric ids are interest categories (`interest_category_ids`). - Ids like `keyword:123456` from `dimension=interestKeyword` are additional interests (`interest_keyword_ids`). - Any other id returns 422 naming `targeting.interests`. - TikTok matches people who fit ANY selected interest, additional interest or behavior (one OR'd group). That group is ANDed with location, age, gender and the other dimensions.

zipsarray

Postal/ZIP geo targeting. `key` is the platform's postal location ID from /v1/ads/targeting/search?dimension=geo&geoType=zip. Supported on Meta, Google, TikTok, Pinterest, X.

metrosarray

DMA / metro-area geo targeting (Meta and TikTok). `key` is the platform's metro ID from /v1/ads/targeting/search?dimension=geo&geoType=metro (TikTok metros appear as type `metro`, e.g. the New York DMA).

customLocationsarray

Point-radius (lat/lng) geo targeting. Meta only (custom_locations). Rejected on platforms without radius support.

behaviorsarray

Behaviour entities from /v1/ads/targeting/search?dimension=behavior (Meta, TikTok and LinkedIn). Each must include id. **On TikTok:** - Targets people who interacted with videos (watched to the end, liked, commented or shared, last 15 days) or creators (followed or viewed the profile) in the picked categories. - Or people who viewed videos with a picked hashtag: `hashtag:<id>` ids from `dimension=hashtag`, sent as a `HASHTAG_RELATED` action with `VIEW_HASHTAG`. - The ad group uses the TikTok placement only. - Behaviors are OR'd with interests and additional interests.

workPositionsarray

Meta only. Job title entities from /v1/ads/targeting/search?dimension=workPosition. Each must include id. Rejected on other platforms (use LinkedIn's `jobTitles` there).

workEmployersarray

Meta only. Employer entities from /v1/ads/targeting/search?dimension=workEmployer. Each must include id.

workIndustriesarray

Meta only. Work-industry entities from /v1/ads/targeting/search?dimension=workIndustry. Each must include id. Rejected on other platforms (use LinkedIn's `industries` there).

incomeTierstring

Normalized household-income tier. Meta and TikTok express all four; Google maps only `top_10`; rejected on LinkedIn, X, and Pinterest. On Meta, income targeting is incompatible with housing/employment/credit `specialAdCategories`.

top_5 · top_10 · top_10_25 · top_25_50

languagesarray

Language codes, e.g. ["en","es"]. - Google: campaign language targeting (language_constant) using Google's language codes (ISO 639-1, plus variants such as `zh_CN`). Unknown codes return 400. - Meta: a bare code targets all regional variants ("en" = all English); use a region-qualified code for a specific one ("en_GB", "pt_BR", "zh_TW"). Meta numeric locale ids (e.g. "24" for English UK) are also accepted. Unknown values are rejected. POST /v1/ads/boost takes the same format in `targeting.languages`. - Other ad platforms use their own language-code systems.

placementsobject

Meta only; non-Meta platforms reject this field. Manual ad placements. Omit for automatic placements (Meta's default, recommended for most cases, since Meta optimises delivery across all eligible surfaces). When set, restricts delivery to the chosen surfaces, mapped onto the ad set's `targeting.{publisher_platforms, facebook_positions, instagram_positions, messenger_positions, audience_network_positions, threads_positions, whatsapp_positions, device_platforms}`. Enum membership is validated here. Meta additionally enforces co-selection rules (e.g. some positions require their parent publishe

savedTargetingIdstring

ID of a `saved_targeting` audience (created via POST /v1/ads/audiences). When set, its stored TargetingSpec is expanded as the base targeting; inline fields on this body merge on top. Lets you reuse a named targeting preset without re-sending every field.

metaSavedAudienceIdstring

Meta only. The id of a Meta saved audience on `adAccountId` (made in Ads Manager, listed by `GET /v1/ads/saved-audiences`). Its targeting is read live from Meta and used as `rawTargeting` for the new ad set, so camelCase targeting fields merge on top of it exactly as they do on `rawTargeting`. Returns 404 when the id is not on the ad account, 400 `mutually_exclusive_fields` with `rawTargeting` or `savedTargetingId`, and 400 on another network or with `adSetId` (an existing ad set keeps its targeting). Meta requires `targeting_automation` on create: send `advantageAudience` when the saved audi

rawTargetingobject

Meta only. A raw Meta-native targeting spec (snake_case: `geo_locations`, `age_min`, `excluded_custom_audiences`, `flexible_spec`, `targeting_automation`, `user_os`, `wireless_carrier`, business places, etc.), the exact shape `GET /v1/ads/{adId}` returns for external ads. Sent alone, it reaches the ad set VERBATIM (the path for cloning a campaign's targeting exactly). Meta validates it and surfaces any errors. **Combining with camelCase fields** (countries/regions/cities/interests/ageMin/..., `targeting`, `savedTargetingId`, `audienceId`): rawTargeting is the BASE layer and the built camelCa

specialAdCategoriesarray

Declares the ad's special category, required for housing, employment, credit, or political/social-issue ads. - Meta: every value. Setting a housing, employment or credit category disables income/zip targeting on Meta. - TikTok: HOUSING, EMPLOYMENT and CREDIT, sent as the new campaign's `special_industries` (TikTok requires one for these ads aimed at the US or Canada). Other values return 400. - TikTok targeting: the create (and `validateOnly`) returns 400 naming the field for ZIP codes (`targeting.zips`), gender, ages under 18 (`targeting.ageMin`), interest keywords (`keyword:` ids in

specialAdCategoryCountryarray

Meta (metaads) only. 2-letter ISO country codes the special ad category applies to. Requires specialAdCategories to be set (400 otherwise). Ignored when joining an existing campaign via existingCampaignId (the existing campaign's category/country already governs it).

regionalRegulatedCategoriesarray

Meta only. Regional regulation categories required when the ad set targets certain countries. Known values: AUSTRALIA_FINSERV, AUSTRALIA_UNIVERSAL, BRAZIL_REGULATION, INDIA_FINSERV, MALAYSIA_UNIVERSAL, SINGAPORE_UNIVERSAL, TAIWAN_FINSERV, TAIWAN_UNIVERSAL, THAILAND_UNIVERSAL, US_SECURITIES_LICENSING (securities and investments ad sets targeting the United States). Meta rejects the ad set without this when the targeting geo includes the corresponding country.

regionalRegulationIdentitiesobject

Meta only. Verified identity IDs of the beneficiary and payer for each declared regionalRegulatedCategories value. Ignored when adSetId adds the ad to an existing ad set. Meta may require them on ad sets created through the API even when a default beneficiary and payer are set in Ads Manager advertising settings (seen on AUSTRALIA_FINSERV), so sending them explicitly is the reliable path. **Value**: the Verified identity ID (Meta Business Settings > Verified identities), not a Page or Business ID. Beneficiary and payer may be the same ID. The IDs reach Meta unchanged. Send each ID as a stri

endDatestring

When the ad ends. If omitted: on a lifetime budget, the ad ends 7 days after it starts (reported in `appliedDefaults.endDate`); a daily budget runs until paused. Read like `startDate`: account timezone on Meta, TikTok, X, Pinterest, OpenAI and Reddit; whole account-local days on Google; UTC on LinkedIn. A date-only end runs to 23:59:59 local. On a Pinterest ad account that needs Campaign Budget Optimization, the end also goes on the campaign, daily budget included. 400 when it is not an ISO 8601 date or date-time, or when the ad joins a parent that keeps its own dates: `adSetId` on Meta, Ti

startDatestring

Ad-set start time (ISO 8601, e.g. "2026-06-10T09:00:00Z"). When omitted the ad starts delivering immediately. Same field as on `POST /v1/ads/boost`. Maps to the ad set's start: Meta `start_time`, TikTok ad group `schedule_start_time`, LinkedIn / Pinterest / X / Google campaign start. For lifetime budgets Meta also requires `endDate`. **Values without an offset** (`YYYY-MM-DD`, `YYYY-MM-DD HH:MM:SS` or `YYYY-MM-DDTHH:MM:SS`): - Meta, TikTok, X, Pinterest, OpenAI and Reddit: read in the ad account timezone (Meta itself would read it as UTC). - Google: runs whole days in the customer account t

pageIdstring

Meta only. The Facebook Page the ad runs as (`object_story_spec.page_id`). Defaults to the Page bound to the connection. Pass another Page ID to run the ad as that Page. Any Page granted to the connection is accepted (for a business-login connection, every Page granted in Meta's dialog; list them with GET /v1/ads/instagram-accounts). - The Instagram identity is re-resolved for that Page unless `instagramAccountId` is set. - A Page the connection cannot see is a 400 on `pageId` naming the granted Pages.

instagramAccountIdstring

Meta only. Overrides the Instagram account the ad is delivered as. Pass an Instagram Business Account ID (e.g. 17841...), mapped to the creative's `instagram_user_id`; it is sent as-is and never replaced. Useful when a Page has more than one eligible IG account. When omitted, we use the Instagram account linked to the Page. Formats that need an Instagram actor without one use the actor the Page's other ads already run as, then the Page's page-backed Instagram account. If Meta refuses that default because the ad account has no access to it (200/1815199), the creative is retried once with an I

dynamicCreativeobject

Meta only. Dynamic Creative: supply a POOL of assets and Meta auto-combines and optimises them into the best-performing variations within a single ad (mapped to the creative's `asset_feed_spec`). - The top-level single-creative fields (`imageUrl`, `headline`, `body`, `linkUrl`, `callToAction`) are ignored when this is set. - Mutually exclusive with the `creatives[]` multi-creative shape. - Exactly ONE of `imageUrls` / `videoUrls` is required (Meta allows one ad format per asset feed; sending both → 400). - Limits remain 10 images or videos and 5 bodies, titles or descriptions. - Multiple head

carouselCardsarray

Carousel cards. Behavior per platform: **Reddit:** builds a carousel ad. Each card has its image, destination (card `linkUrl`, falling back to top-level `linkUrl`; 400 when neither is set), call to action (card `callToAction`, falling back to the top-level one) and caption (card `headline`, else `description`). `headline` is still required. **Meta only:** a hand-built carousel of 2-10 authored cards, sent in order as the creative's `link_data.child_attachments`. Unlike `dynamicCreative`, you author every card's copy and link. - Meta may still reorder cards for performance (`multi_share_opti

optimizeCardOrderboolean

Meta only (a 400 on any other platform), and only with `carouselCards` (a 400 without them). Sets the creative's `link_data.multi_share_optimized`. - `false`: keeps the cards in the order given (up to 10, as with `true`). - `true`: Meta picks and reorders the cards for performance (up to 10). - Omitted: nothing is sent and Meta's default (`true`) applies.

defaultLocalestring

Meta only. Language the top-level copy is written in (e.g. `en`, `pt_BR`), used by the `translations` default rule. Defaults to `en`. Meta rejects a language asset feed whose default rule carries no locales of its own. Must NOT also appear as an entry in `translations`.

translationsarray

Meta only. Multi-language ads (Dynamic Language Optimization, the "Languages" toggle in Ads Manager): ONE ad with per-locale copy and, optionally, per-locale media. Social proof (likes/comments/shares) stays on a SINGLE post instead of splitting across one ad per language. The ad's top-level copy is the DEFAULT for every locale you do NOT list, and counts as one of the language variants. **Text does NOT inherit** (the opposite of what you might expect). Every entry needs its own `headline`, `body` AND `description`, all DISTINCT from each other and from the top-level copy. `description` is t

placementAssetsstring

Meta only. Pins a SPECIFIC asset (image OR video) to each placement group on a SINGLE ad (e.g. a 9:16 on Stories/Reels and a 4:5 on Feed). The same thing Ads Manager produces with "different creative per placement", mapped to the creative's `asset_feed_spec` + `asset_customization_rules`. Deterministic pinning, NOT the auto-optimizing pool of `dynamicCreative` (mutually exclusive). Cannot be combined with `creatives[]` or top-level `bodies`/`headlines`/`descriptions` arrays. Works on the legacy single shape AND the attach shape: `adSetId` + placementAssets adds one placement-customized ad to

audienceIdstring

Custom audience ID for targeting

campaignTypestring

Google only. Omitted, it is display on a new campaign, and the existing campaign's own type with `existingCampaignId` or `adSetId` (Search, Display or Demand Gen; other types return 422). Performance Max requires assetGroup and Demand Gen requires demandGen; both are always created PAUSED.

display · search · pmax · demand_gen

locationTargetingTypestring

Google only (400 elsewhere). Set on the new campaign; a request that joins an existing campaign (`existingCampaignId` or `adSetId`) returns 400, change that campaign with PUT /v1/ads/campaigns/{campaignId}/targeting instead. `presence` reaches only people in or regularly in the targeted locations.

assetGroupobject

assetGroup

merchantCenterobject

Google Performance Max only; any other campaign type returns 400. Links the new campaign to a Merchant Center account. Google rejects the create, and nothing is created, when the ad account is not linked to that Merchant Center.

demandGenobject

demandGen

keywordsarray

Google Search, Microsoft Ads, and Amazon Sponsored Products (MANUAL campaigns) and Sponsored Brands. Keywords on the new ad group; entries are strings (BROAD) or { text, matchType }. Editable later via PUT /v1/ads/{adId} targeting.keywords.

negativeKeywordsarray

Google Search, Microsoft Ads, and Amazon Sponsored Products and Sponsored Brands (EXACT or PHRASE only on Amazon and Microsoft; on Microsoft a bare string is PHRASE); other platforms return 400. Ad-group-level negative keywords on the new ad group. Editable later via PUT /v1/ads/{adId} targeting.negativeKeywords (Google and Amazon only).

campaignNegativeKeywordsarray

Google Search, Microsoft Ads (EXACT or PHRASE, a bare string is PHRASE) and Amazon Sponsored Products; other platforms return 400. Campaign-level negative keywords (campaign_criterion.negative on Google), created alongside the ad group. Editable later via PUT /v1/ads/campaigns/{campaignId}/negative-keywords (Google and Amazon only).

additionalHeadlinesarray

Google Search RSA only. Extra text assets, as strings or objects with text and optional pinnedField. String input remains supported. - The effective create lists, including primary text and after deduplication, must contain 3-15 headlines and 2-4 descriptions. Excess entries return 400. - Each headline is at most 30 characters (Google's limit). A longer one returns 400 naming the field and index (e.g. `additionalHeadlines[2]`); it is never truncated. - On Search the same limit applies to `headline` and `longHeadline` (30) and to `body` (90).

Example: ["Schedule Your Posts",{"text":"Build With example","pinnedField":"HEADLINE_2"}]

additionalDescriptionsarray

Google Search RSA only. Extra text assets, as strings or objects with text and optional pinnedField. Existing string input remains supported. - The effective create lists, including primary text and deduplication, must contain 3-15 headlines and 2-4 descriptions; excess entries return 400. - Each description is at most 90 characters (Google's limit). A longer one returns 400 naming the field and index (e.g. `additionalDescriptions[2]`); it is never truncated. - On Search the same limit applies to `headline` and `longHeadline` (30) and to `body` (90).

Example: ["Build social publishing into your application.",{"text":"Connect social accounts with one API.","pinnedField":"DESCRIPTION_2"}]

sitelinksarray

Google Search only. Sitelink assets to create and attach at the campaign level. Each entry becomes an Asset (with sitelink_asset + Asset.final_urls) plus a CampaignAsset link (field_type SITELINK). Approval is async: Google reviews assets after creation; poll asset.policy_summary later to read the verdict. Google requires at least two sitelinks to surface them on an ad; four or more is Google's own recommendation for maximum visibility. The response's creative.sitelinks[] echoes each input plus its Google resourceName.

calloutsarray

Google Search only. Short callout texts (max 25 chars each) that appear as non-clickable annotations under the ad, e.g. "Free shipping", "24/7 support". Each becomes one Asset (`callout_asset`) plus a CampaignAsset link with field_type CALLOUT. Response's creative.callouts[] echoes each input plus its Google resourceName.

structuredSnippetsarray

Google Search only. Structured snippets: one header from Google's predefined list plus 3-10 values (max 25 chars each). Each becomes one Asset (`structured_snippet_asset`) plus a CampaignAsset link with field_type STRUCTURED_SNIPPET.

callAssetsarray

Google Search only (other campaign types return 422). Phone numbers shown with the ad. Each becomes one Asset (`call_asset`) plus a CampaignAsset link with field_type CALL, in the same mutate as the other extensions. Response's creative.callAssets[] echoes each input plus its Google resourceName.

advantageAudiencestring

Meta only. Controls the Advantage audience feature (targeting_automation). 0 or false = disabled (default), 1 or true = enabled (booleans are sent to Meta as 1/0). Meta Marketing API requires this field on all ad set creation requests.

attributionSpecarray

Meta only. Conversion attribution window for the ad set, mapping 1:1 to Meta's ad-set `attribution_spec`. Only honored for conversion goals (`conversions`, `lead_generation`, `app_promotion`); ignored for awareness/traffic/engagement. Omit to use Meta's default (`7-day click` + `1-day view`). Meta enforces the valid combinations (invalid combos surface as a Meta 400): - `VIEW_THROUGH`: only `windowDays: 1` (7d/28d view windows were removed Jan 2026). - `ENGAGED_VIDEO_VIEW`: only `1`, and only alongside `VIEW_THROUGH: 1`. - `CLICK_THROUGH: 28`: only on certain objectives. Example: `[{ "event

genderstring

Restrict the audience by gender. 'male' targets men only, 'female' targets women only, 'all' (default) targets everyone. Applied on Meta, TikTok, Pinterest and Reddit. Ignored on Google, LinkedIn and X.

all · male · female

Example: all

bidStrategystring

Deprecated: send it inside `platformSpecificData` instead (Meta today; TikTok's nested shape is planned). The flat field keeps working during the deprecation window. Sending both shapes returns a 400. Bid strategy applied to the ad set (Meta). Per platform: - **OpenAI Ads:** only this flat field works (`platformSpecificData` is Meta/LinkedIn-only and returns 400 for OpenAI). `LOWEST_COST_WITH_BID_CAP` or `COST_CAP` with `bidAmount` sets a fixed bid (`fixed_bid`, the CPA bid on `conversions`). - **OpenAI Ads, automatic:** omitted or `LOWEST_COST_WITHOUT_CAP` uses OpenAI's Maximize Results (`m

bidAmountnumber

Deprecated: send it inside `platformSpecificData` instead (Meta today; TikTok's nested shape is planned). The flat field keeps working during the deprecation window; sending both shapes returns a 400. Bid cap in WHOLE currency units (USD: 5 = $5.00; JPY: 100 = ¥100). Required when `bidStrategy` is `LOWEST_COST_WITH_BID_CAP` or `COST_CAP`, except on Google, where `LOWEST_COST_WITH_BID_CAP` without it is Maximize Clicks with no CPC ceiling. Meta only: `bidAmount` WITHOUT `bidStrategy` requires `existingCampaignId` (400 otherwise). It sets the new ad set's cap under the joined campaign's COST_C

roasAverageFloornumber

Deprecated: send it inside `platformSpecificData` instead (Meta today; TikTok's nested shape is planned). The flat field keeps working during the deprecation window. Sending both shapes returns a 400. Minimum ROAS as a decimal multiplier (e.g. 2.0 = 2.0x ROAS). Required when `bidStrategy` is `LOWEST_COST_WITH_MIN_ROAS`; sending it without `bidStrategy` is a 400. Sent to Meta as `bid_constraints.roas_average_floor` × 10000. Known gap: a CBO campaign's ROAS floor lives on the campaign only (set via `POST /v1/ads/campaigns`). There is no supported way to set it while joining a CBO campaign here

portfolioBidStrategyIdstring

Google Search and Display only. Performance Max rejects portfolio bidding. Attach an existing portfolio bid strategy (numeric id from GET /v1/ads/bid-strategies) to the new campaign instead of a standard one. Exclusive with bidStrategy.

targetImpressionSharestring

Google Search only. Target impression share bidding. Exclusive with bidStrategy, portfolioBidStrategyId and manualCpc; bidAmount is refused alongside it (the ceiling is maxCpc).

manualCpcobject

manualCpc

networkSettingsstring

Google Search only, when the call creates the campaign (400 with existingCampaignId or adSetId).

valueRuleSetIdstring

Meta only (facebook, instagram; other platforms return 400). Value rule set to attach to the new ad set, from `/v1/ads/value-rule-sets`. Attachment is driven by this id, so `valueRulesApplied` is optional alongside it. Rejected with 400 in `adSetId` attach mode: that shape inherits the existing ad set's attachment, so the field would be silently ignored. Use `PUT /v1/ads/ad-sets/{adSetId}` there instead. Ignored (stripped before the ad-set create) when `buyingType` is `RESERVED`: value rules only apply to auction ad sets on `LOWEST_COST_WITHOUT_CAP` or `COST_CAP`, and a Reach & Frequency res

valueRulesAppliedboolean

Meta only (facebook, instagram; other platforms return 400). Optional when attaching, and requires `valueRuleSetId`. `false` is REJECTED here with 400: a newly created ad set has nothing to detach, so detaching lives on `PUT /v1/ads/ad-sets/{adSetId}`.

platformSpecificDatastring

Platform-specific options. The platform is derived from `accountId`; options for a different platform return a 400. LinkedIn (campaign bidding and delivery controls), Meta (the bid trio), Amazon Ads (required: the ad product, products, creative and targeting), AppLovin (the campaign and creative set) and TikTok (`placements`, see `TikTokAdsPlatformData`) have options today. **Amazon Ads**: see `AmazonAdsPlatformData`. Amazon has no dry run, so `validateOnly` returns a 501. **AppLovin** - Not available yet: AppLovin has not given access to its Campaign Management API, so an AppLovin c

dsaBeneficiarystring

Legal entity that benefits from the ad. Required when targeting EU users (EU DSA, Article 26). Optional if the ad account has a default beneficiary: set it once via `PATCH /v1/ads/accounts` or in Manager, and Meta fills it in whenever the field is omitted.

dsaPayorstring

Legal entity that pays for the ad. Can differ from `dsaBeneficiary` (for example, an agency paying for a client's ads). Same rules as `dsaBeneficiary`: required for EU targeting unless the ad account has a default payor.

brandIdentityobject

TikTok only; non-TikTok platforms ignore this field. Synthetic Brand Identity used when the ad attributes to a CUSTOMIZED_USER (instead of a real TT_USER @username). Required on the FIRST CUSTOMIZED_USER ad on a `tiktokads` SocialAccount with no cached identity. Omit it on later ads: the identity is cached on the account after first creation. Alternative: configure once via `PATCH /v1/connect/`, then create ads without this field.

identityIdstring

The profile the ad runs as. - TikTok: the identity from GET /v1/ads/tiktok-identities. Overrides the connected account's own identity; must be authorized on the advertiser. - Snapchat: the Public Profile ID (a UUID), required on most organizations. Without it the create answers 422 on identityId and uploads nothing. - To find a Snapchat Public Profile ID: in Snapchat Business Manager, open Public Profiles, select the profile and copy its ID.

identityTypestring

TikTok only. Forces the identity attribution on the ad: - `TT_USER`: the posting account's open_id (real @username branding). Requires a connected TikTok posting account on the same profile. - `CUSTOMIZED_USER`: synthetic Brand Identity (display name + avatar). Requires a configured Brand Identity (cached on the `tiktokads` SocialAccount via `PATCH /v1/connect/`) or an inline `brandIdentity` to create one on the fly. When omitted, defaults to `TT_USER` if a posting account is connected on this profile, else `CUSTOMIZED_USER`. Spark Ads (`POST /v1/ads/boo

TT_USER · CUSTOMIZED_USER · BC_AUTH_TT

smartPlusboolean

TikTok only. Creates the ad as a TikTok Upgraded Smart+ campaign: TikTok automates targeting, bidding and delivery. Supported goals: - `conversions`: Smart+ Web Conversions. - `lead_generation`: Smart+ Lead Generation with a website form on `linkUrl` (TikTok Instant Forms not supported). - `app_promotion`: Smart+ App installs. The destination is the app store, so `linkUrl` is not used. The web goals require `promotedObject.pixelId` AND `promotedObject.customEventType`; `app_promotion` requires `promotedObject.applicationId` instead. Targeting works like on any TikTok ad (defaults to `countr

userOsarray

Meta only. Operating systems and version ranges, such as iOS_ver_14.0_and_above or Android. Emitted as user_os. May also be supplied inside targeting.

userDevicearray

Meta only. Device models such as iPhone. Emitted as user_device. May also be supplied inside targeting.

isSkadnetworkAttributionboolean

Meta app promotion only. Immutable campaign flag. Set true for iOS 14+ SKAdNetwork campaigns and supply promotedObject.applicationId plus promotedObject.objectStoreUrl. The campaign receives promotedObject only when this flag is true. Cannot be changed on an existing campaign.

campaignAttributionstring

Meta ad-set attribution. SKADNETWORK for a SKAdNetwork campaign, AEM for an iOS 14+ AEM campaign without isSkadnetworkAttribution. With existingCampaignId, omit it to follow the campaign; a value that conflicts with the campaign is rejected. Requires AUCTION buying. Use this field on /v1/ads/create.

AEM · SKADNETWORK

promotedObjectobject

promotedObject

Start free · $1 of calls included

Every API your product needs. One key.

7,267 endpoints, one bill, and you only pay for calls that work.