You can target specific browsers for a given campaign.
Use the Dictionary to fetch a list of available browsers:
GET /backstage/api/1.0/resources/campaigns_properties/browsers
Flow
Apply Targeting
Use the campaigns endpoint to update the campaign. In the browser_targeting field, the value
property contains the collection to target.
POST /backstage/api/1.0/demo-advertiser/campaigns/1234
{
"browser_targeting": {
"type": "INCLUDE",
"value": [
"Chrome",
"Yandex"
]
}
}
{
"id": "1234",
//...
"browser_targeting": {
"type": "INCLUDE",
"value": [
"Chrome",
"Yandex"
],
"href": null
}
}
For the
browser_targeting
field, thehref
property is alwaysnull
.
The API will not attempt to validate the combined targeting for platform, OS and browser. (If the targeted combination does not exist, the campaign will not display.)
Fetch Targeting
Use the campaigns endpoint to fetch the campaign. In the browser_targeting field, the value
property stores the targeted collection.
GET /backstage/api/1.0/demo-advertiser/campaigns/1234
{
"id": "1234",
//...
"browser_targeting": {
"type": "INCLUDE",
"value": [
"Chrome",
"Yandex"
],
"href": null
}
}
For the
browser_targeting
field, thehref
property is alwaysnull
.
Remove Targeting (Target ALL)
Use the campaigns endpoint to update the campaign. In the browser_targeting field, submit a type
property of "ALL". (Omit the value
property from the request object - or pass a value of null
.) In the updated Campaign Object, the value
property is now an empty collection.
POST /backstage/api/1.0/demo-advertiser/campaigns/1234
{
"browser_targeting": {
"type": "ALL",
}
}
{
// other Campaign fields...
"publisher_targeting": {
"type": "ALL",
"value": [],
"href": null
}
}
Patching
'Patching' is not supported. Submitted values overwrite any existing ones.