GoogleAdsServerFault: Server Error

15 views
Skip to first unread message

cyan

unread,
Jun 26, 2019, 8:55:48 PM6/26/19
to AdWords API and Google Ads API Forum
Hi, 

I'm using googleads python client, to pull ad objects from Adwords API. The query occassionally throws this error: GoogleAdsServerFault: Server Error (without other error message).
Does anyone know why this happened? Thanks.

Below's my sample code:

from googleads import adwords
def get_ads():
   client 
= adwords.AdWordsClient(developer_token, oauth2_client)
   adgroup_ad_service 
= client.GetService('AdGroupAdService', version='v201809')

 
   query 
= (adwords.ServiceQueryBuilder()
    
.Select(
      
'AdGroupId',
      
'Id', 
      
# some other fields
    
)
  
)
 query 
= query.Limit(0, 500).Where('Id').In(*adgroup_ad_ids)
 query_build 
= query.Build()
 page 
= adgroup_ad_service.query(query_build)


Google Ads API Forum Advisor Prod

unread,
Jun 27, 2019, 1:45:59 AM6/27/19
to adwor...@googlegroups.com
Hi Cyan,

So I can better investigate, could you also provide your clientCustomerId and the complete SOAP request and response logs that were generated when you encountered the error? If you haven't enabled logging, you may refer to this guide as to how.

You may then reply using the Reply privately to author option for the logs.

Thanks and regards,
Peter
Google Ads API Team

ref:_00D1U1174p._5001UCZkLH:ref
Reply all
Reply to author
Forward
0 new messages