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 2024-02-06 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-02-06 UTC."],[[["`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."]]],[]]