Re: PolicyViolationError Troubleshooting during batch uploads

2018-09-18 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Neil, Could you please share the logs for the batch job along with the batch job id for failed and passed requests so that I can troubleshoot the issue? You can chose the 'Reply privately to author' option while responding. Thanks, Milind, AdWords API Team -- --

Re: PolicyViolationError Troubleshooting during batch uploads

2018-09-18 Thread Nellle Rickchards
For some reason the responses in PrintResponse() would causes errors making the entire batch upload stop. I commented out the print statements and it runs fine, however it's not ideal as I no longer get helpful error messages. On Thursday, September 6, 2018 at 3:43:42 PM UTC-4, Milind

Re: PolicyViolationError Troubleshooting during batch uploads

2018-09-06 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Neil, In the batch job, the operations that are not dependent on each other should not be impacted by the failure(policy error) of one operation. In your batch job set the partialFailure tag to TRUE. This means that when an operation fails it returns the error at the end without disrupting

Re: PolicyViolationError Troubleshooting during batch uploads

2018-09-05 Thread Nellle Rickchards
Sounds good! Do you know if I can update the script to continue to the next Operation after a policy error? Currently the policy errors are causing the batch upload to completely stop. On Thursday, August 30, 2018 at 5:26:13 PM UTC-4, Milind Sankeshware (AdWords API Team) wrote: > > Hi Nellle,

Re: PolicyViolationError Troubleshooting during batch uploads

2018-08-30 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Nellle, You will need to identify the Ads that failed creation in the BatchJob's response. Once you know the specific Ads, you can have a logic to validate the isExemptable flag as in this code

Re: PolicyViolationError Troubleshooting during batch uploads

2018-08-30 Thread Nellle Rickchards
Thanks! I figured out the problem. Our ad is for motorcycle exhausts and pipes. "pipes" is triggered as advertising tobacco. The issue is I can't figure out how to set isExempted = True in a batch upload. The documentation using the AdGroupService. Here is my code: if create_ads: #

Re: PolicyViolationError Troubleshooting during batch uploads

2018-08-28 Thread 'Milind Sankeshware (AdWords API Team)' via AdWords API and Google Ads API Forum
Hi Nellle, In AdWords API, you will be able to submit policy exemption requests for those policy violations which has isExemptable as true. Please refer to this section of guide for more details and code samples. If

PolicyViolationError Troubleshooting during batch uploads

2018-08-28 Thread Nellle Rickchards
Hello, I'm batch uploading 1000s of adds. I'm running into this failure: Operation 221 - FAILURE: errorType=PolicyViolationError trigger=None errorString=AdPolicyError.POLICY_ERROR fieldPath=operations[221].operand.ad.headlinePart1 Traceback (most recent call last): File "create-text-ads.py",