Endpoint Get Report
Name
get_report
Description
Downloads an Amazon Ads report. [API reference]
Parameters
| Parameter | Required | Options | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Name: Label: Record Type | YES | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: Label: Report Date (yyyyMMdd)The date for which to retrieve the report in YYYYMMDD format. Supported functions now|today|yesterday|weekstart|weekend|monthstart|monthend|yearstart|yearend and supported intervals for add/subtract are ms|s|sec|min|h|hour|y|year|d|day|m|month|y|year. Example monthstart-3d (subtract 3days from month start) | YES | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: Label: Metrics | YES | 
 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: Label: State Filter | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: Label: Campaign Type | 
 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Name: Label: Segment | 
 | 
Output Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
        If the column you are looking for is missing, consider customizing Amazon Ads Connector.
    
Input Columns
| Label | Data Type (SSIS) | Data Type (SQL) | Length | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| There are no Static columns defined for this endpoint. This endpoint detects columns dynamically at runtime. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Examples
SSIS
Use Amazon Ads Connector in API Source or in API Destination SSIS Data Flow components to read or write data.
API Source
API Source - Amazon Ads
    Amazon Ads Connector can be used to get Amazon advertisements using Amazon Advertisements API, download various advertisement-related reports.
    Amazon Ads
    Get Report
    | Required Parameters | |
|---|---|
| Record Type | Fill-in the parameter... | 
| Report Date (yyyyMMdd) | Fill-in the parameter... | 
| Metrics | Fill-in the parameter... | 
| Optional Parameters | |
| State Filter | |
| Campaign Type | |
| Segment | |
 
API Destination
API Destination - Amazon Ads
    Amazon Ads Connector can be used to get Amazon advertisements using Amazon Advertisements API, download various advertisement-related reports.
    Amazon Ads
    Get Report
    | Required Parameters | |
|---|---|
| Record Type | Fill-in the parameter... | 
| Report Date (yyyyMMdd) | Fill-in the parameter... | 
| Metrics | Fill-in the parameter... | 
| Optional Parameters | |
| State Filter | |
| Campaign Type | |
| Segment | |
 
ODBC application
Use these SQL queries in your ODBC application data source:
Get report
SELECT * FROM get_report
WITH
(
    "RecordType" = 'keywords',
    "ReportDate" = 'today',
    "Metrics" = 'abcd-1234-metrics'
)SQL Server
Use these SQL queries in SQL Server after you create a data source in Data Gateway:
Get report
DECLARE @MyQuery NVARCHAR(MAX) = 'SELECT * FROM get_report
WITH
(
    "RecordType" = ''keywords'',
    "ReportDate" = ''today'',
    "Metrics" = ''abcd-1234-metrics''
)';
EXEC (@MyQuery) AT [LS_TO_AMAZON_ADS_IN_GATEWAY]; 
            