PanlgeCommon.Image.Alt.LogoPangleText|통합 문서
지식센터
해당 글은 현재 중국어 및 영어로만 제공됩니다. 빠른 시일 내에 번역을 완료하도록 최선을 다하겠습니다. 이해해 주셔서 감사합니다!

Interstitial Ads

Introduction

Interstitial Ads are a visually immersive advertising format that covers the interface of an app until closed by the user. While an Interstitial Ad can be skipped after a predetermined time limit of 5 seconds, it is designed to capture the user's attention fully, promoting an enhanced user experience.

Typically, Interstitial Ads are displayed at natural transition points within the app, such as between activities or during a game's pause between levels. By leveraging this optimal positioning, the Interstitial Ad can elicit a higher engagement rate and ensure that users remain fully immersed in the app's flow.

When an Interstitial Ad is displayed, the user is provided with a clear and concise choice to either tap on the ad and continue to its destination or close it and return to the app. This aspect of Interstitial Ads enhances the user's sense of control over the ad experience, increasing the likelihood of positive user sentiment towards the ad and ultimately benefiting the publisher's monetization efforts.

Precondition

Create an app and Interstitial ad placement on the Pangle platform

Pangle Platform Parameter Setting:

  • Orienation: Select the orientation of the video.

Interstitial Ad Implementation

  1. Create PAGInterstitialRequest object
  1. Load an Interstitial ad and Register PAGInterstitialAdLoadListener callbacks.
  2. Register ad event callbacks.
  3. Display the ad.
  1. Destroy the ad.

Load an Interstitial Ad

Loading an ad is accomplished using the load() method in the PAGInterstitialAd class. The load() method requires an ad slot id, an instance object of PAGInterstitialRequest, and it will notify you when ad loading succeeds or fails.

Create PAGInterstitialRequest object

PAGInterstitialRequest is an Ad Loading Manager. It is recommended to be the member variable of the Activity.

Load an ad and Register PAGInterstitialAdLoadListener callback

Use the method of PAGInterstitialAd to load the ad, and register the callback.

The description of PAGInterstitialAdLoadListener callback

PAGInterstitialAdLoadListener

description

OnLoadFailed

This method is invoked when an ad fails to load. It includes an error parameter of type Error that indicates what type of failure occurred. For more information, refer to the ErrorCode section

OnLoad

This method is executed when an ad material is loaded successfully.

Register Ad Event Callback

Ad event callbacks need to be registered before displaying an ad. Each method in the event callback corresponds to an event in the ad lifecycle.

The description of PAGInterstitialAdInteractionListener callback

PAGInterstitialAdInteractionListener

description

onAdShowed

This method is invoked when the ad is displayed, covering the device's screen.

onAdClicked


This method is invoked when the ad is clicked by the user.

onAdDismissed

This method is invoked when the ad disappears.

Display the Ad

An instance of the PAGInterstitialAd object will be returned when the ad is loaded successfully. Call the show()method of PAGInterstitialAd to render the ad and it needs to pass in activity.

Destroy the Ad

Destroy advertisements in time to avoid memory leaks

Test with test ads

Now you have finished the integration. If you wanna test your apps, make sure you use test ads rather than live, production ads. The easiest way to load test ads is to use test mode. It's been specially configured to return test ads for every request, and you're free to use it in your own apps while coding, testing, and debugging.

Refer to the How to add a test device? to add your device to the test devices on the Pangle platform.