Create async request for an account analytics report
POST {{baseUrl}}/ad_accounts/:ad_account_id/reports
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.
Request Body
{"columns"=>["SPEND_IN_MICRO_DOLLAR", "SPEND_IN_MICRO_DOLLAR"], "end_date"=>"2020-12-20", "granularity"=>"<string>", "level"=>"CAMPAIGN", "start_date"=>"2020-12-20", "click_window_days"=>30, "engagement_window_days"=>7, "view_window_days"=>1, "conversion_report_time"=>"TIME_OF_AD_ACTION", "attribution_types"=>["INDIVIDUAL", "INDIVIDUAL"], "campaign_ids"=>["12345678"], "campaign_statuses"=>["RUNNING", "PAUSED"], "campaign_objective_types"=>["AWARENESS", "VIDEO_VIEW"], "ad_group_ids"=>["12345678"], "ad_group_statuses"=>["RUNNING", "PAUSED"], "ad_ids"=>["12345678"], "ad_statuses"=>["APPROVED", "PAUSED"], "product_group_ids"=>["12345678"], "product_group_statuses"=>["RUNNING", "PAUSED"], "product_item_ids"=>["12345678"], "targeting_types"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "metrics_filters"=>[{"value"=>"<Error: Too many levels of nesting to fake this schema>"}], "report_format"=>"JSON"}
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string | ||
Accept | string |
RESPONSES
status: OK
{"report_status":"do irure est aliqua","token":"laboris in est cillum proident","message":"mollit aute veniam in in"}