How do I get leadbolt ads to fit iframe?

0 favourites
  • 6 posts
From the Asset Store
StartApp Ads
$11.99 USD
[ C2 ] [ C3 ] support C3 build service | You can use Banner Ads, Interstitial Ads and Video Reward Ads.
  • I followed a tutorial i found here to get leadbolt ads to work with crosswalk and they do work however the ad doesnt fill the iframe object. I tried setting the ad size to the object size in settings but no luck. And i tried auto fill and stretch but still nothing. Is there any way to get the ads to fill the iframe object?

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Hi,

    Try put this in the Styles Property of the iFrame object properties:

    border:0;margin:0;padding:0;

    and this is my html on server you could try similar (i'm not sure if both are required, but mine autosizes with leadbolt ads and crosswalk):

    <!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>

    <div style="position: fixed; top: 0px; left: 0px; width: 438px; height: 64px;">

    <script type="text/javascript" src="http://ad.leadboltads.net/show_app_ad.js?section_id=012345"></script>

    </div>

    </body>

    </html>

  • Mine still seems to float above the bottom of the screen. I have a layout of 640X1136 and the Iframe is 640X90. I positioned it to the bottom of the screen and I set the leadbolt banner to auto stretching.

  • I got it to resize slightly better however it's not centered to the layout and some of the test ads text gets cut off.

    <!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>

    <div style="position: fixed; bottom: 0px; left: 0px; width: 640px; height: 90px;">

    <script type="text/javascript" src="http://ad.leadboltads.net/show_app_ad.js?section_id=myid"></script>

    </div>

    </body>

    </html>

  • thedigitalchamp is this compulsory that we need to host ads.html file on web server?

  • thedigitalchamp do you know any work around for ads displaying in app from where we cant come back and application does not close?

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)