Get Started with the ironSource Xamarin Plugin for iOS
ironSource Xamarin plugin requires adding two files and incorporate additional arguments.
You can learn about mediated networks readiness here. Step 1. Add the ironSource Plugin to Your Project
Download Xamarin dll for iOS
Download Xamarin Framework for iOS
-gcc_flags "-ObjC"
ironSource Mediation Demo App
The Integration Demo application demonstrate how to integrate the Unity LevelPlay Mediation in your app.
Download Xamarin Demo Application for iOS
Step 2. Import the ironSource Files
Import the references to your ViewController:
using IronSourceiOS;
Then, set the following plugin data parameters:
ISConfigurations.Configurations.Plugin = “Xamarin”; ISConfigurations.Configurations.PluginVersion = IronSource.SdkVersion; //Insert your Visual Studio version ISConfigurations.Configurations.PluginFrameworkVersion = YOUR_XAMARIN_FRAMEWORK_VERSION;
Step 3. Initialize the Plugin
Init the Plugin and Rewarded Video:
IronSource.InitWithAppKey(txtAppKey.Text, new string[]{“rewardedvideo”});
The ironSource SDK fires callback to inform you that the ironSource SDK was initialized successfully, for ironSource SDK 7.2.1+ . This listener will provide you an indication that the initialization process was completed, and you can start loading ads. The callback will be sent once per session, and will indicate the first initialization of the SDK. To receive this callback, we suggest the following:
The default of this function is False; in case you’d like to utilize it, you can activate it in the Init with the following string:
IronSource.ShouldTrackReachability(true);
Init Complete Callback
public class InitializationDelegate : ISInitializationDelegate
{
readonly ViewController view;
public InitializationDelegate(ViewController view)
{
this.view = view;
}
public override void initializationDidComplete()
{
}
}
InitializationDelegate mInitializationDelegate;
mInitializationDelegate = new InitializationDelegate(this);
IronSource.InitWithAppKey(string appKey, mInitializationDelegate);
Step 4. Verify Your Integration
The ironSource SDK provides an easy way to verify that your SDK and ad unit integration was completed successfully. Call this method to verify your integration:
ISIntegrationHelper.ValidateIntegration();
Done! You just integrated the ironSource Plugin in your app.
You are now ready to start working with Unity LevelPlay’s Ad Units.
For additional mediation networks, follow Xamarin iOS adapters guide.
For additional settings available to you through the SDK, follow Additional SDK Settings.
Once you’ve verified your integration with the Integration Helper, follow our Rewarded Video integration guide to implement the ad unit.
To view Xamarin change Log and additional Settings return to Xamarin Dev Integration