Commit 5b60e13f authored by wanglei's avatar wanglei

...

parent 9dcda932
...@@ -41,6 +41,7 @@ object AdmobEvent { ...@@ -41,6 +41,7 @@ object AdmobEvent {
obj.put("networkname", responseInfo?.mediationAdapterClassName) obj.put("networkname", responseInfo?.mediationAdapterClassName)
obj.put("ad_unit", adUnit) obj.put("ad_unit", adUnit)
obj.put("req_id", reqId) obj.put("req_id", reqId)
obj.put("mediation", "admob")
if (error == null) { if (error == null) {
obj.put("status", "1") obj.put("status", "1")
} else { } else {
...@@ -211,6 +212,7 @@ object AdmobEvent { ...@@ -211,6 +212,7 @@ object AdmobEvent {
obj.put("credentials", credentials.toString()) obj.put("credentials", credentials.toString())
obj.put("session_id", responseInfo?.responseId) obj.put("session_id", responseInfo?.responseId)
obj.put("networkname", responseInfo?.mediationAdapterClassName) obj.put("networkname", responseInfo?.mediationAdapterClassName)
obj.put("mediation", "admob")
if (adUnit != "nativeAd") { if (adUnit != "nativeAd") {
EventUtils.event("ad_click", ext = obj) EventUtils.event("ad_click", ext = obj)
} else { } else {
...@@ -232,6 +234,7 @@ object AdmobEvent { ...@@ -232,6 +234,7 @@ object AdmobEvent {
obj.put("credentials", credentials.toString()) obj.put("credentials", credentials.toString())
obj.put("session_id", responseInfo?.responseId) obj.put("session_id", responseInfo?.responseId)
obj.put("from", activity?.javaClass?.simpleName) obj.put("from", activity?.javaClass?.simpleName)
obj.put("mediation", "admob")
if (adUnit != "nativeAd") { if (adUnit != "nativeAd") {
EventUtils.event("ad_show", ext = obj) EventUtils.event("ad_show", ext = obj)
} else { } else {
......
...@@ -30,6 +30,7 @@ object AdMaxEvent { ...@@ -30,6 +30,7 @@ object AdMaxEvent {
obj.put("networkplacement", ad?.networkPlacement) obj.put("networkplacement", ad?.networkPlacement)
obj.put("latency", ad?.requestLatencyMillis) obj.put("latency", ad?.requestLatencyMillis)
obj.put("valueMicros", ad?.revenue) obj.put("valueMicros", ad?.revenue)
obj.put("mediation","applovin")
if (error == null) { if (error == null) {
obj.put("status", "1") obj.put("status", "1")
} else { } else {
...@@ -54,6 +55,7 @@ object AdMaxEvent { ...@@ -54,6 +55,7 @@ object AdMaxEvent {
obj.put("networkplacement", ad?.networkPlacement) obj.put("networkplacement", ad?.networkPlacement)
obj.put("latency", ad?.requestLatencyMillis) obj.put("latency", ad?.requestLatencyMillis)
obj.put("valueMicros", ad?.revenue) obj.put("valueMicros", ad?.revenue)
obj.put("mediation","applovin")
if (!adUnit.equals("nativeAd")) { if (!adUnit.equals("nativeAd")) {
EventUtils.event("ad_click", ext = obj) EventUtils.event("ad_click", ext = obj)
} else { } else {
...@@ -76,6 +78,7 @@ object AdMaxEvent { ...@@ -76,6 +78,7 @@ object AdMaxEvent {
obj.put("latency", ad?.requestLatencyMillis) obj.put("latency", ad?.requestLatencyMillis)
obj.put("valueMicros", ad?.revenue) obj.put("valueMicros", ad?.revenue)
obj.put("from", activity?.javaClass?.simpleName) obj.put("from", activity?.javaClass?.simpleName)
obj.put("mediation","applovin")
LogEx.logDebug("glc", "from: " + activity?.javaClass?.simpleName) LogEx.logDebug("glc", "from: " + activity?.javaClass?.simpleName)
if (!adUnit.equals("nativeAd")) { if (!adUnit.equals("nativeAd")) {
EventUtils.event("ad_show", ext = obj) EventUtils.event("ad_show", ext = obj)
...@@ -134,7 +137,7 @@ object AdMaxEvent { ...@@ -134,7 +137,7 @@ object AdMaxEvent {
obj.put("adFormat", adFormat) obj.put("adFormat", adFormat)
obj.put("placement", placement) obj.put("placement", placement)
obj.put("networkPlacement", networkPlacement) obj.put("networkPlacement", networkPlacement)
EventUtils.event("ad_price", ext = obj) // EventUtils.event("ad_price", ext = obj)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment