post_report
- Reports.post_report(**kwargs) ApiResponse
Requests a Sponsored Products report.
Request the creation of a performance report for all entities of a single type which have performance data to report. Record types can be one of campaigns, adGroups, keywords, productAds, asins, and targets. Note that for asin reports, the report currently can not include metrics associated with both keywords and targets. If the targetingId value is set in the request, the report filters on targets and does not return sales associated with keywords. If the targetingId value is not set in the request, the report filters on keywords and does not return sales associated with targets. Therefore, the default behavior filters the report on keywords. Also note that if both keywordId and targetingId values are passed, the report filters on targets only and does not return keywords.
- Request body
- name (string): [optional] The name of the report.startDate (string): [required] The maximum lookback window supported depends on the selection of reportTypeId. Most report types support 95 days as lookback window. YYYY-MM-DD format.endDate (string): [required] The maximum lookback window supported depends on the selection of reportTypeId. Most report types support 95 days as lookback window. YYYY-MM-DD format.configuration (AsyncReportConfigurationAsyncReportConfiguration): [required] | adProduct (string): [required] Enum: The advertising product such as SPONSORED_PRODUCTS or SPONSORED_BRANDS. | columns (list > string): [required] The list of columns to be used for report. The availability of columns depends on the selection of reportTypeId. This list cannot be null or empty. | reportTypeId (string): [required] The identifier of the Report Type to be generated. | format (string): [required] Enum: The report file format. [GZIP_JSON] | groupBy (list > string): [required] This field determines the aggregation level of the report data and also makes additional fields available for selection. This field cannot be null or empty. | filters (AsyncReportFilterAsyncReportFilter): [optional] | field (string): The field name of the filter. | values (list > string): The values to be filtered by. | timeUnit (string): [required] Enum: The aggregation level of report data. If the timeUnit is set to SUMMARY, the report data is aggregated at the time period specified. The availability of time unit breakdowns depends on the selection of reportTypeId. [ SUMMARY, DAILY ]
- Returns:
ApiResponse