...
Code Block | ||
---|---|---|
| ||
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') ); } |
Note |
---|
This step is for testing purposes and you are only going to see test ads when using this approach, but this is very helpful to us if you provide this peace of code to tell us where you want to place the ads. Later when in production, this code will be removed and you have hopefully added flexible tagged wrappers and tagged all the button as possible so we can change your ad slots from the server without the need of updating the app. |