Skip to content

Instantly share code, notes, and snippets.

@akanik
Created September 26, 2018 04:31
Show Gist options
  • Save akanik/e8dc794531b238c5626a02a728d69762 to your computer and use it in GitHub Desktop.
Save akanik/e8dc794531b238c5626a02a728d69762 to your computer and use it in GitHub Desktop.
//These two functions create a new menu item titled "Update data" that
//when clicked will run the rest of the code we're writing here
function onOpen() {
var ui = SpreadsheetApp.getUi();
ui.createMenu('Update data')
.addItem('Update data', 'updateDataMenu')
.addToUi();
}
function updateDataMenu() {
gaDateFetch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment