MULTI BANNER ADMOB (6.4.1)

Previously I've explained how to insert Airpush Single Banner, Mopub Single Banner, Airpush Multi Banner and MoPub Multi Banner. However, I think it was not a trick or a way that is so special to be posted. So, I added the trick is so special now that probably many who do not know, many who seek it as the title above multi banner admob sdk version 6.4.1.

To make a lot of ads in the screen is not so difficult, but necessary also foresight and good attention. In order to minimize the time, below we will weaving it briefly, if you have any experience to add single banner admob on your project, it maybe so fast for you to learn it



Now how do I add multiple banner ads or bring in a single screen.

To add these ads, part of which had been added just in main.xml and mainactivity.java course, following more details.


1. Earlier, on main.xml code just like this



Then we add a way to copy the above code and paste it below the record replace "adlay1" to "adlay2", "adview" was changed to "adview1" and replace "alignParentTop =" true "to" below = "@ + id / adlay1 ". That is adlay 2 will be just below adlay1. So, logic like that, put adlay1 at the top and just below adlay1 adlay2. Then the code entirely in main.xml looks like the picture below.


 2. Previously, MainActivity.java only have a few lines as shown below.


The code below is a complement of main.xml which will bring up two ads on the screen activity on your android. Just copy and paste the code and replace "adview" becomes "adview1" will complete the code to bring up 2 ads in your android screen activity.

If you want to bring up the banner ads as much as 3 or even more, simply copy and paste the code that is in main.xml and MainActivity.java, then replace the name "id" it then you've managed to create applications with multi banner.

For previous posts there Airpush Single Banner, Mopub Single Banner, Airpush Multi Banner and MoPub Multi Banner.

Next we will learn about Smaato Single Banner. 

Comments

  1. If you're looking for a solid contextual advertising company, I suggest you take a peek at PropellerAds.

    ReplyDelete

Post a Comment