function main() { // get all campaign with names containing "coupons" var campaigns = BingAdsApp.campaigns() .withCondition('Name CONTAINS "coupons"') .get(); // get first result var campaign = campaigns.next(); // get labels var labels = campaign.labels(); }