First experience with Ads Api. How can I send and fetch data?

ads
api

#1

Hello,

I’m trying to use Twitter Ads Api to get statistical data from our customers’ Ads accounts.
I created a simple app from https://apps.twitter.com and downloaded a client library. But it didn’t work.

I’m reading ads api documentation and seeing some REST urls there. When I try to reach any of them gives me INVALID_RESPONSE error in chrome. Those urls look like “not working”

So, what’s the first step should I take to be able to use Ads Api? Should I apply for something?


#2

Hi!

You should start here https://dev.twitter.com/ads/campaigns

And after that, reading the whole documentation in order to understand how twitter ads api is organized.

Regards


#3

Thank you for your reply.

I was able to send request and fetch data successfully using twurl.
It seems “ads-api-sandbox.twitter.com” is what I need for testing purposes instead of “ads-api.twitter.com

But… can you or any others who read this message, please tell me why these urls are inaccessible via browser??

Edit:
When I try
twurl -H ads-api-sandbox.twitter.com /0/accounts/

Gives an error even I make authorization successfully with my twitter account:
{“errors”:[{“code”:“UNAUTHORIZED_CLIENT_APPLICATION”,“message”:“The client application making this request does not have access to this API”}],“request”:{“params”:{}}}

Must I have an ads account in order to test api? I’m asking this because I’m using ads-api-sandbox.twitter.com


#4

Hello,

The UNAUTHORIZED_CLIENT_APPLICATION message means that your application used (App ID) has not been approved to use Advertiser API. Please confirm that you have applied for access and been approved via the process at https://dev.twitter.com/ads/overview If your access has been approved then your credentials may not be set up correctly within .twurlrc file.

Thanks,

John