GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
-
The ad size. Don’t modify this value directly.
-
Declaration
Objective-C
NSUInteger flags
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\u003eGADAdSize\u003c/code\u003e is a structure in Google's Mobile Ads SDK that defines the size of an ad to be displayed.\u003c/p\u003e\n"],["\u003cp\u003eIt primarily uses the \u003ccode\u003esize\u003c/code\u003e property, of type \u003ccode\u003eCGSize\u003c/code\u003e, to represent the width and height of the ad.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eflags\u003c/code\u003e property is reserved for internal use and should not be modified.\u003c/p\u003e\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"]]