Re: Updated PHP API Library, recieve Unmarshalling Error: cvc-elt.4.3 when edit keyword

2012-04-02 Thread Eric Koleda
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 i

Re: Updated PHP API Library, recieve Unmarshalling Error: cvc-elt.4.3 when edit keyword

2012-03-19 Thread Eugene
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

Updated PHP API Library, recieve Unmarshalling Error: cvc-elt.4.3 when edit keyword

2012-03-16 Thread Eugene
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:cr