# Deprecated API

## Contents

- Interfaces
- Fields
- Methods
- Constructors

- Deprecated Interfaces
  Interface
  Description
  com.tapjoy.TJActionRequest
  Deprecated since 14.5.0 Interface definition for a request of action to be performed.

- Deprecated Fields
  Field
  Description
  com.tapjoy.TapjoyConnectFlag.DISABLE_PERSISTENT_IDS
  This legacy flag was deprecated as of SDK 12.2.1, which added integration check for Android Advertising ID. To enable fallback use of persistent IDs for advertising where no Android Advertising ID exists, enable ALLOW_LEGACY_ID_FALLBACK.
  com.tapjoy.TapjoyConnectFlag.ENABLE_LOGGING
  Deprecated since 14.3.0 Enables or disables Tapjoy SDK logging. False by default. Same functionality as `Tapjoy.setDebugEnabled(boolean)`. Use "true" to enable logging or "false" to disable logging.

- Deprecated Methods
  Method
  Description
  com.tapjoy.Tapjoy.actionComplete(String)
  Deprecated since 14.1.0. Informs the Tapjoy server that the specified Pay-Per-Action was completed. Should be called whenever a user completes an in-game action.
  com.tapjoy.Tapjoy.getSupportURL()
  Deprecated since 14.2.0 Returns URL to Tapjoy support web page. This will use your default currency.
  com.tapjoy.Tapjoy.getSupportURL(String)
  Deprecated since 14.2.0 Returns URL to Tapjoy support web page for specified currency You can get your currencyId from the Tapjoy Dashboard under the currency section.
  com.tapjoy.Tapjoy.setActivity(Activity)
  Deprecated since 14.0.0 Sets the current activity
  com.tapjoy.Tapjoy.setDebugEnabled(boolean)
  Deprecated since 14.3.0 Enables or disables Tapjoy logging
  com.tapjoy.Tapjoy.setGLSurfaceView(GLSurfaceView)
  Deprecated since 14.0.0. Sets the GLSurfaceView to receive callbacks in the GL thread.
  com.tapjoy.Tapjoy.trackPurchase(String, String, double, String)
  Deprecated since 14.0.0 Tracks a purchase
  com.tapjoy.Tapjoy.trackPurchase(String, String, String, String)
  Deprecated since 14.0.0. Tracks a purchase with JSON data from the Google Play store. Also performs In-app Billing validation if purchaseData and dataSignature are given.
  com.tapjoy.TJPlacementListener.onClick(TJPlacement)
  Deprecated since 14.2.0 Called when a click event has occurred
  com.tapjoy.TJPlacementListener.onPurchaseRequest(TJPlacement, TJActionRequest, String)
  Deprecated since 14.5.0 Called when a purchase has been requested.
  com.tapjoy.TJPlacementListener.onRewardRequest(TJPlacement, TJActionRequest, String, int)
  Deprecated since 14.5.0 Called when a reward unlock has been requested.
  com.tapjoy.TJSetUserIDListener.onSetUserIDFailure(String)
  Deprecated since 13.4.0 Use `TJSetUserIDListener.onSetUserIDFailure(int, String)` instead. Callback when setUserID fails.

- Deprecated Constructors
  Constructor
  Description
  com.tapjoy.TJPlacement(Context, String, TJPlacementListener)
  Use {link TJPlacement(TJCorePlacement, TJPlacementListener)} instead. Creates a new `TJPlacement` object with the given name and `TJPlacementListener` listener.