Repository navigation
Conversation
AdMob banner, interstitial and rewarded ads on iOS, and gathering the user consent (GDPR) with Google's User Messaging Platform. The service handles the same messages as the Android admob service, so the CastleAds unit works the same on both platforms: - InitializeAdMobWithConsent: the consent is requested first, and the ads SDK is started only once canRequestAds allows it (or right away with InitializeAdMob); - ShowConsentPrivacyOptions, ResetConsent, PrivacyOptionsRequired; - RewardedReady (ads-admob-reward-ready); - a full-screen ad that fails to present reports closing, so OnFullScreenAdClosed is always called; - banner placed in the safe area following the same gravity as on Android. Uses CocoaPods (Google-Mobile-Ads-SDK 12, GoogleUserMessagingPlatform 3), which require iOS 13, set in the service Podfile for this target. The application id goes to Info.plist from the app_id service parameter. CastleAds: ShowFullScreenAd now sends the request on iOS too (it was Android-only), and the docs mention iOS. Note: this iOS service was created with the help of AI. The Objective-C code was only reviewed, it was NOT compiled and NOT tested -- I don't have a Mac or an iOS device. Please test before merging.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AdMob banner, interstitial and rewarded ads on iOS, and gathering the user consent (GDPR) with Google's User Messaging Platform. The service handles the same messages as the Android admob service, so the CastleAds unit works the same on both platforms:
Uses CocoaPods (Google-Mobile-Ads-SDK 12, GoogleUserMessagingPlatform 3), which require iOS 13, set in the service Podfile for this target. The application id goes to Info.plist from the app_id service parameter.
CastleAds: ShowFullScreenAd now sends the request on iOS too (it was Android-only), and the docs mention iOS.
Note: this iOS service was created with the help of AI. The Objective-C code was only reviewed, it was NOT compiled and NOT tested -- I don't have a Mac or an iOS device. Please test before merging.