@@ -12,42 +12,43 @@ The `@nativescript/google-mobile-ads` plugin currently supports loading and disp
12
12
13
13
## Contents
14
14
15
- - [ Installation] ( #installation )
16
- - [ Setup Admob for iOS] ( #setup-admob-for-ios )
17
- - [ Setup Admob for Android] ( #setup-admob-for-android )
18
- - [ Use @nativescript/google-mobile-ads ] ( #use-nativescriptgoogle-mobile-ads )
19
- - [ Initialize the Mobile Ads SDK] ( #1-initialize-the-mobile-ads-sdk )
20
- - [ Add your preferred ad format to the app] ( #2-add-your-preferred-ad-format-to-the-app )
21
- - [ Banner ads] ( #banner-ads )
22
- - [ Testing Banner ads in development mode] ( #testing-banner-ads-in-development-mode )
23
- - [ Instantiate a Banner ad] ( #instantiate-a-banner-ad )
24
- - [ Add Banner ad in NativeScript Core] ( #add-banner-ad-in-nativescript-core )
25
- - [ Add Banner ad in NativeScript Angular] ( #add-banner-ad-in-nativescript-angular )
26
- - [ Add Banner ad in NativeScript Vue] ( #add-banner-ad-in-nativescript-vue )
27
- - [ Customize the banner ad size] ( #customize-the-banner-ad-size )
28
- - [ Listen to a banner ad lifecycle events] ( #listen-to-a-banner-ad-lifecycle-events )
29
- - [ Display a banner ad to the user] ( #display-a-banner-ad-to-the-user )
30
- - [ Add an Inter
8000
stitial ad] ( #add-an-interstitial-ad )
31
- - [ Testing Interstitial ads in development] ( #testing-an-interstitial-ads-in-development )
32
- - [ Display an Interstitial ad to the user] ( #display-an-interstitial-ad-to-the-user )
33
- - [ Next steps] ( #next-steps )
34
- - [ Native ads] ( #native-ads )
35
- - [ Add a Native ad to your app] ( #add-a-native-ad-to-your-app )
36
- - [ Adding a Native ad in NativeScript Core] ( #adding-a-native-ad-in-nativescript-core )
37
- - [ Testing Native ads in development mode] ( #testing-native-ads-in-development-mode )
38
- - [ NativeAdOptions interface] ( #nativeadoptions-interface )
39
- - [ Next steps] ( #next-steps-1 )
40
- - [ Rewarded Ads] ( #rewarded-ads )
41
- - [ Testing Rewarded ads in development mode] ( #testing-rewarded-ads-in-development-mode )
42
- - [ Display a Rewarded ad] ( #display-a-rewarded-ad )
43
- - [ Rewarded ad Events] ( #rewarded-ad-events )
44
- - [ Targeting] ( #targeting )
45
- - [ Child-directed setting] ( #child-directed-setting )
46
- - [ For users under the age of consent] ( #for-users-under-the-age-of-consent )
47
- - [ Ad content filtering] ( #ad-content-filtering )
48
- <!-- Note: This plugin also supports Google Ad Manager.
49
- If you are interested in creating and loading an ad with Ad Manager, follow the same prerequisites, platform setup, mobile ads SDK initialization steps outlined in this documentation. , and then see creating and loading an ad with Ad Manager for further instructions. -->
50
- <!-- WHERE are the instructions for Ad Manager? -->
15
+ - [ @nativescript/google-mobile-ads ] ( #nativescriptgoogle-mobile-ads )
16
+ - [Contents](#contents)
17
+ - [Installation](#installation)
18
+ - [Setup Admob for iOS](#setup-admob-for-ios)
19
+ - [Setup Admob for Android](#setup-admob-for-android)
20
+ - [Use @nativescript/google-mobile-ads](#use-nativescriptgoogle-mobile-ads)
21
+ - [1. Initialize the Mobile Ads SDK](#1-initialize-the-mobile-ads-sdk)
22
+ - [2. Add your preferred ad format to the app](#2-add-your-preferred-ad-format-to-the-app)
23
+ - [Banner ads](#banner-ads)
24
+ - [Testing Banner ads in development mode](#testing-banner-ads-in-development-mode)
25
+ - [Add Banner ad in NativeScript Core](#add-banner-ad-in-nativescript-core)
26
+ - [Add Banner ad in NativeScript Angular](#add-banner-ad-in-nativescript-angular)
27
+ - [Add Banner ad in NativeScript Vue](#add-banner-ad-in-nativescript-vue)
28
+ - [Customize the banner ad size](#customize-the-banner-ad-size)
29
+ - [Listen to a banner ad lifecycle events](#listen-to-a-banner-ad-lifecycle-events)
30
+ - [Display a banner ad to the user](#display-a-banner-ad-to-the-user)
31
+ - [Add an Interstitial ad](#add-an-interstitial-ad)
32
+ - [Testing Interstitial ads in development](#testing-interstitial-ads-in-development)
33
+ - [Display an Interstitial ad to the user](#display-an-interstitial-ad-to-the-user)
34
+ - [Next steps](#next-steps)
35
+ - [Native Ads](#native-ads)
36
+ - [Adding a Native ad in NativeScript Core](#adding-a-native-ad-in-nativescript-core)
37
+ - [Testing Native ads in development mode](#testing-native-ads-in-development-mode)
38
+ - [NativeAdOptions interface](#nativeadoptions-interface)
39
+ - [AdChoicesPlacement](#adchoicesplacement)
40
+ - [videoOptions](#videooptions)
41
+ - [MediaAspectRatio](#mediaaspectratio)
42
+ - [Next steps](#next-steps-1)
43
+ - [Rewarded Ads](#rewarded-ads)
44
+ - [Testing Rewarded ads in development mode](#testing-rewarded-ads-in-development-mode)
45
+ - [Display a Rewarded ad](#display-a-rewarded-ad)
46
+ - [Rewarded ad Events](#rewarded-ad-events)
47
+ - [Targeting](#targeting)
48
+ - [Child-directed ads setting](#child-directed-ads-setting)
49
+ - [Handle ads requests for users under the age of consent](#handle-ads-requests-for-users-under-the-age-of-consent)
50
+ - [Ad content filtering](#ad-content-filtering)
51
+ - [License](#license)
51
52
52
53
## Installation
53
54
@@ -66,6 +67,13 @@ Update your `Info.plist` file at `App_Resources/iOS` with a `GADApplicationIdent
66
67
<string >ca-app-pub-xxxxxxxxxxxxxxxx~yyyyyyyyyy</string >
67
68
```
68
69
70
+ Also add the ` NSUserTrackingUsageDescription ` key.
71
+
72
+ ``` xml
73
+ <key >NSUserTrackingUsageDescription</key >
74
+ <string >This identifier will be used to deliver personalized ads to you.</string >
75
+ ```
76
+
69
77
For more information about configuring the ` Info.plist ` and setting up your App ID, see [ Update your Info.plist] ( https://developers.google.com/admob/ios/quick-start#update%5C_your%5C_infoplist ) .
70
78
71
79
## Setup Admob for Android
0 commit comments