I using the .Net SDK batch job to create ads, and I frequency 
encounter PolicyViolationError.
I want to know  PolicyViolationDetails to avoid  PolicyViolationError, 
but GoogleAdsError.Details allway returns null, hasn't details, so I can't 
avoid this error.
How can i see PolicyViolationDetails?

Response:

{
  "OperationIndex": 307,
  "Status": {
    "Code": 3,
    "Message": "A policy was violated. See PolicyViolationDetails for more 
detail., at 
mutate_operations[307].ad_group_criterion_operation.create.keyword.text",
    "Details": [
      {
        "TypeUrl": 
"type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
        "Value": [ 10, 181, 1, 10, 3, 200, 6, 2, 18, 66, 65, 32, 112, 111, 
108, 105, 99, 121, 32, 119, 97, 115, 32, 118, 105, 111, 108, 97, 116, 101, 
100, 46, 32, 83, 101, 101, 32, 80, 111, 108, 105, 99, 121, 86, 105, 111, 
108, 97, 116, 105, 111, 110, 68, 101, 116, 97, 105, 108, 115, 32, 102, 111, 
114, 32, 109, 111, 114, 101, 32, 100, 101, 116, 97, 105, 108, 46, 26, 19, 
42, 17, 114, 117, 109, 109, 121, 32, 111, 110, 108, 105, 110, 101, 32, 102, 
114, 101, 101, 34, 85, 18, 22, 10, 17, 109, 117, 116, 97, 116, 101, 95, 
111, 112, 101, 114, 97, 116, 105, 111, 110, 115, 24, 179, 2, 18, 30, 10, 
28, 97, 100, 95, 103, 114, 111, 117, 112, 95, 99, 114, 105, 116, 101, 114, 
105, 111, 110, 95, 111, 112, 101, 114, 97, 116, 105, 111, 110, 18, 8, 10, 
6, 99, 114, 101, 97, 116, 101, 18, 9, 10, 7, 107, 101, 121, 119, 111, 114, 
100, 18, 6, 10, 4, 116, 101, 120, 116 ]
      }
    ]
  },
  "IsFailed": true,
  "Failure": {
    "Errors": [
      {
        "ErrorCode": {
          "ErrorCodeCase": "PolicyViolationError",
          "PolicyViolationError": "PolicyError",
          "HasPolicyViolationError": true
        },
        "Message": "A policy was violated. See PolicyViolationDetails for 
more detail.",
        "Trigger": {
          "ValueCase": "StringValue",
          "StringValue": "rummy online free",
          "HasStringValue": true
        },
        "Location": {
          "FieldPathElements": [
            {
              "FieldName": "mutate_operations",
              "Index": 307,
              "HasIndex": true
            },
            { "FieldName": "ad_group_criterion_operation" },
            { "FieldName": "create" },
            { "FieldName": "keyword" },
            { "FieldName": "text" }
          ]
        },
        "Details": null,
        "CombinedFieldPath": 
"mutate_operations[307].ad_group_criterion_operation.create.keyword.text"
      }
    ]
  }
}

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/53b5d17a-1028-441a-8b2f-6077a7f6eb12n%40googlegroups.com.

Reply via email to