Добрый день.
Отправляю запрос на создание объявления:

<?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/v201603";>
>    <soapenv:Header>
>   <v20:RequestHeader>
>       <v20:clientCustomerId>ххх-ххх-хххх</v20:clientCustomerId>
>       <v20:developerToken>хххххххххххххххххххххх</v20:developerToken>
>       <v20:userAgent>1cAdWords</v20:userAgent>
>       <v20:validateOnly>false</v20:validateOnly>
>       <v20:partialFailure>false</v20:partialFailure>
>    </v20:RequestHeader>
>    </soapenv:Header>
>    <soapenv:Body>
>       <v20:mutate 
> xmlns="https://adwords.google.com/api/adwords/cm/v201603";>
>          <v20:operations 
> xmlns:i="http://www.w3.org/2001/XMLSchema-instance";>
>             <v20:operator>ADD</v20:operator>
>             <v20:operand>
>                <v20:adGroupId>22928495953</v20:adGroupId>
>                <ad 
> xmlns:ns2="https://adwords.google.com/api/adwords/cm/v201603"; 
> i:type="ns2:TextAd">
>                   
>                   <v20:displayUrl>http://tile.expert</v20:displayUrl>
>                   
> <v20:finalUrls>https://tile.expert/it/tile/Abita/Ego</v20:finalUrls> 
>                   <v20:headline>Piastrelle Ego di Abita</v20:headline>
>                   <v20:description1>Da 24 € Consegna in Italia 
> 10gg</v20:description1>
>                   <v20:description2>Sito web con prezzi, foto, 
> ordini</v20:description2>
>                </ad>
>                <v20:status>ENABLED</v20:status>
>                
>             </v20:operand>
>          </v20:operations>
>       </v20:mutate>
>    </soapenv:Body>
> </soapenv:Envelope>


В ответ получаю ответ с ошибкой:

> <soap:Envelope 
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ResponseHeader
>  
> xmlns="https://adwords.google.com/api/adwords/cm/v201603";>
> <requestId>000532b4046d72a80ac12c487f0b70b8</requestId>
> <serviceName>AdGroupAdService</serviceName>
> <methodName>mutate</methodName>
> <operations>1</operations>
> <responseTime>209</responseTime></ResponseHeader>
> </soap:Header>
> <soap:Body>
> <soap:Fault>
> <faultcode>soap:Server</faultcode>
> <faultstring>
> [PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ 
> operations[0].operand.ad.headline, 
> key=PolicyViolationKey{policyName=tobacco,violatingText=Ego}, 
> externalPolicyName=Сигареты и табачные изделия, externalPolicyUrl=, 
> externalPolicyDescription=Google не допускает рекламу табака и табачных 
> изделий. См. наш &lt;a 
> href=http://adwords.google.com/support/bin/static.py?page=guidelines.cs&amp;topic=9271&amp;subtopic=9279&amp;answer=47228&amp;hl=ru_RU&gt;полный
>  
> список правил&lt;/a&gt;., isExemtable=true, violatingParts=[Part{index=11, 
> length=3}]}]
> </faultstring>
> <detail>
> <ApiExceptionFault 
> xmlns="https://adwords.google.com/api/adwords/cm/v201603";>
> <message>[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ 
> operations[0].operand.ad.headline, 
> key=PolicyViolationKey{policyName=tobacco,violatingText=Ego}, 
> externalPolicyName=Сигареты и табачные изделия, externalPolicyUrl=, 
> externalPolicyDescription=Google не допускает рекламу табака и табачных 
> изделий. См. наш &lt;a 
> href=http://adwords.google.com/support/bin/static.py?page=guidelines.cs&amp;topic=9271&amp;subtopic=9279&amp;answer=47228&amp;hl=ru_RU&gt;полный
>  
> список правил&lt;/a&gt;., isExemtable=true, violatingParts=[Part{index=11, 
> length=3}]}]
> </message>
> <ApplicationException.Type>ApiException</ApplicationException.Type>
> <errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
> xsi:type="PolicyViolationError">
> <fieldPath>operations[0].operand.ad.headline</fieldPath>
> <trigger>
> </trigger>
> <errorString>PolicyViolationError.POLICY_ERROR</errorString>
> <ApiError.Type>PolicyViolationError</ApiError.Type>
> <key>
> <policyName>tobacco</policyName>
> <violatingText>Ego</violatingText>
> </key><externalPolicyName>Сигареты и табачные изделия</externalPolicyName>
> <externalPolicyUrl>
> </externalPolicyUrl>
> <externalPolicyDescription>Google не допускает рекламу табака и табачных 
> изделий. См. наш &lt;a 
> href=http://adwords.google.com/support/bin/static.py?page=guidelines.cs&amp;topic=9271&amp;subtopic=9279&amp;answer=47228&amp;hl=ru_RU&gt;полный
>  
> список правил&lt;/a&gt;.</externalPolicyDescription>
>
> <isExemptable>true</isExemptable><violatingParts><index>11</index><length>3</length></violatingParts></errors></ApiExceptionFault></detail></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/4f0472e9-fc2a-4296-a88d-342e954c931d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
  • Как сделать чтобы... treto1ctest
    • Re: Как сдел... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
      • Re: Как ... treto1ctest
        • Re: ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
          • ... treto1ctest
            • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
              • ... treto1ctest
                • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum
                • ... 'Josh Radcliff (AdWords API Team)' via AdWords API Forum

Reply via email to