androidsdkappylar

Initializing the Appylar Android SDK


When I try to initialize the Appylar Android SDK in my app, I get an “unauthorized” response. Does anybody know how to resolve this?


Solution

  • In your dashboard on the Appylar website, click on "Apps" in the menu to the left. On that page, you will see your app and the app key. Just copy the app key and paste it into the init function in your app:

    Appylar.init(
        this, // The application context
        <YOUR_APP_KEY>, // The unique app key for your app
        arrayOf(AdType.BANNER, AdType.INTERSTITIAL), // The ad types that you want to show
        true // Test mode, true for development, false for production
    )