Skip to content

Commit

Permalink
UnityAds- 3.7.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dravyan committed May 11, 2021
1 parent bf759e1 commit c1e31d0
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions UnityAds/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@

## Changelog
* 3.7.1.2
* Add `fullscreenAdAdapterAdWillPresent` and `fullscreenAdAdapterAdDidPresent` to notify publishers of the fullscreen ad show event. Remove `fullscreenAdAdapterAdWillAppear` and `fullscreenAdAdapterAdDidAppear` as they are now deprecated by the MoPub iOS SDK.
* Publishers must use v5.17.0 of the MoPub SDK at the minimum.

* 3.7.1.1
* Remove deprecated usage of Rewarded Video APIs.

Expand Down
2 changes: 1 addition & 1 deletion UnityAds/UnityAdsAdapterConfiguration.m
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#endif

//Adapter version
NSString *const ADAPTER_VERSION = @"3.7.1.1";
NSString *const ADAPTER_VERSION = @"3.7.1.2";

// Initialization configuration keys
static NSString * const kUnityAdsGameId = @"gameId";
Expand Down
4 changes: 2 additions & 2 deletions UnityAds/UnityAdsInterstitialCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ - (void)unityAdsAdFailedToLoad:(nonnull NSString *)placementId withError:(UnityA
#pragma mark - UnityAdsShowDelegate Methods

- (void)unityAdsShowStart:(nonnull NSString *)placementId {
[self.delegate fullscreenAdAdapterAdWillAppear:self];
[self.delegate fullscreenAdAdapterAdWillPresent:self];
MPLogAdEvent([MPLogEvent adWillAppearForAdapter:NSStringFromClass(self.class)], placementId);
MPLogAdEvent([MPLogEvent adShowSuccessForAdapter:NSStringFromClass(self.class)], placementId);

[self.delegate fullscreenAdAdapterAdDidAppear:self];
[self.delegate fullscreenAdAdapterAdDidPresent:self];
[self.delegate fullscreenAdAdapterDidTrackImpression:self];
MPLogAdEvent([MPLogEvent adDidAppearForAdapter:NSStringFromClass(self.class)], placementId);
}
Expand Down
4 changes: 2 additions & 2 deletions UnityAds/UnityAdsRewardedVideoCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -135,10 +135,10 @@ - (void)unityAdsAdFailedToLoad:(nonnull NSString *)placementId withError:(UnityA
#pragma mark - UnityAdsShowDelegate Methods

- (void)unityAdsShowStart:(nonnull NSString *)placementId {
[self.delegate fullscreenAdAdapterAdWillAppear:self];
MPLogAdEvent([MPLogEvent adWillAppearForAdapter:NSStringFromClass(self.class)], placementId);
[self.delegate fullscreenAdAdapterAdWillPresent:self];

[self.delegate fullscreenAdAdapterAdDidAppear:self];
[self.delegate fullscreenAdAdapterAdDidPresent:self];
[self.delegate fullscreenAdAdapterDidTrackImpression:self];
MPLogAdEvent([MPLogEvent adShowSuccessForAdapter:NSStringFromClass(self.class)], placementId);
MPLogAdEvent([MPLogEvent adDidAppearForAdapter:NSStringFromClass(self.class)], placementId);
Expand Down

0 comments on commit c1e31d0

Please sign in to comment.