Step Summary
Enter Debug mode.
Use
R89SDK.singleTagConfiguration
to append custom data that would otherwise not exist either 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(LogLevel.debug);
Full example
R89SDK.setLogLevel(LogLevel.debug); R89SDK.setDebug(getLocalFakeData: true); /* <SingleTagConfiguratorCode> */ addTestingSingleTagData() R89SDK.initialize( publisherId: "TestRefinery89ID", /* This is for testing purposes, change it on prod */ appId: "TestDemoApp", /* This is for testing purposes, change it on prod */ singleTag: true);
use R89SDK.singleTagConfiguration
to add your own single-tag data
void addTestingSingleTagData() { R89SDK.singleTagConfiguration // Define the initial route name as the main screen ..initialRouteName = '/' // Configure the main screen with ad placements ..addAdScreenConfig( adScreenConfig: AdScreenConfig(screenName: '/') // Add a banner inside the wrapper with the tag 'main_page_bottom_ad_container' ..addBanner( tag: 'main_page_bottom_ad_container', getAllWithTag: false, // Only use the first tagged wrapper in "/" wrapperRelativePositionAfter: true, // Place the ad after the child of R89Tag(child:...) ) // Trigger an interstitial when transitioning from "MainPage" ("/") to "NewsPostDetailPage" ..addInterstitial(eventToTrack: 'NewsPostDetailPage') // Trigger an interstitial when a child of R89Tag(tag:'play_video_trailer_tag',child:...) is pressed ..addInterstitial(eventToTrackButton: 'play_video_trailer_tag') ); }