Enumerations

The following enumerations are available globally.

  • Enum representing different types of native data assets.

    See more

    Declaration

    Swift

    @objc
    public enum DataAsset : Int
  • Enum representing various types of native data assets that can be used in ads.

    Each case represents a different type of data that can be provided in a native ad response. Values are defined according to the type of data they represent, such as descriptive text, ratings, or pricing information.

    See more

    Declaration

    Swift

    @objc
    public enum NativeDataAssetType : Int
  • Enum representing various types of native image assets used in ads.

    Each case corresponds to a different type of image asset that can be used in native ads. Values are defined according to the role or importance of the image in the ad.

    See more

    Declaration

    Swift

    @objc
    public enum NativeImageAssetType : Int
  • An enumeration representing gender options for ad targeting or other purposes. This enum is used to specify different gender options and is intended for use in contexts where gender information may be relevant.

    • unknown: Gender is not specified or unknown.
    • male: Represents the male gender.
    • female: Represents the female gender.
    • other: Represents any other gender that does not fit into the male or female categories.
    See more

    Declaration

    Swift

    @objc(PBMGender)
    public enum Gender : Int
  • Enum representing the initialization status of the Prebid SDK.

    This enum provides various statuses that indicate the result of the Prebid SDK initialization process. It helps in understanding whether the SDK was successfully initialized or if there were issues during the initialization.

    See more

    Declaration

    Swift

    @objc
    public enum PrebidInitializationStatus : Int
  • PrebidHost represents various Prebid server hosts used for ad bidding.

    See more

    Declaration

    Swift

    @objc
    public enum PrebidHost : Int
  • Ad position on screen. Refer to List 5.4: The following table specifies the position of the ad as a relative measure of visibility or prominence. This OpenRTB table has values derived from the Inventory Quality Guidelines (IQG). Practitioners should keep in sync with updates to the IQG values as published on IAB.com. Values “4” - “7” apply to apps per the mobile addendum to IQG version 2.1. Value Description 0 Unknown 1 Above the Fold 2 DEPRECATED - May or may not be initially visible depending on screen size/resolution. 3 Below the Fold 4 Header 5 Footer 6 Sidebar 7 Full Screen

    See more

    Declaration

    Swift

    @objc(PBMAdPosition)
    public enum AdPosition : Int
  • Enum representing various positions on the screen.

    This enum defines positions that can be used for placing elements within an ad. The positions are typically used to determine where controls or components should be located within the ad’s user interface.

    See more

    Declaration

    Swift

    @objc(PBMPosition)
    public enum Position : Int
  • Enum representing the result codes for various operations within the Prebid SDK.

    This enum provides a range of result codes indicating different outcomes or errors that may occur during SDK operations. Each case corresponds to a specific result or error, which helps in diagnosing issues and understanding the status of SDK operations.

    See more

    Declaration

    Swift

    @objc
    public enum ResultCode : Int