You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
hello
I am designing an application where multiple users can log in to adwords and make use of the apis
I currently use the adwords_api_php_4.2.3 library
Implement the following code
Require_once 'Google / Api / Ads / AdWords / Lib / AdWordsUser.php';
$ Email = 'email';
$ Password = 'password';
$ DeveloperToken = 'token';
$ ApplicationToken = 'ignored';
$ UserAgent = 'agentname';
$ ClientId = 'clientid';
$ User = new AdWordsUser (NULL, $ email, $ password, $ developerToken,
$ ApplicationToken, $ userAgent);
$ User-> LogDefaults ();
$ CampaignService =
$ User-> getCampaignService ('v201702', 'https://adwords.google.com');
At the time of execution throws me the following exception
PHP Fatal error: Uncaught exception 'AuthTokenException' with message 'Failed t
o get authToken. Reason: 404' in C:\xampp\htdocs\elbueno\src\Google\Api\Ads\Comm
on\Util\AuthToken.php:143
Shwetha Vastrad (AdWords API Team)
unread,
Jun 29, 2017, 1:36:10 PM6/29/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to AdWords API Forum
Hi,
All AdWords API calls must be authorized through OAuth2. You need to setup authentication for your application by following this guide. You can then follow this guide to set up the application for API access on behalf of your clients using web flow.
Please try this out and let me know if you are able to make successful API requests.