Offline Conversion Upload (Python) - Empty Response

817 views
Skip to first unread message

Jeff Feng

unread,
Aug 5, 2020, 6:47:44 PM8/5/20
to AdWords API and Google Ads API Forum
I'm currently using the python script here to upload offline conversions into my Google Ads account.

I've already setup the following prerequisites -

1) Approved developer token
2) Generated an OAuth client id / client secret / refresh token

After I run the script mentioned above, the Google Server responds with a blank response (see below)

Uploaded conversion that occurred at "" from Google Click ID "" to ""

I included all of the required values in the API call, including my customer_id, conversion_action_id (aka conversion action name), the Google Click ID, and the conversion times / values.
Could someone help me understand why this is happening?


je...@forhims.com

unread,
Aug 6, 2020, 12:28:41 AM8/6/20
to AdWords API and Google Ads API Forum
I dug into this a little bit deeper and got this json response when trying to print the 'conversion_upload_response' object - 

partial_failure_error {
  code: 3
  message: "Resource name \'customers/<CUSTOMER_ID_HIDDEN>/conversionActions/S2S Test Conversion\' is malformed: expected \'customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}\'., at conversions[0].conversion_action"
  details {
    value: "\n\237\002\n\002\010\004\022\262\001Resource name \'customers/<CUSTOMER_ID_HIDDEN>/conversionActions/S2S Test Conversion\' is malformed: expected \'customers/{customer_id}/conversionActions/{ConversionType.conversion_type_id}\'.\032<*:customers/<CUSTOMER_ID_HIDDEN>/conversionActions/S2S Test Conversion\"&\022\017\n\013conversions\022\000\022\023\n\021conversion_action"
  }
}
results {
}

je...@forhims.com

unread,
Aug 6, 2020, 1:42:31 AM8/6/20
to AdWords API and Google Ads API Forum
Dug even further and was able to find the correct conversion action, now I'm getting this error - 

partial_failure_error {
  code: 3
  message: "This conversion action is configured to use an external attribution model, but the external attribution credit or one of its fields is not set., at conversions[0].external_attribution_data"
  details {
    value: "\n\307\001\n\003\370\006\r\022\217\001This conversion action is configured to use an external attribution model, but the external attribution credit or one of its fields is not set.\".\022\017\n\013conversions\022\000\022\033\n\031external_attribution_data"
  }
}
results {
}

How should my Conversion Actions be setup? They are setup using these settings -
Screen Shot 2020-08-05 at 10.42.04 PM.png

je...@forhims.com

unread,
Aug 6, 2020, 1:56:28 AM8/6/20
to AdWords API and Google Ads API Forum
Following Up again...

I thought the purpose of an externally attributed model was so that I could add the external attribution as part of the API call? The error seems counter intuitive to what I'm trying to achieve, no?

Nicholas Edwards

unread,
Aug 6, 2020, 5:58:56 AM8/6/20
to AdWords API and Google Ads API Forum
Check this out - as you are using external attribution model you need to add additional parameters when you load the offline data in. 

Google Ads API Forum Advisor Prod

unread,
Aug 6, 2020, 3:26:49 PM8/6/20
to n.ed...@loophorizon.com, adwor...@googlegroups.com
Hi Jeff,

The solution Nicolas provided is correct. Please let me know if you face any issues while using this.

Cheers,
Anthony
Google Ads API Team

ref:_00D1U1174p._5004Q23HzOx:ref

Yuan Lu

unread,
Mar 15, 2021, 8:59:50 PM3/15/21
to AdWords API and Google Ads API Forum
Hello,

I ran into the same error with malformed request. Do you mind letting me know how to find the correct conversion action? Really appreciate your help!

Google Ads API Forum Advisor Prod

unread,
Mar 16, 2021, 1:35:44 PM3/16/21
to adwor...@googlegroups.com
Hello,

I see you have created a new thread in addition to this post. To facilitate communication, please use the newly created thread for troubleshooting this issue.

Thanks,
Matt
Google Ads API Team

Google Logo
Matt
Google Ads API Team
 


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