Menu

Setting - Attrs for permission control

 

1.Edit the setting for placement segment:

 Request params (attrs for permission control): 

params type required notes
xxx    

some required params, for detail:

Api 9 of Segment-Api

items Array[Object] Y  item list of setting
items.xxx Int N

attrs for non-permission control (visible for all publishers),

for details: Api 9 of Segment-Api

items.intel_opt_cache Int N

Smart optimization, enum description:

1: Off(default)

2: Price Priority

3: Display Priority

No parameter or 0 means no modification.

Notes: TonOn's Smart Optimized Cache function will automatically increase the ad cache according to the ad cache of the current placement. Smart Optimized Caching supports two modes:
Price priority: TonOn will automatically optimize the ad cache according to the current ad cache to improve the filling price.
Impression priority : TonOn will automatically optimize the ad cache based on the current ad cache situation to increase the per capita impressions .
You can choose the Smart Optimized Cache mode suitable for your placement through AB experiment.
Smart Optimized Cache mode needs to update TonOn Android SDK v6.2.16 and above, TonOn iOS SDK v6.2.48 and above.

items.bf_ldf_rf_sw Int N

Request Fails Retry Switch, enum description:
1:On
2:Off

No parameter or 0 means no modification.

Notes: Automatically resent the request if it fails. This will increase the numbers of requests and attempts. Supported by TonOn SDK v5.9.40 and above.

items.cached_offers_num Int N

Ads Served After Waterfall Execution ,valid enum range:[1,5], default is 1.

No parameter or 0 means no modification.

Notes:After the ad placement's Load Success callback, the TonOn SDK determines whether the current ad placement has met the stop count requirement. If not, the SDK will continue executing the Waterfall flow until all ad sources are processed or the ad count requirement is met.

items.sdk_timeout Int N

Load Timeout (seconds),valid enum range:[1,5000],default is 900。

No parameter or 0 means no modification.

Notes:The max waiting time for each placement request, and the request will end when timeout

items.bottom_req_time Int N

Bottom Ads Request Initiation Time (millseconds)valid enum range:[0,5000],default is 1000。

No parameter means no modification.

Notes:The time bottom request lags behind the placement request

items.dynamic_wf_sw Int N

Dynamic Waterfall Switch,enum description:

1:Yes

2:No(default)

No parameter or 0 means no modification.

Notes:Based on the real-time value of users at the device level, dynamically adjust the price tiers for each request in the waterfall sequence to achieve optimal request logic, enhancing revenue and loading efficiency while reducing invalid requests. Contact your AM to learn more details.

items.pl_up_status_timeout Int N

Placement Filled CD (seconds)valid enum range:[0,1000],default is 300,don't set 0

No parameter means no modification.

Notes:The LoadSuccess status of the placement dimension marks the UP_status validity period. The developer calls Load during during the cooling time, the SDK directly callback to Load Success

items.ad_up_status_timeout Int N

AD Filled CD (seconds)valid enum range:[1,10000],default is 900

No parameter or 0 means no modification.

Notes:Request Filled status flag UP_status validity period of the ad source dimension. The developer calls request during the cooling time, the SDK directly callback to Request Filled

items.auto_refresh_time Int N

Auto Refresh(Auto Request),enum description for different formats: 


Banner (automatic refresh when refresh mode is [Manual Optimization]): -1 (auto refresh off); range [1,1000], default = 15 (auto refresh interval, unit: seconds). (Notes: Set the interval between regular automatic refresh of advertisements. It is recommended that the interval should be 10 to 150 seconds. If it is not filled, the automatic refresh function will not be enabled. Note: before enabling TonOn automatic refresh, make sure that the automatic refresh or rotation function of third-party advertising sources is turned off, otherwise the display and revenue of advertisements will be affected.)

Rewarded video/interstitial /Splash Ads (automatic request): -1 (auto refresh off); 1 (auto refresh on). (Notes: Once the ad is shown, closed or isReady is False, the TonOn SDK will automatically request the ad for the next impression.If the client has processed the pre-loading logic as suggested in the integrated documentation, it is not recommended to turn on this function.)

Native ads and other formats: no auto refresh function, ignore

 

2. Get the setting for placement segment:

 Return params (attrs for permission control): 

params type required notes
- Array[Object] Y

some required params, for detail:

Api 8 of Segment-Api

_.xxx Int Y

 

attrs for non-permission control (visible for all publishers),

for details: Api 8 of Segment-Api

 

_.intel_opt_cache Int Y

 Smart optimization, enum description:

1: Off(default)

2: Price Priority

3: Display Priority

Notes: TonOn's Smart Optimized Cache function will automatically increase the ad cache according to the ad cache of the current placement. Smart Optimized Caching supports two modes:
Price priority: TonOn will automatically optimize the ad cache according to the current ad cache to improve the filling price.
Impression priority : TonOn will automatically optimize the ad cache based on the current ad cache situation to increase the per capita impressions .
You can choose the Smart Optimized Cache mode suitable for your placement through AB experiment.
Smart Optimized Cache mode needs to update TonOn Android SDK v6.2.16 and above, TonOn iOS SDK v6.2.48 and above.

_.bf_ldf_rf_sw Int Y

Request Fails Retry Switch, enum description:
1:On
2:Off

Notes: Automatically resent the request if it fails. This will increase the numbers of requests and attempts. Supported by TonOn SDK v5.9.40 and above.

_.cached_offers_num Int Y

Ads Served After Waterfall Execution ,valid enum range:[1,5], default is 1.

No parameter or 0 means no modification.

Notes:After the ad placement's Load Success callback, the TonOn SDK determines whether the current ad placement has met the stop count requirement. If not, the SDK will continue executing the Waterfall flow until all ad sources are processed or the ad count requirement is met.

_.sdk_timeout Int Y

Load Timeout (seconds),valid enum range:[1,5000],default is 900。

Notes:The max waiting time for each placement request, and the request will end when timeout

_.wf_loadts Int Y

The time to wait after the Waterfall is filled (millseconds)valid enum range:[1000,120000]

Notes:After waiting N seconds after Waterfall running, Load Success will be called back if there is available cache. The precision is second for iOS, and millisecond for Android. For example, if the value is 3.600s, the value is 3s for iOS and 3600ms for Android

_.nw_timeout Int Y

Ad source timeout (millseconds)valid enum range:[100,60000]

Notes:After the Ad source times out, the next Ad source will be requested

_.hb_bid_timeout Int Y

HB Bid Timeout (millseconds)valid enum range:[1,120000]

Notes:The max bid time of Header Bidding ad sources, and the timeout response will not participate in the auction

_.ps_cache_timeout Int Y

Wait Strategy Update Time (seconds)valid enum range:[0, 100]

Notes:The SDK updates the placement strategy in real time when the placement cache is invalid. This configuration controls the waiting placement strategy update timeout for the SDK。

_.pl_up_status_timeout Int Y

 

Placement Filled CD (seconds)valid enum range:[0,1000],default is 300,don't set 0

Notes:The LoadSuccess status of the placement dimension marks the UP_status validity period. The developer calls Load during during the cooling time, the SDK directly callback to Load Success

 

_.ad_up_status_timeout Int Y

 

AD Filled CD (seconds)valid enum range:[1,10000],default is 900

Notes:Request Filled status flag UP_status validity period of the ad source dimension. The developer calls request during the cooling time, the SDK directly callback to Request Filled

 

_.byuid_wait_time Int Y

Obtain Buyeruid Time Out (millseconds)valid enum range:[1,100000]

Notes:The wait time for the S2S Header Bidding ad sources to obtain the Buyeruid

_.s2s_bd_max Int Y

S2S Bidding Ad Sources Number,valid enum range:[0,10],0 neans no limit

Notes:Max number of S2S Header Bidding ads returned in the same waterfall. When the number of AD sources exceeds the set number, they will be returned in price priority order. TonOn SDK v5.9.90 and above supports

_.bottom_req_time Int Y

 Bottom Ads Request Initiation Time (millseconds)valid enum range:[0,5000],default is 1000。

Notes:The time bottom request lags behind the placement reques

_.dynamic_wf_sw Int Y

 Dynamic Waterfall Switch,enum description:

1:Yes

2:No(default)

Notes:Based on the real-time value of users at the device level, dynamically adjust the price tiers for each request in the waterfall sequence to achieve optimal request logic, enhancing revenue and loading efficiency while reducing invalid requests. Contact your AM to learn more details.

_.new_auto_refresh_type Int Y

Refresh Type, notes: only banner format are supported currently, other formats can be ignored, enum description: 

1:Auto Optimization

2:Manual Optimization

Notes:Select Manual optimization to refresh the banner ad at the time you set; Choose auto optimization and TonOn will match the appropriate refresh time for different ad networks.

_.auto_refresh_time Int N

 Auto Refresh(Auto Request),enum description for different formats: 

Banner (automatic refresh when refresh mode is [Manual Optimization]): -1 (auto refresh off); range [1,1000], default = 15 (auto refresh interval, unit: seconds). (Notes: Set the interval between regular automatic refresh of advertisements. It is recommended that the interval should be 10 to 150 seconds. If it is not filled, the automatic refresh function will not be enabled. Note: before enabling TonOn automatic refresh, make sure that the automatic refresh or rotation function of third-party advertising sources is turned off, otherwise the display and revenue of advertisements will be affected.)

Rewarded video/interstitial /Splash Ads (automatic request): -1 (auto refresh off); 1 (auto refresh on). (Notes: Once the ad is shown, closed or isReady is False, the TonOn SDK will automatically request the ad for the next impression.If the client has processed the pre-loading logic as suggested in the integrated documentation, it is not recommended to turn on this function.)

Native ads and other formats: no auto refresh function, ignore
_.wf_lscb_type Int Y

Placement Loaded Callback Mode,enum description:

1:Show Priority

2:Price Priority

Notes:TonOn SDK v6.1.52 and above support two Placement Loaded Callback Modes: show priority and price priority Show priority: You can get the placement loaded callback faster. It is recommended to choose this mode when the user frequently displays ads or the app has a limit on the loading time of the ads. Price Priority: Can wait for higher priced ad fill results. This mode is recommended when the user can wait for the ad to be displayed You may choose the appropriate callback mode through AB Testing experiments.

_.rotation_num Int Y

Rotation Number,valid enum range:[1,5],1 means close the rotation, notes:only interstitial format are supported currently, other formats can be ignored

Notes:Rotation ads is the continuous display of multiple ads in one display opportunity, and the next ad will automatically play after the rotation interval is reached. TonOn SDK v6.4.30 and above versions support interstitial rotation ads, supported by ad network including Tencent, CSJ, Baidu and Kuaishou, supported styles include interstitial ads and mixed interstitial ads, iOS splash mixed interstitial does not support.

_.rotation_inter Int Y

Interval Between Rotation (millseconds)valid enum range:[3000,30000],notes:only interstitial format are supported currently, other formats can be ignored

Last modified: 2025-06-20Powered by