Android Question LeadBolt ad banner size?

Jaames

Active Member
Licensed User
Longtime User
Hi
I can't figure it how to display LeadBolt ad banner in normal size on every device (banner size 320x50)

On my galaxy note II banner appear very small , it's almost unreadable - invisible...
But if I change in manifest file android:anyDensity="true"/> to android:anyDensity="false"/>, banner appear
as normal and its size is ok, but everything else become screwed up. for example if 'android:anyDensity="false"/>' then toast message is too smal - unreadable

The same is happening with PayPal lib.

you can see what i mean from the screenshots attached.

Does anybody know how to solve this?
 

Attachments

  • 1.jpg
    1.jpg
    20.9 KB · Views: 249
  • 2.jpg
    2.jpg
    23.4 KB · Views: 237
  • 3.jpg
    3.jpg
    33.6 KB · Views: 272
  • 4.jpg
    4.jpg
    30.6 KB · Views: 250

enrico

Active Member
Licensed User
Longtime User
Their reply :

Auto Scaling Display Ads

Supporting multiple resolution devices with LeadBolt’s auto scaling display ads. Interstitials, Overlays, In-App Alerts, Rich Media and App Walls will all automatically scale to display at optimal sizes on all screens and devices, ensuring the app experience is the same for all users.
However fixed size ad units, banner slots are still available in all existing sizes, allowing ads to be display ads in the exact sizes and positions that they require.

I solved it checking activity.width and loading a bigger banner for tablets
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
I solved it checking activity.width and loading a bigger banner for tablets

Hi.

I don't understand what do you mean by "checking activity.width" ?

Did you try more devices with banner that size, and does ad show up in emulator?

I can't get ad to show up in emulator, but in my galaxy note 2 it show up nicely with a bigger banner.

Thank you for the tip :)
 
Upvote 0

enrico

Active Member
Licensed User
Longtime User
B4X:
If Activity.Width >= 728 Then
      SectionID = "xxxxxxxxx"     'Banner Ad 728x90
Else
      SectionID = "yyyyyyyyy"     'Banner Ad 320x50
End If
ad.Initialize(SectionID)          'LeadBolt Banner Ad (728x90 or 320x50)
ad.loadAd()                       'To run LeadBolt Display Ad

Anyway, to me it never shows up in the emulator.
You have to test with real device.
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
B4X:
If Activity.Width >= 728 Then
      SectionID = "xxxxxxxxx"     'Banner Ad 728x90
Else
      SectionID = "yyyyyyyyy"     'Banner Ad 320x50
End If
ad.Initialize(SectionID)          'LeadBolt Banner Ad (728x90 or 320x50)
ad.loadAd()                       'To run LeadBolt Display Ad

Anyway, to me it never shows up in the emulator.
You have to test with real device.


Ok. thanks
 
Upvote 0

Jaames

Active Member
Licensed User
Longtime User
With Leadbolt new "Auto Stretching" banner ad type, this is not an issue any more, banner fits on any device nicely.

But I wanted to know the exact size of banner, because it fits automatically, and I asked them how can I do that and they replied:

"The banner ads will fill the width of the screen (up to 1080 wide) with the following dimensions/ aspect ratio:

width 320 ~ 467: banner stretches to 100% with ratio 320:50
width 468 ~ 727: banner stretches to 100% with ratio 468:60
width 728 ~ 1079: banner stretches to 100% with ratio 728:90
width 1080 or more: banner stretches to 1080 with ration 728:90"


I think this can be useful for you guys so I decided to share this with you.

Enjoy :)
 
Upvote 0

Computersmith64

Well-Known Member
Licensed User
Longtime User
I use Leadbolt interstitial ads in Yahtzee! without any issues from Google, so I assume it's compliant.
 
Upvote 0

holdemadvantage

Active Member
Licensed User
Longtime User
Help me please, the banner is loaded into a webview called leadboltbanner,

B4X:
bannerleadbolt="<html><body style='margin:0;padding:0;'><script Type='text/javascript' src='http://ad.leadboltads.net/show_app_ad.js?section_id=MYID'></script></body></html>"

MyWebViewExtras.addJavascriptInterface(leadboltbanner, "B4A")
MyWebViewExtras.addWebChromeClient(leadboltbanner,"")

leadboltbanner.loadhtml(bannerleadbolt)
when i click on a banner the page load into the little webview even if i add the sub

B4X:
Sub leadboltbanner_OverrideUrl (Url As String) As Boolean


StartActivity(p11.openbrowser(Url))
leadboltbanner.LoadHtml(bannerleadbolt)



End Sub

leadboltbanner is a webview, bannerleadbolt is a string with their code

p11 a PhoneIntents

What is the problem? Tnx for your help

EDIT: the solution i posted works well, my fault was to make test before app was approved
 
Last edited:
Upvote 0

JdV

Active Member
Licensed User
Longtime User
I realise this is an old thread but I contacted Lead Bolt support recently to ask about the height of their 'auto stretching' banner ads.

I was given this formula:

height in pixels = (0.124 x width in pixels) + 10​

From my limited testing this seems to be accurate.

Regards

Joe
 
Upvote 0
Top