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.
[null,null,["Last updated 2025-08-20 UTC."],[[["\u003cp\u003eThe \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 version components.\u003c/p\u003e\n"],["\u003cp\u003eEach version component is accessible as an integer using properties like \u003ccode\u003emajorVersion\u003c/code\u003e, \u003ccode\u003eminorVersion\u003c/code\u003e, and \u003ccode\u003epatchVersion\u003c/code\u003e in both Swift and Objective-C.\u003c/p\u003e\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"]]