empty response from while uploading GCLID

70 views
Skip to first unread message

Sneha Suhitha Galiveeti

unread,
Apr 11, 2022, 5:29:35 PM4/11/22
to Google Ads API and AdWords API Forum
Hi there!

I am using Google Ads API to upload offline conversions using GCLID. I have used same code from this link. 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!

Google Ads API Forum Advisor

unread,
Apr 12, 2022, 5:42:46 AM4/12/22
to sn...@getepic.com, adwor...@googlegroups.com
Hi Sneha,

Thank you for raising this concern to the Google Ads API forum.

With regard to your concern, could you please provide the complete logs within the format of the request and response logs with request-id and login-customer-id generated on your end and the screenshot where you can see the "upload function is returning an empty list", that you said? This will be helpful to us for a clearer view. For privacy purposes provide it via Reply privately to the author option. If this option is not available, then send it instead on this email address googleadsa...@google.com. If you haven't yet, logging can be enabled by navigating to the Client libraries > Your client library (ex. Java) > Logging documentation, which you can access from this link.

However, please consider a few things to keep in mind when creating a ClickConversion as discussed in this document

Best regards,
Google Logo
Jinky
Google Ads API Team
 


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