Question about Enhancing offline click conversions

113 views
Skip to first unread message

Selcuk

unread,
Feb 29, 2024, 6:56:35 AM2/29/24
to Google Ads API and AdWords API Forum
Hello,

I was reading through the documentation of enhancing conversions using the REST API  (https://developers.google.com/google-ads/api/rest/reference/rest/v16/customers/uploadConversionAdjustments#ConversionAdjustment)

I noticed the following: "The order ID is required for enhancements.". Does this mean that only order conversions can be enhanced? We also have conversion actions for for example pageviews or add-to-carts, those ofcourse won't have an orderId but we might still have for example the userAgent or an emailaddress which we wanted to use for enhancement.

Google Ads API Forum Advisor

unread,
Feb 29, 2024, 10:56:11 AM2/29/24
to selcuk....@gmail.com, adwor...@googlegroups.com
Hi,

Thank you for contacting the Google Ads API support team.

You can still adjust a conversion if you don't have an order Id. As per the API documentation, you need to use the order Id only if the conversion was reported with an order ID specified, that order ID must be used as the identifier. There are two types of adjustments that can be made:
  • When you have a Google click ID (GCLID) and conversion date time available, you can adjust a conversion by uploading a ConversionAdjustment.
  • You can also adjust a conversion when you have an order ID available instead of a Google click ID and conversion date time.
Both these adjustment types would be uploaded through the ConversionAdjustmentUploadService. You may refer to this guide for more information. Hope this helps.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzYg7:ref"

Thanks,
 
Google Logo Google Ads API Team


Selcuk

unread,
Mar 13, 2024, 7:27:42 AM3/13/24
to Google Ads API and AdWords API Forum
Hello,

I just implemented what you told me, and i get the following message (When uploading an enhancement without an order_id, butw ith a google click ID and conversion date time:

 [{"errorCode":{"fieldError":"REQUIRED"},"message":"The required field was not present.","location":{"fieldPathElements":[{"fieldName":"conversion_adjustments","index":0},{"fieldName":"order_id"}]}}]

Does this mean that what you said earlier is incorrect, and I can only enhance orders?

Kind regards,
Selcuk Tekin

Selcuk

unread,
Mar 13, 2024, 7:28:41 AM3/13/24
to Google Ads API and AdWords API Forum
Just to clarify: The original conversion also did not have an orderId, only a gclid.

Google Ads API Forum Advisor

unread,
Mar 13, 2024, 12:58:38 PM3/13/24
to selcuk....@gmail.com, adwor...@googlegroups.com
Hi Selcuk,

Thank you for getting back to us.

I would like to inform you that the order_id is not strictly required for all enhanced conversions. While it helps with attribution, it's not mandatory in every scenario. Kindly refer to the document Implement Enhanced Conversions for Web to get more information.

The error message you are getting indicates that the API is still expecting an order_id, even though it is optional for some conversion types. In your code, modify the logic for setting the order_id field. Only populate it if you have a valid order ID. If not, leave it empty.

I hope this helps. Kindly get back to us if you have any further queries.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02rzYg7:ref" (ADR-00225371)


Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages