Skip to content

Commit

Permalink
feat: disable parallel test execution & run trackers only for banner ads
Browse files Browse the repository at this point in the history
  • Loading branch information
OlenaPostindustria committed Nov 13, 2024
1 parent 0cd4f8f commit 4058adf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@
</MacroExpansion>
<Testables>
<TestableReference
skipped = "NO">
skipped = "NO"
parallelizable = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "60D792FA217E229B0080F428"
Expand Down
4 changes: 2 additions & 2 deletions PrebidMobile/AdUnits/AdUnit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -175,15 +175,15 @@ public class AdUnit: NSObject, DispatcherDelegate {
}

DispatchQueue.main.async {
if let adView {
if let adView, bidResponse.winningBid?.adFormat == .banner {
self.bannerViewImpressionTracker.start(
in: adView,
trackingURL: bidResponse.winningBid?.bid.burl,
creativeCacheID: bidResponse.winningBid?.targetingInfo?["hb_cache_id"]
)
}

if self.adUnitConfig.adConfiguration.isInterstitialAd {
if self.adUnitConfig.adConfiguration.isInterstitialAd && bidResponse.winningBid?.adFormat == .banner {
self.interstitialImpressionTracker.start(
withTrackingURL: bidResponse.winningBid?.bid.burl,
creativeCacheID: bidResponse.winningBid?.targetingInfo?["hb_cache_id"]
Expand Down

0 comments on commit 4058adf

Please sign in to comment.