Create Sandbox API account


#1

Hello, I am trying to create a test sandbox api in Twitter ads API using this command
POST https://ads-api-sandbox.twitter.com/1/accounts/. But it is returning FORBIDDEN 403 error. How to add it properly?
The full error showing like {“errors”:[{“code”:“UNAUTHORIZED_CLIENT_APPLICATION”,“message”:“The client application making this request does not have access to this API”}],“request”:{“params”:{}}}.
I have applied for access yesterday in https://dev.twitter.com/ads/ads-api-access-developer and provided there an app id that I created in my personal twitter account that is almost 4 years old. please guide me whether these steps are correct and please explain what is the reason for getting above error?


#2

@prabrishadev: What is your app ID?


#3

Hello,
Thank you for your response. My App ID is 13630674.


#4

@prabrishadev: Your app has not been granted Ads API access yet. It takes the team time to go through the applications. Thank you for your patience.


#5

Ok.I will wait for the access.Thank you for your help.


#6

@prabrishadev: Looks like you’re all set!


#7

I also have similar issue and App id is - 13481082 . Could you please help with the same.


#8

Hello, I had a problem of permission and it took about 15 days to get api access. Now its working fine.


#9

Hello,

We are trying to create a sandbox account and we keep getting the UNAUTHORIZED_CLIENT_APPLICATION message.
Our application has been approved for Twitter Ads API.
Can you please help us? Our app ID is: 14335442


#10

@MediaScapeIE: Thanks for using an existing thread. Are you able to retrieve sandbox accounts? For example:

$ twurl -H ads-api-sandbox.twitter.com "/2/accounts"

Note that we’re working through some sandbox creation issues. See this thread for more information.


#11

@juanshishido Thank you for your reply.

We have tested two calls.

First call:

$ twurl -H ads-api-sandbox.twitter.com "/2/accounts"

Response:

{"request":{"params":{}},"next_cursor":null,"data":[]}

Second call:

$ twurl -X POST -H ads-api-sandbox.twitter.com "/2/accounts"

Response:

{"errors":[{"code":"INTERNAL_ERROR","message":"Internal Error"}],"request":{"params":{}}}

FYI our new Twitter account is ineligible to use the Twitter Ads program, therefore we cannot test Ads API calls outside sandbox.

Hope you can find a solution for us.
Thank you.


#12

Hey @MediaScapeIE

This is highly unusual and my guess is that it could be an intermittent error. Can you try creating a sandbox account once more and let us know if that works? We’ve verified your access and everything looks good on our end.

Thanks!


#13

Hey @imit8me

We did another test and everything is working just fine.

Thanks for your help.