v1

latestOpenAPI 3.1.02026-07-26950137.9 KB

Create a Custom Audience Rule

post/backstage/api/1.0/{account_id}/universal_pixel/custom_audience_rule/

Path parameters

account_idstring required

An alphabetic ID. See Get Account Details.

Request body

RAW_BODYstring json required

A JSON object representing the new Custom Audience Rule.<br>(See below for an example.)

Response

200

idinteger
display_namestring
{"stackTrail":"paths:/backstage/api/1.0/{account_id}/universal_pixel/custom_audience_rule/:post:responses:200:content:application/json:schema:properties:look_back_window","oasType":"schema","type":"unknown"}
categorystring
statusstring
typestring
event_namestring
exclude_from_campaignsboolean
{"stackTrail":"paths:/backstage/api/1.0/{account_id}/universal_pixel/custom_audience_rule/:post:responses:200:content:application/json:schema:properties:description","oasType":"schema","type":"unknown"}
advertiser_idstring
last_modified_bystring
{"stackTrail":"paths:/backstage/api/1.0/{account_id}/universal_pixel/custom_audience_rule/:post:responses:200:content:application/json:schema:properties:last_modified_at","oasType":"schema","type":"unknown"}
audience_sizeinteger

Example response

{
  "id": 75,
  "display_name": "Add to cart",
  "category": "ADD_TO_CART",
  "status": "ACTIVE",
  "type": "BASIC",
  "event_name": "page_view",
  "condition": {
    "property": "URL",
    "predicate": "CONTAINS",
    "value": "test.com"
  },
  "advertiser_id": "demo-advertiser",
  "last_modified_by": "peter.pan@taboola.com"
}