Good afternoon,

We've suddenly received a couple of errors with our API for a number of 
clients and were looking for some clarification on best-practices for 
clearing up these issues.

*Issue 1* (we thought had resolved this issue by logging each of our client 
accounts out then re-logging in and syncing -- worked for ~3 weeks before 
starting to fail again): 

Note- this is for all parts of the API, not just ads.

"error" : "invalid_grant"

Trace: #0 
/var/www/app/vendor/Google/Api/Ads/Common/Util/SimpleOAuth2Handler.php(98): 
SimpleOAuth2Handler->MakeRequest('https://account...', Array)

#1 /var/www/app/vendor/Google/Api/Ads/Common/Util/OAuth2Handler.php(113): 
SimpleOAuth2Handler->RefreshAccessToken(Array)

#2 /var/www/app/vendor/Google/Api/Ads/Common/Lib/AdsSoapClient.php(513): 
OAuth2Handler->GetOrRefreshAccessToken(Array)

#3 /var/www/app/vendor/Google/Api/Ads/Common/Lib/AdsSoapClient.php(216): 
AdsSoapClient->GenerateHttpHeaders()

#4 
/var/www/app/vendor/Google/Api/Ads/AdWords/v201506/AdGroupAdService.php(8262): 
AdsSoapClient->__soapCall('get', Array)

#5 /var/www/app/google/AdApi.php(30): 
AdGroupAdService->get(Object(Selector))

#6 /var/www/app/google/GoogleBase.php(130): AdApi->getAdsCached()

#7 /var/www/app/google/AdApi.php(16): GoogleBase->getData(Object(AdApi), 
'getAdsCached', 'ads')

#8 /var/www/app/routes/adwords.php(112): AdApi->get()

#9 [internal function]: {closure}()

#10 /var/www/app/vendor/Slim/Route.php(468): 
call_user_func_array(Object(Closure), Array)

#11 /var/www/app/vendor/Slim/Slim.php(1338): Slim\Route->dispatch()

#12 /var/www/app/vendor/Slim/Middleware/Flash.php(85): Slim\Slim->call()

#13 /var/www/app/vendor/Slim/Middleware/MethodOverride.php(92): 
Slim\Middleware\Flash->call()

#14 /var/www/app/middleware/JsonApiMiddleware.php(136): 
Slim\Middleware\MethodOverride->call()

#15 /var/www/app/middleware/Authorization.php(273): 
JsonApiMiddleware->call()

#16 /var/www/app/vendor/Slim/Slim.php(1283): Authorization->call()

#17 /var/www/html/index.php(45): Slim\Slim->run()

#18 {main}


*Issue 2:*


Error: [AuthorizationError.USER_PERMISSION_DENIED @ ; trigger:'<null>']

URL: /adwords/adset/stats

Trace: #0 
/var/www/app/vendor/Google/Api/Ads/Common/Lib/AdsSoapClient.php(233): 
SoapClient->__soapCall('get', Array, NULL, Array, Array)

#1 
/var/www/app/vendor/Google/Api/Ads/AdWords/v201506/AdGroupCriterionService.php(10215):
 
AdsSoapClient->__soapCall('get', Array)

#2 /var/www/app/google/AdSetApi.php(135): 
AdGroupCriterionService->get(Object(Selector))

#3 /var/www/app/google/GoogleBase.php(130): 
AdSetApi->getAdSetSettingsCached()

#4 /var/www/app/google/AdSetApi.php(100): 
GoogleBase->getData(Object(AdSetApi), 'getAdSetSetting...', 
'ad_set_settings')

#5 /var/www/app/google/AdSetApi.php(192): AdSetApi->getAdSetSettings()

#6 /var/www/app/google/AdSetApi.php(54): AdSetApi->ParseAdSetSettings()

#7 /var/www/app/routes/adwords.php(96): AdSetApi->getAdSetStats('false')

#8 [internal function]: {closure}()

#9 /var/www/app/vendor/Slim/Route.php(468): 
call_user_func_array(Object(Closure), Array)

#10 /var/www/app/vendor/Slim/Slim.php(1338): Slim\Route->dispatch()

#11 /var/www/app/vendor/Slim/Middleware/Flash.php(85): Slim\Slim->call()

#12 /var/www/app/vendor/Slim/Middleware/MethodOverride.php(92): 
Slim\Middleware\Flash->call()

#13 /var/www/app/middleware/JsonApiMiddleware.php(136): 
Slim\Middleware\MethodOverride->call()

#14 /var/www/app/middleware/Authorization.php(273): 
JsonApiMiddleware->call()

#15 /var/www/app/vendor/Slim/Slim.php(1283): Authorization->call()

#16 /var/www/html/index.php(45): Slim\Slim->run()

#17 {main}


*Issue 3:*


Error: [InternalApiError.UNEXPECTED_INTERNAL_API_ERROR @ 
com.google.ads.api.services.common.error.InternalApiError.<init>(InternalApiErro]

URL: /adwords/adset/stats

Trace: #0 
/var/www/app/vendor/Google/Api/Ads/Common/Lib/AdsSoapClient.php(233): 
SoapClient->__soapCall('get', Array, NULL, Array, Array)

#1 
/var/www/app/vendor/Google/Api/Ads/AdWords/v201506/AdGroupCriterionService.php(10215):
 
AdsSoapClient->__soapCall('get', Array)

#2 /var/www/app/google/AdSetApi.php(135): 
AdGroupCriterionService->get(Object(Selector))

#3 /var/www/app/google/GoogleBase.php(130): 
AdSetApi->getAdSetSettingsCached()

#4 /var/www/app/google/AdSetApi.php(100): 
GoogleBase->getData(Object(AdSetApi), 'getAdSetSetting...', 
'ad_set_settings')

#5 /var/www/app/google/AdSetApi.php(192): AdSetApi->getAdSetSettings()

#6 /var/www/app/google/AdSetApi.php(54): AdSetApi->ParseAdSetSettings()

#7 /var/www/app/routes/adwords.php(96): AdSetApi->getAdSetStats('true')

#8 [internal function]: {closure}()

#9 /var/www/app/vendor/Slim/Route.php(468): 
call_user_func_array(Object(Closure), Array)

#10 /var/www/app/vendor/Slim/Slim.php(1338): Slim\Route->dispatch()

#11 /var/www/app/vendor/Slim/Middleware/Flash.php(85): Slim\Slim->call()

#12 /var/www/app/vendor/Slim/Middleware/MethodOverride.php(92): 
Slim\Middleware\Flash->call()

#13 /var/www/app/middleware/JsonApiMiddleware.php(136): 
Slim\Middleware\MethodOverride->call()

#14 /var/www/app/middleware/Authorization.php(273): 
JsonApiMiddleware->call()

#15 /var/www/app/vendor/Slim/Slim.php(1283): Authorization->call()

#16 /var/www/html/index.php(45): Slim\Slim->run()

#17 {main}


Cheers.

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and Google+:
https://googleadsdeveloper.blogspot.com/
https://plus.google.com/+GoogleAdsDevelopers/posts
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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].
Visit this group at http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ed55c990-b71f-44d9-bb97-d6ebc2e20d7d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to