Amazon Ads Reporting
After authorized, you can open the notebook Ads_Reporting_Interface.ipynb and follow instructions to request a report from the Amazon Ads Reporting API.
Before generating the report, you’ll need to first execute the code cells in the Profiles section of this notebook to retrieve all your connected profiles in the specified regions. Refer to Profiles
To create a report request, you need to provide the following values:
-
profile_id
: The identifier of a profile. -
region
: The region where you want to submit the report request. Acceptable values include North America, Europe, and APAC. For Regions, see API endpoints. -
table_name
: An optional parameter. If you don’t specify a table name, the data lake will use the provided {Profile Id}-{Report Type Id} as the destination table. -
authId
: An optional parameter that selects right OAuth credentials to use when making API calls to this instance. You only need to specify it when multi-credential secrets configured. -
request_body
: Construct the report request body using the information from Creates a report request and Report types documentation. Dynamic Date functions can be used in thestartDate
and `endDate`fields of the request body.
Once you’ve entered these values, you can execute the code cell to send the report request.
The microservice provides the ability to schedule report requests on a customized cadence. You’ll need to define a schedule expression using the Cron format and provide a rule name.