Skip to content

UnityAds adapter: Migrate adapter to use new apis#28

Open
AnwarissaAsbah wants to merge 5 commits into
mainfrom
feature/unity-4.18.0
Open

UnityAds adapter: Migrate adapter to use new apis#28
AnwarissaAsbah wants to merge 5 commits into
mainfrom
feature/unity-4.18.0

Conversation

@AnwarissaAsbah

Copy link
Copy Markdown

Migrate adapter to use new apis.

* Mobile Ads SDK and Unity Ads SDK.
*/
@Keep
@OptIn(markerClass = UnityAdsExperimental.class)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I don't think you need those for 4.19.0. Release/next already has code without it. cc @lmoreault

AnwarissaAsbah and others added 3 commits June 2, 2026 21:28
Keep UnityAdapter new API implementation (InterstitialAd, LoadConfiguration,
ShowConfiguration) with @OptIn(UnityAdsExperimental) over main's empty stub,
as this branch is specifically migrating to Unity Ads 4.18.0 APIs.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
if (token == null) {
token = "";
}
signalCallbacks.onSuccess(token);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lets please change this to a signalCallbacks.onFailure(

if (token == null) {
token = "";
}
signalCallbacks.onSuccess(token);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Lets please change this to a signalCallbacks.onFailure(

if (token == null) {
token = "";
}
signalCallbacks.onSuccess(token);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Event from token is empty string.

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.

3 participants