Kids content exclusion from Google Ads Campaigns

149 views
Skip to first unread message

Gianluca Contardi

unread,
Nov 14, 2023, 6:03:16 AM11/14/23
to Google Ads Scripts Forum
Hi everybody,

Im experiencing a lot impressions and views coming from youtube channels & videos contents related to kids. 

Is there any possibilty to build up a script from scratch that can exclude every single kid content, topic, etc.? 

Is it possible to get this kind of automation? 

Google Ads ID: 547-687-8802

I'm looking forward for a reply

Regards,
Gianluca

Dmytro

unread,
Nov 14, 2023, 6:31:13 AM11/14/23
to Google Ads Scripts Forum

Sigurd Fabrin

unread,
Nov 14, 2023, 6:59:01 AM11/14/23
to Google Ads Scripts Forum
Hi Gianluca,

Do NOT use the scripts suggested by Dmytro. It fetches code from a remote location and executes it using the eval() method in your account. You have no chance of knowing beforehand what it does. 


@Google Ads script team: You really should deactivate the possibility of using eval(). There is no good reason why you allow code to be executed this way.



Sigurd

Dmytro

unread,
Nov 14, 2023, 7:34:24 AM11/14/23
to Google Ads Scripts Forum
Hi Sigurd
Thanks for your comment. Do you have any ideas how to protect my code and solution?
I can give access to any Google Ads representative to check my solution.

Dmytro Tonkikh

unread,
Nov 14, 2023, 7:49:27 AM11/14/23
to Dmytro via Google Ads Scripts Forum
I do eval() because of several reasons:

1. I can update scripts remotely. And users have updated version with fixed bug.
2. You can De-obfuscate my code from eval() source. I just make it harder to get original code
3. And to be honest script resources not enough to do something.



--
-- You received this message because you are subscribed to the Google Groups AdWords Scripts Forum group. Please do not reply to this email. To post to this group or unsubscribe please visit https://developers.google.com/adwords/scripts/community.
---
You received this message because you are subscribed to a topic in the Google Groups "Google Ads Scripts Forum" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/adwords-scripts/XczueIJ-fAg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to adwords-scrip...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-scripts/c1707b12-71ce-46e6-9284-9ed1f529240bn%40googlegroups.com.

Sigurd Fabrin

unread,
Nov 14, 2023, 8:27:48 AM11/14/23
to Google Ads Scripts Forum
As far as I know, eval() is the only way to execute code from a remote location. But as it is a major security threat, it shouldn't be used.

If you don't want to reveal your code, I'd recommend that you build an app with Google Ads API instead of using ad scripts. 


Sigurd

Dmytro

unread,
Nov 14, 2023, 8:36:20 AM11/14/23
to Google Ads Scripts Forum
From a security perspective, it is the same as using an app with your OAuth. But in the app case, you won't see anything, and the app can have many more resources and access to your data. 

Google Ads scripts are limited by time, speed and methods. Their power is enough to build simple solutions. 

I spent years learning them. 

Sigurd Fabrin

unread,
Nov 14, 2023, 8:51:59 AM11/14/23
to Google Ads Scripts Forum
"From a security perspective, it is the same as using an app with your OAuth"
Not quite: You need to register with Google, so they know who you are if something goes wrong

With eval() you can do all sorts of things to an account without any trace


Sigurd

Reply all
Reply to author
Forward
0 new messages