Google Ads (get_all_disapproved_ads.py): "google.api_core.exceptions.InternalServerError: 500 Internal error encountered"

42 views
Skip to first unread message

Mat

unread,
Apr 1, 2019, 6:07:01 AM4/1/19
to AdWords API and Google Ads API Forum
Hi,

when I'm running this example-code:

https://github.com/googleads/google-ads-python/blob/master/examples/campaign_management/get_all_disapproved_ads.py

... I keep getting the same error message (campaign.id and customerId redacted):

Request: {
  "query": "SELECT ad_group_ad.ad.id, ad_group_ad.ad.type, ad_group_ad.policy_summary FROM ad_group_ad WHERE campaign.id = 1234567890",
  "customerId": "1234567890",
  "pageSize": 1000
}

Response
-------
Headers: {
  "request-id": "4YSRSCHSrLkHLNIIaUWIyA"
}
Fault: {
  "created": "@1554112639.978011373",
  "description": "Error received from peer",
  "file": "src/core/lib/surface/call.cc",
  "file_line": 1039,
  "grpc_message": "Internal error encountered.",
  "grpc_status": 13
}

Would you have someone look into it?

Regards
Mat

googleadsapi...@google.com

unread,
Apr 1, 2019, 12:47:30 PM4/1/19
to AdWords API and Google Ads API Forum
Hello Matthias,

I ran the exact query and able to fetch the disapproved ads without any trouble. The error you faced might be an intermittent error. Could you please try the request again? If the error is consistent, you could raise a new issue on our client library. Our client library owners are better equipped to assist you.

Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

bevis...@soft-world.com.tw

unread,
Apr 28, 2019, 10:41:45 PM4/28/19
to AdWords API and Google Ads API Forum
I get the same Internal Error when I tried to query "ad_group_ad.policy_summary" at specific CID 5342789478.


Here are the library logs:  (I don't set 'WHERE' condition in my query)

Request: {
  "customerId": "5342789478",
  "query": "SELECT ad_group_ad.ad.id, ad_group_ad.ad.type, ad_group_ad.policy_summary FROM ad_group_ad", 
  "pageSize": 1000
}

Fault: {
  "created": "@1556504577.524088000",
  "description": "Error received from peer",
  "file": "src/core/lib/surface/call.cc",
  "file_line": 1039,
  "grpc_message": "Internal error encountered.",
  "grpc_status": 13
}



googleadsapi-forumadvisor於 2019年4月2日星期二 UTC+8上午12時47分30秒寫道:

googleadsapi...@google.com

unread,
Apr 29, 2019, 12:00:54 PM4/29/19
to AdWords API and Google Ads API Forum
Hello,

I ran the same query with my test account and I was able to fetch the result without any internal errors. Could you confirm whether the error is persistent or intermittent? If you are facing the error again please share the entire response log with the requestID to investigate further using reply privately to the author option.


Regards,
Sai Teja, 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/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

bevis...@soft-world.com.tw

unread,
Apr 29, 2019, 10:12:32 PM4/29/19
to AdWords API and Google Ads API Forum
Hi Sai Teja,

It seems the error is gone today. I will let you know if facing the error again.

Thanks for your replay

googleadsapi-forumadvisor於 2019年4月30日星期二 UTC+8上午12時00分54秒寫道:
Reply all
Reply to author
Forward
0 new messages