Skip to content

Commit

Permalink
Tapjoy - 12.7.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
dravyan committed Feb 23, 2021
1 parent 17ec3a4 commit 5561e8b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
3 changes: 3 additions & 0 deletions Tapjoy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
## Changelog
* 12.7.1.3
* Add support for `fullscreenAdAdapterAdWillDismiss` when a fullscreen creative is about to close. Publishers must use v5.16.1 of the MoPub SDK at the minimum.

* 12.7.1.2
* Replace imports using `MoPubSDKFramework` with `MoPubSDK`. No external impacts to publishers.

Expand Down
2 changes: 1 addition & 1 deletion Tapjoy/TapjoyAdapterConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ + (void)updateInitializationParameters:(NSDictionary *)parameters {
#pragma mark - MPAdapterConfiguration

- (NSString *)adapterVersion {
return @"12.7.1.2";
return @"12.7.1.3";
}

- (NSString *)biddingToken {
Expand Down
8 changes: 2 additions & 6 deletions Tapjoy/TapjoyInterstitialCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,15 +156,11 @@ - (void)contentDidAppear:(TJPlacement *)placement {

- (void)contentDidDisappear:(TJPlacement *)placement {
MPLogAdEvent([MPLogEvent adWillDisappearForAdapter:NSStringFromClass(self.class)], self.placementName);
[self.delegate fullscreenAdAdapterAdWillDismiss:self];
[self.delegate fullscreenAdAdapterAdWillDisappear:self];
MPLogAdEvent([MPLogEvent adDidDisappearForAdapter:NSStringFromClass(self.class)], self.placementName);
[self.delegate fullscreenAdAdapterAdDidDisappear:self];

// Signal that the fullscreen ad is closing and the state should be reset.
// `fullscreenAdAdapterAdDidDismiss:` was introduced in MoPub SDK 5.15.0.
if ([self.delegate respondsToSelector:@selector(fullscreenAdAdapterAdDidDismiss:)]) {
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}

- (void)didClick:(TJPlacement*)placement
Expand Down
8 changes: 2 additions & 6 deletions Tapjoy/TapjoyRewardedVideoCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,15 +201,11 @@ - (void)contentDidAppear:(TJPlacement *)placement {
- (void)contentDidDisappear:(TJPlacement *)placement {
[Tapjoy setVideoAdDelegate:nil];
MPLogAdEvent([MPLogEvent adWillDisappearForAdapter:NSStringFromClass(self.class)], self.placementName);
[self.delegate fullscreenAdAdapterAdWillDismiss:self];
[self.delegate fullscreenAdAdapterAdWillDisappear:self];
MPLogAdEvent([MPLogEvent adDidDisappearForAdapter:NSStringFromClass(self.class)], self.placementName);
[self.delegate fullscreenAdAdapterAdDidDisappear:self];

// Signal that the fullscreen ad is closing and the state should be reset.
// `fullscreenAdAdapterAdDidDismiss:` was introduced in MoPub SDK 5.15.0.
if ([self.delegate respondsToSelector:@selector(fullscreenAdAdapterAdDidDismiss:)]) {
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}
[self.delegate fullscreenAdAdapterAdDidDismiss:self];
}

- (void)didClick:(TJPlacement*)placement
Expand Down

0 comments on commit 5561e8b

Please sign in to comment.