googleads / googleads-mobile-android-mediation

Sample Android project showcasing how to build a mediation adapter or custom event for the Google Mobile Ads SDK.
Apache License 2.0
241 stars 197 forks source link

Unable to instantiate mediation adapter class. #519

Closed TonyAnine closed 3 months ago

TonyAnine commented 4 months ago

onAdFailedToLoad:{ "Code": 3, "Message": "Unable to instantiate mediation adapter class.", "Domain": "com.google.android.gms.ads", "Cause": "null", "Response Info": { "Response ID": "XXX", "Mediation Adapter Class Name": "", "Adapter Responses": [ { "Adapter": "com.google.ads.mediation.facebook.FacebookAdapter", "Latency": 0, "Ad Source Name": "Meta Audience Network", "Ad Source ID": "XXX", "Ad Source Instance Name": "Meta Audience Network", "Ad Source Instance ID": "XXX", "Credentials": { "pubid": "XXX" }, "Ad Error": { "Code": 3, "Message": "Unable to instantiate mediation adapter class.", "Domain": "com.google.android.gms.ads", "Cause": "null" } } ], "Response Extras": { "mediation_group_name": "XXX" } } }

thanvirm commented 4 months ago

Hey,

Are you trying to use Meta Audience Network in a waterfall mediation chain? Waterfall is no longer supported for Meta Audience Network. Please see https://developers.google.com/admob/android/mediation/meta for how to integrate Meta Audience Network for mediation. Thanks!

TonyAnine commented 4 months ago

Yes, I used waterfall mediation ads. Do I need to remove this?

thanvirm commented 3 months ago

Yes.

TonyAnine commented 3 months ago

The problem has been solved, thank you very much.