This guide will instruct you step-by-step on how to set BidMachine live as an Ad Network on Unity LevelPlay.
Prerequisites
Ensure that you have correctly integrated ironSource's Rewarded Video, Interstitial or Banner into your application.
Step 1. Create a BidMachine account
Create an account with BidMachine. You can do so here.
Step 2. Create a Source ID in BidMachine
To get your Source ID, contact BidMachine.
Step 3. Activate** BidMachine **on the ironSource SDK Networks Module
Inside the ironSource platform, access the SDK Networks setup to configure BidMachine parameters.
- After you have the credentials mention above, log in to your ironSource account and go to Monetize > Setup > SDK Networks
- Select BidMachine from the table of Available Networks and click on the Activate button. Insert all credentials .Then click Save.
- Select BidMachine from the list of ad networks and click Setup.
- Activate the relevant ad units.
Step 4. Add the Bid Machine Adapter to Your Build
Unity LevelPlay supports both Gradle dependencies and manual download mechanisms.
Gradle
-
Make sure the following Maven URL exist in your build.gradle script of your app module.
repositories { mavenCentral() maven { url 'https://artifactory.bidmachine.io/bidmachine' } }
-
Add the adapter's Maven name to your build.gradle script of your app module.
dependencies { implementation 'com.unity3d.ads-mediation:bidmachine-adapter:4.3.14' implementation 'io.bidmachine:ads:3.3.0' }
Step 5. BidMachine Additional Settings
User-level COPPA
Unity LevelPlay let's publishers communicate BidMachine User-level COPPA settings directly to the BidMachine network. This feature is enabled using ironSource SDK 7.4.0+, BidMachine Android Adapter 4.3.0+.
Use the following syntax, to set set BidMachine COPPA with the parameter True:
IronSource.setMetaData("BidMachine_COPPA","true");
Use the following syntax, to set BidMachine COPPA with the parameter False:
IronSource.setMetaData("BidMachine_COPPA","false");
You can now deliver BidMachine within your application.