public static void loadAd(string placement) { if (sdk != null) { sdk.LoadAd(placement); } }
public void LoadAd(string placementId) { InvokeSafelyOnUIThreadAsync(delegate { if (sdk != null) { sdk.LoadAd(placementId); } }); }
public ADPage() { this.InitializeComponent(); sdkInstance = AdFactory.GetInstance(appID, interst); //为广告位置加载广告 sdkInstance.LoadAd(interst); //广告状态改变后事件 sdkInstance.OnAdPlayableChanged += SdkInstance_OnAdPlayableChanged; sdkInstance.OnAdEnd += SdkInstance_OnAdEnd; sdkInstance.OnInitCompleted += SdkInstance_OnInitCompleted; }
private void LoadPlacementA(object sender, RoutedEventArgs e) { Debug.WriteLine($"Loading Placement A: {plcA}"); inmobiProvider.LoadAd(plcA); }
private void LoadPlacement2_Click(Object sender, RoutedEventArgs e) { //Load ad for placement2 sdkInstance.LoadAd(placement2); }
public void LoadAd(string placementID) { m_vungle.LoadAd(placementID); }