Follow

Banners

View original article on our GitHub

 

Add the following View inside your Activity layout XML:

<com.startapp.android.publish.banner.Banner 
          android:id="@+id/startAppBanner"
          android:layout_width="wrap_content"
          android:layout_height="wrap_content"
          android:layout_centerHorizontal="true"/>

NOTE: This code places a View inside your Activity. You also have the option to add additional attributes for placing it in the desired location in your Activity.

For adding a specific type of banner or adding a banner programmatically, please refer to theAdvanced Usage.

.

Was this article helpful?
2 out of 4 found this helpful
Have more questions? Submit a request

Comments

  • Avatar
    Awesome Developers

    there is no app id or developer id, then how do you get that this ad belongs to which app?

  • Avatar
    Vijay Kumar

    Our app works in sensorLandscape mode is there any way to set bannar size programmatically, because default banner size is very big. Please help

  • Avatar
    Yana Guminskaya
    I agree with Vijay. Size is very big for landscape orientation
  • Avatar
    abhay jaiswal

    After signed the apk banner or any add not show why ??