Conversion and custom audience rules that are URL-based (type
= "BASIC"), contain 1 or more conditions.
These conditions are stored in the condition
property of the object, using the Condition Object schema.
For a single condition, the
condition
property stores the relevant values directly in a Condition Object.For multiple conditions, the
children
array stores an array of Condition Objects.
Examples:
{
"id": 61,
"display_name": "Product View",
"look_back_window": null,
"category": "VIEW_CONTENT",
"status": "ACTIVE",
"type": "BASIC",
"event_name": "page_view",
"condition": {
"property": "URL",
"predicate": "CONTAINS",
"value": "/products/",
"children": []
},
"effects": [],
"include_in_total_conversions": false,
"exclude_from_campaigns": false,
"description": null,
"advertiser_id": "demo-advertiser-1",
"last_modified_by": "[email protected]",
"last_modified_at": "2020-05-31"
}
{
"id": 61,
"display_name": "Product View",
"look_back_window": null,
"category": "VIEW_CONTENT",
"status": "ACTIVE",
"type": "BASIC",
"event_name": "page_view",
"condition": {
"property": null,
"predicate": "OR",
"value": null,
"children": [
{
"property": "URL",
"predicate": "CONTAINS",
"value": "/products/",
"children": []
},
{
"property": "URL",
"predicate": "CONTAINS",
"value": "/featured/",
"children": []
}
]
},
"effects": [],
"include_in_total_conversions": false,
"exclude_from_campaigns": false,
"description": null,
"advertiser_id": "demo-advertiser-1",
"last_modified_by": "[email protected]",
"last_modified_at": "2020-05-31"
}
Applies to:
- The condition property of a Conversion Rule (see above).
- The condition property of a Custom Audience (see below).