isExemptable does not become false

145 views
Skip to first unread message

Hideichi Saito

unread,
Sep 13, 2017, 3:33:57 PM9/13/17
to AdWords API Forum
In this sample code, I am testing to get an error.

Despite sending the title where an error occurs,
PolicyViolationError.isExemptable = true
The second mutate will be executed and an error will result.

In other words,
"All the operations were invalid with non-exemptable errors. \ N"
It will not be.

If expected behavior can not be exempted from application, no policy exemption request is made,
ExternalPolicyDescription, ExternalPolicyName, ViolatingText
And so on.

Help me.

[2017-09-13 18:44:13] AW_SOAP.WARNING: clientCustomerId=000-000-0000 operations=0 service=AdGroupAdService method=mutate responseTime=275 requestId=0000000000000000000000000000000 server=adwords.google.com isFault=1 faultMessage=[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。<ul><li>広見し感符使こや1 つ広で数感符使こ</li><li>句点記をりすと「!!!!無!!!」な)</li><li>本とな意合で字使こ(「39セルな)</li><li>一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)</li></ul><a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポシ全をる/a>, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広も時稿!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。<ul><li>広見し感符使こや1 つ広で数感符使こ</li><li>句点記をりすと「!!!!無!!!」な)</li><li>本とな意合で字使こ(「39セルな)</li><li>一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)</li></ul><a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポシ全をる/a>, isExemtable=true, violatingParts=[Part{index=0, length=12}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.finalUrls, key=PolicyViolationKey{policyName=weapons,violatingText=bazooka}, externalPolicyName=Google AdWords, externalPolicyUrl=, externalPolicyDescription=こ広まはーーは掲前審をけ必がりす, isExemtable=true, violatingParts=[Part{index=3, length=7}]}]  
[2017-09-13 18:44:13] AW_SOAP.NOTICE: POST /api/adwords/cm/v201705/AdGroupAdService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/5.6.31
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1209
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201705" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>000-000-0000</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>EXSAMPLE (AwApi-PHP, googleads-php-lib/29.0.0, PHP/5.6.31)</ns1:userAgent><ns1:validateOnly>true</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:adGroupId>00000000000</ns1:adGroupId><ns1:ad xsi:type="ns1:ExpandedTextAd"><ns1:finalUrls>https://exsample.com/about</ns1:finalUrls><ns1:headlinePart1>高力レリーPRバー</ns1:headlinePart1><ns1:headlinePart2>WEB広も時稿!</ns1:headlinePart2><ns1:description>無でレリー配&WEB広出新ースPRバー」をリス/ns1:description></ns1:ad></ns1:operand></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Wed, 13 Sep 2017 09:44:13 GMT
Expires: Wed, 13 Sep 2017 09:44:13 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201705"><requestId>0000000000000000000000000000000</requestId><serviceName>AdGroupAdService</serviceName><methodName>mutate</methodName><operations>0</operations><responseTime>275</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次 のように句読点や記号を過剰に(無意味に)使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広告も同時出稿!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;, isExemtable=true, violatingParts=[Part{index=0, length=12}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.finalUrls, key=PolicyViolationKey{policyName=weapons,violatingText=bazooka}, externalPolicyName=Google AdWords, externalPolicyUrl=, externalPolicyDescription=この広告またはキーワードは、掲載前に審査を受ける必要があります。, isExemtable=true, violatingParts=[Part{index=3, length=7}]}]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201705"><message>[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。
&lt;ul&gt;
&lt;li&gt;広見し感符使こや1 つ広で数感符使こ&lt;/li&gt;
&lt;li&gt;句点記をりすと「!!!!無!!!」な)&lt;/li&gt;
&lt;li&gt;本とな意合で字使こ(「39セルな)&lt;/li&gt;
&lt;li&gt;一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポシ全をるlt;/a&gt;, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広も時稿!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。
&lt;ul&gt;
&lt;li&gt;広見し感符使こや1 つ広で数感符使こ&lt;/li&gt;
&lt;li&gt;句点記をりすと「!!!!無!!!」な)&lt;/li&gt;
&lt;li&gt;本とな意合で字使こ(「39セルな)&lt;/li&gt;
&lt;li&gt;一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;, isExemtable=true, violatingParts=[Part{index=0, length=12}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.finalUrls, key=PolicyViolationKey{policyName=weapons,violatingText=bazooka}, externalPolicyName=Google AdWords, externalPolicyUrl=, externalPolicyDescription=この広告またはキーワードは、掲載前に審査を受ける必要があります。, isExemtable=true, violatingParts=[Part{index=3, length=7}]}]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PolicyViolationError"><fieldPath>operations[0].operand.ad.headlinePart2</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>headlinePart2</field></fieldPathElements><trigger></trigger><errorString>PolicyViolationError.POLICY_ERROR</errorString><ApiError.Type>PolicyViolationError</ApiError.Type><key><policyName>nonstandard_punctuation</policyName><violatingText>!!</violatingText></key><externalPolicyName>句読点と記号</externalPolicyName><externalPolicyUrl></externalPolicyUrl><externalPolicyDescription>Google 広告では、次のように句読点や記号を過剰に(無意味に) 使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;</externalPolicyDescription><isExemptable>true</isExemptable><violatingParts><index>10</index><length>2</length></violatingParts></errors><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PolicyViolationError"><fieldPath>operations[0].operand.ad.headlinePart2</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>headlinePart2</field></fieldPathElements><trigger></trigger><errorString>PolicyViolationError.POLICY_ERROR</errorString><ApiError.Type>PolicyViolationError</ApiError.Type><key><policyName>nonstandard_punctuation</policyName><violatingText>WEB広告も同時出稿!!</violatingText></key><externalPolicyName>句読点と記号</externalPolicyName><externalPolicyUrl></externalPolicyUrl><externalPolicyDescription>Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;</externalPolicyDescription><isExemptable>true</isExemptable><violatingParts><index>0</index><length>12</length></violatingParts></errors><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PolicyViolationError"><fieldPath>operations[0].operand.ad.finalUrls</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>finalUrls</field></fieldPathElements><trigger></trigger><errorString>PolicyViolationError.POLICY_ERROR</errorString><ApiError.Type>PolicyViolationError</ApiError.Type><key><policyName>weapons</policyName><violatingText>bazooka</violatingText></key><externalPolicyName>Google AdWords</externalPolicyName><externalPolicyUrl></externalPolicyUrl><externalPolicyDescription>この広告またはキーワードは、掲載前に審査を受ける必要があります。</externalPolicyDescription><isExemptable>true</isExemptable><violatingParts><index>3</index><length>7</length></violatingParts></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
  
[2017-09-13 18:44:13] AW_SOAP.WARNING: clientCustomerId=000-000-0000 operations=1 service=AdGroupAdService method=mutate responseTime=301 requestId=000000000000000000000000000000 server=adwords.google.com isFault=1 faultMessage=[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。<ul><li>広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと</li><li>句読点や記号を繰り返すこと(「!!!!無料!!!」など)</li><li>本来と異なる意味 合いで文字を使うこと(「39セール」など)</li><li>一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)</li></ul><a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポリシー全文を見る</a>, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広告も同時出稿!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。<ul><li>広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと</li><li>句読点や記号を繰り返すこと(「!!!!無料!!!」など)</li><li>本来と異なる意味合いで文字を使うこと(「39セール」など)</li><li>一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)</li></ul><a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポリシー全文を見る</a>, isExemtable=true, violatingParts=[Part{index=0, length=12}]}]  
[2017-09-13 18:44:13] AW_SOAP.NOTICE: POST /api/adwords/cm/v201705/AdGroupAdService?wsdl HTTP/1.1
Connection: close
User-Agent: PHP-SOAP/5.6.31
Content-Type: text/xml; charset=utf-8
SOAPAction: ""
Content-Length: 1362
Authorization: REDACTED

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="https://adwords.google.com/api/adwords/cm/v201705" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Header><ns1:RequestHeader><ns1:clientCustomerId>000-000-0000</ns1:clientCustomerId><ns1:developerToken>REDACTED</ns1:developerToken><ns1:userAgent>EXSAMPLE (AwApi-PHP, googleads-php-lib/29.0.0, PHP/5.6.31)</ns1:userAgent><ns1:validateOnly>false</ns1:validateOnly><ns1:partialFailure>false</ns1:partialFailure></ns1:RequestHeader></SOAP-ENV:Header><SOAP-ENV:Body><ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:adGroupId>00000000000</ns1:adGroupId><ns1:ad xsi:type="ns1:ExpandedTextAd"><ns1:finalUrls>https://exsample.com/about</ns1:finalUrls><ns1:headlinePart1>高火力プレスリリースPRバズーカ</ns1:headlinePart1><ns1:headlinePart2>WEB広告も同時出稿!!</ns1:headlinePart2><ns1:description>無料でプレスリリース配信&WEB広告出稿新サービス「PRバズーカ」をリリース</ns1:description></ns1:ad></ns1:operand><ns1:exemptionRequests><ns1:key><ns1:policyName>weapons</ns1:policyName><ns1:violatingText>bazooka</ns1:violatingText></ns1:key></ns1:exemptionRequests></ns1:operations></ns1:mutate></SOAP-ENV:Body></SOAP-ENV:Envelope>

HTTP/1.1 500 Internal Server Error
Content-Type: text/xml; charset=UTF-8
Date: Wed, 13 Sep 2017 09:44:13 GMT
Expires: Wed, 13 Sep 2017 09:44:13 GMT
Cache-Control: private, max-age=0
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN
X-XSS-Protection: 1; mode=block
Server: GSE
Alt-Svc: quic=":443"; ma=2592000; v="39,38,37,35"
Accept-Ranges: none
Vary: Accept-Encoding
Connection: close

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><ResponseHeader xmlns="https://adwords.google.com/api/adwords/cm/v201705"><requestId>000000000000000000000000000000</requestId><serviceName>AdGroupAdService</serviceName><methodName>mutate</methodName><operations>1</operations><responseTime>301</responseTime></ResponseHeader></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。
&lt;ul&gt;
&lt;li&gt;広見し感符使こや1 つ広で数感符使こ&lt;/li&gt;
&lt;li&gt;句点記をりすと「!!!!無!!!」な)&lt;/li&gt;
&lt;li&gt;本とな意合で字使こ(「39セルな)&lt;/li&gt;
&lt;li&gt;一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポシ全をるlt;/a&gt;, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広も時稿!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。
&lt;ul&gt;
&lt;li&gt;広見し感符使こや1 つ広で数感符使こ&lt;/li&gt;
&lt;li&gt;句点記をりすと「!!!!無!!!」な)&lt;/li&gt;
&lt;li&gt;本とな意合で字使こ(「39セルな)&lt;/li&gt;
&lt;li&gt;一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポシ全をるlt;/a&gt;, isExemtable=true, violatingParts=[Part{index=0, length=12}]}]</faultstring><detail><ApiExceptionFault xmlns="https://adwords.google.com/api/adwords/cm/v201705"><message>[PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句点記, externalPolicyUrl=, externalPolicyDescription=Google 広で、次よに読や号過に無味)使こは可れせ。
&lt;ul&gt;
&lt;li&gt;広見し感符使こや1 つ広で数感符使こ&lt;/li&gt;
&lt;li&gt;句点記をりすと「!!!!無!!!」な)&lt;/li&gt;
&lt;li&gt;本とな意合で字使こ(「39セルな)&lt;/li&gt;
&lt;li&gt;一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広告も同時出稿!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;, isExemtable=true, violatingParts=[Part{index=0, length=12}]}]</message><ApplicationException.Type>ApiException</ApplicationException.Type><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PolicyViolationError"><fieldPath>operations[0].operand.ad.headlinePart2</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>headlinePart2</field></fieldPathElements><trigger></trigger><errorString>PolicyViolationError.POLICY_ERROR</errorString><ApiError.Type>PolicyViolationError</ApiError.Type><key><policyName>nonstandard_punctuation</policyName><violatingText>!!</violatingText></key><externalPolicyName>句読点と記号</externalPolicyName><externalPolicyUrl></externalPolicyUrl><externalPolicyDescription>Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;</externalPolicyDescription><isExemptable>true</isExemptable><violatingParts><index>10</index><length>2</length></violatingParts></errors><errors xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="PolicyViolationError"><fieldPath>operations[0].operand.ad.headlinePart2</fieldPath><fieldPathElements><field>operations</field><index>0</index></fieldPathElements><fieldPathElements><field>operand</field></fieldPathElements><fieldPathElements><field>ad</field></fieldPathElements><fieldPathElements><field>headlinePart2</field></fieldPathElements><trigger></trigger><errorString>PolicyViolationError.POLICY_ERROR</errorString><ApiError.Type>PolicyViolationError</ApiError.Type><key><policyName>nonstandard_punctuation</policyName><violatingText>WEB広告も同時出稿!!</violatingText></key><externalPolicyName>句読点と記号</externalPolicyName><externalPolicyUrl></externalPolicyUrl><externalPolicyDescription>Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
&lt;ul&gt;
&lt;li&gt;広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと&lt;/li&gt;
&lt;li&gt;句読点や記号を繰り返すこと(「!!!!無料!!!」など)&lt;/li&gt;
&lt;li&gt;本来と異なる意味合いで文字を使うこと(「39セール」など)&lt;/li&gt;
&lt;li&gt;一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)&lt;/li&gt;
&lt;/ul&gt;
&lt;a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank"&gt;ポリシー全文を見る&lt;/a&gt;</externalPolicyDescription><isExemptable>true</isExemptable><violatingParts><index>0</index><length>12</length></violatingParts></errors></ApiExceptionFault></detail></soap:Fault></soap:Body></soap:Envelope>
  
Error: [PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
<ul>
<li>広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと</li>
<li>句読点や記号を繰り返すこと(「!!!!無料!!!」など)</li>
<li>本来と異なる意味合いで文字を使うこと(「39セール」など)</li>
<li>一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)</li>
</ul>
<a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポリシー全文を見る</a>, isExemtable=true, violatingParts=[Part{index=10, length=2}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations[0].operand.ad.headlinePart2, key=PolicyViolationKey{policyName=nonstandard_punctuation,violatingText=WEB広告も同時出稿!!}, externalPolicyName=句読点と記号, externalPolicyUrl=, externalPolicyDescription=Google 広告では、次のように句読点や記号を過剰に(無意味に)使うことは許可されません。
<ul>
<li>広告見出しで感嘆符を使うことや、1 つの広告で複数の感嘆符を使うこと</li>
<li>句読点や記号を繰り返すこと(「!!!!無料!!!」など)</li>
<li>本来と異なる意味合いで文字を使うこと(「39セール」など)</li>
<li>一般的に使用されない記号(「~」、「*」など)を使うこと(なお、企業名に含まれる場合や、業界の標準的な使用方法(「5* ホテル」など)に該当する場合を除く)</li>
</ul>
<a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポリシー全文を見る</a>, isExemtable=true, violatingParts=[Part{index=0, length=12}]}]
#0 /var/www/html/exsample/vendors/googleads/googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php(39): ReflectionClass->newInstanceArgs(Array)
#1 /var/www/html/exsample/vendors/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(165): Google\AdsApi\Common\Util\Reflection->createInstance('Google\\AdsApi\\A...', '[PolicyViolatio...')
#2 /var/www/html/exsample/vendors/googleads/googleads-php-lib/src/Google/AdsApi/Common/AdsSoapClient.php(130): Google\AdsApi\Common\AdsSoapClient->parseApiExceptionFromSoapFault(Object(SoapFault))
#3 /var/www/html/exsample/vendors/googleads/googleads-php-lib/src/Google/AdsApi/AdWords/v201705/cm/AdGroupAdService.php(190): Google\AdsApi\Common\AdsSoapClient->__soapCall('mutate', Array)
#4 /var/www/html/exsample/app/Plugin/Members/Model/Adwords.php(719): Google\AdsApi\AdWords\v201705\cm\AdGroupAdService->mutate(Array)
#5 /var/www/html/exsample/app/Console/Command/TestShell.php(32): Adwords->HandlePolicyViolationError(Array)
#6 /var/www/html/exsample/lib/Cake/Console/Shell.php(440): TestShell->main()
#7 /var/www/html/exsample/lib/Cake/Console/ShellDispatcher.php(209): Shell->runCommand(NULL, Array)
#8 /var/www/html/exsample/lib/Cake/Console/ShellDispatcher.php(66): ShellDispatcher->dispatch()
#9 /var/www/html/exsample/app/Console/cake.php(47): ShellDispatcher::run(Array)
#10 {main}



Peter Oliquino

unread,
Sep 14, 2017, 3:42:17 AM9/14/17
to AdWords API Forum
Hi Hideichi,

Please correct my understanding if I am wrong. Could you confirm if my understanding is correct that you initially sent a request to create ads that you expect to be isExemptable = false but got an isExemptable = true response instead? If my understanding is indeed correct, then I'm afraid that identifying which values would pass or not pass the policies of AdWords is already out of scope for our team.

I would recommend that you consult with the product experts at the AdWords Community Forum in order to identify which values would trigger an isExemptable = false as response. However, if I misunderstood it correctly, please let me know so I can provide a better and more correct response.

Best regards,
Peter
AdWords API Team

Hideichi Saito

unread,
Sep 14, 2017, 4:35:56 AM9/14/17
to AdWords API Forum
Thank you for your reply.

This sample is the first mutate, and if PolicyViolationError.isExemptable = true, ExemptionRequest is possible.
Although I understand that it is a sample called PolicyViolationError.isExemptable = true, an error occurs with the second mutate.

Because it is google translation, please forgive me that it is difficult to understand sentences.
It is briefly described as follows.

this sample code is,
if PolicyViolationError.isExemptable = true then ExemptionRequest executable.
but error. 


2017年9月14日木曜日 16時42分17秒 UTC+9 Peter Oliquino:

Nadine Sundquist (AdWords API Team)

unread,
Sep 14, 2017, 11:38:21 AM9/14/17
to AdWords API Forum
Greetings!

I think I may have found why this isn't working as expected. In the error, it is saying that the violation is the !! in the ad text. When the exemption request is sent, it does not mention the '!!'. It mentions the word bazooka, but there is no exemption being passed in for the !!. Can you please make sure that you have 1 exemption request for each policy violation. You have 2 policy violations here that can be exempted.
  • One policy violation is for the word bazooka.
  • One policy violation is for the !!.
<ns1:mutate><ns1:operations><ns1:operator>ADD</ns1:operator><ns1:operand><ns1:adGroupId>00000000000</ns1:adGroupId><ns1:ad xsi:type="ns1:ExpandedTextAd"><ns1:finalUrls>https://exsample.com/about</ns1:finalUrls><ns1:headlinePart1>高火力プレスリリースPRバズーカ</ns1:headlinePart1><ns1:headlinePart2>WEB広告も同時出稿!!</ns1:headlinePart2><ns1:description>無料でプレスリリース配信&WEB広告出稿新サービス「PRバズーカ」をリリース</ns1:description></ns1:ad></ns1:operand><ns1:exemptionRequests><ns1:key><ns1:policyName>weapons</ns1:policyName><ns1:violatingText>bazooka</ns1:violatingText></ns1:key></ns1:exemptionRequests></ns1:operations></ns1:mutate>

Please try adding an exemption request for all the policy violations. If you still experience issues, please get back to me.

Best,
Nadine, AdWords API Team

Hideichi Saito

unread,
Sep 14, 2017, 8:37:37 PM9/14/17
to AdWords API Forum
Thank you for your reply.

I am sorry that the explanation is insufficient.
Yes, I understand that there are two policy violations.

One policy violation is for the word bazooka.
PolicyViolationError.isExemptable = true, this is as expected.

One policy violation is for the !!.
PolicyViolationError.isExemptable = true, this is disappointing.
I think that it can not be exempted from application, so I want you to return false.

As a result, I understand that it is an error in the second mutate.


2017年9月15日金曜日 0時38分21秒 UTC+9 Nadine Sundquist (AdWords API Team):

Nadine Sundquist (AdWords API Team)

unread,
Sep 15, 2017, 10:10:48 AM9/15/17
to AdWords API Forum
Hello,

I noticed when you send the exemption request, you only send 1 exemption request for bazooka. When you sent the second mutate, you should have sent two exemption requests at the same time. One exemption request should have been for bazooka and the other should have been for !!. Could you please try sending two exemption requests for that one ad at the same time? If you still have issues after doing that, please get back to me.

Thanks,
Nadine, AdWords API Team
Message has been deleted

Hideichi Saito

unread,
Sep 17, 2017, 1:22:41 AM9/17/17
to AdWords API Forum
Many times, thank you for your reply.

I was misunderstanding.
"!!", I thought that this exemption request can not be made.

Then, another problem came up.
PolicyViolationError.isExemptable = true
Although it is true, it is not included in ExemptionRequest.

Actually, there are three errors.

line:75. Set up and get var_dump ($ error);

object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationError)#141 (12) {
  ["key":protected]=>
  object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationKey)#126 (2) {
    ["policyName":protected]=>
    string(23) "nonstandard_punctuation"
    ["violatingText":protected]=>
    string(2) "!!"
  }
  ["externalPolicyName":protected]=>
  string(18) "句点記"
  ["externalPolicyUrl":protected]=>
  string(0) ""
  ["externalPolicyDescription":protected]=>
  string(768) "Google 広で、次よに読や号過に無味)使こは可れせ。
<ul>
<li>広見し感符使こや1 つ広で数感符使こ</li>
<li>句点記をりすと「!!!!無!!!」な)</li>
<li>本とな意合で字使こ(「39セルな)</li>
<li>一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)</li>
</ul>
<a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポシ全をる/a>"
  ["isExemptable":protected]=>
  bool(true)
  ["violatingParts":protected]=>
  array(1) {
    [0]=>
    object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationErrorPart)#125 (2) {
      ["index":protected]=>
      int(10)
      ["length":protected]=>
      int(2)
    }
  }
  ["fieldPath":protected]=>
  string(38) "operations[0].operand.ad.headlinePart2"
  ["fieldPathElements":protected]=>
  array(4) {
    [0]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#138 (2) {
      ["field":protected]=>
      string(10) "operations"
      ["index":protected]=>
      int(0)
    }
    [1]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#137 (2) {
      ["field":protected]=>
      string(7) "operand"
      ["index":protected]=>
      NULL
    }
    [2]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#136 (2) {
      ["field":protected]=>
      string(2) "ad"
      ["index":protected]=>
      NULL
    }
    [3]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#135 (2) {
      ["field":protected]=>
      string(13) "headlinePart2"
      ["index":protected]=>
      NULL
    }
  }
  ["trigger":protected]=>
  string(0) ""
  ["errorString":protected]=>
  string(33) "PolicyViolationError.POLICY_ERROR"
  ["ApiErrorType":protected]=>
  string(20) "PolicyViolationError"
  ["parameterMap":"Google\AdsApi\AdWords\v201705\cm\ApiError":private]=>
  array(1) {
    ["ApiError.Type"]=>
    string(12) "ApiErrorType"
  }
}

object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationError)#122 (12) {
  ["key":protected]=>
  object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationKey)#129 (2) {
    ["policyName":protected]=>
    string(23) "nonstandard_punctuation"
    ["violatingText":protected]=>
    string(26) "WEB広も時稿!"
  }
  ["externalPolicyName":protected]=>
  string(18) "句点記"
  ["externalPolicyUrl":protected]=>
  string(0) ""
  ["externalPolicyDescription":protected]=>
  string(768) "Google 広で、次よに読や号過に無味)使こは可れせ。
<ul>
<li>広見し感符使こや1 つ広で数感符使こ</li>
<li>句点記をりすと「!!!!無!!!」な)</li>
<li>本とな意合で字使こ(「39セルな)</li>
<li>一的使さな記(「~」、「*」な)をうとな、企名含れ場や業の準な用法「5* ホルな)に当る合除)</li>
</ul>
<a href="https://support.google.com/adwordspolicy/answer/6021546#048" target="_blank">ポシ全をる/a>"
  ["isExemptable":protected]=>
  bool(true)
  ["violatingParts":protected]=>
  array(1) {
    [0]=>
    object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationErrorPart)#128 (2) {
      ["index":protected]=>
      int(0)
      ["length":protected]=>
      int(12)
    }
  }
  ["fieldPath":protected]=>
  string(38) "operations[0].operand.ad.headlinePart2"
  ["fieldPathElements":protected]=>
  array(4) {
    [0]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#123 (2) {
      ["field":protected]=>
      string(10) "operations"
      ["index":protected]=>
      int(0)
    }
    [1]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#120 (2) {
      ["field":protected]=>
      string(7) "operand"
      ["index":protected]=>
      NULL
    }
    [2]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#121 (2) {
      ["field":protected]=>
      string(2) "ad"
      ["index":protected]=>
      NULL
    }
    [3]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#130 (2) {
      ["field":protected]=>
      string(13) "headlinePart2"
      ["index":protected]=>
      NULL
    }
  }
  ["trigger":protected]=>
  string(0) ""
  ["errorString":protected]=>
  string(33) "PolicyViolationError.POLICY_ERROR"
  ["ApiErrorType":protected]=>
  string(20) "PolicyViolationError"
  ["parameterMap":"Google\AdsApi\AdWords\v201705\cm\ApiError":private]=>
  array(1) {
    ["ApiError.Type"]=>
    string(12) "ApiErrorType"
  }
}

object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationError)#132 (12) {
  ["key":protected]=>
  object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationKey)#142 (2) {
    ["policyName":protected]=>
    string(7) "weapons"
    ["violatingText":protected]=>
    string(7) "bazooka"
  }
  ["externalPolicyName":protected]=>
  string(14) "Google AdWords"
  ["externalPolicyUrl":protected]=>
  string(0) ""
  ["externalPolicyDescription":protected]=>
  string(96) "こ広まはーーは掲前審をけ必がりす"
  ["isExemptable":protected]=>
  bool(true)
  ["violatingParts":protected]=>
  array(1) {
    [0]=>
    object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationErrorPart)#134 (2) {
      ["index":protected]=>
      int(3)
      ["length":protected]=>
      int(7)
    }
  }
  ["fieldPath":protected]=>
  string(34) "operations[0].operand.ad.finalUrls"
  ["fieldPathElements":protected]=>
  array(4) {
    [0]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#133 (2) {
      ["field":protected]=>
      string(10) "operations"
      ["index":protected]=>
      int(0)
    }
    [1]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#147 (2) {
      ["field":protected]=>
      string(7) "operand"
      ["index":protected]=>
      NULL
    }
    [2]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#145 (2) {
      ["field":protected]=>
      string(2) "ad"
      ["index":protected]=>
      NULL
    }
    [3]=>
    object(Google\AdsApi\AdWords\v201705\cm\FieldPathElement)#148 (2) {
      ["field":protected]=>
      string(9) "finalUrls"
      ["index":protected]=>
      NULL
    }
  }
  ["trigger":protected]=>
  string(0) ""
  ["errorString":protected]=>
  string(33) "PolicyViolationError.POLICY_ERROR"
  ["ApiErrorType":protected]=>
  string(20) "PolicyViolationError"
  ["parameterMap":"Google\AdsApi\AdWords\v201705\cm\ApiError":private]=>
  array(1) {
    ["ApiError.Type"]=>
    string(12) "ApiErrorType"
  }
}




2017年9月15日金曜日 23時10分48秒 UTC+9 Nadine Sundquist (AdWords API Team):

Nadine Sundquist (AdWords API Team)

unread,
Sep 18, 2017, 6:35:53 PM9/18/17
to AdWords API Forum
Hello,

I want to make sure I understand your question. I see that you sent me the response with each error. Each error says that it is exemptable. Are you saying that the code example is only sending one of the exemptions, and it is not sending all 3 of them?

Regards,
Nadine, AdWords API Team

Hideichi Saito

unread,
Sep 18, 2017, 8:34:34 PM9/18/17
to AdWords API Forum
thank you for your reply.

Yes. Only one exception request is sent.

As shown in var_dump ($ error);
PolicyViolationError.isExemptable, is true.

I will attach the contents of $ operations.
line:129. Set up and get var_dump ($operations);

array(1) {
  [0]=>
  object(Google\AdsApi\AdWords\v201705\cm\AdGroupAdOperation)#117 (5) {
    ["operand":protected]=>
    object(Google\AdsApi\AdWords\v201705\cm\AdGroupAd)#116 (8) {
      ["adGroupId":protected]=>
      string(11) "47899933378"
      ["ad":protected]=>
      object(Google\AdsApi\AdWords\v201705\cm\ExpandedTextAd)#113 (18) {
        ["headlinePart1":protected]=>
        string(44) "高力レリーPRバー"
        ["headlinePart2":protected]=>
        string(26) "WEB広も時稿!"
        ["description":protected]=>
        string(104) "無でレリー配&WEB広出新ースPRバー」をリス
        ["path1":protected]=>
        NULL
        ["path2":protected]=>
        NULL
        ["id":protected]=>
        NULL
        ["url":protected]=>
        NULL
        ["displayUrl":protected]=>
        NULL
        ["finalUrls":protected]=>
        array(1) {
          [0]=>
          string(28) "https://pr-bazooka.com/about"
        }
        ["finalMobileUrls":protected]=>
        NULL
        ["finalAppUrls":protected]=>
        NULL
        ["trackingUrlTemplate":protected]=>
        NULL
        ["urlCustomParameters":protected]=>
        NULL
        ["urlData":protected]=>
        NULL
        ["type":protected]=>
        NULL
        ["devicePreference":protected]=>
        NULL
        ["AdType":protected]=>
        NULL
        ["parameterMap":"Google\AdsApi\AdWords\v201705\cm\Ad":private]=>
        array(1) {
          ["Ad.Type"]=>
          string(6) "AdType"
        }
      }
      ["status":protected]=>
      NULL
      ["policySummary":protected]=>
      NULL
      ["labels":protected]=>
      NULL
      ["baseCampaignId":protected]=>
      NULL
      ["baseAdGroupId":protected]=>
      NULL
      ["forwardCompatibilityMap":protected]=>
      NULL
    }
    ["exemptionRequests":protected]=>
    array(1) {
      [0]=>
      object(Google\AdsApi\AdWords\v201705\cm\ExemptionRequest)#150 (1) {
        ["key":protected]=>
        object(Google\AdsApi\AdWords\v201705\cm\PolicyViolationKey)#142 (2) {
          ["policyName":protected]=>
          string(7) "weapons"
          ["violatingText":protected]=>
          string(7) "bazooka"
        }
      }
    }
    ["operator":protected]=>
    string(3) "ADD"
    ["OperationType":protected]=>
    NULL
    ["parameterMap":"Google\AdsApi\AdWords\v201705\cm\Operation":private]=>
    array(1) {
      ["Operation.Type"]=>
      string(13) "OperationType"
    }
  }
}




2017年9月19日火曜日 7時35分53秒 UTC+9 Nadine Sundquist (AdWords API Team):

Nadine Sundquist (AdWords API Team)

unread,
Sep 19, 2017, 3:22:57 PM9/19/17
to AdWords API Forum
Greetings!

Thanks for clarifying all of this. That does make sense. I'm not a PHP expert, but it does look like the code is only including the first exemption request for each ad. I'm getting in touch with our PHP client library owner to verify that this is the case. I'll get back to you when I get an answer.

Regards,
Nadine, AdWords API Team

Hideichi Saito

unread,
Sep 19, 2017, 6:47:46 PM9/19/17
to AdWords API Forum
Thank you for your reply.
Thank you for your attentive response.

I will also test it repeatedly.


2017年9月20日水曜日 4時22分57秒 UTC+9 Nadine Sundquist (AdWords API Team):

Nadine Sundquist (AdWords API Team)

unread,
Sep 20, 2017, 9:36:59 AM9/20/17
to AdWords API Forum
Hi,

I was able to confirm that you are totally correct. The example does only go through the first exemption request. You'll have to modify the code to include every exemption request. Right now, there is a line that says:

$operation->setExemptionRequests(
                [new ExemptionRequest($error->getKey())]);

That line of code only sets one exemption request per operation. In your case, you need to pass multiple exemption requests by iterating over all the exemption requests for that ad. In the meantime, we're looking at fixing the example. It may take time to push a fix, so I would suggest modifying your code. Thanks for pointing out the issue with our example!

Regards,
Nadine, AdWords API Team

Hideichi Saito

unread,
Sep 22, 2017, 2:20:58 AM9/22/17
to AdWords API Forum
Thank you for your reply.

Anyway, I will try to avoid the problem in a different way.
Thank you for your response.


2017年9月20日水曜日 22時36分59秒 UTC+9 Nadine Sundquist (AdWords API Team):
Reply all
Reply to author
Forward
0 new messages