Missing PolicyFindingError details in BatchJobResult

60 views
Skip to first unread message

Vincent Falduto

unread,
Nov 23, 2021, 5:10:23 AM11/23/21
to AdWords API and Google Ads API Forum
Hi, 

I have an issue with BatchJob from V8/V9 Google Ads API. 
When I read / serialize error from Ads. I don't have consistent result between Mutate and Batch operation.

The batch operation missing the policyFindingDetails part. See below 


Mutate call 
{
"errorCode": {
"policyFindingError": "POLICY_FINDING"
},
"message": "The resource has been disapproved since the policy summary includes policy topics of type PROHIBITED.",
"location": {
"fieldPathElements": [
{
"fieldName": "mutate_operations",
"index": 1575
},
{
"fieldName": "ad_group_ad_operation"
},
{
"fieldName": "create"
},
{
"fieldName": "ad"
}
]
}
}

Batch call 
{
"errorCode": {
"policyFindingError": "POLICY_FINDING"
},
"message": "The resource has been disapproved since the policy summary includes policy topics of type PROHIBITED.",
"location": {
"fieldPathElements": [
{
"fieldName": "mutate_operations",
"index": 0
},
{
"fieldName": "ad_group_ad_operation"
},
{
"fieldName": "create"
},
{
"fieldName": "ad"
}
]
},
"details": {
"policyFindingDetails": {
"policyTopicEntries": [
{
"topic": "SYMBOLS",
"type": "PROHIBITED",
"evidences": [
{
"textList": {
"texts": [
"("
]
}
}
]
}
]
}
}
}

Google Ads API Forum Advisor

unread,
Nov 23, 2021, 3:10:49 PM11/23/21
to vin...@kampn.com, adwor...@googlegroups.com
Hi Vincent,

Thanks for reaching out. Can you please provide us with the complete request and response for each call so we can have a closer look?

Thanks,
Matt
Google Ads API Team


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


ref:_00D1U1174p._5004Q2RvX87:ref

Vincent Falduto

unread,
Nov 29, 2021, 5:21:01 AM11/29/21
to AdWords API and Google Ads API Forum
You can found an exemple in the attachment. 
scratch_16.php

Google Ads API Forum Advisor

unread,
Nov 30, 2021, 4:37:56 PM11/30/21
to vin...@kampn.com, adwor...@googlegroups.com
Hi Vincent,

I can see you sent us the PHP code that you are using. However, if you can provide us with the request and response logs, including the request ID, this will be more helpful to our investigation. You can find more information about logging with the PHP client library here.

Regards,
Reply all
Reply to author
Forward
0 new messages