GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
enum GADAdFormat : NSInteger {}
Requested ad format.
-
Declaration
Objective-C
GADAdFormatBanner = 0
-
Declaration
Swift
case interstitial = 1
Objective-C
GADAdFormatInterstitial = 1
-
Declaration
Objective-C
GADAdFormatRewarded = 2
-
Declaration
Objective-C
GADAdFormatNative = 3
-
Declaration
Swift
case rewardedInterstitial = 4
Objective-C
GADAdFormatRewardedInterstitial = 4
-
Declaration
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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADAdFormat\u003c/code\u003e is an enum defining the format of an ad request, such as banner, interstitial, or rewarded.\u003c/p\u003e\n"],["\u003cp\u003eIt includes various ad formats like banner, interstitial, rewarded, native, rewarded interstitial, and app open.\u003c/p\u003e\n"],["\u003cp\u003eEach format is represented by an integer value, accessible through both Swift and Objective-C.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers use \u003ccode\u003eGADAdFormat\u003c/code\u003e to specify the desired ad type when making ad requests.\u003c/p\u003e\n"]]],["The `GADAdFormat` enum defines requested ad formats. It includes `banner` (0), `interstitial` (1), `rewarded` (2), `native` (3), `rewardedInterstitial` (4), and `appOpen` (6). Each format has a corresponding integer value in both Swift and Objective-C. These values represent the specific type of ad requested when using Google AdMob services. Each declaration is provided for both programming languages.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADAdFormat\n===========\n\n enum GADAdFormat : NSInteger {}\n\nRequested ad format.\n- `\n ``\n ``\n `\n\n ### [GADAdFormatBanner](#/c:@E@GADAdFormat@GADAdFormatBanner)\n\n `\n ` \n \\\u003c Banner. \n\n #### Declaration\n\n Swift \n\n case banner = 0\n\n Objective-C \n\n GADAdFormatBanner = 0\n\n- `\n ``\n ``\n `\n\n ### [GADAdFormatInterstitial](#/c:@E@GADAdFormat@GADAdFormatInterstitial)\n\n `\n ` \n \\\u003c Interstitial. \n\n #### Declaration\n\n Swift \n\n case interstitial = 1\n\n Objective-C \n\n GADAdFormatInterstitial = 1\n\n- `\n ``\n ``\n `\n\n ### [GADAdFormatRewarded](#/c:@E@GADAdFormat@GADAdFormatRewarded)\n\n `\n ` \n \\\u003c Rewarded. \n\n #### Declaration\n\n Swift \n\n case rewarded = 2\n\n Objective-C \n\n GADAdFormatRewarded = 2\n\n- `\n ``\n ``\n `\n\n ### [GADAdFormatNative](#/c:@E@GADAdFormat@GADAdFormatNative)\n\n `\n ` \n \\\u003c Native. \n\n #### Declaration\n\n Swift \n\n case native = 3\n\n Objective-C \n\n GADAdFormatNative = 3\n\n- `\n ``\n ``\n `\n\n ### [GADAdFormatRewardedInterstitial](#/c:@E@GADAdFormat@GADAdFormatRewardedInterstitial)\n\n `\n ` \n \\\u003c Rewarded interstitial. \n\n #### Declaration\n\n Swift \n\n case rewardedInterstitial = 4\n\n Objective-C \n\n GADAdFormatRewardedInterstitial = 4\n\n- `\n ``\n ``\n `\n\n ### [GADAdFormatAppOpen](#/c:@E@GADAdFormat@GADAdFormatAppOpen)\n\n `\n ` \n \\\u003c App open. \n\n #### Declaration\n\n Swift \n\n case appOpen = 6\n\n Objective-C \n\n GADAdFormatAppOpen = 6"]]