Hello @tharlinsmith
Thank you for notifying our team about this issue! Our documentation needs to be updated to reflect the change in behavior for the Ads API Sandbox v1 endpoints. Whereas the v0 API sandbox would return an account_id after performing a GET on the /0/accounts/ endpoint, the behavior for this has been modified for v1.
For v1:
- Perform a
POST request on /1/accounts/ endpoint to create a new advertiser account, and the response from this request will contain an account_id that you can use for making all subsequent requests
- The reason for this change in behavior is to allow sandbox users to create multiple advertiser accounts, if necessary.
A quick example below:
twurl -X POST -H "ads-api-sandbox.twitter.com" "/1/accounts/" | jq .
{ "data_type": "account", "data": { "name": "Sandbox account for <user>", "timezone": "America/Los_Angeles", "timezone_switch_at": null, "id": "gq131y", "created_at": "2016-08-11T19:13:10Z", "salt": "fca53e77ac4e160a57fbf3d45cc39aee", "updated_at": "2016-08-11T19:13:10Z", "approval_status": "ACCEPTED", "deleted": false }, "request": { "params": {} } }
I hope that answers your question!