Skip to content

Commit

Permalink
feat(cordova/ios): feat: update Google-Mobile-Ads-SDK to 10.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ratson committed May 20, 2023
1 parent 6f80de6 commit 07e29de
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion packages/cordova/plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@
<source url="https://cdn.cocoapods.org/" />
</config>
<pods use-frameworks="true">
<pod name="Google-Mobile-Ads-SDK" spec="~> 8.13.0" />
<pod name="Google-Mobile-Ads-SDK" spec="~> 10.5.0" />
</pods>
</podspec>
</platform>
Expand Down
2 changes: 1 addition & 1 deletion packages/cordova/src/ios/AMBAppOpenAd.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ class AMBAppOpenAd: AMBAdBase, GADFullScreenContentDelegate {
self.emit(AMBEvents.adShowFail, error)
}

func adDidPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
self.emit(AMBEvents.adShow)
}

Expand Down
2 changes: 1 addition & 1 deletion packages/cordova/src/ios/AMBInterstitial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class AMBInterstitial: AMBAdBase, GADFullScreenContentDelegate {
self.emit(AMBEvents.interstitialShowFail, error)
}

func adDidPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
self.emit(AMBEvents.adShow)
self.emit(AMBEvents.interstitialShow)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cordova/src/ios/AMBRewarded.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AMBRewarded: AMBAdBase, GADFullScreenContentDelegate {
self.emit(AMBEvents.rewardedShowFail, error)
}

func adDidPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
self.emit(AMBEvents.adShow)
self.emit(AMBEvents.rewardedShow)
}
Expand Down
2 changes: 1 addition & 1 deletion packages/cordova/src/ios/AMBRewardedInterstitial.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class AMBRewardedInterstitial: AMBAdBase, GADFullScreenContentDelegate {
self.emit(AMBEvents.rewardedInterstitialShowFail, error)
}

func adDidPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
func adWillPresentFullScreenContent(_ ad: GADFullScreenPresentingAd) {
self.emit(AMBEvents.adShow)
self.emit(AMBEvents.rewardedInterstitialShow)
}
Expand Down

0 comments on commit 07e29de

Please sign in to comment.