Marketing API Version

AdCreative

Fields

actor_id, actor_image_hash, actor_name, adlabels, applink_treatment, body, call_to_action_type, dynamic_ad_voice, filename, follow_redirect, id, image_crops, image_file, image_hash, image_url, instagram_actor_id, instagram_permalink_url, link_deep_link_url, link_url, name, object_id, object_store_url, object_story_id, object_story_spec, object_type, object_url, place_page_set_id, preview_url, product_set_id, template_url, thumbnail_url, title, url_tags, video_id

AdCreative.get_ad_preview (fields, params)

Returns iterator over AdCreativePreviews associated with this creative.

Name Type Description Required

fields

array

A list of fields to read.

No

params

map

A mapping of request parameters where a key is the parameter name and its value is a string or an object which can be JSON-encoded.

No

Sample Code

creative = AdCreative('6037175538640')
preview = creative.get_ad_preview(params={
    'ad_format': 'RIGHT_COLUMN_STANDARD',
})
print preview