GoogleMobileAds Framework Reference
Stay organized with collections
Save and categorize content based on your preferences.
GADVersionNumber
struct GADVersionNumber {}
Version number information.
-
Declaration
Swift
var majorVersion: Int
Objective-C
NSInteger majorVersion
-
Declaration
Swift
var minorVersion: Int
Objective-C
NSInteger minorVersion
-
Declaration
Swift
var patchVersion: Int
Objective-C
NSInteger patchVersion
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\u003eGADVersionNumber\u003c/code\u003e struct provides version number information.\u003c/p\u003e\n"],["\u003cp\u003eIt includes \u003ccode\u003emajorVersion\u003c/code\u003e, \u003ccode\u003eminorVersion\u003c/code\u003e, and \u003ccode\u003epatchVersion\u003c/code\u003e properties to represent the respective parts of the version number.\u003c/p\u003e\n"],["\u003cp\u003eThese properties are accessible in both Swift and Objective-C, using \u003ccode\u003eInt\u003c/code\u003e and \u003ccode\u003eNSInteger\u003c/code\u003e types respectively.\u003c/p\u003e\n"]]],["The `GADVersionNumber` struct provides version information, divided into three components. It includes `majorVersion`, which is an integer representing the major release number. `minorVersion`, an integer, represents the minor release number. Finally, `patchVersion`, also an integer, indicates the patch number for the given version. These three attributes are available in both Swift and Objective-C.\n"],null,["# GoogleMobileAds Framework Reference\n\nGADVersionNumber\n================\n\n struct GADVersionNumber {}\n\nVersion number information.\n- `\n ``\n ``\n `\n\n ### [majorVersion](#/c:@S@GADVersionNumber@FI@majorVersion)\n\n `\n ` \n Major version. \n\n #### Declaration\n\n Swift \n\n var majorVersion: Int\n\n Objective-C \n\n NSInteger majorVersion\n\n- `\n ``\n ``\n `\n\n ### [minorVersion](#/c:@S@GADVersionNumber@FI@minorVersion)\n\n `\n ` \n Minor version. \n\n #### Declaration\n\n Swift \n\n var minorVersion: Int\n\n Objective-C \n\n NSInteger minorVersion\n\n- `\n ``\n ``\n `\n\n ### [patchVersion](#/c:@S@GADVersionNumber@FI@patchVersion)\n\n `\n ` \n Patch version. \n\n #### Declaration\n\n Swift \n\n var patchVersion: Int\n\n Objective-C \n\n NSInteger patchVersion"]]