Leadbolt ads with Iframe: auto size.

Discussion and feedback on Construct 2

Post » Thu Jun 26, 2014 7:24 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 4:10 pm

Where did you put the code for the leadbolt ad? is it in the index.html file ?

http://www.w3schools.com/tags/tag_iframe.asp (use the height and width tags) if you cant make the ad fit the iframe make the iframe fit the ad.
B
6
S
2
Posts: 151
Reputation: 1,366

Post » Thu Jun 26, 2014 6:21 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. 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.

<!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 » Thu Jun 26, 2014 6:24 pm

I put the code for the index file in the ads.html file i followed this tut: https://www.scirra.com/tutorials/876/ho ... orted-game
B
7
S
1
Posts: 74
Reputation: 1,368

Post » Fri Jun 27, 2014 12:12 am

oh okay nice work man,

Where it says "position: fixed" see if maybe you can switch fixed with center. if that doesnt work try this http://allwebco-templates.com/support/S ... _HTML5.htm

or

http://stackoverflow.com/questions/3011 ... lign-table



<div class="centered">
<table>

</table>
</div>
B
6
S
2
Posts: 151
Reputation: 1,366


Return to Construct 2 General

Who is online

Users browsing this forum: vikuserro, Yahoo [Bot] and 7 guests