技术问询:如何获取Twitter Ads企业账户设置的货币代码
Hey there! I totally get the frustration of digging through API docs and coming up empty for that one specific field you need. Let me break down exactly where you can pull the currency code for your Twitter Ads business account:
Use the Single Account Endpoint: The
GET accounts/:account_idendpoint is where you'll find the currency setting. When you make a request to this endpoint, the response payload includes acurrencyfield that holds the 3-letter ISO currency code (likeUSD,EUR, etc.) configured for the account.Here's a quick example of what the relevant part of the response might look like:
{ "account": { "id": "123456", "name": "My Business Account", "currency": "USD", // other account details... } }Bulk Account Lookup: If you need to fetch currency codes for multiple linked accounts at once, use the
GET accountsendpoint. This returns a list of account objects, each with their owncurrencyfield.
A quick note: Make sure your API credentials have the ads-read permission enabled—without that, you won't be able to access account-level details like currency settings.
内容的提问来源于stack exchange,提问作者adil hussain

