Post Advertiser Domain Rules
POST {{baseUrl}}/preview/advertisers/:advertiserId/targeting/domain-rules
Inserts a list of targeted domains for an advertiser and sets the targeting mode : blocklisting or allowlisting.
It will replace the current list if any.
Request Body
{"data"=>{"type"=>"<string>", "attributes"=>{"type"=>"BUNDLE", "mode"=>"BLOCKLIST", "data"=>[{"value"=>"<string>", "readOnly"=>"<boolean>", "active"=>"<boolean>"}, {"value"=>"<string>", "readOnly"=>"<boolean>", "active"=>"<boolean>"}]}}}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"data":{"type":"\u003cstring\u003e","attributes":{"type":"DOMAIN","mode":"BLOCKLIST","data":[{"value":"\u003cstring\u003e","readOnly":"\u003cboolean\u003e","active":"\u003cboolean\u003e"},{"value":"\u003cstring\u003e","readOnly":"\u003cboolean\u003e","active":"\u003cboolean\u003e"}]}}}