This does NOT work:
operations = [
{
'operator': 'SET',
'operand': {
'type': 'NetworkTargetList',
'campaignId': cid,
'targets': [
{ 'type': 'NetworkCoverageType',
'networkCoverage' : 'CONTENT_NETWORK'
},
],
}
}
]
I get an error:
...
File "/home/abc/mypython2.6/lib/python2.6/site-packages/aw_api/
zsi_toolkit/SanityCheck.py", line 1430, in ValidateOperation
targets.append(ValidateTarget(item, web_services))
File "/home/abc/mypython2.6/lib/python2.6/site-packages/aw_api/
zsi_toolkit/SanityCheck.py", line 1007, in ValidateTarget
new_target.__dict__.__setitem__('_%s' % key, data)
AttributeError: 'dictproxy' object has no attribute '__setitem__'
On Dec 9, 7:43 am, david <[email protected]> wrote:
> Hi,
>
> How do you set the NetworkTargetList in python? In particular, I want
> to create a campaign which is shown only on selected placements.
>
> I've tried a bunch of things, which don't seem to work. I would really
> like to see a completed example.
>
> ALSO: is it possible to get better documentation with EXAMPLES for
> python? What appears to be lacking is a thorough description of
> operands and their formats (as in this case).
>
> Thanks!
>
> David
--
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.