-
Notifications
You must be signed in to change notification settings - Fork 295
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
Migration to v5 queries #745
Comments
Hey @Enricoza, Thanks for the reaching out.
Fair observation. However, even though we were aware that the chances of typos and copy / paste actions are going up, we thought that it's a fair tradeoff for having the flexibility not to depend on certain SDK version for current (and future) URL strategies and data residencies which we will be enabling on our backend. One other consideration was that on our end we also need to ship 12 SDK updates just for sake of propagating that to all the SDKs we have.
Change we made is pretty much just translating v4 constants we had into a certain combination of these three parameters. If you check the table in this chapter, it's depicting exactly how the combination of these parameters should look like, in case you were using some of these v4 constants. Depending on the constant you were using, you should invoke
Like mentioned above, the boolean parameters need to be set exactly in accordance to the content of the array. Yes, in theory SDK could understand that if we see
which is not something we really prefer (it makes no harm, of course, but just for sake of consistency). I do agree that abstracting all these three variables behind some kind of But also to stress one more time -> all the URL strategies and data residency URL strategies which we support are to be used
Are you referring to this method? |
Interesting points regarding the constants and your preferences about them. But ok, thanks for clarifying. Anyway yes, that's the method I was referring to. Could you clarify on that too? Thank you again @uerceg for the quick response! |
@Enricoza I am curious what are you using that method for? That method was added as a first method for tracking ad revenue with MoPub (that was our first partner we integrated with on this front). But after that MoPub use case, we noticed that with adding more partners, that API was not flexible enough (since we kinda made it MoPub specific), so we went with more generic one which pretty much exists in same form in v5 as well (minus the dropping the constants change). MoPub is no longer around, but instead those users have migrated to AppLovin MAX solution, so makes me wonder what was your use case for that method nowadays. |
@uerceg I couldn't tell you what I'm using that for as I'm developing an integration, not the actual usage of the library. The old method was still supported (as it was in v4 here) for our customers to use but probably not used that much according to what you are saying. Anyway I understand now. Thanks. |
I see, thanks for the comments. But yeah, I agree that we should probably add the clarification comment about that method in migration guide as well. It might have been skipped due to the reason mentioned above -> even within SDK v4, |
I was migrating from v4 to v5 and had a couple quick questions for the team.
A general question regarding constants
Regarding the URL Strategy
I'm unsure if I understood the changes correctly.
ADJUrlStrategyChina
,ADJUrlStrategyIndia
,ADJUrlStrategyCn
) or could I pass now an array like this:["eu.adjust.com", "tr.adjust.com"]
?useSubdomains
andisDataResidency
fixed based on the array of domains passed in the first parameter? Or could I pass for exampleadjustConfig.setUrlStrategy(["eu.adjust.com"], useSubdomains: false, isDataResidency: false)
or equivalentlyadjustConfig.setUrlStrategy(["adjust.net.in", "adjust.com"], useSubdomains: false, isDataResidency: true)
?If this were to be implemented this way instead of the 5.0 version, it would give the same amount of parametrization in case some custom domain needs to be added but without the need for your customers to manually insert the ones that are already there, for example:
Of course this only makes sense if the assumptions i made in point 1 to 3 are correct and there are some standard strategies.
TrackAdRevenue
For the trackAdRevenue a
Data
payload parameter was removed (as i can see from the code) but I can't find it in the migration guide. Should the payload be just removed or should it be passed in some other way?Thank you very much for the support and for the migration guide which was very helpful so far.
The text was updated successfully, but these errors were encountered: