Skip to content

Commit

Permalink
Fixing manifest merge issues and update to v2.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
rampara committed Apr 1, 2015
1 parent cba89cd commit 5462d4d
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 48 deletions.
6 changes: 6 additions & 0 deletions unity/ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
Google Mobile Ads Unity Plugin Change Log

*************
Version 2.2.1
*************
- Fix for Android manifest merge issues on Unity 4.x
- Fix for TouchCount issue on Unity 5.0

***********
Version 2.2
***********
Expand Down
35 changes: 20 additions & 15 deletions unity/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,14 @@ Android Setup
1. Add the google-play-services_lib folder,
located at ANDROID_SDK_LOCATION/extras/google/google_play_services/libproject,
into the Plugins/Android folder of your project.
2. If you already had an AndroidManifest.xml in Plugins/Android/, keep your current
version and [add the necessary activities and permissions](https://developers.google.com/mobile-ads-sdk/docs/admob/android/quick-start#androidmanifestxml)
required by the Google Mobile Ads SDK.
2. [For users running a version of Unity earlier than 5.0] Navigate to Temp/StagingArea
of your project directory and copy AndroidManifest.xml to Assets/Plugins/Android.
Add the following <meta-data> tag to the AndroidManifest.xml file:

<activity android:name="com.unity3d.player.UnityPlayerActivity" ...>
...
<meta-data android:name="unityplayer.ForwardNativeEventsToDalvik" android:value="true" />
</activity>

iOS Setup
---------
Expand All @@ -72,18 +77,7 @@ XCode project. You'll need to do the following before you can run it:
1. From the Xcode project navigator, right-click on the project, and choose
Add Files To "<Project Name>".
2. Navigate to and select **GoogleMobileAds.framework**.
3. Add the following frameworks if they aren't already part of the project:
* AdSupport
* AudioToolbox
* AVFoundation
* CoreGraphics
* CoreTelephony
* EventKit
* EventKitUI
* MessageUI
* StoreKit
* SystemConfiguration
4. Set **Enable Modules (C and Objective-C)** to **Yes** in
3. Set **Enable Modules (C and Objective-C)** to **Yes** in
**Build Settings**.

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)
Expand Down Expand Up @@ -144,6 +138,17 @@ In addition to constants on _AdSize_, you can also create a custom size:
BannerView bannerView = new BannerView(
"YOUR_AD_UNIT_ID", adSize, AdPosition.Bottom);

Banner Placement Locations
--------------------------
The following constants list the available ad positions:

AdPosition.Top
AdPosition.Bottom
AdPosition.TopLeft
AdPosition.TopRight
AdPosition.BottomLeft
AdPosition.BottomRight

Ad Request Targeting
--------------------
If you want to provide custom targeting to ad requests, add the targeting
Expand Down
2 changes: 1 addition & 1 deletion unity/source/Assets/GoogleMobileAds/Api/AdRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace GoogleMobileAds.Api
{
public class AdRequest
{
public const string Version = "2.2";
public const string Version = "2.2.1";
public const string TestDeviceSimulator = "SIMULATOR";

public class Builder
Expand Down
32 changes: 0 additions & 32 deletions unity/source/Assets/Plugins/Android/AndroidManifest.xml

This file was deleted.

0 comments on commit 5462d4d

Please sign in to comment.