public class ServerSideVerificationOptions

  1. Object
  2. ServerSideVerificationOptions

Options for server side verification (SSV) of rewarded ads. When set on a RewardedAd or RewardedInterstitialAd before it is shown, the ad network posts a signed callback to your server so the reward can be granted securely rather than trusting the client.

The customData and userId are forwarded verbatim to your verification endpoint, letting you correlate the callback with the user and context.

Constructors

public ServerSideVerificationOptions(String userId, String customData)Creates a new set of server side verification options.

Methods

public String getUserId()The user identifier forwarded to the verification callback, may be null.
public String getCustomData()An opaque string forwarded to the verification callback, may be null.

Inherited methods

Constructor details

ServerSideVerificationOptions

public ServerSideVerificationOptions(String userId, String customData)
Creates a new set of server side verification options.

Parameters

userId String
the user identifier forwarded to the verification callback, may be null
customData String
an opaque string forwarded to the verification callback, may be null

Method details

getUserId

public String getUserId()
The user identifier forwarded to the verification callback, may be null.

getCustomData

public String getCustomData()
An opaque string forwarded to the verification callback, may be null.