Keyword PolicyViolationDetails in BatchJobService

516 views
Skip to first unread message

ichib...@gmail.com

unread,
Nov 24, 2021, 7:54:32 AM11/24/21
to AdWords API and Google Ads API Forum
If we create keywords using BatchJobService we got only information about policy violation, without PolicyViolationKey, so we cant send Policy Exemption Requests.
Batch job result contains something like this:
status {
  code: 3
  message: "A policy was violated. See PolicyViolationDetails for more detail., at mutate_operations[0].ad_group_criterion_operation.create.keyword.text"
  details {
    value: "\n\251\001\n\003\310\006\002\022BA policy was violated. See PolicyViolationDetails for more detail.\032\010*\006plan b\"T\022\025\n\021mutate_operations\030\000\022\036\n\034ad_group_criterion_operation\022\010\n\006create\022\t\n\007keyword\022\006\n\004text"
  }
}
How to know PolicyViolationDetails for this batch operation?

Google Ads API Forum Advisor

unread,
Nov 25, 2021, 1:22:33 AM11/25/21
to ichib...@gmail.com, adwor...@googlegroups.com
Hi Ichiba,

Thanks for posting your concern.

You may try to enable the logging of the API transactions for your client library by following one of the instructions below so that you can see the detailed API responses on your console:
Let me know how it goes after trying the provided suggestion.

Regards,

Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Google Logo
Ernie John Blanca Tacata
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Rvu4j:ref

ichib...@gmail.com

unread,
Nov 26, 2021, 12:43:47 PM11/26/21
to AdWords API and Google Ads API Forum
After enabled logging with level DEBUG nothing new was in batch result, only same response, "First error: A policy was violated. See PolicyViolationDetails for more detail., at mutate_operations[1].ad_group_criterion_operation.create.keyword.text"

четверг, 25 ноября 2021 г. в 09:22:33 UTC+3, adsapi:

Google Ads API Forum Advisor

unread,
Nov 29, 2021, 9:50:27 AM11/29/21
to ichib...@gmail.com, adwor...@googlegroups.com

Hi Ichiba,

This is Yasar and I work with Ernie. Let me assist you with this.

For us to investigate the issue further, we would need complete logs so that we can proceed with the further investigation since provided one is incomplete. Could you please provide the complete request and response logs, with the batch job ID that failed, via the Reply privately to author option?



Regards,
Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Rvu4j:ref

Google Ads API Forum Advisor

unread,
Dec 1, 2021, 5:07:05 PM12/1/21
to ichib...@gmail.com, adwor...@googlegroups.com
Hi Ichiba,

Thank you for privately sending us the log. I raised your request for adding the PolicyViolationKey in the keyword in a batchJob with my team. This request is subject to review. You may monitor our blog for an update.


Reminder: Share your feedback about the Google Ads (AdWords) API! Take the 2021 Google Ads API and AdWords API Annual Survey
 
Regards,
Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Rvu4j:ref

stefano...@webrepublic.ch

unread,
Mar 11, 2022, 6:47:01 AM3/11/22
to Google Ads API and AdWords API Forum
Hi Aryeh,

Is there an update about this? Unfortunately, as of v10 PolicyViolationKeys are still not returned by the batch job.

Cheers

Google Ads API Forum Advisor

unread,
Mar 14, 2022, 3:51:01 AM3/14/22
to stefano...@webrepublic.ch, adwor...@googlegroups.com

Hello,

Thank you for reaching out to us.

I'm afraid that there is still no update for this. Please note that the raised feature request is still subject for review and there is no guarantee if this will be supported in the API. That said, we recommend that you keep an eye to our blog for any updates/new releases instead.

Regards,

Google Logo
Mark Kevin
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Rvu4j:ref

Dawid Lisiewicz

unread,
Sep 30, 2022, 2:38:30 AM9/30/22
to Google Ads API and AdWords API Forum
Hi,

I have exact same problem. I trying to add some keywords to ad group and I got error:
A policy was violated. See PolicyViolationDetails for more detail., at mutate_operations[2215].ad_group_criterion_operation.create.keyword.text

But searching in objects / raw response I don`t see PolicyViolationDetails.
Any update?

This object is required to handle this error.

Please see example code:

Regards

Google Ads API Forum Advisor

unread,
Sep 30, 2022, 11:40:10 AM9/30/22
to lisi...@gmail.com, adwor...@googlegroups.com

Hi Dawid,

Thanks for posting your concern on this forum thread.

My team already raised a request for adding the PolicyViolationKey in the keyword while using batchJob service. As of now, there is no definite timeline that will be supported in the Google Ads API. For now, you may keep eye on our blog for an update when it is supported in the future.

Regards,

Google Logo
Yasar
Google Ads API Team
 


ref:_00D1U1174p._5004Q2Rvu4j:ref

Noah Magram

unread,
May 8, 2023, 9:34:49 AM5/8/23
to Google Ads API and AdWords API Forum
Any update to this issue?  We are also creating keywords and ads using the batchJob service, as is recommended by the official Google Ads documentation, and missing PolicyViolationDetails on the responses is a problem.

Best,

-Noah

Google Ads API Forum Advisor

unread,
May 8, 2023, 1:26:46 PM5/8/23
to noah....@renable.com, adwor...@googlegroups.com

Hello Noah,

Upon checking adding the PolicyViolationKey in the keyword while using batchJob service is still not available in the Google Ads API. There is no definite timeline that we can provide on when this feature will be available. For now, you may keep an eye on our blog(https://ads-developers.googleblog.com/search/label/google_ads_api) for an update when it is supported in the future.

Regards,

Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2Rvu4j:ref

Dawid Lisiewicz

unread,
Nov 8, 2023, 6:04:36 AM11/8/23
to Google Ads API and AdWords API Forum
Hi,

Any update to this case?

Google Ads API Forum Advisor

unread,
Nov 8, 2023, 8:42:29 AM11/8/23
to lisi...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Your concern is still under investigation and we have no updates at the moment. However, allow me to follow up on this with the rest of the team. Thank you for your patience.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02Rvu4j:ref"

Thanks,

 
Google Logo Google Ads API Team


Dawid Lisiewicz

unread,
Nov 8, 2023, 9:29:22 AM11/8/23
to Google Ads API Forum Advisor, adwor...@googlegroups.com
Sorry, but this case is from one year ago!
We need this to automate exceptions, my colleagues do it manually because of the lack of this object.

Please, fix this ASAP.

Google Ads API Forum Advisor

unread,
Nov 8, 2023, 6:05:09 PM11/8/23
to lisi...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for getting back to us.

Kindly note that, we do not have a specific time frame for the availability of this feature at the moment. However, please be assured that our team is actively working on it. So, I cannot provide a scheduled timeline for its availability in the API. I would recommend you to follow our Blog Post and Release Notes for future updates. Thank you for your understanding and patience.

Tim Chen

unread,
Aug 5, 2024, 10:50:50 PM8/5/24
to Google Ads API and AdWords API Forum
Hello, Advisor.

This event has any update?

I'm using the .NET SDK, v17 API, but PolicyViolationDetails still return is null..

Thanks!

Google Ads API Forum Advisor

unread,
Aug 6, 2024, 5:06:20 AM8/6/24
to timch...@gmail.com, adwor...@googlegroups.com
Hi,

Kindly note that we cannot provide a scheduled timeline for the availability of this feature in Google Ads API. As suggested earlier, I would recommend you please follow our Release Notes and Blog Post for future updates.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02Rvu4j:ref" (ADR-00086862)


Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages