Hello, This error marks that the XML is malformed. In your case, it looks like you have an opening <v20:RequestHeader> tag, but then attempt to close it with </wsdl:RequestHeader>. Make sure that you have a fully valid SOAP XML request and try again.
Regards, Mike, AdWords API Team On Thursday, May 29, 2014 9:26:25 AM UTC-4, Manjula Naidu wrote: > > Hello , > > Thanks for response In above soap format i changed like this > > > <?xml version="1.0" encoding="UTF-8"?> > > <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ > " xmlns:v20="https://adwords.google.com/api/adwords/mcm/v201402" xmlns: > v201="https://adwords.google.com/api/adwords/cm/v201402"> > > <soapenv:Header> > > <v20:RequestHeader> > > <v201:clientCustomerId>$clientCustomerId > </v201:clientCustomerId> > > <v201:developerToken>$developerToken</v201:developerToken> > > <v201:userAgent>testing</v201:userAgent> > > > > </wsdl:RequestHeader> > > </env:Header> > > <env:Body> > > <get xmlns="https://adwords.google.com/api/adwords/mcm/v201402"> > > <selector> > > <searchParameters xsi:type="RelatedToQuerySearchParameter" > > > > <wsdl:queries> > > ${keyword} > > </wsdl:queries> > > </searchParameters> > > ${location_search} > > <searchParameters xsi:type="NetworkSearchParameter"> > > <networkSetting> > > <targetGoogleSearch xmlns=" > https://adwords.google.com/api/adwords/cm/v201402">true > </targetGoogleSearch> > > <targetSearchNetwork xmlns=" > https://adwords.google.com/api/adwords/cm/v201402">false > </targetSearchNetwork> > > <targetContentNetwork xmlns=" > https://adwords.google.com/api/adwords/cm/v201402">false > </targetContentNetwork> > > <targetPartnerSearchNetwork xmlns=" > https://adwords.google.com/api/adwords/cm/v201402">false > </targetPartnerSearchNetwork> > > </networkSetting> > > </searchParameters> > > > > <ideaType>KEYWORD</ideaType> > > <requestType>IDEAS</requestType> > > <requestedAttributeTypes>COMPETITION > </requestedAttributeTypes> > > <requestedAttributeTypes>KEYWORD_TEXT > </requestedAttributeTypes> > > <requestedAttributeTypes>SEARCH_VOLUME > </requestedAttributeTypes> > > <requestedAttributeTypes>AVERAGE_CPC > </requestedAttributeTypes> > > <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES > </requestedAttributeTypes> > > <wsdl:paging> > > <cm:startIndex>0</cm:startIndex> > > <cm:numberResults>${numberResults}</cm:numberResults> > > </wsdl:paging> > > </selector> > > </get> > > </env:Body> > > </env:Envelope> > Now Header error is not coming , but i am getting one more error > > > *<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ > <http://schemas.xmlsoap.org/soap/envelope/>"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>XML_STREAM_EXC</faultstring></soap:Fault></soap:Body></soap:Envelope>* > *what will be the problem in this,thanks in advance.* > > > On Wed, May 28, 2014 at 6:03 PM, Michael Cloonan (AdWords API Team) < > adwordsapiadvisor+mich...@google.com> wrote: > >> Hello, >> >> The error message you're seeing doesn't seem to be related to the >> TargetingIdeaService. Are you able to make any other API requests using >> v201402? >> >> Specifically, it looks like you are not passing a valid OAuth 2.0 header >> as part of the request. Make sure that you are following the instructions >> on our OAuth 2.0 setup >> guide<https://developers.google.com/adwords/api/docs/guides/authentication>. >> If you have already completed these steps, make sure that you correctly >> copy/pasted all OAuth 2.0 information from your sources into the correct >> configuration areas. You may have missed or changed a character in the >> refresh token accidentally. >> >> Regards, >> Mike, AdWords API Team >> >> >> On Wednesday, May 28, 2014 6:54:55 AM UTC-4, Manjula Naidu wrote: >>> >>> Hi , >>> >>> while migrating from v201309 to v201402 In TargetIdeaservice i am >>> getting error response like this >>> >>> URL: >>> >>> *https://adwords.google.com/api/adwords/o/v201402/TrafficEstimatorService?wsdl >>> >>> <https://adwords.google.com/api/adwords/o/v201402/TrafficEstimatorService?wsdl>* >>> >>> >>> Soap format: >>> >>> >>> * <?xml version="1.0" encoding="UTF-8"?>* >>> >>> *<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema >>> <http://www.w3.org/2001/XMLSchema>" >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance >>> <http://www.w3.org/2001/XMLSchema-instance>" >>> xmlns:wsdl="https://adwords.google.com/api/adwords/o/v201402 >>> <https://adwords.google.com/api/adwords/o/v201402>" >>> xmlns:env="http://schemas.xmlsoap.org/soap/envelope/ >>> <http://schemas.xmlsoap.org/soap/envelope/>" >>> xmlns:cm="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">* >>> >>> * <env:Header>* >>> >>> * <wsdl:RequestHeader >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">* >>> >>> * <userAgent>SmartWords iPad App</userAgent>* >>> >>> * >>> <developerToken>ya29.JABDDF34jebM5CAAAACjBUkxs-XAssWs3nXKmUVYIMtCVBRhqCB34OrlJ1PhiA</developerToken>* >>> >>> * <clientCustomerId>5200559437</clientCustomerId>* >>> >>> * </wsdl:RequestHeader>* >>> >>> * </env:Header>* >>> >>> * <env:Body>* >>> >>> * <get xmlns="https://adwords.google.com/api/adwords/o/v201402 >>> <https://adwords.google.com/api/adwords/o/v201402>">* >>> >>> * <selector>* >>> >>> * <campaignEstimateRequests>* >>> >>> >>> >>> * <adGroupEstimateRequests>* >>> >>> * <keywordEstimateRequests>* >>> >>> * <wsdl:keyword >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">* >>> >>> * <text>flower</text>* >>> >>> * <matchType>EXACT</matchType>* >>> >>> * </wsdl:keyword>* >>> >>> *</keywordEstimateRequests>* >>> >>> >>> * <wsdl:maxCpc >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">* >>> >>> * <microAmount>10000000</microAmount>* >>> >>> * </wsdl:maxCpc>* >>> >>> * </adGroupEstimateRequests>* >>> >>> >>> >>> * <networkSetting>* >>> >>> * <targetGoogleSearch >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">true</targetGoogleSearch>* >>> >>> * <targetSearchNetwork >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">false</targetSearchNetwork>* >>> >>> * <targetContentNetwork >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">false</targetContentNetwork>* >>> >>> * <targetPartnerSearchNetwork >>> xmlns="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>">false</targetPartnerSearchNetwork>* >>> >>> * </networkSetting>* >>> >>> * </campaignEstimateRequests>* >>> >>> * </selector>* >>> >>> * </get>* >>> >>> * </env:Body>* >>> >>> *</env:Envelope>* >>> >>> >>> This is response i am getting >>> >>> >>> >>> *<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ >>> <http://schemas.xmlsoap.org/soap/envelope/>"><soap:Header><ResponseHeader >>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>" >>> xmlns="https://adwords.google.com/api/adwords/o/v201402 >>> <https://adwords.google.com/api/adwords/o/v201402>"><ns2:requestId>0004fa736c75a5380a446f25ee001c67</ns2:requestId><ns2:serviceName>TrafficEstimatorService</ns2:serviceName><ns2:methodName>get</ns2:methodName><ns2:operations>0</ns2:operations><ns2:responseTime>105</ns2:responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[AuthenticationError.OAUTH_TOKEN_HEADER_INVALID >>> >>> @ ; trigger:'<null>']</faultstring><detail><ApiExceptionFault >>> xmlns="https://adwords.google.com/api/adwords/o/v201402 >>> <https://adwords.google.com/api/adwords/o/v201402>" >>> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201402 >>> <https://adwords.google.com/api/adwords/cm/v201402>"><ns2:message>[AuthenticationError.OAUTH_TOKEN_HEADER_INVALID >>> >>> @ ; >>> trigger:'<null>']</ns2:message><ns2:ApplicationException.Type>ApiException</ns2:ApplicationException.Type><ns2:errors >>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance >>> <http://www.w3.org/2001/XMLSchema-instance>" >>> xsi:type="ns2:AuthenticationError"><ns2:fieldPath></ns2:fieldPath><ns2:trigger><null></ns2:trigger><ns2:errorString>AuthenticationError.OAUTH_TOKEN_HEADER_INVALID</ns2:errorString><ns2:ApiError.Type>AuthenticationError</ns2:ApiError.Type><ns2:reason>OAUTH_TOKEN_HEADER_INVALID</ns2:reason></ns2:errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>* >>> >>> could you help in this , i need urgent,thanks in advance. >>> >>> >>> Thanks®ards >>> R.manjula >>> >> -- >> -- >> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ >> Also find us on our blog and Google+: >> https://googleadsdeveloper.blogspot.com/ >> https://plus.google.com/+GoogleAdsDevelopers/posts >> =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ >> >> 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/d/optout. >> > > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and Google+: https://googleadsdeveloper.blogspot.com/ https://plus.google.com/+GoogleAdsDevelopers/posts =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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/d/optout.