// This class handles game design events, such as kills, deaths, high scores, etc.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using GameAnalyticsSDK.Wrapper;
namespace GameAnalyticsSDK.Events
{
public static class GA_Ads
{
#region public methods
///
/// Creates a new event
///
/// Action of ad (for example loaded, show).
/// Type of ad (for video, interstitial).
/// Name of ad SDK.
/// Placement of ad or identifier of the ad in the app
/// Duration of ad video
/// Custom fields.
public static void NewEvent(GAAdAction adAction, GAAdType adType, string adSdkName, string adPlacement, long duration, IDictionary fields, bool mergeFields)
{
GA_Wrapper.AddAdEventWithDuration(adAction, adType, adSdkName, adPlacement, duration, fields, mergeFields);
}
///
/// Creates a new event
///
/// Action of ad (for example loaded, show).
/// Type of ad (for video, interstitial).
/// Name of ad SDK.
/// Placement of ad or identifier of the ad in the app
/// Error reason for no ad available
/// Custom fields.
public static void NewEvent(GAAdAction adAction, GAAdType adType, string adSdkName, string adPlacement, GAAdError noAdReason, IDictionary fields, bool mergeFields = false)
{
GA_Wrapper.AddAdEventWithReason(adAction, adType, adSdkName, adPlacement, noAdReason, fields, mergeFields);
}
///
/// Creates a new event
///
/// Action of ad (for example loaded, show).
/// Type of ad (for video, interstitial).
/// Name of ad SDK.
/// Placement of ad or identifier of the ad in the app
/// Custom fields.
public static void NewEvent(GAAdAction adAction, GAAdType adType, string adSdkName, string adPlacement, IDictionary fields, bool mergeFields = false)
{
GA_Wrapper.AddAdEvent(adAction, adType, adSdkName, adPlacement, fields, mergeFields);
}
#endregion
}
}