AddCampaignTargetingCriteria.php error

357 views
Skip to first unread message

Octav

unread,
Aug 14, 2012, 11:18:59 AM8/14/12
to adwor...@googlegroups.com
I run AddCampaignTargetingCriteria.php and i receive:

An error has occurred: Unmarshalling Error: cvc-elt.4.3: Type 'ns1:Location' is not validly derived from the type definition, 'boolean', of element 'ns1:isNegative'.

I can not figure out what is the problem.

Thank you




Kevin Winter

unread,
Aug 21, 2012, 12:08:21 PM8/21/12
to adwor...@googlegroups.com
Hi,
  I'm sorry, it turns out there's a mistake in the code example (we're in the process of fixing it).  The CampaignCriterion constructor now takes 3 arguments (instead of the previous two).  You can fix this yourself by adding a null argument as the middle argument or wait for us to release updated code examples.

- Kevin Winter
AdWords API Team
Reply all
Reply to author
Forward
0 new messages