AdData.Metadata Property

Definition

Gets the buyer ad metadata used during the ad selection process.

public string Metadata { [Android.Runtime.Register("getMetadata", "()Ljava/lang/String;", "", ApiSince=34)] get; }
[<get: Android.Runtime.Register("getMetadata", "()Ljava/lang/String;", "", ApiSince=34)>]
member this.Metadata : string

Property Value

Attributes

Remarks

Gets the buyer ad metadata used during the ad selection process.

The metadata should be a valid JSON object serialized as a string. Metadata represents ad-specific bidding information that will be used during ad selection as part of bid generation and used in buyer JavaScript logic, which is executed in an isolated execution environment.

If the metadata is not a valid JSON object that can be consumed by the buyer's JS, the ad will not be eligible for ad selection.

Java documentation for android.adservices.common.AdData.getMetadata().

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