Get and mutate operations is returning 'None' in python api.

31 views
Skip to first unread message

Eduardo Cesar

unread,
Oct 24, 2017, 11:04:06 AM10/24/17
to AdWords API Forum
We have an application that initialize the adwords client as bellow:

self.adwords_client = adwords.AdWordsClient.LoadFromStorage(GOOGLE_ADS_PATH)

Then, a lot of clients are instanced as bellow:

adgroup_client = self.adwords_client.GetService('AdGroupService', version=SERVICE_VERSION)

Then, we are using this clients to a lot of operations in google api for some hours. Operations like get, create, set Adgroups, keywords, Ads.

The robot was running correctly, but since the last week one error is ever present in robot:
    After a lot of operations (that return the correct results), the api fails in ALL calls.
    The fail is very strange, because all the code like the bellow one, that before was returning correct resulting, returns 'None' for all calls after some hours.

selector = {
'fields': ['AdGroupId', 'FinalUrls'],
'predicates': [
{
'field': 'FinalUrls',
'operator': 'CONTAINS',
'values': utm_pattern
},
{
'field': 'Status',
'operator': 'EQUALS',
'values': values_status
}
]
}
page = keyword_service.get(selector)

I can not get more information about the requisitions and I have some certain about the code, because this error is only present in log after the past week.
My doubt are:
1 - "Is it possible the client expire (requisitions or time)?" 
2 - "After a lot of requisitions (or time) can the services return 'None' for all requisition?"
3 - "None is a possible return in python api for -get- or -mutate- operations?"

Thank you, very much.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Oct 24, 2017, 2:19:42 PM10/24/17
to AdWords API Forum
Hi, 

Are you saying that the all of your API calls started to fail recently? Are they failing with some error or just that you are getting zero results in the response? Could you please enable logging and share your SOAP logs (request/response) for any one call that fails along with the client customer Id? I should be able to troubleshoot with these details. You can reply privately to author while sharing the details. 

Thanks,
Sreelakshmi, AdWords API Team
Reply all
Reply to author
Forward
0 new messages