Class MyTargetConfig.Builder

    • Constructor Detail

      • MyTargetConfig.Builder

        MyTargetConfig.Builder()
    • Method Detail

      • from

        @NonNull() MyTargetConfig.Builder from(@NonNull() MyTargetConfig myTargetConfig)

        Copies all settings from previous config, it can be used for changing only certain fields of config

        Parameters:
        myTargetConfig - previous config
      • withTestDevices

        @NonNull() MyTargetConfig.Builder withTestDevices(@Nullable() Array<String> testDevices)

        Adds test device/s to show test ad. When ad is loading, SDK writes to log

            D/[myTarget]: Device instanceId is {INSTANCE_ID}. Use this value in adInstance.withTestDevices() to enable test mode on this device.
        
        this value should be put here. Multiple, if code needs to run on several test devices. Method must be called before loading Ad
        Parameters:
        testDevices - instanceId from the Logcat
      • withTrackingEnvironment

        @NonNull() MyTargetConfig.Builder withTrackingEnvironment(boolean enabled)

        Provides the option to disable the collection of environment params. The default is TRUE (information is collected).

        Parameters:
        enabled - enable or disable collection
      • withTrackingLocation

        @NonNull() MyTargetConfig.Builder withTrackingLocation(boolean enabled)

        Provides the option to enable the collection of location and location-based params. The default is FALSE (information is not collected).

        Parameters:
        enabled - enable or disable collection