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,