Card Ad
Declare DisplayAd class
DisplayAd classimport com.intowow.sdk.DisplayAd;
private final static String PLACEMENT_NAME = "Obtain from your Intowow account manager";
private DisplayAd mDisplayAd = null;Initialize DisplayAd class
DisplayAd classmDisplayAd = new DisplayAd(mActivity);NOTE :
please make sure to pass Activity on to the DisplayAd, if you can't, then you may need to pass it on mDisplayAd.getView(activity); API.
Setup the RequestInfo
You need to set the placement ID and the request timeout in requestInfo.
RequestInfo requestInfo = new RequestInfo();
requestInfo.setPlacement(PLACEMENT_NAME);
requestInfo.setTimeout(timeout);Load ad with RequestInfo
loadAdInstant
With loadAdInstant , our synchronous method , You will get the result of loading ad by CERequestResult directly.
loadAdAsync
loadAdAsync is an asynchronous method, you can set timeout via RequestInfo, and get the result of ad request by CEAdRequestListener.
Add CEAdListener to get the ad event callback.
CEAdListener to get the ad event callback.Release ad
If you want to get more information about integration, please refer to DisplayAd class.
Last updated