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.