Get Notice Data (RequestNoticeData)
Get Notice Data
Function Definition
public static string RequestNoticeData(string region, string langType, string extraJson = "{}");
Input Parameters
| Parameters | Type | Explanation |
|---|---|---|
| region | string | Numeric code for country or region according to ISO 3166-1 For example, 156 represents China, 040 represents Austria Set to 0 to retrieve announcements for all regions |
| langType | String | Language type (RFC 4646), for example "en", used to specify the language for sending emails and SMS For details, see Language Type Definition |
| extraJson | String | Additional information |
Callback processing
The callback processing interface is NoticeResultObserver.The callback data structure is NoticeResult.
The callback ID is INTL_NOTICE_REQUEST_DATA.
Code example
string seqid = INTLAPI.RequestNoticeData("0", "zh-Hans", extraJson);
Notice custom tag configuration
In notices, custom tags can be personalized for announcements based on different conditions like platform, user groups, and app versions.
Custom tags can be configured in the Player Network Console. For details, see Announcement Custom Attributes.
You can also pass the corresponding key-value pairs in the ExtraJson parameter of RequestNoticeData.
Code Example:
string seqid = INTLAPI.RequestNoticeData("0", "zh-Hans", "{\"os\":\"2\"}"); // 1=Android, 2=iOS