Issues of upload click conversion

191 views
Skip to first unread message

Eric Xu

unread,
Apr 10, 2024, 9:04:32 AM4/10/24
to Google Ads API and AdWords API Forum
hello teams,
when i try to upload click conversion actions, i meet this err:

[2024-04-10 20:59:27,824 - DEBUG] Making request: POST https://accounts.google.com/o/oauth2/token
[2024-04-10 20:59:27,829 - DEBUG] Starting new HTTPS connection (1): accounts.google.com:443
[2024-04-10 20:59:28,831 - DEBUG] https://accounts.google.com:443 "POST /o/oauth2/token HTTP/1.1" 200 None
[2024-04-10 20:59:34,166 - DEBUG] Request
-------
Method: /google.ads.googleads.v16.services.ConversionUploadService/UploadClickConversions
Host: googleads.googleapis.com
Headers: {
  "developer-token": "REDACTED",
  "login-customer-id": "7514302876",
  "x-goog-api-client": "gl-python/3.9.6 grpc/1.62.0 gax/2.17.1 gccl/23.1.0 pb/4.25.3",
  "x-goog-request-params": "customer_id=7514302876"
}
Request: customer_id: "7514302876"
conversions {
  gclid: "Cj0KCQjwztOwBhD7ARIsAPDKnkA42JT5O4jyHsolPFSLFOfSdg-gHjcXs97-cvwMGgL9XCp1y6vHuWcaAmW7EALw_wcB"
  conversion_action: "customers/7514302876/conversionActions/6731257876"
  conversion_date_time: "2024-04-10 15:16:49+08:00"
  conversion_value: 49
  currency_code: "INR"
  user_identifiers {
    hashed_phone_number: "3a11a043029a99b5c59d8156967546236465f776ee731374af8e48d9a1888cfd"
  }
}
partial_failure: true


Response
-------
Headers: {
  "alt-svc": "h3=\":443\"; ma=2592000,h3-29=\":443\"; ma=2592000",
  "content-disposition": "attachment",
  "date": "Wed, 10 Apr 2024 12:59:33 GMT",
  "request-id": "1BhFspuF46pwXKHB-3keOA"
}
Response: partial_failure_error {
  code: 3
  message: "The conversion action specified in the upload request isn\'t set up for uploading conversions., at conversions[0].conversion_action"
  details {
    type_url: "type.googleapis.com/google.ads.googleads.v16.errors.GoogleAdsFailure"
    value: "\n\301\001\n\003\370\0066\022]The conversion action specified in the upload request isn\'t set up for uploading conversions.\0323*1customers/7514302876/conversionActions/6731257876\"&\022\017\n\013conversions\030\000\022\023\n\021conversion_action\022\0261BhFspuF46pwXKHB-3keOA"
  }
}
results {
}
job_id: 3724097584619984816


[2024-04-10 20:59:34,167 - INFO] Request made: ClientCustomerId: 7514302876, Host: googleads.googleapis.com, Method: /google.ads.googleads.v16.services.ConversionUploadService/UploadClickConversions, RequestId: 1BhFspuF46pwXKHB-3keOA, IsFault: False, FaultMessage: None

Google Ads API Forum Advisor

unread,
Apr 12, 2024, 5:53:33 AM4/12/24
to eric...@gmail.com, adwor...@googlegroups.com
Hi,

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

I understand that you are encountering an "INVALID_CONVERSION_ACTION_TYPE" error, when trying to upload click conversion actions using the Google Ads API. Kindly note that this error indicates that the specified conversion action has a type that is not valid for uploading click conversions.

I have checked the conversion action type of this conversion action (6731257876), which you mentioned in the upload request and the conversion action type is "WEBPAGE". That's the reason you're getting this error. So make sure the ConversionAction specified in your upload request has the type "UPLOAD_CLICKS". 

You can check the conversion action type by running the below query and replace conversion_action.id with the specific conversion action id for which you want to check.

{
  "query": "SELECT conversion_action.id, conversion_action.name, conversion_action.type, conversion_action.status, conversion_action.owner_customer FROM conversion_action WHERE conversion_action.id = **********"
}

I hope this helps.

 

This message is in relation to case "ref:!00D1U01174p.!5004Q02tOzsY:ref" (ADR-00230663)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages