download_report

Reports.download_report(**kwargs) → ApiResponse

Downloads the report previously get report specified by location (this is not part of the official Amazon Advertising API, is a helper method to download the report). Take in mind that a direct download of location returned in get_report will return 401 - Unauthorized.

kwarg parameter file if not provided will take the default amazon name from path download (add a path with slash / if you want a specific folder, do not add extension as the return will provide the right extension based on format choosed if needed)

kwarg parameter format if not provided a format will return a url to download the report (this url has a expiration time)

Keyword Args
url (string): The location obatined from get_report [required]
file (string): The path to save the file if mode is download json, zip or gzip. [optional]
format (string): The mode to download the report: data (list), raw, url, json, zip, gzip. Default (url) [optional]
Returns:

ApiResponse