Hi, To get more information about your error, I suggest you enable logging in your client library by following this guide <https://github.com/googleads/googleads-python-lib/blob/master/README.md#how-do-i-log-soap-interactions>. After enabling logging, you could rerun the service and investigate the logs generated. Also, could you provide the complete SOAP request and response logs I could investigate further on my end? You may reply via *Reply privately to author*.
According to this guide <https://developers.google.com/adwords/api/docs/guides/partial-failure>, the batch jobs automatically sets the partialFailure tag to TRUE. This means that when an operation fails it returns the error at the end without disrupting the other operations. Regards, Dannison AdWords API Team On Wednesday, August 29, 2018 at 11:44:04 AM UTC+8, adwords-t...@fortnine.ca wrote: > > Hello, > > I'm batch uploading 1000s of ads. I'm running into a policy error: > > 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", line 75, in <module> > campaign_batch_upload.PrintResponse(batch_job_helper, response) > File "/Users/****/Projects/adwords-management/campaign_batch_upload.py", > line 302, in PrintResponse > print ('\treason=%s' % data['errorList']['errors']['reason']) > KeyError: 'reason' > > > I have two questions: > > 1) How can I get more information on this error (ex: what headline text is > causing it)? > 2) Can I make the batch process skip the failed opperation? > -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ 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 adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com 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 adwords-api+unsubscr...@googlegroups.com. 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/ec63edbb-71b8-4e5f-b014-3a3a084339e3%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.