You can test the VMAX unity plugin integration by setting certain test devices using the SetTestDevices() API. The parameter to be passed for this API is a list of device ID strings.
Setting Test Devices
Set your App in testing mode by using the SetTestMode() method as shown below.
Note: It takes a boolean parameter.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
public VMAXPlugin.VMAXWP8Plugin pluginVMAXAd; void Start () { /*This is a test AdspotId, make sure you replace it before going live*/ pluginVMAXAd = new VMAXWP8Plugin(“MY_ADSPOT_ID”,false); } void OnGUI () { /*Please remove the next line before going live*/ List devices = new List(); devices.Add("deviceId1"); devices.Add("deviceId2"); devices.Add("deviceId3"); pluginVMAXAd.SetTestDevices (devices); } |
1 2 3 4 5 6 7 8 9 10 11 12 |
// Place this snippet in a method and take the value returned by it and use it as device id. try { var value = (byte[])DeviceExtendedProperties.GetValue("DeviceUniqueId"); return Convert.ToBase64String(value); } catch { return string.Empty; } |