To discuss and provide feedback on our products, join the official AdMob Discord channel in the Google Advertising and Measurement Community server.

GoogleMobileAds Framework Reference

  • GADAdFormat is an enum that defines the format of an ad request, such as banner, interstitial, rewarded, native, rewarded interstitial, and app open.

  • Each ad format is represented by a specific case in Swift and a constant in Objective-C.

  • The values assigned to each ad format are sequential integers, starting from 0 for banner and incrementing for each subsequent format.

  • Developers use GADAdFormat to specify the desired ad type when making ad requests within the Google Mobile Ads SDK.

  • This enum ensures that both Swift and Objective-C can seamlessly integrate with the ad request process.

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

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月20日 UTC.