Create async request for an account analytics report
Changed onThis 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.
Request
- Base URLhttps://api.pinterest.com/v5
- AuthOAuth 2Authorization codehttps://www.pinterest.com/oauth/Token URLhttps://api.pinterest.com/v5/oauth/tokenScopesads:read
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
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"
}Changes
- breaking
added the new required request property
- breaking
added the new required request property
- breaking
added the new required request property
- warning
removed
subschema #1subschema #2subschema #3from the request bodyallOflist - warning
added the new
CANCELLEDenum value to theresponse property for the response status - warning
added the new
DOES_NOT_EXISTenum value to theresponse property for the response status - warning
added the new
EXPIREDenum value to theresponse property for the response status - warning
added the new
FAILEDenum value to theresponse property for the response status - warning
added the new
FINISHEDenum value to theresponse property for the response status - warning
added the new
IN_PROGRESSenum value to theresponse property for the response status - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
removed from the
response propertyallOflist for the response status
- breaking
- breaking
added
subschema #1subschema #3to the request bodyallOflist - warning
removed
subschema #1subschema #3from the request bodyallOflist
- breaking