Banners
#
1. Load an ad- TradPlusAdBanner is a UIView itself, developers can adjust the position and size by themselves. Just add it to the specified UIView after creation.
- It takes some time to load the ads, so it is recommended to pre-load the ads before displaying them.
- AdUnitID is the ad unit ID created in the TradPlus backend, and the SDK will fetch the configuration and request the ad according to the ad unit ID.
- The sceneId is the ad scene ID, which is nil by default.
#
2. Show Banner Ad- After the ad is loaded successfully, it will automatically fill in the TradPlusAdBanner. No need to call the
showWithSceneId:
method.
#
3. Register TradPlusADBannerDelegate Callback- Ad event callbacks need to be registered before displaying an ad. Get callbacks for ad loading, ad show, ad click, ad close, etc.
#
4. Integration ReferenceRefer to: TradPlusAdBannerViewController