Offline conversion upload malformed request

1,205 views
Skip to first unread message

Yuan Lu

unread,
Mar 15, 2021, 9:07:08 PM3/15/21
to AdWords API and Google Ads API Forum
Hello,

I'm currently using the python script here to upload offline conversions into my Google Ads account.

When I run the script with the following command I got this error:

`python ./examples/remarketing/upload_offline_conversion.py -c 2696858374 -a yuan-test -g Tester123#xyz -t '2021-03-15 12:32:45-08:00' -v 1`

partial_failure_error {

  code: 3

  message: "Resource name \'customers/2696858374/conversionActions/yuan-test\' is malformed: expected \'customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}\'., at conversions[0].conversion_action"

  details {

    type_url: "type.googleapis.com/google.ads.googleads.v6.errors.GoogleAdsFailure"

    value: "\n\213\002\n\002\010\004\022\250\001Resource name \'customers/2696858374/conversionActions/yuan-test\' is malformed: expected \'customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}\'.\0322*0customers/2696858374/conversionActions/yuan-test\"&\022\017\n\013conversions\030\000\022\023\n\021conversion_action"

  }


Here you can find my conversion event setup.

Do you mind taking a look and letting me know I could set it up correctlyl? Really appreciate your help!


Google Ads API Forum Advisor Prod

unread,
Mar 16, 2021, 12:31:57 PM3/16/21
to adwor...@googlegroups.com
Hello,

Can you please confirm if you are using an external attribution model for conversion tracking? Can you please provide us with the exact error message? 

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DvrtJ:ref

Yuan Lu

unread,
Mar 16, 2021, 4:03:54 PM3/16/21
to AdWords API and Google Ads API Forum
Hi Matt,

Thank you for the reply!

The model I use is the existing  Position-based model. I realized I passed in the wrong `conversion_action_id` for this request, that's why the request is malformed.

I still have some followup questions about what kind of conversion I should choose for offline (server-to-server) conversion upload:
  1. Let's say I want to use server-to-server API (upload_click_conversions) to report customer sign-up conversions, should I choose `website`, or `import -> Other data sources or CRMs -> Track conversions from clicks`?
  2. If we choose `import` as the kind, I can not find the `conversion_action_id` in the UI because there is not a `tag` section in this conversion's configuration. In this case, how can I find the `conversion_action_id` for this conversion?
Thanks in advance!

Best,
Yuan

Google Ads API Forum Advisor Prod

unread,
Mar 17, 2021, 3:53:24 AM3/17/21
to adwor...@googlegroups.com
Hi Yuan,

I work with Matt and allow me to assist you.

Listed here are the supported Conversion Action types that you can create in the Google Ads API. Unfortunately, there is currently no 'import' type listed. In addition, server to server API option is not supported in the Google Ads API.

After checking some documentation, you maybe referring to the App Conversion Tracking API.

Moving forward, if you are referring to the Google Ads UI options, I would recommend that you reach out to the Google Ads Product Support team instead via this link, for further guidance on the 'import' type and how to retrieve its conversion action ID from their end.

On the API's perspective, you can query the conversion_action resource to retrieve the id and also the type.

Best regards,

Google Logo
Peter Laurence Napa Oliquino
Google Ads API Team
 


ref:_00D1U1174p._5004Q2DvrtJ:ref
Reply all
Reply to author
Forward
0 new messages