ドキュメント

サポート

LevelPlay SDK - React Native

Yandex Ads integration

Set up Yandex Ads as an ad network in your React Native app through LevelPlay's mediation platform.
読み終わるまでの所要時間 1 分最終更新 16日前

重要
The following documentation discusses products or services (“Third-party Products”) not developed, owned, or operated by Unity. This information might be outdated or incomplete and is provided for your convenience. Your use of any Third-party Product is subject to its own terms. Unity makes no warranties regarding these products and isn't liable for any damages or losses arising from their use, including issues related to content, advertising, or materials from Third-party providers.
This guide will instruct you step-by-step on how to set Yandex Ads live as an Ad Network on Unity LevelPlay.

Prerequisites

Ensure that you correctly integrate Rewarded ads, Interstitial ads, or Banner ads into your application. Refer to the following platform-specific guides for integration instructions:

Step 1. Create a Yandex Ads account

Create an account with Yandex Ads. You can do so here.

Step 2. Add your app in Yandex Ads

Add an app to your Yandex Ads account. Learn how here
After you’ve added your app, take note of the App ID. You’ll need this for setup on the LevelPlay platform later.

Step 3. Create an ad unit

Set up the ad units (rewarded, interstitial, or banners ads) you want to monetize with on the Yandex Ads platform. Learn how
After you’ve added your ad units, take note of the Ad Unit ID. You’ll need this for setup on the LevelPlay platform later.

Step 4. Activate Yandex Ads on the LevelPlay SDK Networks Module

  • Log into your LevelPlay account and go to the LevelPlay side nav bar > Setup > SDK Networks
  • Click on Manage Networks
  • Select Yandex Ads from the list of available ad networks
    Yandex Ads SDK Networks
  • Click Activate to turn on the network
    Yandex Ads activate
  • Next, select the app on which you'd like to run Unity LevelPlay's Mediation with Yandex Ads bidding.
  • Select Yandex Ads from the list of ad networks and click on the tool Setup icon.
    Yandex Ads setup icon
  • Then insert the Application Key (step 2) and Ad Unit ID (step 3) under Interstitial, Rewarded ads, or Banner Settings. Click Save.
    Yandex Ads configuration

Step 5. Add the Yandex Ads Adapter to Your Build

Continue your integration using native adapters for Android and iOS.

Step 6. Yandex Ads Additional Settings

User-level COPPA

LevelPlay lets publishers communicate Yandex Ads User-level COPPA settings directly to the Yandex Ads network. This feature is enabled using LevelPlay SDK 8.1.0+, Yandex Ads adapter 4.3.1+. Use the following syntax, to update Yandex Ads COPPA User Status to true:
import { LevelPlay } from 'unity-levelplay-mediation'LevelPlay.setMetaData('Yandex_COPPA', ['true'])
Use the following syntax, to update Yandex Ads COPPA User Status to false:
import { LevelPlay } from 'unity-levelplay-mediation'LevelPlay.setMetaData('Yandex_COPPA', ['false'])
Call
LevelPlay.setMetaData
before initializing the LevelPlay SDK.
You can now deliver Yandex Ads within your application.

Next steps

To leverage additional ad networks through Unity LevelPlay, integrate the adapters and follow our integration guides.