...
Code Block | ||
---|---|---|
| ||
void addTestingSingleTagData() { // Define the initial/home route name as the main screen, // in the example it is MainPage R89SDK.singleTagConfiguration.initialRouteName = '/' // Configure the main screen with ad placements R89SDK.singleTagConfiguration.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 place ad usein the first taggedR89Tag wrapper in "/" the screen, // in case there are multiple R89Tags with the same tag: available on the same screen. wrapperRelativePositionAfter: true, // Place the ad afterbelow the child of R89Tag(child:...) ) // TriggerTriggers an interstitial when transitioning from "MainPage" ("/") to "NewsPostDetailPage" ..addInterstitial(eventToTrack: 'NewsPostDetailPage') // TriggerTriggers an interstitial when a child of R89Tag(tag:'play_video_trailer_tag',child:...) is pressed ..addInterstitial(eventToTrackButton: 'play_video_trailer_tag') ); } |
...