Appreciate your help. It worked for me.

Just one query:
Can't we use it the same way as SOAP WSDL generates the sample request xml 
by just adding "text" and "matchType" fields?




On Monday, September 18, 2017 at 2:22:30 PM UTC+5:30, neha sahu wrote:
>
> I am using 'mutate' operation of 'AdGroupCriterionService' service in SOAP 
> UI to create a 'KEYWORD' type criteria.
> Can you please help on how can I send 'matchType' and 'text' input ?
>
> Please find below request I am sending:
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
> xmlns:v20="https://adwords.google.com/api/adwords/cm/v201708";>
>    <soapenv:Header>
>       <v20:RequestHeader>
>          <!--Optional:-->
>          <v20:clientCustomerId>104-851-1999</v20:clientCustomerId>
>          <!--Optional:-->
>          <v20:developerToken>xyz</v20:developerToken>
>          <!--Optional:-->
>          <v20:userAgent>soft</v20:userAgent>
>          <!--Optional:-->
>          <v20:validateOnly>false</v20:validateOnly>
>          <!--Optional:-->
>          <v20:partialFailure>false</v20:partialFailure>
>       </v20:RequestHeader>
>    </soapenv:Header>
>    <soapenv:Body>
>       <v20:mutate>
>          <!--Zero or more repetitions:-->
>          <v20:operations>
>             <!--Optional:-->
>             <v20:operator>ADD</v20:operator>
>             <v20:operand>
>                <!--Optional:-->
>                <v20:adGroupId>54643115908</v20:adGroupId>
>                <!--Optional:-->
>                <v20:criterionUse>BIDDABLE</v20:criterionUse>
>                <!--Optional:-->
>                <v20:criterion>
>                   <!--Optional:-->
>                   <v20:type>KEYWORD</v20:type> 
>                   <v20:Criterion.Type>Keyword</v20:Criterion.Type>         
>         
>                   <v20:matchType>BROAD</v20:matchType>  
>                </v20:criterion>       
>                <!--Zero or more repetitions:-->      
>             </v20:operand>
>             <!--Zero or more repetitions:-->           
>          </v20:operations>
>       </v20:mutate>
>    </soapenv:Body>
> </soapenv:Envelope>
>
> Error:
>
> <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";>
>    <soap:Body>
>       <soap:Fault>
>          <faultcode>soap:Client</faultcode>
>          <faultstring>Unmarshalling Error: cvc-complex-type.2.4.d: Invalid 
> content was found starting with element 'v20:matchType'. No child element 
> is expected at this point.</faultstring>
>       </soap:Fault>
>    </soap:Body>
> </soap:Envelope>
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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.
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/8ad1dedf-969e-485c-873f-99047c176804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to