Training
Module
Get started with AI Builder category classification - Training
Discover how to utilize AI Builder category classification to tag text with category labels, like emails.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
The read-only Category Service allows you to view all categories that are registered in the Xandr system. Categories are assigned to both brands and creatives - you can see what categories are assigned using the Brand Service or the Creative Service. You can then allow or disallow these categories of brands and creatives using the Ad Profile Service.
Note
For site and placement categories, use the Content Category Service.
HTTP Method | Endpoint | Description |
---|---|---|
GET |
https://api.adnxs.com/category | View all the categories in the Xandr system. |
GET |
https://api.adnxs.com/category/CATEGORY_ID | View information about a particular category. |
Note
The fields countries_and_brands
and countries_and_regions
defined below are being used by our system to allow gambling-related creatives to serve in the countries and regions where they're legally allowed, putting us in compliance with applicable laws.
Field | Type | Description |
---|---|---|
id |
int | The ID of the category. Required On: PUT , in query string |
name |
string | The name of the category. Required On: POST |
is_sensitive |
boolean | If true , the category is listed as "sensitive", and is often banned by publishers.Default: false |
last_modified |
timestamp | The date and time when the category was last modified. |
requires_allowlist_on_external |
boolean | Whether brands or creatives in this category require allowlisting in order to serve on external (i.e. RTB) inventory. Default: false |
requires_allowlist_on_managed |
boolean | Whether brands or creatives in this category require allowlisting in order to serve on managed inventory. Default: false |
is_brand_eligible |
boolean | If true , then the category is eligible to be associated with brands within the audit process.Default: true |
requires_allowlist |
boolean | Whether brands or creatives in this category require allowlisting in order to serve. Default: false |
countries_and_brands |
array of objects | This array contains brand allowlist settings grouped by country or region. For more information, see "Countries and Brands" below. |
Field | Type | Description |
---|---|---|
brand_id |
int | The ID of the brand. |
brand_name |
string | The name of the brand. |
brand |
multi_object | An object containing information about the brand allowlisted in this country or region. For more information, see "Brand" below. |
country |
string | A 2-character string referencing the country or region in which the brand is allowlisted. For a list of supported codes, refer the ISO 3166-1 country codes. |
Field | Type | Description |
---|---|---|
brand_id |
int | The ID of the brand. |
brand_name |
string | The name of the brand. |
brand |
multi_object | An object containing information about the brand allowlisted in this region. |
region |
string | A string referencing the region in which the brand is allowlisted. For a list of supported codes, see the ISO 3166-2. |
$ curl -b cookies -c cookies "https://api.adnxs.com/category"
{
"response": {
"status": "OK",
"count": 88,
"start_element": null,
"num_elements": null,
"categories": [
{
"id": 1,
"name": "Airlines",
"is_sensitive": false,
"last_modified": "2010-03-19 17:48:36",
"requires_allowlist_on_external": false,
"requires_allowlist_on_managed": false,
"is_brand_eligible": true,
"requires_allowlist": false,
"allowlist": {
"countries_and_brands": [],
"regions_and_brands": []
}
},
{
"id": 2,
"name": "Apparel",
"is_sensitive": false,
"last_modified": "2010-03-19 17:48:36",
"requires_allowlist_on_external": false,
"requires_allowlist_on_managed": false,
"is_brand_eligible": true,
"requires_allowlist": false,
"allowlist": {
"countries_and_brands": [],
"regions_and_brands": []
}
},
{
"id": 3,
"name": "Appliances",
"is_sensitive": false,
"last_modified": "2010-03-19 17:48:36",
"requires_allowlist_on_external": false,
"requires_allowlist_on_managed": false,
"is_brand_eligible": true,
"requires_allowlist": false,
"allowlist": {
"countries_and_brands": [],
"regions_and_brands": []
}
},
"dbg": {
...
}
}
}
$ curl -b cookies -c cookies "https://api.adnxs.com/category/1"
{
"response": {
"status": "OK",
"count": 1,
"start_element": null,
"num_elements": null,
"category": {
"id": 1,
"name": "Airlines",
"is_sensitive": false,
"last_modified": "2010-03-19 17:48:36",
"requires_allowlist_on_external": false,
"requires_allowlist_on_managed": false,
"is_brand_eligible": true,
"requires_allowlist": false,
"allowlist": {
"countries_and_brands": [],
"regions_and_brands": []
}
},
"dbg": {
...
}
}
}
Training
Module
Get started with AI Builder category classification - Training
Discover how to utilize AI Builder category classification to tag text with category labels, like emails.