Splash ad： The Splash advertisement is a full-screen advertisement displayed when the user enters the App. The Splash advertisement is a View, and the width and height are match_parent by default.
Attention： Splash advertising view: width = screen width; height needs to be >=75% screen height, otherwise it will affect billing.
Supported ad size: The size of the Splash ad is the size set when the developer requests the ad. It is recommended that the requested size be set to be consistent with the size of the display area to avoid material distortion.
SDK rendering on-screen ads： Provided by default
Template rendering on-screen advertisement： Whitelist, need to apply for activation
Remarks：There is no difference in the request method between the template rendering screen and the SDK rendering the screen advertisement, only the difference in the request parameters.
The setExpressViewAcceptedSize parameter needs to be set in the screen opening request method of template rendering, and this parameter is not required to be set when the SDK renders the screen opening advertisement.
Create TTAdNative object
Create ad request AdSlot
SDK rendering on screen
Template rendering on screen
The code ID created by the platform starts with 8 and 9 digits
Set the dimensions for requesting non-template creatives. Unit: px SDK rendering needs to be set
Set the size of the request template creative. Unit: dp template rendering needs to be set
TTSplashAd advertising interface description
Call TTAdNative.loadSplashAd(AdSlot adSlot, SplashAdListener listener, int timeOut) to load the splash ads asynchronously.
adslot is the information for requesting advertisements, SplashAdListener is the callback for the success or failure of advertisement loading, and timeOut is the maximum time allowed to load the Splash advertisement (Note: recommended timeOut> 3500ms). The calling example is as follows:
Attention： Call ad.getSplashView() to get SplashView
Advertisement request failed callback The returned error code (code) indicates the reason why the advertisement request failed，See the link for details
Splash ad loading timeout callback
The callback when the advertisement is loaded, the access party can display in this callback
Advertising interaction listener
Ad click callback
Ad display callback
Ad skip callback
Countdown to the end of the advertisement callback
The screen finishing style needs to be used with the platform, and the developer needs to check the screen finishing style on the CSJ platform before the client can get the finishing budget.
Access code example：
There are two types of finishing examples in the demo of CSJ 3600 and above:
This method requires the developer to actively call and notify the CSJ to change the logic of the dotting view at the end of the dotting animation
By passing the monitor to the CSJ, the CSJ will trigger each interface method of ISplashClickEyeListener at the right time to notify the developer to do different operations.
The recommended size of the finishing view passed by the CSJ to the developer. It is recommended that the developer use this value to determine the size of the final finishing view.
For version 3600 and later, it is triggered when the CSJ meets the conditions for opening the screen, and the developer can start to show the eye-catching animation in this callback.
In version 3600 and later, it is triggered when the CSJ closes the dotting view. Developers can do some resource recovery in this method and close the screen opening operation.
In version 3600 and later, it is triggered when the CSJ meets the conditions for opening and finishing. Developers can maintain the boolean value in this method, which is used when the two activities of the opening screen determine whether they need to show the opening and finishing.
The AnimationCallBack interface for opening the screen and finishing animation is added to the Demo:
Called when starting to execute the opening and finishing animation, animationTime is the execution time of the finishing animation, which can be defined by the developer.
Called after finishing the finishing animation
In the callback of successful onSplashAdLoad advertisement pull when the screen is opened, the related methods for initializing the screen opening are:
initSplashClickEyeData, this method mainly does two things:
1、The screen opening request method of template rendering needs to set the setExpressViewAcceptedSize parameter unit dp. The non-template rendering opening request method needs to set the setImageAcceptedSize parameter in px. Remember not to use errors
2、It is recommended that the loading timeout time of the Splash advertisement be greater than 3500ms, to ensure the display rate of the advertisement to the greatest extent, and the Splash experience, the example is set to 3500ms
3、In order to maximize revenue, all Splash advertisements must be requested in real time and cannot be cached.
4、Developers should do the process of jumping to the main page when onError(), onTimeout(), onAdSkip(), onAdTimeOver() callbacks and TTSplashAd ads are null, and remove the view on the Splash control after the jump.
5、The developer needs to make a mark in onStop() in the opening activity. Do the logic processing of jumping to the main page in onResume(). After the jump, the view on the opening control is removed.
6、If you want to add your own logo at the bottom, you need to reduce the display area of the Splash advertisement. At this time, when requesting the width and height, fill in the cropped width and height, that is, the requested size is screen width* (screen height-logo height)
7、Custom skip button, use the dotting function description, see
Online Customer Service24/7 Online Customer Service BotManual customer service, weekdays 10~ 12 o'clock/14~ 19 o'clock