Flurry را با میانجیگری ادغام کنید

پلتفرم مورد نظر را انتخاب کنید: اندروید (بتا)جدید اندروید، iOS، یونیتی ، فلاتر

This guide is intended for publishers who are interested in using Google Mobile Ads mediation with Flurry . It walks through the setup of a mediation adapter to work with your current Android app and the configuration of additional settings.

منابع Flurry
مستندات
SDK
آداپتور
پشتیبانی مشتری

پیش‌نیازها

Flurry را به پروژه خود اضافه کنید

شامل آداپتور شبکه و SDK

Download the Flurry SDK and adapter from the previous links .

In Android Studio, include the adapter and SDK files in your project's libs folder. Make sure that your app-level Gradle file includes the following:

Kotlin

dependencies {
    implementation(fileTree(mapOf("dir" to "libs", "include" to listOf("*.aar", "*.jar"))))
    // ...
}

Groovy

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.aar', '*.jar'])
    // ...
}

پیکربندی فایل AndroidManifest.xml

Modify your AndroidManifest.xml file as instructed in the Flurry documentation.

Your app doesn't need to call Flurry directly— Google Mobile Ads SDK calls the Flurry adapter to fetch ads on your behalf. If necessary, you can specify any additional request parameters. The rest of this page details how to provide more information to Flurry.

Initialize your ad object with an Activity instance

در سازنده‌ی یک شیء تبلیغاتی جدید (مثلاً AdManagerAdView )، باید شیء‌ای از نوع Context را ارسال کنید. این Context هنگام استفاده از میانجیگری به سایر شبکه‌های تبلیغاتی ارسال می‌شود. برخی از شبکه‌های تبلیغاتی به Context محدودتری نیاز دارند که از نوع Activity است و ممکن است بدون نمونه‌ی Activity قادر به ارائه تبلیغات نباشند. بنابراین، توصیه می‌کنیم هنگام مقداردهی اولیه‌ی اشیاء تبلیغاتی، یک نمونه‌ی Activity ارسال کنید تا از تجربه‌ی ثابت با شبکه‌های تبلیغاتی واسطه‌ای خود اطمینان حاصل کنید.