+ Add ad_creatve_id to ad_impression event.
parent
55352073f8
commit
4fd0f8fec4
|
|
@ -55,6 +55,7 @@ namespace Guru
|
|||
public static readonly string EventTchAdRev02Impression = "tch_ad_rev_roas_02";
|
||||
public static readonly string EventTchAdRevAbnormal = "tch_ad_rev_value_abnormal";
|
||||
|
||||
|
||||
//内购成功事件上报
|
||||
public static readonly string EventIAPPurchase = "iap_purchase";
|
||||
public static readonly string EventSubPurchase = "sub_purchase";
|
||||
|
|
@ -72,7 +73,11 @@ namespace Guru
|
|||
public static readonly string ParameterStartType = "start_type"; // 游戏启动类型
|
||||
public static readonly string ParameterReplay = "replay"; // 游戏重玩
|
||||
public static readonly string ParameterContinue = "continue"; // 游戏继续
|
||||
public static readonly string ParameterAdUnitName = "ad_unit_name";
|
||||
public static readonly string ParameterAdCreativeId = "ad_creative_id";
|
||||
|
||||
|
||||
|
||||
|
||||
// 评价参数
|
||||
public static readonly string EventRateImp = "rate_imp"; // 评价弹窗展示
|
||||
|
|
|
|||
|
|
@ -86,8 +86,7 @@ namespace Guru
|
|||
FirebaseUtil.IsFirebaseInitialized ? FirebaseAnalytics.ParameterAdPlatform : "ad_platform";
|
||||
private static string ParameterAdSource =>
|
||||
FirebaseUtil.IsFirebaseInitialized ? FirebaseAnalytics.ParameterAdSource : "ad_source";
|
||||
private static string ParameterAdUnitName =>
|
||||
FirebaseUtil.IsFirebaseInitialized ? FirebaseAnalytics.ParameterAdUnitName : "ad_unit_name";
|
||||
|
||||
private static string ParameterAffiliation =>
|
||||
FirebaseUtil.IsFirebaseInitialized ? FirebaseAnalytics.ParameterAffiliation : "affiliation";
|
||||
private static string ParameterCP1 =>
|
||||
|
|
|
|||
|
|
@ -443,17 +443,28 @@ namespace Guru
|
|||
/// Google ARO买量点
|
||||
/// </summary>
|
||||
/// <param name="impressionData">广告收入数据</param>
|
||||
/// <a href="https://docs.google.com/spreadsheets/d/1lFWLeOGJgq34QDBTfl6OpNh7MoI37ehGrhdbxlOrJgs/edit#gid=983654222"></a>
|
||||
/// <li>
|
||||
/// value double eg:0.002
|
||||
/// currency string USD(只传美元)
|
||||
/// ad_platform string "MAX | ADMOB | FACEBOOK"
|
||||
/// ad_source string 广告来源
|
||||
/// ad_format string 广告格式
|
||||
/// ad_unit_name string 广告位名称
|
||||
/// ad_creative_id string 广告素材id
|
||||
/// </li>
|
||||
public static void ADImpression(MaxSdkBase.AdInfo impressionData)
|
||||
{
|
||||
double revenue = impressionData.Revenue;
|
||||
LogEvent(EventAdImpression, new Dictionary<string, dynamic>()
|
||||
{
|
||||
[ParameterAdPlatform] = AdMAX,
|
||||
[ParameterAdSource] = impressionData.NetworkName,
|
||||
[ParameterAdUnitName] = impressionData.AdUnitIdentifier,
|
||||
[ParameterAdFormat] = impressionData.AdFormat,
|
||||
[ParameterValue] = revenue,
|
||||
[ParameterCurrency] = USD,
|
||||
[ParameterAdPlatform] = AdMAX,
|
||||
[ParameterAdSource] = impressionData.NetworkName,
|
||||
[ParameterAdFormat] = impressionData.AdFormat,
|
||||
[ParameterAdUnitName] = impressionData.AdUnitIdentifier,
|
||||
[ParameterAdCreativeId] = impressionData.CreativeIdentifier,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue