Skip to content

Commit

Permalink
Fix MAX base adapter initialization (#863)
Browse files Browse the repository at this point in the history
* fix: remove call of super.initialize in MAX base adapter

* feat: send unknown status in PrebidMAXMediationAdapter initialization
  • Loading branch information
OlenaPostindustria authored Jun 15, 2023
1 parent 036e0c6 commit ebe8f9a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,8 @@ public class PrebidAdMobMediationBaseAdapter: NSObject, GADMediationAdapter {
required public override init() {
super.init()
}

public static func setUpWith(_ configuration: GADMediationServerConfiguration, completionHandler: @escaping GADMediationAdapterSetUpCompletionBlock) {
// TODO: Add Prebid SDK initialization logic
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public class PrebidMAXMediationAdapter: ALMediationAdapter {
public weak var nativeDelegate: MANativeAdAdapterDelegate?

public override func initialize(with parameters: MAAdapterInitializationParameters, completionHandler: @escaping (MAAdapterInitializationStatus, String?) -> Void) {
super.initialize(with: parameters, completionHandler: completionHandler)
// TODO: Add Prebid SDK initialization logic

completionHandler(.initializedUnknown, nil)
Targeting.shared.subjectToCOPPA = ALPrivacySettings.isAgeRestrictedUser()
}

Expand Down

0 comments on commit ebe8f9a

Please sign in to comment.