How do I get leadbolt ads to fit iframe?

Get help using Construct 2

Post » Thu Jun 26, 2014 7:22 am

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?
B
7
S
1
Posts: 74
Reputation: 1,368

Post » Thu Jun 26, 2014 9:50 am

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>
B
26
S
6
Posts: 39
Reputation: 1,574

Post » Thu Jun 26, 2014 6:01 pm

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.
B
7
S
1
Posts: 74
Reputation: 1,368

Post » Thu Jun 26, 2014 6:14 pm

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>
B
7
S
1
Posts: 74
Reputation: 1,368

Post » Wed Oct 22, 2014 9:01 am

@thedigitalchamp is this compulsory that we need to host ads.html file on web server?
B
16
S
4
Posts: 53
Reputation: 1,226

Post » Fri Oct 24, 2014 12:58 pm

@thedigitalchamp do you know any work around for ads displaying in app from where we cant come back and application does not close?
B
16
S
4
Posts: 53
Reputation: 1,226


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests