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"=>"74032598026", "engagement_domain"=>["<string>", "<string>"], "engagement_type"=>"<string>", "event"=>"<string>", "event_data"=>{"currency"=>"HKD", "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"=>["3", "26912249982"], "prefill"=>"<boolean>", "retention_days"=>"<integer>", "seed_id"=>["3563424958", "70381429"], "url"=>["<string>", "<string>"], "visitor_source_id"=>"344", "engager_type"=>"<integer>", "campaign_id"=>["27297483903", "667060"], "ad_id"=>["4679", "415003365"], "objective_type"=>["AWARENESS", "AWARENESS"], "ad_account_id"=>"7312"}, "data_party"=>"1p", "ad_account_id"=>"3", "category"=>"<string>"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"ad_account_id":"55881","id":"9316","name":"\u003cstring\u003e","audience_type":"\u003cstring\u003e","description":"\u003cstring\u003e","rule":{"country":"\u003cstring\u003e","customer_list_id":"6214014715","engagement_domain":["\u003cstring\u003e","\u003cstring\u003e"],"engagement_type":"\u003cstring\u003e","event":"\u003cstring\u003e","event_data":{"currency":"SEK","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":["72441928206","668681"],"prefill":"\u003cboolean\u003e","retention_days":"\u003cinteger\u003e","seed_id":["52636298465","874247"],"url":["\u003cstring\u003e","\u003cstring\u003e"],"visitor_source_id":"35","event_source":{},"ingestion_source":{},"engager_type":"\u003cinteger\u003e","campaign_id":["200127","94587"],"ad_id":["0126770289","713069"],"objective_type":["CONSIDERATION","CONSIDERATION"],"ad_account_id":"2"},"size":"\u003cinteger\u003e","status":"\u003cstring\u003e","type":"\u003cstring\u003e","created_timestamp":"\u003cinteger\u003e","updated_timestamp":"\u003cinteger\u003e"}