To request this ad type using GADAdLoader, you need to pass kGADAdLoaderAdTypeDFPBanner (see
GADAdLoaderAdTypes.h) to the |adTypes| parameter in GADAdLoader’s initializer method. If you
request this ad type, your delegate must conform to the DFPBannerAdLoaderDelegate protocol.
Required value created on the Ad Manager website. Create a new ad unit for every unique
placement of an ad in your application. Set this to the ID assigned for this placement. Ad units
are important for targeting and statistics.
Example Ad Manager ad unit ID: @/6499/example/banner
Optional array of NSValue encoded GADAdSize structs, specifying all valid sizes that are
appropriate for this slot. Never create your own GADAdSize directly. Use one of the predefined
standard ad sizes (such as kGADAdSizeBanner), or create one using the GADAdSizeFromCGSize
method.
Deprecated. Use the validAdSizes property.
Sets the receiver’s valid ad sizes to the values pointed to by the provided NULL terminated list
of GADAdSize pointers.
[[["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 2021-03-03 UTC."],[],[],null,["# GoogleMobileAds Framework Reference\n\nDFPBannerView\n=============\n\n class DFPBannerView : ../Classes/GADBannerView.html\n\nThe view that displays Ad Manager banner ads.\n\nTo request this ad type using GADAdLoader, you need to pass kGADAdLoaderAdTypeDFPBanner (see\nGADAdLoaderAdTypes.h) to the \\|adTypes\\| parameter in GADAdLoader's initializer method. If you\nrequest this ad type, your delegate must conform to the DFPBannerAdLoaderDelegate protocol.\n- `\n ``\n ``\n `\n\n ### [adUnitID](#/c:objc(cs)DFPBannerView(py)adUnitID)\n\n `\n ` \n Required value created on the Ad Manager website. Create a new ad unit for every unique\n placement of an ad in your application. Set this to the ID assigned for this placement. Ad units\n are important for targeting and statistics.\n\n Example Ad Manager ad unit ID: @/6499/example/banner \n\n #### Declaration\n\n Swift \n\n var adUnitID: String? { get set }\n\n- `\n ``\n ``\n `\n\n ### [appEventDelegate](#/c:objc(cs)DFPBannerView(py)appEventDelegate)\n\n `\n ` \n Optional delegate that is notified when creatives send app events. \n\n #### Declaration\n\n Swift \n\n @IBOutlet weak var appEventDelegate: ../Protocols/GADAppEventDelegate.html? { get set }\n\n- `\n ``\n ``\n `\n\n ### [adSizeDelegate](#/c:objc(cs)DFPBannerView(py)adSizeDelegate)\n\n `\n ` \n Optional delegate that is notified when creatives cause the banner to change size. \n\n #### Declaration\n\n Swift \n\n @IBOutlet weak var adSizeDelegate: ../Protocols/GADAdSizeDelegate.html? { get set }\n\n- `\n ``\n ``\n `\n\n ### [validAdSizes](#/c:objc(cs)DFPBannerView(py)validAdSizes)\n\n `\n ` \n Optional array of NSValue encoded GADAdSize structs, specifying all valid sizes that are\n appropriate for this slot. Never create your own GADAdSize directly. Use one of the predefined\n standard ad sizes (such as kGADAdSizeBanner), or create one using the GADAdSizeFromCGSize\n method.\n\n Example:\n\n \u003cbr /\u003e\n\n ```\n NSArray *validSizes = @[\n NSValueFromGADAdSize(kGADAdSizeBanner),\n NSValueFromGADAdSize(kGADAdSizeLargeBanner)\n ];\n\n bannerView.validAdSizes = validSizes;\n \n ```\n\n \u003cbr /\u003e\n\n #### Declaration\n\n Swift \n\n var validAdSizes: [NSValue]? { get set }\n\n- `\n ``\n ``\n `\n\n ### [correlator](#/c:objc(cs)DFPBannerView(py)correlator)\n\n `\n ` \n Correlator object for correlating this object to other ad objects. \n\n #### Declaration\n\n Swift \n\n var correlator: ../Classes/GADCorrelator.html? { get set }\n\n- `\n ``\n ``\n `\n\n ### [enableManualImpressions](#/c:objc(cs)DFPBannerView(py)enableManualImpressions)\n\n `\n ` \n Indicates that the publisher will record impressions manually when the ad becomes visible to the\n user. \n\n #### Declaration\n\n Swift \n\n var enableManualImpressions: Bool { get set }\n\n- `\n ``\n ``\n `\n\n ### [customRenderedBannerViewDelegate](#/c:objc(cs)DFPBannerView(py)customRenderedBannerViewDelegate)\n\n `\n ` \n Optional delegate object for custom rendered ads. \n\n #### Declaration\n\n Swift \n\n @IBOutlet weak var customRenderedBannerViewDelegate: ../Protocols/DFPCustomRenderedBannerViewDelegate.html? { get set }\n\n- `\n ``\n ``\n `\n\n ### [videoController](#/c:objc(cs)DFPBannerView(py)videoController)\n\n `\n ` \n Video controller for controlling video rendered by this ad view. \n\n #### Declaration\n\n Swift \n\n var videoController: ../Classes/GADVideoController.html { get }\n\n- `\n ``\n ``\n `\n\n ### [recordImpression()](#/c:objc(cs)DFPBannerView(im)recordImpression)\n\n `\n ` \n If you've set enableManualImpressions to YES, call this method when the ad is visible. \n\n #### Declaration\n\n Swift \n\n func recordImpression()\n\n- `\n ``\n ``\n `\n\n ### [resize(_:)](#/c:objc(cs)DFPBannerView(im)resize:)\n\n `\n ` \n Use this function to resize the banner view without launching a new ad request. \n\n #### Declaration\n\n Swift \n\n func resize(_ size: ../Structs/GADAdSize.html)\n\n- `\n ``\n ``\n `\n\n ### [setAdOptions(_:)](#/c:objc(cs)DFPBannerView(im)setAdOptions:)\n\n `\n ` \n Sets options that configure ad loading. \n\n #### Declaration\n\n Swift \n\n func setAdOptions(_ adOptions: [../Classes.html#/c:objc(cs)GADAdLoaderOptions])\n\n #### Parameters\n\n |-------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n | ` `*adOptions*` ` | An array of GADAdLoaderOptions objects. The array is deep copied and option objects cannot be modified after calling this method. |\n\n[Deprecated\n----------](#/Deprecated)\n\n- `\n ``\n ``\n `\n\n ### [-setValidAdSizesWithSizes:](#/c:objc(cs)DFPBannerView(im)setValidAdSizesWithSizes:)\n\n `\n ` \n Deprecated. Use the validAdSizes property.\n Sets the receiver's valid ad sizes to the values pointed to by the provided NULL terminated list\n of GADAdSize pointers.\n\n Example:\n\n \u003cbr /\u003e\n\n ```\n GADAdSize size1 = kGADAdSizeBanner;\n GADAdSize size2 = kGADAdSizeLargeBanner;\n [bannerView setValidAdSizesWithSizes:&size1, &size2, nil];\n \n ```\n\n \u003cbr /\u003e"]]