Build Google HTML5 Ads with Solar2d

Has anyone managed in doing this? I think it would be very interesting for promoting my apps, I have tried to create a mini demo app from mine but it just doesn’t load on the preview, any ideas?

I have also tried to upload a HelloWorld Html5 but still same problem

The current Solar2D web template is not suitable for ad playable, a new web template needs to be built works with it.
Also I think it’s possible if you custom index.html yourself

I found and HTML5 validator, and is throwing me the following error, will try to work for a solution or maybe a plugin to include that exit required API.

https://h5validator.appspot.com/adwords/asset?result=5660029221470208

1 Like

I just found a kind of solution which is adding to the html file the following lines:

<script type="text/javascript" src="https://tpc.googlesyndication.com/pagead/gadgets/html5/api/exitapi.js"></script>

<a onclick="ExitApi.exit()">
    Click to exit
 </a>

But it would be interesting if I could add this plugin in the build.settings so I can call this function directly from the app, is this possible?

You can try to create plugin js.

I wrote this a while back

1 Like