Hi,

You get a BadAuthentication error when you pass wrong email and
password to the ClientLogin server.

I had a look at the library source code, seems like the method uses
$email and $password from AdWordsUser class.

See 
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php#497
which in turn is called from
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/AdWords/Lib/AdWordsUser.php#141.

So my guess is that the library is either not picking up your config
file, or you are passing the wrong credentials. Could you check if the
right config file is being loaded, and AdWordsUser instance has the
right $email and $password member variables set?

Cheers,
Anash P. Oommen,
AdWords API Advisor.

On Aug 25, 7:44 pm, Manhvu <[email protected]> wrote:
> Hi everyone,
> I am beginning to develope tool for my company with google adword api,
> but I have a message below
> "
> AuthTokenException Object ( [error:private] => BadAuthentication
> [url:private] => [captchaToken:private] => [captchaUrl:private] =>
> [message:protected] => Failed to get authToken. Reason:
> BadAuthentication [string:private] => [code:protected] => 0
> [file:protected] => D:\DEVLIB\xampp\htdocs\aw_api_php_lib_2.2.0\src
> \Google\Api\Ads\Common\Util\AuthToken.php [line:protected] => 88
> [trace:private] => Array ( [0] => Array ( [file] => D:\DEVLIB\xampp
> \htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords\Lib
> \AdWordsUser.php [line] => 503 [function] => GetAuthToken [class] =>
> AuthToken [type] => ->  [args] => Array ( ) ) [1] => Array ( [file] =>
> D:\DEVLIB\xampp\htdocs\aw_api_php_lib_2.2.0\src\Google\Api\Ads\AdWords
> \Lib\AdWordsUser.php [line] => 141 [function] => RegenerateAuthToken
> [class] => AdWordsUser [type] => ->  [args] => Array ( ) ) [2] =>
> Array ( [file] => D:\DEVLIB\xampp\htdocs\aw_api_php_lib_2.2.0\examples
> \v200909\GetAllCampaigns.php [line] => 46 [function] => __construct
> [class] => AdWordsUser [type] => ->  [args] => Array ( ) ) ) )
> "
> I have config true auth.ini the same in video. Please help me!

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en

Reply via email to