Skip to main content

OpenAmsCenter (MSDK Only)

[MSDK Only] Opens AMS which provides rich marketing services and apps.

Supported Platform​

Supports Android, iOS platform.

Function Definition​

void OpenAmsCenter(string gameName,
string actChannelId,
string zoneId,
string platformId,
string partitionId,
string roleId,
int screenType = 1,
string extraJson = "");

Input Parameters​

ParameterTypeDescription
gameNamestringGame identifier abbreviation
Different for each game and is assigned while visiting AMS.
actChannelIdstringCampaign channel ID
Log in to AMS to get the ID.
zoneIdstringRegional server ID
platformIdstringPlatform ID
0: iOS
1: Android
partitionIdstringZone ID
roleIdstringRole ID
screenTypeintScreen orientation
1: Landscape and portrait
2: Portrait
3: Landscape
extraJsonstringExtended field

Callback Processing​

The callback processing API is GUAWebViewResultObserver. The callback data structure is GUAWebViewRet.

The callback event is WebViewRetEvents. The callback methodID is GUA_WEBVIEW_CLOSE_URL.

Code Sample​

UnionAdapterAPI.GetWebViewService().OpenAmsCenter("jxqy","jxqy_comm", "2", “0”, “1”, "role");