Android Question How to use large banner with Admob?

tufanv

Expert
Licensed User
Longtime User
Hi,

For some reason, we don't have banner large size in our admob library. I don't want to use another lib as it may create dependency problems in the future. Is there any way to use with inline code?

Thanks
 

tufanv

Expert
Licensed User
Longtime User
We can define a custom size with the following java code:
AdSize adSize = new AdSize(300, 50);

It looks like simple but I dont have any experience in java, any way to use it?
 
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
All possible sizes you can see here. Probably best solution is to use Adaptive banner.

Edit:
Large banner really missing in size constants.
 
Last edited:
Upvote 0

Pendrush

Well-Known Member
Licensed User
Longtime User
Large banner example.

LargeBanner.png
 

Attachments

  • AdMobLargeBanner.zip
    9.3 KB · Views: 230
Upvote 0
Top