Unity Ads Mediation on Android

1,502 views
Skip to first unread message

ga...@iwaredesigns.co.uk

unread,
Apr 7, 2021, 5:25:41 AM4/7/21
to Google Mobile Ads SDK Developers
Hi, 

A few days ago I updated our advert SDK's on our Android Apps and noticed a huge drop in Android Impressions.  I have just been testing the AdMob SDK 20.0.0 with Unity 3.6.0.0 as per the mediation instructions online and am seeing the following in Logcat.

E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.

Our current live versions using AdMob SDK 19.8.0 with Unity 3.6.0.0 and can only assume they are also experiencing the same problem.

Unity Ads is currently on version 3.7.x.x, do we have a timescale for an update to the mediation adapter?

Best regards,

Gavin Harwood

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 7, 2021, 9:16:32 AM4/7/21
to ga...@iwaredesigns.co.uk, google-adm...@googlegroups.com
Hi Gavin,

Thank you for bringing to our attention the need for an updated adaptor for the new Unity Ads version and this issue with Unity adaptor that needs Activity context.

Regarding the new Unity Ads version adapter we cannot give a timeline, I will bring up your request for it with my team and you may monitor the Unity Adapter changelog for an update.

Regarding the issue with missing activity context, to bring this up with my team we will need a project based on one of our sample apps with minimum modification to address your use case. You may send it to us privately, or via our testing alias mobileads...@gmail.com with a post on this thread once you have done so.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2EqVzF:ref

ga...@iwaredesigns.co.uk

unread,
Apr 9, 2021, 3:07:09 AM4/9/21
to Google Mobile Ads SDK Developers
Hi Aryeh,

Thanks for the response.

Just a quick question with regards to the  Unity Adapter changelog 

It says that the version 3.6.2 has been built and tested with with Google Mobile Ads SDK version 19.8.0 and Unity Ads SDK version 3.6.2

However, I can only see version 3.6.0.0 of the adapter Bintray

Unity Ads Android Mediation Adapter ChangelogVersion 3.6.2.0
  • Verified compatibility with Unity Ads SDK 3.6.2.
  • Fixed an issue where rewarded ads were not forwarding click callbacks.
  • 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.
Regards,

Gavin Harwood.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 9, 2021, 9:59:31 AM4/9/21
to ga...@iwaredesigns.co.uk, google-adm...@googlegroups.com
Hi Gavin,

Thank you for pointing this out to us, I added your request for the 3.6 version to be available and you will see its availability in Import the Unity Ads SDK and adapter section when it becomes available. If it's already in the change log then publishing is not far behind, the import section is authoritative of what is live.

ga...@iwaredesigns.co.uk

unread,
Apr 16, 2021, 3:11:15 AM4/16/21
to Google Mobile Ads SDK Developers
Hi Aryeh,

Is there any update to the release of the Unity Ads 3.6.2 Adapter?

I released one of our Apps a few days ago using the AdMob SDK 20.0.0 and Unity Ads 3.6.0 as per the documentation and we are still getting no impressions from Unity Ads.

Our Android Apps show Unity Ads okay using the AdMob SDK 19.6.0 and Unity Ads 3.5.1 SDK.

Fyber, Facebook and ironSource are all working as expected with AdMob SDK 20.0.0.

Regards,

Gavin.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 16, 2021, 4:53:06 AM4/16/21
to ga...@iwaredesigns.co.uk, google-adm...@googlegroups.com

Hi Gavin,

Thank you for reaching out to us.

I work with Aryeh and will be assisting you. Thank you for your patience. I'm afraid that this is still under request. I've followed up again with the team and will let you know when I hear back.

Regards,

Google Logo
Princess Pamela Pineda
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2EqVzF:ref

ga...@iwaredesigns.co.uk

unread,
Apr 17, 2021, 3:40:48 AM4/17/21
to Google Mobile Ads SDK Developers
Hi,

I noticed this morning that the documentation has been changed to Unity Ads 3.6.2.  I have implemented the new versions but still do not get any impressions for Interstitials or Rewarded Ads from Unity Ads on Android.

All of our other mediated advertising partners are working correctly.  It is only Unity Ads on Android that we are getting no impressions for.

Below is the LOGCAT output from Android Studio filtered using 'Unity' and running AdMob SDK 19.6 and Unity Ads 3.5.1 (I have highlighted in green bold the rewards and interstitial notifications).

2021-04-17 08:19:39.136 10919-10919/? D/UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.iwaredesigns.prodarts/files/UnityAdsStorage-public-data.json
2021-04-17 08:19:39.137 10919-10919/? D/UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.iwaredesigns.prodarts/files/UnityAdsStorage-private-data.json
2021-04-17 08:19:39.139 10919-10919/? D/UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.iwaredesigns.prodarts/files/UnityAdsStorage-public-data.json
2021-04-17 08:19:39.140 10919-10919/? D/UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:86) :: Couldn't send storage event to WebApp
2021-04-17 08:19:40.694 10919-10919/? D/UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.iwaredesigns.prodarts/files/UnityAdsStorage-public-data.json
2021-04-17 08:19:40.695 10919-10919/? D/UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:86) :: Couldn't send storage event to WebApp
2021-04-17 08:19:40.697 10919-10919/? D/UnityAds: com.unity3d.services.ads.UnityAdsImplementation.initialize() (line:69) :: ENTERED METHOD
2021-04-17 08:19:40.698 10919-10919/? D/UnityAds: com.unity3d.services.UnityServices.initialize() (line:36) :: ENTERED METHOD
2021-04-17 08:19:40.701 10919-10919/? I/UnityAds: com.unity3d.services.UnityServices.initialize() (line:128) :: Initializing Unity Services 3.5.1 (3510) with game id 1405163 in production mode
2021-04-17 08:19:40.729 10919-10919/? I/UnityAds: com.unity3d.services.UnityServices.initialize() (line:146) :: Unity Services environment check OK
2021-04-17 08:19:40.757 10919-11131/? I/UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateConfig.execute() (line:289) :: Unity Ads init: load configuration from https://config.unityads.unity3d.com/webview/3.5.1/release/config.json
2021-04-17 08:19:40.927 10919-11131/? I/UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateLoadWeb.execute() (line:375) :: Unity Ads init: loading webapp from https://webview.unityads.unity3d.com/webview/3.5.1/61ace7a3839688cded26995ff67ce0d1754a06e8/release/index.html
2021-04-17 08:19:42.542 10919-11105/? I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: mediation detection is:{"UnityEngine":false}
2021-04-17 08:19:43.311 10919-11105/? I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBMZXZlbENvcHBhIjpmYWxzZSwiYXR0IjowLCJhdWMiOjIzNSwiYXpwIjoiYmFiNDI0NmMtM2JjZS00N2QyLTk1YWYtN2QzMzE3OTQwNDgzIiwiY2FsY3VsYXRlZENvcHBhIjpmYWxzZSwiY29uc2VudCI6dHJ1ZSwiY3BpIjo0NCwiY3JlYXRlZCI6MTU1NDI5OTQwODAwMCwiZHQiOjAsImV4cCI6MTYxOTg1MzU4MywiaWFwIjoxNDcsImlhdCI6MTYxODY0Mzk4MywiaXNzIjoiYWRzLWdhbWUtY29uZmlndXJhdGlvbi51bml0eWFkcy51bml0eTNkLmNvbSIsImxlZ2FsVGVycml0b3J5IjoxLCJsdHYiOjE5NCwicHJvIjoxNzcsInByb3hpZWQiOmZhbHNlLCJzdWIiOiJDODdUU3Vaa2puQnJ4UUlMMUpZRExOTDNXOEE3S0h3YVBLRjFBUHZHb0RxQXZ6S3AxQnMvdnlLNGVxZklGclloMW9jUEF3PT0iLCJ1c2VyQWdlR2F0ZVJlc3VsdCI6ZmFsc2UsInVzZXJMZXZlbENvcHBhIjpmYWxzZSwieHByIjo1MX0.cl8ssHqlGyhJgXMN3bxFDZpNyk9BzIl2O66Dtb55JGA (A/B group 5)
2021-04-17 08:19:43.581 10919-10919/? I/chromium: [INFO:CONSOLE(0)] "Uncaught (in promise) [object Array]", source: file:///storage/emulated/0/Android/data/com.iwaredesigns.prodarts/cache/UnityAdsCache/UnityAdsWebApp.html?platform=android&origin=https%3A%2F%2Fwebview.unityads.unity3d.com%2Fwebview%2F3.5.1%2F61ace7a3839688cded26995ff67ce0d1754a06e8%2Frelease%2Findex.html&version=61ace7a3839688cded26995ff67ce0d1754a06e8 (0)
2021-04-17 08:19:43.600 10919-10919/? D/UnityMediationAdapter: Unity Ads initialized successfully.
2021-04-17 08:19:43.601 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load rewarded ad for placement ID 'rewardedTier1' in game '1405163'.
2021-04-17 08:19:46.030 10919-10919/? D/UnityMediationAdapter: Unity Ads rewarded ad successfully loaded for placement ID 'rewardedTier1'
2021-04-17 08:19:46.097 10919-11105/? I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Webview started using the latest version
2021-04-17 08:20:18.577 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier1' in game '1405163'.
2021-04-17 08:20:19.600 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load interstitial ad for placement ID 'videoTier1' in game '1405163'.
2021-04-17 08:20:19.620 10919-10919/? D/UnityMediationAdapter: Unity Ads interstitial ad successfully loaded for placement ID 'videoTier1'.
2021-04-17 08:20:19.679 10919-11105/? E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier1
2021-04-17 08:20:19.686 10919-10919/? W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier1 failed to fill!
2021-04-17 08:20:20.703 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier2' in game '1405163'.
2021-04-17 08:20:21.416 10919-11105/? E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier2
2021-04-17 08:20:21.422 10919-10919/? W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier2 failed to fill!
2021-04-17 08:20:22.439 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'banner_Tier3' in game '1405163'.
2021-04-17 08:20:23.054 10919-11105/? E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement banner_Tier3
2021-04-17 08:20:23.059 10919-10919/? W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement banner_Tier3 failed to fill!
2021-04-17 08:20:23.977 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier4' in game '1405163'.
2021-04-17 08:20:24.896 10919-11105/? E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier4
2021-04-17 08:20:24.901 10919-10919/? W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier4 failed to fill!
2021-04-17 08:20:25.729 10919-10919/? D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier5' in game '1405163'.
2021-04-17 08:20:26.458 10919-11105/? E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier5
2021-04-17 08:20:26.463 10919-10919/? W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier5 failed to fill!

Below is the LOGCAT output from Android Studio filtered using 'Unity' and running AdMob SDK 20.0 and Unity Ads 3.6.2 (It's the same with Unity Ads 3.6.0 and 3.7.1.  There are no log outputs for interstitial or rewarded placements at all, even for no fill).

This error also occurs a few times: 2021-04-17 08:35:54.327 12606-12606/com.iwaredesigns.prodarts E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.

2021-04-17 08:35:21.825 12606-12606/com.iwaredesigns.prodarts D/UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.iwaredesigns.prodarts/files/UnityAdsStorage-public-data.json
2021-04-17 08:35:21.826 12606-12606/com.iwaredesigns.prodarts D/UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:86) :: Couldn't send storage event to WebApp
2021-04-17 08:35:22.379 12606-12606/com.iwaredesigns.prodarts D/UnityAds: com.unity3d.services.core.misc.Utilities.writeFile() (line:127) :: Wrote file: /data/user/0/com.iwaredesigns.prodarts/files/UnityAdsStorage-public-data.json
2021-04-17 08:35:22.379 12606-12606/com.iwaredesigns.prodarts D/UnityAds: com.unity3d.services.core.device.Storage.sendEvent() (line:86) :: Couldn't send storage event to WebApp
2021-04-17 08:35:22.381 12606-12606/com.iwaredesigns.prodarts D/UnityAds: com.unity3d.services.ads.UnityAdsImplementation.initialize() (line:72) :: ENTERED METHOD
2021-04-17 08:35:22.381 12606-12606/com.iwaredesigns.prodarts D/UnityAds: com.unity3d.services.UnityServices.initialize() (line:36) :: ENTERED METHOD
2021-04-17 08:35:22.383 12606-12606/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.UnityServices.initialize() (line:131) :: Initializing Unity Services 3.6.2 (3620) with game id 1405163 in production mode
2021-04-17 08:35:22.396 12606-12606/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.UnityServices.initialize() (line:146) :: Unity Services environment check OK
2021-04-17 08:35:22.461 12606-12757/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateConfig.execute() (line:289) :: Unity Ads init: load configuration from https://config.unityads.unity3d.com/webview/3.6.2/release/config.json
2021-04-17 08:35:22.634 12606-12757/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.core.configuration.InitializeThread$InitializeStateLoadWeb.execute() (line:375) :: Unity Ads init: loading webapp from https://webview.unityads.unity3d.com/webview/3.6.2/2cccec59d8b935817a7c5ae37cd8123d5ea48196/release/index.html
2021-04-17 08:35:24.229 12606-12766/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: mediation detection is:{"UnityEngine":false}
2021-04-17 08:35:24.796 12606-12766/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBMZXZlbENvcHBhIjpmYWxzZSwiYXR0IjowLCJhdWMiOjIzNSwiYXpwIjoiYmFiNDI0NmMtM2JjZS00N2QyLTk1YWYtN2QzMzE3OTQwNDgzIiwiY2FsY3VsYXRlZENvcHBhIjpmYWxzZSwiY29uc2VudCI6dHJ1ZSwiY3BpIjo0NCwiY3JlYXRlZCI6MTU1NDI5OTQwODAwMCwiZHQiOjAsImV4cCI6MTYxOTg1NDUyNCwiaWFwIjoxNDcsImlhdCI6MTYxODY0NDkyNCwiaXNzIjoiYWRzLWdhbWUtY29uZmlndXJhdGlvbi51bml0eWFkcy51bml0eTNkLmNvbSIsImxlZ2FsVGVycml0b3J5IjoxLCJsdHYiOjE5NCwicHJvIjoxNzcsInByb3hpZWQiOmZhbHNlLCJzdWIiOiI5dkwwYWdtRG0rbXN5YitVQVFNN2tYZnNidThSR0xrbEx4V2VQU3AxYzlXNGVaZ1hFbm83NjNtWlYzVzJsaWdDeEc2bzFBPT0iLCJ1c2VyQWdlR2F0ZVJlc3VsdCI6ZmFsc2UsInVzZXJMZXZlbENvcHBhIjpmYWxzZSwieHByIjo1MX0.ve7fk4Zso-rEUVQif1y2DPjhlTzaCslvInXJBw8JKDM (A/B group 5)
2021-04-17 08:35:24.861 12606-12606/com.iwaredesigns.prodarts I/chromium: [INFO:CONSOLE(0)] "Uncaught (in promise) [object Array]", source: file:///storage/emulated/0/Android/data/com.iwaredesigns.prodarts/cache/UnityAdsCache/UnityAdsWebApp.html?platform=android&origin=https%3A%2F%2Fwebview.unityads.unity3d.com%2Fwebview%2F3.6.2%2F2cccec59d8b935817a7c5ae37cd8123d5ea48196%2Frelease%2Findex.html&version=2cccec59d8b935817a7c5ae37cd8123d5ea48196 (0)
2021-04-17 08:35:24.874 12606-12606/com.iwaredesigns.prodarts D/UnityMediationAdapter: Unity Ads initialized successfully.
2021-04-17 08:35:24.877 12606-12606/com.iwaredesigns.prodarts D/ProphetJava: ProphetAdvertising, Adapter 'com.google.ads.mediation.unity.UnityMediationAdapter' READY
2021-04-17 08:35:27.767 12606-12766/com.iwaredesigns.prodarts I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Webview started using the latest version
2021-04-17 08:35:54.287 12606-12606/com.iwaredesigns.prodarts D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier1' in game '1405163'.
2021-04-17 08:35:54.327 12606-12606/com.iwaredesigns.prodarts E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
2021-04-17 08:35:55.402 12606-12766/com.iwaredesigns.prodarts E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier1
2021-04-17 08:35:55.409 12606-12606/com.iwaredesigns.prodarts W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier1 failed to fill!
2021-04-17 08:35:56.003 12606-12606/com.iwaredesigns.prodarts E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
2021-04-17 08:35:56.328 12606-12606/com.iwaredesigns.prodarts D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier2' in game '1405163'.
2021-04-17 08:35:57.054 12606-12766/com.iwaredesigns.prodarts E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier2
2021-04-17 08:35:57.072 12606-12606/com.iwaredesigns.prodarts W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier2 failed to fill!
2021-04-17 08:35:57.973 12606-12606/com.iwaredesigns.prodarts D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'banner_Tier3' in game '1405163'.
2021-04-17 08:35:58.544 12606-12606/com.iwaredesigns.prodarts E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
2021-04-17 08:35:58.624 12606-12766/com.iwaredesigns.prodarts E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement banner_Tier3
2021-04-17 08:35:58.627 12606-12606/com.iwaredesigns.prodarts W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement banner_Tier3 failed to fill!
2021-04-17 08:35:59.416 12606-12606/com.iwaredesigns.prodarts D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier4' in game '1405163'.
2021-04-17 08:36:00.380 12606-12766/com.iwaredesigns.prodarts E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier4
2021-04-17 08:36:00.385 12606-12606/com.iwaredesigns.prodarts W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier4 failed to fill!
2021-04-17 08:36:01.025 12606-12606/com.iwaredesigns.prodarts D/UnityMediationAdapter: Unity Ads successfully initialized, can now load banner ad for placement ID 'bannerTier5' in game '1405163'.
2021-04-17 08:36:02.361 12606-12766/com.iwaredesigns.prodarts E/UnityAds: com.unity3d.services.core.api.Sdk.logError() (line:72) :: No fill for placement bannerTier5
2021-04-17 08:36:02.368 12606-12606/com.iwaredesigns.prodarts W/UnityMediationAdapter: Unity Ads banner failed to load: 204: Placement bannerTier5 failed to fill!

Regards,

Gavin.

Mobile Ads SDK Forum Advisor Prod

unread,
Apr 19, 2021, 12:03:01 AM4/19/21
to ga...@iwaredesigns.co.uk, google-adm...@googlegroups.com

Hi Gavin,

Thank you for bringing this to us and for checking this version of unity ads. Rest assured that I will bring this to the team for additional information to investigate further.

Fredrik Röstlund

unread,
Jun 4, 2021, 8:52:36 AM6/4/21
to Google Mobile Ads SDK Developers
Getting the same error no matter what activity context references I pass to the MobileAds initialization.

implementation "com.google.android.gms:play-services-ads:20.1.0"
implementation 'com.google.ads.mediation:unity:3.6.2.0'
implementation 'com.unity3d.ads:unity-ads:3.6.2'

com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: mediation detection is:{"UnityEngine":false}
com.frojo.moy7 I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Received configuration for token eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhZyI6InZ1QkE3VnljK2xCc0E5dUFjN2ZxWUtFY0dQVUI2VE5hV2kxMVhRZlNWcUpPeUdhVFl4TW9XcHY0R21PZUhYQkxGVm5NOFE9PSIsImFwcExldmVsQ29wcGEiOnRydWUsImF0dCI6MCwiYXVjIjo0LCJhenAiOiIyNGQwYmZlMy1hYmM4LTRiOWQtYWE0Ny03MTI0OTZmODE3YjIiLCJjYWxjdWxhdGVkQ29wcGEiOnRydWUsImNvbnNlbnQiOmZhbHNlLCJjcGkiOjE4MSwiY3JlYXRlZCI6MTU1NDc0NjI5MTAwMCwiZHQiOjAsImV4cCI6MTYyNDAyMDQxMSwiaWFwIjo4NCwiaWF0IjoxNjIyODEwODExLCJpZyI6ImhxV3lMTHFmVVNEeXJNdERwREcxRGRHWTVXTWVWUk1kV09ENk5IVWxOdzVYV3l1TUlmdStZNXFBMm1SeEs3UmlnSG5mZEE9PSIsImlzcyI6ImFkcy1nYW1lLWNvbmZpZ3VyYXRpb24udW5pdHlhZHMudW5pdHkzZC5jb20iLCJsZWdhbFRlcnJpdG9yeSI6MSwibHR2IjoxMjYsInBybyI6MTYwLCJwcm94aWVkIjpmYWxzZSwic3ViIjoiL29YL3I4cjFIUHovYWdBaWo4S2wxbzBQVVJ5RkU1bXg0UGxsbC9FMlFsRWlWQStPc1NyNDVSblpIc3B0UGRrRXhzTmVGZz09IiwidXNlckFnZUdhdGVSZXN1bHQiOmZhbHNlLCJ1c2VyTGV2ZWxDb3BwYSI6dHJ1ZSwieHByIjoxMTF9.pmQCizXiRE0mVrSJwTyx5d024JbfsRa1lbixZ2Y2W9Q (A/B group 8)
com.frojo.moy7 I/chromium: [INFO:CONSOLE(0)] "Uncaught (in promise) [object Array]", source: file:///storage/emulated/0/Android/data/com.frojo.moy7/cache/UnityAdsCache/UnityAdsWebApp.html?platform=android&origin=https%3A%2F%2Fwebview.unityads.unity3d.com%2Fwebview%2F3.6.2%2Frelease%2Findex.html&version=5fccc7c4037b303bac8445477d003ca4e5b8b15c (0)
com.frojo.moy7 D/UnityMediationAdapter: Unity Ads initialized successfully.
com.frojo.moy7 I/UnityAds: com.unity3d.services.core.api.Sdk.logInfo() (line:84) :: Webview started using the latest version
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.
com.frojo.moy7 E/UnityMediationAdapter: Failed to load ad: 105: Unity Ads requires an Activity context to load ads.

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 4, 2021, 2:41:53 PM6/4/21
to bestpe...@gmail.com, google-adm...@googlegroups.com
Hi Fredrick,

Could you wire up one of our sample apps with your Unity setup and send the project to us privately with a Charles log? Alternatively, you may share a link to the project with access permission given to our testing alias mobileads...@gmail.com.

Regards,

Google Logo
Aryeh Baker
Mobile Ads SDK Team
 


ref:_00D1U1174p._5004Q2EqVzF:ref

Mobile Ads SDK Forum Advisor Prod

unread,
Jun 4, 2021, 2:43:04 PM6/4/21
to bestpe...@gmail.com, google-adm...@googlegroups.com
Hi Fredrick,

Here's a link to our sample apps .

Fredrik Röstlund

unread,
Jun 8, 2021, 7:19:36 AM6/8/21
to Google Mobile Ads SDK Developers
Hi Aryeh,

I just set up a test project with my framework (libGDX) to send to you guys, but it's working fine..

So I will have to figure this out on my own. Something weird is definitely happening with my main project.

Thanks,
Fredrik

Fredrik Röstlund

unread,
Jun 8, 2021, 7:36:14 AM6/8/21
to Google Mobile Ads SDK Developers
Found the problem.

I was passing a weird reference to my AdView.

Context context = this.getApplicationContext();
adView = new AdView(context);

->

adView = new AdView(this);

This fixed my problem. My implementation used to work with the old SDK, but not with the new mediation.

Regards,
Fredrik

Reply all
Reply to author
Forward
0 new messages