Class MyTargetManager

java.lang.Object
com.my.target.common.MyTargetManager

public final class MyTargetManager extends Object
  • Method Details

    • setDebugMode

      public static void setDebugMode(boolean debugMode)
      Enable / disable debug mode (default false).
      Parameters:
      debugMode - enable or disable debug
    • getSdkConfig

      public static MyTargetConfig getSdkConfig()
      Returns:
      current SDK configuration instance
      See Also:
    • setSdkConfig

      public static void setSdkConfig(MyTargetConfig config)
      Configuration with global settings can be set to SDK. New config can be created with MyTargetConfig.Builder
      Parameters:
      config - SDK configuration instance
      See Also:
    • getBidderToken

      public static String getBidderToken(android.content.Context context)
      Obtaining a token for the server auction. The method must be called from outside the main thread.

      This function returns one of two different tokens dependent on current value of MyTargetPrivacy#isConsent() flag from MyTargetPrivacy#currentPrivacy(). Both tokens are generated once per session and remain unchanged until the application is restarted.

      When working with a server-side auction, you must start loading an advertisement with the bid_payload received from the server, for this you need to use the loadFromBid method of the advertisement instance.

      Parameters:
      context - app context
      Returns:
      token for ad bidding
    • initSdk

      public static void initSdk(android.content.Context context)
      Initializes sdk to make first ad request faster.
      Parameters:
      context - app context
    • isSdkInitialized

      public static boolean isSdkInitialized()
      Returns the SDK initialization status