ادغام Moloco با میانجیگری

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

This guide shows you how to use Google Mobile Ads Unity Plugin to load and display ads from Moloco using mediation , covering bidding integrations. It covers how to add Moloco to an ad unit's mediation configuration, and how to integrate the Moloco SDK and adapter into a Unity app.

ادغام‌ها و قالب‌های تبلیغاتی پشتیبانی‌شده

The Ad Manager mediation adapter for Moloco has the following capabilities:

ادغام
مناقصه
آبشار
قالب‌ها
برنامه باز است
بنر
بینابینی
پاداش داده شده
تبلیغات بینابینی پاداش‌دار

الزامات

  • آخرین Google Mobile Ads Unity Plugin
  • یونیتی ۵.۶ یا بالاتر
  • افزونه Moloco Unity نسخه ۱.۲.۰ یا بالاتر
  • برای نصب روی اندروید
    • اندروید API سطح ۲۳ یا بالاتر
  • برای استقرار در iOS
    • هدف استقرار iOS 12.0 یا بالاتر
  • A working Unity project configured with Google Mobile Ads Unity Plugin . See Get Started for details.
  • راهنمای شروع میانجیگری را تکمیل کنید

مرحله ۱: تنظیمات را در رابط کاربری Moloco انجام دهید

وارد پورتال ناشران Moloco شوید .

Navigate to Overview > Apps tab, then click the Add App button to create a new app.

Select the OS and Privacy Settings for your app, fill out the rest of the form, and then click Create .

اندروید

آی‌او‌اس

Once your app is created, select it from the Apps tab to view the details and take note of the App Key .

اندروید

آی‌او‌اس

Navigate to the Overview > Ad Units tab, select the app from the drop-down menu, and then click New Ad Unit .

Select In-app bidding as the Auction method and fill out the rest of the form. Then, click Create .

Navigate to your newly created ad unit under the Ad Units tab to view its details. Take note of the Ad Unit ID .

مرحله ۲: تنظیم تقاضای Moloco در رابط کاربری Ad Manager

تنظیمات میانجیگری را برای واحد تبلیغاتی خود پیکربندی کنید

اندروید

For instructions, see step 2 in the guide for Android .

آی‌او‌اس

For instructions, see step 2 in the guide for iOS .

Add Moloco Ads to GDPR and US state regulations ad partners list

Follow the steps in European regulations settings and US state regulations settings to add Moloco Ads to the European and US state regulations ad partners list in the Ad Manager UI.

مرحله ۳: SDK و آداپتور Moloco را وارد کنید

رابط خط فرمان OpenUPM

If you have OpenUPM-CLI installed, you can install the Google Mobile Ads Moloco Ads SDK Mediation Plugin for Unity to your project by running the following command from your project's root directory:

openupm add com.google.ads.mobile.mediation.moloco

اوپن‌یو‌پی‌ام

In your Unity project editor, select Edit > Project Settings > Package Manager to open the Unity Package Manager Settings .

Under the Scoped Registries tab, add OpenUPM as a scoped registry with the following details:

  • نام: OpenUPM
  • آدرس اینترنتی: https://package.openupm.com
  • محدوده(ها): com.google

جزئیات OpenUPM

Then, navigate to Window > Package Manager to open the Unity Package Manager and select My Registries from the drop-down menu.

رجیستری‌های یونیتی

Select the Google Mobile Ads Moloco Mediation package and click Install .

نصب از OpenUPM

بسته یونیتی

Download the latest version of Google Mobile Ads mediation plugin for Moloco Ads SDK from the download link in the Changelog and extract the GoogleMobileAdsMolocoMediation.unitypackage from the zip file.

In your Unity project editor, select Assets > Import Package > Custom Package and find the GoogleMobileAdsMolocoMediation.unitypackage file you downloaded. Make sure that all the files are selected and click Import .

وارد کردن از یونیتی

Then, select Assets > External Dependency Manager > Android Resolver > Force Resolve . The External Dependency Manager library will perform dependency resolution from scratch and copy the declared dependencies into the Assets/Plugins/Android directory of your Unity app.

عزم راسخ

مرحله ۴: اضافه کردن کد مورد نیاز

No additional code is required for Moloco integration.

مرحله ۵: پیاده‌سازی خود را آزمایش کنید

فعال کردن تبلیغات آزمایشی

Make sure you register your test device for Ad Manager.

تأیید تبلیغات آزمایشی

To verify that you are receiving test ads from Moloco Ads SDK, enable single ad source testing in ad inspector using the Moloco (Bidding) ad source(s).

کدهای خطا

If the adapter fails to receive an ad from Moloco, publishers can check the underlying error from the ad response using ResponseInfo under the following classes:

اندروید

com.moloco.sdk
com.google.ads.mediation.moloco.MolocoMediationAdapter

آی‌او‌اس

MolocoSDK.MolocoError
GADMediationAdapterMoloco

Here are the codes and accompanying messages thrown by the Moloco adapter when an ad fails to load:

اندروید

کد خطا دامنه دلیل
۱۰۱ com.google.ads.mediation.moloco کلید برنامه Moloco موجود نیست یا نامعتبر است.
۱۰۲ com.google.ads.mediation.moloco شناسه واحد تبلیغات Moloco موجود نیست یا نامعتبر است.
۱۰۳ com.google.ads.mediation.moloco شیء تبلیغاتی Moloco بازگردانده شده تهی (null) بود.
۱- تا ۵۰۰۰ com.moloco.sdk Moloco SDK returned an error. See Moloco's documentation for more details.

آی‌او‌اس

کد خطا دامنه دلیل
۱۰۱ com.google.ads.mediation.moloco Moloco SDK does not support serving ads on iOS 12 and below.
۱۰۲ com.google.ads.mediation.moloco کلید برنامه Moloco موجود نیست یا نامعتبر است.
۱۰۳ com.google.ads.mediation.moloco شناسه واحد تبلیغات Moloco موجود نیست یا نامعتبر است.
۱۰۴ com.google.ads.mediation.moloco آگهی آماده نمایش نیست.
۱۰۵ com.google.ads.mediation.moloco تبلیغ نمایش داده نشد.
۱۰۶ com.google.ads.mediation.moloco Rendering data not available to render the ad.
۱- تا ۵۰۰۰ ارسال شده توسط Moloco SDK Moloco SDK returned an error. See Moloco's documentation for more details.

تأیید سمت سرور با پاداش

If you Validate server-side verification (SSV) callbacks , the ad source identifier for Moloco is 8267622065755668722 .

تغییرات افزونه میانجیگری Moloco Unity

نسخه ۳.۱.۰

نسخه ۳.۰.۰

نسخه ۲.۲.۱

نسخه ۲.۲.۰

نسخه ۲.۱.۰

نسخه ۲.۰.۰

نسخه ۱.۶.۱

نسخه ۱.۶.۰

نسخه ۱.۵.۰

نسخه ۱.۴.۰

نسخه ۱.۳.۱

نسخه ۱.۳.۰

نسخه ۱.۲.۱

نسخه ۱.۲.۰

نسخه ۱.۱.۰

نسخه ۱.۰.۰