Skip to content

Commit

Permalink
v: 2.8.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
can-soykarafakili committed Nov 8, 2021
1 parent 53559d2 commit 57b0035
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 13 deletions.
6 changes: 3 additions & 3 deletions GoogleMobileAds-HyBid-Adapters.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "GoogleMobileAds-HyBid-Adapters"
spec.version = "2.7.1.0"
spec.version = "2.8.0.0"
spec.summary = "HyBid iOS SDK Adapters (Header Bidding & Mediation) for Google Mobile Ads"
spec.description = <<-DESC
Supported ad formats:
Expand Down Expand Up @@ -35,14 +35,14 @@ Pod::Spec.new do |spec|

spec.authors = { "Can Soykarafakili" => "can.soykarafakili@pubnative.net", "Eros Garcia Ponte" => "eros.ponte@pubnative.net", "Fares Benhamouda" => "fares.benhamouda@pubnative.net", "Orkhan Alizada" => "orkhan.alizada@pubnative.net" }
spec.platform = :ios, '10.0'
spec.source = { :git => "https://github.com/pubnative/googleMobileAds-hybid-adapters-ios.git", :tag => "2.7.1.0" }
spec.source = { :git => "https://github.com/pubnative/googleMobileAds-hybid-adapters-ios.git", :tag => "2.8.0.0" }

spec.source_files = 'GoogleMobileAdsAdapters/**/*.{swift,h,m}'
spec.static_framework = true

spec.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 arm64e armv7 armv7s', 'EXCLUDED_ARCHS[sdk=iphoneos*]' => 'i386 x86_64' }
spec.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64 arm64e armv7 armv7s', 'EXCLUDED_ARCHS[sdk=iphoneos*]' => 'i386 x86_64' }

spec.dependency 'HyBid', '2.7.1'
spec.dependency 'HyBid', '2.8.0'
spec.dependency 'Google-Mobile-Ads-SDK', '~> 8.0'
end
3 changes: 2 additions & 1 deletion GoogleMobileAdsAdapters/GAD/HyBidGADBannerCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,12 @@ - (void)adView:(HyBidAdView *)adView didFailWithError:(NSError *)error {
}

- (void)adViewDidTrackImpression:(HyBidAdView *)adView {

}

- (void)adViewDidTrackClick:(HyBidAdView *)adView {
[self.delegate customEventBannerWasClicked:self];
[self.delegate customEventBannerWillLeaveApplication:self];
}

@end
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ - (void)requestInterstitialAdWithParameter:(NSString * _Nullable)serverParameter
[self invokeFailWithMessage:@"The provided app token doesn't match the one used to initialise HyBid."];
return;
}

} else {
[self invokeFailWithMessage:@"Failed interstitial ad fetch. Missing required server extras."];
return;
Expand Down Expand Up @@ -82,6 +82,7 @@ - (void)interstitialDidFailWithError:(NSError *)error {

- (void)interstitialDidTrackClick {
[self.delegate customEventInterstitialWasClicked:self];
[self.delegate customEventInterstitialWillLeaveApplication:self];
}

- (void)interstitialDidTrackImpression {
Expand Down
10 changes: 5 additions & 5 deletions GoogleMobileAdsAdapters/GAD/HyBidGADRewardedCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ - (void)rewardedDidTrackImpression {

#pragma mark - GADMediationAdapter

// v: 2.7.1
// v: 2.8.0
+ (GADVersionNumber)adSDKVersion {
GADVersionNumber version = {0};
version.majorVersion = 2;
version.minorVersion = 7;
version.patchVersion = 1;
version.minorVersion = 8;
version.patchVersion = 0;
return version;
}

+ (GADVersionNumber)adapterVersion {
GADVersionNumber version = {0};
version.majorVersion = 2;
version.minorVersion = 7;
version.patchVersion = 1;
version.minorVersion = 8;
version.patchVersion = 0;
return version;
}

Expand Down
3 changes: 2 additions & 1 deletion GoogleMobileAdsAdapters/GAM/HyBidGAMBannerCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ - (void)requestBannerAd:(GADAdSize)adSize
} else {
[self.adPresenter load];
}

} else {
[self invokeFailWithMessage:@"Failed banner ad fetch. Missing required server extras."];
return;
Expand All @@ -85,6 +85,7 @@ - (void)adPresenter:(HyBidAdPresenter *)adPresenter didFailWithError:(NSError *)

- (void)adPresenterDidClick:(HyBidAdPresenter *)adPresenter {
[self.delegate customEventBannerWasClicked:self];
[self.delegate customEventBannerWillLeaveApplication:self];
}

@end
9 changes: 7 additions & 2 deletions GoogleMobileAdsAdapters/GAM/HyBidGAMInterstitialCustomEvent.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,11 @@ - (void)requestInterstitialAdWithParameter:(NSString * _Nullable)serverParameter
return;
}
self.interstitalPresenterFactory = [[HyBidInterstitialPresenterFactory alloc] init];
self.interstitialPresenter = [self.interstitalPresenterFactory createInterstitalPresenterWithAd:self.ad withSkipOffset:[HyBidSettings sharedInstance].skipOffset withCloseOnFinish:[HyBidSettings sharedInstance].closeOnFinish withDelegate:self];
self.interstitialPresenter = [self.interstitalPresenterFactory createInterstitalPresenterWithAd:self.ad
withVideoSkipOffset:[HyBidSettings sharedInstance].videoSkipOffset
withHTMLSkipOffset:[HyBidSettings sharedInstance].htmlSkipOffset
withCloseOnFinish:[HyBidSettings sharedInstance].closeOnFinish
withDelegate:self];
if (!self.interstitialPresenter) {
[self invokeFailWithMessage:@"Could not create valid interstitial presenter."];
return;
Expand Down Expand Up @@ -85,11 +89,12 @@ - (void)interstitialPresenterDidLoad:(HyBidInterstitialPresenter *)interstitialP
}

- (void)interstitialPresenterDidShow:(HyBidInterstitialPresenter *)interstitialPresenter {

}

- (void)interstitialPresenterDidClick:(HyBidInterstitialPresenter *)interstitialPresenter {
[self.delegate customEventInterstitialWasClicked:self];
[self.delegate customEventInterstitialWillLeaveApplication:self];
}

- (void)interstitialPresenterDidDismiss:(HyBidInterstitialPresenter *)interstitialPresenter {
Expand Down

0 comments on commit 57b0035

Please sign in to comment.