Regarding Google Adwords API Issue

27 views
Skip to first unread message

Manek Tech

unread,
Aug 16, 2017, 10:30:12 AM8/16/17
to AdWords API Forum
Hello Google,

I have created one Google Adwords API through which I want to upload keyword in my account using batch uploading, but when i using this then some how getting a policy violation error. can you please suggest me for how can i upload keyword with for loop without break the script.
I means when i pass the 1000 bunch of keyword in API, at time getting a error and stop the script.

So i kindly request to you for please give me proper solution for same.

Regards,
Dev.

Sreelakshmi Sasidharan (AdWords API Team)

unread,
Aug 16, 2017, 11:56:54 AM8/16/17
to AdWords API Forum
Hi Dev, 

You could refer to this guide which explains how to handle policy errors programatically. The linked guide also includes complete code samples in various programming languages that you can refer to. The samples demonstrates how to deal with policy violation errors and resubmitting the ones which are exemptable along with the policy exemption requests.  If you are using BatchJobService to do this, a failing operation should not impact other operations. If you are not using BatchJobService, you could set the PartialFailure to true to ensure that one or more failures are not impacting other operations in the batch. 

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