Skip to content

Commit

Permalink
Version 3.13.0 of the Google Mobile Ads Unity plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
rampara committed Apr 11, 2018
1 parent 1f339d3 commit d9196de
Show file tree
Hide file tree
Showing 66 changed files with 604 additions and 1,600 deletions.
24 changes: 22 additions & 2 deletions ChangeLog.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,33 @@
Google Mobile Ads Unity Plugin Change Log

**************
Version 3.13.0
**************

Plugin:
- Added `OnAdCompleted` ad event to rewarded video ads.
- Removed support for Native Ads Express.

Mediation packages:
- Added Chartboost mediation support package.
- Added MoPub mediation support package.
- Updated AppLovin Unity package to v1.2.1.
- Updated AdColony Unity package to v1.0.1.
- Updated myTarget Unity package to v2.0.0.

Built and tested with:
- Google Play services 12.0.1
- Google Mobile Ads iOS SDK 7.30.0
- Unity Jar Resolver 1.2.64.0

**************
Version 3.12.0
**************

Plugin:
- Add `setUserId` API to rewarded video ads to identify users in
- Added `setUserId` API to rewarded video ads to identify users in
server-to-server reward callbacks.
- Remove functionality that forced ad events to be invoked on the
- Removed functionality that forced ad events to be invoked on the
main thread.

Mediation packages:
Expand Down
9 changes: 6 additions & 3 deletions mediation/AdColony/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
# AdColony Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.0.0
## 1.0.1
- Supports AdColony Android SDK version 3.3.0-unity.
- Supports AdColony iOS SDK version 3.3.0.

## 1.0.0
- First release!
- Supports Android adapter version 3.3.0.0.
- Supports iOS adapter version 3.3.0.0.
- Supports AdColony Android SDK version 3.3.0.
- Supports AdColony iOS SDK version 3.3.0.
2 changes: 1 addition & 1 deletion mediation/AdColony/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ project.ext {
'UNITY_EXE environment variable and point it to your Unity installation.')
}

versionString = '1.0.0'
versionString = '1.0.1'
pluginName = 'GoogleMobileAdsAdColonyMediation'
pluginFileName = "${pluginName}.unitypackage"
zipName = "${pluginName}-${versionString}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ android {

dependencies {
api project(':app')
api 'com.google.ads.mediation:adcolony:3.3.0.0'
api 'com.google.ads.mediation:adcolony:3.3.2.0'
}

task clearJar(type: Delete) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
/**
* Mediation extras bundle class for the AdColony adapter.
*/
public abstract class AdColonyUnityExtrasBuilder implements AdNetworkExtras {
public class AdColonyUnityExtrasBuilder implements AdNetworkExtras {

/**
* Key to obtain Zone ID.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.ads.mediation:adcolony:3.3.0.0">
<androidPackage spec="com.google.ads.mediation:adcolony:3.3.2.0">
<repositories>
<repository>https://adcolony.bintray.com/AdColony</repository>
</repositories>
</androidPackage>
<androidPackage spec="com.adcolony:sdk:3.3.0">
<androidPackage spec="com.adcolony:sdk:3.3.0-unity">
<repositories>
<repository>https://adcolony.bintray.com/AdColony</repository>
</repositories>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity.mediation.vungle">
package="com.google.unity.mediation.adcolony">

<!-- For optimal performance, AdColony recommends adding the following OPTIONAL permission -->
<!-- <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> -->
Expand All @@ -19,4 +19,4 @@
android:hardwareAccelerated="true" />
</application>

</manifest>
</manifest>
8 changes: 8 additions & 0 deletions mediation/AppLovin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# AppLovin Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.2.1
- Supports AppLovin Android SDK version 7.8.6.
- Supports AppLovin iOS SDK version 4.8.3.

## 1.2.0
- Supports AppLovin Android SDK version 7.8.5.
- Supports AppLovin iOS SDK version 4.8.3.

## 1.1.0
- Supports AppLovin Android SDK version 7.7.0.
- Supports AppLovin iOS SDK version 4.7.0.
Expand Down
2 changes: 1 addition & 1 deletion mediation/AppLovin/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ project.ext {
'UNITY_EXE environment variable and point it to your Unity installation.')
}

versionString = '1.1.0'
versionString = '1.2.1'
pluginName = 'GoogleMobileAdsAppLovinMediation'
pluginFileName = "${pluginName}.unitypackage"
zipName = "${pluginName}-${versionString}"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.ads.mediation:applovin:7.7.0.0">
<androidPackage spec="com.google.ads.mediation:applovin:7.8.6.0">
</androidPackage>
<androidPackage spec="com.applovin:applovin-sdk:7.7.0">
<androidPackage spec="com.applovin:applovin-sdk:7.8.6">
</androidPackage>
</androidPackages>

<iosPods>
<iosPod name="GoogleMobileAdsMediationAppLovin" version="4.7.0.0">
<iosPod name="GoogleMobileAdsMediationAppLovin" version="4.8.3.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
Expand Down
6 changes: 6 additions & 0 deletions mediation/Chartboost/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Chartboost Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.0.0
- First release!
- Supports Chartboost Android SDK version 7.0.1.
- Supports Chartboost iOS SDK version 7.1.2.
6 changes: 6 additions & 0 deletions mediation/Chartboost/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Chartboost Adapter plugin for Google Mobile Ads SDK for Unity 3D

This is a plugin to be used in conjunction with the Google Mobile Ads SDK in
Google Play services. For requirements, instructions, and other info, see the
[Chartboost Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/chartboost).

146 changes: 146 additions & 0 deletions mediation/Chartboost/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,146 @@
/*
* Gradle file to build a Unity package to add Chartboost mediation support to the Google Mobile
* Ads Unity plugin.
* Usage: ./gradlew exportPackage
*/
plugins {
id "com.jfrog.bintray" version "1.7.3"
}

defaultTasks 'exportPackage'

// Project level variables.
project.ext {
unity_exe = System.getProperty("UNITY_EXE")
if (unity_exe == null || unity_exe.isEmpty()) {
unity_exe = System.getenv("UNITY_EXE")
}
if (unity_exe == null || unity_exe.isEmpty()) {
unity_exe = '/Applications/Unity/Unity.app/Contents/MacOS/Unity'
}

if (!file(unity_exe).exists()) {
throw new GradleException('Unable to locate installation of Unity. Please create a ' +
'UNITY_EXE environment variable and point it to your Unity installation.')
}

versionString = '1.0.0'
pluginName = 'GoogleMobileAdsChartboostMediation'
pluginFileName = "${pluginName}.unitypackage"
zipName = "${pluginName}-${versionString}"
zipFileName = "${zipName}.zip"
pluginSource = file('source/plugin').absolutePath
pluginBuildDir = file('temp/plugin-build-dir').absolutePath
buildPath = file('temp').absolutePath
exportPath = file(pluginFileName).absolutePath
}

// Build unity package using through command line interface.
// Create new unity project with files in temporary build directory and export files to a unity package.
// Command line usage and arguments documented at http://docs.unity3d.com/Manual/CommandLineArguments.html.
task exportPackage(type: Exec) {
description = "Creates and exports the Plugin unity package"
executable "${unity_exe}"
args "-g.building",
"-batchmode",
"-projectPath", "${pluginBuildDir}",
"-logFile", "temp/unity.log",
"-exportPackage",
"Assets/GoogleMobileAds/Editor",
"Assets/Plugins",
"${exportPath}",
"-quit"

ignoreExitValue true

doLast {
if (execResult.getExitValue() != 0) {
copy {
from "temp/"
into "./"
include "unity.log"
}
}
}
}

task createTempBuildFolder(type: Copy) {
from { "${pluginSource}" }
into { "${pluginBuildDir}" }
}

task clearTempBuildFolder(type: Delete) {
delete { "${buildPath}" }
}

exportPackage.dependsOn(createTempBuildFolder)
exportPackage.finalizedBy(clearTempBuildFolder)

/**
* Delete task to delete any previously generated .zip files by makeZip task.
* makeZip depends on this task.
*/
task clearZip(type: Delete) {
// Targets to be deleted.
delete(zipFileName)
}

/**
* Zip task to make a zip archive. This task depends on exportPackage and clearZip tasks.
*/
task makeZip(type: Zip) {
// Targets to be added to the zip archive.
from('./' + pluginFileName, './README.md', './CHANGELOG.md')
// Root directory name for the zip archive.
into(zipName)
// Name of the zip archive.
archiveName zipFileName
// Destination directory in which the archive needs to be saved.
destinationDir file('.')
}

makeZip.dependsOn([clearZip, exportPackage])
makeZip.mustRunAfter([clearZip, exportPackage])

/**
* Bintray closure needed to run the bintrayUpload task.
*
* Usage:
* ./gradlew bintrayUpload -PbintrayUser=YOUR_BINTRAY_USER_ID -PbintrayApiKey=YOUR_BINTRAY_API_KEY
*
* The Bintray User ID and API key can be added to your system environment variables as BINTRAY_USER
* and BINTRAY_API_KEY respectively, and the command can be reduced to:
* ./gradlew bintrayUpload
*/
bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser')
: System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey')
: System.getenv('BINTRAY_API_KEY')

filesSpec { // 'filesSpec' is a standard Gradle CopySpec
from zipFileName
into "${pluginName}/${versionString}"
}
dryRun = false // Deploy after running.
publish = false // Don't auto publish after deploying.
override = false // Don't override existing version artifacts that are already published.

pkg {
repo = 'mobile-ads-adapters-unity'
name = pluginName
userOrg = 'google'
desc = 'Chartboost plugin for Google Mobile Ads Mediation.'
websiteUrl = 'https://developers.google.com/admob/unity/mediation/chartboost'
issueTrackerUrl = 'https://github.com/googleads/googleads-mobile-unity/issues'
vcsUrl = 'https://github.com/googleads/googleads-mobile-unity'
licenses = ['Apache-2.0']

version {
name = versionString
}
}
}

bintrayUpload.dependsOn(makeZip)
bintrayUpload.mustRunAfter(makeZip)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<dependencies>
<androidPackages>
<androidPackage spec="com.google.ads.mediation:chartboost:7.0.1.0">
<repositories>
<repository>https://jcenter.bintray.com/</repository>
</repositories>
</androidPackage>
</androidPackages>

<iosPods>
<iosPod name="GoogleMobileAdsMediationChartboost" version="7.1.2.0">
<sources>
<source>https://github.com/CocoaPods/Specs</source>
</sources>
</iosPod>
</iosPods>
</dependencies>

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity.mediation.chartboost">

<application>
<activity
android:name="com.chartboost.sdk.CBImpressionActivity"
android:excludeFromRecents="true"
android:hardwareAccelerated="true"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
android:configChanges="keyboardHidden|orientation|screenSize" />
</application>

</manifest>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
target=android-26
android.library=true
6 changes: 6 additions & 0 deletions mediation/MoPub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# MoPub Adapter plugin for Google Mobile Ads SDK for Unity 3D Changelog

## 1.0.0
- First release!
- Supports MoPub Android SDK version 4.20.0.
- Supports MoPub iOS SDK version 4.20.1.
6 changes: 6 additions & 0 deletions mediation/MoPub/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# MoPub Adapter plugin for Google Mobile Ads SDK for Unity 3D

This is a plugin to be used in conjunction with the Google Mobile Ads SDK in
Google Play services. For requirements, instructions, and other info, see the
[MoPub Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/mopub).

Loading

0 comments on commit d9196de

Please sign in to comment.