/
Android How to test Single Tag Implementation
Android How to test Single Tag Implementation
Step Summary
Enter Debug mode
Use
SingleTagConfigurator
to append custom data that would otherwise not exist neither in the fake local data or in our prod api.Initialize normally the single tag implementation
1. Enter Debug Mode
For testing single tag implementation add this before initialization
R89SDK.setDebug()
We also recommend adding
R89SDK.setLogLevel(LogLevels.DEBUG)
Full Example
R89SDK.setDebug()
R89SDK.setLogLevel(LogLevels.DEBUG)
/* <SingleTagConfiguratorCode> */
addCustomSingleTagData()
R89SDK.initialize(
appContext = this,
publisherId = "TestRefinery89ID",
appId = "TestDemoApp",
singleLine = true,
initializationEvents = null
)
use SingleTagConfigBuilder
to add your own single tag data
fun addCustomSingleTagData()
{
//Add a Screen that is an Activity, the screenName you can get it by logging this in you code ->
// MainActivity::class.simpleName -> MainActivity
// NewsPostDetailActivity::class.simpleName -> NewsPostDetailActivity
val screenBuilder = SingleTagConfigBuilder.addAdScreenBuilder(
isFragment = false,
screenName = "MainActivity"
)
// Add a banner format to the wrapper with the tag main_activity_bottom_ad_container
screenBuilder.addBanner(
wrapperTag = "main_activity_bottom_ad_container",
getAllWithTag = false, /* Only the first tagged wrapper in "MainActivity" with this tag will be used for this banner*/
wrapperRelativePositionInside = true /* the ad will be placed inside of the wrapper */
)
/* trigger interstitial when we transition from "MainActivity" (ScreenBuilder.screenName) TO NewsPostDetailActivity */
screenBuilder.addInterstitial(
eventsToTrackTo = "NewsPostDetailActivity",
eventsToTrackButton = null
)
/* trigger an interstitial when a button with this tag is pressed in "MainActivity" (ScreenBuilder.screenName) */
screenBuilder.addInterstitial(
eventsToTrackTo = null
eventsToTrackButton = "play_video_trailer_tag"
)
}
, multiple selections available,
Related content
Android Single Tag Implementation
Android Single Tag Implementation
More like this
Android Tagged Wrappers
Android Tagged Wrappers
Read with this
iOS Single Tag Implementation
iOS Single Tag Implementation
More like this
iOS How to Test Single Tag Implementation
iOS How to Test Single Tag Implementation
Read with this
Android How to test Manual Implementation
Android How to test Manual Implementation
More like this
Flutter Single Tag Implementation
Flutter Single Tag Implementation
Read with this