ReportEventRequest.Key Property

Definition

Returns the event key, the type of ad event to be reported.

public virtual string Key { [Android.Runtime.Register("getKey", "()Ljava/lang/String;", "GetGetKeyHandler", ApiSince=35)] get; }
[<get: Android.Runtime.Register("getKey", "()Ljava/lang/String;", "GetGetKeyHandler", ApiSince=35)>]
member this.Key : string

Property Value

Attributes

Remarks

Returns the event key, the type of ad event to be reported.

This field will be used to fetch the reportingUri associated with the eventKey registered in registerAdBeacon after ad selection.

This field should be an exact match to the eventKey registered in registerAdBeacon. Specific details about registerAdBeacon can be found at the documentation of AdSelectionManager#reportImpression

The event key (when inspecting its byte array with String#getBytes()) in UTF-8 format should not exceed 40 bytes. Any key exceeding this limit will not be registered during the registerAdBeacon call.

Java documentation for android.adservices.adselection.ReportEventRequest.getKey().

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