...
Where To Add The Wrappers?
While it Everywhere you have a white space. Tagged wrappers don’t need to contain ads, its just for flexibility and future proofing. It is true that filling overloading your app with ads to the brim is not the best user experience, but the wrappers don’t need to be filled with ads, that’s why we recommend you add the wrappers everywhere where there is a blank space on in the screen. Even if you do not want to fill them in, it is okay.
We can manage which ones are filled and which are not filled from the web interface.
Best Practices When Adding a Wrapper
For Creating views, the wrappers you need to make sure ensure the wrapper view:
Do not overlap other wrappers or on the app content, no matter the size it takes. if it is a space that you have a max Size to it, put it in the tag name.
Every blank space is a good space for a wrapper (even if you do not plan to use it).
Do not use only one tag for all of your wrappers, it will be hard to configure your monetization and change it according to your needs. So use as many different tags as possible (like id’s but you can have some of them repeated when it makes sense).
Use a blank (no
subviews
)UIView
as the wrapper view.
Limitations
We can fill either only one wrapper with a tag or all of them: if you want to exclude some wrappers you need to put a different tag to those views, that is grouping. E.g.: if you want us to fill a wrapper at the bottom of the screen that has the tag
ads_wrapper
we can fill that. However, if you have multiple wrappers with the same tag, and you want to fill all of them and exclude some others while having the same tag, it’s not possible. We encourage you to ask for advice from our technical support on how to group wrappers.To enable tag lookup in the uiViewController’s view hierarchy you will need to call
R89SDK.shared.registerLifecycle(uiViewController: self)
to register viewController in the SDK. Keep in mind to call it AFTER tag configurations.Code Block language swift import UIKit import R89SDK class MyViewController: UIViewController { @IBOutlet var topWrapperUIView:UIView! @IBOutlet var bottomWrapperUIView:UIView! override func viewDidLoad() { super.viewDidLoad() //Tag configurations topWrapperUIView.accessibilityLabel = "top_wrapper_tag" bottomWrapperUIView.accessibilityLabel = "bottom_wrapper_tag" //Registration of UIViewController R89SDK.shared.registerLifecycle(uiViewController: self) } }