Advertisement strategy code generation method, advertisement delivery method and device

By designing code templates and code generators for advertising policies, the advertising policy codes are automatically generated, which solves the problems of low code generation efficiency and difficulty in maintaining in the advertising delivery engine, and achieves efficient and stable advertising policy code generation and updates.

CN112183049BActive Publication Date: 2024-12-31HUNAN HAPPLY SUNSHINE INTERACTIVE ENTERTAINMENT MEDIA CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011073259.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-10-09
Publication Date
2024-12-31
Estimated Expiration
2040-10-09

AI Technical Summary

Technical Problem

The existing advertising delivery engine requires a lot of labor costs when updating and iterations. The advertising strategy code generation is inefficient and prone to program bugs, making it difficult to write and maintain complex strategies.

Method used

Design code templates and code generators, generate pseudo-codes based on advertising policy types and parameters, and automatically convert them into engineering codes, realizing the automatic generation of advertising policy codes, reducing manual participation, and improving generation efficiency and maintainability.

Benefits of technology

It effectively shortens the code development time, reduces the bug rate, improves the generation efficiency and maintainability of advertising policy codes, and simplifies the update and maintenance of advertising policy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112183049B_ABST
    Figure CN112183049B_ABST
Patent Text Reader

Abstract

The present invention provides an advertising strategy code generation method, an advertising delivery method and a device, which pre-sets a code template and a code generator for the strategy type of each advertising strategy, and generates pseudocode of the advertising strategy by writing the strategy parameters into the code template of the corresponding strategy type when the strategy type and strategy parameters of the advertising strategy are obtained, and automatically converts the pseudocode of the advertising strategy into engineering code by calling the code generator corresponding to the strategy type of the advertising strategy. The entire code generation process is completed automatically without manual participation, which effectively shortens the code development time, improves the generation efficiency of the advertising strategy code, effectively reduces the coupling between the code and the strategy, improves the maintainability of the code, and reduces the bug rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer technology, and more specifically, to an advertisement strategy code generation method, an advertisement delivery method and a device. Background Art

[0002] Ad delivery engines match the best ad content for each ad request from the client under the constraints of the ad, and send it to the client to play the ad. In order to match the best ad and achieve the best ad display effect for each person, ad delivery engines often use a large number of complex strategies, such as algorithms based on user tags, lookalike, and regional targeting.

[0003] In actual applications, the advertising delivery engine involves a wide variety of strategies, such as advertising screening strategies, advertising constraints, and advertising ranking strategies, which are complex and changeable. If implemented manually, it would consume a lot of manpower costs in the daily update and iteration of the advertising delivery engine, the advertising strategy code generation efficiency is low, and program bugs are prone to occur. Summary of the invention

[0004] In view of this, the present invention provides an advertisement strategy code generation method, an advertisement delivery method and a device, which improve the generation efficiency of the advertisement strategy code.

[0005] In order to achieve the above-mentioned invention object, the specific technical solution provided by the present invention is as follows:

[0006] A method for generating an advertisement strategy code, comprising:

[0007] Get the policy type and policy parameters of the advertising policy;

[0008] Writing the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type to generate pseudo code of the advertising policy;

[0009] Calling a code generator corresponding to the strategy type to convert the pseudocode of the advertising strategy into engineering code;

[0010] The engineering code of the advertising strategy is integrated and compiled into the advertising delivery server.

[0011] Optionally, writing the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type to generate the pseudo code of the advertising policy includes:

[0012] Determining whether the strategy type is an advertisement matching strategy;

[0013] If it is an advertisement matching strategy, the strategy parameters are written into the code template corresponding to the advertisement matching strategy according to the format of the code template corresponding to the advertisement matching strategy, and a pseudo code of the advertisement matching strategy is generated;

[0014] If it is not an advertisement matching strategy, determining whether the strategy type is an advertisement screening strategy;

[0015] If it is an advertisement screening strategy, the strategy parameters are written into the code template corresponding to the advertisement screening strategy according to the format of the code template corresponding to the advertisement screening strategy, and a pseudo code of the advertisement screening strategy is generated;

[0016] If it is not an advertisement screening strategy, determining whether the strategy type is an advertisement ranking strategy;

[0017] If it is an advertisement ranking strategy, the strategy parameters are written into the code template corresponding to the advertisement ranking strategy according to the format of the code template corresponding to the advertisement ranking strategy to generate pseudo code of the advertisement ranking strategy.

[0018] An advertisement delivery method is applied to an advertisement delivery server, wherein the advertisement delivery server pre-stores an engineering code of an advertisement strategy generated by the advertisement strategy code generation method disclosed in the above embodiment, and the method comprises:

[0019] Receive an advertisement request initiated by a client;

[0020] Parsing the advertisement request to obtain client user information, player information, and video information;

[0021] Running the engineering code of the pre-stored advertising strategy to determine candidate advertisements that match the client user information, the player information, and the video information;

[0022] The candidate advertisement with the highest priority is sent to the client.

[0023] Optionally, the running of the engineering code of the pre-stored advertising strategy to determine the candidate advertisement matching the client user information, the player information and the video information includes:

[0024] Running the engineering code of the pre-stored advertisement matching strategy, performing advertisement matching on the advertisement request according to the client user information, the player information and the video information, and obtaining a preliminary advertisement;

[0025] The engineering code of the pre-stored advertisement screening strategy is run to screen out the candidate advertisement from the primary advertisement according to the client user information, the player information and the video information.

[0026] Optionally, sending the candidate advertisement with the highest priority to the client includes:

[0027] Running the engineering code of the pre-stored advertisement sorting strategy to determine the candidate advertisement with the highest priority among the candidate advertisements;

[0028] The candidate advertisement with the highest priority is sent to the client.

[0029] An advertising strategy code generating device, comprising:

[0030] An advertisement strategy acquisition unit, used to acquire a strategy type and strategy parameters of an advertisement strategy;

[0031] A pseudo code generating unit, configured to write the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type, and generate the pseudo code of the advertising policy;

[0032] A code conversion unit, used for calling a code generator corresponding to the policy type to convert the pseudo code of the advertising policy into an engineering code;

[0033] The code integration and compilation unit is used to integrate and compile the engineering code of the advertising strategy into the advertising delivery server.

[0034] Optionally, the pseudo code generating unit is specifically used for:

[0035] Determining whether the strategy type is an advertisement matching strategy;

[0036] If it is an advertisement matching strategy, the strategy parameters are written into the code template corresponding to the advertisement matching strategy according to the format of the code template corresponding to the advertisement matching strategy, and a pseudo code of the advertisement matching strategy is generated;

[0037] If it is not an advertisement matching strategy, determining whether the strategy type is an advertisement screening strategy;

[0038] If it is an advertisement screening strategy, the strategy parameters are written into the code template corresponding to the advertisement screening strategy according to the format of the code template corresponding to the advertisement screening strategy, and a pseudo code of the advertisement screening strategy is generated;

[0039] If it is not an advertisement screening strategy, determining whether the strategy type is an advertisement ranking strategy;

[0040] If it is an advertisement ranking strategy, the strategy parameters are written into the code template corresponding to the advertisement ranking strategy according to the format of the code template corresponding to the advertisement ranking strategy to generate pseudo code of the advertisement ranking strategy.

[0041] An advertisement delivery device is applied to an advertisement delivery server, wherein the advertisement delivery server pre-stores an engineering code of an advertisement strategy generated by the advertisement strategy code generation method disclosed in the above embodiment, and the device comprises:

[0042] An advertisement request receiving unit, configured to receive an advertisement request initiated by a client;

[0043] An advertisement request parsing unit, used to parse the advertisement request to obtain client user information, player information and video information;

[0044] A strategy code running unit, used to run the engineering code of the pre-stored advertising strategy to determine candidate advertisements that match the client user information, the player information, and the video information;

[0045] The candidate advertisement sending unit is used to send the candidate advertisement with the highest priority to the client.

[0046] Optionally, the policy code execution unit is specifically used to:

[0047] Running the engineering code of the pre-stored advertisement matching strategy, performing advertisement matching on the advertisement request according to the client user information, the player information and the video information, and obtaining a preliminary advertisement;

[0048] The engineering code of the pre-stored advertisement screening strategy is run to screen out the candidate advertisement from the primary advertisement according to the client user information, the player information and the video information.

[0049] Optionally, the candidate advertisement sending unit is specifically configured to:

[0050] Running the engineering code of the pre-stored advertisement sorting strategy to determine the candidate advertisement with the highest priority among the candidate advertisements;

[0051] The candidate advertisement with the highest priority is sent to the client.

[0052] Compared with the prior art, the beneficial effects of the present invention are as follows:

[0053] The invention discloses an advertising strategy code generation method, which sets a code template and a code generator for a strategy type of each advertising strategy in advance, generates a pseudo code of the advertising strategy by writing the strategy parameters into a code template of a corresponding strategy type when the strategy type and strategy parameters of the advertising strategy are obtained, and automatically converts the pseudo code of the advertising strategy into an engineering code by calling a code generator corresponding to the strategy type of the advertising strategy. The entire code generation process is completed automatically without manual participation, which effectively shortens the code development time, improves the generation efficiency of the advertising strategy code, effectively reduces the coupling between the code and the strategy, improves the maintainability of the code, and reduces the bug rate. BRIEF DESCRIPTION OF THE DRAWINGS

[0054] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.

[0055] Figure 1 A schematic diagram of a flow chart of a method for generating an advertisement strategy code disclosed in an embodiment of the present invention;

[0056] Figure 2 A schematic diagram of a pseudo code generation method disclosed in an embodiment of the present invention;

[0057] Figure 3 A schematic diagram of a flow chart of an advertisement delivery method disclosed in an embodiment of the present invention;

[0058] Figure 4 A schematic diagram of a flow chart of another advertisement delivery method disclosed in an embodiment of the present invention;

[0059] Figure 5 A schematic diagram of the structure of an advertisement strategy code generating device disclosed in an embodiment of the present invention;

[0060] Figure 6 The present invention is a schematic diagram of the structure of an advertisement delivery device disclosed in an embodiment of the present invention. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0062] In order to improve the efficiency of generating advertising strategy codes, the present invention integrates the complex and diverse advertising strategies in the advertising delivery server, sorts out and summarizes advertising strategies such as advertising matching strategy, advertising screening strategy and advertising sorting strategy, designs code templates and code generators for each advertising strategy type, and realizes the automatic generation of advertising strategy codes.

[0063] For details, please refer to Figure 1 The method for generating an advertisement strategy code disclosed in this embodiment specifically includes the following steps:

[0064] S101: Obtaining a strategy type and strategy parameters of an advertisement strategy;

[0065] The types of advertising strategies include advertising matching strategies, advertising screening strategies, and advertising sorting strategies.

[0066] The strategy parameters are matching parameters, screening parameters, sorting parameters, etc. corresponding to the advertising strategy.

[0067] Taking the advertising policy type of advertising screening policy as an example, its policy parameters may include specified conditions and execution logic. The specified conditions are that the specified client version is less than or equal to v1.0.1 and the material type is FF, and the execution logic is to disable this advertising order.

[0068] S102: writing the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type, and generating pseudo code of the advertising policy;

[0069] Each policy type corresponds to a unique code template, and the code template is pre-configured with policy parameters and format information required for the corresponding policy type.

[0070] See also Figure 2 , the pseudo code generation method of the advertising strategy is as follows:

[0071] S201: Determine whether the strategy type is an advertisement matching strategy;

[0072] If it is an advertisement matching strategy, S202: writing the strategy parameters into the code template corresponding to the advertisement matching strategy according to the format of the code template corresponding to the advertisement matching strategy, and generating pseudo code of the advertisement matching strategy;

[0073] If it is not an advertisement matching strategy, S203: determining whether the strategy type is an advertisement screening strategy;

[0074] If it is an advertisement screening strategy, S204: writing the strategy parameters into the code template corresponding to the advertisement screening strategy according to the format of the code template corresponding to the advertisement screening strategy, and generating pseudo code of the advertisement screening strategy;

[0075] If it is not an advertisement screening strategy, S205: determining whether the strategy type is an advertisement ranking strategy;

[0076] If it is an advertisement ranking strategy, S206: writing the strategy parameters into the code template corresponding to the advertisement ranking strategy according to the format of the code template corresponding to the advertisement ranking strategy, and generating pseudo code of the advertisement ranking strategy;

[0077] If it is not an advertisement ranking strategy, S207: prompting that pseudo code generation failed.

[0078] S103: calling a code generator corresponding to the policy type to convert the pseudo code of the advertising policy into engineering code;

[0079] S104: Integrate and compile the engineering code of the advertising strategy into the advertising delivery server.

[0080] Specifically, fill in the pseudo code of the advertisement matching strategy according to the advertisement matching strategy template, and use the code generator to generate the engineering code Match class from the template pseudo code, which can be directly compiled and applied to the advertisement server project.

[0081] Similarly, you can fill in the pseudo code of the ad filtering strategy according to the ad filtering strategy template, generate the engineering code Filter class, and directly compile and apply it to the ad server project.

[0082] Similarly, you can fill in the pseudo code of the advertising sorting strategy according to the advertising sorting strategy template, generate the engineering code Weight class, and directly compile and apply it to the advertising server project.

[0083] In order to further illustrate the advertising strategy code generation method disclosed in this embodiment, a specific scenario example is used as an example to provide a detailed introduction as follows:

[0084] When launching a new advertising function, it is necessary to filter the old version of the client, which is a very frequent and cumbersome behavior. By writing computer language code, the execution details need to be specified due to the low level of computer language, which results in a large workload. In addition, the computer language code is scattered for filtering the old version of various new functions, and the amount of code is large, which is not conducive to unified management and subsequent maintenance. In the scheme proposed in the present invention, the amount of business template code required to achieve the same requirement is far less than the computer code. Using the rule replacement of the rule engine and the replacement with the advertising business language proposed in the present invention can greatly simplify the amount of business code required to be maintained. However, the rules are interpreted and executed by the rule engine, which is inefficient and can easily become a bottleneck for system performance. Through a customized code generation mechanism, the advantages of both low maintenance workload and execution efficiency can be taken into account.

[0085] The process of using the new and old versions of the case:

[0086] Scenario: A new material type FF is added to the boot-up advertisement. It is supported by clients starting with version v1.0.100. Clients with older versions than v1.0.100 do not support the new material, and the new material type cannot be sent to clients with older versions.

[0087] Advertising strategy code generation process:

[0088] 1. Fill in the ad screening policy template, generate pseudo code, specify the conditions: specify that the client version is less than or equal to v1.0.1 and the material type is FF, and execute the logic: disable this ad order;

[0089] 2. Call the code generator to generate the advertising server engineering code based on the pseudo code of the advertising screening strategy template, and compile it into the advertising server;

[0090] 3. When an old version client requests an ad and runs the engineering code of the ad screening strategy, the ad order containing the new startup material will be disabled, so that the old client will not match the new material order, thereby being compatible with the function upgrade.

[0091] It can be seen that the advertising strategy code generation method disclosed in this embodiment pre-sets a code template and a code generator for the strategy type of each advertising strategy, and when the strategy type and strategy parameters of the advertising strategy are obtained, the pseudocode of the advertising strategy is generated by writing the strategy parameters into the code template of the corresponding strategy type, and the pseudocode of the advertising strategy is automatically converted into engineering code by calling the code generator corresponding to the strategy type of the advertising strategy. The entire code generation process is completed automatically without the need for human participation, which effectively shortens the code development time, improves the generation efficiency of the advertising strategy code, effectively reduces the coupling between the code and the strategy, improves the maintainability of the code, and reduces the bug rate.

[0092] This embodiment discloses an advertisement delivery method, which is applied to an advertisement delivery server. The advertisement delivery server pre-stores the engineering code of the advertisement strategy generated by the advertisement strategy code generation method disclosed in the above embodiment. Figure 3 , the advertising delivery method comprises the following steps:

[0093] S301: receiving an advertisement request initiated by a client;

[0094] S302: Parse the advertisement request to obtain client user information, player information, and video information;

[0095] The client user information includes user identification, interest information, gender information, region information and other information.

[0096] The player information includes the player type and version.

[0097] The video information includes information such as the video identifier.

[0098] S303: running the engineering code of the pre-stored advertising strategy to determine candidate advertisements that match the client user information, the player information, and the video information;

[0099] That is, the advertisement strategy is used to match the advertisement with the advertisement request sent by the client to obtain candidate advertisements.

[0100] S304: Send the candidate advertisement with the highest priority to the client.

[0101] Specifically, when the advertisement strategies pre-stored by the advertisement delivery server include advertisement matching strategies, advertisement screening strategies, and advertisement sorting strategies, please refer to Figure 4 , advertising delivery methods include:

[0102] S401: receiving an advertisement request initiated by a client;

[0103] S402: Parse the advertisement request to obtain client user information, player information, and video information;

[0104] S403: running the engineering code of the pre-stored advertisement matching strategy, performing advertisement matching on the advertisement request according to the client user information, the player information and the video information, and obtaining a preliminary selected advertisement;

[0105] For example, the engineering code of the pre-stored ad matching strategy is run to perform ad type matching, ad source matching, ad creative matching, etc.

[0106] S404: running the engineering code of the pre-stored advertisement screening strategy, and screening the candidate advertisement from the primary advertisements according to the client user information, the player information and the video information;

[0107] For example, the engineering code of the pre-stored advertising screening strategy is run to perform regional screening, interest screening, gender screening, etc.

[0108] S405: running the engineering code of the pre-stored advertisement ranking strategy to determine the candidate advertisement with the highest priority among the candidate advertisements;

[0109] The priorities of the candidate advertisements may be sorted according to advertisement sorting strategies such as sorting based on advertisement effect, sorting based on advertisement revenue, and sorting based on inventory planning, so as to obtain the candidate advertisements with the highest priority.

[0110] S406: Send the candidate advertisement with the highest priority to the client.

[0111] In the advertising delivery method disclosed in this embodiment, the engineering code of the advertising strategy in the advertising delivery server is decoupled from the advertising strategy, and the advertising strategy code can be modified by modifying the relevant parameters in a template with higher semantics, thereby simplifying the updating and maintenance of the advertising strategy, thereby improving the timeliness between the updating of the advertising strategy and the advertising delivery, and further improving the efficiency of advertising delivery.

[0112] Based on the advertising strategy code generation method disclosed in the above embodiment, this embodiment correspondingly discloses an advertising strategy code generation device, see Figure 5 , the device comprises:

[0113] Advertisement strategy acquisition unit 501, used to acquire the strategy type and strategy parameters of the advertisement strategy;

[0114] A pseudo code generating unit 502, configured to write the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type, and generate the pseudo code of the advertising policy;

[0115] A code conversion unit 503, used to call a code generator corresponding to the policy type to convert the pseudo code of the advertising policy into an engineering code;

[0116] The code integration and compilation unit 504 is used to integrate and compile the engineering code of the advertising strategy into the advertising delivery server.

[0117] Optionally, the pseudo code generating unit 502 is specifically used to:

[0118] Determining whether the strategy type is an advertisement matching strategy;

[0119] If it is an advertisement matching strategy, the strategy parameters are written into the code template corresponding to the advertisement matching strategy according to the format of the code template corresponding to the advertisement matching strategy, and a pseudo code of the advertisement matching strategy is generated;

[0120] If it is not an advertisement matching strategy, determining whether the strategy type is an advertisement screening strategy;

[0121] If it is an advertisement screening strategy, the strategy parameters are written into the code template corresponding to the advertisement screening strategy according to the format of the code template corresponding to the advertisement screening strategy, and a pseudo code of the advertisement screening strategy is generated;

[0122] If it is not an advertisement screening strategy, determining whether the strategy type is an advertisement ranking strategy;

[0123] If it is an advertisement ranking strategy, the strategy parameters are written into the code template corresponding to the advertisement ranking strategy according to the format of the code template corresponding to the advertisement ranking strategy to generate pseudo code of the advertisement ranking strategy.

[0124] Based on the advertisement delivery method disclosed in the above embodiment, this embodiment discloses an advertisement delivery device, which is applied to an advertisement delivery server. The advertisement delivery server pre-stores the engineering code of the advertisement strategy generated by the advertisement strategy code generation method disclosed in the above embodiment. Figure 6 , the device comprises:

[0125] The advertisement request receiving unit 601 is used to receive an advertisement request initiated by a client;

[0126] Advertisement request parsing unit 602, used to parse the advertisement request to obtain client user information, player information and video information;

[0127] A strategy code running unit 603 is used to run the engineering code of the pre-stored advertising strategy to determine candidate advertisements that match the client user information, the player information, and the video information;

[0128] The candidate advertisement sending unit 604 is configured to send the candidate advertisement with the highest priority to the client.

[0129] Optionally, the policy code execution unit 603 is specifically configured to:

[0130] Running the engineering code of the pre-stored advertisement matching strategy, performing advertisement matching on the advertisement request according to the client user information, the player information and the video information, and obtaining a preliminary advertisement;

[0131] The engineering code of the pre-stored advertisement screening strategy is run to screen out the candidate advertisement from the primary advertisement according to the client user information, the player information and the video information.

[0132] Optionally, the candidate advertisement sending unit 604 is specifically configured to:

[0133] Running the engineering code of the pre-stored advertisement sorting strategy to determine the candidate advertisement with the highest priority among the candidate advertisements;

[0134] The candidate advertisement with the highest priority is sent to the client.

[0135] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.

[0136] It should also be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0137] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.

[0138] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating an advertising strategy code, characterized in that: include: Get the policy type and policy parameters of the advertising policy; According to the format of the code template corresponding to the policy type, the policy parameters are written into the code template corresponding to the policy type to generate pseudo code of the advertising policy; wherein each policy type corresponds to a code template, and the code template is pre-configured with the policy parameters and format information required for the corresponding policy type; Calling the code generator corresponding to the strategy type to convert the pseudocode of the advertising strategy into engineering code; wherein, the advertising matching strategy is filled with pseudocode according to the advertising matching strategy template, and the template pseudocode is used by the code generator to generate the engineering code Match class; Fill in the pseudo code of the advertisement screening strategy according to the advertisement screening strategy template, and use the code generator to generate the engineering code Filter class; Fill in the pseudo code of the advertisement sorting strategy according to the advertisement sorting strategy template, and use the code generator to generate the engineering code Weight class; The engineering code of the advertising strategy is integrated and compiled into the advertising delivery server.

2. The method according to claim 1, characterized in that: The step of writing the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type, and generating the pseudo code of the advertising policy includes: Determining whether the strategy type is an advertisement matching strategy; If it is an advertisement matching strategy, the strategy parameters are written into the code template corresponding to the advertisement matching strategy according to the format of the code template corresponding to the advertisement matching strategy, and a pseudo code of the advertisement matching strategy is generated; If it is not an advertisement matching strategy, determining whether the strategy type is an advertisement screening strategy; If it is an advertisement screening strategy, the strategy parameters are written into the code template corresponding to the advertisement screening strategy according to the format of the code template corresponding to the advertisement screening strategy, and a pseudo code of the advertisement screening strategy is generated; If it is not an advertisement screening strategy, determining whether the strategy type is an advertisement ranking strategy; If it is an advertisement ranking strategy, the strategy parameters are written into the code template corresponding to the advertisement ranking strategy according to the format of the code template corresponding to the advertisement ranking strategy to generate pseudo code of the advertisement ranking strategy.

3. An advertisement delivery method, characterized in that: Applied to an advertisement delivery server, the advertisement delivery server pre-stores the engineering code of the advertisement strategy generated by the advertisement strategy code generation method according to claim 1 or 2, the method comprising: Receive an advertisement request initiated by a client; Parsing the advertisement request to obtain client user information, player information, and video information; Running the engineering code of the pre-stored advertising strategy to determine candidate advertisements that match the client user information, the player information, and the video information; The candidate advertisement with the highest priority is sent to the client.

4. The method according to claim 3, characterized in that The engineering code for running the pre-stored advertising strategy to determine the candidate advertisements that match the client user information, the player information, and the video information includes: Running the engineering code of the pre-stored advertisement matching strategy, performing advertisement matching on the advertisement request according to the client user information, the player information and the video information, and obtaining a preliminary advertisement; The engineering code of the pre-stored advertisement screening strategy is run to screen out the candidate advertisement from the primary advertisement according to the client user information, the player information and the video information.

5. The method according to claim 3, characterized in that: The sending the candidate advertisement with the highest priority to the client includes: Running the engineering code of the pre-stored advertisement sorting strategy to determine the candidate advertisement with the highest priority among the candidate advertisements; The candidate advertisement with the highest priority is sent to the client.

6. An advertising strategy code generating device, characterized in that: include: An advertisement strategy acquisition unit, used to acquire a strategy type and strategy parameters of an advertisement strategy; A pseudo code generating unit, configured to write the policy parameters into the code template corresponding to the policy type according to the format of the code template corresponding to the policy type, and generate the pseudo code of the advertising policy; wherein each policy type corresponds to a code template, and the code template is pre-configured with the policy parameters and format information required for the corresponding policy type; The code conversion unit is used to call the code generator corresponding to the policy type to convert the pseudocode of the advertising policy into an engineering code; wherein, the advertising matching policy is filled with pseudocode according to the advertising matching policy template, and the code generator is used to generate the engineering code Match class from the template pseudocode; the advertising screening policy is filled with pseudocode according to the advertising screening policy template, and the code generator is used to generate the engineering code Filter class; the advertising sorting policy is filled with pseudocode according to the advertising sorting policy template, and the code generator is used to generate the engineering code Weight class; The code integration and compilation unit is used to integrate and compile the engineering code of the advertising strategy into the advertising delivery server.

7. The device according to claim 6, characterized in that The pseudo code generating unit is specifically used for: Determining whether the strategy type is an advertisement matching strategy; If it is an advertisement matching strategy, the strategy parameters are written into the code template corresponding to the advertisement matching strategy according to the format of the code template corresponding to the advertisement matching strategy, and a pseudo code of the advertisement matching strategy is generated; If it is not an advertisement matching strategy, determining whether the strategy type is an advertisement screening strategy; If it is an advertisement screening strategy, the strategy parameters are written into the code template corresponding to the advertisement screening strategy according to the format of the code template corresponding to the advertisement screening strategy, and a pseudo code of the advertisement screening strategy is generated; If it is not an advertisement screening strategy, determining whether the strategy type is an advertisement ranking strategy; If it is an advertisement ranking strategy, the strategy parameters are written into the code template corresponding to the advertisement ranking strategy according to the format of the code template corresponding to the advertisement ranking strategy to generate pseudo code of the advertisement ranking strategy.

8. An advertisement delivery device, characterized in that: Applied to an advertisement delivery server, the advertisement delivery server pre-stores the engineering code of the advertisement strategy generated by the advertisement strategy code generation method according to claim 1 or 2, the device comprising: An advertisement request receiving unit, configured to receive an advertisement request initiated by a client; An advertisement request parsing unit, used to parse the advertisement request to obtain client user information, player information and video information; A strategy code running unit, used to run the engineering code of the pre-stored advertising strategy to determine candidate advertisements that match the client user information, the player information, and the video information; The candidate advertisement sending unit is used to send the candidate advertisement with the highest priority to the client.

9. The device according to claim 8, characterized in that The strategy code execution unit is specifically used for: Running the engineering code of the pre-stored advertisement matching strategy, performing advertisement matching on the advertisement request according to the client user information, the player information and the video information, and obtaining a preliminary advertisement; The engineering code of the pre-stored advertisement screening strategy is run to screen out the candidate advertisement from the primary advertisement according to the client user information, the player information and the video information.

10. The device according to claim 8, characterized in that The candidate advertisement sending unit is specifically used for: Running the engineering code of the pre-stored advertisement sorting strategy to determine the candidate advertisement with the highest priority among the candidate advertisements; The candidate advertisement with the highest priority is sent to the client.