Multi-account token management service.
base_endpoint)注册账户时必须指定 base_endpoint,用于标识该账户对应的 Amazon Ads API 区域端点:
https://advertising-api.amazon.comhttps://advertising-api-eu.amazon.comhttps://advertising-api-fe.amazon.comcurl -X POST /amazon-ads/tokens \
-H "Authorization: Bearer YOUR_SECRET" \
-H "Content-Type: application/json" \
-d '{
"name": "my-account",
"brand": "MyBrand",
"region": "NA",
"base_endpoint": "https://advertising-api.amazon.com",
"client_id": "amzn1.application-oa2-client.xxx",
"client_secret": "xxx",
"refresh_token": "xxx"
}' curl "/amazon-ads/access-token?name=my-account" \
-H "Authorization: Bearer YOUR_SECRET" 响应中将包含 base_endpoint,调用方可直接用于构造 Amazon Ads API 请求 URL。