AdSelectionSignals


class AdSelectionSignals


This class holds JSON that will be passed into a JavaScript function during ad selection. Its contents are not used by FLEDGE platform code, but are merely validated and then passed to the appropriate JavaScript ad selection function.

Summary

Public constructors

Public functions

open operator Boolean
equals(other: Any?)

Compares this AdSelectionSignals to the specified object.

open Int

Returns a hash code corresponding to the string representation of this class obtained by calling .toString.

open String

Public properties

String

Any valid JSON string to create the AdSelectionSignals with.

Public constructors

AdSelectionSignals

Added in 1.0.0
AdSelectionSignals(signals: String)
Parameters
signals: String

Any valid JSON string to create the AdSelectionSignals with.

Public functions

equals

open operator fun equals(other: Any?): Boolean

Compares this AdSelectionSignals to the specified object. The result is true if and only if the argument is not null and the signals property of the two objects are equal. Note that this method will not perform any JSON normalization so two AdSelectionSignals objects with the same JSON could be not equal if the String representations of the objects was not equal.

Parameters
other: Any?

The object to compare this AdSelectionSignals against

Returns
Boolean

true if the given object represents an AdSelectionSignals equivalent to this AdSelectionSignals, false otherwise

hashCode

open fun hashCode(): Int

Returns a hash code corresponding to the string representation of this class obtained by calling .toString. Note that this method will not perform any JSON normalization so two AdSelectionSignals objects with the same JSON could have different hash codes if the underlying string representation was different.

Returns
Int

a hash code value for this object.

toString

open fun toString(): String
Returns
String

The String form of the JSON wrapped by this class.

Public properties

signals

Added in 1.0.0
val signalsString

Any valid JSON string to create the AdSelectionSignals with.