addBannerConfiguration abstract method
- {required String configurationId,
- required String bannerUnitId,
- required String bannerConfigId,
- required List<
AdSize> sizeList, - int autoRefreshMillis = 30000,
- bool isCapped = false,
- int adAmountPerTimeSlot = 1,
- int timeSlotSize = 3600000,
- List<
String> ? keywords, - Map<
String, Set< ? unitFPID,String> > - bool closeButtonIsActive = false,
- String closeButtonImageURL = "",
- bool wrapperWrapContent = true,
- bool wrapperMatchParentHeight = false,
- bool wrapperMatchParentWidth = false,
- int wrapperHeight = -1,
- int wrapperWidth = -1,
- WrapperPosition wrapperPosition = WrapperPosition.center}
Adds a banner configuration to the SDK.
configurationId Configuration ID.
bannerUnitId Unit ID from the manager.
bannerConfigId Config ID from the manager.
sizeList List of sizes indicating width and height.
autoRefreshMillis Ad auto refresh timer (default = 30000 millis / 30 seconds).
isCapped Whether ad is capped or not (default = false).
adAmountPerTimeSlot Capping amount of ads per time slot (default = 1).
timeSlotSize Size of the time slot (default = 3600000 millis / 1 hour).
keywords This is for adding specific keywords to the unit.
unitFPID This is for adding specific first-party data to the unit.
closeButtonIsActive Activate ad close button (default = false).
closeButtonImageURL URL of custom icon for ad close button.
wrapperWrapContent Wrap r89Wrapper around the content (ad).
wrapperMatchParentHeight Match r89Wrapper height with publisher's wrapper height.
wrapperMatchParentWidth Match r89Wrapper width with publisher's wrapper width.
wrapperHeight Change r89Wrapper's height.
wrapperWidth Change r89Wrapper's width.
wrapperPosition Change r89Wrapper's position inside the flutter's platform view.
Implementation
void addBannerConfiguration({
required String configurationId,
required String bannerUnitId,
required String bannerConfigId,
required List<AdSize> sizeList,
int autoRefreshMillis = 30000,
bool isCapped = false,
int adAmountPerTimeSlot = 1,
int timeSlotSize = 3600000,
List<String>? keywords,
Map<String, Set<String>>? unitFPID,
bool closeButtonIsActive = false,
String closeButtonImageURL = "",
bool wrapperWrapContent = true,
bool wrapperMatchParentHeight = false,
bool wrapperMatchParentWidth = false,
int wrapperHeight = -1,
int wrapperWidth = -1,
WrapperPosition wrapperPosition = WrapperPosition.center,
});