UnityAds

Create a UnityAds Account

1. Create an account with UnityAds. You can do so here.___1.jpg

2. Click Dashboard enter the app creation interface.___2.jpg

 

Create UnityAds New Project

1. Click Operate Projects New Project.___3.jpg

2. After entering the Project name and other information, click Add Project to create the application. If your application is not on the shelf, the App Store id and Google Play Store id can be filled out after your application is on the shelf.

 

Add Placement

1. Click Project → MonetizationPlacements.___5.jpgAfter clicking into the Project section, Unity will create a video ad slot  and a rewardedVideo ad slot by default.

2. Click Add Placement.mceclip8.png

3. Fill in the Placement ID, select the type of ad space to be created, and click Create Placement.mceclip7.png

Placement ID only allows letters, numbers and underscores.

4. Click Save.___29.jpg

  • Placement ID: You can define your Placement ID by yourself, we suggest you name it: AdTiming Placement ID_Ad Network Name_ Country. (Example: 6539_Unity_USA_40)
  • Status: and Placement status, Enabled is on, Disabled is off.

  • Ad types: After clicking, you can choose the accepted creative types, including Video (video), Display (picture), and Playable (try play). It is recommended to check video and play play.

  • Muting: Refers to whether the advertisement is muted. It is recommended to select Audio not muted.

  • Allow skip: Whether to allow the ad to be skipped. Select No for rewarded video ad slot (cannot be skipped). Generally select Yes for interstitial video (can be skipped).

 

AdTiming Platform Configuration

 Ad Network

1. Enter the AdTiming publisher platform, click on Ad Network → click Edit behind UnityAds.mceclip9.png

2. After filling in the relevant information, click Save.mceclip10.png

  • Game ID: You can get the Game ID on the Placement page of the Unity platform.mceclip12.png

  • Currency: Select the corresponding currency unit in the UnityAds platform.

  • API Key: You can obtain the API Key through the following steps.

    • Go to Dashboard and select API Access in the Ads Data Export menu.___13.jpg

       
    • Get the API Key behind Monetization Stats API Access. If it is not automatically generated, click Create API Key to generate it.___31.jpg 
  • Organization core ID: You can get it in the Settings of the UnityAds platform.___30.jpg

 

Add Instance

1. Click Mediation → Ad unit → Add Instance.mceclip13.png

2. After filling in the relevant information, click Save.mceclip14.png

  • Ad Network: Select UnityAds.
  • Instance Name: You can define the name of your ad unit yourself, we suggest you name it: AdTiming Placement ID_Ad Network Name_ Country_Floor Price. (E.g: 6539_Unity_USA_40)

  • Unit ID: You can enter the Unity Placement interface to get it.___18.jpg

 

UnityAds Test Mode

It is very important to enable test mode for testing. We strongly recommend that you test in the following ways before the app is released.

1. Enter the Unity platform, select the Projects interface, and select the application.___22.jpg


2. Click the Settings menu to enter the Project Settings page and select the Test mode module. After selecting the application platform, check the Override client test mode, and select Force test mode ON (i.e. use test ads) for all devices. After clicking Save, the test mode is started.mceclip15.png

  

Add the UnityAds SDK&Adapter to Your Build

Android

1.  Add the Unity SDK

  • Add the following to your application-level build.gradle file.
dependencies {
    ...
 
    implementation 'com.unity3d.ads:unity-ads:3.4.8'
}

 

2.  Add the Unity Adapter

     AdTiming supports both Gradle dependencies and Manual download mechanisms.

       Gradle dependencies

  • Add the following in your project-level build.gradle file.
...
 allprojects {
   repositories {
        ...

        jcenter()
        maven {
            url "https://dl.adtiming.com/android-sdk"
        }
   }
 }
  • Add the following in your application-level build.gradle file.
implementation 'com.adtiming.adapters:unity:3.6.0@aar'

       Manual download

  • Download the unity Adapter from here.
  • Add the unity Adapter to Your Project
  • Add the UnityAdapter-x.x.x.aar to the libs folder in your Android Project.
  • Make sure you add the following to your Gradle build file under the dependencies section:
implementation (name:'UnityAdapter-x.x.x', ext:'aar')

 

3. For ProGuard Users Only

If you are using ProGuard with the UnityAds adapter, you must add the following code to your ProGuard configuration (Android Studio: proguard-rules.pro or Eclipse: proguard-project.txt):

-keepattributes SourceFile,LineNumberTable
 -keepattributes JavascriptInterface
 -keep class android.webkit.JavascriptInterface {
     *;
 }
 -keep class com.unity3d.** {
     *;
 }

 

iOS

AdTiming supports both Cocoapods and Manualdownload mechanisms.

Cocoapods

To Integrate the Unity SDK with Cocoapods, enter the following line in your podfile and you are good to go!

pod 'UnityAds'
Copy

Manual Download

1. Download the Unity framework

  • you can find the lastest Unity SDK here.

2. Add the Unity frameworks to your Project

Done!
You are now all set to deliver UnityAds within your application!

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.