A mobile terminal advertisement waterfall flow serial-parallel scheduling method
By using multidimensional quality scoring and dynamic price layer identification, the dynamic problems of ad source selection and request scheduling in mobile advertising SDKs are solved, achieving adaptive scheduling for reduced ad fill latency and revenue ranking, and ensuring the consistency of statistical results.
Patent Information
- Application Number
- CN202611252524.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-18
- Publication Date
- 2026-11-24
AI Technical Summary
Existing mobile advertising SDKs lack dynamic price layer recognition capabilities in ad source selection and request scheduling, resulting in long serial waiting times, full concurrency disrupting revenue ranking, inability to adapt to fixed concurrency levels, and inconsistent statistics when Header Bidding is successfully bid on but not displayed.
By using multidimensional quality scoring and dynamic price layer identification, advertising sources are divided into hot start, cold start, and cold start probability regions. The concurrency granularity is dynamically adjusted, and parallel requests are made to sources in the same price layer. Header Bidding bidding failure events are handled to ensure statistical consistency.
It achieves reduced ad fill latency and guaranteed revenue ranking, with a dynamic scheduling mechanism that adapts to queue price distribution to ensure consistency of statistical results.
Smart Images

Figure CN123160220A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of mobile internet advertising technology, specifically relating to a method and system for dynamic scheduling of waterfall flow requests and order recall and sorting of advertisements for mobile advertising aggregation SDKs. Background Technology
[0002] Mobile applications widely use an ad aggregation SDK (Mediation SDK) to simultaneously access multiple ad sources, requesting ad fills sequentially from each ad source using a waterfall flow pattern. The core scheduling logic of existing waterfall flow SDKs is as follows: ad sources are arranged in descending order according to a preset price, requests are initiated serially, and the next ad is requested only after the previous ad source returns no fill or times out.
[0003] The fundamental flaw in this model lies in the SDK's failure to utilize runtime price distribution information from ad sources for dynamic scheduling decisions. Specifically, due to the lack of runtime price layer recognition capabilities, the existing SDK can only choose from three static concurrency strategies, all of which have inherent shortcomings: In pure serial mode, if the first N ad sources are not filled, the total waiting time is N times the single timeout, significantly increasing the ad slot filling delay; in full concurrency mode, all ad sources request simultaneously, and low-priced sources may return to be filled before high-priced sources, disrupting the "price priority" revenue guarantee mechanism of the waterfall flow; in fixed concurrency mode, a fixed number of concurrent requests is preset (such as the first 3 concurrent requests each time), which cannot adapt to changes in ad source configuration—when configuring more sources with the same price, sources at the same layer may be missed, and when configuring fewer sources, sources with different price levels may be mixed in.
[0004] The upstream cause of the aforementioned concurrency strategy dilemma lies in the fact that existing SDKs rely solely on manually configured fixed prices for queue sorting, lacking a multi-dimensional quality scoring mechanism based on fine-grained historical data (such as "ad placement × package name × order × channel" dimensions). This results in a lack of objective criteria for determining which ad sources in the queue belong to the "same revenue level," rendering dynamic scheduling unfounded. In fact, multiple ad sources in the waterfall queue may be configured with the same or very similar predicted prices (eCPM), and these ad sources are interchangeable from a revenue perspective, eliminating the need for sequential waiting—but existing SDKs cannot identify this equivalence relationship at runtime and adjust the concurrency granularity accordingly.
[0005] The lack of dynamic scheduling capabilities mentioned above is further manifested in the Header Bidding (HB) hybrid bidding scenario as chaotic statistical attribution: after the HB real-time bidding price is inserted into the waterfall queue as a dynamic factor, if the HB bid is successful but is not ultimately displayed (replaced by a higher priority waterfall source), the existing SDK still reports "bid successful", resulting in inconsistencies between the statistics on the advertiser side and the developer side.
[0006] Therefore, how to construct a scheduling method that can dynamically identify a set of ad sources with the same revenue level based on the queue price distribution at runtime, and adaptively adjust the concurrency granularity accordingly, while providing consistent statistical processing for dynamic price sources, is a technical problem that urgently needs to be solved in the current mobile advertising monetization field. Summary of the Invention
[0007] In a first aspect, embodiments of the present invention provide a method for parallel request scheduling and recall ranking of an advertising aggregation SDK based on dynamic price layer identification and multi-dimensional quality scoring, including:
[0008] The aggregation backend collects the number of requests, fills, impressions, and clicks for each ad source within the statistics window. Based on these statistics, it calculates a multi-dimensional quality score for each ad source across ad placement, package name, order, and channel ad placement combination dimensions, resulting in quality score data and three categories of partition tags: hot start score, cold start score, and cold start probability. During mobile SDK initialization, it obtains the ad source configuration, the quality score data, and blacklist records issued by the aggregation backend.
[0009] Based on the quality score data, each ad source is divided into a hot start region, a cold start region, and a cold start probability region. The three-region recall selection is performed in the order of priority for hot start region, followed by cold start region, and lastly for cold start probability region. A waterfall queue of candidate ad sources is constructed based on the results of the three-region recall selection.
[0010] When an ad slot triggers an ad request, the real-time bidding price of the Header Bidding is inserted into the corresponding position of the waterfall queue according to the price level, and the predicted price of the first ad source to be requested in the queue is obtained. All ad sources to be requested whose predicted price in the queue is within the preset tolerance range are included in the current price layer to obtain the ad source set of the current price layer.
[0011] Simultaneously initiate advertising requests to the set of advertising sources in the current price layer, and execute a decision when the entire current price layer or the entire advertising slot times out. If there are fill results in the current price layer, select the winning advertising source according to price and priority, and trigger early return when preset conditions are met. If there are no fill results in the current price layer, proceed to the next price layer to obtain the final display advertising source.
[0012] For ad sources that win the Header Bidding bid but do not receive the final display, generate a bid failure event and report bid failure data, instead of reporting bid success data, to obtain statistical attribution data consistent with the actual display results.
[0013] Preferably, simultaneously initiating advertising requests to the advertising source set of the current price layer includes:
[0014] Simultaneously initiate ad requests to all ad sources within the current price tier, and monitor the callback status of each ad source in real time during the ad request process;
[0015] The request waiting for the current price layer is terminated when any of the following conditions are met: all ad sources in the current price layer have returned, the current price layer has timed out, the entire ad slot has timed out, or the winner in the returned fill results cannot be surpassed by an ad source in the current price layer that has not yet returned.
[0016] The criteria for determining that the winner cannot be surpassed are: the highest-priced and highest-priority ad source among the returned results has a price higher than the highest price among any ad source that has not yet been returned in the current price tier; or the difference between its price and the highest price is within a preset tolerance range, and its priority is not inferior to the best priority among the unreturned ad sources whose price difference with the highest price is within the preset tolerance range.
[0017] Preferably, the multidimensional quality score is calculated as follows:
[0018] The request volume metric is calculated based on the number of requests made by each ad source within the statistics window; the fill rate metric is calculated based on the ratio of the number of fills to the number of requests; the fill-to-impression rate metric is calculated based on the ratio of the number of impressions to the number of fills; and the click-through rate metric is calculated based on the ratio of the number of clicks to the number of impressions.
[0019] The corresponding weighting coefficients are configured for the request volume index, fill rate index, fill-to-display ratio index, click-through rate index, and the logarithmic transformation values of the number of impressions and the number of clicks, and the basic score is obtained by summing the weighted results.
[0020] An abnormally low fill penalty is imposed on ad sources with a fill rate lower than the first preset threshold and a number of requests exceeding the second preset threshold; an abnormally low display penalty is imposed on ad sources with a fill-display rate lower than the third preset threshold and a number of fills exceeding the fourth preset threshold.
[0021] The multidimensional quality score is obtained by subtracting the abnormally low fill penalty and the abnormally low display penalty from the base score and adding the manual tuning item.
[0022] Preferably, candidate ad sources are divided into a hot start region, a cold start region, and a cold start probability region, including:
[0023] The advertising sources with positive multidimensional quality scores are assigned to the hot start area and sorted in descending order of scores to obtain the hot start scoring area advertising source sequence.
[0024] Ad sources with negative or zero multidimensional quality scores are classified into the cold start region and sorted in ascending order of absolute score value, so that the ad sources with absolute score values closer to zero are ranked higher, thus obtaining the cold start region ad source sequence.
[0025] Ad sources with empty multidimensional quality score data are classified into the cold start probability region, and the exploration recall probability is calculated based on the real-time query frequency corresponding to the ad source. The lower the query frequency, the higher the exploration recall probability. Sampling is performed according to the exploration recall probability to obtain the ad source sequence in the cold start probability region.
[0026] Preferably, the method further includes dynamic demotion of blacklisted advertising sources:
[0027] For blacklisted ad sources configured with a demotion strategy, obtain the absolute score values of all valid ad sources in the current request, and determine the highest and lowest absolute score values;
[0028] The dynamic recall probability of the blacklisted advertising source is calculated based on the square of the normalized ratio of the difference between the absolute score of the blacklisted advertising source and the lowest absolute score to the difference between the highest absolute score and the lowest absolute score.
[0029] The blacklisted advertising sources are sampled according to the dynamic recall probability. If the sampling passes, the advertising source is retained for recall. If the sampling fails, the advertising source is discarded.
[0030] Preferably, the method further includes dynamic allocation of concurrent capacity across the three regions:
[0031] The upper limit of the recall pool candidate capacity for a single ad request is set to twice the baseline concurrency of the traffic pool. The upper limit of the candidate capacity limits the total number of candidate ad sources participating in the recall selection, which is different from the number of ad requests actually initiated simultaneously within the same price level, which is limited by the maximum concurrency of a single layer, maxParallelCount.
[0032] The hot start region, cold start region, and cold start probability region occupy the candidate capacity in order of allocation priority, wherein the hot start region has a higher priority than the cold start region, and the cold start region has a higher priority than the cold start probability region.
[0033] The available capacity of the cold start probability region is the upper limit of the candidate capacity minus the number of candidates already occupied by the warm start region and the cold start region, and then minus the number of reserved concurrency.
[0034] Preferably, the method further includes consistency processing of the Header Bidding bidding results:
[0035] After obtaining the real-time bidding price, the Header Bidding ad source inserts it into the corresponding price sorting position in the waterfall queue according to the real-time bidding price, and participates in dynamic price layer identification and bidding adjudication together with the fixed-price ad source in the waterfall flow.
[0036] When a Header Bidding ad wins the bid and is ultimately displayed, a successful bid event is generated and reported. When a Header Bidding ad wins the bid but is replaced by a higher-priority fixed-price waterfall ad and fails to be displayed, a failed bid event is generated and reported. The failed bid event data includes the identifier of the Header Bidding ad and the identifier of the ad that replaced it.
[0037] Secondly, embodiments of the present invention also provide a parallel request scheduling and recall ranking system for an advertising aggregation SDK based on dynamic price layer identification and multi-dimensional quality scoring, the system comprising:
[0038] The data collection and scoring module is used to collect historical data of each advertising source within the statistical window, calculate the multi-dimensional quality score of each advertising source in terms of advertising position, package name, order and channel advertising position combination according to the 7-coefficient weighting formula, perform blocking judgment and cold and hot start partition marking, and synchronize the scoring results to the distributed cache.
[0039] The strategy configuration module is used to manage configurable parameters such as global scoring coefficient and ad placement-level coverage coefficient, Header Bidding bidding timeout and price caching strategy, blacklist strategy, traffic pool baseline concurrency and exploration intensity coefficient;
[0040] The request scheduling module is used to receive ad slot requests, build a waterfall queue, insert the real-time bidding results of Header Bidding into the queue according to price, dynamically identify the current price layer based on the predicted price of the ad source at the head of the queue, initiate requests to ad sources in parallel within the current price layer and proceed serially according to the layer, manage the timeout within the management layer and the overall timeout of the ad slot with a dual timeout constraint, select the winning ad source according to price and priority and execute the early return decision.
[0041] The recall and sorting module is used to divide candidate ad sources into hot start region, cold start region and cold start probability region based on the scoring data. It performs exploratory probability sampling and dynamic weighted probability sampling on the cold start probability region and blacklist ad sources respectively, and sorts and allocates them according to the region priority and the upper limit of the refresh pool candidate capacity and performs fine sorting and deduplication.
[0042] The statistics and consistency processing module is used to identify the final display status of the Header Bidding ad source and generate a bid failure event report when it wins the bid but is not displayed, as well as record and report statistical events such as ad slot requests, ad source requests, tier failures, ad filling and display.
[0043] The beneficial effects of this invention are as follows: By dynamically identifying the set of ad sources at the same price level based on the price at the head of the queue and a preset tolerance range during runtime, parallel requests for sources with the same revenue level and serial requests for sources with different revenue levels are pushed forward. This allows the granularity of concurrency to adaptively change with the actual price distribution in the queue—automatically increasing the parallelism to reduce latency when there are many sources at the same price level, and automatically degenerating into serial processing when there are few sources at the same price level to ensure revenue ordering. This mechanism fundamentally solves the technical contradiction of existing waterfall flow SDKs, which lack runtime price level identification capabilities and are forced to choose between three static strategies: pure serial processing (high latency), full concurrency (disrupting revenue ordering), and fixed concurrency (unable to adapt). It significantly reduces ad filling latency without sacrificing price-priority revenue protection. Attached Figure Description
[0044] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly described below. These drawings are incorporated in and constitute a part of this specification. They illustrate embodiments conforming to the present invention and, together with the specification, serve to explain the technical solutions of the present invention. It should be understood that the following drawings only show some embodiments of the present invention and should not be considered as a limitation of the scope. For those skilled in the art, other related drawings can be obtained from these drawings without creative effort.
[0045] Figure 1 A flowchart illustrating the steps of a parallel request scheduling and recall ranking method for an advertising aggregation SDK based on dynamic price layer identification and multidimensional quality scoring, provided in this embodiment of the invention;
[0046] Figure 2 This is a schematic diagram of a parallel request scheduling and recall ranking system for an advertising aggregation SDK based on dynamic price layer recognition and multi-dimensional quality scoring, provided as an embodiment of the present invention. Detailed Implementation
[0047] The embodiments of the present invention will now be described in detail with reference to the accompanying drawings to make the technical solution of the present invention clearer and more complete. It should be noted that the described embodiments are for illustrative purposes only and are not intended to limit the present invention. Other implementation methods that can be made by those skilled in the art based on the content of the present invention without creative effort should all fall within the protection scope of the present invention.
[0048] Furthermore, the accompanying drawings in this application are merely illustrative and not necessarily drawn to scale. The same reference numerals denote components with the same or similar functions. To clearly illustrate the present invention, specific details are provided in the following embodiments. Those skilled in the art should understand that these details are not essential for implementing the present invention, and other methods may be used to implement it without affecting the basic idea of the invention.
[0049] I. Steps and Procedures for Parallel Request Scheduling and Recall Ranking in the Ad Aggregation SDK
[0050] The overall process flowchart is as follows: Figure 1 As shown.
[0051] This embodiment uses a mobile application ad aggregation scenario that simultaneously connects to five ad sources (Google Ad Manager, Meta Audience Network, Douyin Pangle, Tencent Youlianghui, and Kuaishou Ads) as the implementation scenario. The aggregation SDK is integrated into the mobile app (Android / iOS), and the aggregation backend is deployed on a cloud server (Alibaba Cloud / Tencent Cloud), responsible for ad source configuration management, offline scoring calculation, cache updates, and policy distribution. The mobile device is a mainstream mid-to-high-end Android phone (such as Xiaomi 14, Snapdragon 8 Gen 3 processor, 8GB RAM) as the reference operating environment, and the network environment is a 4G / Wi-Fi hybrid scenario.
[0052] S1: Multi-source data acquisition and offline multidimensional quality scoring
[0053] Step S1 is executed offline in the aggregation backend to calculate the multidimensional quality score of each ad source in terms of ad placement, package name, order, and channel ad placement combination dimensions, and synchronize the score results to the distributed cache for online querying by the SDK.
[0054] First, the system constructs a rating key with the smallest rating granularity. This key is a unique string identifier mapped to a four-tuple of ad placement identifier, application package name, ad order identifier, and channel ad placement identifier using a hash function. The data structure of the rating key is defined as a fixed-length string of 128 bytes, in the format of each field separated by a colon and the first 16 bytes of the SHA256 digest being the hexadecimal representation.
[0055] Within a 30-day sliding statistical window, the system maintains a set of counting metrics for each rating key. These counting metrics include the number of requests. Number of fillers Display numbers and number of clicks The sliding window advances daily, with the system reading detailed logs from the offline data warehouse at midnight each day and re-aggregating the count metrics for each key. The aggregated results are written to a Hive partitioned table, with the partition key being the statistical date.
[0056] Based on the above counting metrics, the system calculates three derived ratio metrics: fill rate. Fill rate and click-through rate ,in Used to avoid cases where the denominator is zero. When When it is zero, Recorded as zero; when When it is zero, Recorded as zero; when When it is zero, Record it as zero.
[0057] The system calculates the multidimensional quality score as shown in formula (1). :
[0058] (1)
[0059] in to Configurable rating coefficients. For abnormally low fill penalty terms, when and hour, The value is The product of the penalty base and the penalty base, in this embodiment the penalty base is taken as... ;otherwise Take zero. To display the penalty item for abnormally low display, when and hour, The value is The product of the penalty cardinality; otherwise Take zero. These are manual or ad placement-level optimization items, configured by operations personnel through the backend management interface. The configured values can be positive or negative. When a specific ad placement is configured with a dedicated coefficient, the system prioritizes using that ad placement-level coefficient to override the global coefficient. In this embodiment, a set of global default coefficients determined through offline grid search combined with cross-validation is... , , , , , , .
[0060] The scoring calculation is performed using a distributed batch processing framework. The system divides all scoring keys into 256 partitions based on their hash values modulo 256, with each partition processed by an independent Spark task. Each task reads the 30-day summary count data of all keys within its partition, calculates the score for each key, and outputs the score in the format (key hash value, score value). The system generates a four-tuple record containing the partition label, calculation timestamp, and other metrics. After the full score calculation is completed, the system performs post-processing steps: first, it checks the four count metrics for each key. , , , If all values are zero, keys with all zero values (i.e., keys with no historical data in the statistics window) are directly assigned a cold start probability partition label. Then, for the remaining keys with data support, partition labels are assigned based on their score values—scores greater than zero are assigned a warm start partition label, and scores less than or equal to zero are assigned a cold start partition label. The priority rule here is: determining if all count indicators are zero takes precedence over comparing score values.
[0061] The system performs a blocking decision offline, excluding keys with extremely poor performance from the recall candidate set. The blocking decision rule is: if... and ,or and If so, the key is marked as masked, and the masking mark is written to the corresponding record in the cache.
[0062] The score calculation results are written to the Redis Cluster distributed cache in batches. The cache key format is an `adscore` prefix followed by a 32-bit hash value of the score key. The value is a JSON serialized score record containing four fields: score value, partition label, mask flag, and last update timestamp. Cache writes use a pipelined batch write method, writing 1000 records per batch. The system employs an incremental update strategy: after the daily score calculation is completed, the system compares the new calculation result with the existing records in the cache one by one. The write operation is only performed when the score value or partition label has changed, and the full refresh cycle is 24 hours. The amount of data updated incrementally is approximately 5% to 15% of the total. The end-to-end cache synchronization latency does not exceed 60 seconds.
[0063] During SDK initialization, a full rating cache snapshot is requested via an HTTPS interface. The SDK includes the last synchronization timestamp in the request header. The aggregation backend uses this timestamp to determine whether to return the full data or only the incrementally changed data. The SDK writes the received rating data to a local SQLite database. The primary key of the rating table is the hash value of the rating key, and the table contains four fields: rating value, partition tag, blocking flag, and synchronization timestamp. The local cache validity period is set to 30 minutes. After the validity period expires, the SDK will fetch the data again when the next ad request is triggered. During the online ad request processing, if the rating record for the target key is not found in the local cache, the SDK asynchronously initiates a remote cache query request with a timeout threshold of 200 milliseconds. If the remote cache returns a result within the timeout, the result is used for subsequent routing decisions; if no result is returned within the timeout, the key is processed according to the cold start probability path and participates in this round of recall using the default exploration probability.
[0064] S2: Three-Region Recall Ranking and Capacity Allocation
[0065] Step S2 is executed before building the waterfall queue. The SDK performs three-region routing selection, probability exploration sampling, and concurrent capacity allocation for each ad source based on the multi-dimensional quality score data calculated in step S1. The result of the three-region recall selection is used as the input of candidate ad sources for the subsequent construction of the waterfall queue.
[0066] For ad sources tagged as "hot start score zone," the system sorts them from highest to lowest score, generating an ordered candidate list for the hot start score zone. For ad sources tagged as "cold start score zone," the system sorts them from lowest to highest absolute score (i.e., scores closer to zero appear earlier), generating an ordered candidate list for the cold start score zone. For ad sources tagged as "cold start probability zone," the system calculates the exploration recall probability based on their real-time query frequency, then randomly samples ad sources according to this probability, adding the sampled ad sources to the candidate list for the cold start probability zone.
[0067] The exploration recall probability The calculation formula is shown in formula (2):
[0068] (2)
[0069] in To explore the strength coefficient, a value of 10 is used in this embodiment; This refers to the real-time query frequency corresponding to the ad source. Not less than 1, and its statistical method is the average number of requests within a preset time window (defined as the most recent 5 minutes in this embodiment) before the current ad request occurs, as statistically analyzed locally by the SDK. The meaning of this formula is: when the query frequency... When it is 100, Approximately equivalent to version 1.0, it fully explores new advertising sources in low-traffic scenarios; when When it is 2500, Approximately equal to 0.2, in high-traffic scenarios, exploration is only allowed with a 20% probability to avoid blind exploration consuming excessive request resources. The specific implementation of random sampling is as follows: the system generates a random floating-point number uniformly distributed within the interval [0,1). If this random number is less than or equal to... If the sampling passes, the ad source is skipped; otherwise, it is skipped.
[0070] For ad sources marked as blacklisted and configured for demotion, the system does not discard them directly. Instead, it calculates a dynamic recall probability based on their score's position relative to the scores of all valid ad sources in the current request. This dynamic recall probability... The calculation formula is shown in formula (3):
[0071] (3)
[0072] in The maximum absolute score of all valid ad sources in the current request. This is the minimum value. When the number of effective ad sources is less than two or... equal When this happens, the system directly discards the blacklisted ad source. This square normalization method allows blacklisted ad sources with relatively high scores to retain some forwarding opportunities, while blacklisted ad sources with relatively low scores are severely downgraded to a recall probability close to zero. Furthermore, to prevent the denominator from being zero, when... In such cases, a direct discard strategy is adopted.
[0073] The system adjusts the ad source rating based on order priority. Order Priority The value range is from 1 to 5, where A value of 3 indicates the default priority, which has zero impact on the rating. A score greater than 3 indicates high priority and generates positive bonus points; A value less than 3 indicates low priority and results in a negative deduction. Adjust the step size. In this embodiment, the value is 2. The priority influence function is defined as shown in formula (4):
[0074] (4)
[0075] For positive-scoring ad sources in the hot start score zone, the adjusted score is... Equal to the original score Plus That is, as shown in formula (5):
[0076] (5)
[0077] For ad sources with negative scores in the cold start score zone, in order to maintain their negative score characteristics and prevent low-quality, high-priority orders from using positive bonuses to boost their rankings, the adjusted score... Original rating Subtract the absolute value of the function value affected by priority, as shown in formula (6):
[0078] (6)
[0079] The meaning of this differentiated treatment is that high-priority orders gain higher positive competitiveness in the hot start zone, while in the cold start zone, their ranking position is further reduced due to the increase in the absolute value of negative scores, thus preventing low-quality but high-priority ad sources from obtaining excessive exploration resources.
[0080] The system allocates capacity for candidate ad sources that meet the three-region recall selection criteria to determine the maximum number of candidates that can enter the subsequent waterfall queue in each region. Recall pool candidate capacity limit. The calculation formula is shown in formula (7):
[0081] (7)
[0082] Available capacity of the cold start probability zone The calculation formula is shown in formula (8):
[0083] (8)
[0084] in The baseline concurrency of the traffic pool is 16 in this embodiment, i.e. It equals 32; This represents the number of concurrent connections already used for the warm start and cold start partitions. To preserve concurrency, the value is set to 2 in this embodiment. The allocation priority of the three regions is as follows: the hot start region is higher than the cold start region, and the cold start region is higher than the cold start probability region. After the sorting and allocation are completed, when multiple ad orders simultaneously recall the same channel ad slot, the system only retains the ad source with the highest adjusted score to avoid the same channel ad slot repeatedly occupying the concurrent request quota. It should be noted that the KEY marked as blocked has been excluded in the blocking determination stage of step S1 and will not enter the three-region recall selection in this step; blocking determination takes precedence over blacklist downgrading processing.
[0085] The list of candidate ad sources in the three regions output in this step serves as the input data for building the waterfall queue in step S3. Each ad source in the list carries its respective region label and adjusted score for subsequent capacity allocation and priority determination.
[0086] S3: Waterfall Queue Construction and Dynamic Price Layer Recognition
[0087] Step S3 is executed in real-time in the mobile SDK, responsible for building the sorted ad source waterfall queue and inserting the real-time Header Bidding results into the corresponding positions in the queue according to price. It should be noted that the three-region sorting in step S2 is used to determine the priority of candidate ad sources during capacity allocation (hot-start regions have priority in occupying concurrent quotas), while the queue sorting in this step is used to determine the price progression order of ad requests (higher prices are requested first). These two steps serve different scheduling layers.
[0088] When an ad slot triggers an ad request, the SDK reads the ad source list configured for that ad slot from the local cache. This list is the set of candidate ad sources selected after the three-region recall in step S2. Each ad source's configuration record includes the following fields: ad source identifier, associated ad source, predicted floor price (in cents per thousand impressions), priority (value range 1 to 5, default value 3), a boolean flag indicating whether it is a Header Bidding source, request timeout (in milliseconds, default value 1500 milliseconds), and the associated scoring KEY. After reading the configuration list, the SDK immediately initiates concurrent real-time bidding requests for the ad sources marked as Header Bidding. During the Header Bidding bidding waiting period, the SDK first sorts the fixed-price sources in the waterfall flow according to the predicted floor price, constructing an initial waterfall flow queue. After the Header Bidding bidding result is determined (hbTimeout expires or all bids return), the Header Bidding source is then inserted into the corresponding position in the sorted queue according to its real-time bidding price or the fallback price.
[0089] The execution flow of the Header Bidding auction is as follows: The SDK creates an independent HTTP request task for each Header Bidding source. All tasks are executed concurrently through a thread pool, and a timer is started simultaneously. The timer duration is hbTimeout, which is 800 milliseconds as set in this embodiment. When any bidding request returns a result before timeout, the SDK records the returned bidding price. When the 800-millisecond timer expires, the SDK checks the return status of all Header Bidding sources—using the real-time price for sources that have returned a bidding price, and using the configured predicted floor price as a fallback price for sources that have not yet returned a price. All bidding tasks are canceled after the timer expires to prevent resource leakage. It should be noted that the bidding request of the Header Bidding source (to obtain the real-time bidding price hbBidPrice) and the advertising request (to obtain advertising materials) of the source in step S4 are two independent API calls; the timeout of the bidding request only affects the price acquisition stage (after timeout, the fallback price is used instead), and does not affect the subsequent normal initiation of advertising requests to the advertising source to obtain populated materials in step S4.
[0090] The specific steps for constructing a queue are as follows:
[0091] The SDK maintains an ordered queue of ad sources. .
[0092] The queues are sorted in descending order of price. If prices are the same, they are sorted in descending order of priority (a smaller priority value indicates higher priority, so for the same price, the smaller value appears first). When both price and priority are the same, the Header Bidding source is placed before the fixed-price source in the waterfall flow. After sorting, the initial status of all nodes is set to PENDING.
[0093] Once the Header Bidding source obtains the real-time bid price hbBidPrice, the SDK inserts it into the queue according to price and priority:
[0094] After the Header Bidding source is inserted, it participates in the subsequent price layer identification and bidding decision-making together with the fixed price source in the waterfall flow. The basic data structure of each node in the queue during the sorting and HB insertion stages is as follows: .
[0095] This solution dynamically determines the set of ad sources that can be requested in parallel based on the price at the head of the queue during runtime, and executes concurrent requests within the set. The specific steps are as follows.
[0096] First, the SDK maintains an ordered queue of ad source requests. After entering the price layer identification and adjudication stage, the complete data structure definition for each node in the queue is as follows:
[0097]
[0098] `effective_price` represents the effective price for ranking and adjudication: for Header Bidding sources that return a bid price normally within the `hbTimeout` period of the queue construction phase, this value is the real-time bid price; for Header Bidding sources that participate with a fallback price after `hbTimeout` expires, this value is the predicted floor price (such sources will be specially handled in the subsequent `winnerDetermined` adjudication); for fixed-price sources in the waterfall flow, this value is the predicted floor price configured in the backend. `priority` represents the ad source priority; the smaller the value, the higher the priority. `status` is a node status enumeration, including `PENDING` (pending request), `FETCHING` (requesting), `FILLED` (successfully filled), `FAILED` (request failed), and `SKIPPED` (skipped). `callback_data` is a callback data container used to store the ad creative metadata returned by the ad source.
[0099] When the system needs to initiate a new round of concurrent requests (including the initial request and scenarios where the previous level has no valid fill and needs to be pushed to the next level), the SDK reads the effective_price of the first ad source with a status of PENDING at the head of the queue as the base price. Its definition is shown in formula (9):
[0100] (9)
[0101] Where first indicates by queue The effective_price is the first node with a status of PENDING in the descending price sorting. Nodes marked as SKIPPED, FAILED, or FILLED in the previous layer advancement are automatically skipped during price layer identification because their status is not PENDING.
[0102] Then, the SDK assigns all queue nodes that meet the following conditions to the current price tier L: the node's status is PENDING, and its effective_price is equal to the price level L. The absolute value of the difference is less than the preset price tolerance threshold epsilon. Epsilon is a preset floating-point price tolerance threshold used to handle differences in price accuracy and extremely small price deviations between different advertising sources; its value ranges from 0.005 to 0.02. In this embodiment, epsilon is set to 0.01 yuan per thousand impressions, as shown in formula (10):
[0103] (10)
[0104] If price layer If the number of nodes exceeds the preset maximum concurrency of a single layer, maxParallelCount, the SDK sorts them by priority and only retains the first maxParallelCount nodes, keeping the excess nodes in a queue to await subsequent scheduling; if the number of nodes does not exceed the limit, all nodes are retained, as shown in formula (11).
[0105] (11)
[0106] In this embodiment, `maxParallelCount` is set to 6. `maxParallelCount` is a preset maximum concurrency for a single layer, ranging from 4 to 10. The final set of retained nodes is the current price layer's ad source set, `CurrentLayerSet`. Note that nodes exceeding the `maxParallelCount` limit still have a `PENDING` status. After the current layer's requests and decisions are completed, price layer identification is re-executed during layer progression, and the `effective_price` of these exceeding nodes is... The difference is still within the tolerance range. Therefore, it will be assigned to the new current price tier. This approach is equivalent to batching requests within the same price tier in parallel due to concurrency limitations.
[0107] Furthermore, this embodiment also handles the scenario where the price of a Header Bidding source is updated during the request process. When a Header Bidding source that previously used a predicted floor price (safety net price) for sorting returns the actual bid price before the waterfall request process has ended, the SDK will execute the following logic:
[0108] Price Update: The SDK immediately updates the effective_price of the corresponding Header Bidding source node in the queue using the actual auction price.
[0109] The ruling takes effect: The updated true price will be immediately used for the winner ruling in the current or subsequent tiers.
[0110] This mechanism ensures that the selection of the final winner is always based on the most accurate price information, thereby guaranteeing advertising revenue.
[0111] S4: Intra-layer parallel requests and double timeout decision
[0112] Once the current price layer is determined, the SDK initializes a concurrent counter, `activeCount`, with its initial value set to the size of `CurrentLayerSet`. The SDK iterates through each node in `CurrentLayerSet` and performs the following operations: updates the node's status to `FETCHING`, submits an asynchronous ad request task via a thread pool, binds a callback handler to the task, and encapsulates the subsequent processing logic for the returned result within the callback handler. The core thread count of the thread pool is set to `maxParallelCount`, the maximum thread count is set to twice `maxParallelCount`, and the queue capacity is set to 64.
[0113] When any ad source returns a response or a timeout occurs, the SDK executes the response processing logic in the callback thread. Since callbacks from multiple ad sources may occur simultaneously, the status update (updating the node status to FILLED or FAILED) and the decrementing of the concurrent counter (activeCount decremented by one) employ atomic operations or locking mechanisms to ensure data consistency in a multi-threaded environment. If the ad source returns successful filling, the SDK updates the node's status to FILLED, writes the returned ad creative metadata to the callback_data field, and then triggers a ruling check event. If the ad source returns no filling or a network error occurs, the SDK updates the node's status to FAILED. After processing the response of each node, the SDK decrements the activeCount by one. When the activeCount reaches zero, the SDK triggers a tier completion event. Both the ruling check event and the tier completion event are sent to the event queue of the ruling module, which processes them in the order they arrive.
[0114] This step achieves a balance between low latency and high returns through the coordinated work of three layers of timeout constraints and an active adjudication mechanism.
[0115] The system maintains three independent timers. The first timer is the overall ad slot timeout timer, which starts counting from the moment the ad slot request is initiated, and the counting duration is adSlotTimeout (5000 milliseconds) set in this embodiment. When this timer expires, the system immediately cancels all incomplete ad requests, regardless of the current price layer, and forces the system to proceed to the final adjudication step. The second timer is the layer timeout timer, which starts counting from the moment the request for the current price layer CurrentLayerSet is initiated, and the counting duration is layerTimeout (1500 milliseconds) set in this embodiment. When this timer expires, the system marks all nodes in the current layer whose status is still FETCHING as SKIPPED and cancels the corresponding request tasks, and then immediately proceeds to the adjudication step of the current layer. The third timer is the Header Bidding timeout timer, used in the bidding phase of step S3, and the counting duration is hbTimeout (800 milliseconds) set in this embodiment. With default parameters, adSlotTimeout is 5000 milliseconds. After deducting hbTimeout's 800 milliseconds, the remaining 4200 milliseconds can be used for layer requests. It supports a maximum of two complete layerTimeout (2×1500=3000 milliseconds) rollbacks. In actual operation, since the winnerDetermined mechanism usually only needs one or two layers to determine the winner, adSlotTimeout is sufficient to cover the normal request process.
[0116] The `winnerDetermined` early return decision mechanism executes when the decision check event is triggered. Its purpose is to determine the optimal winner based on the returned results without waiting for all ad sources in the current price layer to return. The specific decision algorithm is as follows: Let `ResultSet` be the set of nodes that have returned and whose status is `FILLED`, and let `PendingSet` be the set of nodes in the current price layer whose status is still `FETCHING`. It is important to clarify that the comparison between `ResultSet` and `PendingSet` is limited to ad source nodes within the current price layer `L_k`, and does not involve ad sources in subsequent price layers—because the layers use a strict sequential progression, ad sources in subsequent price layers have not yet initiated requests before the current layer's decision is completed, and their nodes are not in `PendingSet`. If `ResultSet` is empty, it is determined that early decision cannot be made, and the system continues to wait for subsequent returned results.
[0117] Before making an early decision, the system first checks if the PendingSet contains HeaderBidding sources marked as true (isHB). If a HeaderBidding source exists in the PendingSet, the system does not make an early decision and continues to wait for all HeaderBidding sources to return. This is because a HeaderBidding source may enter the queue with its predicted floor price as a fallback price due to hbTimeout timeout during the queue construction phase, but its ad request may still carry an actual transaction price higher than that fallback price. If the HeaderBidding source in the PendingSet is currently using the fallback price, but the actual transaction price may be higher, the TheoreticalBest calculated based on the fallback price will underestimate the competitiveness of that source, leading to a misjudgment of winnerDetermined. Therefore, the system can only perform further early decision-making after all HeaderBidding sources in the PendingSet have returned. When the actual returned price of a HeaderBidding source is inconsistent with its fallback price (whether higher or lower than the fallback price), the system updates the effective_price of that node with the actual returned price, ensuring that subsequent TheoreticalBest calculations and decision-making are based on the true price.
[0118] If the PendingSet does not contain a Header Bidding source, the system proceeds to the following decision process. The node with the highest overall score is selected from the ResultSet as the CurrentWinner. The overall score comparison rules are as follows: first, compare the effective_price; the higher price wins. If the prices are the same, compare the priority; the node with the lower priority value wins. Then, the node with the highest theoretical potential, TheoreticalBest, is found from the PendingSet. The search method is: traverse the PendingSet, find the node with the highest effective_price. If multiple nodes have the same effective_price, select the node with the smallest priority value. The price of this node is denoted as P_max_pending, and its priority as Prior_max_pending.
[0119] The determination of the insurmountable condition is as follows: Compare the attribute values of CurrentWinner and TheoreticalBest. If any of the following conditions are met, it is determined that CurrentWinner cannot be surpassed by any node in PendingSet that has not yet returned. The system immediately terminates the remaining wait at the current price level, updates the status of all nodes in PendingSet to SKIPPED, and cancels the corresponding network requests:
[0120] Condition 1 (Absolute Price Advantage): CurrentWinner's effective_price is strictly higher than P_max_pending. At this point, regardless of the priority of the nodes in the PendingSet, it is impossible for them to surpass CurrentWinner in terms of revenue (price), and there is no need to wait for it to return.
[0121] Condition 2 (Priority Advantage for Same Price): The difference between CurrentWinner's effective_price and P_max_pending is within the preset tolerance ε, and CurrentWinner's priority value is less than or equal to Priorner's priority_max_pending. In this case, the price does not have an absolute advantage, but at the same price level, its priority is not inferior to any unreturned source, and continuing to wait will not produce a better result.
[0122] Conditions one and two above are logically OR—either condition being true triggers an early return; if neither is met, the system continues to wait for the results from the nodes in the PendingSet. In this embodiment, the core implementation code for this decision logic is as follows:
[0123]
[0124] The hierarchical progression logic executes when any one of the following four conditions is met:
[0125]
[0126] Here, `allReturned(L_k)` indicates that all nodes within the current price layer `L_k` have returned (i.e., `activeCount` has been reduced to zero), `layerTimeout` indicates that the timeout timer within the layer has expired, `adSlotTimeout` indicates that the overall timeout timer for the ad slot has expired, and `winnerDetermined(L_k)` indicates that the early return decision has been approved. When advancing through the layers, if any of the above conditions are met, the system first checks if there are any nodes with a status of `FILLED` in the current price layer. If so, it selects the node with the highest `effective_price` and the best `priority` as the final winner, ends the entire ad request process, and returns the ad creative for display. If there are no `FILLED` nodes, it indicates that the current price layer has no effective fill. The SDK re-executes the price layer identification sub-step from the remaining nodes with a status of `PENDING` in the current queue, identifies the next price layer, and initiates a new round of requests without rebuilding the queue or re-executing the HB bidding insertion. Before executing the next level request, if it is detected that the `adSlotTimeout` timer has expired, the entire process is immediately terminated, and a no-fill result is returned.
[0127] This embodiment also handles a specific boundary case. When the real-time bidding price of a Header Bidding ad source is exactly the same as the fixed price of a certain waterfall ad source, and the difference is within the epsilon tolerance range, the system introduces a source priority correction coefficient in the winnerDetermined priority comparison. Specifically, the system applies a virtual bonus of 0.1 to the effective priority of the Header Bidding source, that is, its priority value is reduced by 0.1 during the comparison, so that the Header Bidding source has a slight advantage at the same price, in order to encourage real-time bidding competition. This correction coefficient can be adjusted through the strategy configuration module. If the waterfall ad source ultimately wins with its higher configured priority (i.e., a smaller priority value), the system grants the display opportunity to the waterfall ad source, but at the same time, it transfers the case to the statistics and consistency processing module to record the Header Bidding source's bidding failure event.
[0128] S5: Header Bidding Consistency Processing and Statistical Reporting
[0129] Step S5 is responsible for handling the consistent attribution of Header Bidding ad source bidding results, as well as the recording and reporting of statistical events for each dimension.
[0130] After the bidding process is completed, the system checks the source type of the final winner. If the Header Bidding ad source wins in the aforementioned adjudication step and is ultimately displayed, the system generates a successful bidding event record of type hb_won. This record contains three fields: the Header Bidding ad source identifier, the real-time bidding price, and the final display price. It is then reported to the attribution module in the aggregation backend through the data pipeline.
[0131] If a Header Bidding ad is replaced by a fixed-price waterfall ad during the bidding process and fails to receive impressions (i.e., the boundary case described in the aforementioned adjudication steps), the system generates a bidding failure event record of type hb_lost. This record contains four fields: the identifier of the Header Bidding ad, the real-time bidding price, the identifier of the waterfall ad that replaced it, and the bidding price of the replacing ad. This bidding failure event is also reported to the attribution module through the data pipeline. The attribution module then corrects the win rate statistics for the Header Bidding channel based on this information, avoiding overestimation of the actual fill capacity of the Header Bidding channel by only counting successful bidding events.
[0132] The system records and reports the following statistical events: Ad slot request events (type `ad_slot_request`) are generated at the end of each aggregation request process, containing three fields: ad slot identifier, total request time, and final fill result. Ad source request events (type `source_request`) are generated each time the SDK initiates a network request to the ad source, containing three fields: ad source identifier, request time, and request result status (successful fill, no fill, timeout, network error). Layer failure events (type `layer_failure`) are generated each time the current price layer fails to fill and the process moves to the next layer, containing two fields: layer number and failure reason (all no fill, all timeout, mixed failure). Ad display events (type `display`) are generated after the final winner is determined, containing two fields: winner identifier and bid price.
[0133] The reporting of the aforementioned statistical events employs a batch buffering mechanism. The SDK maintains an event buffer queue in memory, with a maximum capacity of 200 entries. Each time an event is generated, the SDK appends it to the end of the queue. When the queue reaches its capacity limit, the SDK sends all events in the queue to the aggregation backend's data receiving interface via a single HTTP POST request. Simultaneously, the SDK maintains an interval timer with a 5-second interval. When the timer expires, even if the queue is not full, the SDK will still send all events in the queue in batches to ensure the real-time nature of the event data. If an HTTP request fails due to network issues, the SDK writes the unsent events to a pending report in the local SQLite database. Once the network recovers, the SDK initiates a re-reporting process, retrieving the unsent events from the pending report and re-performing the batch reporting.
[0134] To verify the technical effectiveness of this solution, the inventors conducted a comparative experiment in a mobile application that simultaneously accesses five advertising sources.
[0135] The experimental configuration is as follows: There are 5 ad slots, each with 5 to 8 ad sources. The timeout for a single ad source request is set to 1.5 seconds, the total timeout for all ad slots is set to 5.0 seconds, maxParallelCount is set to 6, and C_pool is set to 16. The experiment was run under the same network environment and user traffic. The control group used the traditional pure serial waterfall scheme, while the experimental group used this scheme.
[0136] The experimental data for each dimension are summarized in Table 1:
[0137] Table 1. Performance Index Comparison Experimental Data
[0138]
[0139] The experimental data above shows that: the reduction in latency is mainly due to the dynamic price layer identification in step S3, which changes the serial requests of ad sources with the same revenue level to parallel requests, and the further compression of the actual average latency by the winnerDetermined mechanism in step S4; the improvement in fill rate is due to the three-region recall ranking in steps S2 and S4, which allows high-quality ad sources to obtain request quotas first; the cold start exploration effect is due to the automatic adjustment of the exploration intensity by the square root decay characteristic of the QPS adaptive probability formula in step S4; the significant decrease in the blacklist false positive rate is attributed to the amplification effect of the square normalization formula on the scoring difference in step S4; the elimination of attribution bias is due to the independent reporting mechanism of bidding failure events in step S5; and the adaptive control of concurrency is due to the dual constraints of dynamic price layer identification and maxParallelCount in step S3.
[0140] II. Parallel Request Scheduling and Recall Ranking System of Ad Aggregation SDK
[0141] Reference Figure 2 The present invention also provides a parallel request scheduling and recall ranking system for an advertising aggregation SDK based on dynamic price layer recognition and multi-dimensional quality scoring. The system includes:
[0142] The data collection and scoring module is used to collect historical data of each advertising source within the statistical window, calculate the multi-dimensional quality score of each advertising source in terms of advertising position, package name, order and channel advertising position combination according to the 7-coefficient weighting formula, perform blocking judgment and cold and hot start partition marking, and synchronize the scoring results to the distributed cache.
[0143] The strategy configuration module is used to manage configurable parameters such as global scoring coefficient and ad placement-level coverage coefficient, Header Bidding bidding timeout and price caching strategy, blacklist strategy, traffic pool baseline concurrency and exploration intensity coefficient;
[0144] The request scheduling module is used to receive ad slot requests, build a waterfall queue, insert the real-time bidding results of Header Bidding into the queue according to price, dynamically identify the current price layer based on the predicted price of the ad source at the head of the queue, initiate requests to ad sources in parallel within the current price layer and proceed serially according to the layer, manage the timeout within the management layer and the overall timeout of the ad slot with a dual timeout constraint, select the winning ad source according to price and priority and execute the early return decision.
[0145] The recall and sorting module is used to divide candidate ad sources into hot start region, cold start region and cold start probability region based on the scoring data. It performs exploratory probability sampling and dynamic weighted probability sampling on the cold start probability region and blacklist ad sources respectively, and sorts and allocates them according to the region priority and the upper limit of the refresh pool candidate capacity and performs fine sorting and deduplication.
[0146] The statistics and consistency processing module is used to identify the final display status of the Header Bidding ad source and generate a bid failure event report when it wins the bid but is not displayed, as well as record and report statistical events such as ad slot requests, ad source requests, tier failures, ad filling and display.
[0147] The specific implementation methods of the above modules have been described in detail in the method steps S1 to S5, and will not be repeated here.
[0148] For a detailed description of this embodiment, please refer to the corresponding descriptions in the foregoing embodiments, which will not be repeated here.
[0149] The basic principles of the present invention have been described above with reference to specific embodiments. However, it should be noted that the advantages, benefits, and effects mentioned in the present invention are merely examples and not limitations, and should not be considered as essential features of each embodiment of the present invention. Furthermore, the specific details disclosed above are for illustrative and facilitative purposes only, and are not limitations. These details do not limit the present invention to the necessity of employing the aforementioned specific details.
[0150] In this invention, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. The block diagrams of devices, apparatuses, devices, and systems involved in this invention are merely illustrative examples and are not intended to require or imply that they must be connected, arranged, or configured in the manner shown in the block diagrams. As those skilled in the art will recognize, these devices, apparatuses, devices, and systems can be connected, arranged, and configured in any manner. Words such as "comprising," "including," "having," etc., are open-ended terms meaning "including but not limited to," and are used interchangeably with them. The terms "or" and "and" as used herein refer to the terms "and / or," and are used interchangeably with them unless the context clearly indicates otherwise. The term "such as" as used herein refers to the phrase "such as but not limited to," and is used interchangeably with it.
[0151] Additionally, as used herein, the "or" used in a list of items beginning with "at least one" indicates a separate list, such that a list of, for example, "at least one of A, B, or C" means A or B or C, or AB or AC or BC, or ABC (i.e., A and B and C). Furthermore, the word "exemplary" does not imply that the described example is preferred or better than other examples.
[0152] It should also be noted that in the system and method of the present invention, the components or steps can be decomposed and / or recombined. These decompositions and / or recombinations should be considered as equivalent solutions of the present invention.
[0153] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the invention. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein can be applied to other aspects without departing from the scope of the invention. Therefore, the invention is not intended to be limited to the aspects shown herein, but rather to be carried out within the widest scope consistent with the principles and novel features disclosed herein.
[0154] The above description has been given for purposes of illustration and description. Furthermore, this description is not intended to limit the embodiments of the invention to the forms disclosed herein. Although numerous exemplary aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, alterations, additions, and sub-combinations thereof.
Claims
1. A parallel request scheduling and recall ranking method for an advertising aggregation SDK based on dynamic price layer identification and multi-dimensional quality scoring, characterized in that, include: The aggregation backend collects the number of requests, fills, impressions, and clicks for each ad source within the statistics window. Based on these statistics, it calculates a multi-dimensional quality score for each ad source across ad placement, package name, order, and channel ad placement combination dimensions, resulting in quality score data and three categories of partition tags: hot start score, cold start score, and cold start probability. During mobile SDK initialization, it obtains the ad source configuration, the quality score data, and blacklist records issued by the aggregation backend. Based on the quality score data, each ad source is divided into a hot start region, a cold start region, and a cold start probability region. The three-region recall selection is performed in the order of priority for hot start region, followed by cold start region, and lastly for cold start probability region. A waterfall queue of candidate ad sources is constructed based on the results of the three-region recall selection. When an ad slot triggers an ad request, the real-time bidding price of the Header Bidding is inserted into the corresponding position of the waterfall queue according to the price level, and the predicted price of the first ad source to be requested in the queue is obtained. All ad sources to be requested whose predicted price in the queue is within the preset tolerance range are included in the current price layer to obtain the ad source set of the current price layer. Simultaneously initiate advertising requests to the set of advertising sources in the current price layer, and execute a decision when the entire current price layer or the entire advertising slot times out. If there are fill results in the current price layer, select the winning advertising source according to price and priority, and trigger early return when preset conditions are met. If there are no fill results in the current price layer, proceed to the next price layer to obtain the final display advertising source. For ad sources that win the Header Bidding bid but do not receive the final display, generate a bid failure event and report bid failure data, instead of reporting bid success data, to obtain statistical attribution data consistent with the actual display results.
2. The method according to claim 1, characterized in that, Simultaneously initiating advertising requests to the advertising source set of the current price tier includes: Simultaneously initiate ad requests to all ad sources within the current price tier, and monitor the callback status of each ad source in real time during the ad request process; The request waiting for the current price layer is terminated when any of the following conditions are met: all ad sources in the current price layer have returned, the current price layer has timed out, the entire ad slot has timed out, or the winner in the returned fill results cannot be surpassed by an ad source in the current price layer that has not yet returned. The criteria for determining that the winner cannot be surpassed are: the highest-priced and highest-priority ad source among the returned results has a price higher than the highest price among any ad source that has not yet been returned in the current price tier; or the difference between its price and the highest price is within a preset tolerance range, and its priority is not inferior to the best priority among the unreturned ad sources whose price difference with the highest price is within the preset tolerance range.
3. The method according to claim 1, characterized in that, The multidimensional quality score is calculated as follows: The request volume metric is calculated based on the number of requests made by each ad source within the statistics window; the fill rate metric is calculated based on the ratio of the number of fills to the number of requests; the fill-to-impression rate metric is calculated based on the ratio of the number of impressions to the number of fills; and the click-through rate metric is calculated based on the ratio of the number of clicks to the number of impressions. The corresponding weighting coefficients are configured for the request volume index, fill rate index, fill-to-display ratio index, click-through rate index, and the logarithmic transformation values of the number of impressions and the number of clicks, and the basic score is obtained by summing the weighted results. An abnormally low fill penalty is imposed on ad sources with a fill rate lower than the first preset threshold and a number of requests exceeding the second preset threshold; an abnormally low display penalty is imposed on ad sources with a fill-display rate lower than the third preset threshold and a number of fills exceeding the fourth preset threshold. The multidimensional quality score is obtained by subtracting the abnormally low fill penalty and the abnormally low display penalty from the base score and adding the manual tuning item.
4. The method according to claim 1, characterized in that, Candidate ad sources are divided into a hot start region, a cold start region, and a cold start probability region, including: The advertising sources with positive multidimensional quality scores are assigned to the hot start area and sorted in descending order of scores to obtain the hot start scoring area advertising source sequence. Ad sources with negative or zero multidimensional quality scores are classified into the cold start region and sorted in ascending order of absolute score value, so that the ad sources with absolute score values closer to zero are ranked higher, thus obtaining the cold start region ad source sequence. Ad sources with empty multidimensional quality score data are classified into the cold start probability region, and the exploration recall probability is calculated based on the real-time query frequency corresponding to the ad source. The lower the query frequency, the higher the exploration recall probability. Sampling is performed according to the exploration recall probability to obtain the ad source sequence in the cold start probability region.
5. The method according to claim 1, characterized in that, The method also includes dynamic demotion of blacklisted advertising sources: For blacklisted ad sources configured with a demotion strategy, obtain the absolute score values of all valid ad sources in the current request, and determine the highest and lowest absolute score values; The dynamic recall probability of the blacklisted advertising source is calculated based on the square of the normalized ratio of the difference between the absolute score of the blacklisted advertising source and the lowest absolute score to the difference between the highest absolute score and the lowest absolute score. The blacklisted advertising sources are sampled according to the dynamic recall probability. If the sampling passes, the advertising source is retained for recall. If the sampling fails, the advertising source is discarded.
6. The method according to claim 1, characterized in that, The method also includes dynamic allocation of concurrent capacity across three regions: The upper limit of the recall pool candidate capacity for a single ad request is set to twice the baseline concurrency of the traffic pool. The upper limit of the candidate capacity limits the total number of candidate ad sources participating in the recall selection, which is different from the number of ad requests actually initiated simultaneously within the same price level, which is limited by the maximum concurrency of a single layer, maxParallelCount. The hot start region, cold start region, and cold start probability region occupy the candidate capacity in order of allocation priority, wherein the hot start region has a higher priority than the cold start region, and the cold start region has a higher priority than the cold start probability region. The available capacity of the cold start probability region is the upper limit of the candidate capacity minus the number of candidates already occupied by the warm start region and the cold start region, and then minus the number of reserved concurrency.
7. The method according to claim 1, characterized in that, The method also includes consistency processing for the Header Bidding bidding results: After obtaining the real-time bidding price, the Header Bidding ad source inserts it into the corresponding price sorting position in the waterfall queue according to the real-time bidding price, and participates in dynamic price layer identification and bidding adjudication together with the fixed-price ad source in the waterfall flow. When a Header Bidding ad wins the bid and is ultimately displayed, a successful bid event is generated and reported. When a Header Bidding ad wins the bid but is replaced by a higher-priority fixed-price waterfall ad and fails to be displayed, a failed bid event is generated and reported. The failed bid event data includes the identifier of the Header Bidding ad and the identifier of the ad that replaced it.
8. A parallel request scheduling and recall ranking system for an advertising aggregation SDK based on dynamic price layer recognition and multi-dimensional quality scoring, characterized in that, The system for implementing the method of any one of claims 1 to 7 comprises: The data collection and scoring module is used to collect historical data of each advertising source within the statistical window, calculate the multi-dimensional quality score of each advertising source in terms of advertising position, package name, order and channel advertising position combination according to the 7-coefficient weighting formula, perform blocking judgment and cold and hot start partition marking, and synchronize the scoring results to the distributed cache. The strategy configuration module is used to manage configurable parameters such as global scoring coefficient and ad placement-level coverage coefficient, Header Bidding bidding timeout and price caching strategy, blacklist strategy, traffic pool baseline concurrency and exploration intensity coefficient; The request scheduling module is used to receive ad slot requests, build a waterfall queue, insert the real-time bidding results of Header Bidding into the queue according to price, dynamically identify the current price layer based on the predicted price of the ad source at the head of the queue, initiate requests to ad sources in parallel within the current price layer and proceed serially according to the layer, manage the timeout within the management layer and the overall timeout of the ad slot with a dual timeout constraint, select the winning ad source according to price and priority and execute the early return decision. The recall and sorting module is used to divide candidate ad sources into hot start region, cold start region and cold start probability region based on the scoring data. It performs exploratory probability sampling and dynamic weighted probability sampling on the cold start probability region and blacklist ad sources respectively, and sorts and allocates them according to the region priority and the upper limit of the refresh pool candidate capacity and performs fine sorting and deduplication. The statistics and consistency processing module is used to identify the final display status of the Header Bidding ad source and generate a bid failure event report when it wins the bid but is not displayed, as well as record and report statistical events such as ad slot requests, ad source requests, tier failures, ad filling and display.
