using UnityEngine; namespace Unity.Services.Analytics { /// /// Use this class to record acquisitionSource events. /// /// For more information about the acquisitionSource event, see the documentation page: /// https://docs.unity.com/ugs/en-us/manual/analytics/manual/attribution-support /// public class AcquisitionSourceEvent : Event { public AcquisitionSourceEvent() : base("acquisitionSource", true, 1) { } /// /// (Required) The name of the specific marketing provider used to drive traffic to the game. /// This should be a short identifiable string as this will be the name displayed when filtering or grouping by an acquisition channel. /// public string AcquisitionChannel { set { SetParameter("acquisitionChannel", value); } } /// /// (Required) The ID of the acquisition campaign. /// public string AcquisitionCampaignId { set { SetParameter("acquisitionCampaignId", value); } } /// /// (Required) The ID of the acquisition campaign creative. /// public string AcquisitionCreativeId { set { SetParameter("acquisitionCreativeId", value); } } /// /// (Required) The name of the acquisition campaign e.g. Interstitial:Halloween21. /// public string AcquisitionCampaignName { set { SetParameter("acquisitionCampaignName", value); } } /// /// (Required) The name of the attribution provider in use e.g. Adjust, AppsFlyer, Singular /// public string AcquisitionProvider { set { SetParameter("acquisitionProvider", value); } } /// /// (Optional) The cost of the install e.g. 2.36. /// public float AcquisitionCost { set { SetParameter("acquisitionCost", value); } } /// /// (Optional) The ISO 4217 three-letter currency code for the install cost currency. For example, GBP or USD. /// public string AcquisitionCostCurrency { set { SetParameter("acquisitionCostCurrency", value); } } /// /// (Optional) The acquisition campaign network e.g. Ironsource, Facebook Ads. /// public string AcquisitionNetwork { set { SetParameter("acquisitionNetwork", value); } } /// /// (Optional) The acquisition campaign type. e.g. CPI. /// public string AcquisitionCampaignType { set { SetParameter("acquisitionCampaignType", value); } } public override void Validate() { base.Validate(); if (!ParameterHasBeenSet("acquisitionChannel")) { Debug.LogWarning("A value for the AcquisitionChannel parameter is required for an AcquisitionSource event."); } if (!ParameterHasBeenSet("acquisitionCampaignId")) { Debug.LogWarning("A value for the AcquisitionCampaignId parameter is required for an AcquisitionSource event."); } if (!ParameterHasBeenSet("acquisitionCreativeId")) { Debug.LogWarning("A value for the AcquisitionCreativeId parameter is required for an AcquisitionSource event."); } if (!ParameterHasBeenSet("acquisitionCampaignName")) { Debug.LogWarning("A value for the AcquisitionCampaignName parameter is required for an AcquisitionSource event."); } if (!ParameterHasBeenSet("acquisitionProvider")) { Debug.LogWarning("A value for the AcquisitionProvider parameter is required for an AcquisitionSource event."); } } } }