How to fetch the list of all columns names associated with any table

14 views
Skip to first unread message

Manish Kumar

unread,
Oct 28, 2024, 6:11:08 AM10/28/24
to Google Ads API and AdWords API Forum
Hi ,

As I can't run select * queries . I want to know how to fetch the list of all the columns associated with any table programmatically (using API). 

I know there is a tool to build GAQL but I want to do it programmatically.

Thanks
Manish

Google Ads API Forum Advisor

unread,
Oct 28, 2024, 12:05:47 PM10/28/24
to manish...@gmail.com, adwor...@googlegroups.com
Hi,

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

You can use the Google Ads API to retrieve a list of columns data programmatically. Make sure you have set up a Google API Console project and enabled the Google Ads API in your project. I would recommend you to refer to the  following documents: I would suggest you to check this introductory guide to know more information regarding the details that you should have to make a Google Ads API call. You may check this guide Make an API call. You can also download a client library to start using the Google Ads API with the programming language of your choice. I would recommend you to check this documentation for reporting and Common Use Case Example and create and submit a query to the Google Ads API to get back data.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02vGguw:ref" (ADR-00273547)

Thanks,
 
Google Logo Google Ads API Team


Reply all
Reply to author
Forward
0 new messages