Search Console QuerysearchConsoleQuery(siteUrl, opts) queries the Search Console search-analytics API with ScriptApp.getOAuthToken() and returns row objects…