Как сделать чтобы ответ приходил на английском языке

196 views
Skip to first unread message

treto...@gmail.com

unread,
May 13, 2016, 3:22:22 AM5/13/16
to AdWords API Forum
Добрый день.
Отправляю запрос на создание объявления:

<?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> 

Как видно описание ошибки идет на русском языке, как можно получить этот же ответ на английском языке? 
Мне нужно получать описание ошибок на английском.

И ще, есть ли какой-то механизм отправки таких объявлений не прошедших по каким-то причинам в автоматическом режиме или только через службу поддержки? Т.е. может есть какой-то сервис которые дает возможность подавать запрос на одобрение объявлений?

Josh Radcliff (AdWords API Team)

unread,
May 15, 2016, 1:19:21 PM5/15/16
to AdWords API Forum
Hi,

Sorry, I can only answer in English, but I believe that the language of the policy description and text is driven by the language settings of the OAuth credential's user. If you use OAuth credentials from a user whose language is set to English, you should get the policy error information back in English.

Regarding your other question, you can resubmit some operations that failed due to policy violations by using exemption requests. Please see the Exemption Requests guide for more details.

Thanks,
Josh, AdWords API Team

treto...@gmail.com

unread,
May 16, 2016, 2:45:30 AM5/16/16
to AdWords API Forum
У меня в настройках аккаунта указан английский язык.

Или нужно не здесь устанавливать язык?

воскресенье, 15 мая 2016 г., 20:19:21 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:

Josh Radcliff (AdWords API Team)

unread,
May 16, 2016, 9:09:07 AM5/16/16
to AdWords API Forum
Hi,

That determines the language preferences for the AdWords user interface, but my theory is that the language settings that are driving the language of the policy violation are from the Google account's language settings.

While logged in as the user whose OAuth credentials you are using, please do the following:
  1. Go to accounts.google.com.
  2. Click on Language & Input Tools under Account preferences.
  3. Check if the language selected there is Russian.
Thanks,
Josh, AdWords API Team

treto...@gmail.com

unread,
May 17, 2016, 2:39:41 AM5/17/16
to AdWords API Forum
В аккаунте у меня был указан английский:

НО все-равно сообщения приходят на русском языке. Видимо проблема в чем-то другом.

понедельник, 16 мая 2016 г., 16:09:07 UTC+3 пользователь Josh Radcliff (AdWords API Team) написал:

Josh Radcliff (AdWords API Team)

unread,
May 17, 2016, 5:58:53 PM5/17/16
to AdWords API Forum
Hi,

I'm following up with the engineers on this one. I'll reply back as soon as I have an update.

Thanks,
Josh, AdWords API Team

treto...@gmail.com

unread,
May 23, 2016, 4:01:07 AM5/23/16
to AdWords API Forum
hi, there is news on the topic?
change any language settings do not solve the problem

Josh Radcliff (AdWords API Team)

unread,
May 23, 2016, 8:54:49 AM5/23/16
to AdWords API Forum
Hi,

No news yet, but I'll be sure to let you know as soon as I hear back on the issue.

Thanks,
Josh, AdWords API Team

Josh Radcliff (AdWords API Team)

unread,
Aug 9, 2016, 4:29:58 PM8/9/16
to AdWords API Forum
Hi,

I finally heard back on this one, and it looks like your user's language preferences are set to Russian (at least currently). Did you change them since your post in May? Also, are you continuing to see this issue?

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages