GoogleMobileAds Framework Reference
Structures
The following structures are available globally.
-
Declaration
Objective-C
struct GADAdSize {}
-
Version number information.
Declaration
Swift
struct VersionNumber
Objective-C
struct GADVersionNumber {}
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-02-04 UTC.
[null,null,["Last updated 2025-02-04 UTC."],[[["Globally available structures include `GADAdSize` for defining ad dimensions and `GADVersionNumber` for accessing version information."],["`GADAdSize` provides a way to specify the width and height of an ad unit using the `GADAdSize` type."],["`GADVersionNumber` allows developers to retrieve information about the version of the Google Mobile Ads SDK."]]],["The provided content defines two globally available structures: `GADAdSize` and `GADVersionNumber`. `GADAdSize` represents the size of an ad, and it is defined as a struct in both Swift (`struct AdSize`) and Objective-C (`struct GADAdSize {}`). `GADVersionNumber` holds version number information and also uses a struct definition in Swift (`struct VersionNumber`) and Objective-C (`struct GADVersionNumber {}`). These structures serve to provide specific data in code.\n"]]