INVALID_CUSTOMER_FOR_CLICK

258 views
Skip to first unread message

outleads

unread,
Jun 19, 2023, 10:52:43 PM6/19/23
to Google Ads API and AdWords API Forum
We are getting the above-referenced error when attempting to upload conversions to an account that's managed by a MCC account. We're using the MCC for the login-customer-id field and the ads account everywhere else. The account managing conversions seems to be the child ads account (not the MCC).

An example is request ID WzkP8QkfUSRuISwTFri24A with the following header and payload:

POST /v13/customers/{child account id}/:uploadClickConversions HTTP/1.1
Host: googleads.googleapis.com
Accept: */*
Authorization: Bearer {auth token}
Content-Type: application/json
developer-token: {dev token}
login-customer-id: {mcc account id}

{"partialFailure":true,"customer_id":"{child account id}","conversions":[{"gclid":"EAIaIQobChMI64SS2K_A_wIVFI_ICh31mgpTEAAYASAAEgKpSPD_BwE","conversion_date_time":"2023-06-19 13:12:37-00:00","conversion_action":"customers\/{child account id}\/conversionActions\/1034469558"},{"gclid":"EAIaIQobChMI64SS2K_A_wIVFI_ICh31mgpTEAAYASAAEgKpSPD_BwE","conversion_date_time":"2023-06-19 13:12:37-00:00","conversion_action":"customers\/{child account id}\/conversionActions\/1034469033"}]}


Here is the response received:

{
  "partialFailureError": {
    "code": 3,
    "message": "Multiple errors in ‘details’. First error: The click from the imported event is associated with a different Google Ads account. Make sure you're importing to the correct account., at conversions[0].gclid",
    "details": [
      {
        "@type": "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure",
        "errors": [
          {
            "errorCode": {
              "conversionUploadError": "INVALID_CUSTOMER_FOR_CLICK"
            },
            "message": "The click from the imported event is associated with a different Google Ads account. Make sure you're importing to the correct account.",
            "trigger": {
              "stringValue": "EAIaIQobChMI64SS2K_A_wIVFI_ICh31mgpTEAAYASAAEgKpSPD_BwE"
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "conversions",
                  "index": 0
                },
                {
                  "fieldName": "gclid"
                }
              ]
            }
          },
          {
            "errorCode": {
              "conversionUploadError": "INVALID_CUSTOMER_FOR_CLICK"
            },
            "message": "The click from the imported event is associated with a different Google Ads account. Make sure you're importing to the correct account.",
            "trigger": {
              "stringValue": "EAIaIQobChMI64SS2K_A_wIVFI_ICh31mgpTEAAYASAAEgKpSPD_BwE"
            },
            "location": {
              "fieldPathElements": [
                {
                  "fieldName": "conversions",
                  "index": 1
                },
                {
                  "fieldName": "gclid"
                }
              ]
            }
          }
        ]
      }
    ]
  },
  "results": [
    {},
    {}
  ]
}

outleads

unread,
Jun 20, 2023, 11:56:54 PM6/20/23
to Google Ads API and AdWords API Forum
Just to add on to this, we are getting the same error when trying to upload conversions to conversion_actions in this account that have the owner_customer set to the child account, as well as when trying to upload the conversions to conversion_actions that have the owner_customer set to the MCC account.

Google Ads API Forum Advisor

unread,
Jun 21, 2023, 11:51:36 AM6/21/23
to in...@outleads.com, adwor...@googlegroups.com

Hi,

Thanks for reaching out to the Google Ads API Forum.

It appears that you have received an INVALID_CUSTOMER_FOR_CLICK error. This error indicates that the click associated with the given identifier or iOS URL parameter isn't from the account where conversion tracking is set up. Kindly note that for uploading Click conversions in the Google Ads API, you would need to set customer_id of the UploadClickConversionsRequest to the customer ID of the effective conversion tracking account of the click's Google Ads account. Otherwise, the conversion upload will result in a ConversionUploadError.INVALID_CUSTOMER_FOR_CLICK error.

You can check your account's conversion tracking setup and confirm conversion tracking is enabled by issuing the following query with GoogleAdsService.searchStream:

First, determine if the account is using cross-account conversion tracking by comparing the customer.conversion_tracking_setting.google_ads_conversion_customer to the customer.resource_name. I’ve tried on end below GAQL:

 

SELECT

  customer.conversion_tracking_setting.conversion_tracking_id,

  customer.conversion_tracking_setting.conversion_tracking_status,

  customer.conversion_tracking_setting.cross_account_conversion_tracking_id,

  customer.conversion_tracking_setting.google_ads_conversion_customer

FROM customer

You may need to check the account reflected in google_ads_conversion_customer that manages conversions for the account. That said, you may need to upload to the correct account to avoid said error.. You may give it a try, and let me know how this goes on your end.

If API error persists, you may provide us with the complete logs in the format of the request and response logs along with the request-id without redacting account Id's, as seen in their respective links.

Please send these logs via reply privately to author option. 

This message is in relation to case "ref:_00D1U1174p._5004Q2mVPKb:ref"

Thanks,
 
Google Logo Google Ads API Team

 



Message has been deleted

outleads

unread,
Jun 22, 2023, 11:20:12 AM6/22/23
to Google Ads API and AdWords API Forum
Yes, we did try this query previously, but it looks like the client was in the middle of switching over to cross-account conversion tracking so now that those settings changes are completed, it worked as expected.

Thank you!

Google Ads API Forum Advisor

unread,
Jun 22, 2023, 11:40:46 AM6/22/23
to in...@outleads.com, adwor...@googlegroups.com

Hi there,

Thank you for the updates, and letting us know that it is working as expected now. Feel free to reach us back by opening a new forum thread / email for any additional questions. 

Reply all
Reply to author
Forward
0 new messages