Multi-Size Banner
Integrate Multi-Size Banners
Last updated
Integrate Multi-Size Banners
Last updated
Multi-size banner placements are similar to , but can present banners of varying sizes. For instance, it is possible to display a banner of the standard size 320x53, followed by a medium rectangle of size 300x250 within the same placement.
It will depend on the server-side configuration on the Dashboard and what actual sizes are getting delivered to your placement.
To create an instance of , use the following API:
To automatically load (and reload) the sticky banner placement enable auto-reload. If you do not set the refresh time interval seconds explicitly, AATKit will
Reload every 30 seconds (if no refresh time interval is set on the Dashboard)
Respect the refresh time interval setting of the Dashboard (which means, you can configure the interval without having to re-publish your app)
The minimum refresh time is 30 seconds.
This needs to stop the auto-reload when it is no longer needed (e.g. if the view controller presenting ads will disappear):
To manually load the sticky banner placement:
Force Load
false
(default): reload()
will respect the current time interval.
true
: reload()
will immediately reload (irrespective of the fact when the last ad was loaded). This can be useful if the same sticky banner placement is used on various different pages of the app and you want to load a new ad every time the user navigates to another page (while still using auto-reloading).
Through the use of , you can listen to the different placement callbacks.