Skip to content

MET-4365: New initialization - #92

Merged
AKajt merged 5 commits into
mainfrom
feature/MET-4365-new-initialization
Sep 26, 2025
Merged

MET-4365: New initialization#92
AKajt merged 5 commits into
mainfrom
feature/MET-4365-new-initialization

Conversation

@AKajt

@AKajt AKajt commented Sep 26, 2025

Copy link
Copy Markdown
Contributor

This pull request updates the Metica Unity SDK to version 1.13.4 and introduces a more robust initialization flow for Metica Ads, allowing clients to determine the assignment status and whether ads are enabled. The changes include new result and status types for initialization, updates to platform delegates, and improvements to the Android callback interface.

…tionResult and update version to 1.13.4."

This reverts commit cbcb77b.
…itializationResult and update version to 1.13.4.""

This reverts commit b7e4768.
Comment thread Runtime/ADS/MeticaAds.cs Outdated
public static async Task<bool> InitializeAsync(MeticaConfiguration configuration)
{
return await PlatformDelegate.InitializeAsync(MeticaSdk.ApiKey, MeticaSdk.AppId, MeticaSdk.CurrentUserId, MeticaSdk.Version, MeticaSdk.BaseEndpoint, configuration);
MeticaAdsInitializationResult result = await PlatformDelegate.InitializeAsync(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This function could call InitializeWithResultAsync as that should give you all the info needed for the boolean.

}
}

private MeticaAdsAssignmentStatus Status { get; }

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

By having this private, consumer cannot access it. You in essence created the same API where pub can only get isMeticaAdsEnabled

@antonurankar-moloco antonurankar-moloco Sep 26, 2025

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also even when you make this public, having two APIs to access the same thing like
Status == MeticaAdsAssignmentStatus.Normal and its helper isMeticaAdsEnabled breads only confusion

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah I had this fixed but didn't push it.

@AKajt
AKajt merged this pull request into main Sep 26, 2025
1 check passed
@AKajt
AKajt deleted the feature/MET-4365-new-initialization branch September 26, 2025 17:39
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.

2 participants