diff --git a/MyTarget/CHANGELOG.md b/MyTarget/CHANGELOG.md
new file mode 100644
index 0000000..56af71d
--- /dev/null
+++ b/MyTarget/CHANGELOG.md
@@ -0,0 +1,217 @@
+## myTarget Unity Mediation Plugin Changelog
+
+#### [Version 3.18.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.18.0.zip)
+- Renamed `DummyClient` to `PlaceholderClient`.
+- Supports [myTarget Android adapter version 5.22.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52210).
+- Supports [myTarget iOS adapter version 5.21.6.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52160).
+- Built and tested with the Google Mobile Ads Unity Plugin version 9.2.0.
+
+#### [Version 3.17.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.17.1.zip)
+- Supports [myTarget Android adapter version 5.21.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52110).
+- Supports [myTarget iOS adapter version 5.21.5.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52150).
+- Built and tested with the Google Mobile Ads Unity Plugin version 9.2.0.
+
+#### [Version 3.17.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.17.0.zip)
+- Supports [myTarget Android adapter version 5.21.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52100).
+- Supports [myTarget iOS adapter version 5.21.4.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52140).
+- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0.
+
+#### [Version 3.16.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.16.2.zip)
+- Supports [myTarget Android adapter version 5.20.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52010).
+- Supports [myTarget iOS adapter version 5.21.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52120).
+- Built and tested with the Google Mobile Ads Unity Plugin version 9.1.0.
+
+#### [Version 3.16.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.16.1.zip)
+- Supports [myTarget Android adapter version 5.20.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52010).
+- Supports [myTarget iOS adapter version 5.21.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52110).
+- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0.
+
+#### [Version 3.16.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.16.0.zip)
+- Supports [myTarget Android adapter version 5.20.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52000).
+- Supports [myTarget iOS adapter version 5.21.0.1](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52101).
+- Built and tested with the Google Mobile Ads Unity Plugin version 9.0.0.
+
+#### [Version 3.15.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.15.0.zip)
+- Supports [myTarget Android adapter version 5.20.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-52000).
+- Supports [myTarget iOS adapter version 5.20.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-52010).
+- Built and tested with the Google Mobile Ads Unity Plugin version 8.7.0.
+
+#### [Version 3.14.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.14.0.zip)
+- Supports [myTarget Android adapter version 5.18.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51800).
+- Supports [myTarget iOS adapter version 5.19.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51900).
+- Built and tested with the Google Mobile Ads Unity Plugin version 8.5.0.
+
+#### [Version 3.13.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.13.2.zip)
+- Supports [myTarget Android adapter version 5.16.5.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51650).
+- Supports [myTarget iOS adapter version 5.17.5.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51750).
+- Built and tested with the Google Mobile Ads Unity Plugin version 8.3.0.
+
+#### [Version 3.13.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.13.1.zip)
+- Moved adapter content to `GoogleMobileAds/Mediation/MyTarget/`.
+- Refactored adapter namespace to use `GoogleMobileAds.Mediation.MyTarget`.
+- Supports [myTarget Android adapter version 5.16.4.1](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51641).
+- Supports [myTarget iOS adapter version 5.17.4.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51740).
+- Built and tested with the Google Mobile Ads Unity Plugin version 8.1.0.
+
+#### [Version 3.13.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.13.0.zip)
+- Supports [myTarget Android adapter version 5.16.4.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51640).
+- Supports [myTarget iOS adapter version 5.17.4.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51740).
+- Built and tested with the Google Mobile Ads Unity Plugin version 8.0.0.
+
+#### [Version 3.12.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.12.0.zip)
+- Supports [myTarget Android adapter version 5.15.5.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51550).
+- Supports [myTarget iOS adapter version 5.16.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51600).
+- Built and tested with the Google Mobile Ads Unity Plugin version 7.3.0.
+
+#### [Version 3.11.4](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.11.4.zip)
+- Supports [myTarget Android adapter version 5.15.4.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51540).
+- Supports [myTarget iOS adapter version 5.15.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51520).
+- Built and tested with the Google Mobile Ads Unity Plugin version 7.2.0.
+
+#### [Version 3.11.3](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.11.3.zip)
+- Renamed the `IsConsent()` method from the `MyTarget` class to `GetUserConsent()`.
+- Added the following methods to the `MyTarget` class:
+ * `SetCCPAUserConsent(bool)`
+ * `GetCCPAUserConsent()`
+- Supports [myTarget Android adapter version 5.15.3.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51530).
+- Supports [myTarget iOS adapter version 5.15.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51520).
+- Built and tested with the Google Mobile Ads Unity Plugin version 7.2.0.
+
+#### [Version 3.11.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.11.2.zip)
+- Supports [myTarget Android adapter version 5.15.2.1](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51521).
+- Supports [myTarget iOS adapter version 5.15.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51520).
+- Built and tested with the Google Mobile Ads Unity Plugin version 7.0.2.
+
+#### [Version 3.11.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.11.1.zip)
+- Supports [myTarget Android adapter version 5.15.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51510).
+- Supports [myTarget iOS adapter version 5.15.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51510).
+- Built and tested with the Google Mobile Ads Unity Plugin version 7.0.0.
+
+#### [Version 3.11.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.11.0.zip)
+- Supports [myTarget Android adapter version 5.15.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51500).
+- Supports [myTarget iOS adapter version 5.15.0.1](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51501).
+- Built and tested with the Google Mobile Ads Unity Plugin version 7.0.0.
+
+#### [Version 3.10.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.10.2.zip)
+- Supports [myTarget Android adapter version 5.14.4.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51440).
+- Supports [myTarget iOS adapter version 5.14.4.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51440).
+
+#### [Version 3.10.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.10.1.zip)
+- Supports [myTarget Android adapter version 5.14.3.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51430).
+- Supports [myTarget iOS adapter version 5.14.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51420).
+
+#### [Version 3.10.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.10.0.zip)
+- Supports [myTarget Android adapter version 5.14.2.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51420).
+- Supports [myTarget iOS adapter version 5.14.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51410).
+
+#### [Version 3.9.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.9.0.zip)
+- Supports [myTarget Android adapter version 5.13.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51300).
+- Supports [myTarget iOS adapter version 5.11.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-51120).
+
+#### [Version 3.8.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.8.2.zip)
+- Supports [myTarget Android adapter version 5.11.7.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51170).
+- Supports [myTarget iOS adapter version 5.9.10.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-59100).
+
+#### [Version 3.8.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.8.1.zip)
+- Supports [myTarget Android adapter version 5.11.5.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51150).
+- Supports [myTarget iOS adapter version 5.9.6.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5960).
+
+#### [Version 3.8.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.8.0.zip)
+- Supports [myTarget Android adapter version 5.11.4.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51140).
+- Supports [myTarget iOS adapter version 5.9.5.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5950).
+
+#### [Version 3.7.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.7.0.zip)
+- Supports [myTarget Android adapter version 5.10.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-51000).
+- Supports [myTarget iOS adapter version 5.7.5.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5750).
+
+#### [Version 3.6.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.6.1.zip)
+- Renamed the `MyTarget.IsUserConsent()` method to `MyTarget.IsConsent()`.
+- Supports [myTarget Android adapter version 5.9.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5910).
+- Supports [myTarget iOS adapter version 5.7.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5720).
+
+#### [Version 3.6.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.6.0.zip)
+- Supports [myTarget Android adapter version 5.9.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5900).
+- Supports [myTarget iOS adapter version 5.7.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5700).
+
+#### [Version 3.5.2](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.5.2.zip)
+- Supports [myTarget Android adapter version 5.8.3.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5830).
+- Supports [myTarget iOS adapter version 5.6.3.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5630).
+
+#### [Version 3.5.1](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.5.1.zip)
+- Supports [myTarget Android adapter version 5.8.2.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5820).
+- Supports [myTarget iOS adapter version 5.6.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5610).
+
+#### [Version 3.5.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.5.0.zip)
+- Supports [myTarget Android adapter version 5.8.1.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5810).
+- Supports [myTarget iOS adapter version 5.6.0.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5600).
+
+#### [Version 3.4.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.4.0.zip)
+- Supports [myTarget Android adapter version 5.8.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5800).
+- Supports [myTarget iOS adapter version 5.5.2.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5520).
+
+#### [Version 3.3.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.3.0.zip)
+- Supports [myTarget Android adapter version 5.7.0.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5700).
+- Supports [myTarget iOS adapter version 5.5.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5510).
+
+#### [Version 3.2.0](https://dl.google.com/googleadmobadssdk/mediation/unity/mytarget/MyTargetUnityAdapter-3.2.0.zip)
+- Supports [myTarget Android adapter version 5.6.3.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5630).
+- Supports [myTarget iOS adapter version 5.4.9.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5490).
+
+#### Version 3.1.0
+- Supports [myTarget Android adapter version 5.4.6.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/mytarget/CHANGELOG.md#version-5460).
+- Supports [myTarget iOS adapter version 5.3.3.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/MyTarget/CHANGELOG.md#version-5330).
+
+#### Version 3.0.0
+- Updated the plugin to support the new open-beta Rewarded API.
+- Supports myTarget Android adapter version 5.3.9.0.
+- Supports myTarget iOS adapter version 5.0.4.0.
+
+#### Version 2.3.2
+- Supports myTarget Android adapter version 5.2.5.0.
+- Supports myTarget iOS adapter version 4.8.9.0.
+
+#### Version 2.3.1
+- Supports myTarget Android adapter version 5.2.5.0.
+- Supports myTarget iOS adapter version 4.8.5.0.
+
+#### Version 2.3.0
+- Supports myTarget Android adapter version 5.2.2.0.
+- Supports myTarget iOS adapter version 4.8.0.0.
+
+#### Version 2.2.0
+- Supports myTarget Android adapter version 5.1.4.0.
+- Supports myTarget iOS adapter version 4.8.0.0.
+
+#### Version 2.1.2
+- Supports myTarget Android adapter version 5.1.3.0.
+- Supports myTarget iOS adapter version 4.7.11.0.
+
+#### Version 2.1.1
+- Supports myTarget Android adapter version 5.1.1.0.
+- Supports myTarget iOS adapter version 4.7.10.0.
+
+#### Version 2.1.0
+- Supports myTarget Android SDK version 5.1.0.
+- Supports myTarget iOS SDK version 4.7.9.
+- Added the following methods:
+ * `MyTarget.SetUserConsent()` method to forward the user's consent status to the MyTarget SDK.
+ * `MyTarget.SetUserAgeRestricted` method that sets a flag to indicate if the user is known to be in an age-restricted category (i.e., under the age of 16).
+ * `MyTarget.IsUserConsent()` method to get the user's current consent status.
+ * `MyTarget.IsUserAgeRestricted()` method to get the flag indicating that the user is known to be in an age-restricted category (i.e., under the age of 16).
+
+#### Version 2.0.1
+- Supports myTarget Android SDK version 5.0.2.
+- Supports myTarget iOS SDK version 4.7.8.
+
+#### Version 2.0.0
+- Supports myTarget Android SDK version 5.0.0.
+- Supports myTarget iOS SDK version 4.7.7.
+
+#### Version 1.1.0
+- Supports myTarget Android SDK version 4.7.2.
+- Supports myTarget iOS SDK version 4.7.6.
+
+#### Version 1.0.0
+- First release!
+- Supports myTarget Android SDK version 4.6.27.
+- Supports myTarget iOS SDK version 4.6.24.
diff --git a/MyTarget/CHANGELOG.md.meta b/MyTarget/CHANGELOG.md.meta
new file mode 100644
index 0000000..0aa049c
--- /dev/null
+++ b/MyTarget/CHANGELOG.md.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 4ab48c2ecec0343ac9d2c58752aa6758
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/LICENSE b/MyTarget/LICENSE
new file mode 100644
index 0000000..d645695
--- /dev/null
+++ b/MyTarget/LICENSE
@@ -0,0 +1,202 @@
+
+ Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "[]"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright [yyyy] [name of copyright owner]
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
diff --git a/MyTarget/LICENSE.meta b/MyTarget/LICENSE.meta
new file mode 100644
index 0000000..ccf6c71
--- /dev/null
+++ b/MyTarget/LICENSE.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 8e626a812198b453c9fb95b72a3ad7d0
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/README.md b/MyTarget/README.md
new file mode 100644
index 0000000..8409af4
--- /dev/null
+++ b/MyTarget/README.md
@@ -0,0 +1,8 @@
+# myTarget Adapter plugin for Google Mobile Ads SDK for Unity
+
+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
+[myTarget Adapter Integration Guide](https://developers.google.com/admob/unity/mediation/myTarget).
+
+See the [changelog](https://developers.google.com/admob/unity/mediation/mytarget#mytarget-unity-mediation-plugin-changelog)
+to view the version history.
diff --git a/MyTarget/README.md.meta b/MyTarget/README.md.meta
new file mode 100644
index 0000000..a6229aa
--- /dev/null
+++ b/MyTarget/README.md.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 9a7029ae0d5dd475196562326656f89b
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/build.gradle b/MyTarget/build.gradle
new file mode 100644
index 0000000..39ed67a
--- /dev/null
+++ b/MyTarget/build.gradle
@@ -0,0 +1,99 @@
+/*
+* Gradle file to build a Unity package to add myTarget mediation support to the Google Mobile Ads Unity plugin.
+* Usage: ./gradlew exportPackage
+*/
+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 = '3.18.0'
+ adapterName = 'MyTarget'
+ pluginName = "GoogleMobileAds${adapterName}Mediation"
+ pluginFileName = "${pluginName}.unitypackage"
+ zipName = "${adapterName}UnityAdapter-${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",
+ "${exportPath}",
+ "-quit"
+
+ ignoreExitValue true
+
+ doLast {
+ if (executionResult.get().exitValue != 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')
+ from('./' + pluginFileName, './LICENSE')
+ // Root directory name for the zip archive.
+ into(zipName)
+ // Name of the zip archive.
+ archiveFileName = zipFileName
+ // Destination directory in which the archive needs to be saved.
+ destinationDirectory = file('.')
+}
+
+makeZip.dependsOn([clearZip, exportPackage])
+makeZip.mustRunAfter([clearZip, exportPackage])
diff --git a/MyTarget/build.gradle.meta b/MyTarget/build.gradle.meta
new file mode 100644
index 0000000..ed01175
--- /dev/null
+++ b/MyTarget/build.gradle.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 00e2552c0ee094d6e9b569b68b85ace2
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/package.json b/MyTarget/package.json
new file mode 100644
index 0000000..6f63aae
--- /dev/null
+++ b/MyTarget/package.json
@@ -0,0 +1,21 @@
+{
+ "name": "com.google.ads.mobile.mediation.mytarget",
+ "version": "3.18.0",
+ "displayName": "Google Mobile Ads myTarget Mediation",
+ "keywords": [
+ "Google",
+ "Mobile",
+ "Ads",
+ "vh-name:GoogleMobileAdsMediationMyTarget",
+ "vh-name:Google Mobile Ads myTarget Mediation"
+ ],
+ "author": {
+ "name": "Google LLC",
+ "url": "https://github.com/googleads/googleads-mobile-unity-mediation"
+ },
+ "description": "The Google Mobile Ads mediation plugin for myTarget package allows you to load and display ads from myTarget using mediation, covering waterfall integrations.",
+ "unity": "2019.4",
+ "dependencies": {
+ "com.google.ads.mobile": "9.0.0"
+ }
+}
diff --git a/MyTarget/package.json.meta b/MyTarget/package.json.meta
new file mode 100644
index 0000000..a119cde
--- /dev/null
+++ b/MyTarget/package.json.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: d581240647df740f5bd761f352823b8d
+PackageManifestImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source.meta b/MyTarget/source.meta
new file mode 100644
index 0000000..6ec6ff6
--- /dev/null
+++ b/MyTarget/source.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 789149be4511548e28b2971ae182f912
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin.meta b/MyTarget/source/plugin.meta
new file mode 100644
index 0000000..1e765b6
--- /dev/null
+++ b/MyTarget/source/plugin.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 0a3ead0bd85d748b994c94155d1e4930
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets.meta b/MyTarget/source/plugin/Assets.meta
new file mode 100644
index 0000000..a5c8006
--- /dev/null
+++ b/MyTarget/source/plugin/Assets.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 46a4bf891d53445728711b1f9d441293
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds.meta
new file mode 100644
index 0000000..0b52ac7
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 6a2cc5c1ef3ee4056b54e866a0070c0a
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation.meta
new file mode 100644
index 0000000..e8b0d1b
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 25eded4ef9f8f438fb92520959191748
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget.meta
new file mode 100644
index 0000000..e952429
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 7312cd31969424dfb94b053d8beed3c4
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api.meta
new file mode 100644
index 0000000..971ce45
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: d33dbfcf2c89743aca1fcf392b2102d4
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/GoogleMobileAds.Mediation.MyTarget.Api.asmdef b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/GoogleMobileAds.Mediation.MyTarget.Api.asmdef
new file mode 100644
index 0000000..e8625cf
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/GoogleMobileAds.Mediation.MyTarget.Api.asmdef
@@ -0,0 +1,19 @@
+{
+ "name": "GoogleMobileAds.Mediation.MyTarget.Api",
+ "rootNamespace": "",
+ "references": [
+ "GoogleMobileAds.Api.Mediation",
+ "GoogleMobileAds.Mediation.MyTarget.Common",
+ "GoogleMobileAds.Mediation.MyTarget.Mediation"
+ ],
+ "references": [],
+ "includePlatforms": [],
+ "excludePlatforms": [],
+ "allowUnsafeCode": false,
+ "overrideReferences": false,
+ "precompiledReferences": [],
+ "autoReferenced": true,
+ "defineConstraints": [],
+ "versionDefines": [],
+ "noEngineReferences": false
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/GoogleMobileAds.Mediation.MyTarget.Api.asmdef.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/GoogleMobileAds.Mediation.MyTarget.Api.asmdef.meta
new file mode 100644
index 0000000..7ed86a8
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/GoogleMobileAds.Mediation.MyTarget.Api.asmdef.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 4e60aca8a3812479eb385ec9a21c957d
+AssemblyDefinitionImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/MyTarget.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/MyTarget.cs
new file mode 100644
index 0000000..de65544
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/MyTarget.cs
@@ -0,0 +1,92 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using GoogleMobileAds.Mediation.MyTarget.Common;
+
+namespace GoogleMobileAds.Mediation.MyTarget.Api
+{
+ public class MyTarget
+ {
+ internal static readonly IMyTargetClient client =
+ MyTargetClientFactory.CreateMyTargetClient();
+
+ public static void SetUserConsent(bool userConsent)
+ {
+ client.SetUserConsent(userConsent);
+ }
+
+ public static bool GetUserConsent()
+ {
+ return client.GetUserConsent();
+ }
+
+ public static void SetUserAgeRestricted(bool userAgeRestricted)
+ {
+ client.SetUserAgeRestricted(userAgeRestricted);
+ }
+
+ public static bool IsUserAgeRestricted()
+ {
+ return client.IsUserAgeRestricted();
+ }
+
+ public static void SetCCPAUserConsent(bool ccpaUserConsent)
+ {
+ client.SetCCPAUserConsent(ccpaUserConsent);
+ }
+
+ public static bool GetCCPAUserConsent()
+ {
+ return client.GetCCPAUserConsent();
+ }
+ }
+}
+
+namespace GoogleMobileAds.Api.Mediation.MyTarget
+{
+ [System.Obsolete("Use `GoogleMobileAds.Mediation.MyTarget.Api.MyTarget` instead.")]
+ public class MyTarget
+ {
+ public static void SetUserConsent(bool userConsent)
+ {
+ GoogleMobileAds.Mediation.MyTarget.Api.MyTarget.SetUserConsent(userConsent);
+ }
+
+ public static bool GetUserConsent()
+ {
+ return GoogleMobileAds.Mediation.MyTarget.Api.MyTarget.GetUserConsent();
+ }
+
+ public static void SetUserAgeRestricted(bool userAgeRestricted)
+ {
+ GoogleMobileAds.Mediation.MyTarget.Api.MyTarget
+ .SetUserAgeRestricted(userAgeRestricted);
+ }
+
+ public static bool IsUserAgeRestricted()
+ {
+ return GoogleMobileAds.Mediation.MyTarget.Api.MyTarget.IsUserAgeRestricted();
+ }
+
+ public static void SetCCPAUserConsent(bool ccpaUserConsent)
+ {
+ GoogleMobileAds.Mediation.MyTarget.Api.MyTarget.SetCCPAUserConsent(ccpaUserConsent);
+ }
+
+ public static bool GetCCPAUserConsent()
+ {
+ return GoogleMobileAds.Mediation.MyTarget.Api.MyTarget.GetCCPAUserConsent();
+ }
+ }
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/MyTarget.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/MyTarget.cs.meta
new file mode 100644
index 0000000..a98da4c
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Api/MyTarget.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: 1edbd7ea114c7417eb9c55510e20bb09
+timeCreated: 1527546842
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common.meta
new file mode 100644
index 0000000..e69189d
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 1c078207e758f4d3dbc4fbbfc20b15da
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/GoogleMobileAds.Mediation.MyTarget.Common.asmdef b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/GoogleMobileAds.Mediation.MyTarget.Common.asmdef
new file mode 100644
index 0000000..d32a3c4
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/GoogleMobileAds.Mediation.MyTarget.Common.asmdef
@@ -0,0 +1,14 @@
+{
+ "name": "GoogleMobileAds.Mediation.MyTarget.Common",
+ "rootNamespace": "",
+ "references": [],
+ "includePlatforms": [],
+ "excludePlatforms": [],
+ "allowUnsafeCode": false,
+ "overrideReferences": false,
+ "precompiledReferences": [],
+ "autoReferenced": true,
+ "defineConstraints": [],
+ "versionDefines": [],
+ "noEngineReferences": false
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/GoogleMobileAds.Mediation.MyTarget.Common.asmdef.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/GoogleMobileAds.Mediation.MyTarget.Common.asmdef.meta
new file mode 100644
index 0000000..3aed89e
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/GoogleMobileAds.Mediation.MyTarget.Common.asmdef.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 951e440e6050f4cd0912c3c90e89f178
+AssemblyDefinitionImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/IMyTargetClient.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/IMyTargetClient.cs
new file mode 100644
index 0000000..333005c
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/IMyTargetClient.cs
@@ -0,0 +1,26 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+namespace GoogleMobileAds.Mediation.MyTarget.Common
+{
+ public interface IMyTargetClient
+ {
+ void SetUserConsent(bool userConsent);
+ bool GetUserConsent();
+ void SetUserAgeRestricted(bool userAgeRestricted);
+ bool IsUserAgeRestricted();
+ void SetCCPAUserConsent(bool ccpaUserConsent);
+ bool GetCCPAUserConsent();
+ }
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/IMyTargetClient.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/IMyTargetClient.cs.meta
new file mode 100644
index 0000000..a68ad7b
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/IMyTargetClient.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: b458fbedb131c48329b2690d51e932c9
+timeCreated: 1527547128
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/PlaceholderClient.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/PlaceholderClient.cs
new file mode 100644
index 0000000..d989aa8
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/PlaceholderClient.cs
@@ -0,0 +1,61 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using System.Reflection;
+
+using UnityEngine;
+
+namespace GoogleMobileAds.Mediation.MyTarget.Common
+{
+ public class PlaceholderClient : IMyTargetClient
+ {
+ public PlaceholderClient()
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ }
+
+ public void SetUserConsent(bool userConsent)
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ }
+
+ public bool GetUserConsent()
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ return false;
+ }
+
+ public void SetUserAgeRestricted(bool userAgeRestricted)
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ }
+
+ public bool IsUserAgeRestricted()
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ return false;
+ }
+
+ public void SetCCPAUserConsent(bool ccpaUserConsent)
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ }
+
+ public bool GetCCPAUserConsent()
+ {
+ Debug.Log ("Placeholder " + MethodBase.GetCurrentMethod().Name);
+ return false;
+ }
+ }
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/PlaceholderClient.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/PlaceholderClient.cs.meta
new file mode 100644
index 0000000..a84ed91
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Common/PlaceholderClient.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: 1fd48ffcf784545d1af535ec6ad3edad
+timeCreated: 1527547121
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor.meta
new file mode 100644
index 0000000..dd17e95
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 313f2da627e874d4e9969bad4e2201a2
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor/MyTargetMediationDependencies.xml b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor/MyTargetMediationDependencies.xml
new file mode 100644
index 0000000..2db4f45
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor/MyTargetMediationDependencies.xml
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+ https://repo.maven.apache.org/maven2/
+ https://dl.google.com/dl/android/maven2/
+
+
+
+
+
+
+
+
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor/MyTargetMediationDependencies.xml.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor/MyTargetMediationDependencies.xml.meta
new file mode 100644
index 0000000..3e63880
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Editor/MyTargetMediationDependencies.xml.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 3ff460858179d42da883f22756f26e6f
+TextScriptImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms.meta
new file mode 100644
index 0000000..bdc7ab1
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 47b72bb4385e3473c973d4808b85fc75
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android.meta
new file mode 100644
index 0000000..e220ce5
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: af6481f921045498da25d68f1eb565d5
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/GoogleMobileAds.Mediation.MyTarget.Android.asmdef b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/GoogleMobileAds.Mediation.MyTarget.Android.asmdef
new file mode 100644
index 0000000..d509aa3
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/GoogleMobileAds.Mediation.MyTarget.Android.asmdef
@@ -0,0 +1,19 @@
+{
+ "name": "GoogleMobileAds.Mediation.MyTarget.Android",
+ "rootNamespace": "",
+ "references": [
+ "GoogleMobileAds.Mediation.MyTarget.Common"
+ ],
+ "includePlatforms": [
+ "Android",
+ "Editor"
+ ],
+ "excludePlatforms": [],
+ "allowUnsafeCode": false,
+ "overrideReferences": false,
+ "precompiledReferences": [],
+ "autoReferenced": true,
+ "defineConstraints": [],
+ "versionDefines": [],
+ "noEngineReferences": false
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/GoogleMobileAds.Mediation.MyTarget.Android.asmdef.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/GoogleMobileAds.Mediation.MyTarget.Android.asmdef.meta
new file mode 100644
index 0000000..5cf590b
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/GoogleMobileAds.Mediation.MyTarget.Android.asmdef.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: be8624d49169d4b2a97f6df3d0928b87
+AssemblyDefinitionImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/MyTargetClient.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/MyTargetClient.cs
new file mode 100644
index 0000000..30d18ab
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/MyTargetClient.cs
@@ -0,0 +1,86 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#if UNITY_ANDROID
+
+using UnityEngine;
+
+using GoogleMobileAds.Mediation.MyTarget.Common;
+
+namespace GoogleMobileAds.Mediation.MyTarget.Android
+{
+ public class MyTargetClient : IMyTargetClient
+ {
+ private static MyTargetClient instance = new MyTargetClient();
+ private MyTargetClient() {}
+
+ private const string MYTARGET_PRIVACY_CLASS_NAME = "com.my.target.common.MyTargetPrivacy";
+
+ public static MyTargetClient Instance
+ {
+ get
+ {
+ return instance;
+ }
+ }
+
+ public void SetUserConsent(bool userConsent)
+ {
+ AndroidJavaClass myTargetPrivacy = new AndroidJavaClass(MYTARGET_PRIVACY_CLASS_NAME);
+ myTargetPrivacy.CallStatic("setUserConsent", userConsent);
+ }
+
+ public bool GetUserConsent()
+ {
+ AndroidJavaClass myTargetPrivacy = new AndroidJavaClass(MYTARGET_PRIVACY_CLASS_NAME);
+ AndroidJavaObject myTargetCurrentPrivacy =
+ myTargetPrivacy.CallStatic("currentPrivacy");
+ AndroidJavaObject userConsent =
+ myTargetCurrentPrivacy.Get("userConsent");
+ return userConsent.Call("booleanValue");
+ }
+
+ public void SetUserAgeRestricted(bool userAgeRestricted)
+ {
+ AndroidJavaClass myTargetPrivacy = new AndroidJavaClass(MYTARGET_PRIVACY_CLASS_NAME);
+ myTargetPrivacy.CallStatic("setUserAgeRestricted", userAgeRestricted);
+ }
+
+ public bool IsUserAgeRestricted()
+ {
+ AndroidJavaClass myTargetPrivacy = new AndroidJavaClass(MYTARGET_PRIVACY_CLASS_NAME);
+ AndroidJavaObject myTargetCurrentPrivacy =
+ myTargetPrivacy.CallStatic("currentPrivacy");
+ return myTargetCurrentPrivacy.Get("userAgeRestricted");
+ }
+
+ public void SetCCPAUserConsent(bool ccpaUserConsent)
+ {
+ AndroidJavaClass myTargetPrivacy = new AndroidJavaClass(MYTARGET_PRIVACY_CLASS_NAME);
+ myTargetPrivacy.CallStatic("setCcpaUserConsent", ccpaUserConsent);
+ }
+
+ public bool GetCCPAUserConsent()
+ {
+ AndroidJavaClass myTargetPrivacy = new AndroidJavaClass(MYTARGET_PRIVACY_CLASS_NAME);
+ AndroidJavaObject myTargetCurrentPrivacy =
+ myTargetPrivacy.CallStatic("currentPrivacy");
+ AndroidJavaObject ccpaUserConsent =
+ myTargetCurrentPrivacy.Get("ccpaUserConsent");
+ return ccpaUserConsent.Call("booleanValue");
+ }
+ }
+}
+
+#endif
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/MyTargetClient.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/MyTargetClient.cs.meta
new file mode 100644
index 0000000..92ced9f
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Android/MyTargetClient.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: ec19282172e424a71b8f1cf1cc711597
+timeCreated: 1527547138
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation.meta
new file mode 100644
index 0000000..ffe90d4
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 41938ac718a874046bf435da4c0959e9
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/GoogleMobileAds.Mediation.MyTarget.Mediation.asmdef b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/GoogleMobileAds.Mediation.MyTarget.Mediation.asmdef
new file mode 100644
index 0000000..573131e
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/GoogleMobileAds.Mediation.MyTarget.Mediation.asmdef
@@ -0,0 +1,22 @@
+{
+ "name": "GoogleMobileAds.Mediation.MyTarget.Mediation",
+ "rootNamespace": "",
+ "references": [
+ "GoogleMobileAds.Mediation.MyTarget.Common",
+ "GoogleMobileAds.Mediation.MyTarget.Android",
+ "GoogleMobileAds.Mediation.MyTarget.iOS"
+ ],
+ "includePlatforms": [
+ "Editor",
+ "Android",
+ "iOS"
+ ],
+ "excludePlatforms": [],
+ "allowUnsafeCode": false,
+ "overrideReferences": false,
+ "precompiledReferences": [],
+ "autoReferenced": true,
+ "defineConstraints": [],
+ "versionDefines": [],
+ "noEngineReferences": false
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/GoogleMobileAds.Mediation.MyTarget.Mediation.asmdef.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/GoogleMobileAds.Mediation.MyTarget.Mediation.asmdef.meta
new file mode 100644
index 0000000..6e674ea
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/GoogleMobileAds.Mediation.MyTarget.Mediation.asmdef.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: 9debba11feeda475ab7d2cfc82614342
+AssemblyDefinitionImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/MyTargetClientFactory.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/MyTargetClientFactory.cs
new file mode 100644
index 0000000..04f84ce
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/MyTargetClientFactory.cs
@@ -0,0 +1,34 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+using GoogleMobileAds.Mediation.MyTarget.Common;
+
+namespace GoogleMobileAds.Mediation.MyTarget
+{
+ public class MyTargetClientFactory
+ {
+ public static IMyTargetClient CreateMyTargetClient()
+ {
+ #if UNITY_EDITOR
+ return new GoogleMobileAds.Mediation.MyTarget.Common.PlaceholderClient();
+ #elif UNITY_ANDROID
+ return GoogleMobileAds.Mediation.MyTarget.Android.MyTargetClient.Instance;
+ #elif UNITY_IOS
+ return GoogleMobileAds.Mediation.MyTarget.iOS.MyTargetClient.Instance;
+ #else
+ return new GoogleMobileAds.Mediation.MyTarget.Common.PlaceholderClient();
+ #endif
+ }
+ }
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/MyTargetClientFactory.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/MyTargetClientFactory.cs.meta
new file mode 100644
index 0000000..858cf20
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/Mediation/MyTargetClientFactory.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: 3d1037dbc24204835a5fc7329adf858d
+timeCreated: 1527547150
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS.meta
new file mode 100644
index 0000000..3329948
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: c4d695a61e1ee4f3299a9c2d734133aa
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/Externs.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/Externs.cs
new file mode 100644
index 0000000..c3bf658
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/Externs.cs
@@ -0,0 +1,44 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#if UNITY_IOS
+
+using System.Runtime.InteropServices;
+
+namespace GoogleMobileAds.Mediation.MyTarget.iOS
+{
+ // Externs used by the iOS component.
+ internal class Externs
+ {
+ [DllImport("__Internal")]
+ internal static extern void GADUMMyTargetSetUserConsent(bool userConsent);
+
+ [DllImport("__Internal")]
+ internal static extern bool GADUMMyTargetGetUserConsent();
+
+ [DllImport("__Internal")]
+ internal static extern void GADUMMyTargetSetUserAgeRestricted(bool userAgeRestricted);
+
+ [DllImport("__Internal")]
+ internal static extern bool GADUMMyTargetIsUserAgeRestricted();
+
+ [DllImport("__Internal")]
+ internal static extern void GADUMMyTargetSetCCPAUserConsent(bool ccpaUserConsent);
+
+ [DllImport("__Internal")]
+ internal static extern bool GADUMMyTargetGetCCPAUserConsent();
+ }
+}
+
+#endif
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/Externs.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/Externs.cs.meta
new file mode 100644
index 0000000..129e7e0
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/Externs.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: 96594b909678945cd84e0dfabc4a19d1
+timeCreated: 1527547157
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/GoogleMobileAds.Mediation.MyTarget.iOS.asmdef b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/GoogleMobileAds.Mediation.MyTarget.iOS.asmdef
new file mode 100644
index 0000000..e2cf496
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/GoogleMobileAds.Mediation.MyTarget.iOS.asmdef
@@ -0,0 +1,19 @@
+{
+ "name": "GoogleMobileAds.Mediation.MyTarget.iOS",
+ "rootNamespace": "",
+ "references": [
+ "GoogleMobileAds.Mediation.MyTarget.Common"
+ ],
+ "includePlatforms": [
+ "Editor",
+ "iOS"
+ ],
+ "excludePlatforms": [],
+ "allowUnsafeCode": false,
+ "overrideReferences": false,
+ "precompiledReferences": [],
+ "autoReferenced": true,
+ "defineConstraints": [],
+ "versionDefines": [],
+ "noEngineReferences": false
+}
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/GoogleMobileAds.Mediation.MyTarget.iOS.asmdef.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/GoogleMobileAds.Mediation.MyTarget.iOS.asmdef.meta
new file mode 100644
index 0000000..9b3ad58
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/GoogleMobileAds.Mediation.MyTarget.iOS.asmdef.meta
@@ -0,0 +1,7 @@
+fileFormatVersion: 2
+guid: d451b4b3a484644dbb1e64a0f16a674b
+AssemblyDefinitionImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/MyTargetClient.cs b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/MyTargetClient.cs
new file mode 100644
index 0000000..6cb305d
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/MyTargetClient.cs
@@ -0,0 +1,66 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#if UNITY_IOS
+
+using GoogleMobileAds.Mediation.MyTarget.Common;
+
+namespace GoogleMobileAds.Mediation.MyTarget.iOS
+{
+ public class MyTargetClient : IMyTargetClient
+ {
+ private static MyTargetClient instance = new MyTargetClient();
+ private MyTargetClient() { }
+
+ public static MyTargetClient Instance
+ {
+ get
+ {
+ return instance;
+ }
+ }
+
+ public void SetUserConsent(bool userConsent)
+ {
+ Externs.GADUMMyTargetSetUserConsent(userConsent);
+ }
+
+ public bool GetUserConsent()
+ {
+ return Externs.GADUMMyTargetGetUserConsent();
+ }
+
+ public void SetUserAgeRestricted(bool userAgeRestricted)
+ {
+ Externs.GADUMMyTargetSetUserAgeRestricted(userAgeRestricted);
+ }
+
+ public bool IsUserAgeRestricted()
+ {
+ return Externs.GADUMMyTargetIsUserAgeRestricted();
+ }
+
+ public void SetCCPAUserConsent(bool ccpaUserConsent)
+ {
+ Externs.GADUMMyTargetSetCCPAUserConsent(ccpaUserConsent);
+ }
+
+ public bool GetCCPAUserConsent()
+ {
+ return Externs.GADUMMyTargetGetCCPAUserConsent();
+ }
+ }
+}
+
+#endif
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/MyTargetClient.cs.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/MyTargetClient.cs.meta
new file mode 100644
index 0000000..23033a6
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Platforms/iOS/MyTargetClient.cs.meta
@@ -0,0 +1,13 @@
+fileFormatVersion: 2
+guid: 5d9c81d10e0fc4a43a8a7643c01f7f7c
+timeCreated: 1527547163
+licenseType: Pro
+MonoImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ defaultReferences: []
+ executionOrder: 0
+ icon: {instanceID: 0}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins.meta
new file mode 100644
index 0000000..b76be33
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: 477e0e7bba8aa4d4e82cae584398c0af
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS.meta
new file mode 100644
index 0000000..79759cc
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS.meta
@@ -0,0 +1,8 @@
+fileFormatVersion: 2
+guid: afbb92e3f63a943f0bdb8940fd624b63
+folderAsset: yes
+DefaultImporter:
+ externalObjects: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant:
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS/GADUMMyTargetInterface.m b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS/GADUMMyTargetInterface.m
new file mode 100644
index 0000000..83b4701
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS/GADUMMyTargetInterface.m
@@ -0,0 +1,31 @@
+// Copyright 2018 Google LLC
+//
+// Licensed under the Apache License, Version 2.0 (the "License");
+// you may not use this file except in compliance with the License.
+// You may obtain a copy of the License at
+//
+// http://www.apache.org/licenses/LICENSE-2.0
+//
+// Unless required by applicable law or agreed to in writing, software
+// distributed under the License is distributed on an "AS IS" BASIS,
+// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+// See the License for the specific language governing permissions and
+// limitations under the License.
+
+#import
+
+void GADUMMyTargetSetUserConsent(BOOL userConsent) { [MTRGPrivacy setUserConsent:userConsent]; }
+
+BOOL GADUMMyTargetGetUserConsent() { return [MTRGPrivacy currentPrivacy].userConsent; }
+
+void GADUMMyTargetSetUserAgeRestricted(BOOL userAgeRestricted) {
+ [MTRGPrivacy setUserAgeRestricted:userAgeRestricted];
+}
+
+BOOL GADUMMyTargetIsUserAgeRestricted() { return [MTRGPrivacy currentPrivacy].userAgeRestricted; }
+
+void GADUMMyTargetSetCCPAUserConsent(BOOL ccpaUserConsent) {
+ [MTRGPrivacy setCcpaUserConsent:ccpaUserConsent];
+}
+
+BOOL GADUMMyTargetGetCCPAUserConsent() { return [MTRGPrivacy currentPrivacy].ccpaUserConsent; }
diff --git a/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS/GADUMMyTargetInterface.m.meta b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS/GADUMMyTargetInterface.m.meta
new file mode 100644
index 0000000..49153fd
--- /dev/null
+++ b/MyTarget/source/plugin/Assets/GoogleMobileAds/Mediation/MyTarget/Plugins/iOS/GADUMMyTargetInterface.m.meta
@@ -0,0 +1,31 @@
+fileFormatVersion: 2
+guid: 2f061ad868625452bb75e9b66c7151ae
+timeCreated: 1527549095
+licenseType: Pro
+PluginImporter:
+ externalObjects: {}
+ serializedVersion: 2
+ iconMap: {}
+ executionOrder: {}
+ isPreloaded: 0
+ isOverridable: 0
+ platformData:
+ - first:
+ Any:
+ second:
+ enabled: 0
+ settings: {}
+ - first:
+ Editor: Editor
+ second:
+ enabled: 0
+ settings:
+ DefaultValueInitialized: true
+ - first:
+ iPhone: iOS
+ second:
+ enabled: 1
+ settings: {}
+ userData:
+ assetBundleName:
+ assetBundleVariant: