Hi Mickael,

The reason this is broken is because enhanced XML validation was
recently enabled on the sandbox:

  
http://groups.google.com/group/adwords-api/browse_thread/thread/f5057acf438bc702

This validation requires that namespace prefixes used in attribute
values are declared on the method element (get or mutate).  By default
PHP SoapClient doesn't do this, and in the client library I did some
manipulation of the request to enable this:

  
http://code.google.com/p/google-api-adwords-php/source/browse/trunk/src/Google/Api/Ads/Common/Util/SoapRequestXmlFixer.php#212

I'll work on updating the NoClientLibrary wiki to make this more
clear.

Best,
- Eric Koleda, AdWords API Team

On Mar 23, 10:35 am, "[email protected]" <[email protected]> wrote:
> hi i followed the example here 
> :http://code.google.com/p/google-api-adwords-php/wiki/NoClientLibrary
>
> but it gives to me a SoapFault Object error : Unmarshalling Error:
> UndeclaredPrefix: Cannot resolve 'ns1:ManualCPC' as a QName: the
> prefix 'ns1' is not declared.
>
> i have tried to use an array instead of a SoapVar but it doesnt work
> too:
>
> $campaign = array(
>     'name' => 'Interplanetary Cruise #',
>     'status' => 'PAUSED',
>     'biddingStrategy' => new SoapVar(NULL, NULL, 'ManualCPC',
> $namespace),
>     'budget' => array(
>         'period' => 'DAILY',
>         'amount' => array('microAmount' => 50000000),
>         'deliveryMethod' => 'STANDARD'));
>
> $campaign = array(
>     'name' => 'Interplanetary Cruise #',
>     'status' => 'PAUSED',
>     'biddingStrategy' => array('type' =>'ManualCPC'),
>     'budget' => array(
>         'period' => 'DAILY',
>         'amount' => array('microAmount' => 50000000),
>         'deliveryMethod' => 'STANDARD'));
> i have alos tried whith 'biddingStrategy' => array('xsi:type'
> =>'ManualCPC') but nothing works
>
> can somebody helps me?
>
> thanks

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Have you migrated to v200909 yet?
The v13 sunset is on April 22, 2010.

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 [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

To unsubscribe from this group, send email to 
adwords-api+unsubscribegooglegroups.com or reply to this email with the words 
"REMOVE ME" as the subject.

Reply via email to