RequestNoticeData
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see NoticeRequestData for Unreal Engine SDK.
If you were looking for the method for use with Unreal Engine, see NoticeRequestData for Unreal Engine SDK.
Request notice data.
Function definition
public static string RequestNoticeData(string region, string langType, string extraJson = "{}");
Input parameters
Parameter | Type | Description |
---|---|---|
region | string | ISO 3166-1 numeric code for country or region For example 156 for China, 040 for Austria Region value 0 for pulling all region notice |
langType | string | Language code (RFC 4646) that defines the language used to send emails and SMS messages, such as "en" For more information, see Language Type Definition |
extraJson | string | Extended field |
Observers
The callback processing interface is NoticeResultObserver. The callback data structure is NoticeResult.
The callback methodID is INTL_NOTICE_REQUEST_DATA
.
Code sample
string seqid = INTLAPI.RequestNoticeData("0", "zh-Hans", extraJson);
Configure custom tags for announcements
The tags used in announcements can be customized to deliver targeted announcements based on various conditions, such as platform, user group, and app version.
To configure custom tags for announcements from Player Network Console, see Announcement Custom Property.
Alternatively, you may also pass the key-value pair to the ExtraJson
parameter in RequestNoticeData
.
Sample code:
string seqid = INTLAPI.RequestNoticeData("0", "zh-Hans", "{\"os\":\"2\"}"); // 1=Android, 2=iOS