Unity ads android studio

Содержание
  1. Getting started
  2. Preparation
  3. Implementation
  4. Integrate Unity Ads using the Advertising API
  5. Expand your basic ads integration
  6. Manage, analyze, optimize
  7. Support
  8. Integration guide for Android (Java)
  9. Overview
  10. In this guide:
  11. Basic ads implementation
  12. Creating a Project on the Unity Developer Dashboard
  13. Creating Ad Units in your game
  14. Importing the Unity Ads framework
  15. Using Android Studio
  16. Without Android Studio
  17. Initializing the Unity Ads SDK
  18. Interstitial display ads
  19. Interstitial ads example
  20. Rewarded video ads
  21. Rewarded video example
  22. Rewarded video ad buttons
  23. Banner ads
  24. Ad Unit configuration
  25. app-ads.txt
  26. Script implementation
  27. Banner position
  28. Testing
  29. Import Unity Ads SDK in Android Studio
  30. 4 Answers 4
  31. Integrating Unity Ads with Mediation
  32. Supported ad formats and features
  33. Requirements
  34. Step 1: Set up Unity ads
  35. Banner
  36. Interstitial
  37. Rewarded
  38. Step 2: Configure mediation settings for your AdMob ad unit
  39. Add Unity Ads as an ad source
  40. Using rewarded ads
  41. Step 3: Import the Unity Ads SDK and adapter
  42. Android Studio integration (recommended)
  43. Manual integration
  44. Step 4: Additional code required
  45. Step 5: Test your implementation
  46. Optional steps
  47. EU consent and GDPR
  48. Error codes
  49. Unity Ads Android Mediation Adapter Changelog
  50. Version 3.7.5.0
  51. Version 3.7.4.0
  52. Version 3.7.2.0
  53. Version 3.7.1.0
  54. Version 3.6.2.0
  55. Version 3.6.0.0
  56. Version 3.5.1.1
  57. Version 3.5.1.0
  58. Version 3.5.0.0
  59. Version 3.4.8.0
  60. Version 3.4.6.1
  61. Version 3.4.6.0
  62. Version 3.4.2.3
  63. Version 3.4.2.2
  64. Version 3.4.2.1
  65. Version 3.4.2.0
  66. Version 3.4.0.0
  67. Version 3.3.0.0
  68. Version 3.2.0.1
  69. Version 3.2.0.0
  70. Version 3.1.0.0
  71. Version 3.0.1.0
  72. Version 3.0.0.2
  73. Version 3.0.0.1
  74. Version 3.0.0.0
  75. Version 2.3.0.0
  76. Version 2.2.1.1
  77. Version 2.2.1.0
  78. Version 2.2.0.0
  79. Version 2.1.2.0
  80. Version 2.1.1.0
  81. Version 2.1.0.0
  82. Version 2.0.8.0
  83. Version 2.0.7.0
  84. Version 2.0.6.0
  85. Version 2.0.5.0
  86. Version 2.0.4.0
  87. Version 2.0.2.0
  88. Version 1.0.0

Getting started

Created by the leading mobile game engine, the Unity Ads SDK provides a comprehensive monetization framework for your game, whether you develop in Unity, xCode, or Android Studio. It streamlines ads, in-app purchasing and analytics, using cutting edge machine learning to maximize your revenue while maintaining a great player experience. Getting started is simple.

This page illustrates the journey towards maximizing your revenue with Unity Ads. Follow step by step, or jump to the integration step that best fits your stage of development.

Preparation

New to Unity Ads? Take care of these basics before implementation:

Download and import the latest Unity Ads Asset Package or SDK: Unity (C#) Install the latest SDK through Package Manager | iOS (Objective-C) | Android (Java)

*For more information on how to use the Package Manager for optimal integration, please refer to our installation guide. For Unity 2017.4 and below, you can also access the Unity Ads Asset Package via the Asset store, though we recommend upgrading to the latest SDK for optimal benefits.

  • Create a Unity Developer ID.
  • Use the Monetization Dashboard to configure Ad Units or legacy Placements to surface ad content in your game.
  • Review our Best practices guide, complete with case studies, to better understand your monetization strategy before diving in.
  • Implementation

    Integration may vary, depending on your development platform.

    Integrate Unity Ads using the Advertising API

    Expand your basic ads integration

    • Reward players for watching ads:
      • Unity (C#)
      • iOS (Objective-C)
      • Android (Java)
    • Incorporate banner ads:
      • Unity (C#)
      • iOS (Objective-C)
      • Android (Java)
    • Incorporate Augmented Reality (AR) ads.

    Manage, analyze, optimize

    Beyond implementation, Unity empowers you to fine-tune your strategy:

    • The Unity Developer Dashboard allows you to manage your ads implementation. Use the dashboard’s robust metrics tools to adopt a data-driven approach to fine-tuning your monetization strategy.
    • Learn how to filter your ads to target your audience.
    • Don’t miss out on revenue; be sure to add your Store Details once your game is live.
    • Sign up for automated payouts.

    Support

    Have questions? We’re here to help! The following resources can assist in addressing your issue:

    Источник

    Integration guide for Android (Java)

    Overview

    This guide covers basic integration for implementing Unity Ads in your native Android game.

    • If you are an iOS developer using Objective-C, click here.
    • If you are a Unity developer using C#, click here.
    • Click here for the Android (Java) API reference.

    In this guide:

    Basic ads implementation

    Creating a Project on the Unity Developer Dashboard

    If you don’t have a Unity Developer (UDN) account yet, create one here. When you have an account, follow these steps to create a Unity Project:

    1. Log in to the Unity Dashboard.
    2. From the landing page, navigate to the Monetize service. Click Explore to launch the Monetize Dashboard.
    3. Select Projects from the navigation bar.
    4. Click the New Project button.

    Locate your Project’s Game ID by selecting your Project, then selecting Project Settings from the navigation bar. From the Project Settings page, go to the Game IDs section. Copy the Google Play Store Game ID, as you will need it to activate the Unity Ads service in your game.

    Creating Ad Units in your game

    Ad Units are surfacing points that trigger ads in your game. Create Ad Units in the Monetize Dashboard by selecting your project, then selecting Monetization > Ad Units from the navigation bar.

    Click the Add Ad Unit button to bring up the creation modal. Enter your Ad Unit ID and select its type:

    • Select Rewarded video to allow players to opt-in to viewing ads in exchange for incentives. Rewarded Ad Units do not allow the player to skip the ad.
    • Select Interstitial video to show basic interstitial ads or promotional content. Interstitial Ad Units allow players to skip the ad after a specified period of time.
    • Select Banner to create a dedicated Banner Ad Unit.

    Every Unity Ads-enabled project has one Ad Unit for each format (rewarded, interstitial, and banner) per platform by default. Feel free to use one of these for your first implementation if they suit your needs, or create your own.

    For more information, see documentation on Ad Units.

    Importing the Unity Ads framework

    Download the Unity Ads framework here, specifically unity-ads.aar.

    Using Android Studio

    1. Create or open your existing Android project in Android Studio.
    2. Add a new module and import the unity-ads.aar file. Name the module «unity-ads», for example.
    3. Right-click on the module in the project view, then select Open Module Settings >app, and add «unity-ads» module as a dependency.
    4. Add the following imports to your java Activity file:

    Without Android Studio

    If you can’t use the .aar packages with your build system, Unity also provides the same resources in a ZIP file (unity-ads.zip in GitHub releases). Follow these steps to use Unity Ads:

    1. Include classes.jar in your build.
    2. Manually merge the manifest from AndroidManifest.xml. Make sure you include both AdUnitActivity and AdUnitSoftwareActivity activities. You also need to add the INTERNET and ACCESS_NETWORK_STATE permissions.
    3. If you are using ProGuard, add all lines from proguard.txt to your ProGuard configuration.
    Читайте также:  Андроид с закругленным экраном

    Initializing the Unity Ads SDK

    To initialize the SDK, you must reference your Project’s Game ID for the appropriate platform. You can locate the ID on the Monetize Dashboard by selecting the Project, then selecting Project Settings from the navigation bar (see the Dashboard guide section on Project Settings for details).

    In your game script, you’ll need to implement an IUnityAdsListener interface that handles ad callbacks. The initialize method to initialize the SDK requires this listener as a parameter. Initialize the SDK early in your game’s run-time life cycle, before you need to show ads. For example:

    For the initialize function, the myActivity parameter is the current Android Activity. The unityGameID variable is the Unity Game ID for you Project, found in the developer dashboard. The myAdsListener variable is the listener for IUnityAdsListener callbacks. The true boolean indicates that the game is in test mode, and will only show test ads.

    Note: You must implement each of the callback methods in the listener interface, even if they are empty functions for now. You will populate them with the appropriate logic where needed in the following sections. For more information on each listener callback method, see documentation on IUnityAdsListener API.

    Interstitial display ads

    To display a full-screen interstitial ad using the Advertisements API, simply initialize the SDK and use the Show function with the desired Ad Unit ID.

    Interstitial ads example

    In this example, you can invoke DisplayInterstitialAd from anywhere in your game you wish to show an interstitial ad.

    Rewarded video ads

    Rewarding players for watching ads increases user engagement, resulting in higher revenue. For example, games may reward players with in-game currency, consumables, additional lives, or experience-multipliers. For more information on how to effectively design your rewarded ads, see documentation on Ads best practices.

    To reward players for completing a video ad, use the onUnityAdsFinish listener callback method’s FinishState result to check if the user finished watching the ad and should be rewarded.

    Rewarded video example

    Rewarded video ad buttons

    Using a button to allow the player to opt in to watching an ad is a common implementation for rewarded video ads. Use the example code below to create a rewarded ads button. The ads button displays an ad when pressed, as long as ads are available. For information on configuring buttons, see Android’s documentation.

    Once you’ve implemented your button, add a script with the following code, where showAdButton is a button configured in the View:

    Ad Unit configuration

    Banner ads require a specific type of dedicated banner Ad Unit.

    app-ads.txt

    app-ads.txt is an IAB initiative to combat fraud and create transparency in the advertising ecosystem. Be sure to implement app-ads.txt as described. Otherwise, banner demand may be significantly decreased.

    Script implementation

    Note: You must initialize Unity Ads before displaying a banner ad.

    In your game script, import the BannerView API, then implement an IListener interface to provide callbacks to the SDK. The following script sample is an example implementation for displaying two banner ads on the screen, and buttons for testing them. For more information on the classes referenced, see the BannerView API section.

    Note: This example uses a single listener for multiple banner view objects. You can also have a different listener for each banner view object.

    You can place the banner view object into your view hierarchy, just like you would any other view. This allows you to customize the position of each banner instance, or display multiple banners.

    Testing

    Prior to publishing your game, enable test mode by following these steps:

    1. From the Monetize Dashboard, select your Project.
    2. Select Project Settings from the navigation bar.
    3. Scroll down to the Test Mode section, then edit the Google Play Store.
    4. Select the Override client test mode checkbox, then select the Force test mode ON for all devices radio button.

    Run your project and test your ads implementation.

    Note: You must enable test mode before testing ads integration, to avoid getting flagged for fraud.

    Источник

    Import Unity Ads SDK in Android Studio

    I just finished an app for Android and I would like to integrate ads on it with Unity Ads. I have to import the Unity Ads SDK project so, I went to : File/Import Module. Once done I entered the path of the folder but after that, I am blocked : Android Studio shows me that :

    What should I fill ?

    4 Answers 4

    A newer solution:

    1. Go to File > New > New Module > Import .JAR / .AAR package
    2. Select your .aar file (already inside /app/libs dir)
    3. Add this gradle’s app dependency: implementation project(path: ‘:unity-ads’)
    4. Now you are ready to use the SDK.

    I found solution.

    Download and unzip master zip

    Go Android Studio File —> Open Module Settings —> click plus button.

    When dialog open, you should choose Eclipse project module.

    Select unity-ads package in master project.

    Stay happy to code 🙂

    I have never tried to import Unity Ads to an non Unity project.

    I found this in the Unity website I hope it can be helpful but it’s for eclipse.

    To answer your question. You shouldn’t need to put anything there. It’s only if you want to be able to view the source of the library — intelli-sense. That being said, I didn’t like that set up and went a different route which I found easier.

    Here’s what I did.

    1. Download and unzip the master zip (pre-built packages)
    2. Copy or move the ./unity-ads-sdk-master/unity-ads/libs/unity-ads.jar to your projects ./libs dir.

    Copy the permissions and Activity definition from the provided AndroidManifest.xml file.

    3a. Might need to refresh from your Gradle tool window.

    Источник

    Integrating Unity Ads with Mediation

    This guide is intended for publishers who want to use the Google Mobile Ads SDK to load and display ads from Unity Ads via mediation. It covers how to add Unity Ads to an ad unit’s mediation configuration, how to set up Ad Network Optimization (ANO), and how to integrate the Unity Ads SDK and adapter into an Android app.

    Supported ad formats and features

    The AdMob mediation adapter for Unity Ads has the following capabilities:

    Formats
    Banner
    Interstitial
    Rewarded
    Native
    Features
    Adaptive banner
    Ad network optimization (ANO)

    Requirements

    • Android API level 16 or higher
    • Latest Google Mobile Ads SDK

    Step 1: Set up Unity ads

    On the Unity Ads Dashboard, navigate to the Project tab and click the New Project button.

    Fill out the form and click Add Project at the bottom of the page to add your project to Unity Dashboard.

    Once your project is created, navigate to the Monetization > Placements tab of your project and take note of the Game ID.

    To create a new placement, click the Add Placement button.

    For additional instructions on creating an ad placement, select the tab corresponding to your preferred ad format.

    Enter your desired Placement ID, select Banner as the ad format and click Create Placement.

    Interstitial

    Enter your desired Placement ID, select Interstitial Video as the ad format and click Create Placement.

    Rewarded

    Enter your desired Placement ID, select Rewarded Video as the ad format and click Create Placement.

    In addition to the Game ID and Placement ID you will also need your Unity Ads API Key and Organization core ID for setting up your AdMob ad unit ID.

    Navigate to the Ads Data Export > API Access tab of the Unity Ads Dashboard and take note of the Monetization Stats API Access Key.

    Then, navigate to the Settings tab of the Unity Ads Dashboard and take note of the Organization core ID.

    Step 2: Configure mediation settings for your AdMob ad unit

    You need to add Unity Ads to the mediation configuration for your ad unit. First sign in to your AdMob account.

    Next, navigate to the Mediation tab. If you have an existing mediation group you’d like to modify, click the name of that mediation group to edit it, and skip ahead to Add Unity Ads as an ad source.

    To create a new mediation group, select Create Mediation Group.

    Enter your ad format and platform, then click Continue.

    Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units, which will open up the ad unit selection overlay.

    Associate this mediation group with your existing AdMob ad unit. Then click Done.

    You should now see the ad units card populated with the ad units you selected.

    Add Unity Ads as an ad source

    In the Ad Sources card, select Add Ad Network. Then select Unity Ads.

    Enable the Optimize switch. Enter your API Key and Organization core ID obtained in the previous section to set up ANO for Unity Ads. Then enter an eCPM value for Unity Ads and click Continue.

    Next, enter the Game ID and Placement ID obtained in the previous section. Then click Done.

    Finally, click Save.

    Note: Ad Network Optimization takes a few days to gather data to accurately calculate eCPM for a mediation network. In the meantime, the ANO status will be PENDING, so you must manually set an eCPM value for the network. Once the eCPM can be calculated, ANO will automatically start updating the eCPM on your behalf.

    Using rewarded ads

    In the settings for your rewarded ad unit, provide values for the reward amount and reward type. Then, to ensure you provide the same reward to the user no matter which ad network is served, check the Apply to all networks in Mediation groups box.

    If you don’t apply this setting, the Unity adapter defaults to a reward of type «» (empty string) with a value of 1 . The Unity Ads SDK does not provide specific reward values for its rewarded ads.

    For more information on setting reward values for AdMob ad units, see Create an ad unit.

    Step 3: Import the Unity Ads SDK and adapter

    Add the following gradle dependencies with the latest versions of the Unity Ads SDK and adapter in your app-level build.gradle file:

    Manual integration

    Download the latest Unity Ads SDK ( unity-ads.aar ) from their GitHub repository and add it to your project.

    Navigate to the Unity Ads adapter artifacts on Google’s Maven Repository. Select the latest version, download the Unity Ads adapter’s .aar file, and add it to your project.

    Step 4: Additional code required

    No Additional code is required for Unity ads integration.

    Step 5: Test your implementation

    Test ads can be enabled from the Unity Ads dashboard in two ways.

    If you want to enable test ads for all devices, navigate to the Settings > Project Settings tab of your project. Under the Test Mode section, edit the Client test mode not overridden section, check Override client test mode box, select Force test mode ON and click Save.

    If you want to enable test ads only for specific devices, navigate to the Ads Data Export > Test Devices tab. Under the Test Devices section, click the Add New Device button and fill out the resulting form.

    Optional steps

    Under the Google EU User Consent Policy, you must ensure that certain disclosures are given to, and consents obtained from, users in the European Economic Area (EEA) regarding the use of device identifiers and personal data. This policy reflects the requirements of the EU ePrivacy Directive and the General Data Protection Regulation (GDPR). When seeking consent, you must identify each ad network in your mediation chain that may collect, receive, or use personal data and provide information about each network’s use. Google currently is unable to pass the user’s consent choice to such networks automatically.

    Follow the instructions below to enable or disable personalized ads for Unity Ads.

    Unity Ads provides a GDPR Compliance guide that describes both automatic and manual solutions for user consent.

    The following sample code shows how to pass consent information to the Unity Ads SDK manually. Should you choose to pass consent information to the Unity Ads SDK manually, it is recommended that this code is called prior to requesting ads via the Google Mobile Ads SDK.

    Error codes

    If the adapter fails to receive an ad from Unity Ads, publishers can check the underlying error from the ad response using ResponseInfo.getAdapterResponse() under the following classes:

    Here are the codes and accompanying messages thrown by the UnityAds adapter when an ad fails to load:

    Error code Reason
    0-10 UnityAds SDK returned an error. See code for more details.
    101 UnityAds server parameters configured in the AdMob UI are missing/invalid.
    102 UnityAds returned a placement with a NO_FILL state.
    103 UnityAds returned a placement with a DISABLED state.
    104 UnityAds tried to show an ad with a null context.
    105 Context used to initialize, load and/or show ads from Unity Ads is not an Activity instance.
    106 UnityAds tried to show an ad that’s not ready to be shown.
    107 UnityAds is not supported on the device.
    108 UnityAds can only load 1 ad per placement at a time.
    109 UnityAds finished with an ERROR state.
    200-204 UnityAds Banner specific error. See code for more details.

    Unity Ads Android Mediation Adapter Changelog

    Version 3.7.5.0

    • Verified compatibility with Unity Ads SDK 3.7.5.

    Built and tested with:

    • Google Mobile Ads SDK version 20.2.0.
    • Unity Ads SDK version 3.7.5.

    Version 3.7.4.0

    • Verified compatibility with Unity Ads SDK 3.7.4.

    Built and tested with:

    • Google Mobile Ads SDK version 20.2.0.
    • Unity Ads SDK version 3.7.4.

    Version 3.7.2.0

    • Verified compatibility with Unity Ads SDK 3.7.2.
    • Updated the minimum required Google Mobile Ads SDK version to 20.2.0.

    Built and tested with:

    • Google Mobile Ads SDK version 20.2.0.
    • Unity Ads SDK version 3.7.2.

    Version 3.7.1.0

    • Verified compatibility with Unity Ads SDK 3.7.1.
    • Updated the minimum required Google Mobile Ads SDK version to 20.1.0.

    Built and tested with:

    • Google Mobile Ads SDK version 20.1.0.
    • Unity Ads SDK version 3.7.1.

    Version 3.6.2.0

    • Verified compatibility with Unity Ads SDK 3.6.2.
    • Fixed an issue where rewarded ads were not forwarding click callbacks.
    • The UnityAds SDK has been removed from the bundled adapter build. Publishers are now required to manually include the UnityAds SDK as an additional dependency.
    • Updated the minimum required Google Mobile Ads SDK version to 19.8.0.

    Built and tested with:

    • Google Mobile Ads SDK version 19.8.0.
    • Unity Ads SDK version 3.6.2.

    Version 3.6.0.0

    • Verified compatibility with Unity Ads SDK 3.6.0.
    • Updated the minimum required Google Mobile Ads SDK version to 19.6.0.

    Built and tested with:

    • Google Mobile Ads SDK version 19.6.0.
    • Unity Ads SDK version 3.6.0.

    Version 3.5.1.1

    • Fixed an issue where when trying to request for multiple interstitial and rewarded ads.

    Built and tested with:

    • Google Mobile Ads SDK version 19.5.0.
    • Unity Ads SDK version 3.5.1.

    Version 3.5.1.0

    • Verified compatibility with Unity Ads SDK 3.5.1.
    • Fixed an issue that causes smart banner ad requests to fail.

    Built and tested with:

    • Google Mobile Ads SDK version 19.5.0.
    • Unity Ads SDK version 3.5.1.

    Version 3.5.0.0

    • Verified compatibility with Unity Ads SDK 3.5.0.
    • Added adaptive banner support.
    • Updated the minimum required Google Mobile Ads SDK version to 19.5.0.

    Built and tested with:

    • Google Mobile Ads SDK version 19.5.0.
    • Unity Ads SDK version 3.5.0.

    Version 3.4.8.0

    • Fixed a NullPointerException error that occurs when a banner ad is destroyed.
    • Updated the minimum required Google Mobile Ads SDK version to 19.3.0.

    Built and tested with:

    • Google Mobile Ads SDK version 19.3.0.
    • Unity Ads SDK version 3.4.8.

    Version 3.4.6.1

    • Created an adapter build that does not include the Unity Ads SDK bundled in. This gives publishers an option to use the Unity Ads Services when mediating on Unity to avoid conflicting dependency issues.
      • Publishers may opt to use this by including the com.google.ads.mediation:unity-adapter-only:x.y.z.p dependency on their app-level build.gradle file.

    Built and tested with:

    • Google Mobile Ads SDK version 19.1.0.
    • Unity Ads SDK version 3.4.6.

    Version 3.4.6.0

    • Verified compatibility with Unity Ads SDK 3.4.6.
    • Adapter now forwards the onAdOpened() callback when a banner ad is clicked.

    Built and tested with:

    • Google Mobile Ads SDK version 19.1.0.
    • Unity Ads SDK version 3.4.6.

    Version 3.4.2.3

    • Added descriptive error codes and reasons for adapter load/show failures.
    • Updated the minimum required Google Mobile Ads SDK version to 19.1.0.

    Built and tested with:

    • Google Mobile Ads SDK version 19.1.0.
    • Unity Ads SDK version 3.4.2.

    Version 3.4.2.2

    • Fixed a ConcurrentModificationException crash that occurred when Unity Ads returns an error.

    Built and tested with:

    • Google Mobile Ads SDK version 19.0.1.
    • Unity Ads SDK version 3.4.2.

    Version 3.4.2.1

    • Improved forwarding of Unity’s errors to recognize initialization and ad load failures earlier and reduce timeouts.
    • Updated the minimum required Google Mobile Ads SDK version to 19.0.1.

    Built and tested with:

    • Google Mobile Ads SDK version 19.0.1.
    • Unity Ads SDK version 3.4.2.

    Version 3.4.2.0

    • Verified compatibility with Unity Ads SDK 3.4.2.
    • Updated the minimum required Google Mobile Ads SDK version to 18.3.0.

    Built and tested with:

    • Google Mobile Ads SDK version 18.3.0.
    • Unity Ads SDK version 3.4.2.

    Version 3.4.0.0

    • Verified compatibility with Unity Ads SDK 3.4.0.
    • Updated the minimum required Google Mobile Ads SDK version to 18.3.0.

    Built and tested with:

    • Google Mobile Ads SDK version 18.3.0.
    • Unity Ads SDK version 3.4.0.

    Version 3.3.0.0

    • Verified compatibility with Unity Ads SDK 3.3.0.

    Built and tested with:

    • Google Mobile Ads SDK version 18.2.0.
    • Unity Ads SDK version 3.3.0.

    Version 3.2.0.1

    • Fixed a null pointer exception crash that occurred when calling loadAd() before calling UnityAds.initialize() .
    • Updated the minimum required Google Mobile Ads SDK version to 18.2.0.

    Version 3.2.0.0

    • Fixed an issue that caused Banner Ad requests to fail.
    • Verified compatibility with Unity Ads SDK 3.2.0.
    • Migrated the adapter to AndroidX.
    • Updated the minimum required Google Mobile Ads SDK version to 18.1.1.

    Version 3.1.0.0

    • Added support for flexible banner ad sizes.
    • Adapter fails the ad request if the requested size isn’t compatible with any Unity Ads banner sizes
    • Verified compatibility with Unity Ads SDK 3.1.0.

    Version 3.0.1.0

    • Verified compatibility with Unity Ads SDK 3.0.1.
    • Fixed a bug that caused ‘NPE’ while showing an interstitial ad.

    Version 3.0.0.2

    • Updated adapter to support new open-beta Rewarded API.
    • Updated the minimum required Google Mobile Ads SDK version to 17.2.0.

    Version 3.0.0.1

    • Added support for Unity Ads Banner.

    Version 3.0.0.0

    • Verified compatibility with Unity Ads SDK 3.0.0.

    Version 2.3.0.0

    • Verified compatibility with Unity Ads SDK 2.3.0.

    Version 2.2.1.1

    • Updated the adapter to invoke the onRewardedVideoComplete() ad event.

    Version 2.2.1.0

    • Verified compatibility with Unity Ads SDK 2.2.1.

    Version 2.2.0.0

    • Verified compatibility with Unity Ads SDK 2.2.0.

    Version 2.1.2.0

    • Verified compatibility with Unity Ads SDK 2.1.2.

    Version 2.1.1.0

    • Verified compatibility with Unity Ads SDK 2.1.1.

    Version 2.1.0.0

    • Updated the adapter to make it compatible with Unity Ads SDK 2.1.0.

    Version 2.0.8.0

    • Verified compatibility with Unity Ads SDK 2.0.8.

    Version 2.0.7.0

    • Using Unity Ads’s click reporting (AdMob and Unity Ads click statistics will match up).
    • Added onAdLeftApplication callback support.

    Version 2.0.6.0

    • Verified compatibility with Unity Ads SDK 2.0.6.

    Version 2.0.5.0

    • The adapters can now be added as a compile dependency by adding the following to the build.gradle file’s dependencies tag: compile ‘com.google.ads.mediation:unity:2.0.5.0’
    • Moved to distributing the adapter as an aar instead of a jar file (see README for additional instructions).

    Version 2.0.4.0

    • Fixed a bug that caused rewarded video ads to fail to load when an interstitial ad was loaded first.

    Version 2.0.2.0

    • Changed the version naming system to [Unity Ads SDK version].[adapter patch version].
    • Updated the minimum required Unity Ads SDK to v2.0.2.
    • Updated the minimum required Google Mobile Ads SDK to v9.0.0.
    • Apps are no longer required to call UnityAds.changeActivity(this).

    Version 1.0.0

    • Initial release. Supports reward-based video ads and interstitial ads.

    Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

    Источник

    Читайте также:  Тнт премьер андроид ломаный
    Оцените статью