How to add LeadBolt Ads to your Crosswalk Exported Game!

1
  • 20 favourites

Stats

2,314 visits, 4,655 views

Tools

Translations

This tutorial hasn't been translated.

License

This tutorial is licensed under CC BY 4.0. Please refer to the license text if you wish to reuse, share or remix the content contained within this tutorial.

Hey guys, I got an email request to write this tutorial on how to add Leadbolt Ads to your Construct 2 project.

Step 1

Create a .html file, name it whatever you like, I like something easy like ads.html

Step 2

Now edit your new ads.html file and add the following to it, this is our Leadbolt Ads code:

    <!DOCTYPE html><!--HTML5 doctype-->
    <html><head>
    <head>
    <title>Leadbolt Framed Ad for Android Games</title>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 
    </head>
    <body>
     <script type="text/javascript" src="http://ad.leadboltads.net/show_app_ad.js?section_id=196169545"></script>
    </body>
    </html>

Remember to change javascript src="ads.leadboltads.net/show_app_ad.js?section_id=yoursectionid" in the code according to the ads in your Leadbolt account.

Step 3

Now upload ads.html to your web server such as yourdomain.com/ads.html

Step 4

Add Pode's HTML iFrame Object to your layout into the area you would like it positioned at in your game, Make sure it is the size of the ad you are using and then put into the URL of objects attributes your yourdomain.com/ads.html. Test your game to make sure the ad is showing up blank (Leadbolt will ONLY display ads on MOBILE DEVICES) This means even using a user-referrer agent on your browser as mobile will still not display the ads, you have to actually test your app on a mobile device such as Droid.

This was just a very quick tutorial, if you need help, please post in the comments below! :) I would be glad to help!

Here is a link to one of my games on Google Play with Leadbolt Ads integrated via this method (18+) https://play.google.com/store/apps/details?id=com.ccmobile.jumpingweed

  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!