Setting the config is now slightly different.
2.5.4 and before:
//Create List of creative types to display
CreativeType[] types = {CreativeType.INTERSTITIAL_PORTRAIT};
//Initialise Tapdaq SDK
Tapdaq.tapdaq().initializeWithConfiguration()
.withTestAdvertsEnabled(false) //Optional
.withCreativeTypesSupport(types) //Optional
.withFrequencyCapping(0,0) //Optional
.withMaxNumberOfCachedAdverts(2) //Optional
.initialize("<AppID>", "<ClientKey>", this, new TapdaqCallbacks(this)); //Callbacks is optional
2.5.5:
//Create List of creative types to display
CreativeType[] types = {CreativeType.INTERSTITIAL_PORTRAIT};
//Tapdaq Config (Optional)
TapdaqConfig config = new TapdaqConfig(this);
config.withTestAdvertsEnabled(false);
config.withCreativeTypesSupport(types);
config.withFrequencyCapping(0,0);
config.withMaxNumberOfCachedAdverts(2);
//Initialise Tapdaq SDK
Tapdaq.tapdaq().initialize(this, "<APP_ID>", "<CLIENT_KEY>", new TapdaqCallbacks(), config); //Callbacks && Config are optional and may be set to null
Note: Setting creative types and creating a customised TapdaqConfig instance is entirely optional, by default the SDK will use Interstitial Portrait & Landscape ads, so a dev may initialise with just this if they’re not using Native Ads:
//Initialise Tapdaq SDK
Tapdaq.tapdaq().initialize(this, "<APP_ID>", "<CLIENT_KEY>");
Or this:
//Initialise Tapdaq SDK
Tapdaq.tapdaq().initialize(this, "<APP_ID>", "<CLIENT_KEY>", new TapdaqCallbacks());