Create Report Snapshot
Description
You can request a snapshot file for all performance reporting data available (until the date before current date) for a given advertiser using this method
URL: POST/api/v2/snapshot/report
Request Parameters
Parameter | Description | Type | Required | Possible Values |
---|---|---|---|---|
advertiserId | The ID of the advertiser | integer | Y | Unique numeric identifier for the advertiser. This is the advertising account id. This parameter can take only one advertiser Id for each snapshot report request. |
reportType | The type of the performance report for which the snapshot should be generated. | string | Y | Types of Report: adGroup , adItem , brand , category , keyword , outOfBudgetRecommendations , pageType , platform , placement , attributedPurchases , searchImpression , videoCampaigns , videoKeywords This parameter can take one report type among the above possible report types in each snapshot report request. |
reportMetrics | Choose the metrics type for your snapshot | string | Y | Not all metrics are applicable to all report types. Each report requires at least one dimension to be included in the ‘reportMetrics’ parameter or else the report request will fail. This parameter can take one or more than one report metric among the possible report metrics in each snapshot report request. Note: Possible reportMetrics values: Dimensions and Metrics that is accepted under reportMetrics , please refer to the table ” Definition of Various Parameters Generated Across the Snapshot Reports” |
reportDate | The snapshot date for the report. Note: • To fetch reports , please use either reportDate or Combination of startDate and endDate Using both together will result in an error. However, at least one of these must be defined. • _r_eportDate should not be defined for report type “outOfBudgetRecommendations” or “searchImpression“__ | date | Y | The date should be in “yyyy-MM-dd ” format. This parameter can take only one report date for the last 90 days for each snapshot report request. |
startDate | The first day to be considered in the performance report snapshot. Note: -It cannot be the current date -startDate should not be defined for report type “outOfBudgetRecommendations | date | Y | The date should be in “yyyy-MM-dd ” format. |
endDate | The last day to be considered in the performance report snapshot. It cannot be the current date. Note: –To fetch reports , please use either reportDate or Combination of startDate and endDate Using both together will result in an error. However, one of these must be defined –endDate should not be defined for report type “outOfBudgetRecommendations | date | Y | The date should be in “yyyy-MM-dd ” format. |
- The reports are snapshots at day level
- POST and GET requests under Snapshot v2 endpoint will be counted towards Rate Limits
POST
andGET
requests are through Snapshot v2 endpoint- In Snapshot v2 endpoint, under
reportMetrics
, the user can pick and choose the dimensions and metrics as per their needs - Both
Dimensions
andMetrics
are to be requested inreportMetrics
parameter. Dimensions helps in defining the level of granularity at which the Metrics are to be retrieved - Each report requires at least one dimension to be included in the reportMetrics parameter else the report request will fail
- To get report by campaigns, request report for adGroups and use the campaign ids returned in the report to aggregate the report by campaigns
- The format of the report is CSV, and it will be enclosed in “gzip” file format by default
- Not all
reportMetrics
are applicable to allreportTypes
- Report Type:
itemHealth
is not part of Snapshots v2 endpoint. Item Health report will be available only on Snapshots v1 reports - Report Type:
itemKeyword
is not part of Snapshots v2 endpoint. Item Keyword report will be available only on Snapshots v1 reports
Updated 4 months ago