[U] ad plugins

This commit is contained in:
2025-02-14 17:40:00 +08:00
parent 9cc9b5a744
commit aa03da91a4
10 changed files with 193 additions and 46 deletions

View File

@@ -62,13 +62,20 @@ public class AFDeepLinkHelper : MonoBehaviour, IAppsFlyerConversionData, IAppsFl
}
}
public void Init()
public void Init(string afkey, string afAppID, string customerUserID, string oneLinkID, bool debugMode = false)
{
AppsFlyer.setIsDebug(true);
AppsFlyer.setAppInviteOneLinkID("jT1Q");
AppsFlyer.initSDK("rSySeWtvKabfbPZE7Lmx7C", "6505145935", this);
AppsFlyer.setIsDebug(debugMode);
AppsFlyer.setAppInviteOneLinkID(oneLinkID);
AppsFlyer.initSDK(afkey, afAppID, this);
AppsFlyer.setCustomerUserId(customerUserID);
AppsFlyer.OnDeepLinkReceived += OnDeepLink;
#if UNITY_IOS
AppsFlyerSDK.AppsFlyer.waitForATTUserAuthorizationWithTimeoutInterval(30);
#endif
AppsFlyer.startSDK();
AppsFlyerSDK.AppsFlyerAdRevenue.start();
}
public async Task<string> GenInviteLink(string referrerUID, string referrerPID)