Introduction
The placement category endpoint provides transparency on which categories of domains your ads are being displayed on, as well provides visibility into the number of displays, clicks, and sales that have occurred via a given publisher.How It Works
A single domain can have several categories associated with it because the single page categorization is grouped at the domain level. Also, each individual page can hold several categories. For example, a news website could have pages linked to business, sports, and entertainment.How Hits are Normalized Into DisplaysOn examplenewssite.com there are 50 hits on the following categories:
- News 10
- Travel 15
- Entertainment 25
- News 0.2
- Travel 0.3
- Entertainment 0.5
- News 4 displays / 2 clicks
- Travel 6 displays / 3 clicks
- Entertainment 10 displays / 5 clicks
Endpoint
APOST request returns a report on categories based on the query. The query returns a predefined data set that includes displays, clicks, 30 day post click sales, and 1 day post view sales.
Request example:
JSON
JSON
Attributes
Field | Type | Required | Default Value | Description |
|---|---|---|---|---|
| DateTime | Yes | Start of the report in YY-MM-DD format | |
| DateTime | Yes | End of the report in YY-MM-DD format | |
| string | Yes | Comma separated list of Advertiser IDs in an array | |
| string | No | null | Report only on the specified adset Id |
| string | No | Report only on the specified category | |
| string | No | Report only on the specified domain | |
| boolean | No | true | Specify if the domain dimension is displayed in the report |
| Timezone | No | UTC | Timezone used for dates |
| string | Yes | CSV | Format of the report: JSON, XML, CSV, XLS |
Errors and Warnings
API users must be authenticated in order to make calls to the category endpoint.For more information on authentication, see our Authentication guide.
Insufficient Permission
JSON
Missing Required Fields
There are 4 required fields when making a call:startDate, endDate, advertiserIds, and format.
JSON
Invalid Format
Format must be in CSV, XML, XLS, or JSON.JSON
Invalid Date Range
Date ranges are required and must have a valid start and end date.JSON
Invalid Time Zone
The default time zone for requests is UTC. See this page for more information on supported time zones.JSON