本清单旨在帮助您系统性地核查应用集成流程,确保广告SDK的无缝对接与高效运行。
App Key 和 App ID,并确保各广告格式的广告位ID与TopOn后台配置一致;同时请检查应用Bundle ID与配置匹配广告位IDATRewardedVideoDelegate)loadADWithPlacementID)rewardedVideoReadyForPlacementID)showRewardedVideoWithPlacementID:config:inViewController:delegate:),避免在- (void)viewWillAppear:(BOOL)animated和- (void)viewWillDisappear:(BOOL)animated中调用展示APIdidFailToLoadADWithPlacementID中必须延迟后发起预加载,详情请见示例 Code ;rewardedVideoDidFailToPlayForPlacementID中不需要延迟; rewardedVideoDidCloseForPlacementID中不需要延迟)didRevenueForPlacementID)广告位IDATInterstitialDelegate)loadADWithPlacementID)interstitialReadyForPlacementID)showInterstitialWithPlacementID:showConfig:inViewController:delegate:nativeMixViewBlock:),避免在- (void)viewWillAppear:(BOOL)animated和- (void)viewWillDisappear:(BOOL)animated中调用展示APIdidFailToLoadADWithPlacementID中必须延迟后发起预加载,详情请见示例 Code ;interstitialDidFailToPlayVideoForPlacementID中不需要延迟; interstitialDidCloseForPlacementID中不需要延迟)didRevenueForPlacementID)广告位IDATSplashDelegate)loadADWithPlacementID)showSplashWithPlacementID:config:window:inViewController:extra:delegate:)showAdWithWindow:viewController:withExtra:),避免在- (void)viewWillAppear:(BOOL)animated和- (void)viewWillDisappear:(BOOL)animated中调用展示APIkATSplashExtraTolerateTimeoutKey)splashDidCloseForPlacementID中进行预加载)didRevenueForPlacementID)广告位IDATBannerDelegate)kATAdLoadingExtraBannerAdSizeKey)loadADWithPlacementID)bannerAdReadyForPlacementID)retrieveBannerViewForPlacementID)ATBannerView及其容器的可见性,以正确呈现广告ATBannerView的代理delegate,及其presentingViewControllerrevenueDelegate)自动刷新功能配置:[Taku 后台 > 应用管理 > 选择目标应用 > 进入目标横幅广告位 > 高级设置]isHidden,永久不展示时需要销毁destroyBanner广告位IDATNativeADDelegate)loadADWithPlacementID)ATNativeADConfiguration来进行展示前的配置getNativeAdOfferWithPlacementID正确创建ATNativeAdOffer,并且判空后使用ATNativeAdOffer中的信息内容去给组件正确赋值与布局[[ATNativeADView alloc] initWithConfiguration:config currentOffer:placementID:]正确创建原生广告视图[nativeADView getMediaView]获取mediaView对象,并判空,如不为空需要正确添加布局registerClickableViewArray正确传入注册点击事件的UI控件ATNativePrepareInfo loadPrepareInfo:正确传入绑定待渲染的UI控件rendererWithNativeAdView:selfRenderView:adInfo:进行渲染,之后设置nativeADView为可见didFailToLoadADWithPlacementID中必须延迟后发起预加载,详情请见示例 Code ;didTapCloseButtonInAdView中不需要延迟)didRevenueForPlacementID)destroyNative,ATNativeAdOffer=nil)广告位IDATNativeADDelegate)loadADWithPlacementID)ATNativeADConfiguration来进行展示前的配置getNativeAdOfferWithPlacementID正确创建ATNativeAdOffer,并且判空后使用[[ATNativeADView alloc] initWithConfiguration:config currentOffer:placementID:]正确创建原生广告视图rendererWithNativeAdView:selfRenderView:adInfo:进行渲染,之后设置nativeADView为可见didFailToLoadADWithPlacementID中必须延迟后发起预加载,详情请见示例 Code ; didTapCloseButtonInAdView中不需要延迟)didRevenueForPlacementID)destroyNative)[[ATDebuggerAPI sharedInstance] showDebuggerInViewController:vc showType:ATShowDebugUIPresent debugkey:@"填入您的DebugKey,DebugKey在后台->账号管理->Key中获取,DebugKey需要与AppID,AppKey对应"];)[ATAPI setLogEnabled:YES];)