GoogleMobileAds Framework Reference

  • GADAdFormat is an enum defining the format of an ad request, such as banner, interstitial, or rewarded.

  • It includes various ad formats like banner, interstitial, rewarded, native, rewarded interstitial, and app open.

  • Each format is represented by an integer value, accessible through both Swift and Objective-C.

  • Developers use GADAdFormat to specify the desired ad type when making ad requests.

GADAdFormat

enum GADAdFormat : NSInteger {}

Requested ad format.

  • < Banner.

    Declaration

    Swift

    case banner = 0

    Objective-C

    GADAdFormatBanner = 0
  • < Interstitial.

    Declaration

    Swift

    case interstitial = 1

    Objective-C

    GADAdFormatInterstitial = 1
  • < Rewarded.

    Declaration

    Swift

    case rewarded = 2

    Objective-C

    GADAdFormatRewarded = 2
  • < Native.

    Declaration

    Swift

    case native = 3

    Objective-C

    GADAdFormatNative = 3
  • < Rewarded interstitial.

    Declaration

    Swift

    case rewardedInterstitial = 4

    Objective-C

    GADAdFormatRewardedInterstitial = 4
  • < App open.

    Declaration

    Swift

    case appOpen = 6

    Objective-C

    GADAdFormatAppOpen = 6