Discussion Forums  >  Plugins, Customizing, Source Code

Replies: 1    Views: 53

chrom
I hate code!
Profile
Posts: 23
Reg: Aug 16, 2012
delhi
1,680
08/27/12 01:14 PM (11 years ago)

How to Embeed ADDs ?

Hi i want to add this adservice in my app...How do i do it? where is the application layout...How do i open the layout editor ...To add an advertisment on top of my app... Add AppLovinAdView into Application layout Add the snippet below into your application's layout wherever you want an ad placement: <com.applovin.adview.AppLovinAdView xmlns:applovin="http://schemas.applovin.com/android/1.0" android:layout_width="wrap_content" android:layout_height="wrap_content" applovin:loadAdOnCreate="true" /> Note: Setting applovin:loadAdOnCreate to false will cause the AdView to not load an ad until you programmatically call loadNextAd() on the AdView.
 
Paul Rogers
Android Fan
Profile
Posts: 2524
Reg: May 30, 2011
UK
35,740
like
08/27/12 01:49 PM (11 years ago)
Layouts are in the res > layouts directory. Edit them in eclipse.
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.