Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MAX base adapter initialization #863

Merged
merged 2 commits into from
Jun 15, 2023
Merged

Conversation

OlenaPostindustria
Copy link
Collaborator

@@ -42,7 +42,6 @@ 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)
Targeting.shared.subjectToCOPPA = ALPrivacySettings.isAgeRestrictedUser()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not very familiar with AppLovins custom Mediation Adapters, but maybe it's worth calling the completionHandler.
Here in point 2 - they list appropriate statuses: https://support.applovin.com/hc/en-us/articles/11593969055245-Building-a-Custom-Adapter

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @kubamatula ! Agree, it make sense to signal about initialization completion once all needed steps are done.

Also, I would like to note that we will review the Prebid SDK initialization flow in case of integration via AdMob/MAX adapters in a way recommended in the development guides. To follow the adapters' implementation best practices, the Prebid SDK should be initialized inside the adapter. But such changes may require deeper analysis to avoid issues with possible repetitive initializations.

So in this task's scope, we will introduce the fix, and the flow improvement will be performed eventually.

Copy link
Contributor

@YuriyVelichkoPI YuriyVelichkoPI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@YuriyVelichkoPI YuriyVelichkoPI merged commit ebe8f9a into master Jun 15, 2023
@YuriyVelichkoPI YuriyVelichkoPI deleted the fix/max-adapters-init branch June 15, 2023 10:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants