We have a tool that is downloading data (campaigns, adgroups, adgroupads 
and adgroupcriterions) from the adwords api.

https://developers.google.com/adwords/api/index

We used the version v201302 and recently switched to the latest version v201306 
of the api.

 

We use up to 20 Tasks to send requests parallel to the api (as suggested by 
google).

We are aware of Exceptions like 

-          AuthenticationError.OAUTH_TOKEN_EXPIRED

-          SizeLimitError.RESPONSE_SIZE_LIMIT_EXCEEDED

-          InternalApiError.UNEXPECTED_INTERNAL_API_ERROR

And act by refreshing the oauth token if necessary, using paging to get the 
data and sending the task to sleep for short periods of time if the api 
complains about too many requests.

 

As of late we experience another exception:

 

Exception:

Google.Api.Ads.AdWords.Lib.AdWordsApiException: An API exception has 
occurred. See ApiException and InnerException fields for more details. ---> 
System.Web.Services.Protocols.SoapException: 
[AuthenticationError.OAUTH_TOKEN_REVOKED @ ; trigger:'<null>']

   at 
System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage
 
message, WebResponse response, Stream responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String 
methodName, Object[] parameters)

   at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String 
methodName, Object[] parameters)

   --- End of inner exception stack trace ---

   at Google.Api.Ads.Common.Lib.AdsSoapClient.MakeApiCall(String 
methodName, Object[] parameters)

   at Google.Api.Ads.Common.Lib.AdsSoapClient.Invoke(String methodName, 
Object[] parameters)

   at Google.Api.Ads.AdWords.v201306.CampaignService.get(Selector 
serviceSelector)

 

The tool runs fine for several hours and then the exception happens.

It seems that we can eliminate the possibility of someone revoking the 
authorization manually since the exception always happens deep in the night 
between 3 am and 5 am*. *

*So what else could cause a revocation of the access token?*

 

For OAuth we use a google business account with a service account for 
adwords api

 

Our configuration for oauth looks like this (all values in “ ” are just 
placeholders because of security reasons)

 

                    <Adwords_ClientCustomerId>”xxx-xxx-xxxx”</
Adwords_ClientCustomerId>

                    <Adwords_OAuth2CertificatePath>”path to certificate 
file”</Adwords_OAuth2CertificatePath>

                    <Adwords_OAuth2CertificatePassword>notasecret</
Adwords_OAuth2CertificatePassword>

                    <Adwords_DeveloperToken>”our developer token”</
Adwords_DeveloperToken>

                    <Adwords_OAuth2PrnEmail>
sem@”mycompany”.mygbiz.com</Adwords_OAuth2PrnEmail>

                    <Adwords_UserAgent>”UserAgent”</Adwords_UserAgent>

                    <Adwords_OAuth2ServiceAccountEmail>
”id”@developer.gserviceaccount.com</Adwords_OAuth2ServiceAccountEmail>

                    <Adwords_RetryCount>1</Adwords_RetryCount>

 

 

*Could it help to increase the value for RetryCount  in the config?*

* *

*Is it possible that the problems are related to the switch to the new api?*

* *

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.

Reply via email to