I'm working on a Google Sheets script that I'm only intending to access data in the same spreadsheet that the .gs file is associated with. It seems like I should have permission to run a script in my own spreadsheet, but whenever I run a function, I get a This app isn't verified
message.
How do I bypass this? I've already enabled the Google Sheets API in both Advanced Google Services and the API Console. Am I wrong in assuming that if I create a spreadsheet and create an add-on that modifies that spreadsheet, that I shouldn't have to authorize it?
Here's the function that's throwing the error:
function getLastRow(){
ss=SpreadsheetApp.getActiveSpreadsheet();
var rulesSht=ss.getSheetByName('rules');
return rulesSht.getLastRow();
}
//@OnlyCurrentDoc
annotation comment (which will prevent the access of anything outside of this document), or declare your OAuth scopes as read-only. You can find more details in the official documentation. – Jagged