Hi there!
I am using Google Ads API to upload offline conversions using GCLID. I have
used same code from this link
<https://github.com/googleads/google-ads-python/blob/main/examples/remarketing/upload_offline_conversion.py>.
I am not getting any errors but the upload function is returning an empty
list. Following is my code:
customer_id = "#########"
conversion_action_id = "##########"
gclid = "#######################################"
conversion_date_time = "yyyy-mm-dd hh:mm:ss+00:00"
click_conversion = client.get_type("ClickConversion")
conversion_action_service = client.get_service("ConversionActionService")
click_conversion.conversion_action =
conversion_action_service.conversion_action_path(
customer_id, conversion_action_id
)
click_conversion.gclid = gclid
click_conversion.conversion_date_time = conversion_date_time
conversion_upload_service = client.get_service("ConversionUploadService")
request = client.get_type("UploadClickConversionsRequest")
request.customer_id = customer_id
request.conversions.append(click_conversion)
request.partial_failure = True
print(request)
conversion_upload_response = (
conversion_upload_service.upload_click_conversions(
request=request,
)
)
uploaded_click_conversion = conversion_upload_response.results
"uploaded_click_conversion" has the value "[ ]" after the execution of the
script. Can you please let me know what's going on here.
Thanks in advance!
--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
---
You received this message because you are subscribed to the Google Groups
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/adwords-api/0910c91a-5fe4-47c0-919c-375e6e3ffba0n%40googlegroups.com.