Skip to content

Instantly share code, notes, and snippets.

function onOpen() {
SpreadsheetApp.getUi()
.createMenu('DataForSEO')
.addItem('Set Credentials', 'showCredentialsPrompt')
.addToUi();
}
function showCredentialsPrompt() {
const ui = SpreadsheetApp.getUi();
const userProps = PropertiesService.getUserProperties();