Wednesday, July 29, 2015

Better integration of interstitials into your app


Starting with release 11 of the AppBrain SDK (https://github.com/swisscodemonkeys/appbrain-sdk), our interstitial ad units will fit better into your app.

Previous versions of the SDK showed interstitials fullscreen, which was great to show right before users back out of your app. However, the full screen may not be ideal to use within the app, for instance between two levels of a game, because the users might think that they're leaving your app.

In the current SDK version, the interstitials pop up as a dialog box on top of your activity, so it’s clear to your users that they are still in your app. In many cases, the interstitial also immediately shows the list of promoted apps, leading to more clicks and installs and thus more money for you.





You can control what the interstitial dialog looks like to some extent.

By default there’s no border around the dialog. You can set a colored border to fit your app’s theme in one of two ways:

  1. By adding configuration values in your AndroidManifest.xml (within the <application> tag):
<meta-data android:name="appbrain.border_size" android:value="medium" />
<meta-data android:name="appbrain.border_color" android:value="#afd334" />
  1. By setting the color programmatically in Java code:
AppBrain.getAds().setPopupBorder(Color.parseColor("#afd334"), BorderSize.MEDIUM);

The border sizes that are supported are small, medium and large.

If you don’t want the interstitial or offerwall to show up as a dialog, you can use setScreenType(ScreenType.FULLSCREEN) on an AdOptions object that you pass in to showInterstitial(). This is also possible if you’re using Admob medation to show AppBrain ads: set the “Parameter” in the admob interface to {"screentype":"fullscreen"}.

In early tests our new interstitial has performed quite well, especially when used within the app. If you’re using Admob mediation, it only takes a few clicks to add the AppBrain interstitial to your mediation setup as described on http://www.appbrain.com/info/sdk-docs/admob.html

If you're new to the AppBrain SDK, use the following link to sign up and generate revenue with your Android app.

Best regards,
the AppBrain team