VK Ad Network integration
Integrate VK Ad Network into Unity LevelPlay to enhance monetization through targeted ads, ensuring smooth ad delivery across your app.
é
读ę¶é“1 åéęåę“ę°äŗ 4 äøŖęå
This guide will instruct you step-by-step on how to set VK Ad Network live as an ad network on Unity LevelPlay.
Prerequisites
The required Gradle Build Tool is 3.5.4+Step 1. Create a VK Ad Network account
1.Ā To create an account in VK Ad Network, goĀ here. 2. After your account has been verified, login to your partner accountĀ here.Step 2. Create an application in VK Ad Network
Follow these steps to create your VK Ad Network application:- In your VK Ad Network account go toĀ AppsĀ > Add app 2, After you set a new app, youāll be able to retrieve your āPlacement idā ā In order to set in Unity LevelPlay.
Step 3. Retrieve Your VK Ad Network Access key
In your VK Ad Network account go toĀ SettingsĀ > GeneralStep 4. Activate VK Ad Network in your mediation setup module
Inside the ironSource platform, access the SDK Networks setup to configure myTarget parameters into your ironSource account.- After you have all the required parameters, log in to your ironSource account and go toĀ MonetizeĀ >Ā SetupĀ > SDK > Networks.
- Select myTarget from the table ofĀ Available Networks, add the parameters, and click on theĀ ActivateĀ button. Then clickĀ Save. 3.Ā Select myTarget from the list of ad networks and clickĀ Setup. 4.Ā Enter your VK Ad Networkd appās āGenerated tokenā, then add for each adunit the āIDā from Step 1 (point 2) twice. Set the status toĀ ActiveĀ and clickĀ Save. Youāll see myTarget listed asĀ ActiveĀ for Mediation on your Setup dashboard.
Step 5. Integrate the ironSource Mediation Network Adapters
ironSource supports both Gradle dependencies and manual download mechanisms.Gradle
-
Make sure the following Maven URL exists in your build.gradle script of your app module.
repositories { mavenCentral()}
-
Add the adapter's Maven name to your build.gradle script of your app module.
dependencies {implementation 'com.unity3d.ads-mediation:mytarget-adapter:4.3.1'implementation 'com.my.target:mytarget-sdk:5.27.2'}
Manual Download
- Add the VK Ad Network Adapter and SDK to your build. You can find the latest myTarget files here.
- Add VK Ad Network Adapter and SDK to your Android Project. After you download the Adapter; drop the VK Ad Network adapter AAR into the libs folder in your Android Project.
-
Make sure toĀ add the following to your Gradle build file under theĀ dependencies section: \
dependencies {implementation 'com.unity3d.ads-mediation:mytarget-adapter:4.3.1'implementation 'com.my.target:mytarget-sdk:5.27.2'}
-
Add the SDK AAR into your project.
- If using Eclipse: Import the .AAR fileĀ as a library project.
- If using Android Studio, download the VK Ad Network .AAR file and add as a dependency to your own module. Go to File > New > New Module > Import .AAR and navigate to the location where the VK Ad Network .AAR file has been downloaded.
For Proguard Users Only
If you are using ProGuard with the VK Ad Network adapter, you must add the following code to your ProGuard file:-keep class com.my.target.** {*;}
Step 6. Update AndroidManifest.xml
Manifest Permissions
<uses-permission android:name="android.permission.INTERNET" /><uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /><queries> <package android:name="com.android.chrome" /></queries>
Manifest Activities
Add the following activities inside the<application>You can now deliver VK Ad Network ads within your application.<activity> android:name="com.my.target.common.MyTargetActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"</activity>