Hi,

This works:

------------------------------------------
selector = {
 }
CampaignService.Get(selector)
------------------------------------------

However, it returns ALL data (stats included) on ALL campaigns, even
DELETED ones.

I really want only ACTIVE.

So I tried:
----------------------------------------
selector = {
 'campaignStatuses' : ['ACTIVE']
}
-----------------------------------------

This gives error:
aw_api.Errors.ValidationError: The '['ACTIVE']' is of type <type
'list'>, expecting one of (<type 'str'>, <type 'unicode'>).

So I tried:

----------------------------------------
selector = {
 'campaignStatuses' : 'ACTIVE'
}
-----------------------------------------

This gives error:
aw_api.Errors.Error: pyobj (https://adwords.google.com/api/adwords/cm/
v200909,selector), aname "_campaignStatuses": maxOccurs unbounded,
expecting a [<type 'tuple'>, <type 'list'>]


So, my friends at Google - is this a bug in the Python code? Is there
a fix? Or am I doing something really stupid?

Thanks!

David Geller

--

You received this message because you are subscribed to the Google Groups 
"AdWords API Forum" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/adwords-api?hl=en.


Reply via email to