Skip to content

Commit

Permalink
Version 3.6.2 of the Google Mobile Ads Unity plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rampara committed Aug 3, 2017
1 parent 81aeed0 commit bcd1a6b
Show file tree
Hide file tree
Showing 9 changed files with 93 additions and 2 deletions.
22 changes: 22 additions & 0 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,27 @@
Google Mobile Ads Unity Plugin Change Log

*************
Version 3.6.2
*************

- Add mediation sub-directories to Plugin folder.

Built and tested with:
- Google Play services 11.0.4
- Google Mobile Ads iOS SDK 7.21.0
- Unity Jar Resolver 1.2.35.0

*************
Version 3.6.1
*************

- Updated Unity Jar Resolver.

Built and tested with:
- Google Play services 11.0.0
- Google Mobile Ads iOS SDK 7.21.0
- Unity Jar Resolver 1.2.32.0

*************
Version 3.6.0
*************
Expand Down
12 changes: 12 additions & 0 deletions samples/HelloWorld/Assets/Scripts/GoogleMobileAdsDemoScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,18 @@ public static string OutputMessage

public void Start()
{

#if UNITY_ANDROID
string appId = "ca-app-pub-3940256099942544~3347511713";
#elif UNITY_IPHONE
string appId = "ca-app-pub-3940256099942544~1458002511";
#else
string appId = "unexpected_platform";
#endif

// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(appId);

// Get singleton reward based video ad reference.
this.rewardBasedVideo = RewardBasedVideoAd.Instance;

Expand Down
12 changes: 12 additions & 0 deletions samples/Roll-A-Ball-NativeDemo/Assets/Scripts/AdsController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,18 @@ public class AdsController : MonoBehaviour

public void Start()
{

#if UNITY_ANDROID
string appId = "ca-app-pub-3940256099942544~3347511713";
#elif UNITY_IPHONE
string appId = "ca-app-pub-3940256099942544~1458002511";
#else
string appId = "unexpected_platform";
#endif

// Initialize the Google Mobile Ads SDK.
MobileAds.Initialize(appId);

this.nativeAdLoaded = false;
this.RequestNativeAd();
}
Expand Down
2 changes: 1 addition & 1 deletion source/android-library/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ android {
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.android.gms:play-services-ads:11.0.0'
compile 'com.google.android.gms:play-services-ads:11.0.4'
}

task clearJar(type: Delete) {
Expand Down
2 changes: 1 addition & 1 deletion source/plugin/Assets/GoogleMobileAds/Api/AdRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace GoogleMobileAds.Api
{
public class AdRequest
{
public const string Version = "3.6.1";
public const string Version = "3.6.2";
public const string TestDeviceSimulator = "SIMULATOR";

private AdRequest(Builder builder)
Expand Down
34 changes: 34 additions & 0 deletions source/plugin/Assets/Plugins/Android/GoogleMobileAdsMediation.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add mediation adapter and SDK libraries to this directory.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Add mediation adapter and SDK libraries to this directory.

0 comments on commit bcd1a6b

Please sign in to comment.