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( |
long
|
getAdSelectionId()
adSelectionId( |
継承されるメソッド | |
|---|---|
パブリック コンストラクタ
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。
adSelectionId がサーバー オークション用のものであり、そこでデバイス情報が収集される場合、
AdSelectionManager#getAdSelectionDataの場合、インプレッション レポートのリクエストは
広告選択 ID のみを含めることができます。
AdSelectionManager#persistAdSelectionResult は、暗号化された状態で呼び出す必要があります。
結果 blob を返します。
| パラメータ | |
|---|---|
adSelectionId |
long: AdSelectionManager#getAdSelectionData から受信 |
パブリック メソッド
getAdSelectionConfig
public AdSelectionConfig getAdSelectionConfig ()
adSelectionConfig(ReportImpressionRequest への入力の 1 つ)を返します。
| 戻り値 | |
|---|---|
AdSelectionConfig |
この値が null になることはありません。 |
getAdSelectionId
public long getAdSelectionId ()
adSelectionId(ReportImpressionRequest への入力の 1 つ)を返します。
| 戻り値 | |
|---|---|
long |
|