GoogleMobileAds Framework Reference
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.
[[["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 2025-08-20 UTC."],[[["\u003cp\u003e\u003ccode\u003eGADAdSize\u003c/code\u003e is a structure in Google Mobile Ads SDK that defines the size of an ad.\u003c/p\u003e\n"],["\u003cp\u003eIt has two properties: \u003ccode\u003esize\u003c/code\u003e which is a \u003ccode\u003eCGSize\u003c/code\u003e representing the dimensions of the ad, and \u003ccode\u003eflags\u003c/code\u003e which is reserved for internal use.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should not directly modify the \u003ccode\u003esize\u003c/code\u003e property but should use predefined constants or methods to set the ad size.\u003c/p\u003e\n"]]],["The `GADAdSize` struct defines the dimensions of an ad. It contains two key components: `size`, which is a `CGSize` structure representing the width and height of the ad; and `flags`, a reserved `UInt` or `NSUInteger` field. The `size` attribute holds the ad's dimensions and should not be modified directly. The `flags` are designated for internal use and are reserved.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADAdSize\n=========\n\n struct GADAdSize {}\n\nAd size. \nSee\ntypedef GADAdSize\n- `\n ``\n ``\n `\n\n ### [size](#/c:@S@GADAdSize@FI@size)\n\n `\n ` \n The ad size. Don't modify this value directly. \n\n #### Declaration\n\n Swift \n\n var size: CGSize\n\n Objective-C \n\n CGSize size\n\n- `\n ``\n ``\n `\n\n ### [flags](#/c:@S@GADAdSize@FI@flags)\n\n `\n ` \n Reserved. \n\n #### Declaration\n\n Swift \n\n var flags: UInt\n\n Objective-C \n\n NSUInteger flags"]]