Update audience
PATCH {{baseUrl}}/ad_accounts/:ad_account_id/audiences/:audience_id
Update (edit or remove) an existing targeting audience.
Request Body
{"ad_account_id"=>"4", "name"=>"<string>", "rule"=>{"country"=>"<string>", "customer_list_id"=>"6537116", "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"=>["64166", "4738"], "prefill"=>"<boolean>", "retention_days"=>"<integer>", "seed_id"=>["5669", "901654558"], "url"=>["<string>", "<string>"], "visitor_source_id"=>"976128722", "engager_type"=>"<integer>", "campaign_id"=>["7196090", "856732662"], "ad_id"=>["569349", "4027159"], "objective_type"=>["VIDEO_VIEW", "AWARENESS"], "ad_account_id"=>"501038"}, "description"=>"<string>", "operation_type"=>"UPDATE"}
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"}