HOW TO ADD SMAATO BANNER (NEW SMAATO)

Previously I've explained how to insert Airpush Single Banner, Mopub Single Banner, Airpush Multi Banner and MoPub Multi Banner. Now we will learn to other mobile advertisement so the science that we have become a lot and hopefully useful for those who want to know. Since the time we discussed the banner of Smaato that he pretty much do not understand using it.

To make the ads showing on your android app, it needs your focus and intelligent so you can learn fast.



Now how do I add single banner ads on the screen.

As usual, all you need is one of the software maker android application that eclipse, androidstudio. However, I do not use both software but AIDE android application that helps me to experiment freely from my phone.
 

Once you have one of the software maker android app is up and running well, the last needed is a sample project or initial project provided by the maker software application, call it "Hello World" project. Thus we will begin coding to insert ads into the project smaato android.

In the Hello World project, there are many files and folders, but we need only a few files like AndroidManifest.xml, main.xml (located in the folder res - layout - main.xml) and last MainActivity.java (located in the src folder ). Here are more appropriate steps and details.
 

1. In the Hello World project, add the libs folder, this folder will be used to store our Smaato SOMA SDK download on his website.

2. Open the AndroidManifest.xml file and add the code below.


Add those

3. Furthermore, adding the code in the file main.xml like the code below.

Make sure you replace publisherId and adSpaceId the above code so that the ads that appear will constitute your ad.

4. Open the file and add the code like MainActivity.java below.



Save and Compile your project, to test ads, use the emulator or your phone.

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.

Thank you for visiting and attention, may be useful and wait for my next tutorial.
Next we will learn about Multi Banner Smaato.

Comments

  1. If you are looking for a good contextual advertising network, I suggest that you take a peek at PropellerAds.

    ReplyDelete

Post a Comment