Create ads

POST {{baseUrl}}/ad_accounts/:ad_account_id/ads

This endpoint is currently in beta and not available to all apps. Learn more.

Create multiple new ads. Request must contain adgroupid, creativetype, and the source Pin pinid.

Request Body

{"0"=>{"ad_group_id"=>"2680059592705", "pin_id"=>"394205773611545468", "creative_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "android_deep_link"=>"sit consectetur ut", "carousel_android_deep_links"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "carousel_destination_urls"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "carousel_ios_deep_links"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "click_tracking_url"=>"enim irure eiusmod", "destination_url"=>"dolore", "ios_deep_link"=>"nulla quis", "is_pin_deleted"=>false, "is_removable"=>false, "name"=>"Excepteur Lorem u", "status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "tracking_urls"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "view_tracking_url"=>"irure enim Ut culpa"}, "1"=>{"ad_group_id"=>"2680059592705", "pin_id"=>"394205773611545468", "creative_type"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "android_deep_link"=>"est consequat", "carousel_android_deep_links"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "carousel_destination_urls"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "carousel_ios_deep_links"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, {"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "click_tracking_url"=>"elit sed cupidatat anim", "destination_url"=>"veniam", "ios_deep_link"=>"culpa enim cillum", "is_pin_deleted"=>false, "is_removable"=>false, "name"=>"cupidatat do", "status"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "tracking_urls"=>{"value"=>"<Error: Too many levels of nesting to fake this schema>"}, "view_tracking_url"=>"aliquip eu"}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{&quot;items&quot;:[{&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;exceptions&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},{&quot;data&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;exceptions&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}}]}