Endpoints
Four separate endpoints support requests to create campaign and line item reports and retrieve the report data and status.Verb | Endpoint | Description |
|---|---|---|
POST |
| Create a Campaign report request |
POST |
| Create a Line Item report request |
GET |
| Get status of a specific report |
GET |
| Download output of a specific report |
Report Request Attributes
Attribute | Data Type | Description |
|---|---|---|
| string / list | Campaign or Line Item ID(s) of the desired report Examples:
Accepted values: single or list of string/int64 (max 50 ids per call) Writeable? N / Nullable? N |
| enum | Report types are pre-packaged reports that allow the specification of the report breakdown. SeeReport Typesfor more details about each of them. Note:when Accepted values: refer toReport Typespage for a complete list of available values Writeable? N / Nullable? N |
| list | Dimension attributes desired for metrics breakdown for the custom report of the campaign(s) / line item(s). Note:when Accepted values: refer toMetrics and Dimensionspage for a complete list of available values Writeable? N / Nullable? N |
| list | Quantitative metrics desired in the custom report of the campaign(s) / line item(s). Note:
Accepted values: refer toMetrics and Dimensionspage for a complete list of available values Writeable? N / Nullable? N |
| date | Start date to report (inclusive) Accepted values: Writeable? N / Nullable? N |
| date | End date to report (inclusive) Accepted values: Writeable? N / Nullable? N |
| enum | Campaigntype Accepted values: Writeable? N / Nullable? N |
| string | Time zone to consider in the report Accepted values:IANA (TZ database)time zones (example: Writeable? N / Nullable? Y |
| enum | The post-click attribution window, defined as the maximum number of days considered between a click and a conversion for attribution; conversions are attributed to the date of conversion, not the date of click; defaults to campaign settings if omitted; must be specified if The post-click attribution window, defined as the maximum number of days considered between a click and a conversion for attribution; conversions are attributed to the date of conversion, not the date of click. Defaults to campaign settings if omitted; must be specified if Accepted values: Writeable? N / Nullable? Y |
| enum | The post-view attribution window, defined as the maximum number of days considered between an impression and a conversion for attribution; conversions are attributed to the date of conversion, not the date of impression; defaults to campaign settings if omitted; must be less than or equal to The post-view attribution window, defined as the maximum number of days considered between an impression and a conversion for attribution; conversions are attributed to the date of conversion, not the date of impression. Defaults to campaign settings if omitted; must be less than or equal to Accepted values: Writeable? N / Nullable? Y |
| enum | Filter on specific sales channel: online or offline Accepted values: Writeable? N / Nullable? Y |
| enum | Format of the report data returned Accepted values: Default: Writeable? N / Nullable? N |
| string | The match type used to associate a search term and keywords entered for the campaign. Accepted values:
|
| string | Indicates how the keyword was targeted — either manually by the user or automatically by the platform. Accepted values:
|
| string | Specifies the conquesting strategy used with the keyword. Accepted values:
|
| string | The type of creative asset used in the ad, such as Display or Video. Accepted values: |
- First, create a request for the campaign or line item report with the desired attributes
- This generates a
reportIdrepresenting the report
Create a Report Request
Reporting endpoints provide two separate endpoints that allow downloading reports at the campaign or line item level. Each of the following requests can be repeated for each individual report type.Campaigns Level Report
Sample RequestLine Items Level Report
Sample Request- Next, use the
reportIdto poll the report status endpoint until one is successfully computed
Get Status of a Specific Report
This endpoint retrieves the status of a specific report. Status can bepending, success, failure, or expired
Sample Request
- Finally, download the report using the report output endpoint
- Report outputs are cached for at least 1 hour before expiration
- Exact expiration is indicated by the
expiresAtfield in the /status response