RTBSDK iOS Integration
Release Notes
  • Start
    • Setup
      • Cocoapods
      • Swift Package Manager
      • Configure RTBSDK
    • Consent
  • Formats
    • Banners
    • Fullscreen (Interstitial)
    • Native Ads
    • Advanced
      • Separate Loading and Rendering of Banner Ads
  • Other
    • AdMob Custom Events
    • AppLovin Custom Adapter
    • Reference
      • Classes
        • RTBSDKManager
        • RTBBannerView
        • RTBBannerAdProvider
        • RTBBannerBid
        • RTBBannerRequestConfiguration
        • RTBBannerSize
        • RTBFullscreenAd
        • RTBFullscreenRequestConfiguration
        • RTBNativeAdLoader
        • RTBNativeAd
        • RTBNativeAdRequestConfiguration
        • RTBUserTargeting
        • RTBBidInfo
      • Protocols
        • RTBBannerViewDelegate
        • RTBBannerAdLoadDelegate
        • RTBBannerAdInteractionDelegate
        • RTBFullscreenDelegate
        • RTBNativeAdLoaderDelegate
        • RTBNativeAdInteractionDelegate
      • Enumerations
        • RTBLogLevel
        • RTBGender
  • Sample App
Powered by GitBook
On this page
  1. Other
  2. Reference
  3. Classes

RTBBannerAdProvider

@objc public class RTBBannerAdProvider : NSObject {

    /// Load a new banner ad with  configuration
    /// - Parameters:
    ///   - configuration: banner request configuration that is needed to request a new Ad, see ``RTBBannerRequestConfiguration``
    ///   - size: banner size
    ///   - userAgent: user agent
    ///   - loadDelegate: the ``RTBBannerAdLoadDelegate`` that will be notified with the load result
    @objc public static func load(configuration: RTBBannerRequestConfiguration, size: RTBBannerSize, userAgent: String, loadDelegate: RTBBannerAdLoadDelegate)

    /// Get the banner view using a previously loaded bid info
    /// - Parameters:
    ///   - bannerBid: An instance of ``RTBBannerBid``
    ///   - delegate: The ``RTBBannerAdInteractionDelegate`` that will be notified with the ad interactions like clicks, pause, etc.
    /// - Returns: A view to be rendered
    @objc public static func getBannerView(bannerBid: RTBBannerBid, delegate: RTBBannerAdInteractionDelegate) -> UIView?
}

Last updated 9 months ago