Ad Creatives

Render pre-create ad previews

Changed on

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

Renders how a creative would look per placement BEFORE any ad exists, via Meta's /generatepreviews. Provide exactly one creative source: existingCreativeId or creativeSpec. Each preview is an HTML <iframe> snippet embeddable directly. Unknown formats values return Meta's 400 verbatim.

post/v1/ads/preview

Request

  • Base URL: https://zernio.com/api
  • URL: https://zernio.com/api/v1/ads/preview
  • Auth: HTTP bearer

Request body

accountIdstring required

Zernio SocialAccount id used to resolve the Meta token.

adAccountIdstring required

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

formatsstring[]

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 verbatim to /generatepreviews. Mutually exclusive with existingCreativeId.

Response

Rendered previews

Changes

    • warning

      added the new account enum value to the / response property for the response status

    • warning

      added the new account enum value to the / response property for the response status

    • warning

      added the new account enum value to the / response property for the response status

    • info

      added the media type application/json for the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status

    • info

      added the optional property to the response with the status