Change URL for ad requests

You can set your own URL to which the Admixer SDK will send ad requests:

SDKSettings.setRequestBaseUrl("YOUR_CUSTOM_URL");

Save Android Advertising ID in local storage

By default the Admixer SDK retrieves AAID from the GooglePlay Services before a first ad request and keeps this value in a memory. To reduce time of a first ad request the Admixer SDK can save AAID in Shared Preferences and retrieves AAID before the next first ad requests. You can save AAID in Shared Preferences by calling the following method:

SDKSettings.setShouldSaveAAID(true, this);

If you want to remove AAID from Shared Preferences, you have to pass false as a first parameter at least once:

SDKSettings.setShouldSaveAAID(false, this);

Change background color in video player

Set a background color for instream and non-instream video player through a global methods:

VideoPlayerSettings.getVideoPlayerSettings().setInstreamBackgroundColor("#00FF00");
VideoPlayerSettings.getVideoPlayerSettings().setPlayerBackgroundColor("#FF0000");

Change text for buttons in video player

Set a custom text for default Learn more and Skip buttons in video player through a global methods:

// The maximum length of text is 50 symbols
VideoPlayerSettings.getVideoPlayerSettings().setLearnMoreLabelName("Learn more");
// The maximum length of text is 15 symbols
VideoPlayerSettings.getVideoPlayerSettings().setSkipLabelName("Skip");

Hide buttons in video player

Change visibility for Learn more, Mute and Skip buttons in video player through a global methods:

VideoPlayerSettings.getVideoPlayerSettings().shouldShowClickThroughControl(false);
VideoPlayerSettings.getVideoPlayerSettings().shouldShowVolumeControl(false);
VideoPlayerSettings.getVideoPlayerSettings().shouldShowSkip(false);
Last modified: 10 November 2021