Class ServerSideVerificationOptions

java.lang.Object
com.codename1.ads.ServerSideVerificationOptions

public class ServerSideVerificationOptions extends java.lang.Object

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.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Creates a new set of server side verification options.
  • Method Summary

    Modifier and Type
    Method
    Description
    An opaque string forwarded to the verification callback, may be null.
    The user identifier forwarded to the verification callback, may be null.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ServerSideVerificationOptions

      public ServerSideVerificationOptions(String userId, String customData)

      Creates a new set of server side verification options.

      Parameters
      • userId: the user identifier forwarded to the verification callback, may be null
      • customData: 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.