You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using this library, how can I call specific ad units? For example I have a customized ad to use for a specific view, and another ad for another view controller. How can I let the library display the correct one (this is of course assuming admob is the default choice)?
I also was wondering what the proper way of using this is, when my root view controller isn't embedded within a navigation controller or a tab bar controller. I just have a view controller with multiple segues that lead to other view controllers.
Thank you so much for this by the way!
The text was updated successfully, but these errors were encountered:
Currently it is not possible to specify separate ad unit IDs for specific views, but this sounds like it might be useful so I've tagged this as an enhancement. Not sure when I'll be working on this again but it's something I'll definitely look into adding. But yeah you can't do that right now, sorry.
As for your second question, well, to be honest I'm not sure if it will work correctly if you're not using either of those types controllers. I originally wrote this for myself and later decided to open source it, hence why it doesn't have much flexibility for uses like that (at least at the moment) as I only used it with a nav controller.
Off the top of my head I think your only way around this might be to init your other view controllers with code like this, and push the ad controller instead, but honestly I'm not sure this would actually work as you want it to:
Chances are that won't work... so I guess you might want to check out some other ad controllers, I'm sure someone must have had the same issue you are facing, but unfortunately it doesn't sound like mine can help you out in this case...
Using this library, how can I call specific ad units? For example I have a customized ad to use for a specific view, and another ad for another view controller. How can I let the library display the correct one (this is of course assuming admob is the default choice)?
I also was wondering what the proper way of using this is, when my root view controller isn't embedded within a navigation controller or a tab bar controller. I just have a view controller with multiple segues that lead to other view controllers.
Thank you so much for this by the way!
The text was updated successfully, but these errors were encountered: