Found the problem. Was using an incorrect xmlns. (mismatch version) <
Must be a frequent error..


On Nov 2, 7:36 am, manuel <manuel_pa...@sapo.pt> wrote:
> The example onhttp://code.google.com/apis/adwords/docs/#soapworks
> fine.
>
> However, when I post the xml below to the TargetingIdeaService, I
> always get this:
> Result: Fault occurred while processing.
>
> Any clue? Thanks.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/
> envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/
> v200909" xmlns:ns2="https://adwords.google.com/api/adwords/o/v200909";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> <SOAP-ENV:Header>
> <ns2:RequestHeader xsi:type="ns2:RequestHeader">
> <ns1:authToken>'.$token.'</ns1:authToken>
> <ns1:clientEmail>client_1+'.$AdwordsAPIemail.'</ns1:clientEmail>
> <ns1:developerToken>'.$AdwordsAPIemail.'++USD</ns1:developerToken>
> <ns1:userAgent>'.$AdwordsAPIuseragent.'</ns1:userAgent>
> </ns2:RequestHeader>
> </SOAP-ENV:Header>
> <SOAP-ENV:Body>
> <ns2:get xsi:type="get">
> <ns2:selector xsi:type="ns2:TargetingIdeaSelector">
> <ns2:searchParameters xsi:type="ns2:RelatedToKeywordSearchParameter">
> <ns2:keywords xsi:type="ns1:Keyword">
> <ns1:text>milk</ns1:text>
> <ns1:matchType>EXACT</ns1:matchType>
> </ns2:keywords>
> </ns2:searchParameters>
> <ns2:searchParameters xsi:type="ns2:CountryTargetSearchParameter">
> <ns2:countryTargets xsi:type="ns1:CountryTarget">
> <ns1:countryCode>US</ns1:countryCode>
> </ns2:countryTargets>
> </ns2:searchParameters>
> <ns2:ideaType>KEYWORD</ns2:ideaType>
> <ns2:requestType>IDEAS</ns2:requestType>
> <ns2:requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</
> ns2:requestedAttributeTypes>
> <ns2:requestedAttributeTypes>AVERAGE_TARGETED_MONTHLY_SEARCHES</
> ns2:requestedAttributeTypes>
> <ns2:requestedAttributeTypes>GLOBAL_MONTHLY_SEARCHES</
> ns2:requestedAttributeTypes>
> <ns2:requestedAttributeTypes>KEYWORD</ns2:requestedAttributeTypes>
> <ns2:paging xsi:type="ns1:Paging">
> <ns1:startIndex>0</ns1:startIndex>
> <ns1:numberResults>3</ns1:numberResults>
> </ns2:paging>
> <ns2:localeCode>en_US</ns2:localeCode>
> </ns2:selector>
> </ns2:get>
> </SOAP-ENV:Body>
> </SOAP-ENV:Envelope>

-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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