PHP library cannot authenticate with cryptic error: [AuthenticationError.AUTHENTICATION_FAILED @ ]

36 views
Skip to first unread message

jamie+...@frontierpc.com

unread,
Aug 7, 2015, 4:21:54 PM8/7/15
to AdWords API Forum
I'm trying to get the AdWords API php library going, getting this error:

[AuthenticationError.AUTHENTICATION_FAILED @ ]

No log file written anywhere from what I can see. Where can I see more information or possibly solve this?

Thanks

Umesh Dengale

unread,
Aug 7, 2015, 5:35:03 PM8/7/15
to AdWords API Forum
Hello,

Could you describe steps you followed to run example code of client library?  This is OAuth 2.0 authentication guide and making first request document for you reference.

Thanks,
Umesh, AdWords API Team.

Jamie

unread,
Aug 10, 2015, 12:57:10 PM8/10/15
to AdWords API Forum
I followed those steps exactly. My MCC account is user1+...@mycompany.com, my main AdWords account is us...@mycompany.com. The application owner is user1+adwords and the token belongs to user1. But I've also tried the other two combinations.

Is there anywhere I can get a more helpful error message?

Umesh Dengale

unread,
Aug 10, 2015, 4:55:42 PM8/10/15
to AdWords API Forum
Hello,

Could you provide the SOAP request and response logs by first enabling logging for the PHP client library? You could use AdWords account to make the API calls except for the account management. You could use MCC account for the account management.
Just click Reply privately to author in the forum when responding. Don't forget to remove the developer token in the output.

Josh Radcliff (AdWords API Team)

unread,
Aug 11, 2015, 9:38:55 AM8/11/15
to AdWords API Forum
Hi,

I see from the SOAP logs that you are submitting a DFP API request, as the POST is to /apis/ads/publisher/v201505/ActivityService. If you generated the OAuth credentials for the AdWords scope, then those credentials won't work for DFP.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages