InterstitialAd.RequestAd(AdType, String, String) 方法

定義

從伺服器要求插播式廣告。

public:
 void RequestAd(AdType adType, Platform::String ^ applicationId, Platform::String ^ adUnitId);
void RequestAd(AdType adType, winrt::hstring const & applicationId, winrt::hstring const & adUnitId);
[Windows.Foundation.Metadata.Overload("RequestAd1")]
public void RequestAd(AdType adType, string applicationId, string adUnitId);
function requestAd(adType, applicationId, adUnitId)
Public Sub RequestAd (adType As AdType, applicationId As String, adUnitId As String)

參數

adType
AdType

值,指定要要求 (影片或橫幅) 的插播式廣告類型。

applicationId
System.String

應用程式的應用程式識別碼。 此值可在合作夥伴中心取得。

adUnitId
System.String

合作夥伴中心的廣告單位識別碼值。

屬性

備註

當要求成功完成時,就會引發 AdReady 事件。 在呼叫 Show 方法之前,不會顯示插播式廣告。 如果顯示廣告時發生問題,就會引發 ErrorOccurred 事件。

適用於

另請參閱