Minor bugs in HandlePolicyViolationError example

13 views
Skip to first unread message

Tomas Rimkus

unread,
Mar 6, 2015, 4:38:44 AM3/6/15
to adwor...@googlegroups.com
At least the PHP example -> https://github.com/googleads/googleads-php-lib/blob/master/examples/AdWords/v201409/ErrorHandling/HandlePolicyViolationError.php has a couple of minor bugs:
* In case the first mutate request succeeds, the second one will be executed anyway because it's outside catch block
* There is no need to check the size of $operationIndicesToRemove before running foreach loop on line 108

Josh Radcliff (AdWords API Team)

unread,
Mar 6, 2015, 9:25:04 AM3/6/15
to adwor...@googlegroups.com
Hi,

Thanks for pointing this out. Could you open an issue on the PHP library's github page?

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