POST /ads

Create an ad.

Note if the assets are missing the eid, those assets will also be created. This way we offer a way to create the assets of an ad in an atomic way

Servers

Request headers

Name Type Required Description
Content-Type String Yes The media type of the request body.

Default value: "application/json"

Query parameters

Name Type Required Description
advertisable String Yes

EID of the Advertisable.

Default value: "Current User's Advertisable EID."

Request body fields

Name Type Required Description
subtype String No

Possible values:

  • "WIDE_SKYSCRAPER"
  • "NATIVE_AD_600x500"
  • "LARGE_RECTANGLE"
  • "S300X100"
  • "BANNER"
  • "S645X60"
  • "SQUARE"
  • "SKYSCRAPER"
  • "BILLBOARD"
  • "BUTTON"
  • "CAROUSEL"
  • "EMAIL_BANNER"
  • "HALF_PAGE"
  • "IDEA_PIN"
  • "SMALL_SQUARE"
  • "NATIVE_AD_600x315"
  • "LEADERBOARD"
  • "NATIVE_AD_600x600"
  • "RECTANGLE_2"
  • "RECTANGULAR_BUTTON"
  • "MOBILE_LEADERBOARD"
  • "VIDEO"
  • "BUTTON_2"
  • "MICRO_BANNER"
  • "SINGLE"
  • "VERTICAL_BANNER"
  • "HALF_BANNER"
  • "MAX_VIDEO"
  • "EMAIL_M_BANNER"
  • "MEDIUM_RECTANGLE"
  • "RECTANGLE"
multiple_products Integer No
height Integer No
width Integer No
assets[] Array No
assets[].subtype String No

Asset subtype values depending on the asset type. text => url, display_url, title, call_to_action, link_description, message, impression_tracker, third_party_click_tracker, instagram_permalink_url, object_story_id, brand_name, utm_tracking, preview_url, html, ad_blocker_url, tracking_urls, ad_text, fallback_type, actor_id, display_name image => ad, logo, placeholder video => default

Possible values:

  • "html"
  • "display_name"
  • "instagram_permalink_url"
  • "preview_url"
  • "url"
  • "title"
  • "actor_id"
  • "fallback_type"
  • "ad"
  • "ad_blocker_url"
  • "brand_name"
  • "message"
  • "impression_tracker"
  • "third_party_click_tracker"
  • "utm_tracking"
  • "call_to_action"
  • "link_description"
  • "display_url"
  • "ad_text"
  • "object_story_id"
  • "tracking_urls"
  • "placeholder"
  • "default"
  • "logo"
assets[].height Number No

height is only applicable to image or video assets.

assets[].created_date String No

Creation date

assets[].width Number No

width is only applicable to image or video assets.

assets[].filename String No

This is the value for text assets.

assets[].advertiser Object No
assets[].advertiser.eid String No
assets[].image_url String No

URL for image assets only.

assets[].duration Integer No

Duration in seconds, applies to video assets only.

assets[].updated_date String No

Last update date

assets[].name String No

Display name of the Asset

assets[].eid String No

Identifier of the Asset

assets[].text String No

This is the value for text assets.

assets[].video_url String No

URL for video assets only.

assets[].type String No

Type of the Asset

Possible values:

  • "text"
  • "image"
  • "video"
status String No
read_only Boolean No
do_not_forward Boolean No
is_dynamic Boolean No
name String No
is_multi_share_optimized Boolean No
type String No

Possible values:

  • "ad_network"
  • "flash"
  • "native"
  • "web"
  • "tiktok"
  • "facebook"
  • "personalized"
  • "html5"
  • "pinterest"
  • "linkedin"
ad_parameters[] Array No

Dynamic ads ad parameters

ad_parameters[].eid String No

Identifier of the AdParameter

ad_parameters[].key String No

Key of the AdParameter

ad_parameters[].value String No

Value of the AdParameter

How to start integrating

  1. Add HTTP Task to your workflow definition.
  2. Search for the API you want to integrate with and click on the name.
    • This loads the API reference documentation and prepares the Http request settings.
  3. Click Test request to test run your request to the API and see the API's response.