### Initialize BidMachine SDK Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/README.md Initialize the BidMachine SDK with your application context and seller ID. Obtain your SELLER_ID from the BidMachine website or support. ```java BidMachine.initialize(Context, YOUR_SELLER_ID); ``` -------------------------------- ### Configure Tapjoy Network Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/tapjoy/README.md Register the Tapjoy network with your BidMachine SDK instance. Replace 'YOUR_SDK_KEY' and 'YOUR_PLACEMENT_NAME' with your actual Tapjoy credentials and placement identifiers. ```java BidMachine.registerNetworks( new TapJoyConfig("YOUR_SDK_KEY") .withMediationConfig(AdsFormat.InterstitialVideo, "YOUR_PLACEMENT_NAME") .withMediationConfig(AdsFormat.RewardedVideo, "YOUR_PLACEMENT_NAME")); ``` -------------------------------- ### Add BidMachine Maven Repository Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/README.md Add this to your Module-level or App-level build.gradle file to include the BidMachine Maven repository. ```groovy repositories { // ... other project repositories maven { name 'BidMachine maven repo' url 'https://artifactory.bidmachine.io/bidmachine' } } ``` -------------------------------- ### Configure myTarget Network Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/my_target/README.md Configure the myTarget network by registering it with BidMachine and providing your slot ID for various ad formats. ```java BidMachine.registerNetworks( new MyTargetConfig() .withMediationConfig(AdsFormat.Banner, "YOUR_SLOT_ID") .withMediationConfig(AdsFormat.Banner_320x50, "YOUR_SLOT_ID") .withMediationConfig(AdsFormat.Banner_300x250, "YOUR_SLOT_ID") .withMediationConfig(AdsFormat.Banner_728x90, "YOUR_SLOT_ID") .withMediationConfig(AdsFormat.InterstitialStatic, "YOUR_SLOT_ID") .withMediationConfig(AdsFormat.RewardedVideo, "YOUR_SLOT_ID"); ``` -------------------------------- ### Add BidMachine SDK Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/README.md Add this dependency to your build.gradle file to include the BidMachine SDK in your project. ```groovy dependencies { // ... other project dependencies implementation 'io.bidmachine:ads:1.3.3' } ``` -------------------------------- ### Configure Facebook Network with BidMachine Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/facebook/README.md Register the Facebook network with BidMachine, providing your App ID and placement IDs for different ad formats. ```java BidMachine.registerNetworks( new FacebookConfig("YOUR_APP_ID") .withMediationConfig(AdsFormat.Banner, "YOUR_PLACEMENT_ID") .withMediationConfig(AdsFormat.Banner_300x250, "YOUR_PLACEMENT_ID") .withMediationConfig(AdsFormat.InterstitialStatic, "YOUR_PLACEMENT_ID") .withMediationConfig(AdsFormat.RewardedVideo, "YOUR_PLACEMENT_ID")); ``` -------------------------------- ### Configure Mintegral Network Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/mintegral/README.md Configure the Mintegral network with your unit IDs for different ad formats. Ensure you replace 'YOUR_UNIT_ID' and 'YOUR_REWARD_ID' with your actual IDs. ```java BidMachine.registerNetworks( new MintegralConfig() .withMediationConfig(AdsFormat.InterstitialVideo, "YOUR_UNIT_ID") .withMediationConfig(AdsFormat.RewardedVideo, "YOUR_UNIT_ID", "YOUR_REWARD_ID"); ``` -------------------------------- ### Add Mintegral Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/mintegral/README.md Add the Mintegral network adapter dependency to your app's build.gradle file. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.mintegral:1.3.3.2' } ``` -------------------------------- ### Configure Amazon Network with BidMachine Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/amazon/README.md Register the Amazon network with BidMachine, providing your unique application key and slot UUIDs for different ad formats. This step is crucial for initializing mediation. ```java BidMachine.registerNetworks( new AmazonConfig("YOUR_APP_KEY") withMediationConfig(AdsFormat.Banner_320x50, "YOUR_SLOT_UUID") .withMediationConfig(AdsFormat.Banner_300x250, "YOUR_SLOT_UUID") .withMediationConfig(AdsFormat.Banner_728x90, "YOUR_SLOT_UUID") .withMediationConfig(AdsFormat.InterstitialStatic, "YOUR_SLOT_UUID") .withMediationConfig(AdsFormat.InterstitialVideo, "YOUR_SLOT_UUID")); ``` -------------------------------- ### Add myTarget Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/my_target/README.md Add the myTarget network adapter dependency to your app's build.gradle file. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.my_target:1.3.3.2' } ``` -------------------------------- ### Configure Criteo Network Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/criteo/README.md Register the Criteo network with your BidMachine SDK instance using your unique Sender ID. This step is crucial for initializing Criteo mediation. ```java BidMachine.registerNetworks( new CriteoConfig("YOUR_SENDER_ID")); ``` -------------------------------- ### Android Gradle Configuration Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/amazon/README.md Configure Java compatibility for your Android project. Ensure this is set to 1.8 or higher. ```groovy android { //... other configuration options compileOptions { sourceCompatibility 1.8 targetCompatibility 1.8 } } ``` -------------------------------- ### Add Criteo Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/criteo/README.md Add the Criteo network adapter dependency to your app's build.gradle file. Ensure you use the version specified in the badges. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.criteo:1.3.3.1' } ``` -------------------------------- ### Configure AdColony Network Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/adcolony/README.md Configure the AdColony network with your App ID and Zone ID for different ad formats. ```java BidMachine.registerNetworks( new AdColonyConfig("YOUR_APP_ID") .withMediationConfig(AdsFormat.InterstitialVideo, "YOUR_ZONE_ID") .withMediationConfig(AdsFormat.RewardedVideo, "YOUR_ZONE_ID")); ``` -------------------------------- ### Define Network Security Configuration Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/README.md Create a network_security_config.xml file to permit cleartext traffic and configure trust anchors. This is crucial for ensuring ads can serve correctly on Android 9.0+. ```xml ``` -------------------------------- ### Add AdColony Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/adcolony/README.md Add the AdColony network adapter dependency to your app's build.gradle file. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.adcolony:1.3.3.2' } ``` -------------------------------- ### Add Facebook Network Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/facebook/README.md Include the Facebook network adapter as a dependency in your app's build.gradle file. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.facebook:1.3.3.2' } ``` -------------------------------- ### Configure AndroidManifest.xml for Network Security Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/README.md Add this to your AndroidManifest.xml to specify a network security configuration file, which is necessary for Android 9.0 (API 28) and above to allow cleartext traffic. ```xml ``` -------------------------------- ### Add Tapjoy Mediation Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/tapjoy/README.md Include the Tapjoy mediation adapter dependency in your app's build.gradle file. Ensure you use the version compatible with your project. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.tapjoy:1.3.3.2' } ``` -------------------------------- ### Add Amazon Adapter Dependency Source: https://github.com/appodeal/bidmachine-android-sdk/blob/master/adapters/amazon/README.md Include the Amazon mediation adapter dependency in your app-level build.gradle file. This ensures the adapter is available for use. ```groovy dependencies { // ... other dependencies implementation 'io.bidmachine:ads.networks.amazon:1.3.3.1' } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.