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: Called when a placement request is sent successfully
- requestDidFail:error: Called when an error occurs while sending the placement request
- contentIsReady: Called when content for a placement is loaded and ready to display
- contentDidAppear: Called when placement content did appear
- contentDidDisappear: Called when placement content did disappear
- placement:didRequestPurchase:productId: Called when the user has successfully completed a purchase request
- placement:didRequestReward:itemId:quantity:(int)quantity: Called when the user successfully requests a reward
– 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 |
|
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 |
|
quantity |
|
Discussion
Callback issued by TJ to publisher when the user has successfully requests a reward
Declared In
TJPlacement.h