Media data delivery method and device, computer equipment, readable storage medium and program product
By analyzing the parameters of the media data traffic request to determine the target RTA data table and query the matching delivery strategy, it solves the problem of low efficiency in traditional delivery methods and achieves more efficient media data delivery.
Patent Information
- Application Number
- CN202411040182.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2024-10-29
AI Technical Summary
Traditional media data delivery methods are inefficient when processing large amounts of data, affecting delivery efficiency.
By receiving the media data traffic request from the media platform, parsing the request parameters to determine the target RTA data table, querying and returning the matching delivery strategy, using a storage structure in which multiple tag values correspond to one key-value pair, reducing the number of data reads and network bandwidth occupied.
It improves the efficiency and accuracy of media data delivery, reduces storage space and costs, shortens request time, and increases the number of requests processed per second.
Smart Images

Figure CN118864012A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for delivering media data. Background Art
[0002] With the rapid development of the Internet multimedia industry, media data service providers have higher and higher requirements for the accuracy and effectiveness of media data delivery. The traditional media data delivery method relies on the algorithms of the media platform to screen and deliver traffic, but ignores the importance of the service provider's own data and cannot fully meet the service provider's needs for more refined operations.
[0003] RTA is the abbreviation of Realtime API (Real-Time Application Programming Interface), which is used to meet the real-time personalized delivery needs of service providers. RTA gives the service provider the right to select the traffic of direct delivery service providers. Usually, the user identity identification request is sent to the service provider in the targeting link to screen users and allow the service provider to make a decision on the delivery strategy before the media data is exposed. However, when making decisions on the delivery of media data, the amount of data involved is huge, which makes the media data delivery request take a long time, affecting the delivery efficiency of media data.
[0004] Therefore, there is a problem of low efficiency in delivering media data in the related technology. Summary of the invention
[0005] Based on this, it is necessary to provide a method, apparatus, computer device, computer-readable storage medium and computer program product for delivering media data that can improve the delivery efficiency of media data in response to the above technical problems.
[0006] In a first aspect, the present application provides a method for delivering media data, including:
[0007] receiving a media data flow request sent by the media platform to the RTA interface for a user account accessing the media platform;
[0008] Determine, according to the request parameters carried by the media data traffic request, a target RTA data table requested to be queried by the media data traffic request; the target RTA data table stores a plurality of key-value pairs; the key in the key-value pair includes corresponding device identification information, the value in the key-value pair includes a corresponding label record with a preset data structure; the label record includes at least two different label values;
[0009] According to the device identification information corresponding to the user account accessing the media platform, querying the target tag record corresponding to the user account from the target RTA data table;
[0010] Return a target response message to the media platform; the target response message carries a delivery strategy that matches the target tag record.
[0011] In one of the embodiments, determining the target RTA data table requested to be queried by the media data flow request according to the request parameter carried by the media data flow request includes:
[0012] Parsing the request parameters carried in the media data flow request to determine whether it is necessary to connect to a database corresponding to the media data provider;
[0013] In the case where it is necessary to connect to a database corresponding to the media data provider, a target RTA data table requested to be queried by the media data flow request is determined in the database.
[0014] In one of the embodiments, determining in the database a target RTA data table requested to be queried by the media data flow request includes:
[0015] Acquire a table lookup control identifier carried by the media data flow request; the table lookup control identifier is obtained by parsing a request parameter carried by the media data flow request;
[0016] In a case where the table lookup control identifier indicates to look up the target RTA data table, it is determined that the RTA data table requested to be looked up by the media data flow request is the target RTA data table.
[0017] In one embodiment, returning the target response message to the media platform includes:
[0018] Obtaining a delivery strategy that matches the target tag record as the target delivery strategy;
[0019] The target delivery strategy is assembled with a preset response message template to obtain the target response message.
[0020] In one embodiment, obtaining a delivery strategy matching the target tag record includes:
[0021] According to the target tag record, determining whether the user account accessing the media platform belongs to a user account type that matches the delivery demand;
[0022] In the case that the user account accessing the media platform belongs to a user account type that matches the delivery demand, a delivery strategy that matches the target tag record is obtained.
[0023] In one embodiment, obtaining a delivery strategy matching the target tag record includes:
[0024] In the preset delivery strategy set, a delivery strategy matching a target delivery strategy type is screened out as a delivery strategy matching the target tag record; the target delivery strategy type is a delivery strategy type matching the delivery demand.
[0025] In a second aspect, the present application further provides a media data delivery device, including:
[0026] A receiving module, configured to receive a media data flow request sent by a media platform to an RTA interface for a user account accessing the media platform;
[0027] A determination module, configured to determine a target RTA data table requested to be queried by the media data flow request according to a request parameter carried by the media data flow request; the target RTA data table stores a plurality of key-value pairs; the key in the key-value pair includes corresponding device identification information, the value in the key-value pair includes a corresponding label record having a preset data structure; the label record includes at least two different label values;
[0028] A query module, configured to query a target tag record corresponding to the user account accessing the media platform from the target RTA data table according to the device identification information corresponding to the user account;
[0029] The sending module is used to return a target response message to the media platform; the target response message carries a delivery strategy that matches the target tag record.
[0030] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the steps of the above method are implemented.
[0031] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the steps of the above method when executed by a processor.
[0032] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0033] The above-mentioned media data delivery method, device, computer equipment, computer-readable storage medium and computer program product receive a media data traffic request sent by a media platform to an RTA interface for a user account accessing the media platform; determine the target RTA data table requested to be queried by the media data traffic request based on the request parameters carried by the media data traffic request; the target RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identification information, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values; based on the device identification information corresponding to the user account accessing the media platform, query the target label record corresponding to the user account from the target RTA data table; return a target response message to the media platform; the target response message carries a delivery strategy that matches the target label record.
[0034] In this way, the key in the key-value pair stored in the target RTA data table includes the corresponding device identification information, and the value in the key-value pair includes the corresponding label record including at least two different label values. Compared with the storage structure in which one label corresponds to one key-value pair, the occupied storage space is effectively reduced, the data storage cost is reduced, and after receiving the media data flow request sent to the RTA interface by the user account for accessing the media platform, the target label record including at least two different label values corresponding to the user account can be queried from the target RTA data table according to the device identification information corresponding to the user account, so that the corresponding multiple label values can be obtained through a single media data flow request. Compared with the technical solution in the related art that requires multiple label values to be searched due to the storage format of one label corresponding to one key-value pair, the solution provided by the present application can effectively reduce the number of data reading times so that the target response message returned by a single media data flow request is smaller, the network bandwidth occupation is reduced, and thus the request time is shortened, and the number of requests processed per second is increased. The target response message carrying the delivery strategy matching the target label record can be returned more efficiently, and the delivery efficiency of media data is effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0036] FIG1 is a diagram showing an application environment of a method for delivering media data in one embodiment;
[0037] Figure 2A schematic diagram of a flow chart of a method for delivering media data in an embodiment;
[0038] Figure 3 is a flowchart of yet another method for delivering media data in an embodiment;
[0039] Figure 4 is a flow chart of a method for delivering media data in another embodiment;
[0040] Figure 5 is a structural block diagram of a media data delivery device in one embodiment;
[0041] FIG. 6 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0042] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0044] The media data delivery method provided in the embodiment of the present application can be applied in the application environment shown in FIG. 1. Among them, the media platform 102 communicates with the server 104 through the network. The data storage system can store the data that the server 104 needs to process. The data storage system can be integrated on the server 104, or it can be placed on the cloud or other network servers. The server 104 receives the media data flow request sent by the media platform 102 to the RTA interface for the user account accessing the media platform; the server 104 determines the target RTA data table requested by the media data flow request according to the request parameters carried by the media data flow request; the target RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identification information, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values; the server 104 queries the target label record corresponding to the user account from the target RTA data table according to the device identification information corresponding to the user account accessing the media platform; the server 104 returns the target response message to the media platform 102; the target response message is a delivery strategy that carries a matching target label record.
[0045] The media platform 102 may be a server that provides cross-media, cross-platform, and cross-terminal media data delivery services to media data providers. The media data provider is the party that needs to deliver media data. The server 104 may be a server that provides RTA services to media data providers. The above-mentioned servers may be independent physical servers, server clusters or distributed systems composed of multiple physical servers, or cloud servers that provide cloud computing services.
[0046] In an exemplary embodiment, Figure 2 As shown, a method for delivering media data is provided, which is described by taking the method applied to the server 104 in FIG. 1 as an example, and includes the following steps S210 to S240:
[0047] Step S210: receiving a media data flow request sent by the media platform to the RTA interface for a user account accessing the media platform.
[0048] Among them, before each media data delivery, the media platform will access the RTA service of the media data provider through the RTA interface to determine whether to deliver the media data.
[0049] In actual applications, media data may be advertisements; a media platform may be named an advertising platform; and a media data provider may be named an advertiser.
[0050] Among them, the user account can access the media platform through a terminal device deployed with a client for accessing the media platform. In the process of accessing the media platform, the media platform will initiate a media data flow request to a server providing RTA services for media data providers through an RTA interface to deliver media data to the user account. In this way, the server can receive the media data flow request sent by the media platform to the RTA interface for the user account accessing the media platform.
[0051] Step S220: Determine the target RTA data table to be queried by the media data flow request according to the request parameters carried by the media data flow request.
[0052] The target RTA data table stores a plurality of key-value pairs; the key in the key-value pair includes corresponding device identification information, the value in the key-value pair includes a corresponding tag record with a preset data structure; the tag record includes at least two different tag values.
[0053] The device identification information may be information used to identify the terminal device where the user account is located.
[0054] The target RTA data table may be a data table stored in a database corresponding to the media data provider.
[0055] In actual applications, the database corresponding to the media data provider may be a Redis (Remote Dictionary Server, remote dictionary service) database.
[0056] The tag value may be a tag value corresponding to a preset account feature description tag. The account feature description tag may be a tag used to describe the characteristics of a user account. For example, the account feature description tag may include at least one of a business identifier, an activation date, a login date, a black industry identifier, an abnormal channel, and the like.
[0057] In a specific implementation, the server may determine the target RTA data table requested to be queried by the media data flow request in the database of the media data provider according to the request parameters carried by the media data flow request.
[0058] The media data flow request initiated by the media platform indicates an RTA data table requested to be queried by the request, and the RTA data table records a tag record matching the device identification information corresponding to the user account. Accordingly, the RTA data table requested to be queried by the media data flow request can be used as the target RTA data table.
[0059] For example, the key-value pair may be in the form of:
[0060] key=Device Type:Device ID
[0061] value={business ID}-{activation date}-{login date}-{black industry identification}-{abnormal channel}-{label n}
[0062] value=1,10-20231028-20231025-1-1_20_second timestamp,2_24_second timestamp
[0063] value=1,10-20231028-#-1-1_20_second timestamp,2_24_second timestamp
[0064] Among them, "-" is the separator symbol of the tag, ", (comma)" indicates whether a tag has multiple tag values. If it is an empty tag, it will be replaced with the placeholder "#" and stored.
[0065] Step S230: According to the device identification information corresponding to the user account accessing the media platform, a target tag record corresponding to the user account is queried from the target RTA data table.
[0066] In a specific implementation, since the target RTA data table stores multiple key-value pairs, the key in the key-value pair includes the corresponding device identification information, and the value in the key-value pair includes the corresponding tag record with a preset data structure. In this way, the server can query the tag record that matches the device identification information corresponding to the user account accessing the media platform from the target RTA data table according to the device identification information corresponding to the user account accessing the media platform, as the target tag record corresponding to the user account.
[0067] In the process of generating a media data flow request for a user account accessing the media platform, the media platform may generate the media data flow request based on the device identification information corresponding to the user account. In this way, the server may obtain the device identification information corresponding to the user account accessing the media platform by parsing the request parameters carried in the media data flow request.
[0068] Step S240, returning a target response message to the media platform.
[0069] The target response message carries a delivery strategy that matches the target tag record.
[0070] In specific implementations, delivery strategies may refer to media data delivery plans and methods formulated according to the needs and goals of media data providers. These strategies may cover aspects such as the time, location, frequency, channel, and advertising content of media data delivery.
[0071] In a specific implementation, the server can determine the delivery strategy that matches the target tag record, generate a target response message based on the delivery strategy that matches the target tag record, and return the target response message to the media platform. Thus, the media platform can deliver media data to the user account based on the returned target response message.
[0072] The server may filter out a delivery strategy that matches the target tag record from a preset delivery strategy set.
[0073] In the above-mentioned media data delivery method, a media data traffic request is received by the media platform and sent to the RTA interface for the user account accessing the media platform; the target RTA data table requested to be queried by the media data traffic request is determined according to the request parameters carried by the media data traffic request; the target RTA data table stores multiple key-value pairs; the key in the key-value pair includes the corresponding device identification information, and the value in the key-value pair includes the corresponding label record with a preset data structure; the label record includes at least two different label values; according to the device identification information corresponding to the user account accessing the media platform, the target label record corresponding to the user account is queried from the target RTA data table; a target response message is returned to the media platform; the target response message carries a delivery strategy that matches the target label record.
[0074] In this way, the key in the key-value pair stored in the target RTA data table includes the corresponding device identification information, and the value in the key-value pair includes the corresponding label record including at least two different label values. Compared with the storage structure in which one label corresponds to one key-value pair, the occupied storage space is effectively reduced, the data storage cost is reduced, and after receiving the media data flow request sent to the RTA interface by the user account for accessing the media platform, the target label record including at least two different label values corresponding to the user account can be queried from the target RTA data table according to the device identification information corresponding to the user account, so that the corresponding multiple label values can be obtained through a single media data flow request. Compared with the technical solution in the related art that requires multiple label values to be searched due to the storage format of one label corresponding to one key-value pair, the solution provided by the present application can effectively reduce the number of data reading times so that the target response message returned by a single media data flow request is smaller, the network bandwidth occupation is reduced, and thus the request time is shortened, and the number of requests processed per second is increased. The target response message carrying the delivery strategy matching the target label record can be returned more efficiently, and the delivery efficiency of media data is effectively improved.
[0075] In one embodiment, determining a target RTA data table requested to be queried by the media data flow request based on request parameters carried by the media data flow request includes: parsing the request parameters carried by the media data flow request to determine whether it is necessary to connect to a database corresponding to the media data provider; and if it is necessary to connect to the database corresponding to the media data provider, determining in the database the target RTA data table requested to be queried by the media data flow request.
[0076] In a specific implementation, when the server determines the target RTA data table requested to be queried by the media data flow request based on the request parameters carried by the media data flow request, the server can determine whether it is necessary to connect to the database corresponding to the media data provider by parsing the request parameters carried by the media data flow request.
[0077] Specifically, the server can obtain the database connection identifier by parsing the request parameters carried by the media data flow request. When the database connection identifier indicates that a database corresponding to the media data provider needs to be connected, the server can determine the target RTA data table requested by the media data flow request in the database.
[0078] The technical solution of this embodiment determines whether it is necessary to connect to the database corresponding to the media data provider by parsing the request parameters carried by the media data flow request; if it is necessary to connect to the database corresponding to the media data provider, the target RTA data table requested to be queried by the media data flow request is determined in the database. In this way, by parsing the request parameters carried by the media data flow request, it is possible to accurately determine whether it is necessary to connect to the database corresponding to the media data provider, so that when necessary, by connecting to the database corresponding to the media data provider, the target RTA data table requested to be queried by the media data flow request can be accurately obtained to obtain more accurate user account tag record information, help to more accurately locate media data, and improve the media data delivery effect and conversion rate.
[0079] In one embodiment, determining in a database a target RTA data table requested to be queried by a media data flow request includes: obtaining a table lookup control identifier carried by the media data flow request; the table lookup control identifier is obtained by parsing a request parameter carried by the media data flow request; and when the table lookup control identifier indicates to query the target RTA data table, determining that the RTA data table requested to be queried by the media data flow request is the target RTA data table.
[0080] In a specific implementation, when the server determines in a database the target RTA data table requested by the media data flow request, the server can obtain a table lookup control identifier carried by the media data flow request. The table lookup control identifier can also be obtained by parsing a request parameter carried by the media data flow request. When the table lookup control identifier indicates to query the target RTA data table, the server can determine that the RTA data table requested by the media data flow request is the target RTA data table, and query the target RTA data table in the database corresponding to the media data provider.
[0081] Among them, the table lookup control identifier is used to identify the label acquisition method. The label acquisition method may include a single request query method and a multiple request query method. In the single request query method, the server determines that the RTA data table requested by the media data flow request is the target RTA data table, so that the corresponding multiple label values can be obtained through a single media data flow request. In the multiple request query method, the server determines that the RTA data table requested by the media data flow request is another RTA data table, and the other RTA data table stores multiple key-value pairs, the key in the key-value pair includes the corresponding device identification information and the account feature description label, and the value in the key-value pair includes the corresponding label value. That is, an account feature description label in the other RTA data table corresponds to a key-value pair data structure, and multiple requests are required to obtain multiple label values.
[0082] In actual applications, the server can determine whether to use the query processing logic of the single request query method or the query processing logic of the multiple request query method based on the table lookup control identifier control. Furthermore, in order to ensure a smooth online transition and control risks during the switching process, a switch can be used to control the logical switching between the query processing logic of the single request query method and the query processing logic of the multiple request query method.
[0083] The technical solution of this embodiment is to obtain the table lookup control identifier carried by the media data flow request; the table lookup control identifier is obtained by parsing the request parameters carried by the media data flow request; when the table lookup control identifier indicates to query the target RTA data table, determine that the RTA data table requested to be queried by the media data flow request is the target RTA data table. In this way, by parsing the table lookup control identifier carried by the request parameters carried by the media data flow request, the RTA data table requested to be queried by the media data flow request can be determined efficiently and accurately, so that the label record matching the device identification information corresponding to the user account can be obtained efficiently and accurately.
[0084] In one embodiment, returning the target response message to the media platform includes: obtaining a delivery strategy that matches the target tag record as the target delivery strategy; and assembling the target delivery strategy with a preset response message template to obtain the target response message.
[0085] Among them, the delivery strategy may include target audience positioning, media data content production, delivery channel selection, delivery timing and other information.
[0086] In a specific implementation, when the server returns a target response message to the media platform, the server can obtain a delivery strategy that matches the target tag record as the target delivery strategy, assemble the target delivery strategy with a preset response message template, obtain a target response message carrying the delivery strategy that matches the target tag record, and return the target response message to the media platform.
[0087] The preset response message template may be a response message template that matches the target delivery strategy. The preset response message template may include information such as advertisement content, copy, and pictures that match the target tag record, ensuring that the advertisement content is highly consistent with the interests and needs of the user account.
[0088] The technical solution of this embodiment obtains the delivery strategy that matches the target tag record as the target delivery strategy; assembles the target delivery strategy with the preset response message template to obtain the target response message. In this way, by assembling the delivery strategy that matches the target tag record with the preset response message template to obtain the target response message, it is possible to deliver media data that meets the characteristics of the corresponding account to the user account, improve the click-through rate and conversion rate of the media data, and enhance the delivery effect of the media data.
[0089] In one embodiment, obtaining a delivery strategy that matches a target tag record includes: judging, based on the target tag record, whether a user account accessing the media platform belongs to a user account type that matches the delivery demand; and obtaining a delivery strategy that matches the target tag record if the user account accessing the media platform belongs to a user account type that matches the delivery demand.
[0090] In a specific implementation, when the server is in the process of obtaining a delivery strategy that matches a target tag record, the server can determine, based on the target tag record, whether the user account accessing the media platform belongs to a user account type that matches the delivery demand; if the user account accessing the media platform belongs to a user account type that matches the delivery demand, the server obtains a delivery strategy that matches the target tag record.
[0091] In actual applications, the delivery demand may be to return old users, attract new users, etc., and the corresponding user account type may be a recall type or a new user type. Exemplarily, the tag value in the target tag record may include login time, registration time, channel identifier, behavior data, etc. In this way, the server can determine whether the user account belongs to the user account type that matches the delivery demand based on the tag value contained in the target tag record corresponding to the user account.
[0092] The technical solution of this embodiment determines whether the user account accessing the media platform belongs to the user account type that matches the delivery demand based on the target tag record; if the user account accessing the media platform belongs to the user account type that matches the delivery demand, the delivery strategy that matches the target tag record is obtained. In this way, by analyzing the target tag record of the user account, the target audience can be identified more accurately, and by matching the user account type with the delivery demand, it is ensured that the delivery information is delivered to the most appropriate user group, reducing the waste of delivery resources and improving the pertinence and effectiveness of media data in the delivery process.
[0093] In one embodiment, obtaining a delivery strategy that matches a target tag record includes: selecting a delivery strategy that matches a target delivery strategy type from a preset delivery strategy set as the delivery strategy that matches the target tag record; the target delivery strategy type is a delivery strategy type that matches the delivery demand.
[0094] In a specific implementation, when the server is acquiring a delivery strategy that matches a target tag record, the delivery strategy type that matches the delivery demand can be used as the target delivery strategy type. The server can filter out a delivery strategy that matches the target delivery strategy type from the preset delivery strategy set as the delivery strategy that matches the target tag record.
[0095] For example, if the delivery demand is to return old users, the target delivery strategy type is the recall type, and the server can filter out the delivery strategy that matches the recall type from the preset delivery strategy set. If the delivery demand is to attract new users, the target delivery strategy type is the new user type, and the server can filter out the delivery strategy that matches the new user type from the preset delivery strategy set.
[0096] The technical solution of this embodiment selects a delivery strategy that matches the target delivery strategy type from the preset delivery strategy set as the delivery strategy that matches the target tag record; the target delivery strategy type is the delivery strategy type that matches the delivery demand. In this way, through the delivery strategy type that matches the delivery demand, the strategy that matches the delivery demand can be accurately selected, which can avoid resource waste when delivering media data and improve resource utilization when delivering media resources.
[0097] In order to facilitate the understanding of those skilled in the art, Figure 3 A flowchart of another method for delivering media data is provided. Figure 3 As shown, the media platform can access the RTA service of the media data provider through the RTA interface. Specifically, the media platform can send a media data traffic request to the RTA interface for the user account accessing the media platform. The server deployed with the RTA service on the media data provider side can load the parameter file, and determine whether it is necessary to skip the Redis database corresponding to the media data provider by parsing the request parameters carried in the media data traffic request. If not, that is, if it is necessary to connect to the Redis database, obtain the Redis connection, and determine the label acquisition method through the table lookup control identifier carried in the media data traffic request.
[0098] Specifically, the server can determine whether to use the query processing logic of a single request query method or the query processing logic of a multiple request query method based on the table lookup control identifier control. Furthermore, in order to ensure a smooth online transition and control risks during the switching process, a switch control can be used to perform a logical switch between the query processing logic of a single request query method and the query processing logic of a multiple request query method. Among them, the query processing logic of the single request query method can be the V2 version query processing logic, and the multiple request query method can be the V1 version query processing logic. In this way, the target label record of the label value corresponding to the user account can be obtained, and the target label record can be released to the connection pool, and the delivery strategy matching the target label record can be obtained as the target delivery strategy; the target delivery strategy is assembled with the preset response message template to obtain a target response message carrying the target delivery strategy, and after printing the log, the target response message is returned to the media platform.
[0099] Exemplarily, in the process of obtaining the target delivery strategy, the server can obtain the target delivery strategy based on historical device judgment, current page device judgment and black market device judgment. For example, if the delivery demand is for returning old users, if the device identification information in the message carried by a traffic request includes device fingerprints, if there are two device fingerprints, A and B, the server only obtains A's data from Redis. In the same request, any device fingerprint exists, which is considered to be a historical device. Then the device corresponding to this traffic request is the recall device that matches the delivery demand of returning old users, and the server will inform the media platform that the recall type of advertisements must participate in the advertising bidding.
[0100] In another embodiment, Figure 4 As shown, a method for delivering media data is provided, which is described by taking the method applied to a server as an example, and includes the following steps:
[0101] Step S402: receiving a media data flow request sent by the media platform to the RTA interface for a user account accessing the media platform.
[0102] Step S404: parse the request parameters carried in the media data flow request to determine whether it is necessary to connect to the database corresponding to the media data provider.
[0103] Step S406: When it is necessary to connect to the database corresponding to the media data provider, obtain the table lookup control identifier carried in the media data flow request.
[0104] Step S408: When the table lookup control flag indicates to look up the target RTA data table, determine that the RTA data table requested to be looked up by the media data flow request is the target RTA data table.
[0105] Step S410: According to the device identification information corresponding to the user account accessing the media platform, a target tag record corresponding to the user account is queried from the target RTA data table.
[0106] Step S412: judging whether the user account accessing the media platform belongs to the user account type matching the delivery demand according to the target tag record.
[0107] Step S414, when the user account accessing the media platform belongs to the user account type that matches the delivery demand, the delivery strategy that matches the target delivery strategy type is screened out from the preset delivery strategy set as the delivery strategy that matches the target tag record, and the target delivery strategy is obtained.
[0108] Step S416, assemble the target delivery strategy with the preset response message template to obtain a target response message, and return the target response message to the media platform.
[0109] It should be noted that the specific limitations of the above steps may refer to the specific limitations of a method for delivering media data described above.
[0110] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0111] Based on the same inventive concept, the embodiment of the present application also provides a media data delivery device for implementing the media data delivery method involved above. The implementation solution provided by the device to solve the problem is similar to the implementation solution recorded in the above method, so the specific limitations in the one or more media data delivery device embodiments provided below can refer to the limitations of the media data delivery method above, and will not be repeated here.
[0112] In an exemplary embodiment, Figure 5 As shown, a media data delivery device is provided, including: a receiving module 510, a determining module 520, a query module 530 and a sending module 540, wherein:
[0113] The receiving module 510 is configured to receive a media data flow request sent by the media platform to the RTA interface for a user account accessing the media platform.
[0114] Determination module 520 is used to determine the target RTA data table requested to be queried by the media data traffic request based on the request parameters carried by the media data traffic request; the target RTA data table stores multiple key-value pairs; the key in the key-value pair includes corresponding device identification information, and the value in the key-value pair includes a corresponding label record with a preset data structure; the label record includes at least two different label values.
[0115] The query module 530 is used to query the target tag record corresponding to the user account accessing the media platform from the target RTA data table according to the device identification information corresponding to the user account.
[0116] The sending module 540 is used to return a target response message to the media platform; the target response message carries a delivery strategy that matches the target tag record.
[0117] In one of the embodiments, the determination module 520 is specifically used to parse the request parameters carried by the media data flow request to determine whether it is necessary to connect to the database corresponding to the media data provider; if it is necessary to connect to the database corresponding to the media data provider, determine the target RTA data table requested to be queried by the media data flow request in the database.
[0118] In one of the embodiments, the determination module 520 is specifically used to obtain a table lookup control identifier carried by the media data flow request; the table lookup control identifier is obtained by parsing a request parameter carried by the media data flow request; and when the table lookup control identifier indicates querying the target RTA data table, it is determined that the RTA data table requested to be queried by the media data flow request is the target RTA data table.
[0119] In one of the embodiments, the sending module 540 is specifically used to obtain a delivery strategy that matches the target tag record as a target delivery strategy; and assemble the target delivery strategy with a preset response message template to obtain the target response message.
[0120] In one of the embodiments, the sending module 540 is specifically used to determine whether the user account accessing the media platform belongs to the user account type that matches the delivery demand based on the target tag record; if the user account accessing the media platform belongs to the user account type that matches the delivery demand, obtain the delivery strategy that matches the target tag record.
[0121] In one of the embodiments, the sending module 540 is specifically used to filter out a delivery strategy that matches a target delivery strategy type from a preset delivery strategy set as a delivery strategy that matches the target tag record; the target delivery strategy type is a delivery strategy type that matches the delivery demand.
[0122] Each module in the above-mentioned media data delivery device can be implemented in whole or in part by software, hardware or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0123] In an exemplary embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be shown in FIG6. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface is connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store key-value pair data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for delivering media data is implemented.
[0124] Those skilled in the art will understand that the structure shown in FIG. 6 is merely a block diagram of a partial structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than shown in the figure, or combine certain components, or have a different arrangement of components.
[0125] In one embodiment, a computer device is further provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above method embodiments when executing the computer program.
[0126] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0127] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above method embodiments when executed by a processor.
[0128] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.
[0129] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0130] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0131] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for delivering media data, It is characterized in that The method comprises: receiving a media data flow request sent by the media platform to the RTA interface for a user account accessing the media platform; Determine, according to the request parameters carried by the media data traffic request, a target RTA data table requested to be queried by the media data traffic request; the target RTA data table stores a plurality of key-value pairs; the key in the key-value pair includes corresponding device identification information, the value in the key-value pair includes a corresponding label record with a preset data structure; the label record includes at least two different label values; According to the device identification information corresponding to the user account accessing the media platform, querying the target tag record corresponding to the user account from the target RTA data table; Return a target response message to the media platform; the target response message carries a delivery strategy that matches the target tag record.
2. The method according to claim 1, It is characterized in that The determining, according to the request parameter carried by the media data flow request, a target RTA data table requested to be queried by the media data flow request includes: Parsing the request parameters carried in the media data flow request to determine whether it is necessary to connect to a database corresponding to the media data provider; In the case where it is necessary to connect to a database corresponding to the media data provider, a target RTA data table requested to be queried by the media data flow request is determined in the database.
3. The method according to claim 2, It is characterized in that The determining in the database a target RTA data table requested to be queried by the media data flow request comprises: Acquire a table lookup control identifier carried by the media data flow request; the table lookup control identifier is obtained by parsing a request parameter carried by the media data flow request; In a case where the table lookup control identifier indicates to look up the target RTA data table, it is determined that the RTA data table requested to be looked up by the media data flow request is the target RTA data table.
4. The method according to claim 1, It is characterized in that The returning the target response message to the media platform includes: Obtaining a delivery strategy that matches the target tag record as the target delivery strategy; The target delivery strategy is assembled with a preset response message template to obtain the target response message.
5. The method according to claim 4, It is characterized in that The acquiring of the delivery strategy matching the target tag record includes: According to the target tag record, determining whether the user account accessing the media platform belongs to a user account type that matches the delivery demand; In the case that the user account accessing the media platform belongs to a user account type that matches the delivery demand, a delivery strategy that matches the target tag record is obtained.
6. The method according to claim 5, It is characterized in that The acquiring of the delivery strategy matching the target tag record includes: In the preset delivery strategy set, a delivery strategy matching a target delivery strategy type is screened out as a delivery strategy matching the target tag record; the target delivery strategy type is a delivery strategy type matching the delivery demand.
7. A device for delivering media data, It is characterized in that The device comprises: A receiving module, configured to receive a media data flow request sent by a media platform to an RTA interface for a user account accessing the media platform; A determination module, configured to determine a target RTA data table requested to be queried by the media data flow request according to a request parameter carried by the media data flow request; the target RTA data table stores a plurality of key-value pairs; the key in the key-value pair includes corresponding device identification information, the value in the key-value pair includes a corresponding label record having a preset data structure; the label record includes at least two different label values; A query module, configured to query a target tag record corresponding to the user account accessing the media platform from the target RTA data table according to the device identification information corresponding to the user account; The sending module is used to return a target response message to the media platform; the target response message carries a delivery strategy that matches the target tag record.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
