Google Ads tag & uploading Enhanced Conversions via API as Conversion Adjustment

102 views
Skip to first unread message

Anni Salo

unread,
Jun 18, 2024, 7:27:45 AMJun 18
to Google Ads API and AdWords API Forum
Hi,

We've been banging our head to the wall for a while. We are looking to upload Enhanced Conversions via the Google Ads API, in connection with Google Ads tag. However, we keep on getting an error that our enhanced conversions API code is sending data too late.

We have confirmed that the data is sent well before 24 hrs have passed.

We have also read that the error might appear if the timestamps are not correct. We have confirmed and working timestamps with UploadClickConversions, so the timestamp format etc. is fine (supposing Conversion Adjustments and UploadClickConversions want to have timestamps in same format). 

We are sending both, adjustment timestamp and also conversion timestamp, which is inside the conversion_timestamp_gclid_pair object as per instructions. With this method we seek to upload conversions without GCLID, so we implemented conversion timestamp & GCLID pair with GCLID field being empty so that we'd anyways have the conversion timestamp to be sent. But that didn't solve the issue, and now we've been stuck for a while.

image (18).png

Any ideas how to solve this?

Thanks a lot for assistance!

Google Ads API Forum Advisor

unread,
Jun 18, 2024, 5:08:02 PMJun 18
to an...@leadspark.io, adwor...@googlegroups.com
Hi,

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

Upon checking the screenshot you provided, I could see that you are getting the error message "your enhanced conversions API code is sending data too late". This alert shows if you’re sending Ads API data more than 24 hours after the conversion time. Edit your enhanced conversions Ads API code to send data within 24 hours after the conversion event happens.

This alert may also show if conversion occurrence time isn’t included in your Ads API pings. Check the Google Ads API instructions to learn how to include conversion time in your Ads API request.

I would suggest you to refer to the Monitor offline data diagnostics documentation as it helps to find the overall health of the conversion upload processes. To retrieve the latest offline data diagnostics for your account, you can use the following query:
SELECT customer.id, offline_conversion_upload_client_summary.alerts, offline_conversion_upload_client_summary.client, 
offline_conversion_upload_client_summary.daily_summaries, offline_conversion_upload_client_summary.job_summaries, 
offline_conversion_upload_client_summary.last_upload_date_time, offline_conversion_upload_client_summary.resource_name, 
offline_conversion_upload_client_summary.status, offline_conversion_upload_client_summary.success_rate,
 offline_conversion_upload_client_summary.successful_event_count, offline_conversion_upload_client_summary.total_event_count 
FROM offline_conversion_upload_client_summary
Additionally, you can utilize the Google Ads Query Builder and Query Validator to build and validate the queries for retrieving the data from the Google Ads API.

If the issue persists even after trying with the provided suggestion, kindly provide us with the complete API logs (request and response logs with request-id and request header) generated at your end to better assist you further. 

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

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

Thanks,

 
Google Logo Google Ads API Team

Register for the upcoming workshop: Performance Max and the Google Ads API!
 


Anni Salo

unread,
Jul 4, 2024, 8:08:29 AMJul 4
to Google Ads API and AdWords API Forum
Hi,

Any update on this?
I have tried to respond to this chain now twice, but my responses are not visible here, I am not sure if you have received them?

I have requested for you to provide an example of Enhanced Conversion (Conversion Adjustment) to Google Ads API where the Conversion Adjustment/Enhanced Conversion does not include GCLID but does include conversion timestamp, since this scenario is not covered in documentations.

Br,
Anni

Google Ads API Forum Advisor

unread,
Jul 4, 2024, 4:29:39 PMJul 4
to an...@leadspark.io, adwor...@googlegroups.com
Hi Anni,

Kindly note that you can identify the conversion using a gclid_date_time_pair, this approach is less durable than using order_id and thus is not recommended. You can use order_id, also known as transaction ID, to identify the conversion to adjust with the ConversionAdjustmentUploadService. You can use this code example for sending enhanced conversions as conversion adjustment including adjustment_date_time. Also, when conversion that was reported without an order ID specified you can use GclidDateTimePair.

I hope this helps! Feel free to get back to us in case of any further queries.

Anni Salo

unread,
Jul 10, 2024, 12:59:54 AMJul 10
to Google Ads API and AdWords API Forum
Hi,

Indeed, we are looking to use order_id (transaction id) instead of Gclid. But, this will cause us getting an error that we are sending conversions too late (which we are not - confirmed!). The troubleshooting instruction say that this might happen if we do not provide the conversion timestamp with the payload.

So I am looking to have an example of a payload where we use order_id instead of Gclid, but still also include the conversion timestamp (in addition to adjustment timestamp) to prevent the aforementioned error.

Screenshot 2024-07-09 at 18.02.43.png

Thanks in advance for your assistance,

Anni

Google Ads API Forum Advisor

unread,
Jul 10, 2024, 4:02:03 AMJul 10
to an...@leadspark.io, adwor...@googlegroups.com
Hi,

I would like to inform you that it is not required to provide conversion time stamp of the conversion if you are using order_id to adjust your conversion. Providing adjustment timestamp is enough to adjust the conversions with order_id.

If you have followed all the instructions to make the conversion adjustments and still getting the error, kindly provide us with the complete API logs (request and response with request-id and request header) for the conversions uploaded and while making conversions adjustment. 


If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.
 

Anni Salo

unread,
Jul 10, 2024, 2:53:04 PMJul 10
to Google Ads API and AdWords API Forum
Hi,

Thank you for the assistance. I think this is the approach we have had earlier and still got the error. Just to clarify, we don't get any errors via the API, but in Google Ads UI only. But we will try once again and get back to you with logs if this still doesn't solve the issue.

Br,
Anni
Reply all
Reply to author
Forward
0 new messages