PeumeAPI

Ads

Render pre-create ad previews

Shows how a Meta creative will look in each placement before you create the ad, as embeddable previews.

$0.002 per callRuns on an account you connect

Call it

curl https://api.peume.com/v1/call/render-pre-create-ad-previews \
  -H "Authorization: Bearer $PEUME_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "input": {
    "accountId": "your accountId",
    "adAccountId": "your adAccountId"
  }
}'

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: render-pre-create-ad-previews.

Parameters

accountIdRequiredstring

SocialAccount id used to resolve the Meta token.

adAccountIdRequiredstring

Platform ad account id (Meta act_<n>, Google customer id, LinkedIn account id,...).

formatsarray

Meta ad_format values, one preview per format. Defaults to [DESKTOP_FEED_STANDARD].

existingCreativeIdstring

Preview an existing ad-account creative by id. Mutually exclusive with creativeSpec.

creativeSpecobject

Raw Meta creative spec forwarded to /generatepreviews. Mutually exclusive with existingCreativeId. An `object_story_spec` without `page_id` or `instagram_user_id`, and a `source_instagram_media_id` spec without `instagram_user_id`, get the connection's Facebook Page and Instagram account, as a create would.

productItemIdsarray

Meta catalog product item ids (or `catalog_id:base64url(retailer_id)`) to render in a catalog (Advantage+ catalog) creative, forwarded as Meta's `product_item_ids`. Without it Meta picks products from the creative's product set.

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.