Rewarded Video Ad
If you use jar for integration, please declare InterstitialAdActivity to AndroidManifest.xml
InterstitialAdActivity to AndroidManifest.xml<activity
android:name="com.intowow.sdk.InterstitialAdActivity"
android:configChanges="orientation|screenSize"
android:launchMode="singleTask"
android:screenOrientation="portrait"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" >
</activity>Initialize RewardedVideoAd class
RewardedVideoAd classimport com.intowow.sdk.RewardedVideoAd;
private RewardedVideoAd mRewardedVideoAd = null;
private final static String PLACEMENT_NAME = "Obtain from your Intowow account manager";
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
mRewardedVideoAd = new RewardedVideoAd(mActivity);
}Setup the RequestInfo
Load ad with RequestInfo
loadAdInstant
loadAdAsync
Add CERewardedVideoAdListener to get the result of ad request and ad event callback.
CERewardedVideoAdListener to get the result of ad request and ad event callback.Release ad when the Activity is destroyed
Activity is destroyedHandle Landscape Orientation
If you want to get more information about integration, please refer to RewardedVideoAd class.
Last updated