Re: label_service.get() returns None in Python

2017-10-24 Thread 'Sreelakshmi Sasidharan (AdWords API Team)' via AdWords API Forum
Hi Margaret, You are right, if there are no labels matching the text, the API should give a response with zero "totalNumEntries". Could you enable logging and share the SOAP request and response along with your

label_service.get() returns None in Python

2017-10-24 Thread Margaret
I have code that tries to "get" a label with certain text, and if it doesn't find it, creates a new label with the text. I expect if the label doesn't exist I would still get a LabelPage back with totalNumEntries = 0, but recently I've been getting None back from time to time. When this happens

label_service.get() returns None in Python

2017-10-24 Thread Margaret
I'm trying to check to see if a label exists in my test account (which has a lot of labels), but when I try to use the result of my get request, it seems to be None instead of a LabelPage with totalNumEntries = 0. Is it just taking time for the response to come back? Is there a way to have the