Hi Eugene,

The parameter order in the constructor may change between versions, so it's 
better to use an empty constructor and set the fields individually, like we 
do in the examples.

Best,
- Eric Koleda, AdWords API Team

On Monday, March 19, 2012 7:36:45 AM UTC-4, Eugene wrote:
>
> Found the issue. I've passed criterion as second argument, not third:
> new AdGroupCriterion((float)$group_id, new Criterion((float)$keyword_id))
> It should be like that:
> new AdGroupCriterion((float)$group_id, Null, new 
> Criterion((float)$keyword_id))
> But it worked in old library version. I found this bug only when I have 
> upgraded.
>
>
> On Friday, 16 March 2012 19:43:33 UTC, Eugene wrote:
>>
>> Updated PHP API Library to 3.0.1(from old one which used v201008, can't 
>> find exact version).
>> Full error:
>> Catched exception SoapFault exception: [soap:Client] Unmarshalling Error: 
>> cvc-elt.4.3: Type 'ns1:Criterion' is not validly derived from the type 
>> definition, 'CriterionUse', of element 'ns1:criterionUse'.  in 
>> /***/Google/Common/Lib/AdsSoapClient.php:201
>>
>> Here's SOAP log http://pastebin.com/Qcx1bp6L
>>
>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
http://adwordsapi.blogspot.com
http://groups.google.com/group/adwords-api
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

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

Reply via email to