Skip to main content

RequestNoticeData

AndroidiOSWindows
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

ParameterTypeDescription
regionstringISO 3166-1 numeric code for country or region
For example 156 for China, 040 for Austria
Region value 0 for pulling all region notice
langTypestringLanguage code (RFC 4646) that defines the language used to send emails and SMS messages, such as "en"
For more information, see Language Type Definition
extraJsonstringExtended 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