Hi Albert,
Hi Albert, Since the TargetingIdeaService belongs to a different namespace - o, as compared to other services (e.g. CampaignService - cm). Your RequestHeader element needs to be set to the o namespace. Because this kind of SOAP mappings annoyances is why we recommend developers to use our client libraries. See the following XML snippet on how the header should look like, pay close attention at the xmlns attributes attached to every field: <RequestHeader *xmlns="https://adwords.google.com/api/adwords/o/v201209" *> <developerToken * xmlns="https://adwords.google.com/api/adwords/cm/v201209"* >REDACTED</developerToken> <userAgent xmlns="*https://adwords.google.com/api/adwords/cm/v201209*">User Agent</userAgent> <validateOnly xmlns="* https://adwords.google.com/api/adwords/cm/v201209*">false</validateOnly> <partialFailure xmlns="* https://adwords.google.com/api/adwords/cm/v201209*">false</partialFailure> </RequestHeader> Best, - David Torres - AdWords API Team On Saturday, February 23, 2013 5:12:07 PM UTC-5, Albert wrote: > > > hi, > > i can't figure out what seems to be wrong with the below request, > > thanks in advance, > albert > > -----SoapRequest at 23/02/2013 23:41:36 > <?xml version="1.0" encoding="utf-8"?> > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" > http://www.w3.org/2001/XMLSchema"> > <soap:Header> > <RequestHeader xmlns=" > https://adwords.google.com/api/adwords/cm/v201209"> > <authToken> > xxx > </authToken> > <developerToken> > xxx > </developerToken> > <clientCustomerId> > 111 > </clientCustomerId> > <userAgent> > yyy > </userAgent> > <validateOnly> > false > </validateOnly> > </RequestHeader> > </soap:Header> > <soap:Body> > <get xmlns="https://adwords.google.com/api/adwords/o/v201209"> > <selector> > <searchParameters xsi:type="RelatedToQuerySearchParameter"> > <queries> > mars cruise > </queries> > <queries> > saturn o2 > </queries> > </searchParameters> > <ideaType> > KEYWORD > </ideaType> > <requestType> > IDEAS > </requestType> > <requestedAttributeTypes> > KEYWORD_TEXT > </requestedAttributeTypes> > <requestedAttributeTypes> > SEARCH_VOLUME > </requestedAttributeTypes> > <requestedAttributeTypes> > CATEGORY_PRODUCTS_AND_SERVICES > </requestedAttributeTypes> > <paging> > <startIndex xmlns=" > https://adwords.google.com/api/adwords/cm/v201209"> > 0 > </startIndex> > <numberResults xmlns=" > https://adwords.google.com/api/adwords/cm/v201209"> > 500 > </numberResults> > </paging> > </selector> > </get> > </soap:Body> > </soap:Envelope> > -----SoapResponse at 23/02/2013 23:41:38 > <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ > "> > <soap:Body> > <soap:Fault> > <faultcode> > soap:Server > </faultcode> > <faultstring> > Unmarshalling Error: unexpected element (uri: > " > https://adwords.google.com/api/adwords/cm/v201209 > " > , local: > " > RequestHeader > " > ). Expected elements are > < > { > https://adwords.google.com/api/adwords/o/v201209}ApiExceptionFault > > > , > < > { > https://adwords.google.com/api/adwords/o/v201209}RequestHeader > > > , > < > { > https://adwords.google.com/api/adwords/o/v201209}ResponseHeader > > > , > < > {https://adwords.google.com/api/adwords/o/v201209}get > > > , > < > { > https://adwords.google.com/api/adwords/o/v201209}getBulkKeywordIdeas > > > , > < > { > https://adwords.google.com/api/adwords/o/v201209}getBulkKeywordIdeasResponse > > > > , > < > { > https://adwords.google.com/api/adwords/o/v201209}getResponse > > > </faultstring> > </soap:Fault> > </soap:Body> > </soap: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 --- You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.