ServerSideVerification class

Server-side verification options for (rewarded) ads with high-value rewards — echoed back in AdMob's server-to-server reward callback.

Attaching these only hands the payload to the SDK; a successful attach does not prove your backend received or verified any callback. For a valuable economy the SERVER must be the authority: when Google calls your SSV endpoint, verify the callback's signature and key_id against Google's keys, validate the user_id / ad unit / reward type/amount / custom_data, and process transaction_id idempotently (no replay / double-credit). Grant the reward from ONE place — either optimistically on the client (onReward) and reconcile after server validation, or only from the verified callback — never both. See developers.google.com/admob/flutter/ssv.

Constructors

ServerSideVerification({String? userId, String? customData})
Creates SSV options.
const

Properties

customData → String?
Opaque data echoed back in the SSV callback for your backend to validate (e.g. which mission/placement). Not proof of anything on its own.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
userId → String?
The user to credit in the SSV callback. Attaching it does not prove the backend validated anything — your endpoint must still verify the callback.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited