Skip to content

Instantly share code, notes, and snippets.

@barce
Created November 27, 2017 20:06
Show Gist options
  • Save barce/3cc5e4f84a6f5cab770ce7463207cee4 to your computer and use it in GitHub Desktop.
Save barce/3cc5e4f84a6f5cab770ce7463207cee4 to your computer and use it in GitHub Desktop.
example of using Amazon AD API
from amazonadapi import AmazonClient
import os
client = AmazonClient()
client.refresh_token = os.environ['AMZN_REFRESH_TOKEN']
client.auto_refresh_token()
client.set_region()
client.profile_id = '3586026682031981'
orders = client.get_orders(dsp_advertiser_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment