Chartboost/9.4.0.1
This commit is contained in:
Родитель
02ec4db28e
Коммит
387d5a9d2e
|
@ -2,7 +2,7 @@ Pod::Spec.new do |s|
|
|||
|
||||
s.authors = 'AppLovin Corporation'
|
||||
s.name = 'AppLovinMediationChartboostAdapter'
|
||||
s.version = '9.4.0.0'
|
||||
s.version = '9.4.0.1'
|
||||
s.platform = :ios, '11.0'
|
||||
s.summary = 'Chartboost adapter used for mediation with the AppLovin MAX SDK'
|
||||
s.homepage = "https://github.com/CocoaPods/Specs/search?o=desc&q=#{s.name}&s=indexed"
|
||||
|
@ -19,11 +19,9 @@ LICENSE
|
|||
}
|
||||
|
||||
s.source =
|
||||
{
|
||||
:http => "#{s.version}" =~ /beta/ ?
|
||||
"https://artifacts.applovin.com/ios/com/applovin/mediation/beta/chartboost-adapter/#{s.name}-#{s.version}.zip" :
|
||||
"https://artifacts.applovin.com/ios/com/applovin/mediation/chartboost-adapter/#{s.name}-#{s.version}.zip",
|
||||
:type => 'zip'
|
||||
{
|
||||
:http => "https://artifacts.applovin.com/ios/com/applovin/mediation/chartboost-adapter/#{s.name}-#{s.version}.zip",
|
||||
:type => 'zip'
|
||||
}
|
||||
|
||||
s.vendored_frameworks = "#{s.name}-#{s.version}/#{s.name}.xcframework"
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# Changelog
|
||||
|
||||
## 9.4.0.1
|
||||
* Use `didRecordImpression:` instead of `didShowAd:` for impression tracking.
|
||||
|
||||
## 9.4.0.0
|
||||
* Certified with Chartboost SDK 9.4.0.
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
#import "ALChartboostMediationAdapter.h"
|
||||
#import <ChartboostSDK/ChartboostSDK.h>
|
||||
|
||||
#define ADAPTER_VERSION @"9.4.0.0"
|
||||
#define ADAPTER_VERSION @"9.4.0.1"
|
||||
|
||||
@interface ALChartboostInterstitialDelegate : NSObject <CHBInterstitialDelegate>
|
||||
@property (nonatomic, weak) ALChartboostMediationAdapter *parentAdapter;
|
||||
|
@ -445,6 +445,20 @@ static MAAdapterInitializationStatus ALChartboostInitializationStatus = NSIntege
|
|||
else
|
||||
{
|
||||
[self.parentAdapter log: @"Interstitial shown: %@", event.ad.location];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)didRecordImpression:(CHBImpressionEvent *)event
|
||||
{
|
||||
[self.parentAdapter log: @"Interstitial impression tracked: %@", event.ad.location];
|
||||
|
||||
NSString *creativeID = event.adID;
|
||||
if ( [creativeID al_isValidString] )
|
||||
{
|
||||
[self.delegate didDisplayInterstitialAdWithExtraInfo: @{@"creative_id" : creativeID}];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.delegate didDisplayInterstitialAd];
|
||||
}
|
||||
}
|
||||
|
@ -535,11 +549,25 @@ static MAAdapterInitializationStatus ALChartboostInitializationStatus = NSIntege
|
|||
{
|
||||
[self.parentAdapter log: @"Rewarded shown: %@", event.ad.location];
|
||||
|
||||
[self.delegate didDisplayRewardedAd];
|
||||
[self.delegate didStartRewardedAdVideo];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)didRecordImpression:(CHBImpressionEvent *)event
|
||||
{
|
||||
[self.parentAdapter log: @"Rewarded impression tracked: %@", event.ad.location];
|
||||
|
||||
NSString *creativeID = event.adID;
|
||||
if ( [creativeID al_isValidString] )
|
||||
{
|
||||
[self.delegate didDisplayRewardedAdWithExtraInfo: @{@"creative_id" : creativeID}];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.delegate didDisplayRewardedAd];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)didClickAd:(CHBClickEvent *)event error:(CHBClickError *)error
|
||||
{
|
||||
if ( error )
|
||||
|
@ -650,6 +678,20 @@ static MAAdapterInitializationStatus ALChartboostInitializationStatus = NSIntege
|
|||
else
|
||||
{
|
||||
[self.parentAdapter log: @"%@ ad shown: %@", self.adFormat.label, event.ad.location];
|
||||
}
|
||||
}
|
||||
|
||||
- (void)didRecordImpression:(CHBImpressionEvent *)event
|
||||
{
|
||||
[self.parentAdapter log: @"%@ ad impression tracked: %@", self.adFormat.label, event.ad.location];
|
||||
|
||||
NSString *creativeID = event.adID;
|
||||
if ( [creativeID al_isValidString] )
|
||||
{
|
||||
[self.delegate didDisplayAdViewAdWithExtraInfo: @{@"creative_id" : creativeID}];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self.delegate didDisplayAdViewAd];
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче