TopOn Multiple dimensions are provided to group users, and different Waterfalls can be configured for different traffic groups to achieve refined traffic monetization. The traffic grouping dimensions currently supported by TopOn are as follows: Region, advertising style, application, advertising slot, date, week, hour, network type, Application version, SDK version, system version, device type, device ID, device brand, installation source, installation time and custom rules, etc.
(1 ) In the TopOn developer backend, the Aggregation Management page can create and manage Traffic grouping
(2) The setting rules for traffic grouping are as follows:
Rules | Conditions | Number of rules | Description | Example |
---|---|---|---|---|
Region | Includes, excludes | 1 | Multiple regions can be selected | Mainland China, United States |
City | Includes, excludes | 1 | You can select multiple cities. After selecting the region, you can choose the city | Guangzhou, Beijing |
Date | Include | Multiple | You can select 2022-01-01 00:00 to 2022-01-26 23:59. Multiple selections are allowed | 2022-01-01 00:00 to 2022-01-26 23:59, 2022-02-01 00: 00 to 2022-02-26 23:59 Use OR conditions for judgment, that is, if one of the dates is met |
Day of the week | includes | 1 | You can choose from Monday to Sunday. Multiple selections possible | Monday, Tuesday |
Hours | includes | Multiple | You can select weeks from 00:00 to 23:59 | 10:00 to 23:59 |
Time zone | Equal | 1 | You can choose various time zones around the world | UTC+8 Beijing |
Network type | Includes | 1 | 2G\3G\ can be selected 4G\WiFi. Multiple selections available | WiFi |
Application version name | Includes and excludes | 1 | App Version Name (App Version Name), you can fill in multiple application versions, separated by English commas | 2.2.1,2.2.2 |
Application version number | Includes, excludes, ≥, ≤ | 1 | Application version number (App Version Code), which must be a positive integer. Including or not included, multiple application version numbers can be entered, separated by commas; ≥ or ≤, only one application version number can be entered | 11,12 or 11 |
SDK version | Include, exclude, >, < | 1 | TopOn SDK version, including and excluding, you can fill in multiple SDK version numbers, separated by English commas. > and <, only one can be filled in | 5.0.0 |
System version | Include, exclude, >, << /td> | 1 | Mobile system version, including and If not included, you can fill in multiple system version numbers, separated by commas. > and <, only one can be filled in | 13.3.1 |
Device ID | Includes | 1 | You can fill in multiple device IDs, separated by English commas. Device IDs can Is IDFA, GAID, Android | 28968E75-E7BE-4AA2-BFA0-C455DD74C111 |
Device type | Included, excluded | 1 | You can choose iPhone or iPad. Multiple selections available | iPad |
Equipment brand | Including and excluding | 1 | You can choose multiple brands | Xiaomi |
Installation time | >,< | Multiple | The installation time is calculated based on the time when TopOn SDK is first initialized. Multiple installation time rules are in a relationship and must meet the traffic grouping at the same time to take effect. Hours/days/weeks: Calculate the time interval from the request time to the installation time in units of hours/days/weeks; Natural days: Calculate the time interval from the request date to the installation date. | < 1 day |
Installation source | Included, excluded | 1 | The package name of the source channel (app store, browser) where this application is installed. For example, the installation source is Google Play can fill in the package name (com.android.vending). You can enter multiple installation sources, separated by commas Note: Only valid for Android systems. | com.google.xxx |
Channels | Including and excluding | 1 | Supports filling in multiple channel numbers, separated by English commas. The channel numbers must first pass the SDK's Custom rules incoming | channel_1 |
Sub-channel | Includes and excludes | 1 | Supports filling in multiple sub-channel numbers, separated by English commas. The sub-channel numbers must first pass the SDK's Custom rulesIncoming | sub_channel_1 |
User ID | Includes, excludes, ≥, ≤, interval | 1 | Developers can use numbers Number users, such as each user corresponding to a globally non-unique number). The user number must first be passed in through the SDK's Custom rules. Only supported by Android SDK v6.1.32 and above | 100001 |
Custom rules | Equal to use= symbol is not equivalent to using != symbol, and use & symbol | 1 | Set through Key-Value conditions. Key and Value conditions can be Equal to= or not equal to!=, one Key can correspond to multiple Values, separated by English commas. Use & between multiple conditions, that is, multiple conditions need to be met at the same time. It is recommended that Value use the following character rules: uppercase and lowercase letters, numbers and underscores [A-Za-z0-9_] | For example, 18-year-old male Users, brought through Toutiao or Tencent promotion, are divided into a group, and the custom rules that need to be filled in are age=18&gender=male&channel=bytedance,tencent |
Cold start request | Equal | 1 | TopOn SDK will automatically determine whether to apply cold start, and this traffic grouping configuration will be used during cold start. It is recommended to configure fewer advertising sources for cold start to reduce request time and improve display rate. TopOn SDK v6.1.78 and above support | View cold boot Request instructions |
SDK preset strategy | Equal | 1 | TopOn supports developers to export SDK preset strategies for advertising space dimensions, and preset them into your App before the app is released. When the app installation starts for the first time, TopOn will use the SDK preset strategy to request ads to increase the ad display rate when the app installation starts for the first time. Supported by TopOn SDK v6.1.78 and above | SDK preset policy rules cannot be used together with other rules in traffic grouping, View SDK preset policy instructions |
When multiple rules are set in a single traffic group, each rule is judged using AND conditions. That is, the traffic group will be issued only when all conditions are met at the same time
It is recommended to call the interface of TopOn SDK before initializing TopOn SDK and pass in custom rules Parameters.
The custom rules of the App are set globally and are valid for all placements.
Android method | iOS method | Unity method |
---|---|---|
initCustomMap | customData | initCustomMap |
TopOn Android SDK V5.5.2 and above is supported and is only valid for the current Placement. You can add Placement-specific custom rules based on App custom rules
Android method | iOS method | Unity method |
---|---|---|
initPlacementCustomMap | setCustomData:forPlacementID | setCustomDataForPlacementID |
The following code example is for users who are age =18 and male, and who are brought in through a headline promotion.
Map<String, String> customMap = new HashMap<>();
customMap.put("age","18"); //age=18
customMap.put("gender","male"); //gender=male
customMap.put("channel","bytedance"); //promotion network is byte dance
ATSDK.initCustomMap(customMap); // The custom rules of the App are set globally and are valid for all placements.
ATSDK.initPlacementCustomMap(placementId, customMap);
[ATAPI sharedInstance].customData = @{kATCustomDataUserIDKey:@"test_custom_user_id",
kATCustomDataChannelKey:@"custom_data_channel",
kATCustomDataSubchannelKey:@"custom_data_subchannel",
kATCustomDataAgeKey:@18,
kATCustomDataGenderKey:@"male", // The value entered when advertising traffic is grouped must be the same as the value passed in.
kATCustomDataNumberOfIAPKey:@19,
kATCustomDataIAPAmountKey:@20.0f,
kATCustomDataIAPCurrencyKey:@"usd",
};
[[ATAPI sharedInstance] setCustomData:@{
kATCustomDataChannelKey:@"placement_custom_data_channel",
kATCustomDataSubchannelKey:@"placement_custom_data_subchannel"
} forPlacementID:@"your placementID"];
ATSDKAPI.initCustomMap(new Dictionary<string, string> { { "unity3d_data", "test_data" } });
ATSDKAPI.setCustomDataForPlacementID(new Dictionary<string, string> { { "unity3d_data_pl", "test_data_pl" } } ,placementId);
Backend configuration traffic grouping example:
TopOn SDK is predefined in App global custom rules The following key values are provided. If the following keys cannot meet the needs, you can add the key by yourself. You only need to match the corresponding key when adding a custom traffic group.
Key | Description |
---|---|
user_id | User ID. It is defined by the developer and passed into the TopOn SDK. Subsequently, TopOn supports statistical data based on the user ID dimension |
channel | Channel. The following character rules are recommended: uppercase and lowercase alphanumeric and underscore [A-Za-z0-9_] |
sub_channel | Sub channel. The following character rules are recommended: uppercase and lowercase alphanumeric and underscore [A-Za-z0-9_] |
user_number | User number. Developers can use numbers to number users. For example, each user corresponds to a globally non-unique number Only supported by Android SDK v6.1.32 and above |
age | Age |
gender | Gender, such as male, female, unknown |
iap_amount | In-app Payment amount |
iap_currency | In-app payment currency, such as US dollar "USD" |
iap_time | In-app pay time |
(1) You can configure multiple traffic groupings for a single TopOn ad slot in Aggregation Management
(2) You can clickTraffic Grouping Set the button on the right to set the traffic grouping of the ad slot. Traffic group setting functions include: Add, copy existing, and adjust priority
After completing Steps 3 and 4After setting, you can open the debugging mode of TopOn SDK to verify whether the traffic grouping takes effect. View the specific usage of log. SDK In the output advertising process log, segment_id is the Traffic group ID
(1) Increase advertising revenue. For example, group users by "region", "installation time", etc., configure different waterfall flows for different groups, and refine operations.
(2) Filter ad requests from risky users. Risk users can be grouped by "Installation Source", "Device ID", etc., and no waterfall flow is configured for this group to achieve the purpose of filtering their ad requests and display.
(3) Used when testing formal waterfall flow under specific circumstances. Testers can be divided into groups by "device ID", etc. for testers to test online waterfall flow. The following code example is for age=18 and male, and was brought through Toutiao promotion User