Trying to setup google ads api, getting "Internal error encountered" code 13

1,044 views
Skip to first unread message

rhys.e...@siteloft.com

unread,
Apr 8, 2019, 6:29:14 AM4/8/19
to AdWords API and Google Ads API Forum


I'm migrating our PHP app to the google ads api, I've setup the client library and am ready to start making requests however I'm getting this error for every request.

[2019-04-08 06:56:22] google-ads.NOTICE: Request
-------
Method Name: /google.ads.googleads.v1.services.GoogleAdsService/Search
Host: googleads.googleapis.com
Headers: {
   
"x-goog-api-client": "gl-php\/7.2.14 gapic\/ gax\/0.38.0 grpc\/1.19.0",
   
"developer-token": "REDACTED",
   
"login-customer-id": "455-424-4570"
}
Request: {"customerId":"265-055-1346","query":"SELECT campaign.name FROM campaign"}


Response
-------
Headers: {
   
"date": "Mon, 08 Apr 2019 06:56:22 GMT",
   
"alt-svc": "quic=\":443\"; ma=2592000; v=\"46,44,43,39\""
}


Fault
-------
Status code: 13
Details: Internal error encountered.
Failure: {}
Google/ApiCore/ApiException with message '{
    "message": "Internal error encountered.",
    "code": 13,
    "status": "INTERNAL",
    "details": []
}'

My code is pretty simple.

$adsService = $client->getGoogleAdsServiceClient();
$res = $adsService->search('2650551346', "SELECT campaign.name FROM campaign");


苑栋杰

unread,
May 6, 2019, 3:52:52 AM5/6/19
to AdWords API and Google Ads API Forum
I have encountered the same error. Can you solve it? How to solve it?

在 2019年4月8日星期一 UTC+8下午6:29:14,rhys.e...@siteloft.com写道:

googleadsapi...@google.com

unread,
May 6, 2019, 5:32:27 AM5/6/19
to AdWords API and Google Ads API Forum
Hi,

Thank you for reaching out to us. The INTERNAL_ERROR occurs when something unexpected happened while processing the request or the API isn't functioning correctly due to a bug. I would suggest waiting for 30 seconds before retrying the request. Should the error persists, could you provide the complete JSON request and response logs when you encountered the error? If you haven't enabled logging yet, kindly provide the client library you are using so I could assist you on how to do so. Please use reply privately to author option.

Regards,
Dave
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/71d7daf9-1d41-4afd-b27d-ba601001508f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages