...
This SDK requires Android 4 or later, and Android SDK version 14 or higher.
In order to show ads, you must have a valid Xandr placement ID. This is a numeric ID that represents a context in an application where ads can be shown
Info |
---|
Tip: Google Play In order to enable the Android Advertising ID (AAID) for frequency capping and mobile app targeting, you must include Google Play Services as a dependency of your app. XandrE-Planning's SDK will still function without Google Play Services, but you won't have access to those features. |
...
Call
InterstitialAdView.loadAd()
to fetch the ad contents from our server and cache them locally. Note that any ad content is rendered in a WebView at the time it is fetched from the ad server and cached. This means that any third-party tracking pixels that are part of the ad content will be fired at the time of the call toloadAd()
, not when the call toshow()
is made at a later time.When you're ready to show the interstitial ad to the user, call
show()
. This needs to happen within approximately 4 minutes of the call toloadAd()
in order for the impression to be counted by XandrE-Planning. (For the exact timing in milliseconds, see the value ofInterstitialAdView.MAX_AGE
in the source code.)
...