Hi Sana, I am experiencing the very same error here, in my case it seems to be caused by an ongoing migration on our system. The new server's ip is not trusted (yet, I hope), and Google account security blocks the access.
I do suggest you connect on your adwords account using a service like gmail. On the very top, check if there is a red bar (above the standard black bar with Google services), alerting about a 'not trusted access'. If so, just follow the instructions in it, and you can authorize future access from the not-trusted device (your server). Hope that helps, Edelmar On Wednesday, March 13, 2013 4:51:42 PM UTC-3, sana ullah wrote: > > Hello, > > I am using PHP library to download client reports, when i try to download > it's give me this error > > "An error has occurred: Failed to get authToken. Reason: BadAuthentication" > > auth.ini > > ; Detailed descriptions of these properties can be found at: > ; https://developers.google.com/adwords/api/docs/headers > > email = "my email" > password = "mypassword" > userAgent = "my agent" > applicationToken = "ignored" > developerToken = "my key > > ; Uncomment to make requests against a client account. > clientId = "client id" > > ; Uncomment the following to use an existing AuthToken. > ; authToken = "INSERT_AUTH_TOKEN_HERE" > > ; Uncomment the following to setup OAuth 1.0 authentication. > ; [OAUTH] > " > Thanks, > Sana Ullah > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.