App Open Ads - cleveradssolutions/CAS-Android Wiki

This guide is intended for publishers integrating app open ads using the CAS Android SDK.

App open ads are a special ad format intended for publishers wishing to monetize their app load screens. App open ads can be closed at any time, and are designed to be shown when your users bring your app to the foreground.

App open ads automatically show a small branding area so users know they're in your app.
More details are described in the Google Mobile Ads manual.

Pros compared to Interstitial ads:


Create the App Open Ad

You can use one of the following static methods to create App Open Ads:

appOpenAd = CASAppOpen.create(managerId)
appOpenAd = CASAppOpen.create(manager)

Load the ad

To load an App Open ad, call the CASAppOpen object's loadAd() method. This method accepts parameter:

appOpenAd.loadAd(this, isLandscape, new LoadAdCallback(){
   public void onAdFailedToLoad(AdError  error) {
       // Called when an app open ad has failed to load.

   public void onAdLoaded() {
       // Called when an app open ad has loaded.

⚠️ Attempting to load a new ad from the onAdFailedToLoad() method is strongly discouraged. If you must load an ad from onAdFailedToLoad(), limit ad load retries to avoid continuous failed ad requests in situations such as limited network connectivity.

Handle fullscreen callback events

A setContentCallback() method passing in a AdCallback anonymous class to handle events such as when the ad is presented, fails to present, or when it is dismissed. If a user returns to your app after having left it by clicking on an app open ad, it makes sure they're not presented with another app open ad.

appOpenAd.setContentCallback(new AdCallback(){...});

Check the ad availability

You can ask for the ad availability directly by calling the following function:

boolean adLoaded = appOpenAd.isAdAvailable();

Show the ad

In order to show the ad, you'll need an Activity context.;

⚠️ Once you’ve successfully call show(), you will have shown your user an App Open Ad.
In the case you want to serve another App Open Ad, you must repeat loadAd() to request an additional ad.

Cold starts and loading screens

The documentation thus far assumes that you only show app open ads when users foreground your app when it is suspended in memory. "Cold starts" occur when your app is launched but was not previously suspended in memory.

An example of a cold start is when a user opens your app for the first time. With cold starts, you won't have a previously loaded app open ad that's ready to be shown right away. The delay between when you request an ad and receive an ad back can create a situation where users are able to briefly use your app before being surprised by an out of context ad. This should be avoided because it is a bad user experience.

The preferred way to use app open ads on cold starts is to use a loading screen to load your game or app assets, and to only show the ad from the loading screen. If your app has completed loading and has sent the user to the main content of your app, do not show the ad.

Key Point: In order to continue loading app assets while the app open ad is being displayed, always load assets in a background thread.

Best practices

App open ads help you monetize your app's loading screen, when the app first launches and during app switches, but it's important to keep best practices in mind so that your users enjoy using your app. It's best to:

Sample use case

What’s Next?