Create custom audience
POST {{baseUrl}}/ad_accounts/:ad_account_id/audiences/custom
Create a custom audience and find the audiences you want your ads to reach.
Request Body
{"sharing_type"=>"SYNDICATED", "name"=>"<string>", "rule"=>{"country"=>"<string>", "customer_list_id"=>"7", "engagement_domain"=>["<string>", "<string>"], "engagement_type"=>"<string>", "event"=>"<string>", "event_data"=>{"currency"=>"KRW", "lead_type"=>"<string>", "line_items"=>{"product_brand"=>"<string>", "product_category"=>"<string>", "product_id"=>"<integer>", "product_name"=>"<string>", "product_price"=>"<string>", "product_quantity"=>"<integer>", "product_variant"=>"<string>", "product_variant_id"=>"<string>"}, "order_id"=>"<string>", "order_quantity"=>"<integer>", "page_name"=>"<string>", "promo_code"=>"<string>", "property"=>"<string>", "search_query"=>"<string>", "value"=>"<string>", "video_title"=>"<string>"}, "percentage"=>"<integer>", "pin_id"=>["657580327", "3930019103"], "prefill"=>"<boolean>", "retention_days"=>"<integer>", "seed_id"=>["25", "720676887"], "url"=>["<string>", "<string>"], "visitor_source_id"=>"19675", "engager_type"=>"<integer>", "campaign_id"=>["60613392906", "5"], "ad_id"=>["6", "04469823"], "objective_type"=>["WEB_SESSIONS", "VIDEO_VIEW"], "ad_account_id"=>"6"}, "data_party"=>"1p", "ad_account_id"=>"3804605", "category"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"ad_account_id":"350249","id":"7097","name":"\u003cstring\u003e","audience_type":"\u003cstring\u003e","description":"\u003cstring\u003e","rule":{"country":"\u003cstring\u003e","customer_list_id":"6275","engagement_domain":["\u003cstring\u003e","\u003cstring\u003e"],"engagement_type":"\u003cstring\u003e","event":"\u003cstring\u003e","event_data":{"currency":"GBP","lead_type":"\u003cstring\u003e","line_items":{"product_brand":"\u003cstring\u003e","product_category":"\u003cstring\u003e","product_id":"\u003cinteger\u003e","product_name":"\u003cstring\u003e","product_price":"\u003cstring\u003e","product_quantity":"\u003cinteger\u003e","product_variant":"\u003cstring\u003e","product_variant_id":"\u003cstring\u003e"},"order_id":"\u003cstring\u003e","order_quantity":"\u003cinteger\u003e","page_name":"\u003cstring\u003e","promo_code":"\u003cstring\u003e","property":"\u003cstring\u003e","search_query":"\u003cstring\u003e","value":"\u003cstring\u003e","video_title":"\u003cstring\u003e"},"percentage":"\u003cinteger\u003e","pin_id":["023","9594945"],"prefill":"\u003cboolean\u003e","retention_days":"\u003cinteger\u003e","seed_id":["7","260328305"],"url":["\u003cstring\u003e","\u003cstring\u003e"],"visitor_source_id":"1700","event_source":{},"ingestion_source":{},"engager_type":"\u003cinteger\u003e","campaign_id":["7127317","3"],"ad_id":["813597","27493607107"],"objective_type":["WEB_CONVERSION","VIDEO_VIEW"],"ad_account_id":"63156"},"size":"\u003cinteger\u003e","status":"\u003cstring\u003e","type":"\u003cstring\u003e","created_timestamp":"\u003cinteger\u003e","updated_timestamp":"\u003cinteger\u003e"}