Hello,

I strongly recommend using one of our client libraries 
<https://developers.google.com/adwords/api/docs/clientlibraries>. These 
will handle creating the SOAP request for you and ensure that they are 
valid. For example, using our Ruby client library, I was able to generate 
this XML with minimal effort, which succeeds in making a request:

<env:Envelope xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xmlns:wsdl="https://adwords.google.com/api/adwords/o/v201402"; 
xmlns:env="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:ns0="https://adwords.google.com/api/adwords/cm/v201402";>
  <env:Header>
    <wsdl:RequestHeader 
xmlns="https://adwords.google.com/api/adwords/cm/v201402";>
      <userAgent>INSERT_USER_AGENT_HERE</userAgent>
      <developerToken>INSERT_DEVELOPER_TOKEN_HERE</developerToken>
      <clientCustomerId>INSERT_CLIENT_CUSTOMER_ID_HERE</clientCustomerId>
    </wsdl:RequestHeader>
  </env:Header>
  <env:Body>
    <get xmlns="https://adwords.google.com/api/adwords/o/v201402";>
      <selector>
        <searchParameters xsi:type="RelatedToQuerySearchParameter">
          <queries>INSERT_KEYWORD_TEXT_HERE</queries>
        </searchParameters>
        <searchParameters xsi:type="LanguageSearchParameter">
          <languages>
            <ns0:id>1000</ns0:id>
          </languages>
        </searchParameters>
        <ideaType>KEYWORD</ideaType>
        <requestType>IDEAS</requestType>
        <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>
        <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>
        
<requestedAttributeTypes>CATEGORY_PRODUCTS_AND_SERVICES</requestedAttributeTypes>
        <paging>
          <ns0:startIndex>0</ns0:startIndex>
          <ns0:numberResults>100</ns0:numberResults>
        </paging>
      </selector>
    </get>
  </env:Body>
</env:Envelope>

You could adapt this SOAP request for the TargetingIdeaService to suit your 
needs, but I think a better long-term solution is to use one of our 
pre-made utilities that handles all of this for you.

Regards,
Mike, AdWords API Team

On Friday, May 30, 2014 7:17:52 AM UTC-4, Manjula Naidu wrote:
>
> Hi,
>
>          
> URL:*https://adwords.google.com/api/adwords/o/v201402/TargetingIdeaService?wsdl
>  
> <https://adwords.google.com/api/adwords/o/v201402/TargetingIdeaService?wsdl>*
>
> *HttpHeader:**{*
>
> *    Authorization = "Bearer 
> ya29.JgDdHNzO_X-mhiAAAABLWp4whWp_EZkdJvzNH3ptVXXe8SI6k5Fmjum5HAgOgA";*
>
> *    "Content-Type" = "application/soap+xml";*
>
> *}*
> *Soap Body  :*
>
>
> *<?xml version="1.0" encoding="UTF-8"?>*
>
> *<soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/ 
> <http://schemas.xmlsoap.org/soap/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>">*
>
> *    <soapenv:Header>*
>
> *        <ns1:RequestHeader 
> soapenv:actor="http://schemas.xmlsoap.org/soap/actor/next 
> <http://schemas.xmlsoap.org/soap/actor/next>" soapenv:mustUnderstand="0" 
> xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>">*
>
> *            
> <ns1:clientCustomerId>$clientCustomerId</ns1:clientCustomerId>*
>
> *            <ns1:developerToken>$developerToken</ns1:developerToken>*
>
> *            <ns1:userAgent>$userAgent</ns1:userAgent>*
>
> *            <ns1:validateOnly>false</ns1:validateOnly>*
>
> *            <ns1:partialFailure>false</ns1:partialFailure>*
>
> *        </ns1:RequestHeader>*
>
> *    </soapenv:Header>*
>
> *    <soapenv:Body>*
>
> *        <get xmlns="https://adwords.google.com/api/adwords/o/v201402 
> <https://adwords.google.com/api/adwords/o/v201402>">*
>
> *            <selector>*
>
> *                <searchParameters xmlns:ns7="*
>
> *                    https://adwords.google.com/api/adwords/o/v201402 
> <https://adwords.google.com/api/adwords/o/v201402>"*
>
> *                    xsi:type="ns7:RelatedToQuerySearchParameter">*
>
> *                    <ns7:queries>flower</ns7:queries>*
>
> *                </searchParameters>*
>
> *                <searchParameters xmlns:ns8="*
>
> *                    https://adwords.google.com/api/adwords/o/v201402 
> <https://adwords.google.com/api/adwords/o/v201402>"*
>
> *                    xsi:type="ns8:NetworkSearchParameter">*
>
> *                    <ns8:networkSetting>*
>
> *                        <ns9:targetGoogleSearch xmlns:ns9="*
>
> *                            
> https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>">true*
>
> *                        </ns9:targetGoogleSearch>*
>
> *                        <ns10:targetSearchNetwork xmlns:ns10="*
>
> *                            
> https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>*
>
> *                            ">false</ns10:targetSearchNetwork>*
>
> *                        <ns11:targetContentNetwork xmlns:ns11="*
>
> *                            
> https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>*
>
> *                            ">false</ns11:targetContentNetwork>*
>
> *                        <ns12:targetPartnerSearchNetwork xmlns:ns12="*
>
> *                            
> https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>*
>
> *                            ">false</ns12:targetPartnerSearchNetwork>*
>
> *                    </ns8:networkSetting>*
>
> *                </searchParameters>*
>
> *                <ideaType>KEYWORD</ideaType>*
>
> *                <requestType>STATS</requestType>*
>
> *                
> <requestedAttributeTypes>KEYWORD_TEXT</requestedAttributeTypes>*
>
>                 
>
> *                
> <requestedAttributeTypes>SEARCH_VOLUME</requestedAttributeTypes>*
>
>                 
>
> *                
> <requestedAttributeTypes>TARGETED_MONTHLY_SEARCHES</requestedAttributeTypes>*
>
> *                <paging>*
>
> *                    <ns13:startIndex xmlns:ns13="*
>
> *                        https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>">0</ns13:startIndex>*
>
> *                    <ns14:numberResults xmlns:ns14="*
>
> *                        https://adwords.google.com/api/adwords/cm/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>">10</ns14:numberResults>*
>
> *                </paging>*
>
> *            </selector>*
>
> *        </get>*
>
> *    </soapenv:Body>*
>
>
>
> *</soapenv:Envelope>*
>
>
>
> *Response:*
>
>
>
>  *<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ 
> <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/v201402 
> <https://adwords.google.com/api/adwords/cm/v201402>", 
> local:"RequestHeader"). Expected elements are 
> &lt;{https://adwords.google.com/api/adwords/o/v201402}ApiExceptionFault&gt 
> <https://adwords.google.com/api/adwords/o/v201402%7DApiExceptionFault&gt>;,&lt;{https://adwords.google.com/api/adwords/o/v201402}RequestHeader&gt
>  
> <https://adwords.google.com/api/adwords/o/v201402%7DRequestHeader&gt>;,&lt;{https://adwords.google.com/api/adwords/o/v201402}ResponseHeader&gt
>  
> <https://adwords.google.com/api/adwords/o/v201402%7DResponseHeader&gt>;,&lt;{https://adwords.google.com/api/adwords/o/v201402}get&gt
>  
> <https://adwords.google.com/api/adwords/o/v201402%7Dget&gt>;,&lt;{https://adwords.google.com/api/adwords/o/v201402}getBulkKeywordIdeas&gt
>  
> <https://adwords.google.com/api/adwords/o/v201402%7DgetBulkKeywordIdeas&gt>;,&lt;{https://adwords.google.com/api/adwords/o/v201402}getBulkKeywordIdeasResponse&gt
>  
> <https://adwords.google.com/api/adwords/o/v201402%7DgetBulkKeywordIdeasResponse&gt>;,&lt;{https://adwords.google.com/api/adwords/o/v201402}getResponse&gt
>  
> <https://adwords.google.com/api/adwords/o/v201402%7DgetResponse&gt>; 
> </faultstring></soap:Fault></soap:Body></soap:Envelope>*
>
>
> What exactly problem i am really not getting,please could you help what 
> exact problem, i am waiting response.Thanks in advance.
>
>
> Thanks&regards
>
>
> 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.

Reply via email to