Skip to content

Instantly share code, notes, and snippets.

@alquanna
alquanna / AWQL to Spreadsheets - Dynamic YTD Reports
Created August 10, 2020 06:19
A quick variation on Frederick Vallaeys' Google Ads script that uses a dynamic field in the DURING clause for the date today
/**
> Export YTD data dynamically using AWQL
> Based on the AWQL to Spreadsheet script by Frederick Vallaeys of Optimyzr.com
> Original post: https://www.optmyzr.com/blog/a-script-to-put-any-adwords-data-in-a-spreadsheet/
> The start date is static, the end date is equal to the date today
IMPORTANT:
> Make sure that you fill in the spreadsheet URL and tab name in lines 24 and 25 for the export
**/
@alquanna
alquanna / CopyPaste-GoogleAppsScript
Created April 11, 2020 13:56
A Google Apps script for copy-pasting. Copy the contents of all sheets (tabs) inside one Google Sheets file, then paste them all in one sheet. Useful for consolidating the contents of different tabs.
/**
A Google Apps script for consolidating data from different sheets
Basically, this scripts copies the contents from all sheets/tabs in a Google Sheet file, then consolidates all data in one tab: CombinedShet
Created by Clara - claracommutes.com :)
Important note:
1. Before using this Google Apps script, make sure that you have a sheet named CombinedSheet in your Google Sheet. This is where the script will consolidate all the data from all the other sheets.
2. CombinedSheet should be the last/rightmost tab in your Google Sheet file.
@alquanna
alquanna / AWQL to Spreadsheets - MCC Version
Last active August 10, 2020 06:14 — forked from siliconvallaeys/AWQL to Spreadsheets
MCC Version of the AWQL to Spreadsheets script
/**
AWQL to Spreadsheets - MCC Version
> Export account data from one MCC using this Google Ads script
> Based on the AWQL to Spreadsheet script by Frederick Vallaeys of Optimyzr.com
> Original post: https://www.optmyzr.com/blog/a-script-to-put-any-adwords-data-in-a-spreadsheet/
> This is designed to export data from specific accounts inside one MCC.
IMPORTANT:
If you want to pull data from all accounts in your MCC, delete Line 12 and change Line 11 to AdsManagerApp.accounts(); only