How can I use "as" syntax in GAQL

233 views
Skip to first unread message

EladB

unread,
Oct 9, 2021, 7:54:26 PM10/9/21
to Google Ads Scripts Forum
Hello

How can I use "as" syntax in GAQL?

```
SELECT HourOfDay as col1, DayOfWeek, Clicks, Impressions, Conversions, Cost FROM ACCOUNT_PERFORMANCE_REPORT DURING 20211009,20211009
```


Thanks!

Google Ads Scripts Forum Advisor

unread,
Oct 11, 2021, 3:59:08 AM10/11/21
to adwords...@googlegroups.com
Hi EladB,

Thanks for reaching out. Harry here, from the Google Ads Scripts Team.

I believe an "AS" command for the Google Ads Query Language is available to rename columns. For specific concerns related to the GAQL or AWQL, kindly reach out for help through the AdWords API and Google Ads API Forum instead for better assistance. On the other hand, if you use Google Ads scripts in this regard and export the report data in a Google Sheet, then you can use the Spreadsheet Service to name the column fields yourself. For script examples, please see this link.

Let me know if there's anything else I can assist you with.

Thanks,
Google Logo
Harry Cliford Rivera
Google Ads Scripts Team
 


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