ad_accounts
Create async request for an account analytics report
This returns a token that you can use to download the report when it is ready. Note that this endpoint requires the parameters to be passed as JSON-formatted in the request body. This endpoint does not support URL query parameters.
- The token's user_account must either be the Owner of the specified ad account, or have one of the necessary roles granted to them via Business Access: Admin, Analyst, Campaign Manager.
- If granularity is not HOUR, you can pull data from up to 914 days before the current date in UTC time, with a maximum time range of 186 days.
- If granularity is HOUR, you can pull data from up to 8 days before the current date in UTC time, with a maximum time range of 3 days.
- If level is PRODUCT_ITEM, you can pull data from up to 92 days before the current date in UTC time, with a maximum time range of 31 days.
- If level is PRODUCT_ITEM, ad_ids and ad_statuses parameters are not allowed. Any columns related to pin promotion and ad is not allowed either.
post/ad_accounts/{ad_account_id}/reports
Path parameters
ad_account_idstring required
Unique identifier of an ad account.
Request body
Example request
{
"ad_group_statuses": [
"RUNNING"
],
"ad_statuses": [
"APPROVED"
],
"attribution_types": [
"INDIVIDUAL"
],
"columns": [
"SPEND_IN_MICRO_DOLLAR"
],
"conversion_report_time": "TIME_OF_AD_ACTION",
"level": "CAMPAIGN",
"metrics_filters": [
{
"field": "SPEND_IN_DOLLAR",
"operator": "LESS_THAN"
}
],
"product_group_statuses": [
"RUNNING"
],
"report_format": "JSON",
"reporting_timezone": "PINTEREST_TIME_ZONE"
}Response
The request has succeeded.
Example response
{
"report_status": "FINISHED"
}