AppLovin / AppLovin-MAX-Unity-Plugin

116 stars 33 forks source link

Google AdMob, Google AdManager and HyprMX ad networks not compatible upon Android Resolver resolution #266

Open manelizzard opened 1 year ago

manelizzard commented 1 year ago

MAX Plugin Version

5.10.1

Unity Version

202.3.48f1

Device/Platform Info

Unity Editor

Current Behavior

After updating latest available network SDKs, Android Resolver does not succeed to resolve conflicts in a decent amount of tries/time:

Expected Behavior

Android Resolver resolves at first try or in less than 3 minutes

How to Reproduce

  1. Download Demo App
  2. Install the following ad networks:
  3. Try to resolve through Assets > External Dependency Manager > Android Resolver > Force Resolve
  4. Resolution never ends
Captura de pantalla 2023-07-03 a las 14 27 48

Additional Info

https://drive.google.com/file/d/1gjko6uB-qw_ZdejHujzes5yJT_CM9lzV/view?usp=sharing

manelizzard commented 1 year ago

I'm still investigating on this and seems to happen also with Facebook 6.14.0.0. Hence, looks like HyprMX & Facebook are the two ad networks that do not work properly

manelizzard commented 1 year ago

Following the Facebook investigation path, I checked its latest dependencies here, and saw the com.google.android.gms » play-services-basement vulnerability warning.

Captura de pantalla 2023-07-04 a las 12 21 58

From there, I forced Facebook adapter dependency file with play-services-basement[18.1.0] as follows:

<?xml version="1.0" encoding="utf-8"?>
<dependencies>
    <androidPackages>
        <androidPackage spec="com.google.android.gms:play-services-basement:[18.1.0]" />
        <androidPackage spec="com.applovin.mediation:facebook-adapter:[6.14.0.0]" />
    </androidPackages>
    <iosPods>
        <iosPod name="AppLovinMediationFacebookAdapter" version="6.12.0.3" />
    </iosPods>
</dependencies>

Looks this did the trick and now all networks seem to properly resolve in a decent amount of time. Would be good if someone can double check this issue and fix too and come with a more official fix.