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 Definition||Field Name||Field Type||Remarks|
|slotID||Code Bit||Code Bit ID|
Use BUAdSlot to create basic advertising information, use BUNativeAdsManager to call loadAdDataWithCount: to request ads
BUNativeAdsManager *nad = [BUNativeAdsManager new]; BUAdSlot *slot1 = [[BUAdSlot alloc] init]; slot1.ID = self.viewModel.slotID; slot1.AdType = BUAdSlotAdTypeFeed; slot1.position = BUAdSlotPositionTop; slot1.imgSize = [BUSize sizeBy:BUProposalSize_Feed690_388]; nad.adslot = slot1; nad.delegate = self; self.adManager = nad; [nad loadAdDataWithCount:3];
Note: The number of loadAdDataWithCount requests is recommended to
No more than 3 requests at a time
|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|
|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:clickableViewsto register the bound clickable View and refresh the data source refreshData:.
refreshData:method after each material information is obtained
For 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
Self-serve registrationSign up now.