How to filter Smart Display Campaigns in a campaigns iterator?

54 views
Skip to first unread message

Alberto Esteves Correia

unread,
Feb 22, 2020, 6:06:37 AM2/22/20
to Google Ads Scripts Forum
Hello,

I want to create a smart display campaigns iterator, but it returns me an error. It's someting like this: 

function main(){

var sdcIterator = AdsApp.campaigns.withCondition("AdvertisingChannelSubType = 'DISPLAY_SMART_CAMPAIGN'").get();

}

It throws the following error: 


Exception: Value DISPLAY_SMART_CAMPAIGN is invalid. Please check spelling and casing and verify the value's type matches the field's type.


But this value is picked from:

Captura.PNG


If I try another value (eg: DISPLAY_GMAIL_AD) it works


How Can I do that with smart display campaigns?

Google Ads Scripts Forum Advisor

unread,
Feb 24, 2020, 1:17:44 AM2/24/20
to adwords...@googlegroups.com
Hi Alberto,

Thanks for posting your concern.

So that I can take a closer look, could you provide the customer ID and the name of the script via Reply privately to author option?

Regards,
Ejay
Google Ads Scripts Team

ref:_00D1U1174p._5001UV1t3u:ref
Reply all
Reply to author
Forward
0 new messages