master
md 33 lines 1.13 KB
Rendered Raw
1 # Tauri Plugin admob — iOS
2
3 AdMob support for iOS, implemented on top of the [Google Mobile Ads SDK][gma]
4 via Swift Package Manager.
5
6 ## Supported ad types
7
8 - Banner
9 - Interstitial
10 - Rewarded
11 - Rewarded interstitial
12
13 These mirror the Android implementation and emit the same events to the JS side.
14
15 ## Consent & privacy
16
17 On startup the plugin initializes the Mobile Ads SDK and requests consent
18 information through the [User Messaging Platform][ump], presenting the consent
19 form when required. The `isPrivacyOptionsRequired` and `showPrivacyOptionsForm`
20 commands let the app surface the privacy options form on demand.
21
22 App Tracking Transparency is exposed through `requestTrackingAuthorization` and
23 `trackingAuthorizationStatus`.
24
25 ## App configuration
26
27 The consuming app must declare its AdMob application id and (for iOS 14+) the
28 `NSUserTrackingUsageDescription` string in its `Info.plist`, and add
29 `GADApplicationIdentifier`. See the [Get started guide][getstarted].
30
31 [gma]: https://developers.google.com/admob/ios/quick-start
32 [ump]: https://developers.google.com/admob/ios/privacy
33 [getstarted]: https://developers.google.com/admob/ios/quick-start