Доброго времени суток!

Делаю запрос к сервису AdGroupAdService. 
Пример тела запроса:
  <?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/cm/v201409"";>
   <soapenv:Header>
  <v20:RequestHeader>
      <v20:clientCustomerId>ХХХХХХХХХХХХХХХХХХХ</v20:clientCustomerId>
      <v20:developerToken>ХХХХХХХХХХХХХХХХХХХХХ</v20:developerToken>
      <v20:userAgent>userAgent</v20:userAgent>
      <v20:validateOnly>false</v20:validateOnly>
      <v20:partialFailure>false</v20:partialFailure>
   </v20:RequestHeader>
   </soapenv:Header>
   <soapenv:Body>
      <v20:mutate>
         <v20:operations 
xmlns:i=""http://www.w3.org/2001/XMLSchema-instance"";>
            <v20:operator>"+СтруктураПараметров.Operator+"</v20:operator>
            <v20:operand>
               
<v20:adGroupId>"+СтруктураПараметров.adGroupId+"</v20:adGroupId>
               <v20:ad>   
                  <v20:url>"+СтруктураПараметров.url+"</v20:url>
                 
 <v20:displayUrl>"+СтруктураПараметров.displayUrl+"</v20:displayUrl>
                 
 <v20:headline>"+СтруктураПараметров.headline+"</v20:headline>
                 
 <v20:description1>"+СтруктураПараметров.description1+"</v20:description1>
                 
 <v20:description2>"+СтруктураПараметров.description2+"</v20:description2>
               </v20:ad>
               <v20:status>ENABLED</v20:status>
               <v20:approvalStatus>APPROVED</v20:approvalStatus>
               <v20:labels>
                  <v20:name>"Текст"</v20:name>
               </v20:labels>
            </v20:operand>
         </v20:operations>
      </v20:mutate>
   </soapenv:Body>
</soapenv:Envelope>

в ответ получаю:
"Unmarshalling Error: cvc-complex-type.2.4.a: Invalid content was found 
starting with element 'v20:headline'. One of 
'{"https://adwords.google.com/api/adwords/cm/v201409":finalUrls, 
"https://adwords.google.com/api/adwords/cm/v201409":finalMobileUrls, 
"https://adwords.google.com/api/adwords/cm/v201409":finalAppUrls, 
"https://adwords.google.com/api/adwords/cm/v201409":trackingUrlTemplate, 
"https://adwords.google.com/api/adwords/cm/v201409":urlCustomParameters, 
"https://adwords.google.com/api/adwords/cm/v201409":devicePreference, 
"https://adwords.google.com/api/adwords/cm/v201409":Ad.Type}' is expected. "

Как мне 
использовать 
https://developers.google.com/adwords/api/docs/reference/v201409/AdGroupAdService.TextAd
 
?
Может кто-то сталкивался? Как правильно сформировать запрос?

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 http://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/6498752d-779c-4fea-99ce-1fd7d7efee62%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to