Help Center/Details/

AdLoadManager

Before loading Pangle ads, you should create an adLoadManager object called AdNative and AdSlot object.

Create AdNative Object

The AdNative object is the interface to access the entire SDK and can be used for ad acquisition.

//Must be called after sdk initialization
this.adNative = SDK.CreateAdNative();

Create AdSlot Object

The AdSlot object is the ad information that needs to be set when ADNative loads the ad.

AdSlot adSlot = new AdSlot.Builder()
    .setCodeId(“your placement id")  
    .build();


Reference

AdNative Constructions

public sealed class AdNative
    {
        /// <summary>
        /// Load the Native Ad.
        /// </summary>
        public void LoadFeedAd(AdSlot adSlot, IFeedAdListener listener)
        {
        }

        /// <summary>
        /// Load Vertical In-feed Video Ad
        /// </summary>
        public void LoadDrawFeedAd(AdSlot adSlot, IDrawFeedAdListener listener)
        {
        }

        /// <summary>
        /// Load Native Ads, currently supports native banner, native banner.
        /// </summary>
        public void LoadNativeAd(AdSlot adSlot, INativeAdListener listener)
        {
        }

        /// <summary>
        /// Load the template banner ad.
        /// </summary>
        public void LoadBannerAd(AdSlot adSlot, IBannerAdListener listener)
        {
        }

        /// <summary>
        /// Load template interstitial ads
        /// </summary>
        public void LoadInteractionAd(
            AdSlot adSlot, IInteractionAdListener listener)
        {
        }
        /// <summary>
        /// Load rewarded video ad
        /// </summary>
        public void LoadRewardVideoAd(
            AdSlot adSlot, IRewardVideoAdListener listener)
        {
        }

        /// <summary>
        /// Load full-screen video ad
        /// </summary>
        public void LoadFullScreenVideoAd(
            AdSlot adSlot, IFullScreenVideoAdListener listener)
        {
        }
    }

AdSlot Constructions

    .setCodeId(“your placement id")  
    .setUserID("may used for server side verification")
    //TTAdConstant.HORIZONTAL or TTAdConstant.VERTICAL
    .setOrientation(orientation)
    .setMediaExtra("media_extra")
Did the content solve your problem?