共用方式為


ReportImpressionRequest Constructors

Definition

Overloads

ReportImpressionRequest(Int64)

Ctor for auction server ad selection reporting request.

ReportImpressionRequest(Int64, AdSelectionConfig)

Ctor for on-device ad selection reporting request.

ReportImpressionRequest(IntPtr, JniHandleOwnership)

ReportImpressionRequest(Int64)

Ctor for auction server ad selection reporting request.

[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

Parameters

adSelectionId
Int64

received from AdSelectionManager#getAdSelectionData

Attributes

Remarks

Ctor for auction server ad selection reporting request.

If your adSelectionId is for a server auction run where device info collected by AdSelectionManager#getAdSelectionData then your impression reporting request should only include the ad selection id.

AdSelectionManager#persistAdSelectionResult must be called with the encrypted result blob from servers before making impression reporting request.

Java documentation for android.adservices.adselection.ReportImpressionRequest.ReportImpressionRequest(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReportImpressionRequest(Int64, AdSelectionConfig)

Ctor for on-device ad selection reporting request.

[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

Parameters

adSelectionId
Int64

received from AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver)

adSelectionConfig
AdSelectionConfig

same AdSelectionConfig used to trigger AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver)

Attributes

Remarks

Ctor for on-device ad selection reporting request.

If your adSelectionId is for a on-device auction run using AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver) then your impression reporting request must include your AdSelectionConfig.

Java documentation for android.adservices.adselection.ReportImpressionRequest.ReportImpressionRequest(long, android.adservices.adselection.AdSelectionConfig).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to

ReportImpressionRequest(IntPtr, JniHandleOwnership)

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

Parameters

javaReference
IntPtr

nativeint

Applies to