Skip to content

Commit

Permalink
Update Podfile.lock in iOS Objective-C and Swift samples to reference…
Browse files Browse the repository at this point in the history
… GMA iOS SDK v12.0.0.

PiperOrigin-RevId: 723207649
  • Loading branch information
Justin Malandruccolo authored and copybara-github committed Feb 4, 2025
1 parent 36467ac commit d24f305
Show file tree
Hide file tree
Showing 74 changed files with 411 additions and 414 deletions.
4 changes: 2 additions & 2 deletions Objective-C/admanager/AdManagerAppOpenExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 658646168ee446c4022e07992199fab54e45cd62
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admanager/AdManagerBannerExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: e5bc5859f9fce951271d7047d213613991e150de
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 9a23ef4e6d07afa821b4b4edb16adb59f728584b
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 81c1c990c8864db49bda527c9d5e3119f3d198b7
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 78238ffaa9289bca848f3d9541aeb040ff5a3507
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: d8b1bfee2550e66919e9f2c01a5bd8edc4b301b1
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/AppOpenExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: cd58a28cff6ab0e6d911241215a56a35f33a5dcb
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/BannerExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 1aacf31ba1a2d45f587a319113e0ac04986fe789
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/FullScreenNativeExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: f150cc83e5da26197c06f8af71ebdfe47102251a
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/InterstitialExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 7d96f7034723197e81b3e6844bec2d18e3e8407e
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/NativeAdvancedExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 4e23edd623ef3dc3ff42ad02f443f649c93e7f78
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/RewardedInterstitialExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 81550a262179e26f478b12ff1abefc42f173f822
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/admob/RewardedVideoExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 7cc05450cd45b8ffb39ca4f4e752685e828db556
Expand Down
2 changes: 1 addition & 1 deletion Objective-C/advanced/APIDemo/APIDemo/CustomControlsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ - (IBAction)playPause:(id)sender {

- (IBAction)muteUnmute:(id)sender {
self.muted = !self.muted;
[self.mediaContent.videoController setMute:self.muted];
self.mediaContent.videoController.muted = self.muted;
}

- (void)setPlaying:(BOOL)playing {
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/advanced/APIDemo/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 2f175879f51dd400c37df0b17c77db5adc74544f
Expand Down
4 changes: 2 additions & 2 deletions Objective-C/advanced/InlineAdaptiveBannerExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: 86ca2ac452627ef778694cb57c6f6d6bb2072747
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class AppOpenAdManager: NSObject {
/// https://support.google.com/admanager/answer/9351867?hl=en
let timeoutInterval: TimeInterval = 4 * 3_600
/// The app open ad.
var appOpenAd: GADAppOpenAd?
var appOpenAd: AppOpenAd?
/// Maintains a reference to the delegate.
weak var appOpenAdManagerDelegate: AppOpenAdManagerDelegate?
/// Keeps track of if an app open ad is loading.
Expand Down Expand Up @@ -71,8 +71,8 @@ class AppOpenAdManager: NSObject {
print("Start loading app open ad.")

do {
appOpenAd = try await GADAppOpenAd.load(
withAdUnitID: "/21775744923/example/app-open", request: GAMRequest())
appOpenAd = try await AppOpenAd.load(
with: "/21775744923/example/app-open", request: AdManagerRequest())
appOpenAd?.fullScreenContentDelegate = self
loadTime = Date()
} catch {
Expand Down Expand Up @@ -105,17 +105,17 @@ class AppOpenAdManager: NSObject {
if let ad = appOpenAd {
print("App open ad will be displayed.")
isShowingAd = true
ad.present(fromRootViewController: nil)
ad.present(from: nil)
}
}
}

extension AppOpenAdManager: @preconcurrency GADFullScreenContentDelegate {
func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
extension AppOpenAdManager: FullScreenContentDelegate {
func adWillPresentFullScreenContent(_ ad: FullScreenPresentingAd) {
print("App open ad is will be presented.")
}

func adDidDismissFullScreenContent(_ ad: GADFullScreenPresentingAd) {
func adDidDismissFullScreenContent(_ ad: FullScreenPresentingAd) {
appOpenAd = nil
isShowingAd = false
print("App open ad was dismissed.")
Expand All @@ -126,7 +126,7 @@ extension AppOpenAdManager: @preconcurrency GADFullScreenContentDelegate {
}

func ad(
_ ad: GADFullScreenPresentingAd,
_ ad: FullScreenPresentingAd,
didFailToPresentFullScreenContentWithError error: Error
) {
appOpenAd = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class MainViewController: UIViewController {
@IBAction func adInspectorTapped(_ sender: UIBarButtonItem) {
Task {
do {
try await GADMobileAds.sharedInstance().presentAdInspector(from: self)
try await MobileAds.shared.presentAdInspector(from: self)
} catch {
let alertController = UIAlertController(
title: error.localizedDescription, message: "Please try again later.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ class SplashViewController: UIViewController, AppOpenAdManagerDelegate {
self.isMobileAdsStartCalled = true

// Initialize the Google Mobile Ads SDK.
GADMobileAds.sharedInstance().start()
MobileAds.shared.start()

// Load an ad.
Task {
Expand Down
4 changes: 2 additions & 2 deletions Swift/admanager/AdManagerAppOpenExample/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- Google-Mobile-Ads-SDK (11.13.0):
- Google-Mobile-Ads-SDK (12.0.0):
- GoogleUserMessagingPlatform (>= 1.1)
- GoogleUserMessagingPlatform (2.7.0)

Expand All @@ -13,7 +13,7 @@ SPEC REPOS:
- GoogleUserMessagingPlatform

SPEC CHECKSUMS:
Google-Mobile-Ads-SDK: 14f57f2dc33532a24db288897e26494640810407
Google-Mobile-Ads-SDK: 14a8e52164a89a44178bd67d544f207969f8d69a
GoogleUserMessagingPlatform: a8b56893477f67212fbc8411c139e61d463349f5

PODFILE CHECKSUM: f0082fccf6b0c6dc5b236327cac6e7b9e657893c
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]? = nil
) -> Bool {
print(
"Google Mobile Ads SDK version: \(GADGetStringFromVersionNumber(GADMobileAds.sharedInstance().versionNumber))"
"Google Mobile Ads SDK version: \(string(for: MobileAds.shared.versionNumber))"
)
return true
}
Expand Down
Loading

0 comments on commit d24f305

Please sign in to comment.