Missunderstanding in Offline Conversions Upload

404 views
Skip to first unread message

Iván López

unread,
Feb 9, 2022, 11:59:24 AM2/9/22
to Google Ads API and AdWords API Forum
Hello,

I am trying to do an upload of an offline conversion. Here is my code in Python (I have also tried putting conversion_value in micros):

conversion_action_id = '581686697'
account_id = '7714105941'
click_conversion = client.get_type("ClickConversion")
conversion_action_service = client.get_service("ConversionActionService")
click_conversion.conversion_action = (
    conversion_action_service.conversion_action_path(
        account_id, conversion_action_id
    )
)
click_conversion.gclid = 'CjwKCAiAp8iMBhAqEiwAJb94z3C9MQBX7venZOfMPbBkznD5BxNm8Kbz4BmsKYuS5la2tC0RaTwrHhoCw_gQAvD_BwE'
click_conversion.conversion_value = 1.40
click_conversion.conversion_date_time = '2022-02-09 00:02:36+01:00'
click_conversion.currency_code = 'EUR'

conversion_upload_service = client.get_service("ConversionUploadService")
request = self.client.get_type("UploadClickConversionsRequest")
request.customer_id = '7714105941'
request.conversions = [click_conversion]
request.partial_failure = True

conversion_upload_response = (
    conversion_upload_service.upload_click_conversions(
        request=request,
    )
)

And this is the result form the API:

partial_failure_error {
  code: 3
  message: "The click associated with this Google Click ID is either too old to be imported or occurred before the conversion click through lookback window for the specified combination of conversion date and conversion action (default is 90 days)., at conversions[0].conversion_action"
  details {
    type_url: "type.googleapis.com/google.ads.googleads.v8.errors.GoogleAdsFailure"
    value: "\n\320\002\n\003\370\006\005\022\354\001The click associated with this Google Click ID is either too old to be imported or occurred before the conversion click through lookback window for the specified combination of conversion date and conversion action (default is 90 days).\0322*0customers/7714105941/conversionActions/581686697\"&\022\017\n\013conversions\030\000\022\023\n\021conversion_action"
  }
}
results {
}


Why is this happening? Am I doing something wrong? Is there another tool to do this?
In the case that the problem is only about with the clickID, can you explain it more explicity?

Thank you very much,

Iván

Google Ads API Forum Advisor

unread,
Feb 10, 2022, 4:21:24 AM2/10/22
to ivan....@tidart.com, adwor...@googlegroups.com
Hi Iván,

Thank you for raising this concern to Google Ads API.

Upon checking your error message, it seems you've encountered the EXPIRED_GCLID error. To avoid this error, as per this guide, the conversion_date_time must be before the click_through_lookback_windows_days you specified for the ConversionAction. Please refer to that guide in order to meet the requirements when uploading a ClickConversion.


"The click associated with this Google Click ID is either too old to be imported or occurred before the conversion click through lookback window for the specified combination of conversion date and conversion action (default is 90 days)., at conversions[0].conversion_action"

Best regards,
Google Logo
Jinky
Google Ads API Team
 

 

ref:_00D1U1174p._5004Q2W5mC2:ref

Iván López

unread,
Feb 11, 2022, 4:53:55 AM2/11/22
to Google Ads API and AdWords API Forum
Hello again,

Thank you for your advise, it works!

I have another question, now the response form the API seems ok to my request:

results {
  gclid: "CjwKCAiAp8iMBhAqEiwAJb94z3C9MQBX7venZOfMPbBkznD5BxNm8Kbz4BmsKYuS5la2tC0RaTwrHhoCw_gQAvD_BwE"
  conversion_action: "customers/7714105941/conversionActions/581686697"
  conversion_date_time: "2021-12-09 00:02:36+01:00"
}
results {
  gclid: "Cj0KCQiA-eeMBhCpARIsAAZfxZBcRArnTzW7Pem4t7Lo_uiq2ai_fWs24H5iGIQVCJb0WI6NRc0J9eEaAoGBEALw_wcB"
  conversion_action: "customers/7714105941/conversionActions/581686697"
  conversion_date_time: "2021-12-09 00:02:36+01:00"
}

Otherwise, I can see the conversions reflected on the Conversions View form Google Ads (attached Image). Only previous uploads appear there not from the API and not from my user. Maybe is there another place where I can look for it? Can you explain me?

Thank you very much,

Iván

Imagen 11-2-22 a las 10.51.jpg

Google Ads API Forum Advisor

unread,
Feb 13, 2022, 9:31:14 PM2/13/22
to ivan....@tidart.com, adwor...@googlegroups.com
Hi Iván,

Thank you for the reply. I am glad that the reply of my colleague helped you in your previous concern.

As for your current concern, I am afraid that the conversion upload using API is currently not reflecting in the Google Ads UI. With this, I would suggest to enable the logging on your end by following one of the guides below depending on the client library that you are using to know the full details on your upload:
Java - https://developers.google.com/google-ads/api/docs/client-libs/java/logging
.Net - https://developers.google.com/google-ads/api/docs/client-libs/dotnet/logging
PHP - https://developers.google.com/google-ads/api/docs/client-libs/php/logging
Python - https://developers.google.com/google-ads/api/docs/client-libs/python/logging
Ruby - https://developers.google.com/google-ads/api/docs/client-libs/ruby/logging
Perl - https://developers.google.com/google-ads/api/docs/client-libs/perl/logging

Also, I would suggest to reach out to the product team via this link to make a feature request on their end so that conversion upload using API will also be reflected in the UI view that you've shown.

Regards,
Google Logo
Ernie John
Google Ads API Team
 


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