public void PostAdAction_RewardedTest(
     [Values(true, false)] bool rewarded
     )
 {
     Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PostAdAction(rewarded));
     EvaluateAnalyticsResult(m_Result);
 }
        public void PostAdAction_NetworkEnumTest(
            [Values(AdvertisingNetwork.UnityAds, AdvertisingNetwork.None)] AdvertisingNetwork network
            )
        {
            var rewarded = true;

            Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PostAdAction(rewarded, network));
            EvaluateAnalyticsResult(m_Result);
        }
        public void PostAdAction_NetworkStringTest(
            [Values("unityads", "", null)] string network
            )
        {
            var rewarded = true;

            Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PostAdAction(rewarded, network));
            EvaluateAnalyticsResult(m_Result);
        }
        public void PostAdAction_CustomDataTest()
        {
            var rewarded    = true;
            var network     = AdvertisingNetwork.UnityAds;
            var placementId = "rewardedVideo";

            Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PostAdAction(rewarded, network, placementId, m_CustomData));
            EvaluateCustomData(m_CustomData);
            EvaluateAnalyticsResult(m_Result);
        }
        public void PostAdAction_PlacementIdTest(
            [Values("rewardedVideo", "", null)] string placementId
            )
        {
            var rewarded = true;
            var network  = AdvertisingNetwork.UnityAds;

            Assert.DoesNotThrow(() => m_Result = AnalyticsEvent.PostAdAction(rewarded, network, placementId));
            EvaluateAnalyticsResult(m_Result);
        }
Beispiel #6
0
    public string post_ad_action02()
    {
        var status = AnalyticsEvent.PostAdAction(true, AdvertisingNetwork.UnityAds, "placement_id_server");

        return(status.ToString());
    }
Beispiel #7
0
    public string post_ad_action01()
    {
        var status = AnalyticsEvent.PostAdAction(true);

        return(status.ToString());
    }