Thanks for your reply. Already done using setValidateOnly + my own code +
try/catch construction to avoid PHPscript stop.
The main thing for all who will use $session->setValidateOnly(true); in
their working scripts - don`t forget to use
$session->setValidateOnly(false); when you need to continue using working
parts of your script...
четверг, 20 декабря 2018 г., 11:09:00 UTC+2 пользователь Евгений Гардыш
написал:
>
> Hi.
>
> Sometimes I encountering PolicyViolationError during scripts work.
> For example:
> PHP Fatal error: Uncaught Google\AdsApi\AdWords\v201809\cm\ApiException:
> [PolicyViolationError{super=PolicyViolationError.POLICY_ERROR @ operations
> [3].operand.criterion.text; trigger:'в +капсулах', key=PolicyViolationKey{
> policyName=ru_biologically_active_additive,violatingText=в +капсулах},
> externalPolicyName=Google Реклама, externalPolicyUrl=,
> externalPolicyDescription=Перед показом это объявление или ключевое слово
> должно пройти проверку., isExemptable=true, violatingParts=[Part{index=6,
> length=11}]}, PolicyViolationError{super=PolicyViolationError.POLICY_ERROR
> @ operations[24].operand.criterion.text; trigger:'в +капсулах', key=
> PolicyViolationKey{policyName=ru_biologically_active_additive,
> violatingText=в +капсулах}, externalPolicyName=Google Реклама,
> externalPolicyUrl=, externalPolicyDescription=Перед показом это объявление
> или ключевое слово должно пройти пр in /adwords_api/vendor/googleads/
> googleads-php-lib/src/Google/AdsApi/Common/Util/Reflection.php on line 43
>
> Is there any way to test keywords beforehand to exclude such keywords to
> avoid this kind of errors?
>
> Can I download Policy keywords lists to check beforehand? Or is it exist
> some function to check keywords before main part of script starts?
>
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
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 and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
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/50e14814-963b-4ef0-a062-1259e1e52310%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.