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

TJPlacement

that was sent

Return Value

n/a

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:(NSError *)error

Parameters

placement

The TJPlacement that was sent @error error code

Return Value

n/a

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

Return Value

n/a

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

Return Value

n/a

Discussion

Called when placement content did disappear

Declared In

TJPlacement.h

– didClick:

Called when a click event has occurred

- (void)didClick:(TJPlacement *)placement

Parameters

placement

The TJPlacement that was sent

Return Value

n/a

Discussion

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:(TJActionRequest *)request productId:(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:(TJActionRequest *)request itemId:(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