ConversionActions REST API endpoint not accepting valid category value

28 views
Skip to first unread message

Evan Bertz

unread,
Oct 15, 2024, 12:45:31 PM10/15/24
to Google Ads API and AdWords API Forum
Attempting to update and existing conversion_action (https://developers.google.com/google-ads/api/rest/reference/rest/v17/customers.conversionActions/mutate), I passed the category value "QUALIFIED_LEAD" which is valid based on the enum
https://developers.google.com/google-ads/api/fields/v17/conversion_action#conversion_action.category

request:

{"operations":[{"update":{"resourceName":"customers/<REDACTED>/conversionActions/<REDACTED>","id":"<REDACTED>","name":"Calls (web page calls)","type":"UPLOAD_CLICKS","primaryForGoal":false,"category":"QUALIFIED_LEAD","clickThroughLookbackWindowDays":"7","valueSettings":{"defaultValue":0,"defaultCurrencyCode":"USD","alwaysUseDefaultValue":false},"countingType":"ONE_PER_CLICK","attributionModelSettings":{"attributionModel":"GOOGLE_SEARCH_ATTRIBUTION_DATA_DRIVEN"}},"updateMask":"name,status,primary_for_goal,category,click_through_lookback_window_days,value_settings.default_value,value_settings.default_currency_code,counting_type,attribution_model_settings.attribution_model,primary_for_goal"}],"partialFailure":true,"validateOnly":false,"responseContentType":"MUTABLE_RESOURCE"}


response:
"partialFailureError": {
    "code": 3,
    "message": "The field's value is invalid., at operations[0].update.category",
    "details": [
      {
        "@type": "type.googleapis.com/google.ads.googleads.v17.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "fieldError": "INVALID_VALUE"
            },
            "message": "The field's value is invalid.",
            "trigger": {
              "int64Value": "28"
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "operations",
                  "index": 0
                },
                {
                  "fieldName": "update"
                },
                {
                  "fieldName": "category"
                }
              ]
            }
          }
        ],
        "requestId": ""
      }
    ]
  }

Google Ads API Forum Advisor

unread,
Oct 15, 2024, 4:48:55 PM10/15/24
to adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

From the provided information, I see that the request headers and request id are missing. Could you please provide us with the complete API logs (request and response logs with request-id and request header) generated at your end. This would help us investigate this issue further.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGeau:ref" (ADR-00271821)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages