Google ads embeded in webgl?

so my game Zombie Miner which had been stolen by every portal is deactivated thanks to unity web player no longer being supported
that thing had 100K daily players so let me jump in and make a webgl of it
unity ads has no webgl support
have you guys managed to add google ads inside a webgl game?
i can’t really do that on the html or that’ll be excised in 2 seconds by them thieves

That is a good question, I am also curious what kind of ad possibilities people have. We have had conversations previously with the Unity Ads team, but no resolution quite yet on when Unity Ads would be released on WebGL. (what makes it tricky is that advertising partners are generally particular about the platforms they want to show on, and for cross-promo game ads they generally want to tie to a quickly accessible native app store, which the web doesn’t have)

As for the securing aspect - on the web all ads will be downloaded via a web request over to the ads service. My understanding is that using Google Ads will require utilizing their Google Ads service, which will inherently be a JavaScript based mechanism.

If you want to secure your game to not be stolen and hosted on other domains, probably the best way is to implement a server endpoint which only allows requests from your own correct hosting (via CORS), and then make parts of the game query that server for secrets, e.g. game levels could be loaded dynamically from the server, or just periodic encrypted security checks would be performed, which would prevent external developers from just copying your files (your server would not serve to their requests). They’d need to also decipher the communication that is going on with your game and the server, so that would mean decompiling the game, as long as the messages were somehow dynamic, i.e. they could not just mock up XHR API to fulfill the request replies.

1 Like