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

RTBNativeAdLoader

@objc public class RTBNativeAdLoader : NSObject {

    /// The ``RTBNativeAdLoaderDelegate`` that will be notified with the load events
    @objc public weak var delegate: RTBNativeAdLoaderDelegate?

    /// load a new native ad with  configuration. Can be called from background threads.
    /// - Parameter configuration: native ad request configuration that is needed to request a new Ad, see ``RTBBannerRequestConfiguration``
    /// - Parameter userAgent: user agent
    @objc public func load(configuration: RTBNativeAdRequestConfiguration, userAgent: String)

    /// load a new native ad with  configuration. Must be called from the main thread.
    /// - Parameter configuration: native ad request configuration that is needed to request a new Ad, see ``RTBBannerRequestConfiguration``
    @objc public func load(configuration: RTBNativeAdRequestConfiguration)

    /// Gets the native ad data
    /// - Returns: An instance of ``RTBNativeAd``
    @objc public func getNativeAd() -> RTBNativeAd?
}

Last updated 8 months ago