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

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 .

بسته یونیتی
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
نسخه ۳.۱.۰
- Supports Moloco Android adapter version 4.4.0.0 .
- از آداپتور iOS Moloco نسخه ۴.۱.۲.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.6.0.
نسخه ۳.۰.۰
- Supports Moloco Android adapter version 4.3.1.0 .
- از آداپتور iOS Moloco نسخه ۴.۱.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.6.0.
نسخه ۲.۲.۱
- Supports Moloco Android adapter version 4.2.1.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۳.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.6.0.
نسخه ۲.۲.۰
- Supports Moloco Android adapter version 4.2.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۳.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.6.0.
نسخه ۲.۱.۰
- Supports Moloco Android adapter version 4.1.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۳.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.5.0.
نسخه ۲.۰.۰
- Supports Moloco Android adapter version 4.0.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۳.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.4.2.
نسخه ۱.۶.۱
- Supports Moloco Android adapter version 3.12.1.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۲.۱.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.4.1.
نسخه ۱.۶.۰
- Supports Moloco Android adapter version 3.12.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۲.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.3.0.
نسخه ۱.۵.۰
- Supports Moloco Android adapter version 3.11.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۱.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.3.0.
نسخه ۱.۴.۰
- Supports Moloco Android adapter version 3.10.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۱۰.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.2.0.
نسخه ۱.۳.۱
- Supports Moloco Android adapter version 3.9.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۹.۱.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.1.0.
نسخه ۱.۳.۰
- Supports Moloco Android adapter version 3.9.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۹.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.1.0.
نسخه ۱.۲.۱
- Supports Moloco Android adapter version 3.8.0.1 .
- از آداپتور iOS Moloco نسخه ۳.۸.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.0.0.
نسخه ۱.۲.۰
- Supports Moloco Android adapter version 3.8.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۸.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.0.0.
نسخه ۱.۱.۰
- Supports Moloco Android adapter version 3.7.2.0 .
- از آداپتور iOS Moloco نسخه ۳.۷.۲.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 10.0.0.
نسخه ۱.۰.۰
- انتشار اولیه!
- Supports Moloco Android adapter version 3.7.0.0 .
- از آداپتور iOS Moloco نسخه ۳.۶.۰.۰ پشتیبانی میکند.
- Built and tested with the Google Mobile Ads Unity Plugin version 9.6.0.