TJPlacementDelegate Protocol Reference

Conforms to NSObject
Declared in TJPlacement.h

Overview

The Tapjoy placement Delegate protocol. Adopt this protocol in order to handle responses that send are received upon sending a TJPlacement.

The methods to prepare are:

– requestDidSucceed:

Callback issued by TJ to publisher to state that placement request is successful

- (void)requestDidSucceed:(TJPlacement *)placement

Parameters

placement

The TJPlacement that was sent

Discussion

Callback issued by TJ to publisher to state that placement request is successful

Declared In

TJPlacement.h

– requestDidFail:error:

Called when an error occurs while sending the placement

- (void)requestDidFail:(TJPlacement *)placement error:(nullable NSError *)error

Parameters

placement

The TJPlacement that was sent @error error code

Discussion

Called when an error occurs while sending the placement

Declared In

TJPlacement.h

– contentIsReady:

Called when content for an placement is successfully cached

- (void)contentIsReady:(TJPlacement *)placement

Parameters

placement

The TJPlacement that was sent

Discussion

Called when content for an placement is successfully cached

Declared In

TJPlacement.h

– contentDidAppear:

Called when placement content did appear

- (void)contentDidAppear:(TJPlacement *)placement

Parameters

placement

The TJPlacement that was sent

Discussion

Called when placement content did appear

Declared In

TJPlacement.h

– contentDidDisappear:

Called when placement content did disappear

- (void)contentDidDisappear:(TJPlacement *)placement

Parameters

placement

The TJPlacement that was sent

Discussion

Called when placement content did disappear

Declared In

TJPlacement.h

– didClick:

Deprecated since 14.2.0 Called when a click event has occurred

- (void)didClick:(TJPlacement *)placement

Parameters

placement

The TJPlacement that was sent

Discussion

Deprecated since 14.2.0 Called when a click event has occurred

Declared In

TJPlacement.h

– placement:didRequestPurchase:productId:

Callback issued by TJ to publisher when the user has successfully completed a purchase request

- (void)placement:(TJPlacement *)placement didRequestPurchase:(nullable TJActionRequest *)request productId:(nullable NSString *)productId

Parameters

request
productId
  • the id of the offer that sent the request

Discussion

Callback issued by TJ to publisher when the user has successfully completed a purchase request

Declared In

TJPlacement.h

– placement:didRequestReward:itemId:quantity:

Callback issued by TJ to publisher when the user has successfully requests a reward

- (void)placement:(TJPlacement *)placement didRequestReward:(nullable TJActionRequest *)request itemId:(nullable NSString *)itemId quantity:(int)quantity

Parameters

placement
request
itemId
  • The itemId for whose reward has been requested
quantity
  • The quantity of the reward for the requested itemId

Discussion

Callback issued by TJ to publisher when the user has successfully requests a reward

Declared In

TJPlacement.h