我已经运行了一个脚本来提取帐户的支出数据,然后粘贴到Google表格中。我希望只从带有特定标签的广告系列中获取费用。
我的脚本以以下内容开头:
var SPREADSHEET_URL = 'https://docs.google.com/spreadsheets/d/xxx/edit#gid=0';
function main() {
Logger.log('Using spreadsheet - %s.', SPREADSHEET_URL);
var spreadsheet = SpreadsheetApp.openByUrl(SPREADSHEET_URL);
spreadsheet.getRangeByName('account_id_report').setValue(
AdWordsApp.currentAccount().getCustomerId());
var yesterday = getYesterday();
var last_check = spreadsheet.getRangeByName('last_check').getValue();
// Checks every day from last day checked to yesterday inclusive. If there
// isn't a last date checked, checks yesterday.
如何告诉脚本仅从具有特定标签的广告系列中提取数据?