The new template rendering interstitial ads developers can choose the size of the ads: divided into full-screen and interstitial, developers can choose the type of ads to be placed in both full-screen and interstitial scenarios, which are picture+video, video only, and picture only.
**Template rendering interstitial ads: **Open by default
Dual-ended 3550 and above SDK
The new template rendering interstitial uses the BUNativeExpressFullscreenVideoAd object to call loadAdData to request ads, and the BUNativeExpressFullscreenVideoAd object to call showAdFromRootViewController: to display the ads. By setting the BUNativeExpressFullscreenVideoAdDelegate agent, get the ads, Display, click, close and other callbacks.
You need to pass in the ad slot object when requesting an ad, and the ad slot id must be passed in when the ad slot object is created
Code Slot ID
Use BUNativeExpressFullscreenVideoAd to create an object, use BUNativeExpressFullscreenVideoAd to call loadAdData to request ads
The returned error code (error) indicates the reason why the ad failed to load. Please refer to the link for details of all error codes. Link
Rendering failed, the rendering failed due to network or hardware reasons, you can replace the mobile phone or network environment test. It is recommended to upgrade to the latest version of the CSJ SDK
Ad material loaded successfully
Video/picture download is complete, it is recommended that developers display ads after this callback
This callback enters to prove that the ad material has been successfully loaded
This callback method can locate the error code corresponding to the specific failure reason, and just print the error. Please see the link for details of all error codes. Link
Rendering success callback method
Entering this callback proves that the rendering failure condition is triggered, and the mobile phone or network environment test can be replaced. It is recommended to directly upgrade to the latest version of the CSJ platform
Advertising is displayed in this callback method to ensure smooth playback and smooth display, and a better user experience.
New template interstitial ads will be displayed soon callback
The new template interstitial ad has been displayed callback
Clicking to skip will trigger this callback. If you need to do related logic processing when the user clicks to skip, you can handle it in this callback
This callback method knows that the user has closed the advertisement, and the corresponding logic processing when the user closes the advertisement can be performed in this callback method
Clicking the close button will trigger this callback
This callback will be triggered when the ad is played
This callback can know the ad type of the new template interstitial
This callback is called when the ad jumps to another controller and the controller is closed. InteractionType: This parameter can be distinguished from the opened appstore/webpage/video ad details page
By setting BUNativeExpressFullscreenVideoAdDelegate agent, get callbacks such as advertisement, display, click, and close. For other proxy methods, please refer to the section of BUDExpressFullScreenVideoViewController#pragma mark-BUFullscreenVideoAdDelegate in demo
Call the showAdFromRootViewController: method to display the new template interstitial ad, where the currently displayed page needs to be passed in. Be sure to set rootViewController, which is the viewController needed to display ads and jump landing pages. It is recommended that developers display ads after receiving the nativeExpressFullscreenVideoAdDidDownLoadVideo callback to ensure playback and display Effect.
Display ads after receiving the nativeExpressFullscreenVideoAdDidDownLoadVideo callback to ensure the playback and display effects.
**The ads with the same request can only be counted for one impression at most, and repeated impressions will be filtered by the system. ** Therefore, it is recommended that developers set the original ad object to nil in the nativeExpressFullscreenVideoAdDidClose callback after the user has watched the ad to ensure that the ad object is the new request object
For detailed access, please refer to the BUDExpressFullScreenVideoViewController class in Demo, the advertisement loading request part can refer to the loadFullscreenVideoAdWithSlotID method, and the advertisement display part can refer to the showFullscreenVideoAd method
Online Customer Service24/7 Online Customer Service BotManual customer service, weekdays 10~ 12 o'clock/14~ 19 o'clock