How to select Search Network with Display Select

23 views
Skip to first unread message

Nikolas Casar

unread,
Dec 20, 2016, 1:44:22 AM12/20/16
to AdWords Scripts Forum
Hello :)

I would like to select campaign by it's type: Search Network with Display Select. Is it somehow possible? My quest is simple, it's just count those campaigns. I know how to count for DISPLAY or SEARCH campaigns, example: AdWordsApp.campaigns().withCondition("AdvertisingChannelType = DISPLAY").get(); But it seems to me like there is no such a AdvertisingChannelType in AWQL which can select Search Network with Display Select. Please help? :D

Nick

Paul Justine de Honor

unread,
Dec 20, 2016, 2:53:02 AM12/20/16
to AdWords Scripts Forum
Hi Nick,

Below is the script that would get all the campaigns with a type of Search Network with Display Select:

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());
 
}
}

Hope it helps.

Thanks,
Paul Justine De Honor
AdWords Scripts Team
Reply all
Reply to author
Forward
0 new messages