Looking to Build/Redesign a Website or Blog ?

To speak to Rakshit, call +91 968 704 2303

[Google] AdWords API AuthTokenException: Login failed

Hello Friends,

When you are using Google Adwords API for retrieving clients information, you may receive AuthTokenException: Login failed error while calling multiple API calls. I got the same problem and found a way to solve it. Adwords API provides Auth Token which is valid almost for a week.So when you are calling multiple API calls for client, you can specify existing auth token in auth.ini file. Look at the below code how to get existing Auth Token if it is.

$user = new AdWordsUser();
$authtoken_old = $user->GetAuthToken();

Once you got existing code, when you call API in loop, for second time, overrite auth.ini file and provide this existing token. So this is the way you can solve the AdWords API AuthTokenException: Login failed error.

AdWords API AuthTokenException: Login failed Error Solved, AdWords API AuthTokenException: Login failed, Auth Token Error, Reuse Existing Auth Token, Get Auth Token Adwords API, Auth Token not Working, Generate Auth Token, Get existing Auth Token


No Comments Yet.

Leave a Reply

Your email address will not be published.