Admob Mediation Unity



  1. Admob Mediation Unity Ios
  2. Admob Mediation Unity
  3. Google Admob Plugin For Unity
  4. Admob Unity Plugin
  5. Unity Admob Sdk
  6. Admob Vs Unity Ads
  7. Unity3d Admob

If you're an AdMob publisher building with Unity, you know that putting AdMob mediation to work in Unity apps can be tricky. Not only are there two different. Unity 2019.1.13f1. Admob Adapter 1.3.0. Admob ads loading first time. After app is closed or force closed.Admob stop showing ads. But all other Mediation network works fine. Admob will start showing ads if we clear the app data. I dont not this is a issue from your side please check this. Fill in the below template as detailed as possible. The AdMob Mediation Test Suite enables you to test whether you’ve correctly configured your app and ad units to display ads from third-party networks via AdMob mediation. You can use the test suite. IronSource’s mediation platform lets publishers communicate with AdMob network, a Tag For Users under the Age of Consent in Europe (TFUA) request. This feature is enabled using ironSource SDK 6.14.0+, AdMob Unity Adapter 4.3.12+. Use the following.

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

Supported ad formats and features

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

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

Requirements

  • Unity 4 or higher
  • Latest Google Mobile Ads SDK
  • To deploy on Android
    • Android API level 16 or higher
  • To deploy on iOS
    • iOS deployment target of 8.0 or higher
  • A working Unity project configured with Google Mobile Ads SDK. See Get Started for details.

Step 1: Set up Unity ads

Sign up or log in to Unity Ads.

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

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

Once your project is created, navigate to the Monetization > Placements tabof your project and take note of the Game ID for both platforms.

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

Note: While Unity Ads automatically creates 'default' placements when you firstcreate your project, we recommend creating new unique placements for each AdMobmediation configuration.

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

Banner

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

Interstitial

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

Rewarded

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

Note: Once you create a placement, you will be shown the settings related tothe ad format of placement, such as the Placement ID, Ad Type and aSkip After timer, that can be altered to your preferences.

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

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

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

Step 2: Configure mediation settings for your AdMob ad unit

You need to add Unity Ads to the mediation configuration for your AdMob adunit(s). First sign in to the AdMob UI.

If you're deploying your Unity app to both Android and iOS, you need two AdMobad units, one for each platform.

Navigate to the Mediation tab. If you have an existing mediation groupyou'd like to modify, click the name of that mediation group to edit it,and skip ahead toAdd 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.

Android

Chartboost

Give your mediation group a name, and select locations to target.Next, set the mediation group status to Enabled. Then clickAdd 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 youselected.

iOS

Give your mediation group a name, and select locations to target.Next, set the mediation group status to Enabled. Then clickAdd 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 youselected.

Add Unity Ads as an ad source

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

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

Note: You only need to set up ANO once per network.

Next, enter the Game ID and Placement ID obtained in the previoussection. Then click Done. Mediamall sound cards & media devices driver.

Finally, click Save.

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

Using rewarded ads

In the settings for your rewarded ad unit, check the Apply to allnetworks in Mediation groups box so that you provide the same reward to theuser no matter which ad network is served.

If you don't check this setting, the Unity adapter defaults to a reward oftype ' (empty string) with a value of 1. The Unity Ads SDK does not provide specificreward values for its rewarded ads.

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

Step 3: Import the Unity SDK and Adapter

Download the latest version of theGoogle Mobile Ads mediation plugin for Unity Adsand extract the GoogleMobileAdsUnityAdsMediation.unitypackage from the zipfile.

In your Unity project editor, select Assets > Import Package >Custom Package and choose the GoogleMobileAdsUnityAdsMediation.unitypackagefile you downloaded. Make sure all the files are selected and click Import.

Then, select Assets > Play Services Resolver > Android Resolver > Force Resolve. The Unity Play Services Resolver library will perfromdependency resolution from scratch and copy the declared dependencies into theAssets/Plugins/Android directory of your Unity app.

Using the Unity Adapter with Unity Ads Services

If you integrate with the Unity Ads SDK through the Services pane,Package Manager, or Asset store, then you already have a copy of the Unity AdsAndroid SDK in your app. To avoid issues with duplicate symbols when buildingfor Android, you'll need to reference a Unity Ads adapter target that doesn'tdepend on a separate copy of the Unity Ads SDK.

Update the Assets/GoogleMobileAds/Editor/UnityMediationDependencies.xml fileto use the unity-adapter-only dependency for Android instead of the unitydependency, which includes the Unity Ads SDK.

Key Point: Make sure that the first 3 digits of the unity-adapter-onlydependency matches the Unity Ads SDK version. You can check which SDK versionyou are using by checking the Package Manager.

Step 4: Additional Code Required

No Additional code required for Android or iOS deployments.

Step 5: Test Your Implementation

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

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

Android

iOS

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

Optional steps

EU Consent and GDPR

Under the Google EU User ConsentPolicy, you must ensure that certain disclosures are given to, andconsents obtained from, users in the European Economic Area (EEA) regardingthe use of device identifiers and personal data. This policy reflects therequirements of the EU ePrivacy Directive and the General Data ProtectionRegulation (GDPR). When seeking consent, you must identify each ad networkin your mediation chain that may collect, receive, or use personal data andprovide information about each network's use. Google currently is unable topass the user's consent choice to such networks automatically.

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

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

The Google Mobile Ads mediation plugin forUnity Adsversion 1.1.2 adds the UnityAds.SetGDPRConsentMetaData() method. The followingsample code shows how to pass consent information to the Unity Ads SDK manually.If you choose to call this method, it is recommended that you do so prior torequesting ads via the Google Mobile Ads SDK.

Note: The Unity C# code linked on the Unity AdsGDPR Compliance guide is notcompatible with the mediation plugin for Unity Ads. To manually pass consent toUnity Ads in the context of mediation, use theUnityAds.SetGDPRConsentMetaData() method as shown above.

Admob Mediation Unity Ios

Error codes

If the adapter fails to receive an ad from Unity Ads,publishers can check the underlying error from the ad response usingResponseInfo under the following classes:

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

Android

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

iOS

0-9UnityAds SDK returned an error. See Unity's documentation for more details.
101UnityAds server parameters configured in the Admob UI are missing/invalid.
102Device not supported by UnityAds.
103UnityAds finished presenting with error state kUnityAdsFinishStateError.
104The Unity ad object is nil after calling its initializer.
105Failed to show Unity Ads due to ad not ready.
106UnityAds called a placement changed callback with placement state kUnityAdsPlacementStateNoFill.
107UnityAds called a placement changed callback with placement state kUnityAdsPlacementStateDisabled.
108An ad was already loaded for this placement. UnityAds SDK does not support loading multiple ads for the same placement.

Unity Ads Unity Mediation Plugin Changelog

Version 2.6.0

  • Supports Unity Ads Android adapter version 3.6.0.0.
  • Supports Unity Ads iOS adapter version 3.6.0.0.

Version 2.5.1

  • Supports Unity Ads Android adapter version 3.5.1.1.
  • Supports Unity Ads iOS adapter version 3.5.1.1.

Version 2.5.0

  • Supports Unity Ads Android adapter version 3.5.0.0.
  • Supports Unity Ads iOS adapter version 3.5.0.0.

Version 2.4.7

  • Supports Unity Ads Android adapter version 3.4.8.0.
  • Supports Unity Ads iOS adapter version 3.4.8.0.

Version 2.4.6

  • Supports Unity Ads Android adapter version 3.4.6.1.
  • Supports Unity Ads iOS adapter version 3.4.6.0.
  • Publishers now have an option to use the Unity Ads Services when mediating on Unity.
    • See the Assets/GoogleMobileAds/Editor/UnityMediationDependencies.xml file for additional details.

Version 2.4.5

  • Supports Unity Ads Android adapter version 3.4.6.0.
  • Supports Unity Ads iOS adapter version 3.4.6.0.

Version 2.4.4

  • Supports Unity Ads Android adapter version 3.4.2.3.
  • Supports Unity Ads iOS adapter version 3.4.2.2.

Version 2.4.3

  • Supports Unity Ads Android adapter version 3.4.2.2.
  • Supports Unity Ads iOS adapter version 3.4.2.1.

Version 2.4.2

  • Supports Unity Ads Android adapter version 3.4.2.1.
  • Supports Unity Ads iOS adapter version 3.4.2.1.

Version 2.4.1

  • Supports Unity Ads Android adapter version 3.4.2.0.
  • Supports Unity Ads iOS adapter version 3.4.2.0.

Version 2.4.0

Admob Mediation Unity

  • Supports Unity Ads Android adapter version 3.4.0.0.
  • Supports Unity Ads iOS adapter version 3.4.0.0.

Version 2.3.0

  • Supports Unity Ads Android adapter version 3.3.0.0.
  • Supports Unity Ads iOS adapter version 3.3.0.0.

Version 2.2.0

  • Supports Unity Ads Android adapter version 3.2.0.1.
  • Supports Unity Ads iOS adapter version 3.2.0.1.

Version 2.1.0

  • Supports Unity Ads Android adapter version 3.1.0.0.
  • Supports Unity Ads iOS adapter version 3.1.0.0.

Version 2.0.3

  • Updated the plugin to support the new open-beta Rewarded API.
  • Adds support for Banner Ads.
  • Supports Unity Ads Android adapter version 3.0.0.2.
  • Supports Unity Ads iOS adapter version 3.0.0.3.

Google Admob Plugin For Unity

Version 2.0.2

  • Supports Unity Ads Android adapter version 3.0.0.0.
  • Supports Unity Ads iOS adapter version 3.0.0.1.

Version 2.0.1

  • Fixed an 'incompatible type' error that caused issues when building for iOS.

Admob Unity Plugin

Version 2.0.0

  • Supports Unity Ads Android adapter version 3.0.0.0.
  • Supports Unity Ads iOS adapter version 3.0.0.0.

Version 1.2.0

  • Supports Unity Ads Android adapter version 2.3.0.0.
  • Supports Unity Ads iOS adapter version 2.3.0.0.

Unity Admob Sdk

Version 1.1.3

Admob Vs Unity Ads

  • Supports Unity Ads Android adapter version 2.2.1.0.
  • Supports Unity Ads iOS adapter version 2.2.1.0.

Version 1.1.2

  • Supports Unity Ads Android SDK version 2.2.0.
  • Supports Unity Ads iOS SDK version 2.2.0.
  • Added UnityAds.SetGdprConsentMetaData() method to manually request a user opt-in for targeted advertising.

Unity3d Admob

Version 1.1.1

  • Supports Unity Ads Android SDK version 2.2.0.
  • Supports Unity Ads iOS SDK version 2.2.1.

Version 1.1.0

  • Supports Unity Ads Android SDK version 2.2.0.
  • Supports Unity Ads iOS SDK version 2.2.0.

Version 1.0.0

  • First release!
  • Supports Unity Ads Android SDK version 2.1.2.
  • Supports Unity Ads iOS SDK version 2.1.2.