Example #1
0
    //Causes a device to receive test ads. The deviceId can be obtained by viewing the logcat output after creating a new ad.
    public void AddTestDevice(string deviceId)
    {
        if (!_IsInited)
        {
            Debug.LogWarning("AddTestDevice shoudl be called only after Init function. Call ignored");
            return;
        }

        AndroidNative.AddTestDevice(deviceId);
    }
    //Causes a device to receive test ads. The deviceId can be obtained by viewing the logcat output after creating a new ad.
    public void AddTestDevices(params string[] ids)
    {
        if (!_IsInited)
        {
            Debug.LogWarning("AddTestDevice shoudl be called only after Init function. Call ignored");
            return;
        }

        if (ids.Length == 0)
        {
            return;
        }


        AndroidNative.AddTestDevice(string.Join(DEVICES_SEPARATOR, ids));
    }