語言

ReportImpressionRequest 建構函式

定義

多載

名稱 Description
ReportImpressionRequest(Int64)

Ctor,關於拍賣伺服器廣告選擇的舉報請求。

ReportImpressionRequest(Int64, AdSelectionConfig)

Ctor,用於裝置上廣告選擇的回報請求。

ReportImpressionRequest(IntPtr, JniHandleOwnership)

ReportImpressionRequest(Int64)

Ctor,關於拍賣伺服器廣告選擇的舉報請求。

[Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=35)]
public ReportImpressionRequest(long adSelectionId);
[<Android.Runtime.Register(".ctor", "(J)V", "", ApiSince=35)>]
new Android.AdServices.AdSelection.ReportImpressionRequest : int64 -> Android.AdServices.AdSelection.ReportImpressionRequest

參數

adSelectionId
Int64

收到自 AdSelectionManager#getAdSelectionData

屬性

備註

Ctor,關於拍賣伺服器廣告選擇的舉報請求。

如果你 adSelectionId 是伺服器拍賣,且裝置資訊由 AdSelectionManager#getAdSelectionData 那時收集,你的曝光回報請求應該只包含廣告選擇 ID。

AdSelectionManager#persistAdSelectionResult 必須先從伺服器呼叫加密結果 blob 後,才能發出印象報告請求。

Java 文件 android.adservices.adselection.ReportImpressionRequest.ReportImpressionRequest(long)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

ReportImpressionRequest(Int64, AdSelectionConfig)

Ctor,用於裝置上廣告選擇的回報請求。

[Android.Runtime.Register(".ctor", "(JLandroid/adservices/adselection/AdSelectionConfig;)V", "", ApiSince=34)]
public ReportImpressionRequest(long adSelectionId, Android.AdServices.AdSelection.AdSelectionConfig adSelectionConfig);
[<Android.Runtime.Register(".ctor", "(JLandroid/adservices/adselection/AdSelectionConfig;)V", "", ApiSince=34)>]
new Android.AdServices.AdSelection.ReportImpressionRequest : int64 * Android.AdServices.AdSelection.AdSelectionConfig -> Android.AdServices.AdSelection.ReportImpressionRequest

參數

adSelectionId
Int64

收到自 AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver)

adSelectionConfig
AdSelectionConfig

觸發時也是一樣 AdSelectionConfig 的 AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver)

屬性

備註

Ctor,用於裝置上廣告選擇的回報請求。

如果你 adSelectionId 是為了裝置上拍賣, AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver) 那麼你的曝光報告請求必須包含你的 AdSelectionConfig。

Java 文件 android.adservices.adselection.ReportImpressionRequest.ReportImpressionRequest(long, android.adservices.adselection.AdSelectionConfig)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

ReportImpressionRequest(IntPtr, JniHandleOwnership)

protected ReportImpressionRequest(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.AdServices.AdSelection.ReportImpressionRequest : nativeint * Android.Runtime.JniHandleOwnership -> Android.AdServices.AdSelection.ReportImpressionRequest

參數

javaReference
IntPtr

nativeint

適用於