ReportImpressionRequest

public class ReportImpressionRequest
extends Object

java.lang.Object
   ↳ android.adservices.adselection.ReportImpressionRequest


reportImpression API の入力パラメータを表します。

まとめ

パブリック コンストラクタ

ReportImpressionRequest(long adSelectionId, AdSelectionConfig adSelectionConfig)

デバイス上の広告選択レポート リクエストの Ctor。

ReportImpressionRequest(long adSelectionId)

オークション サーバーの広告選択レポート リクエストの Ctor。

パブリック メソッド

AdSelectionConfig getAdSelectionConfig()

adSelectionConfig(ReportImpressionRequest への入力の 1 つ)を返します。

long getAdSelectionId()

adSelectionId(ReportImpressionRequest への入力の 1 つ)を返します。

継承されるメソッド

パブリック コンストラクタ

ReportImpressionRequest

public ReportImpressionRequest (long adSelectionId, 
                AdSelectionConfig adSelectionConfig)

デバイス上の広告選択レポート リクエストの Ctor。

adSelectionId が、AdSelectionManager.selectAds(android.adservices.adselection.AdSelectionConfig, java.util.concurrent.Executor, android.os.OutcomeReceiver) を使用したデバイス上のオークションを実施する場合、インプレッション レポート リクエストに AdSelectionConfig を含める必要があります。

パラメータ
adSelectionId long: AdSelectionManager#selectAds(AdSelectionConfig, Executor, OutcomeReceiver)から受信

adSelectionConfig AdSelectionConfig: AdSelectionManager.selectAds(android.adservices.adselection.AdSelectionConfig, java.util.concurrent.Executor, android.os.OutcomeReceiver) のトリガーに使用したのと同じ AdSelectionConfig。この値が null になることはありません。

ReportImpressionRequest

public ReportImpressionRequest (long adSelectionId)

オークション サーバーの広告選択レポート リクエストの Ctor です。

AdSelectionManager#getAdSelectionData によって収集されるデバイス情報を使用するサーバー オークションの adSelectionId の場合、インプレッション レポート リクエストには広告選択 ID のみを含める必要があります。

インプレッション レポート リクエストを行う前に、サーバーから暗号化された結果 blob を使用して AdSelectionManager#persistAdSelectionResult を呼び出す必要があります。

パラメータ
adSelectionId long: AdSelectionManager#getAdSelectionDataから受信

パブリック メソッド

getAdSelectionConfig

public AdSelectionConfig getAdSelectionConfig ()

adSelectionConfig(ReportImpressionRequest への入力の 1 つ)を返します。

戻り値
AdSelectionConfig この値が null になることはありません。

getAdSelectionId

public long getAdSelectionId ()

adSelectionId(ReportImpressionRequest への入力の 1 つ)を返します。

戻り値
long