Nimbus

public class Nimbus

Nimbus SDK global object

  • Singleton

    Declaration

    Swift

    public static let shared: Nimbus
  • SDK Version

    Declaration

    Swift

    public let version: String
  • Unique session id for the current app session

    Declaration

    Swift

    public var sessionId: String
  • Whether the ads are subject to the COPPA regulations established by the USA FTC

    Declaration

    Swift

    public var coppa: Bool?
  • Whether Nimbus test mode is on. Default: false

    Declaration

    Swift

    public var testMode: Bool
  • SDK wide logger. Override this if you want to do custom logging.

    Declaration

    Swift

    public var logger: Logger
  • Log level. Default: NimbusLogLevel.off

    Declaration

    Swift

    public var logLevel: NimbusLogLevel { get set }
  • Renderers used for given auction types. Override this to use your own.

    Declaration

    Swift

    public var renderers: [NimbusRendererType : AdRenderer] { get set }
  • Configure CCPA / US privacy string.

    The CCPA privacy string is a 4 character string in the following format:

    • Integer - Privacy string version.
    • [Y, N, -] - Publisher has provided explicit user notice.
    • [Y, N, -] - User opted out of sale
    • [Y, N, -] - Publisher operating under the Limited Service Provider Agreement

    If the user does not fall within a US Privacy jurisdiction, hyphens should be used in the last three positions, generating this privacy string: “1—”

    Declaration

    Swift

    public var usPrivacyString: String?
  • Tracks ad viewability

    Declaration

    Swift

    public var viewabilityProvider: NimbusViewabilityProvider?
  • Initializes the Nimbus SDK, call inside AppDelegate’s didFinishLaunchingWithOptions

    Declaration

    Swift

    public func initialize(publisher: String, apiKey: String)

    Parameters

    publisher

    Nimbus publisher name

    apiKey

    Nimbus API key