iOS Banner API v2 documentation #39
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Banner(V2) Integration
1. Init Yodo1MasBannerAdView
For
Objective-CFor
SwiftBanner sizes
2. Load an ad
Once the
Yodo1MasBannerAdViewis in place, the next step is to load an ad. That's done with theloadAd()method in theYodo1MasBannerAdViewclass.Here's an example that shows how to load an ad in the
viewDidLoadmethod of anUIViewController:For
Objective-CFor
SwiftThat's it! Your app is now ready to display banner ads.
3. Ad events
To further customize the behavior of your ad, you can hook onto a number of events in the ad's lifecycle: loading, opening, closing, and so on. You can listen for these events through the
Yodo1MasBannerAdViewDelegateclass.For
Objective-CFor
Swift