When I run upload_offline_conversion.py sample code, it does not complain but the conversion is not fired.

322 views
Skip to first unread message

Rodolfo Ortega

unread,
Oct 8, 2021, 1:42:31 AM10/8/21
to AdWords API and Google Ads API Forum

Hi I am using this sample code to test sending offline conversions:


Like this:

python upload_offline_conversion.py -c 2602958801 -a 'AW-338690233/RVXnCO3M4dcCELmBwKEB' -g EAIaIQobChMIhefJm96h8wIVg43ICh10tAuSEAAYASAAEgKl3_D_BwE -t '2021-09-28 09:29:56-04:00' -v 337136.0

It does not complain, but I get:

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

And the event is not fired.

This is the config of the conversion


Maybe this has to do with the API permissions? I got the token for the Remarketing API.

If not what I am missing. I've tried with:

python upload_offline_conversion.py -c 2602958801 -a '338690233/RVXnCO3M4dcCELmBwKEB' -g EAIaIQobChMIhefJm96h8wIVg43ICh10tAuSEAAYASAAEgKl3_D_BwE -t '2021-09-28 09:29:56-04:00' -v 337136.0

And

python upload_offline_conversion.py -c 2602958801 -a '338690233' -g EAIaIQobChMIhefJm96h8wIVg43ICh10tAuSEAAYASAAEgKl3_D_BwE -t '2021-09-28 09:29:56-04:00' -v 337136.0

Same result:

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

Thanks,

Rodolfo

Google Ads API Forum Advisor

unread,
Oct 8, 2021, 4:43:53 PM10/8/21
to rmos...@gmail.com, adwor...@googlegroups.com
Hi Rodolfo,

Thank you for reaching out to Google Ads API with your Python Client Library issue with upload_offline_conversion.py. For us to assist you we will need the request and response log of API communications that you can set the library to produce when setting logging to "DEBUG". The result of the logging appears similar to the JSON Mappings in our REST documentation. You can send this log privately to us via "Reply to author".

Regards,

Google Logo
Aryeh Baker
Google Ads API Team
 


ref:_00D1U1174p._5004Q2PHv0c:ref

Rodolfo Ortega

unread,
Oct 8, 2021, 9:33:59 PM10/8/21
to AdWords API and Google Ads API Forum

With the insights provided by the DEBUG log messages. I think I solved it.

First I got this message:

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

This is the action id was wrong, it must be: like 338690322

Then I got:

message: "This customer does not have an import conversion action that matches the conversion action provided., at conversions[0].conversion_action"

So I realized I needed to create an IMPORT conversion action for Other data sources or CRM.

Now I get:

message: "This conversion action was created too recently. Please wait 4-6 hours and try uploading again., at conversions[0].conversion_action"

So I just need to wait.

I couldn't find the conversion ID first, then I found that it is in the action details page url as the query parameter &ctId=ACTION_ID

Thanks,

Rodolfo

Google Ads API Forum Advisor

unread,
Oct 11, 2021, 11:57:18 AM10/11/21
to rmos...@gmail.com, adwor...@googlegroups.com
Hi Rodolfo,

Thank you for getting back to us with the progress! You still haven't told us what happened after reupload, feel free to reach out if you still need assistance.

Rodolfo Ortega

unread,
Oct 11, 2021, 12:02:22 PM10/11/21
to AdWords API and Google Ads API Forum
Hi and thanks.

Yes, after waiting some hours, it did work.

Thank you for pointing me in the right direction.

Reply all
Reply to author
Forward
0 new messages