Error in uploadCallConversions with conversionAction

65 views
Skip to first unread message

Alexis S

unread,
Mar 6, 2023, 12:04:09 PM3/6/23
to Google Ads API and AdWords API Forum
Good afternoon We are querying the Google Ads API and calling the uploadCallConversions method like this: https://googleads.googleapis.com/v13/customers/MYCUSTOMERID:uploadCallConversions { "conversions": [ { "callerId": "+01234567890", "callStartDateTime": "2023-03-05 09:55:00 America/New_York", "conversionAction": "MYCONVERSIONNAME", "conversionDateTime": "2023-03-03 10:59:00 America/New_York", "conversionValue": 95.50, "currencyCode": "USD" } ], "partialFailure": true, "validateOnly": false } And it returns the following error: { "partialFailureError": { "code": 3, "message": "Resource name 'MYCONVERSIONNAME' is malformed: expected 'customers/MYCOSTUMERID/conversionActions/{ConversionType.conversion_type_id}'., at conversions[0].conversion_action", "details": [ { "@type": "type.googleapis.com/google.ads.googleads.v13.errors.GoogleAdsFailure", "errors": [ { "errorCode": { "requestError": "RESOURCE_NAME_MALFORMED" }, "message": "Resource name 'MYCONVERSIONNAME' is malformed: expected 'customers/MYCOSTUMERID/conversionActions/{ConversionType.conversion_type_id}'.", "trigger": { "stringValue": "MYCONVERSIONNAME" }, "location": { "fieldPathElements": [ { "fieldName": "conversions", "index": 0 }, { "fieldName": "conversion_action" } ] } } ] } ] }, "results": [ {} ] } We did the following query to get the conversion id and put it in place of the conversion name and we still get the same error: https://googleads.googleapis.com/v12/customers/MYCOSTUMERID/googleAds:search { "query": "SELECT conversion_action.name, conversion_action.id FROM conversion_action WHERE conversion_action.name='MYCONVERSIONNAME'" } Can you help me to solve it? Thanks!

Alexis S

unread,
Mar 6, 2023, 2:36:00 PM3/6/23
to Google Ads API and AdWords API Forum
Related to the conversion id API call, we want to confirm that the url customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}, need to be populated with this values

{
"results": [
{
"conversionAction": {
"resourceName": "customers/CUSTOM_ID/conversionActions/CONVERSION_ID",
"type": "UPLOAD_CALLS",
"id": "CONVERSION_ID",
"name": "CONVERSION_NAME"
}
}
],
"fieldMask": "conversionAction.name,conversionAction.id,conversionAction.type"
}

Where for ConversionType we use the value of type, in this case, UPLOAD_CALLS and for conversion_type_id, the value of id: CONVERSION_ID

Thanks!

Google Ads API Forum Advisor

unread,
Mar 6, 2023, 4:26:57 PM3/6/23
to alesc...@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for raising this concern to the Google Ads API support team.

Regarding your concern, it appears that you have encountered an error while uploading call conversions. Please note that conversion_action field is the resource name of the conversion action associated with this conversion. Note that the resource name consists of a customer id and a conversion action id. As per this guide, you can see that the resource_name's format is : customers/{customer_id}/conversionActions/{conversion_action_id}. I would recommend referring to our Conversion Management and Upload Call Conversions guides for more details.

Let un know if you have further questions.

Regards,
Google Logo Google Ads API Team


ref:_00D1U1174p._5004Q2jWUYy:ref

Alexis S

unread,
Mar 7, 2023, 9:57:06 AM3/7/23
to Google Ads API and AdWords API Forum
Thanks!
Reply all
Reply to author
Forward
0 new messages