| Class Info |
|---|
| public InterstitialAd extends Object Interstitial ad. |
| Qualifier and Type | Method Name and Description |
|---|---|
| String | getAdId() Obtains the ad unit ID of an ad. |
| Obtains the listener for an ad. | |
| boolean | isLoaded() Checks whether an ad has been loaded. |
| boolean | Checks whether an ad is being loaded. |
| void | Initiates a request to load an ad. |
| void | setAdId(String adId) Sets the ad unit ID for an ad. |
| void | setAdListener(AdListener adListener) Sets the listener for ad status. |
| void | setRewardAdListener(RewardAdListener rewardAdListener) Sets a listener for rewarded ad loading. |
| void | show() Shows an interstitial ad. CAUTION: This method has been deprecated. Use show(Activity activity) instead. |
| void | Shows an interstitial ad. |
| void | setVideoConfiguration(VideoConfiguration videoConfiguration) Sets video playback parameters. For details, please refer to VideoConfiguration. |
| Obtains the real-time bidding data returned to the app. | |
| void | sendBiddingSuccess(Map<String, Object> sendSuccessInfo, ReportUrlListener reportUrlListener) Reports the bidding success result. |
| void | sendBiddingFailed(Map<String, Object> sendFailInfo, ReportUrlListener reportUrlListener) Reports the bidding failure result. |
| Constructor |
|---|
| public InterstitialAd(Context context) Constructs an interstitial ad. |
Parameters
| Name | Description |
|---|---|
| context | Context. |
| Method |
|---|
| public final String getAdId() Obtains the ad unit ID of an ad. |
Returns
| Type | Description |
|---|---|
| String | Ad unit ID if it is set; null otherwise. |
| Method |
|---|
| public final AdListener getAdListener() Obtains the listener for an ad. |
Returns
| Type | Description |
|---|---|
| Ad listener if it is set; null otherwise. |
| Method |
|---|
| public final boolean isLoaded() Checks whether an ad has been loaded. |
Returns
| Type | Description |
|---|---|
| boolean | Whether an ad has been loaded.
|
| Method |
|---|
| public final boolean isLoading() Checks whether an ad is being loaded. |
Returns
| Type | Description |
|---|---|
| boolean | Whether an ad is being loaded.
|
| Method |
|---|
| public final void loadAd(AdParam adParam) Initiates a request to load an ad. |
Parameters
| Name | Description |
|---|---|
| adParam | Ad request parameter information. |
| Method |
|---|
| public final void setAdId(String adId) Sets the ad unit ID for an ad. |
Parameters
| Name | Description |
|---|---|
| adId | Ad unit ID. |
| Method |
|---|
| public final void setAdListener(AdListener adListener) Sets the listener for ad status. |
Parameters
| Name | Description |
|---|---|
| adListener | Ad listener. |
| Method |
|---|
| public final void setRewardAdListener(RewardAdListener rewardAdListener) Sets a listener for rewarded ad loading. |
Parameters
| Name | Description |
|---|---|
| rewardAdListener | Listener for rewarded ad loading. |
This method has been deprecated. Use show(Activity activity) instead.
| Method |
|---|
| public final void show() Shows an interstitial ad. |
| Method |
|---|
| public final void show(Activity activity) Shows an interstitial ad. |
Parameters
| Name | Description |
|---|---|
| activity | Activity. |
| Method |
|---|
| public final void setVideoConfiguration(VideoConfiguration videoConfiguration) Sets video playback parameters. |
Parameters
| Name | Description |
|---|---|
| videoConfiguration | Video configuration that controls video playback. |
| Method |
|---|
| public BiddingInfo getBiddingInfo() Obtains the real-time bidding data returned to the app. |
Returns
| Name | Description |
|---|---|
| Real-time bidding information returned by the ADX. |
| Method |
|---|
| public void sendBiddingSuccess(Map<String, Object> sendSuccessInfo, ReportUrlListener reportUrlListener) Reports the bidding success result. |
Parameters
| Name | Description |
|---|---|
| sendSuccessInfo | Macro replacement parameters when a bid is successful; of the Map type. The key represents the macro that needs to be replaced in the URL and is of the String type, while the value represents the corresponding replacement information and is of the Object type. For details about macro replacement, please refer to Real-Time Bidding. |
| Called when the bidding result is reported. |
| Method |
|---|
| public void sendBiddingFailed(Map<String, Object> sendFailInfo, ReportUrlListener reportUrlListener) Reports the bidding failure result. |
Parameters
| Name | Description |
|---|---|
| sendFailInfo | Macro replacement parameters for a failed bid; of the Map type. The key represents the macro that needs to be replaced in the URL and is of the String type, while the value represents the corresponding replacement information and is of the Object type. For details about macro replacement, please refer to Real-Time Bidding. |
| Called when the bidding result is reported. |