Ads

Create ad

Create a standalone ad with its own creative.

post/ads

Request

  • Base URL: https://api.crevio.co/v1
  • URL: https://api.crevio.co/v1/ads
  • Auth: API key in header Authorization

Headers

Idempotency-Keystring

Makes this write safe to retry: a repeat with the same key replays the first response instead of creating a second resource. Scoped to the account, remembered for 24 hours; reusing a key with a different payload is an error.

Request body

account_idstring
ad_account_idstring
namestring
goalstring
budget_amountnumber

Budget for the new ad set (or campaign, with budget_level=campaign). Whole currency units, NOT cents: 20 = $20.00. Meta's own Marketing API takes this number in minor units, so it is an easy and expensive mix-up — 2000 here buys $2000.00 of ads, not $20.00.

budget_typestring

daily or lifetime. A lifetime budget also needs end_date.

headlinestring
bodystring
call_to_actionstring
link_urlstring
image_urlstring

Response

Created ad.

object required

Created ad.

Changes

No recorded changes to this operation across all 2 revisions of this API.