googleads / googleads-mobile-unity

Official Unity Plugin for the Google Mobile Ads SDK
https://developers.google.com/admob/unity
Apache License 2.0
1.37k stars 1.08k forks source link

Getting Couldn't create RTB adapter exception when integrating Meta Audience Network with bidding #2455

Closed spikyworm5 closed 1 year ago

spikyworm5 commented 1 year ago

[REQUIRED] Step 1: Describe your environment

[REQUIRED] Step 2: Describe the problem

After integrating the "Meta Audience Network" package (following this link) I get the following error in the log and the ad inspector indicates that the SDK failed to initialize (SDK issue):

2022/12/15 14:43:20.379 18930 19273 Error Ads Couldn't create RTB adapter : 
2022/12/15 14:43:20.379 18930 19273 Error Ads android.os.RemoteException
2022/12/15 14:43:20.379 18930 19273 Error Ads   at com.google.android.gms.internal.ads.zzbvn.zzc(com.google.android.gms:play-services-ads-lite@@21.4.0:4)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at com.google.android.gms.internal.ads.zzbvp.zzbK(com.google.android.gms:play-services-ads-lite@@21.4.0:8)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at com.google.android.gms.internal.ads.zzase.onTransact(com.google.android.gms:play-services-ads-base@@21.4.0:3)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at android.os.Binder.transact(Binder.java:1064)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at afj.bd(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:2)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at com.google.android.gms.ads.internal.mediation.client.b.c(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:1)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at com.google.android.gms.ads.nonagon.adapter.e.b(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:1)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at com.google.android.gms.ads.nonagon.signals.ei.a(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:3)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at brk.a(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:2)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at bqt.run(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:3)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at brm.run(:com.google.android.gms.policy_ads_fdr_dynamite@224400003@224400003057.484457631.484457631:0)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
2022/12/15 14:43:20.379 18930 19273 Error Ads   at java.lang.Thread.run(Thread.java:1012)

I'm not sure whether it's a

Steps to reproduce:

Install the latest AdMob SDK 7.3.1 with the latest Meta Audience Network 3.9.0 and try to load an ad, either interstitial or reward. AdMob are loaded fine but Facebook/Meta ads are not shown and ad inspector shows that the SDK failed to load:

ericleich commented 1 year ago

The RemoteException is communication within the Google Mobile Ads SDK between the app and Google Play services process timing out or something. We couldn't reproduce internally.

Usually this type of exception is transient. Are you able to reproduce again today?

spikyworm5 commented 1 year ago

I'm not sure how, but I closed the issue with a comment and it's lost. The issue was my bad, I accidentally installed the Meta Audience package instead of the mediation package mentioned in the doc. Now everything works fine. Sorry for the trouble.