SwipeInterstitiaAd Integration Guidel - united-adstir/AdStir-Integration-Guide-Android GitHub Wiki

When update the SDK, strongly recommended update all files in SDK package.

Supported OS version

Android 4.4 or later.

Caution

It is supposed to be used in an application that is displayed in portrait view and full screen. If the size of the displayed layout is small, Swipe Interstitial Ad may not be displayed correctly.

Partner ad netowrks

Please see the page of here

Setup

Before integration

Please see Initial-Setting to setup.

Integration

You can chose 2-way to integrate.

Integration with XML

<com.ad_stir.fullscreen.AdstirFullscreenView
    media="メデMedia IDィアID"
    spot="Ad Unit No."
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

Integration with coding

  1. Create Swipe Interstitial Ad instance
  2. Create Listener(Optional)
  3. Put Swipe Interstitial Ad instance in the layout
1. Create Swipe Interstitial Ad instance

Create AdstirFullscreenView instance.

AdstirFullscreenView view = new AdstirFullscreenView(
    activity,
    "Media ID",
    Ad Unit No);
2. Set Listener(Optional)

Set Swipe Interstitial Ad Listenere

view.setListener(new AdstirFullscreenView.AdstirFullscreenListener() {
    @Override
    public void onLeaveApplication(AdstirFullscreenView view){
        // Tap the Swipe Interstitial Ad and it will be called when the user leaves the application.
    }
});
3. Put Swipe Interstitial Ad instance in the layout
layout.addView(view);