Empty response from click_view in google ads api

70 views
Skip to first unread message

Karan Dev Tyagi

unread,
Nov 30, 2023, 7:02:23 AM11/30/23
to Google Ads API and AdWords API Forum
Hi,
I am using google Ads API to fetch the gclid associated with campaign name and campaign id. For this I have used the following query : SELECT click_view.gclid FROM click_view WHERE segments.date DURING YESTERDAY.

In the API response I am getting an empty array.This is only for the click_view data. If I only get the campaign name from campaign table, the data is returned.

Can anyone please help me in getting the gclid?

Google Ads API Forum Advisor

unread,
Dec 1, 2023, 6:59:00 PM12/1/23
to ka...@bswgames.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are getting an empty response while fetching the GCLID associated with the campaign name and campaign ID through the API.

In order to assist you further, we would like to see the uncropped UI screenshot of the issue you are facing. Also please provide us with the complete API logs (request and response with request-id and request header).

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qVn9E:ref"

Thanks,
 
Google Logo Google Ads API Team


Zhe Zhang

unread,
Dec 13, 2023, 11:12:14 AM12/13/23
to Google Ads API and AdWords API Forum

I also encountered the same problem, and associated the ads data to bigquery for job transfer. I can find that the data is empty from the data table in bigquery.
Snipaste_2023-12-13_17-05-45.pngSnipaste_2023-12-13_17-06-05.pngSnipaste_2023-12-13_17-07-41.png
Google Ads API Forum Advisor 在 2023年12月2日 星期六凌晨2:59:00 [UTC+8] 的信中寫道:

Google Ads API Forum Advisor

unread,
Dec 13, 2023, 1:31:38 PM12/13/23
to zhan...@lovinjoy.com, adwor...@googlegroups.com
Hi,

Thank you for reaching out to the Google Ads API support team.

After reviewing your concern, I understand that you are getting an empty response while fetching the GCLID associated with the campaign name and campaign ID via the Google Ads API.

In order to assist you further, kindly provide us with the complete API logs (request and response with request-id and request header) generated at your end and the uncropped UI screenshot (from Google Ads account) of the report highlighting the field that you are trying to fetch via the Google Ads API.
Reply all
Reply to author
Forward
0 new messages