SDK Integration
Include Bidon SDK and Bidon Custom Adapter dependencies in your app.
- Android
- iOS
- Unity
Add the following repository to your project:
repositories {
maven(url = "https://artifactory.bidon.org/bidon")
}
Then, add the dependency:
dependencies {
implementation("com.ironsource.adapters:bidon-adapter:0.8.0.0")
// Available Demand Sources (AdNetworks)
implementation("org.bidon:admob-adapter:0.8.0.0")
implementation("org.bidon:amazon-adapter:0.8.0.0")
implementation("org.bidon:applovin-adapter:0.8.0.0")
implementation("org.bidon:bidmachine-adapter:0.8.0.0")
implementation("org.bidon:bigoads-adapter:0.8.0.0")
implementation("org.bidon:chartboost-adapter:0.8.0.0")
implementation("org.bidon:dtexchange-adapter:0.8.0.0")
implementation("org.bidon:gam-adapter:0.8.0.0")
implementation("org.bidon:inmobi-adapter:0.8.0.0")
implementation("org.bidon:meta-adapter:0.8.0.0")
implementation("org.bidon:mintegral-adapter:0.8.0.0")
implementation("org.bidon:mobilefuse-adapter:0.8.0.0")
implementation("org.bidon:unityads-adapter:0.8.0.0")
implementation("org.bidon:vkads-adapter:0.8.0.0")
implementation("org.bidon:vungle-adapter:0.8.0.0")
implementation("org.bidon:yandex-adapter:0.8.0.0")
}
Adapter Data:
- Network name: Bidon
- Network key:
15c0a270d
Update Consent Value
To set GDPR, CCPA, and COPPA consent status for the Bidon network adapter, use the following keys:
Bidon network key:
BIDON_CA_NETWORK_KEY = "15c0a270d"
Consent Keys:
BIDON_GDPR_KEY = "BidonCA_GDPR"
BIDON_CCPA_KEY = "BidonCA_CCPA"
BIDON_COPPA_KEY = "BidonCA_COPPA"
Then put consent Boolean
value to json with Bidon network key
and call:
IronSource.setNetworkData(BIDON_CA_NETWORK_KEY, networkData)
Example:
val networkData = JSONObject()
networkData.put(BIDON_GDPR_KEY, isUserHasGdprConsent)
networkData.put(BIDON_CCPA_KEY, isUserHasCcpaConsent)
networkData.put(BIDON_COPPA_KEY, isUserAgeRestricted)
IronSource.setNetworkData(BIDON_CA_NETWORK_KEY, networkData)
where:
isUserHasGdprConsent
— Boolean: user’s GDPR consent;isUserHasCcpaConsent
— Boolean: user’s CCPA consent;isUserAgeRestricted
— Boolean: user’s COPPA (age restriction) status.
Add the following Pod to your Podfile
:
# Mirror repo for Bidon SDK podspecs
source 'https://github.com/bidon-io/CocoaPods_Specs.git'
source 'https://cdn.cocoapods.org/'
pod 'ISBidonCustomAdapter', '~> 0.8.0'
# Available Demand Sources (AdNetworks)
pod 'BidonAdapterAmazon', '~> 0.8.0'
pod 'BidonAdapterAppLovin', '~> 0.8.0'
pod 'BidonAdapterBidMachine', '~> 0.8.0'
pod 'BidonAdapterBigoAds', '~> 0.8.0'
pod 'BidonAdapterChartboost', '~> 0.8.0'
pod 'BidonAdapterDTExchange', '~> 0.8.0'
pod 'BidonAdapterGoogleAdManager', '~> 0.8.0'
pod 'BidonAdapterGoogleMobileAds', '~> 0.8.0'
pod 'BidonAdapterInMobi', '~> 0.8.0'
pod 'BidonAdapterMetaAudienceNetwork', '~> 0.8.0'
pod 'BidonAdapterMintegral', '~> 0.8.0'
pod 'BidonAdapterMobileFuse', '~> 0.8.0'
pod 'BidonAdapterMyTarget', '~> 0.8.0'
pod 'BidonAdapterUnityAds', '~> 0.8.0'
pod 'BidonAdapterVungle', '~> 0.8.0'
pod 'BidonAdapterYandex', '~> 0.8.0'
Adapter Data:
- Network name: Bidon
- Network key:
15c0a270d
Update Consent Value
To set GDPR, CCPA, and COPPA consent status for the Bidon network adapter, use the following keys:
Bidon network key:
BIDON_CA_NETWORK_KEY = "15c0a270d"
Consent Keys:
BIDON_GDPR_KEY = "BidonCA_GDPR"
BIDON_CCPA_KEY = "BidonCA_CCPA"
BIDON_COPPA_KEY = "BidonCA_COPPA"
Then put consent Bool
value to 'networkData: [AnyHashable : Any]' with Consent key
and call:
IronSource.setNetworkDataWithNetworkKey(BIDON_CA_NETWORK_KEY, andNetworkData: [`Consent key`: consent])
Example:
IronSource.setNetworkDataWithNetworkKey(BIDON_CA_NETWORK_KEY, andNetworkData: [BIDON_GDPR_KEY: isUserHasGdprConsent])
IronSource.setNetworkDataWithNetworkKey(BIDON_CA_NETWORK_KEY, andNetworkData: [BIDON_CCPA_KEY: isUserHasCcpaConsent])
IronSource.setNetworkDataWithNetworkKey(BIDON_CA_NETWORK_KEY, andNetworkData: [BIDON_COPPA_KEY: isUserAgeRestricted])
where:
isUserHasGdprConsent
— Bool: user’s GDPR consent;isUserHasCcpaConsent
— Bool: user’s CCPA consent;isUserAgeRestricted
— Bool: user’s COPPA (age restriction) status.
- Unity 2020.3.16+, 2021.3.0+, 2022.3.0+, 6000.0.23+
- Android API level 23 (Android OS 6.0) and above
- iOS 12.0 or higher (iOS 12.4 if you use MyTarget, iOS 13.0 if you use IronSource)
- Xcode 16.0 or higher
- CocoaPods 1.12.0 or higher
- Git must be installed on your device
- Make sure the EDM plugin is present in your Unity project
- Copy the link below and use it to install Bidon via UPM (
Window -> Package Manager -> "+" -> Add package from git URL
).
https://github.com/bidon-io/levelplay_bidon_custom_adapter_unity.git#v0.8.0
- For Android platform you may need to execute the
Assets/External Dependency Manager/Android Resolver/Force Resolve
command after adding the dependencies to sync content of your.gradle
template files.
If you need to bump adapter versions or add/remove any of them, edit the
/Assets/LevelPlayBidonCustomAdapter/Editor/BidonDependencies.xml
file accordingly. Once you’re done, resolve the
dependencies via EDM.
Adapter Data:
- Network name: Bidon
- Network key:
15c0a270d
Update Consent Value
To set GDPR, CCPA, and COPPA consent status for the Bidon network adapter, use the following keys:
Bidon network key:
BidonCANetworkKey = "15c0a270d"
Example:
var bidonNetworkData = new BidonNetworkData
{
BidonCA_GDPR = isUserHasGdprConsent,
BidonCA_CCPA = isUserHasCcpaConsent,
BidonCA_COPPA = isUserAgeRestricted,
};
LevelPlay.SetNetworkData(BidonCANetworkKey, bidonNetworkData.ToJsonString());
where:
isUserHasGdprConsent
— Boolean: user’s GDPR consent;isUserHasCcpaConsent
— Boolean: user’s CCPA consent;isUserAgeRestricted
— Boolean: user’s COPPA (age restriction) status.
All Done
You’re all set! After completing the technical setup, make sure to set up Bidon monetization and activate Bidon in your LevelPlay configuration. You can confirm that everything is functioning correctly by checking the logs. Once confirmed, Bidon ads will begin appearing in your app.