Skip to content

Commit

Permalink
Change config ids for multiformat ads in InternalTestApp (#861)
Browse files Browse the repository at this point in the history
* feat: change config ids for multiformat ads in InternalTestApp
  • Loading branch information
OlenaPostindustria authored Jun 12, 2023
1 parent 3490143 commit 036e0c6
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 29 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1048,9 +1048,8 @@ struct TestCaseManager {

let interstitialController = PrebidInterstitialController(rootController: adapterVC)

let prebidStoredAuctionResponses = ["response-prebid-display-interstitial-320-480", "response-prebid-video-interstitial-320-480"]
interstitialController.prebidConfigId = "prebid-demo-display-interstitial-320-480-random"
interstitialController.storedAuctionResponse = prebidStoredAuctionResponses.randomElement() ?? prebidStoredAuctionResponses[0]
let configIds = ["prebid-ita-display-interstitial-320-480", "prebid-ita-video-interstitial-320-480"]
interstitialController.prebidConfigId = configIds.randomElement()!

adapterVC.setup(adapter: interstitialController)

Expand Down Expand Up @@ -1158,9 +1157,8 @@ struct TestCaseManager {
let interstitialController = PrebidGAMInterstitialController(rootController: adapterVC)
let gamAdUnitIds = ["/21808260008/prebid_html_interstitial", "/21808260008/prebid_oxb_interstitial_video"]

let prebidStoredAuctionResponses = ["response-prebid-display-interstitial-320-480", "response-prebid-video-interstitial-320-480"]
interstitialController.prebidConfigId = "prebid-demo-display-interstitial-320-480-random"
interstitialController.storedAuctionResponse = prebidStoredAuctionResponses[randomId]
let configIds = ["prebid-ita-display-interstitial-320-480", "prebid-ita-video-interstitial-320-480"]
interstitialController.prebidConfigId = configIds[randomId]

interstitialController.gamAdUnitId = gamAdUnitIds[randomId]
adapterVC.setup(adapter: interstitialController)
Expand Down Expand Up @@ -2652,12 +2650,11 @@ struct TestCaseManager {
let randomId = [0, 1].randomElement() ?? 0
let interstitialController = PrebidAdMobInterstitialViewController(rootController: adapterVC)
let admobAdUnitIds = ["ca-app-pub-5922967660082475/3383099861", "ca-app-pub-5922967660082475/4527792002"]
let prebidStoredAuctionResponses = ["response-prebid-display-interstitial-320-480", "response-prebid-video-interstitial-320-480"]
interstitialController.adMobAdUnitId = admobAdUnitIds[randomId]

interstitialController.prebidConfigId = "prebid-ita-display-interstitial-320-480"
let configIds = ["prebid-ita-display-interstitial-320-480", "prebid-ita-video-interstitial-320-480"]
interstitialController.prebidConfigId = configIds[randomId]

interstitialController.storedAuctionResponse = prebidStoredAuctionResponses[randomId]
interstitialController.adMobAdUnitId = admobAdUnitIds[randomId]
adapterVC.setup(adapter: interstitialController)

setupCustomParams(for: interstitialController.prebidConfigId)
Expand Down Expand Up @@ -3407,13 +3404,9 @@ struct TestCaseManager {

let randomId = [0, 1].randomElement() ?? 0
let interstitialController = PrebidMAXInterstitialController(rootController: adapterVC)
let prebidStoredAuctionResponses = ["response-prebid-display-interstitial-320-480", "response-prebid-video-interstitial-320-480"]

let prebidStoredImps = ["prebid-demo-display-interstitial-320-480-random", "prebid-ita-video-interstitial-320-480"]

interstitialController.prebidConfigId = prebidStoredImps[randomId]
let configIds = ["prebid-ita-display-interstitial-320-480", "prebid-ita-video-interstitial-320-480"]
interstitialController.prebidConfigId = configIds.randomElement()!

interstitialController.storedAuctionResponse = prebidStoredAuctionResponses[randomId]
interstitialController.maxAdUnitId = "78f9d445b8a1add7"
adapterVC.setup(adapter: interstitialController)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,6 @@ class PrebidAdMobInterstitialViewController: NSObject, AdaptedController, Prebid
setupAdapterController()
}

deinit {
Prebid.shared.storedAuctionResponse = nil
}

func configurationController() -> BaseConfigurationController? {
return BaseConfigurationController(controller: self)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@ class PrebidGAMInterstitialController: NSObject, AdaptedController, PrebidConfig
setupAdapterController()
}

deinit {
Prebid.shared.storedAuctionResponse = nil
}

func configurationController() -> BaseConfigurationController? {
return BaseConfigurationController(controller: self)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ class PrebidMAXInterstitialController: NSObject, AdaptedController, PrebidConfig
setupAdapterController()
}

deinit {
Prebid.shared.storedAuctionResponse = nil
}

func configurationController() -> BaseConfigurationController? {
return BaseConfigurationController(controller: self)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,6 @@ class PrebidInterstitialController: NSObject, AdaptedController, PrebidConfigura

deinit {
Targeting.shared.sourceapp = nil
Prebid.shared.storedAuctionResponse = nil
}

func configurationController() -> BaseConfigurationController? {
Expand Down

0 comments on commit 036e0c6

Please sign in to comment.