Skip to content

UnityAds adapter: Migrate adapter to use new apis - v4.19.0#28

Merged
AnwarissaAsbah merged 11 commits into
unityads/v4.19.0-migrationfrom
feature/unity-4.18.0
Jun 29, 2026
Merged

UnityAds adapter: Migrate adapter to use new apis - v4.19.0#28
AnwarissaAsbah merged 11 commits into
unityads/v4.19.0-migrationfrom
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(

public static MediationInfo getMediationInfo() {
return new MediationInfo(
ADMOB, // Mediation name
UnityAds.getVersion(), // Unity Ads SDK version

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

This should be the version of the Mediation SDK (AdMob version) not the Unity Ads SDK version

LoadListener<InterstitialAd> listener) {

LoadConfiguration.Builder builder = new LoadConfiguration.Builder(placementId)
//.setObjectId(objectId)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: remove

Comment on lines +64 to +65
// .setObjectId(objectId)
// .withMediationAdUnitId()

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

nit: remove

@AnwarissaAsbah AnwarissaAsbah changed the title UnityAds adapter: Migrate adapter to use new apis UnityAds adapter: Migrate adapter to use new apis - v4.19.0 Jun 29, 2026
@AnwarissaAsbah
AnwarissaAsbah changed the base branch from main to unityads/v4.19.0-migration June 29, 2026 12:44
@AnwarissaAsbah
AnwarissaAsbah merged commit 590952f into unityads/v4.19.0-migration Jun 29, 2026
7 checks passed
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.

4 participants