Language

AdSelectionManager.PersistAdSelectionResult メソッド

定義

サーバー側から広告の選択結果を保持します。

[Android.Runtime.Register("persistAdSelectionResult", "(Landroid/adservices/adselection/PersistAdSelectionResultRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetPersistAdSelectionResult_Landroid_adservices_adselection_PersistAdSelectionResultRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=35)]
public virtual void PersistAdSelectionResult(Android.AdServices.AdSelection.PersistAdSelectionResultRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver receiver);
[<Android.Runtime.Register("persistAdSelectionResult", "(Landroid/adservices/adselection/PersistAdSelectionResultRequest;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "GetPersistAdSelectionResult_Landroid_adservices_adselection_PersistAdSelectionResultRequest_Ljava_util_concurrent_Executor_Landroid_os_OutcomeReceiver_Handler", ApiSince=35)>]
abstract member PersistAdSelectionResult : Android.AdServices.AdSelection.PersistAdSelectionResultRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit
override this.PersistAdSelectionResult : Android.AdServices.AdSelection.PersistAdSelectionResultRequest * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

パラメーター

executor
IExecutor

この値は null にすることはできません。 コールバック イベントとリスナー イベントは、この Executor を介してディスパッチされるため、使用するスレッドを簡単に制御できます。 アプリケーションのメイン スレッドを介してイベントをディスパッチするには、Context.getMainExecutor() を使用できます。 それ以外の場合は、適切なスレッドにディスパッチする Executor を指定します。

receiver
IOutcomeReceiver
属性

注釈

サーバー側から広告の選択結果を保持します。 詳細については、入札およびオークションサービスの説明を参照してください

サーバー側で広告選択を実行する暗号化された BLOB を生成する方法については、 AdSelectionManager#getAdSelectionData を参照してください。

出力は受信側によって渡されます。これは、正常な実行の AdSelectionOutcome を返すか、 Exception にスローされた例外の種類と対応するエラー メッセージが含まれます。 AdSelectionOutcome#getAdSelectionId()は、PersistAdSelectionResultRequest#getAdSelectionDataId()または非推奨のPersistAdSelectionResultRequest#getAdSelectionId()と同じであるとは限りません。

IllegalArgumentExceptionがスローされた場合は、API が受け取った無効な入力引数が広告選択を実行したことが原因で発生します。

"AdSelection サービスのエラー" というエラー メッセージが表示された IllegalStateException がスローされた場合は、広告選択サービスの内部エラーが原因で発生します。

TimeoutExceptionがスローされた場合、入札、スコア付け、または全体的な選択プロセス中にタイムアウトが発生して、獲得した広告が見つかると発生します。

LimitExceededExceptionがスローされた場合、呼び出し元パッケージが許容レート制限を超え、調整されたときに発生します。

SecurityExceptionがスローされた場合、呼び出し元が承認されていないか、アクセス許可が要求されていないときに発生します。

Javaドキュメント。

android.adservices.adselection.AdSelectionManager.persistAdSelectionResultの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象