Language

AdSelectionFromOutcomesConfig.Builder.SetSelectionLogicUri(Uri) Method

Definition

Sets the SelectionLogicUri.

[Android.Runtime.Register("setSelectionLogicUri", "(Landroid/net/Uri;)Landroid/adservices/adselection/AdSelectionFromOutcomesConfig$Builder;", "", ApiSince=35)]
public Android.AdServices.AdSelection.AdSelectionFromOutcomesConfig.Builder SetSelectionLogicUri(Android.Net.Uri selectionLogicUri);
[<Android.Runtime.Register("setSelectionLogicUri", "(Landroid/net/Uri;)Landroid/adservices/adselection/AdSelectionFromOutcomesConfig$Builder;", "", ApiSince=35)>]
member this.SetSelectionLogicUri : Android.Net.Uri -> Android.AdServices.AdSelection.AdSelectionFromOutcomesConfig.Builder

Parameters

selectionLogicUri
Uri

Returns

Attributes

Remarks

Sets the SelectionLogicUri. Selection URI could be either of the two schemas: HTTPS: HTTPS URIs have to be absolute URIs where the host matches the seller; Ad Selection Prebuilt: Ad Selection Service URIs follow ad-selection-prebuilt://ad-selection-from-outcomes/<name>?<script-generation-parameters> format. FLEDGE generates the appropriate JS script without the need for a network call. Available prebuilt scripts:; waterfall-mediation-truncation for selectOutcome: This JS implements Waterfall mediation truncation logic. Mediation SDK's ad is returned if its bid greater than or equal to the bid floor. Below parameter(s) are required to use this prebuilt:; bidFloor: Key of the bid floor value passed in the AdSelectionFromOutcomesConfig.getSelectionSignals() that will be compared against mediation SDK's winner ad.

Ex. If your selection signals look like {"bid_floor": 10} then, ad-selection-prebuilt://ad-selection-from-outcomes/waterfall-mediation-truncation/?bidFloor=bid_floor AdSelectionIds and SelectionSignals.

Android reference for android.adservices.adselection.AdSelectionFromOutcomesConfig.Builder.setSelectionLogicUri.

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