Ads · Ad Campaigns

Boost post as ad

Boosts a post as ad.

POSThttps://api.pozy.ai/v1/ads/boost
Facebook and Instagram, Google Workspace, TikTok, LinkedIn, Pinterest and X and 1 moreboostPost

Guides: Boost posts, Ads, 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

Headers

NameTypeNotes
Idempotency-KeystringUp to 255 charactersRetries with the same key return the original result. See Idempotency

Request body

application/json, required

  • creativeFeaturesmap of string
  • postIdstring
  • platformPostIdstring
  • accountIdstringrequired
  • adAccountIdstringrequired
  • namestringrequired

    Up to 255 characters.

  • campaignNamestring

    Up to 255 characters.

  • adSetNamestring

    Up to 255 characters.

  • goalstringrequired

    One of engagement, traffic, awareness, video_views, lead_generation, conversions, app_promotion.

  • adSetIdstring
  • existingCampaignIdstring
  • identityIdstring
  • identityTypestring

    One of TT_USER, CUSTOMIZED_USER, BC_AUTH_TT.

  • budgetAmountnumber
  • budgetTypestring

    One of daily, lifetime.

  • lifetimeBudgetCapnumber
  • budgetobjectdeprecated
    • amountnumberrequired
    • typestringrequired

      One of daily, lifetime.

  • instagramAccountIdstring
  • destinationTypestring

    One of INSTAGRAM_PROFILE, WEBSITE, ON_AD, MESSENGER, WHATSAPP, INSTAGRAM_DIRECT.

  • whatsappPhoneNumberstring

    Matches ^\+[1-9]\d{6,14}$.

  • workflowIdstring

    Matches ^[a-fA-F0-9]{24}$.

  • currencystring

    3 to 3 characters.

  • startDatestring (date-time)
  • endDatestring (date-time)
  • scheduleobjectdeprecated
    • startDatestring (date-time)deprecated
    • endDatestring (date-time)deprecated
  • targetingobject
    12 child fields
    • ageMininteger

      13 to 65.

    • ageMaxinteger

      13 to 65.

    • genderstring

      One of all, male, female.

    • languagesarray of string
    • countriesarray of string
    • regionsarray of object
      2 child fields
      • keystringrequired
      • namestring
    • citiesarray of object
      4 child fields
      • keystringrequired
      • namestring
      • radiusnumber
      • distanceUnitstring

        One of mile, kilometer.

    • zipsarray of object
      2 child fields
      • keystringrequired
      • namestring
    • metrosarray of object
      2 child fields
      • keystringrequired
      • namestring
    • customLocationsarray of object
      6 child fields
      • latitudenumberrequired

        -90 to 90.

      • longitudenumberrequired

        -180 to 180.

      • radiusnumberrequired
      • distanceUnitstringrequired

        One of mile, kilometer.

      • namestring
      • addressstring
    • interestsarray of object
      2 child fields
      • idstringrequired
      • namestringrequired
    • advantage_audienceinteger

      One of 0, 1.

  • locationTargetingTypeobject
  • rawTargetingobject
  • bidStrategyobjectdeprecated
  • bidAmountnumberdeprecated
  • roasAverageFloornumberdeprecated
  • platformSpecificDataobject

    One of:

    Linked In Ads settings (16 fields)
    • costTypestring

      One of CPM, CPC, CPV.

    • unitCostnumber
    • optimizationTargetTypestring
    • creativeSelectionstring

      One of OPTIMIZED, ROUND_ROBIN.

    • audienceExpansionEnabledboolean
    • offsiteDeliveryEnabledboolean
    • connectedTelevisionOnlyboolean
    • carouselobject
      1 child field
      • cardsarray of objectrequired

        At least 2 items. Up to 10 items.

        3 child fields
        • imageUrlstring (URL)required
        • headlinestring
        • landingUrlstring (URL)
    • documentobject
      2 child fields
      • urlstring (URL)required
      • titlestringrequired
    • spotlightobject
      8 child fields
      • headlinestringrequired
      • descriptionstring
      • callToActionstringrequired
      • landingUrlstring (URL)required
      • logoUrlstring (URL)
      • organizationNamestring
      • showMemberProfilePhotoboolean
      • backgroundImageUrlstring (URL)
    • followerobject
      6 child fields
      • headlineobjectrequired
        2 child fields
        • preApprovedstring
        • customstring
      • descriptionobjectrequired
        2 child fields
        • preApprovedstring
        • customstring
      • callToActionstringrequired

        One of VISIT_ORGANIZATION_COMPANY_PAGE, VISIT_ORGANIZATION_LIFE_PAGE, VISIT_ORGANIZATION_JOBS_PAGE, VISIT_ORGANIZATION_CAREERS_PAGE.

      • logoUrlstring (URL)
      • organizationNamestring
      • showMemberProfilePhotoboolean
    • jobsobject
      5 child fields
      • headlineobjectrequired
        2 child fields
        • preApprovedstring
        • customstring
      • buttonLabelobjectrequired
        2 child fields
        • preApprovedstring
        • customstring
      • logoUrlstring (URL)
      • organizationNamestring
      • showMemberProfilePhotoboolean
    • textAdobject
      4 child fields
      • headlinestringrequired

        Up to 25 characters.

      • descriptionstringrequired

        Up to 75 characters.

      • landingUrlstring (URL)required
      • imageUrlstring (URL)
    • conversationobject
      7 child fields
      • subjectstringrequired
      • senderstring
      • bodystring
      • footerstring
      • headlinestring
      • firstMessageIdstringrequired
      • messagesarray of objectrequired

        At least 1 item. Up to 25 items.

        3 child fields
        • idstringrequired
        • textstringrequired

          Up to 500 characters.

        • buttonsarray of object

          At least 1 item. Up to 5 items.

          3 child fields
          • textstringrequired

            Up to 35 characters.

          • nextMessageIdstring
          • urlstring (URL)
    • eventobject
      1 child field
      • urnstringrequired

        Matches ^urn:li:event:\d+$.

    • thoughtLeaderobject
      1 child field
      • postUrnstringrequired

        Matches ^urn:li:(share|ugcPost):\d+$.

    Meta Ads settings (7 fields)
    • bidStrategystring

      One of LOWEST_COST_WITHOUT_CAP, LOWEST_COST_WITH_BID_CAP, COST_CAP, LOWEST_COST_WITH_MIN_ROAS.

    • bidAmountnumber
    • roasAverageFloornumber
    • dailyMinSpendTargetnumber
    • lifetimeMinSpendTargetnumber
    • customerLifecycleobject
      3 child fields
      • strategystringrequired

        One of all_customers, new_customers, new_customers_excluding_engaged.

      • existingCustomerAudienceIdsarray of string
      • engagedAudienceIdsarray of string
    • adScheduleobject

      At least 1 item.

      4 child fields
      • dayOfWeekstringrequired

        One of MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, SUNDAY.

      • startHourintegerrequired

        0 to 23.

      • endHourintegerrequired

        1 to 24.

      • timezoneTypestring

        One of USER, ADVERTISER. Default USER.

  • trackingobject
    • pixelIdstring
    • urlTagsarray of object
      2 child fields
      • keystring
      • valuestring
  • specialAdCategoriesarray of string

    Each item: one of HOUSING, EMPLOYMENT, CREDIT, FINANCIAL_PRODUCTS_SERVICES, ISSUES_ELECTIONS_POLITICS, ONLINE_GAMBLING_AND_GAMING.

  • specialAdCategoryCountryarray of string
  • regionalRegulatedCategoriesarray of string
  • regionalRegulationIdentitiesmap of string or integer
  • linkUrlstring (URL)
  • callToActionstring
  • sparkAuthCodestring
  • smartPlusboolean
  • sparkPostsarray of object

    At least 1 item. Up to 50 items.

    • platformPostIdstringrequired
    • sparkAuthCodestringrequired
  • promoCodesarray of object

    At least 1 item. Up to 10 items.

    7 child fields
    • discountTypestringrequired

      One of PERCENTAGE, CASH.

    • discountValuenumberrequired
    • discountCurrencystring
    • promoCodestring

      Up to 30 characters.

    • minimumPurchaseTypestring

      One of QUANTITY, SUBTOTAL.

    • minimumPurchaseValuenumber
    • minimumPurchaseCurrencystring
  • promotedObjectobject
    • pixelIdstring
    • customEventTypestring
    • customEventStrstring
    • customConversionIdstring
  • dsaBeneficiarystring

    Up to 100 characters.

  • dsaPayorstring

    Up to 100 characters.

  • leadGenFormIdstring
  • statusstring

    One of ACTIVE, PAUSED.

  • campaignStatusstring

    One of ACTIVE, PAUSED.

  • adSetStatusstring

    One of ACTIVE, PAUSED.

  • adStatusstring

    One of ACTIVE, PAUSED.

  • budgetLevelstring

    One of adset, campaign.

  • attributionSpecarray of object

    At least 1 item. Up to 3 items.

    • eventTypestringrequired

      One of CLICK_THROUGH, VIEW_THROUGH, ENGAGED_VIDEO_VIEW.

    • windowDaysintegerrequired

      One of 1, 7, 28.

  • bodiesarray of string

    At least 1 item. Up to 5 items.

  • rehostOnInstagramVideoRejectionboolean

    Default true.

  • smartTargetingobject
    • audienceboolean
    • interestsBehaviorsboolean
  • optimizationGoalstring
  • metaObjectivestring

    One of OUTCOME_ENGAGEMENT.

  • validateOnlyboolean

    Default false.

Example

curl -X POST "https://api.pozy.ai/v1/ads/boost" \
  -H "Authorization: Bearer $POZY_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "accountId": "696e0b682d0a31188e7a2ba9",
  "adAccountId": "666219aad7bab67ace411e4f",
  "name": "Acme",
  "goal": "engagement"
}'

Response

200 on success

  • validateOnlyboolean
  • resultsarray of object
    • nodestring

      One of campaign, adSet, creative, ad.

    • statusstring

      One of validated, skipped, unverified.

    • reasonstring
  • messagestring
200 response
{
  "validateOnly": true,
  "results": [
    {
      "node": "campaign",
      "status": "validated",
      "reason": "string"
    }
  ],
  "message": "Hello from Pozy"
}

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 Campaigns

GETList adsGETList Google Ads recommendationsPOSTApply Google Ads recommendationsPOSTDismiss Google Ads recommendationsGETList portfolio bid strategiesPOSTCreate portfolio bid strategyPATCHUpdate portfolio bid strategyGETList shared budgetsPOSTCreate a shared budgetGETList Search keywordsPOSTAdd Search ad-group keywordsPATCHPause or enable a Search keywordDELRemove a Search keywordGETList campaignsPOSTCreate a standalone campaignPUTPause or resume a campaignGETRead a campaign's ad schedule (dayparting)PUTReplace a campaign's ad schedule (dayparting)GETRead a campaign's current biddingGETGet live campaign detailsPUTUpdate a campaignDELDelete a campaignGETList campaign-level negative keywordsPUTReplace campaign-level negative keywordsPOSTPause or resume many campaignsPOSTDuplicate a campaignGETRead a Google campaign's device, location, excluded location, and language targetingPUTEdit a Google campaign's device, location, excluded location, or language targetingGETList ad setsPOSTCreate a standalone ad groupPOSTDuplicate an ad setPOSTDuplicate an adGETGet live ad-set detailsPUTUpdate an ad setDELDelete an ad setGETRead a Reddit ad group's targeting and schedulePUTPause or resume a single ad setGETGet campaign treeGETGet daily account metricsGETGet ad detailsPUTUpdate adDELCancel an adPUTPause or resume a single adGETList campaign assetsPOSTAttach campaign assetsPUTUpdate campaign assetsDELRemove campaign assetsGETList ad-group assetsPOSTAttach ad-group assetsPUTUpdate ad-group assetsDELRemove ad-group assetsGETRead the platform's review verdict for an adGETReview status of each creative in a TikTok Smart+ adGETList ads that need attentionPOSTDismiss an ads alertGETReview status of every TikTok Smart+ ad of an advertiserGETList campaign negative listsPUTReplace campaign negative listsGETList Performance Max asset groupsPOSTCreate a Performance Max asset groupGETGet a Performance Max asset groupPATCHUpdate a Performance Max asset groupDELRemove a Performance Max asset groupPOSTLink or unlink asset group assetsPUTReplace an asset group's listing-group treePOSTCreate standalone adGETGet campaign conversion goalsPATCHUpdate campaign conversion goals