function main() {
var campaigns = AdWordsApp.campaigns()
.withCondition("AdvertisingChannelType = SEARCH") // Type of campaign is set to SEARCH
.withCondition("TargetContentNetwork = TRUE") // Setting this to TRUE will get all the campaigns with a type of "Search Network with Display Select".
.get();
while (campaigns.hasNext()) {
var campaign = campaigns.next();
Logger.log(campaign.getName());
}
}