Error while creating campaign

oauth
api

#1

Hi everyone,

We get an error of - UNAUTHORIZED_CLIENT_APPLICATION

We tried many things but nothing work. I will be happy if someone can help us with it. I provided some more information below regard the call.

Thanks in advance.

UNAUTHORIZED_CLIENT_APPLICATION
The client application making this request does not have access to this API

PARAMS:

[PostParameter{name=‘name’, value=‘name’, file=null, fileBody=null}, PostParameter{name=‘funding_instrument_id’, value=‘12345’, file=null, fileBody=null}, PostParameter{name=‘start_time’, value=‘2016-08-29T14:09:45Z’, file=null, fileBody=null}, PostParameter{name=‘daily_budget_amount_local_micro’, value=‘5000000’, file=null, fileBody=null}]

CALL:

https://ads-api.twitter.com/1/accounts/228204090/campaigns/

RESULT:

403:The request is understood, but it has been refused. An accompanying error message will explain why. This code is used when requests are being denied due to update limits (https://support.twitter.com/articles/15364-about-twitter-limits-update-api-dm-and-following).
{“errors”:[{“code”:“UNAUTHORIZED_CLIENT_APPLICATION”,“message”:“The client application making this request does not have access to this API”}],“request”:{“params”:{}}}

Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=73e99b70 or
http://www.google.co.jp/search?q=395b0224
TwitterException{exceptionCode=[73e99b70-395b0224], statusCode=403, message=The client application making this request does not have access to this API, code=-1, retryAfter=-1, rateLimitStatus=null, version=4.0.4}


#2

Have you already applied for Ads API access and been approved?
https://dev.twitter.com/ads/overview

If you already were approved, you are likely either not using the correct consumer key that you were approved with, or something with authentication is not working so we would recommend to first try out your access using the utility twurl. Once you have twurl working, you can easily try out different solutions for calling the API including some of the SDKs, and work towards a custom solution if you need to.

Thanks,

John


Unauthorized_client_application