Step 3: Integrate the plugin

If you are using the latest Unity with Version 5.x, then once you import the package, you need to make some additional settings that are mentioned below.
a) Click on VMAXPlugin.dll found at Assets/Plugins. Now check its properties in the Inspector Window.
b) Change the platform for the plugin from Any Platform to Editor and click on Apply.
c) Click on VMAXPlugin.dll found at Assets/Plugins/WP8. Now check its properties in the Inspector Window.
Ensure that its platform has been set to WP8Player.
d) Check the Don’t process box in the Platform settings for all the dlls present in WP8 folder. Also remember to make this setting in case you add dlls for the mediation partners into the project.
e) Select a placeholder dll for the plugin by setting the path to Assets/Plugins/VMAXPlugin.dll and click on Apply.
This will now make your plugin work well even for Unity 5.x +.Note: If you are opening the sample supplied with this package in Unity 5.x, make sure you apply the above mentioned changes there as well.

Select your Camera and add a script via the Inspector panel.
Note: Ensure that it is a C Sharp script.

Set the import directive in your script

1

using VMAXPlugin;

Note: This script will be used for Ad Invocation.

Build the game in Unity Editor for Windows Phone 8.0 platform. Open the new Solution that got created due the build operation in Visual Studio (2012 / 2013).

Perform the following in Visual Studio post the integration into Unity.
For your application’s MainPage.xaml.cs, in the constructor, add the following: