我正在使用库存的Google Apps脚本进行链接检查器(https://developers.google.com/google-ads/scripts/docs/solutions/link-checker#source-code)。我已经复制了模板电子表格以供参考,但是我一直得到答复“错误:请指定一个有效的电子表格URL。”
似乎是问题所在的代码部分是下面的第三行:
function validateAndGetSpreadsheet(spreadsheeturl) {
if (spreadsheeturl == 'YOUR_SPREADSHEET_URL') {
throw new Error('Please specify a valid Spreadsheet URL. You can find' +
' a link to a template in the associated guide for this script.');
我输入了我的URL来替换“ YOUR_SPREADSHEET_URL”,但是不确定我应该在
中输入什么'Please specify a valid Spreadsheet URL. You can find' +
' a link to a template in the associated guide for this script.'
我尝试将电子表格URL放在其中,也尝试将其省略,但均无效。我是Google Scripts的新手,所以将不胜感激!