APP Open

The screen-opening advertisement is an ad format that displays full-screen coverage when the user's application is started. The screen-opening advertisement has a higher priority than the application form, and it can be forced to be watched and displayed by the user, and the initial application display is realized. This guide completes the integration and display of the screen-opening advertisement

Before you begin

You should finish the step of the Guide first.

Initialization

Complete the control initialization on the page Oncreate method

FlashViewControl view = new FlashViewControl();
view.setNewFlashView(this, "UnitId");

Configure display form

By default, the opening screen advertisement is displayed as the top layer of the full screen. If the user does not configure the top window of the current application, it may not be displayed correctly due to the problem of obtaining the top permission of the device. It is recommended that the user configure the default.

view.setWindow(getWindow());

LoadAd

After the ad is loaded, after the ad data is loaded and processed, it is automatically loaded and displayed on the page.

view.loadAd();

Precautions

The opening screen advertisement is a mandatory guidance type, so the loading time is recommended to be used on the first page, and after the advertisement is loaded, the user cannot click the button to return and can only end the advertisement business process after the advertisement is skipped or played. Screen ads are automatically recycled by default and they do not require manual operation by the user.

In order to improve the user's experience of opening the screen, the advertisement adopts a cache mechanism. The user will not display the advertisement for the first time. After the cache is loaded, the advertisement content can be quickly displayed in the subsequent startup.

Scenes to be used

The opening screen advertisement adopts the method of page addition, which is separated from the binding of the activity page. Users can use the self-built opening page or the homepage to load directly. If the homepage loading method is adopted, the advertisement will be automatically recycled and managed after playing, and no user operation is required. In the opening page mode, the user needs to close the page according to the callback of the advertisement loading. The example is as follows:

view.setListener(new AdListener() {
            @Override
            public void adClose() {
                finish();
            }
        });

Advertising event monitoring settings

Event listener description reference

Last updated