Self-rendering Feed Ads: The scene should be displayed interspersed with the application content in the application content stream, and the advertising content should be distinguished from other content in the application to prevent accidental clicks.
Supported ad sizes:
- Large picture (Picture with aspect ratio: 1.78)
- Video (Aspect ratio: 1.78 video)
- Small image (Picture with aspect ratio: 1.52)
- Group pictures (three pictures with aspect ratio: 1.52)
**Self-rendering information flow ads: ** Reclaimed and no longer available for creation
Self-rendering information flow ads use the BUNativeAdsManager object to call loadAdDataWithCount: to request ads, by setting BUNativeAdsManagerDelegate, BUVideoAdViewDelegate, BUNativeAdDelegate agents, to get the ad-related materials and click Wait for callback.
The advertisement slot object must be passed in when requesting an advertisement, and the advertisement slot ID and the basic advertisement configuration BUAdSlot must be passed in when the advertisement slot object is created.
Field name | Field definition | Field type | Remarks |
BUAdSlot | / | / | Basic configuration |
slotID | Code Bit | Code Bit ID |
Use BUAdSlot to create basic advertising information, use BUNativeAdsManager to call loadAdDataWithCount: to request ads
Note
: The number of loadAdDataWithCount requests is recommended toNo more than 3 requests at a time
Callback Method | Notes |
nativeAdsManagerSuccessToLoad: nativeAds: | Load success callback; perform related data insertion processing in this callback |
nativeAdsManager:didFailWithError: | 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 |
Callback Method | Notes |
nativeAdDidLoad: | Ad materials loaded successfully |
nativeAd:didFailWithError: | 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 |
nativeAdDidBecomeVisible: | Ad display callback |
nativeAdDidCloseOtherController: interactionType: | 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 |
nativeAdDidClick:withView: | Except for the video area, click will respond to this callback method |
nativeAd:dislikeWithReason: | dislike button click callback, you need to process the response data in this callback method |
registerContainer:withClickableViews:clickableViews
to register the bound clickable View and refresh the data source refreshData:.refreshData:
method after each material information is obtainedFor detailed access, please refer to the BUDFeedViewController class in Demo, and for the advertisement loading request part, please refer to the loadNativeAds method
Online Customer Service24/7 Online Customer Service BotManual customer service, weekdays 10~ 12 o'clock/14~ 19 o'clock