Ads · Ad Creatives

Create a standalone creative

Creates a standalone creative. Works with Meta Ads.

POSThttps://api.pozy.ai/v1/ads/creatives
Facebook and InstagramcreateAdCreative

Guide: Meta Ads

Request

Send your API key as Authorization: Bearer pz_live_.... Read-only keys cannot call it. Keys with the ads resource group disabled get 403 resource_group_disabled. Authentication

Request body

application/json, required

  • accountIdstringrequired
  • adAccountIdstringrequired
  • headlinestringrequired

    Up to 255 characters.

  • bodystringrequired
  • descriptionstring

    Up to 255 characters.

  • callToActionstring

    Default LEARN_MORE.

  • linkUrlstring (URL)required
  • imageUrlstring (URL)
  • imageHashstring
  • carouselCardsarray of object

    At least 2 items. Up to 10 items.

    • imageUrlstring (URL)required
    • linkUrlstring (URL)required
    • headlinestring

      Up to 255 characters.

    • descriptionstring

      Up to 255 characters.

    • callToActionstring
  • optimizeCardOrderboolean
  • urlTagsstring
  • promotionobject

    Can be null.

  • creativeFeaturesmap of string
  • multiAdvertiserstring

    One of OPT_IN, OPT_OUT.

  • aiDisclosurestring

    One of OPT_IN, OPT_OUT.

Example

curl -X POST "https://api.pozy.ai/v1/ads/creatives" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "adAccountId": "666219aad7bab67ace411e4f",
  "headline": "Launch day",
  "body": "string",
  "linkUrl": "https://pozy.ai/media/example-1.jpg"
}'

Response

201 on success

  • adAccountIdstring
  • creativeIdstring
201 response
{
  "adAccountId": "666219aad7bab67ace411e4f",
  "creativeId": "68c59681516c848d73eebe49"
}

Errors

Errors use one shape: { error, type, code, param?, details? }. The ones you are most likely to see here:

400invalid_request_errorA parameter or body field is missing or invalid. param names it.
401authentication_errorThe API key is missing, revoked or expired.
403permission_errorThe key is read-only, scoped to other profiles, or has this resource group disabled.
429rate_limit_errorToo many requests this minute. Wait for Retry-After seconds.

Every code is listed in Errors.

More in Ad Creatives