Native Ads
#
1. Load an ad- It takes some time to load ads, so it is recommended to pre-load ads before displaying them.
- AdUnitID is the Ad Unit ID created in the TradPlus backend. SDK will fetch the configuration and request ads according to the Ad Unit ID.
#
2. Show Native Ad- Developers can implement custom layouts through
RenderingViewClass
, and ad materials are spliced into ad styles through this layout. Refer to TPNativeTemplate - The rendered ads will be added to the adView passed in
- sceneId is the Ad Scene ID, which is nil by default.
#
3. Register TradPlusADNativeDelegate 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 ReferenceReference: TradPlusAdNativeViewController