Hi Anca,

Firstly, can you confirm you've followed the 
screen<https://www.youtube.com/watch?v=KetKPhxY4Js>cast that shows how to setup 
OAuth2 for an account?

The error code AuthenticationError.OAUTH_TOKEN_INVALID is specifically 
relating to the supplied access token in the headers. Often it means the 
access token has expired and needs to be refreshed, you can check the 
access token using the userinfo end 
point<https://developers.google.com/accounts/docs/OAuth2InstalledApp#callinganapi>
.

Regards,

- Paul, AdWords API Team.

On Sunday, 27 October 2013 10:28:22 UTC, Anca Suciu wrote:
>
> I am trying to create a very simple application developed on top of the 
> sample from the GoogleAdwords PHP Library. The purpose of the application 
> is to create a new AdWordsUser that tries to access the Campaign service.
> I have obtained the client_id, client_secret, access_token, refresh_token 
> and filled all this data into the auth.ini file. However, when I run my 
> test I am getting the following error:
>
> Fatal error: Uncaught SoapFault exception: [soap:Server] 
> [AuthenticationError.OAUTH_TOKEN_INVALID @ ; trigger:''] in 
> /home/kaosmic/www/adwords/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php:216 
> Stack trace: #0 
> /home/kaosmic/www/adwords/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216):
>  
> SoapClient->__soapCall('get', Array, NULL, Array, Array) #1 
> /home/kaosmic/www/adwords/src/Google/Api/Ads/AdWords/v201309/CampaignService.php(6208):
>  
> AdsSoapClient->__soapCall('get', Array) #2 
> /home/kaosmic/www/adwords/tests/AdWordsIntegrationTest.php(77): 
> CampaignService->get(Object(Selector)) #3 
> /home/kaosmic/www/adwords/tests/test.php(12): 
> AdWordsIntegrationTest->testIntegrationCheckUserAgent() #4 {main} thrown in 
> /home/kaosmic/www/adwords/src/Google/Api/Ads/Common/Lib/AdsSoapClient.php 
> on line 216 
>
> I have tried to regerate my authorization code and then the access token 
> and refresh token but it's not working. Do you have any ideas about what to 
> do next?
> Thank you.
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://googleadsdeveloper.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
--- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to