You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: unity/README.md
+20-15Lines changed: 20 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,9 +47,14 @@ Android Setup
47
47
1. Add the google-play-services_lib folder,
48
48
located at ANDROID_SDK_LOCATION/extras/google/google_play_services/libproject,
49
49
into the Plugins/Android folder of your project.
50
-
2. If you already had an AndroidManifest.xml in Plugins/Android/, keep your current
51
-
version and [add the necessary activities and permissions](https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start#androidmanifestxml)
52
-
required by the Google Mobile Ads SDK.
50
+
2.[For users running a version of Unity earlier than 5.0] Navigate to Temp/StagingArea
51
+
of your project directory and copy AndroidManifest.xml to Assets/Plugins/Android.
52
+
Add the following <meta-data> tag to the AndroidManifest.xml file:
@@ -72,18 +77,7 @@ XCode project. You'll need to do the following before you can run it:
72
77
1. From the Xcode project navigator, right-click on the project, and choose
73
78
Add Files To "<ProjectName>".
74
79
2. Navigate to and select **GoogleMobileAds.framework**.
75
-
3. Add the following frameworks if they aren't already part of the project:
76
-
* AdSupport
77
-
* AudioToolbox
78
-
* AVFoundation
79
-
* CoreGraphics
80
-
* CoreTelephony
81
-
* EventKit
82
-
* EventKitUI
83
-
* MessageUI
84
-
* StoreKit
85
-
* SystemConfiguration
86
-
4. Set **Enable Modules (C and Objective-C)** to **Yes** in
80
+
3. Set **Enable Modules (C and Objective-C)** to **Yes** in
87
81
**Build Settings**.
88
82
89
83
If these steps didn't work, the [developer docs](https://developers.google.com/mobile-ads-sdk/docs/admob/ios/quick-start#manually_using_the_sdk_download)
@@ -144,6 +138,17 @@ In addition to constants on _AdSize_, you can also create a custom size:
144
138
BannerView bannerView = new BannerView(
145
139
"YOUR_AD_UNIT_ID", adSize, AdPosition.Bottom);
146
140
141
+
Banner Placement Locations
142
+
--------------------------
143
+
The following constants list the available ad positions:
144
+
145
+
AdPosition.Top
146
+
AdPosition.Bottom
147
+
AdPosition.TopLeft
148
+
AdPosition.TopRight
149
+
AdPosition.BottomLeft
150
+
AdPosition.BottomRight
151
+
147
152
Ad Request Targeting
148
153
--------------------
149
154
If you want to provide custom targeting to ad requests, add the targeting
0 commit comments