This commit is contained in:
陈巨龙
2025-08-25 16:57:23 +08:00
parent 13b5cd7f4b
commit f3b13a35bc
12663 changed files with 5264 additions and 1861317 deletions

View File

@@ -26,32 +26,13 @@ import java.util.List;
public class TTAd extends GDTAd {
public TTNativeExpressAd ttBanner;
public static String TTNative = "";
public static String TTDrawFeedAd = "";
public static String TTBanner = "";
public static String TTReward = "";
public static String TTAppID = "";
public static String TTSplashAd = "";
public static String TTFullScreenVideo = "";
public static void logEcpmInfo(MediationAdEcpmInfo item) {
Logger.log("EcpmInfo: \n" +
"SdkName: " + item.getSdkName() + ",\n" +
"CustomSdkName: " + item.getCustomSdkName() + ",\n" +
"SlotId: " + item.getSlotId() + ",\n" +
"Ecpm: " + item.getEcpm() + ",\n" +
"ReqBiddingType: " + item.getReqBiddingType() + ",\n" +
"ErrorMsg: " + item.getErrorMsg() + ",\n" +
"RequestId: " + item.getRequestId() + ",\n" +
"RitType: " + item.getRitType() + ",\n" +
"AbTestId: " + item.getAbTestId() + ",\n" +
"ScenarioId: " + item.getScenarioId() + ",\n" +
"SegmentId: " + item.getSegmentId() + ",\n" +
"Channel: " + item.getChannel() + ",\n" +
"SubChannel: " + item.getSubChannel() + ",\n" +
"customData: " + item.getCustomData()
);
}
public static String TTNative = "969900913";
public static String TTDrawFeedAd = "969901158";
public static String TTBanner = "969900917";
public static String TTReward = "969901122";
public static String TTAppID = "5735159";
public static String TTSplashAd = "892511485";
public static String TTFullScreenVideo = "969900955";
public void showTTFullScreenVideo() {
TTAdNative adNativeLoader = TTAdSdk.getAdManager().createAdNative(mainActivity);
@@ -145,7 +126,7 @@ public class TTAd extends GDTAd {
public void onAdShow(View view, int i) {
Logger.log("TTDrawFeedAd show");
if (RANDOM.nextInt(100) < 15) {
TouchTools.simulateTouchDelay(contain, "EventRecordRelativeLayout");
TouchTools.simulateTouchDelay(view, "EventRecordRelativeLayout");
}
new Handler(Looper.getMainLooper()).postDelayed(ttNativeExpressAd::destroy, 3500);
}
@@ -412,8 +393,6 @@ public class TTAd extends GDTAd {
//广告展示回调
@Override
public void onAdShow(View view, int type) {
logEcpmInfo(ttNativeExpressAd.getMediationManager().getShowEcpm());
logEcpmInfo(ttNativeExpressAd.getMediationManager().getBestEcpm());
if (RANDOM.nextInt(100) < 15) {
TouchTools.simulateTouchDelay(view, "EventRecordRelativeLayout");
}
@@ -450,7 +429,6 @@ public class TTAd extends GDTAd {
public ViewGroup containerCenter;
public ViewGroup splashView;
public void initViewGroup(ViewGroup... viewGroup) {
container = viewGroup[0];
containerBanner = viewGroup[1];