Python scripts to help advertisers and integrators get started with the Amazon Ads Events API (Conversions API v2), a server-to-server integration for sending real-time or offline conversion events, bypassing browser-based tracking limitations.
- Automatic Conversion Definition Creation — No pre-setup required
- Dataset Organization — Group events via Ads Data Manager (ADM)
- Custom Attributes — 10 named attributes +
brand,productId,category(queryable in AMC) - Batch Processing — Up to 500 events/request
- Consent Support — TCF, Amazon Consent String, GPP
- LwA Credentials — Client ID, Client Secret, and Refresh Token
- Amazon Ads T&Cs — Accept "Conversion Tracking" terms
- Profile ID & Advertiser ID — Via Profile API and Advertisers API
- Permissions — Event Manager Edit access
- Set up → User fills in
CLIENT_ID,CLIENT_SECRET, andREDIRECT_URIin.env - Run
get_access_token.py→ Outputsaccess_token+refresh_token→ User pastesREFRESH_TOKENinto.env - Run
get_advertiser_accounts.py→ UsesREFRESH_TOKENto get a freshaccess_tokenand retrievesaccount_id→ User pastes both into.env - Run
create_events.py→ UsesACCESS_TOKEN+ACCOUNT_ID+CLIENT_IDto send events
📖 API Reference: https://advertising.amazon.com/API/docs/en-us/amazon-ads/1-0/betas#tag/Events