TargetingIdeaService SOAP Call, limiting to location error - Invalid content was found starting with element 'locationName'

19 views
Skip to first unread message

Fred Cohen

unread,
Sep 4, 2017, 4:03:41 AM9/4/17
to AdWords API Forum
Here is my SOAP Request

  <SOAP-ENV:Header> 
    <ns2:RequestHeader xsi:type="ns1:RequestHeader"> 
      <ns1:developerToken>xxxxx</ns1:developerToken>
      <ns1:clientCustomerId>xxxx</ns1:clientCustomerId>
      <ns1:userAgent>kaketest</ns1:userAgent> 
    </ns2:RequestHeader> 
  </SOAP-ENV:Header> 
  <SOAP-ENV:Body> 
    <selector>
        <searchParameters xsi:type="RelatedToQuerySearchParameter">
            <queries>debt management</queries>
            <queries>debt questions</queries>
        </searchParameters>
<searchParameters xsi:type="LocationSearchParameter">
            <locations>
<locationName>
<Country>United Kingdom</Country>
</locationName>
</locations>
        </searchParameters>
                    <ideaType>KEYWORD</ideaType>
            <requestType>STATS</requestType>
            <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
            <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
            <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>
            <requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</requestedAttributeTypes>
            <requestedAttributeTypes>COMPETITION</requestedAttributeTypes>
        <paging>
            <startIndex xmlns="https://adwords.google.com/api/adwords/cm/v201708">0</startIndex>
            <numberResults xmlns="https://adwords.google.com/api/adwords/cm/v201708">10</numberResults>
        </paging>
    </selector>
   </get>
  </SOAP-ENV:Body> 
</SOAP-ENV:Envelope> 

but i get the error: Invalid content was found starting with element 'locationName'
Where have a got the structure wrong?
Reply all
Reply to author
Forward
0 new messages