You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
where to find mapping info between country codes and full country names ? #224
In the credentials.yml example, country names are used in full form (e.g., "germany",...), but in the API code (like marketplaces.py), countries are referenced using their ISO codes (e.g., "DE", "GB").
In the whole API docs, is there any file with mapping between country codes and full country names ?
Marketplaces are used to define basically the API endpoints Amazon need to use depending on the regions, by default it will use EU so if you are using one of the marketplaces that are under the Europe (EU). Covers UK, FR, IT, ES, DE, NL, AE, SE, PL, and TR marketplaces you can skip. If you are using either North America (NA) or Far East (FE), you will need import from base and pass the marketplace as follows:
from ad_api.api import sponsored_products
from ad_api.base import Marketplaces
You can pass NA or US, CA, MX or BR for North America and JP, AU or SG for Far East
Activity
denisneuf commentedon Mar 31, 2025
Here:
https://github.com/denisneuf/python-amazon-ad-api/blob/main/ad_api/base/marketplaces.py
Please notice the readme files:
Marketplaces
Marketplaces are used to define basically the API endpoints Amazon need to use depending on the regions, by default it will use EU so if you are using one of the marketplaces that are under the Europe (EU). Covers UK, FR, IT, ES, DE, NL, AE, SE, PL, and TR marketplaces you can skip. If you are using either North America (NA) or Far East (FE), you will need import from base and pass the marketplace as follows:
from ad_api.api import sponsored_products
from ad_api.base import Marketplaces
You can pass NA or US, CA, MX or BR for North America and JP, AU or SG for Far East
result=sponsored_products.CampaignsV3(marketplace=Marketplaces.NA).list_campaigns()