Skip to content

Latest commit

 

History

History
42 lines (36 loc) · 2.15 KB

File metadata and controls

42 lines (36 loc) · 2.15 KB

Zernio::CreateAdCreativeRequest

Properties

Name Type Description Notes
account_id String Zernio SocialAccount id (posting or ads variant) used to resolve the Meta token and Page.
ad_account_id String Meta ad account id (act_<n>).
headline String
body String Primary text
description String Link description below the headline; omitted = Meta scrapes the destination's OG description. [optional]
call_to_action String CTA type (same whitelist as POST /v1/ads/create). [optional][default to 'LEARN_MORE']
link_url String
image_url String Publicly reachable image; uploaded to the account's library server-side. [optional]
image_hash String Existing library image hash (POST /v1/ads/images or GET /v1/ads/images). [optional]
carousel_cards Array<CreateAdCreativeRequestCarouselCardsInner> [optional]
url_tags String Appended to every outbound URL (e.g. utm_source=fb). [optional]
creative_features Hash<String, String> Advantage+ creative enhancements: partial map of Meta creative feature keys (snake_case) to enroll status, forwarded as degrees_of_freedom_spec.creative_features_spec. Unspecified features default to OPT_OUT. [optional]
multi_advertiser String Meta only. Multi-advertiser ads: whether Meta may show this ad alongside other advertisers' in one unit. Meta auto-enrols since Aug 2024, so send OPT_OUT to leave. It is a top-level creative field, NOT a `creativeFeatures` key — Meta rejects it there. [optional]

Example

require 'zernio-sdk'

instance = Zernio::CreateAdCreativeRequest.new(
  account_id: null,
  ad_account_id: null,
  headline: null,
  body: null,
  description: null,
  call_to_action: null,
  link_url: null,
  image_url: null,
  image_hash: null,
  carousel_cards: null,
  url_tags: null,
  creative_features: null,
  multi_advertiser: null
)