1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71
| using Athana; using Athana.Callbacks; using Athana.Api; using static Athana.Api.AthanaInterface; using static Athana.Callbacks.AthanaCallbacks;
public class MainSceneController : MonoBehaviour { void Start() { ... InitAthanaSdk() ... AthanaSdk.Start(false); }
private void InitAthanaSdk() { long appId = 00000000000; string appKey = "******************"; string appSecret = "*****************************";
string appsFlyerDevKey = "******************"; string maxDevKey = "******************"; string googleWebClintId = "******************"; bool testMode = false; bool debug = false;
var preloadAds = new Dictionary<AdType, string>() { { AdType.AppOpen, "******************" }, { AdType.Rewarded, "******************" }, { AdType.Interstitial, "******************" }, }; AthanaSdk.Initialize(appId, appKey, appSecret, testMode: testMode, debug: debug, serviceConfig: new() { AccountConfig = new() { googleWebClientId = googleWebClintId, }, AdServiceConfigs = new() { max = new() { sdkKey = maxDevKey, debug = debug, preloadAds = AthanaUtils.preloadAds2String(preloadAds) } }, ConversionServiceConfigs = new() { appsflyer = new() { sdkKey = appsFlyerDevKey, } } });
} }
|