function main() { AdsApp.createLabel("high_performing_keywords", "keywords with clicks greater than 500 per week", "aqua"); // Get all high performing keywords that have clicks greater than 500 last week var iterator = AdsApp.keywords() .withCondition('Clicks > 500') .forDateRange('LAST_WEEK') .get(); // If the keywords are found, apply label bid_increase_by_15%. if (iterator.hasNext()) { var keyword = iterator.next(); keyword.applyLabel("high_performing_keywords") } }