Integrate nend with mediation

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

The dashboard interface for nend uses Japanese text for its labels, buttons, and descriptions, and the screenshots displayed below have not been translated. In the text of this guide however, labels and buttons are refererred to by their English names. "URL スキーム," for example, is "URL Scheme," and so on.

Supported integrations and ad formats

Integration
Bidding
Waterfall
Formats
Banner
Interstitial
Rewarded

Requirements

  • Unity 4 or higher
  • Latest Google Mobile Ads SDK
  • To deploy on Android
    • Android API level 19 or higher
  • To deploy on iOS
    • iOS deployment target of 11.0 or higher
  • A working Unity project configured with the Google Mobile Ads SDK. See Get Started for details.

Step 1: Set up the nend network

Sign up or sign in to your nend account. To add your application to the nend dashboard, first click on the Placement Management tab, and then select Site/App. Click the Add an app button to add your app to nend.

Next follow the instructions below for the ad types included in your app. For apps that are built for both Android and iOS, you'll need to follow both sets of instructions to set up your nend account.

Create an application

Choose the tabs below for the platforms and AdMob SDK versions you are developing with.

Android

Enter the name of your app and choose Android application as the application type. Enter the URL and check if your app is in the Play store (see nend's unreleased apps FAQ if your app has not yet been released). Select a category for your app and click Create when done.

Your application will be shown on the dashboard once it is created.

iOS

Enter the name of your app and choose iOS application as the application type. Enter the URL and check if your app is in the Play store (see nend's unreleased apps FAQ if your app has not yet been released). Select a category for your app and click Create when done.

Your application will be shown on the dashboard once it is created.

Placements

Once the app is registered, you can move on to creating a placement. First, go to the Placement Management tab and click on Placement. Then click on the Create a new placement button.

Select the tab below corresponding to your preferred ad format.

First, select your app in the drop down menu. Next, choose still image as the Ad type, and banner as the Inventory type. Once that's done, enter a Placement name, choose a format, and finally choose your desired banner size. When finished, click the Create button to create your placement.

Interstitial

Create Inventory for your interstitial placement by first selecting your app name in the drop-down menu. Next, for the Ad type select Still image, and for the Placement type select Interstitial. Once that's done, enter a Placement name and select an Advertisement display frequency from the drop-down list. Finally, click the Create button to create your placement.

For Interstitial Video ads, set the ad type to video and choose interstitial as the inventory type. Once that's done, enter a placement name and select a category from the drop down list. Finally, click the Create button to create your placement.

Rewarded

Create inventory for your rewarded placement by first selecting your app name in the drop down menu. Next, set the ad type to video and inventory type to rewards. When that's done, enter a placement name and description, and then choose an appropriate category in the drop-down list.

Select Rewarded for the Content type using the drop-down list, enter your preferred Virtual currency name, and then click the Create button to create your placement.

To set up your AdMob ad unit in the next section, you will need the apiKey and spotID for your placement. To locate them, head to the Placement Management tab and select the SDK button under the app you created.

Take a note of the apiKey and spotID.

You'll also need your API Key for nend's reporting API, which they call the API Key for Scraping. You can find it in the Tools tab.

Step 2: Configure mediation settings for your AdMob ad unit

You need to add nend to the mediation configuration for your AdMob ad unit. First sign in to your AdMob account. If you're deploying your Unity app to both Android and iOS, you'll need two AdMob ad units, one for each platform.

Navigate to the Mediation tab. If you have an existing mediation group you'd like to modify, click the name of that mediation group to edit it, and skip ahead to Add nend as an ad source.

To create a new mediation group, select Create Mediation Group.

Enter your ad format and platform, then click Continue.

Android

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then click Done.

You should now see the ad units card populated with the ad units you selected, as shown below:

iOS

Give your mediation group a name, and select locations to target. Next, set the mediation group status to Enabled. Then click Add Ad Units.

Associate this mediation group with one or more of your existing AdMob ad units. Then click Done.

You should now see the ad units card populated with the ad units you selected, as shown below:

Add nend as an ad source

In the Ad Sources card, select Add Ad Network.

Select nend and enable the Optimize switch. Enter your API Key for Scraping obtained from nend earlier as the Reporting API Key to set up ad source optimization for nend. Then enter an eCPM value for nend and click Continue.

If you already have a mapping for nend, you can simply select it. Otherwise, click Add mapping.

Android

iOS

Next, enter a Mapping name, the Spot ID and the API Key obtained in the previous section. Then click Done.

Android

iOS

Using rewarded ads

In the settings for your rewarded ad unit, check the Apply to all networks in Mediation groups box so that you provide the same reward to the user no matter which ad network is served.

If you don't check this setting, the nend adapter passes back the reward specified in the nend dashboard when creating the placement.

For more information on setting reward values for AdMob ad units, see Create an ad unit.

Step 3: Import the nend SDK and adapter

Download the latest version of Google Mobile Ads mediation plugin for nend from the download link in the Changelog and extract the GoogleMobileAdsNendMediation.unitypackage package from the zip file.

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

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

Step 4: Additional code required

No additional code is required for nend integration.

Step 5: Test your implementation

To get test ads for banners, interstitials and rewarded, nend recommends using the API keys and Spot IDs provided in the nend test ad unit pages:

These can be entered as the API Keys and Spot IDs for your AdMob ad units while testing, and then replaced with an actual API Key and Spot ID when your app is ready for production.

nend Unity Mediation Plugin Changelog

Version 7.0.0

Version 6.0.1

Version 6.0.0

Version 5.2.0

Version 5.1.0

Version 5.0.0

Version 4.0.1

Version 4.0.0

Version 3.0.0

Version 2.3.0

Version 2.2.0

Version 2.1.0

  • Updated the plugin to support the new Rewarded API.
  • Supports nend Android adapter version 5.1.0.2.
  • Supports nend iOS adapter version 5.1.1.0.

Version 2.0.3

  • Supports nend Android adapter version 5.0.2.1.
  • Supports nend iOS adapter version 5.0.2.0.

Version 2.0.2

  • Supports nend Android adapter version 5.0.2.0.
  • Supports nend iOS adapter version 5.0.2.0.

Version 2.0.1

  • Supports nend Android adapter version 5.0.2.0.
  • Supports nend iOS adapter version 5.0.1.0.

Version 2.0.0

  • Supports nend Android adapter version 5.0.0.0.
  • Supports nend iOS adapter version 5.0.0.0.

Version 1.0.2

  • Supports nend Android adapter version 4.0.5.0.
  • Supports nend iOS adapter version 4.0.6.0.

Version 1.0.1

  • Supports nend Android SDK version 4.0.4.
  • Supports nend iOS SDK version 4.0.4.

Version 1.0.0

  • First release!
  • Supports nend Android SDK version 4.0.2.
  • Supports nend iOS SDK version 4.0.2.