API request Via SOAP

35 views
Skip to first unread message

sange...@position2.com

unread,
Feb 27, 2019, 5:12:43 PM2/27/19
to AdWords API and Google Ads API Forum

Hi Team,

I am new to this AdWords API integration. I'm using WSDL to generate my soap request function.

My question is, in this soap request there is no Authorization filed is generated. SO I need to know how to do authentication and also when I provide the values for the available arguments I'm getting the Error as below

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Body><soap:Fault><faultcode>soap:Client</faultcode><faultstring>Unmarshalling Error: cvc-type.2: The type definition cannot be abstract for element v20:searchParameters. </faultstring></soap:Fault></soap:Body></soap:Envelope>

I don't know where is going wrong. If anyone knows please do the needful.

SOAP Request:
          XML : <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"            xmlns:v20="https://adwords.google.com/api/adwords/o/v201809" xmlns:v201="https://adwords.google.com/api/adwords/cm/v201809">
           <soapenv:Header> 
      <v20:RequestHeader>
         <!--Optional:-->
         <v201:clientCustomerId>${RequestHeader.clientCustomerId}</v201:clientCustomerId>
         <!--Optional:-->
         <v201:developerToken>${RequestHeader.developerToken}</v201:developerToken>
         <!--Optional:-->
         <v201:userAgent>${RequestHeader.userAgent}</v201:userAgent>
         <!--Optional:-->
         <v201:validateOnly>${RequestHeader.validateOnly}</v201:validateOnly>
         <!--Optional:-->
         <v201:partialFailure>${RequestHeader.partialFailure}</v201:partialFailure>
      </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:get>
         <!--Optional:-->
         <v20:selector>
            <!--Zero or more repetitions:-->
            <v20:searchParameters>
               <!--Optional:-->
               <v20:SearchParameter.Type>${searchParameters.SearchParameter.Type}</v20:SearchParameter.Type>
            </v20:searchParameters>
            <!--Optional:-->
            <v20:ideaType>${selector.ideaType}</v20:ideaType>
            <!--Optional:-->
            <v20:requestType>${selector.requestType}</v20:requestType>
            <!--Zero or more repetitions:-->
            <v20:requestedAttributeTypes>${selector.requestedAttributeTypes}</v20:requestedAttributeTypes>
            <!--Optional:-->
            <v20:paging>
               <!--Optional:-->
               <v201:startIndex>${paging.startIndex}</v201:startIndex>
               <!--Optional:-->
               <v201:numberResults>${paging.numberResults}</v201:numberResults>
            </v20:paging>
            <!--Optional:-->
            <v20:localeCode>${selector.localeCode}</v20:localeCode>
            <!--Optional:-->
            <v20:currencyCode>${selector.currencyCode}</v20:currencyCode>
         </v20:selector>
      </v20:get>
   </soapenv:Body>
</soapenv:Envelope>

googleadsapi...@google.com

unread,
Feb 28, 2019, 3:26:29 AM2/28/19
to AdWords API and Google Ads API Forum
Hi Sangeetha,

Could you confirm if you have already applied for a developer token and OAuth2 Credentials? If not, kindly refer to this guide on how to complete your setup for using the AdWords API by applying for a developer token and this guide on how to get your OAuth2 Credentials. Once you complete these steps, you may now refer to this link on how to make API calls.

It is also recommended that you use one of our client libraries to make API service calls. 

Regards,
Dannison
AdWords API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    http://googleadsdeveloper.blogspot.com/search/label/adwords_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
 
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwor...@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscribe@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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscribe@googlegroups.com.
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/7315e71c-0e30-4c2d-b9f2-400f4d0a6d06%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages