Advertisement monitoring request generation method and related device

By independently generating ad monitoring requests, the complex problem of advertising back-end testing process is solved, and the simplified advertising monitoring request generation process is realized, reducing the dependence on the front-end.

CN120069969APending Publication Date: 2025-05-30BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510123801.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-26
Publication Date
2025-05-30

AI Technical Summary

Technical Problem

During the testing process of the ad backend, the process of generating ad monitoring requests is complicated and relies heavily on the collection of front-end testers, resulting in a cumbersome tester.

Method used

It provides a method for generating advertisement monitoring requests, which automatically generates advertisement monitoring requests by receiving test advertisement requests, generating advertisement information, extracting preset advertisement parameters and interface rules, without front-end display and processing advertisements.

Benefits of technology

Reduces the complexity of the advertising backend testing process, reduces the dependence on front-end testers, and simplifies the generation process of advertising monitoring requests.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120069969A_ABST
    Figure CN120069969A_ABST
Patent Text Reader

Abstract

The invention discloses an advertisement monitoring request generation method and a related device, relates to the field of information processing, is applied to an advertisement back end, and comprises the following steps: generating advertisement information in response to a received test advertisement request; extracting a preset parameter from the advertisement information to obtain a first advertisement parameter, the preset parameter being a parameter required by an advertisement front end for displaying and processing an advertisement corresponding to the test advertisement request, selecting an interface rule corresponding to an advertisement identifier according to the advertisement identifier in the advertisement information, the interface rule is a rule adopted when the advertisement front end interacts with the advertisement rear end, generating second advertisement information according to the interface rule, and generating an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter. The advertisement back end extracts the first advertisement information from the advertisement information, simulates the advertisement front end to generate the second advertisement information and forms the advertisement monitoring request, the advertisement information does not need to be sent to the advertisement front end, and the advertisement corresponding to the test advertisement request does not need to be exposed at the advertisement front end.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of information processing, and in particular, to a method for generating an advertisement monitoring request and related devices. Background Art

[0002] Pay-per-click is one of the most common billing methods for Internet advertisements. When an advertisement is clicked by a user, the advertisement platform generates a fee for the advertiser for that click.

[0003] When an advertisement is exposed / clicked each time, it triggers a monitoring (tracking) request related to billing. This monitoring request is used to request the advertisement backend, which updates the advertisement exposure / click in real time for advertisement placement control; the advertisement backend also stores the tracking log for data statistics such as advertisement exposure click inventory. Moreover, this monitoring request and feature data can also be associated in real time and used in various algorithm models, thereby affecting the recall of backend advertisements. Thus, the advertisement backend plays an important role in the process of realizing data tracking requirements.

[0004] In order to better maintain the performance of the advertisement backend, it is necessary to conduct a tracking test on the advertisement backend. During this tracking test process, the advertisement backend executes the test based on the advertisement monitoring request fed back by the front end.

[0005] Therefore, the advertisement monitoring request used in the test process needs to be generated when the advertisement exposure is actually triggered at the advertisement front end. And it takes a lot of work to trigger the exposure of a certain fixed advertisement in the test environment, and the generated advertisement monitoring request highly depends on the collection by front-end testers, resulting in a complex test process for the advertisement backend. Summary of the Invention

[0006] In view of the above problems, this application provides a method for generating an advertisement monitoring request and related devices to achieve the purpose of reducing the complexity of the test process during the test of the advertisement backend. The specific solutions are as follows:

[0007] A first aspect of this application provides a method for generating an advertisement monitoring request, which is applied to the advertisement backend. The method includes:

[0008] Receiving a test advertisement request;

[0009] Responding to the test advertisement request and generating advertisement information;

[0010] Extracting a first advertisement parameter from the advertisement information, where the first advertisement parameter is a preset parameter in the advertisement information, and the preset parameter is a parameter required by the advertisement front end to display and process the advertisement corresponding to the test advertisement request:

[0011] Select an interface rule corresponding to the advertisement identifier in the advertisement information; generate second advertisement parameters according to the interface rule, where the interface rule is a rule adopted when the advertisement front end interacts with the advertisement back end;

[0012] Generate an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter.

[0013] The second aspect of this application provides a device for generating an advertisement monitoring request, which is applied to the advertisement back end. The device includes:

[0014] A request receiving module, configured to receive a test advertisement request;

[0015] An information generating module, configured to generate advertisement information in response to the test advertisement request;

[0016] A parameter extraction module, configured to extract a first advertisement parameter from the advertisement information, where the first advertisement parameter is a preset parameter in the advertisement information, and the preset parameter is a parameter required for the advertisement front end to display and process the advertisement corresponding to the test advertisement request;

[0017] A parameter generation module, configured to select an interface rule corresponding to the advertisement identifier according to the advertisement identifier in the advertisement information; generate second advertisement parameters according to the interface rule, where the interface rule is a rule adopted when the advertisement front end interacts with the advertisement back end;

[0018] A request generation module, configured to generate an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter.

[0019] The third aspect of this application provides a computer program product, including computer-readable instructions, which, when running on an electronic device, enable the electronic device to implement the method for generating an advertisement monitoring request according to the first aspect or any implementation manner of the first aspect.

[0020] The fourth aspect of this application provides an electronic device, including at least one processor and a memory connected to the processor, where:

[0021] The memory is used to store a computer program;

[0022] The processor is configured to execute the computer program so that the electronic device can implement the method for generating an advertisement monitoring request according to the first aspect or any implementation manner of the first aspect.

[0023] The fifth aspect of the present application provides a computer storage medium, which carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can implement the method for generating an advertisement monitoring request in the first aspect or any implementation manner of the first aspect above.

[0024] The method and related device for generating an advertisement monitoring request provided by the present application are applied to the advertisement backend, and include: receiving a test advertisement request, responding to the test advertisement request, and generating advertisement information; extracting a first advertisement parameter from the advertisement information, where the first advertisement parameter is a preset parameter among several parameters included in the advertisement information, and moreover, the preset parameter is a parameter required for the advertisement frontend to display and process the advertisement corresponding to the test advertisement request. When the advertisement backend extracts the first advertisement information from the advertisement information, it is not necessary to send the advertisement information to the advertisement frontend, and the advertisement frontend does not need to display and process the advertisement corresponding to the test advertisement request; according to the advertisement identifier in the advertisement information, selecting an interface rule corresponding to the advertisement identifier, where the interface rule is a rule adopted when the advertisement frontend and the advertisement backend interact, generating second advertisement information according to the interface rule, where the second advertisement information is simulated by the advertisement backend as the advertisement frontend, and the advertisement backend also generates an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter. In this process, the entire process of generating the advertisement monitoring request is executed by the advertisement backend, without sending the advertisement information to the advertisement frontend, and without exposing the advertisement corresponding to the test advertisement request at the advertisement frontend. Therefore, it is not necessary for the frontend tester to collect the advertisement monitoring request when the advertisement is exposed at the advertisement frontend in the test environment, reducing the complexity of the test process. Description of the Drawings

[0025] In combination with the drawings and with reference to the following specific embodiments, the above and other features, advantages and aspects of the various embodiments of the present disclosure will become more obvious. Throughout the drawings, the same or similar reference numerals represent the same or similar elements. It should be understood that the drawings are schematic and the original elements and elements are not necessarily drawn to scale.

[0026] Figure 1 is a flowchart of a method for generating an advertisement monitoring request provided by an embodiment of the present application;

[0027] Figure 2 is a schematic diagram of an application scenario of a method for generating an advertisement monitoring request provided by an embodiment of the present application;

[0028] Figure 3 is provided by an embodiment of the present application Figure 1 Flowchart of step 103 in;

[0029] Figure 4 is provided by an embodiment of the present application Figure 3Schematic flowchart of step 303;

[0030] Figure 5 This is provided by an embodiment of the present application Figure 1 Schematic flowchart of step 104;

[0031] Figure 6 This is provided by an embodiment of the present application Figure 1 Schematic flowchart of step 105;

[0032] Figure 7 Schematic diagram of an application scenario of a method for generating an advertisement monitoring request provided by an embodiment of the present application;

[0033] Figure 8 Schematic diagram of the structure of a device for generating an advertisement monitoring request provided by an embodiment of the present application;

[0034] Figure 9 Schematic diagram of the structure of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0035] The embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. The terms used in the embodiments of the present application are only used to explain the specific embodiments of the present application, rather than to limit the present application.

[0036] The embodiments of the present application will be described below with reference to the accompanying drawings. As can be known to those of ordinary skill in the art, with the development of technology and the emergence of new scenarios, the technical solutions provided by the embodiments of the present application are equally applicable to similar technical problems.

[0037] The terms "first", "second", etc. in the specification, claims and above-mentioned drawings of the present application are used to distinguish similar objects, and do not have to be used to describe a specific order or sequence. It should be understood that such terms can be interchanged under appropriate circumstances, which is only a way of distinguishing when describing objects with the same attributes in the embodiments of the present application. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusion, so that a process, method, system, product or device including a series of units does not have to be limited to those units, but may include other units not clearly listed or inherent to these processes, methods, products or devices.

[0038] Referring to Figure 1 , Figure 1 This is a schematic flowchart of a method for generating an advertisement monitoring request provided by an embodiment of the present application, which may include steps 101 to 103, and these steps will be described in detail below.

[0039] 101. Receive a test advertisement request;

[0040] Among them, the test ad request is required for tracking and testing the ad backend. Based on receiving the test ad request, the tracking and testing of the ad backend is triggered.

[0041] It should be noted that in a real scenario, when entering a resource location in the corresponding software where ads may appear, an ad request is triggered. For example, when clicking on a certain video software on a mobile phone, an ad request for the splash screen resource location is triggered. After entering the video software and clicking on a certain TV drama to watch, an ad request for the ad placement resource location is triggered.

[0042] In the test scenario of this application, since it is a process of testing the generation of ad monitoring requests for test ad requests, the generation method of the test ad request is not restricted. The test ad request can be a real ad request triggered at the ad front end through the above-mentioned actions, or the test ad request can be generated by simulation using an emulator. Among them, the test ad request can be obtained in advance from the ad front end or the emulator and stored in the memory. When the method for generating an ad monitoring request in this application is executed, the test ad request stored in the memory is then passed to the ad backend.

[0043] 102. In response to the test ad request, generate ad information;

[0044] In a real scenario, the ad front end sends an ad request to the ad backend. The ad backend responds to the ad request, generates ad information for display and processing, and feeds back the ad information for display and processing to the ad front end. The ad front end exposes the ad based on the ad information for display and processing.

[0045] In the test scenario applied in this application, similar to the real scenario, after receiving the test ad request, the ad backend responds to the test ad request and generates ad information corresponding to the test ad request.

[0046] Among them, the ad information is data required for the ad front end to display and process the ad, and it contains data corresponding to the test ad request.

[0047] Among them, the test ad request carries various parameters when the ad front end requests an ad, such as user account information, playback environment, device information, TV drama information, ad placement id (identity number), and other information.

[0048] Among them, the test ad request is a get request, and the above-mentioned various parameters can be carried in the request.

[0049] Among them, the ad information is the information that the ad backend should have fed back to the ad front end in response to the test ad request. Therefore, the ad information can include parameters in the test ad request, relevant information about the ad, and track (tracking) parameters for this response, etc.

[0050] Specifically, after receiving a test ad request, the ad backend responds to the test ad request, obtains the ad corresponding to the test ad request, obtains the ad ID, generates track parameters for the current response, etc., writes the ad ID, track parameters, etc. into the response log, and generates the ad information for the test ad request. The ad information includes the response log.

[0051] In the test scenario applied in this application, the generated ad information is not fed back to the ad frontend. The ad backend extracts the first ad parameter and generates the second ad parameter based on the content included in the ad information. The subsequent steps will elaborate on this process in detail.

[0052] As an example, the test ad request carries information such as user account information, device information, ad resource position, timestamp, network status, etc. to request an ad from the ad backend. Correspondingly, after receiving the test ad request, the ad backend parses the ad request to obtain the parameters therein. For example, if the device is a mobile phone, then according to the ad placement rule, it selects ad A whose placement device is a mobile phone and generates the ad information corresponding to the placed ad A. When generating the ad information, the parameters carried by the ad request are also added to the ad information so that the ad information can be accurately fed back to the ad frontend. However, during the test process using the method for generating ad monitoring requests provided by this application, it is not necessary to feed back the ad information to the ad frontend, and only the ad information needs to be generated.

[0053] 103. Extract the first ad parameter from the ad information. The first ad parameter is a preset parameter in the ad information, and the preset parameter is the parameter required for the ad frontend to display and process the ad corresponding to the test ad request.

[0054] Among them, the ad monitoring request includes two parts of ad parameters. The first part is the relevant parameters provided by the ad backend, and the second part is the relevant parameters that should have been provided by the ad frontend.

[0055] Among them, the first ad parameter is a preset parameter that has been added to the ad information by the ad backend when generating the ad information.

[0056] Among them, the preset parameter is the parameter required for the ad frontend to display and process the ad corresponding to the test ad request. Correspondingly, if the ad information is fed back to the ad frontend, the ad frontend can expose the ad based on the ad information.

[0057] In this embodiment, the ad backend directly extracts the first ad parameter from the ad information without sending it to the ad frontend for ad display and processing.

[0058] Among them, the first advertisement parameter can be a track parameter generated by the advertisement backend and serves as a component parameter of an advertisement monitoring request for testing the tracking ability of the advertisement backend.

[0059] As an example, parse the advertisement information and extract the first advertisement parameter (i.e., the track parameter) from it. The track parameter can include more than 100 parameters, such as advertisement player id (Identity, identification number), video id, request (advertisement monitoring request) id, advertisement slot id, policy type, a unique exposure id corresponding to each advertisement, policy id, advertisement id, material id corresponding to the advertisement, city id, province id, country id, etc.

[0060] Among them, the specific parameter items included in the first advertisement parameter can be set according to the actual situation and are not limited in this application.

[0061] In a possible implementation, the first advertisement parameter is recorded in the response log in the advertisement information. The recording range of the first advertisement parameter in the log can be located based on the advertisement slot identifier and advertisement identifier in the advertisement information to obtain the first advertisement parameter. The specific implementation process of obtaining the first advertisement parameter is described in detail later. Figure 3 The specific implementation process of obtaining the first advertisement parameter is described in detail later.

[0062] 104. Select an interface rule corresponding to the advertisement identifier according to the advertisement identifier in the advertisement information; generate a second advertisement parameter according to the interface rule. The interface rule is the rule adopted when the advertisement front end interacts with the advertisement backend.

[0063] In a real scenario, after receiving the advertisement information, when the advertisement front end displays and processes the advertisement based on the advertisement parameter, it generates an advertisement parameter based on a set rule, and the set rule corresponds to the rule adopted when the advertisement front end interacts with the advertisement backend. The rule adopted when the advertisement front end and the advertisement backend interact is known to both the advertisement front end and the advertisement backend. Therefore, in the test scenario applied in this application, the advertisement backend can use this rule to simulate the advertisement front end to generate an advertisement parameter, and the advertisement parameter simulated and generated by the advertisement backend is used as the second advertisement parameter.

[0064] Among them, for different types of advertisements, different interface rules can be adopted when the advertisement front end generates advertisement parameters, and different advertisement parameters can be generated.

[0065] Specifically, the interface rule is the different interface document definitions adopted by the advertisement backend when sending different types of advertisements to the advertisement front end.

[0066] For example, the types of advertisements may include brand advertisements, performance advertisements, and third-party advertisements. The interface document definition used for brand advertisements is track2, the interface document definition used for third-party advertisements is etx, and the interface document definition used for performance advertisements is track3.

[0067] The advertisement identifier carried in the advertisement information can be used to distinguish the advertisement type, which is the same type as the advertisement monitoring request. Therefore, the advertisement type can be determined using the advertisement identifier in the advertisement information, and then the corresponding interface rule can be selected to generate the second advertisement parameter corresponding to the interface rule. Subsequently, Figure 5 a detailed description of this process is provided later.

[0068] 105. Generate an advertisement monitoring request based on the first advertisement parameter and the second advertisement parameter.

[0069] In a real scenario, the two component parameters included in the advertisement monitoring request are provided by the advertisement backend for one part and generated by the advertisement frontend when displaying and processing the advertisement for the other part.

[0070] In the test scenario applied in this application, the parameter provided by the advertisement backend is the first advertisement parameter, and the advertisement parameter generated by the advertisement frontend when displaying and processing the advertisement is the second advertisement parameter generated by the advertisement backend. Then, the advertisement monitoring request can be generated based on the first advertisement parameter and the second advertisement parameter.

[0071] Among them, the test advertisement request can be triggered by different advertisement behaviors. Correspondingly, the generated advertisement monitoring request can be different types of advertisement monitoring requests generated for different advertisement trigger behaviors.

[0072] Among them, the advertisement behavior may include the behavior of clicking on an advertisement, the behavior of the advertisement frontend automatically exposing the advertisement according to the set exposure rules, etc. Of course, the advertisement behavior is not limited to this. In the specific implementation process, the specific content of the advertisement behavior can be set according to the actual situation.

[0073] In a possible implementation, the request format of the advertisement monitoring request can be determined first, and then the first advertisement parameter and the second advertisement parameter are combined according to the request format to obtain the advertisement monitoring request. Subsequently, Figure 6 a detailed description of the process of generating the advertisement monitoring request is provided later.

[0074] Among them, the generated advertisement monitoring request can be sent to a specific server of the advertisement backend, and there is a corresponding tracking service in the server to receive and process the advertisement monitoring request to generate logs and data records. Among them, the content recorded in the log is the parameters and corresponding values obtained by parsing the advertisement monitoring request, and the purpose of storing the log can be determined based on the parameters and corresponding values.

[0075] Since the first advertisement parameter and the second advertisement parameter in the advertisement monitoring request correspond one-to-one with the advertisement exposed this time, the exposure of different advertisements at the same moment, or the exposure of the same advertisement at different moments, will correspond to a unique advertisement monitoring request. Then, subsequent data updates and data storage can be implemented based on this advertisement monitoring request, and it can monitor behaviors such as the exposure and click of each advertisement.

[0076] Figure 2 It is a schematic diagram of the application scenario of the method for generating an advertisement monitoring request provided by an embodiment of the present application. This application scenario includes an advertisement front-end 201 and an advertisement back-end 202. During the operation of the advertisement front-end, the generated advertisement request is backed up and stored as a test advertisement request. When testing is required, the tester transfers the test advertisement request to the advertisement back-end. Among them, the transfer method can be to transmit it to the advertisement back-end through the network, or to transmit the test advertisement request to the advertisement back-end through a data storage device.

[0077] The tester can also simulate the advertisement front-end through a tool to obtain a test advertisement request. For example, a test advertisement request is generated by simulating with a front-end simulator, and the obtained test advertisement request is transferred to the advertisement back-end.

[0078] During the test process, the method for generating an advertisement monitoring request in the present application is executed according to the obtained test advertisement request, and the test process is executed by using the generated advertisement monitoring request. Among them, after receiving the test advertisement request, the advertisement back-end 202 responds to the test advertisement request, generates advertisement information, extracts the first advertisement parameter from the advertisement information, first selects the corresponding interface rule according to the advertisement identifier in the advertisement information, then generates the second advertisement parameter by using the interface rule, and finally combines the first advertisement parameter and the second advertisement parameter at the advertisement back-end to obtain an advertisement monitoring request, realizing the process of completely generating an advertisement monitoring request locally at the test back-end after obtaining the test advertisement request, without the participation of the advertisement front-end.

[0079] In a possible implementation, the test advertisement request has format requirements, and the adjustment method can be to receive the adjustment information input by the tester through an input device. This adjustment information is used to adjust the format of the initially obtained test advertisement request so that its format is consistent with the format of the test advertisement request required for the advertisement back-end to execute the method for generating an advertisement monitoring request in the present application.

[0080] In this embodiment, a test advertisement request is received, and in response to the test advertisement request, advertisement information is generated. A first advertisement parameter is extracted from the advertisement information. The first advertisement parameter is a preset parameter among several parameters included in the advertisement information, and the preset parameter is a parameter required for the advertisement front end to display and process the advertisement corresponding to the test advertisement request. Moreover, when the advertisement back end extracts the first advertisement information from the advertisement information, it is not necessary to send the advertisement information to the advertisement front end, and the advertisement front end does not need to display and process the advertisement corresponding to the test advertisement request. According to the advertisement identifier in the advertisement information, an interface rule corresponding to the advertisement identifier is selected. The interface rule is a rule adopted when the advertisement front end and the advertisement back end interact. A second advertisement information is generated according to the interface rule. The second advertisement information is simulated by the advertisement back end as the advertisement front end. The advertisement back end also generates an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter. In this process, the entire process of generating the advertisement monitoring request is executed by the advertisement back end, without sending the advertisement information to the advertisement front end, and without exposing the advertisement corresponding to the test advertisement request at the advertisement front end. Therefore, it is not necessary for the front-end tester to collect the advertisement monitoring request when the advertisement is exposed at the advertisement front end in the test environment, reducing the complexity of the test process.

[0081] Figure 3 provided by an embodiment of the present application Figure 1 FIG. 3 is a schematic flowchart of step 103 in the embodiment for extracting the first advertisement parameter from the advertisement information, which may include steps 301 to 304. These steps will be described in detail below.

[0082] 301. Analyze the test advertisement request to obtain the parameters carried in the test advertisement request;

[0083] Among them, the purpose of the test advertisement request is to recall an advertisement at the advertisement back end, and the advertisement back end responds to the current test advertisement request to generate a log.

[0084] Among them, the parameters in the test advertisement request can instruct the advertisement back end to make corresponding responses. For example, for a specific user account, an advertisement corresponding to the user account can be obtained; for a specific device, an advertisement corresponding to the device can be obtained; for a specific advertisement space, an advertisement corresponding to the advertisement space can be obtained.

[0085] Among them, if the test advertisement request contains a specific log identifier, the advertisement back end generates a log in a specific format for the test advertisement request; otherwise, the advertisement back end does not generate a log in a specific format.

[0086] Correspondingly, the parameters carried in the test advertisement request can be screened to determine whether a specific log identifier is included.

[0087] Among them, the specific log identifier can be the debuglevel identifier. If there is a debuglevel parameter in the test ad request, when the ad backend responds to the test ad request, the information in the generated log is recorded in JSON format; if there is no debuglevel parameter in the test ad request, the information in the generated log is not recorded in JSON format.

[0088] Specifically, JSON format storage is to store data information in the form of K-V (key-value, key-value pair).

[0089] Correspondingly, if the parameters carried in the test ad request include the specific log identifier, then perform the subsequent step 302.

[0090] Among them, if the parameters carried in the test ad request do not include the specific log identifier, add the specific log identifier to the test ad request; then return and execute Figure 1 step 102 in, so that the log containing the JSON format storage information is included in the ad information generated in response to the test ad request, achieving the purpose of generating an ad monitoring request at the ad backend.

[0091] 302. If the parameters carried in the test ad request include the specific log identifier, determine the ad space identifier and ad identifier in the ad information; the specific log identifier is used to indicate that the log in the ad information is in a specific storage format;

[0092] Among them, if the parameters carried in the test ad request include the specific log identifier, when generating the ad information in response to the test ad request, a log recording this response is generated, and the format of this log is a parsable JSON format. The first ad parameter required for generating the ad monitoring request is recorded in this log, and moreover, the first ad parameter is in the storage mode of JSON format.

[0093] Among them, in the generated ad information, this log is also added to the ad information. Therefore, the JSON format can be used to locate the recording position of the first ad parameter in the ad information.

[0094] Among them, the recording position of the first ad parameter in the ad information is specifically recorded in the log in a nested manner layer by layer with identifiers such as ad space identifier and ad identifier. Therefore, by determining the ad space identifier and ad identifier in the ad information, the recording range of the first ad parameter in the log is determined.

[0095] Among them, the ad space identifier is the unique identifier of a specific ad space, used to distinguish different ad display positions, and can specifically be the ad space id; the ad identifier is the unique identifier related to a specific ad campaign, and can specifically adopt the ad id.

[0096] Among them, the logs in the advertisement information are stored in JSON format, and are stored in a nested manner with keys such as advertisement space identifiers and advertisement identifiers.

[0097] Correspondingly, when it is determined that the logs in the advertisement information are in JSON format, an advertisement space identifier and an advertisement identifier are determined in this advertisement information in sequence.

[0098] 303. Determine the recording range of the first advertisement parameter in the log according to the advertisement space identifier and the advertisement identifier, where the log is the log in the advertisement information;

[0099] Among them, the first advertisement parameter is stored in the log of the advertisement information in JSON format, specifically in a nested manner with the advertisement space identifier and the advertisement identifier.

[0100] Therefore, when the advertisement space identifier and the advertisement identifier are determined in the advertisement information, according to the key-value storage method of this JSON format, the positions of the advertisement space identifier and the advertisement identifier can be determined in the log in sequence, and then the recording ranges corresponding to the two can be determined in the log in sequence, and the recording position of the first advertisement parameter can be determined within the recording range.

[0101] In a possible implementation, the recording range corresponding to it in the log can be determined first according to the position of the advertisement space identifier in the advertisement information, then the recording range corresponding to the advertisement identifier can be further determined within this recording range, and further the recording position of the first advertisement parameter can be determined within the recording range of the advertisement identifier. Subsequently Figure 4 The specific process of determining the recording range of the first advertisement parameter in the log of the advertisement information according to the advertisement space identifier and the advertisement identifier will be described in detail.

[0102] 304. Extract the first advertisement parameter from the recording range in the log.

[0103] Among them, after the recording range of the first advertisement parameter in the log is determined, the first advertisement parameter is obtained from the corresponding recording range.

[0104] In a possible implementation, a Python for loop statement can be used to loop through the parameters in this recording range to obtain each parameter included in the first advertisement parameter, so as to obtain all the parameters included in the first advertisement parameter.

[0105] Among them, after each parameter is obtained, the parameters and their values can be concatenated together by means of string concatenation to obtain the first advertisement parameter.

[0106] In a possible implementation, it is possible to rely on a function set composed of a number of preset functions. This function set can parse advertisement information, taking the advertisement request, advertisement space identifier, and advertisement identifier as input parameters of the function set, and the output of the function set is the first advertisement parameter.

[0107] As an example, a function set is preset, which includes a main function and a debuglevel flag check function. Among them, when the main function receives the input parameters (test advertisement request, advertisement space identifier, advertisement identifier), it calls the debuglevel flag check function. The debuglevel flag check function checks whether a specific debuglevel flag is set in the test advertisement request. If the debuglevel flag exists in the test advertisement request, the first advertisement parameter is obtained from the log in the advertisement information; if the debuglevel flag does not exist in the test advertisement request, a debuglevel flag is added to the test advertisement request, and the test advertisement request with the debuglevel flag is fed back to the main function to ensure that the log content in the advertisement information obtained for the test advertisement request is in JSON format.

[0108] In this embodiment, the parameters carried in the test advertisement request are parsed. If a specific log flag is included in the parameters, it indicates that the information in the log corresponding to the response to this test advertisement request is stored in a specific format. The advertisement space identifier and advertisement identifier are determined in the advertisement information, and then, based on the advertisement space identifier and advertisement identifier, the record range of the first advertisement parameter in the log carried in the advertisement information is determined. The first advertisement parameter can be directly obtained from within this record range, realizing the process of obtaining some advertisement parameters when the advertisement backend generates an advertisement monitoring request for the advertisement request of the advertisement frontend.

[0109] Figure 4 This is provided by an embodiment of the present application Figure 3 The flowchart of step 303 in determining the record range of the first advertisement parameter in the log of the advertisement information according to the advertisement space identifier and advertisement identifier may include steps 401 to 403, which will be described in detail below.

[0110] 401. Determine a first record range in the log of the advertisement information according to the position of the advertisement space identifier in the advertisement information. This first record range contains several lines of records;

[0111] In this embodiment, in the log of the advertisement information, the first advertisement parameter is stored in a nested manner within the record range corresponding to the advertisement space identifier and advertisement identifier.

[0112] Therefore, determine the advertisement position identifier in the advertisement information in sequence, and determine the corresponding record range in the log according to the position where the advertisement identifier is located.

[0113] Since the information in the log is stored in JSON format, in the log according to the JSON storage format, the position where the advertisement position identifier is located can be determined first in the log, and each line of record below the position where the advertisement position identifier is located is used as the first record range.

[0114] 402. According to the position where the advertisement identifier is located in the advertisement information, determine the second record range in the first record range;

[0115] Among them, in the log, further determine the position where the advertisement identifier is located, and this position is specifically a line of record in the first record range.

[0116] Among them, in the log, search for the advertisement identifier, determine its position in the log, and in the first record range, determine the second record range corresponding to the advertisement identifier.

[0117] Specifically, each line of record below the position where the advertisement identifier is located can be used as the second record range.

[0118] 403. According to a specific identifier, determine the third record range of the first advertisement parameter in the log in the second record range. The third record range contains at least two lines of records, and each line of record corresponds to a parameter in the first advertisement parameter. The specific identifier represents the first advertisement parameter.

[0119] Among them, when the first advertisement parameter is recorded in the log, in addition to the advertisement position identifier and the advertisement identifier, there is also a specific identifier. The specific identifier is an identifier used to represent the first advertisement parameter. Of course, other identifiers can be set between the specific identifier and the advertisement identifier, such as a monitoring platform identifier, etc., which can be set according to actual situations and are not limited in this application.

[0120] Among them, after determining the second record range, according to the specific identifier, determine its position in the log and then determine the third record range corresponding to the specific identifier. Each line in the third record range can correspond to a recorded parameter, and the parameters recorded in each line within the third record range form the first advertisement parameter.

[0121] Among them, the specific identifier can adopt trp, and each parameter in the first advertisement parameter is recorded within the record range corresponding to trp.

[0122] As an example, the third record range corresponding to trp contains 80 lines, and the parameters and their values recorded in these 80 lines form the first advertisement parameter.

[0123] As an example, in the log of advertisement information, "s" is used as the advertisement space identifier, "a" is used as the advertisement identifier, "qt" is used as the identifier of monitoring platform qt (testers can set the identifier of the monitoring platform according to actual situations), and "trp" is used as the specific identifier corresponding to the first advertisement parameter.

[0124] Among them, in a certain advertisement information, when querying the first advertisement parameter, the corresponding advertisement space identifier is s[0], and the advertisement identifier is a[0]. First, query in the log according to this advertisement space identifier s[0] to obtain its corresponding first record range. Then continue to query for the advertisement identifier a[0] within this first record range to obtain the corresponding second record range. Next, continue to query for the qt identifier within this record range to obtain the corresponding record range. Further, query for the record range of trp within the record range corresponding to qt, and obtain the parameters and corresponding values of each row record within this record range of trp to form the first advertisement parameter.

[0125] In a real scenario, since a single advertisement exposure trigger can be for multiple advertisement spaces on a page, correspondingly, when the advertisement backend responds, it can feedback advertisements including those for the multiple advertisement spaces. Moreover, multiple advertisements can be feedback for the same advertisement space. Therefore, multiple advertisement space identifiers and multiple advertisement identifiers will be recorded in the advertisement information, and in the generated response log, the first advertisement information under each advertisement space identifier and advertisement identifier will be recorded separately.

[0126] For example, in the log, s[0] represents the first advertisement space identifier, s[1] represents the second advertisement space identifier, where a[0] represents the advertisement identifier of the first returned advertisement, and a[1] represents the advertisement identifier of the second advertisement, and so on.

[0127] Therefore, in the test scenario of this application, when extracting the first advertisement information, it is necessary to obtain this first advertisement information within the record range corresponding to the specific advertisement identifier of the specific advertisement space.

[0128] In specific implementation, the record range corresponding to each feature identifier in the log can be defined as a node, and each node stores the corresponding first advertisement information.

[0129] Among them, for different types of advertisements, the nodes storing the first advertisement parameters required for their advertisement monitoring requests are different.

[0130] As an example, when responding to a test ad request and the corresponding ad is a non-brand ad or there is no ad scenario, the first ad parameter returned by the ad backend is stored in s[x].ea.trp. Here, s[x], ea, and trp are nested JSON data. Through layer-by-layer analysis, the final node position where the first ad parameter is stored in the log can be determined. When responding to a test ad request and the corresponding ad is a brand ad, the node of the first ad parameter returned by the ad backend is in s[x].a[y].qt.ct.trp. Here, s[x], a[y], qt, ct, and trp are nested JSON data. Through layer-by-layer analysis, the final node position where the first ad parameter is stored in the log can be determined.

[0131] In this embodiment, according to the position of the ad slot identifier in the ad information, a first record range is determined in the log of the ad information. This first record range contains several lines of records. According to the position of the ad identifier in the ad information, a second record range is determined within the first record range. According to a specific identifier, a third record range where the first ad parameter is located in the log is determined within the second record range. This third record range contains at least two lines of records, and each line of record corresponds to one parameter in the first ad parameter. The specific identifier represents the first ad parameter. In the log generated by responding to a test ad request, the first ad parameter is stored in a nested manner through various identifiers. Correspondingly, when extracting the first ad parameter, the record range corresponding to it in the log is also determined by successively determining the positions of the ad slot identifier, ad identifier, and specific identifier in the ad information, thus realizing the determination of the record range of the first ad parameter in the log.

[0132] Figure 5 provided by an embodiment of the present application Figure 1 In step 104 of the present application, according to the ad identifier in the ad information, an interface rule corresponding to the ad identifier is selected; according to the interface rule, the process schematic diagram for generating the second ad parameter may include steps 501 to 504, and these steps will be described in detail below.

[0133] 501. According to the ad identifier in the ad information, determine the ad type, which is the same as the ad monitoring request type;

[0134] Among them, the log in the ad information contains a returned ad identifier. According to this ad identifier, its corresponding ad type is determined, and different ad monitoring requests are generated for different ad types.

[0135] In a possible implementation, the corresponding relationship between ads and ad types can be preset in the ad backend. By querying this corresponding relationship, the ad type corresponding to any ad can be determined.

[0136] Among them, the advertisement types may include brand advertisements, performance advertisements, third-party advertisements, etc. For different types of advertisements, the interface rules adopted by their corresponding advertisement monitoring requests are different. Correspondingly, the parameters or parameter combination methods adopted in each advertisement monitoring request are different.

[0137] In a possible implementation, the advertisement type can also be directly added to the advertisement information, so that the advertisement type can be directly obtained from the advertisement information.

[0138] As an example, when the advertisement type is a brand advertisement or there is no brand advertisement (returning an empty advertisement), the corresponding advertisement monitoring request is the track2 request; when the advertisement type is a performance advertisement, the corresponding advertisement monitoring request is the track3 request.

[0139] 502. Select the interface rule corresponding to the advertisement monitoring request type based on the correspondence between the advertisement monitoring request type and the interface rule;

[0140] Among them, for different advertisement monitoring request types, different interface rules can be set to establish the correspondence between the advertisement monitoring request type and the interface rule.

[0141] Correspondingly, after determining the advertisement monitoring request type, the corresponding interface rule can be queried through this correspondence.

[0142] Among them, various parameters can be specified in the interface rule, such as the parameters carried in the transmission information, the check code generation rule, etc.

[0143] As an example, when the advertisement monitoring request is the track2 request, the interface rule adopted is the track2 interface rule; when the advertisement monitoring request is the track3 request, the interface rule adopted is the track3 interface rule.

[0144] Among them, for different advertisement monitoring request types, the parameters they contain may be different. Generally, in order for the advertisement front-end to achieve data interaction with the advertisement back-end and to ensure the security of parameter data, verification information needs to be set. Therefore, the second advertisement parameter may include verification information and non-verification information.

[0145] Correspondingly, the interface rule may include a preset verification rule corresponding to the verification information and a parameter generation rule corresponding to the non-verification information.

[0146] Among them, according to the interface rule, the number of advertisement parameters and the value of each advertisement parameter can be set. Since the advertisement back-end simulates the generation of the parameters generated by the advertisement front-end, the second advertisement parameter may be different from the parameter value generated by the advertisement front-end. To ensure the usability of the finally generated advertisement monitoring request, the second advertisement parameter should at least contain most of the parameters that the advertisement front-end can generate.

[0147] 503. Generate verification parameters according to the preset verification rules in the interface rules corresponding to the advertisement monitoring request type;

[0148] Among them, the verification parameters are the parameters required for verification in the server of the advertisement backend to which the finally generated advertisement monitoring request is sent.

[0149] Among them, the preset verification rules in the interface rules can be defined by an interface document, and the interface document definition can define the generation rules of verification information.

[0150] As an example, in the interface document definition, it is defined that the verification parameters include the following order of arrangement: the value of a certain parameter 1 in the advertisement monitoring request, the timestamp, the value of a certain parameter 2 in the advertisement monitoring request, the value of a certain parameter 3 in the advertisement monitoring request, and a fixed string.

[0151] Among them, the advertisement backend and the advertisement frontend have pre-agreed on parameter 1, parameter 2, parameter 3, the fixed string, and the value-taking rules of each parameter. Correspondingly, the advertisement backend determines the values of the three parameters according to the above three parameters and the value-taking rules.

[0152] Among them, some of the parameters included in the above verification parameters can be returned by the advertisement backend to the advertisement frontend. Correspondingly, when generating the verification parameters, the corresponding parameters obtained from the advertisement information can be added to the verification parameters.

[0153] Among them, the timestamp can automatically generate the timestamp of the current moment according to the time library of the advertisement backend.

[0154] Correspondingly, the above-generated parameters, parameter values, timestamp, and fixed string are used to generate verification parameters according to the aforementioned verification parameter rules.

[0155] 504. Generate non-verification parameters according to the preset parameter generation rules in the interface rules corresponding to the advertisement monitoring request type. The verification parameters and the non-verification parameters constitute the second advertisement parameters.

[0156] Among them, the non-verification parameters are not used for subsequent verification of the advertisement monitoring request. Therefore, they can be generated using the preset parameter generation rules, and the preset parameter generation rules include the items of parameters to be generated and the setting rules of their corresponding parameter values.

[0157] Among them, the preset parameter generation rules in the interface rules can also be defined by an interface document, and the interface document definition defines the generation rules of non-verification information.

[0158] In a specific implementation, the interface document definition includes a verification part and a field definition part. The verification part defines the generation rules of verification information, and the field definition part defines the parameters of non-verification information.

[0159] Correspondingly, for each parameter defined in the field definition part, a preset value is set. This preset value can be used as the default value for non-verification parameters, and each corresponding parameter uses this default value every time an advertisement monitoring request is generated.

[0160] Among them, for non-verification parameters specified in the interface rules, mock data can be used. This mock data conforms to the interface requirements but is not real business data.

[0161] Among them, the non-verification parameters specified in the interface rules may include: timestamp parameters, advertisement front-end application version numbers, etc.

[0162] In a possible implementation, different triggering methods for test advertisement requests can also be set to generate advertisement monitoring requests in different formats.

[0163] For example, the triggering methods include: triggering when the advertisement exposure condition is reached, click triggering, etc.

[0164] In a real scenario, the advertisement front-end will add the corresponding triggering parameters to the advertisement request and send them to the advertisement back-end together. Therefore, in the test scenario of this application, in addition to depending on the advertisement type, the triggering parameters can also be combined to generate advertisement monitoring requests corresponding to the triggering methods.

[0165] In this embodiment, according to the advertisement identifier in the advertisement information, the advertisement type is determined, and this advertisement type is the same as the advertisement monitoring request type; based on the corresponding relationship between the advertisement monitoring type and the interface rules, the interface rules corresponding to this advertisement monitoring request type are selected; according to the preset verification rules in the interface rules corresponding to the advertisement monitoring request type, verification parameters are generated; according to the preset parameter generation rules in the interface rules corresponding to the advertisement monitoring request type, non-verification parameters are generated, and the verification parameters and the non-verification parameters form the second advertisement parameters. It realizes simulating the second advertisement parameters generated by the advertisement front-end at the advertisement back-end without the advertisement front-end executing this process, omitting the interaction process between the advertisement front-end and the advertisement back-end on the premise of ensuring the verification of the verification server at the advertisement back-end, without the need to build a complex test environment, nor the need for advertisement front-end testers to help obtain the generated advertisement monitoring requests, reducing the complexity of the test process and also reducing the costs required for testing.

[0166] Figure 6 This is provided by the embodiments of the present application Figure 1The schematic flowchart of step 105 in generating an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter may include steps 601 to 603, and the following will describe these steps in detail.

[0167] 601. Analyze the test advertisement request to obtain the server identifier in the test advertisement request, where the server identifier represents the target server that receives the advertisement monitoring request;

[0168] Among them, the test advertisement request also contains a server identifier, and the server identifier may be the server IP.

[0169] Among them, the server may be both the server corresponding to the test advertisement request and the target server that receives the finally generated advertisement monitoring request, and the server can verify the finally generated advertisement monitoring request.

[0170] In a possible implementation, a function for extracting the server identifier from the test advertisement request may be defined in advance, and the test advertisement request is used as the input parameter of the function, and the output of the function is the server identifier.

[0171] 602. Determine the request format of the advertisement monitoring request based on the type of the advertisement monitoring request;

[0172] Among them, different types of advertisement monitoring requests have different request formats.

[0173] As an example, the request format of the advertisement monitoring request for brand advertisements includes the track2 field, and the request format of the advertisement monitoring request for third-party advertisements includes the ext field.

[0174] As an example, the request format of the advertisement monitoring request for brand advertisements is as follows:

[0175] http: / / {server ip} / track2?a=xx&b=xx&r=xx&.....

[0176] As an example, the request format of the advertisement monitoring request for third-party advertisements is as follows:

[0177] http: / / {server ip} / ext?a=xx&b=xx&r=xx&.....

[0178] Among them, the server ip is the ip of the target server, which is the server that receives the advertisement monitoring request and verifies it. a, b, and r respectively represent the parameters in the first advertisement parameter and the second advertisement parameter. xx represents the value of the corresponding advertisement parameter.

[0179] It should be noted that the sequence of obtaining the server identifier and determining the request format of the advertisement monitoring request is not limited to the description in the specification. In specific implementations, the two can be executed simultaneously or in any order, and no limitation is imposed in this application.

[0180] 603. According to the request format, combine the server identifier, the first advertisement parameter, and the second advertisement parameter to generate the advertisement monitoring request.

[0181] Among them, after determining the first advertisement parameter and the second advertisement parameter, according to the request format of the advertisement monitoring request, add the server identifier and each advertisement parameter to the request format one by one in the way of string concatenation to obtain the advertisement monitoring request corresponding to the test advertisement request for this test.

[0182] In this embodiment, the test advertisement request is parsed to obtain the server identifier therein, the target server for receiving the advertisement monitoring request is determined, and moreover, according to the advertisement monitoring request, the request format of the advertisement monitoring request is determined. According to this request format, the previously determined server identifier, first advertisement parameter, and second advertisement parameter are combined to generate the advertisement monitoring request, realizing the process of automatically generating the advertisement monitoring request at the advertisement backend.

[0183] Figure 7 It is a schematic diagram of the application scenario of a method for generating an advertisement monitoring request provided by an embodiment of this application. The process of obtaining the advertisement monitoring request includes three parts: input information 701, processing information 702, and return result 703.

[0184] Among them, the information input in the input information 701 includes a test advertisement request, an advertisement space identifier, and an advertisement identifier. The test advertisement request is a URL (Uniform Resource Locator) transmitted using the show2 interface. The advertisement space identifier can be an advertisement space id, and the advertisement identifier can be an advertisement id.

[0185] Among them, in the processing information 702, the information is processed through a function set composed of a plurality of preset functions. The function set includes a main function, a function for obtaining the service IP, a debuglevel identifier check function, a log acquisition function, and an advertisement monitoring request generation function (a function for generating an advertisement monitoring request for a third-party advertisement, a function for generating an advertisement monitoring request for a brand advertisement).

[0186] Among them, after receiving the test advertisement request, advertisement space id, and advertisement id, the main function calls the function for obtaining the service IP and the debuglevel identifier check function; calls the function for obtaining the service IP to parse the test advertisement request as an input parameter to obtain the server IP in the test advertisement request.

[0187] Among them, the debuglevel flag checks whether a specific debuglevel flag is set in the test ad request. If the specific debuglevel flag is included, the log acquisition function obtains the log content in JSON format from the ad information and returns it to the main function. The main function extracts the first ad parameter from the log based on the ad slot ID and the ad ID. The main function determines the interface rule according to the ad ID, generates the second ad parameter according to the interface rule, determines the ad type according to the ad ID, calls the corresponding ad monitoring request generation function according to the ad type. The ad monitoring request generation function determines the corresponding ad monitoring request format, and combines the first ad parameter, the second parameter, and the server IP according to this format to generate an ad monitoring request.

[0188] In the real scenario, the ad requests triggered by different actions carry parameters of the trigger method. For example, when the parameter a takes the value of 0, it represents an exposure, and when the parameter a takes the value of 1, it represents an exposure click. In the test scenario applied in this application, this parameter can be added to the test ad request. The main function extracts this parameter and uses it as an input parameter of the ad monitoring request generation function, and sends it to the ad monitoring request generation function. The ad monitoring request generation function can generate different ad monitoring requests for different trigger methods.

[0189] Among them, in the return result 703, for the ad monitoring request for the exposure action, the exposure ad monitoring request corresponding to the test ad request is returned; for the ad monitoring request for the click action, the click ad monitoring request corresponding to the test ad request is returned. The ad monitoring request adopts the form of a URL address.

[0190] The above introduces a method for generating an ad monitoring request provided by an embodiment of the present application. Next, a device for executing the above method for generating an ad monitoring request will be introduced.

[0191] Figure 8 It is a schematic structural diagram of a device for generating an ad monitoring request provided by an embodiment of the present application. The ad monitoring request generation device 800 includes the following structures;

[0192] A request receiving module 801, configured to receive a test ad request;

[0193] An information generating module 802, configured to generate ad information in response to the test ad request;

[0194] A parameter extraction module 803, configured to extract a first ad parameter from the ad information. The first ad parameter is a preset parameter in the ad information, and the preset parameter is a parameter required for the ad front end to display and process the ad corresponding to the test ad request;

[0195] A parameter generation module 804, configured to select an interface rule corresponding to the advertisement identifier according to the advertisement identifier in the advertisement information; and generate second advertisement parameters according to the interface rule, where the interface rule is a rule adopted when the advertisement front end interacts with the advertisement back end.

[0196] A request generation module 805, configured to generate an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter.

[0197] In a possible implementation, the parameter extraction module includes:

[0198] A parsing unit, configured to parse the test advertisement request to obtain the parameters carried in the test advertisement request.

[0199] A first determination unit, configured to determine an advertisement space identifier and an advertisement identifier in the advertisement information if the parameters carried in the test advertisement request include a specific log identifier; the specific log identifier is used to indicate that the log in the advertisement information is in a specific storage format.

[0200] A second determination unit, configured to determine the recording range of the first advertisement parameter in the log according to the advertisement space identifier and the advertisement identifier, where the log is the log in the advertisement information.

[0201] An extraction unit, configured to extract the first advertisement parameter from the recording range in the log.

[0202] In a possible implementation, the second determination unit is specifically configured to:

[0203] Determine a first recording range in the log of the advertisement information according to the position of the advertisement space identifier in the advertisement information, where the first recording range includes several lines of records.

[0204] Determine a second recording range in the first recording range according to the position of the advertisement identifier in the advertisement information.

[0205] Determine a third recording range of the first advertisement parameter in the log in the second recording range according to a specific identifier, where the third recording range includes at least two lines of records, and each line of record corresponds to a parameter in the first advertisement parameter, and the specific identifier represents the first advertisement parameter.

[0206] In a possible implementation, the parameter extraction module further includes:

[0207] An adding unit, configured to add the specific log identifier to the test advertisement request if the parameters carried in the test advertisement request do not include the specific log identifier.

[0208] The information generation module further generates advertisement information according to the test advertisement request with the specific log identifier added.

[0209] In a possible implementation, the parameter generation module includes:

[0210] A third determination unit, configured to determine an advertisement type according to an advertisement identifier in the advertisement information, where the advertisement type is the same as the advertisement monitoring request type;

[0211] A selection unit, configured to select an interface rule corresponding to the advertisement monitoring request type based on the correspondence between the advertisement monitoring type and the interface rule;

[0212] A first generation unit, configured to generate a verification parameter according to a preset verification rule in the interface rule corresponding to the advertisement monitoring request type;

[0213] A second generation unit, configured to generate a non-verification parameter according to a preset parameter generation rule in the interface rule corresponding to the advertisement monitoring request type, where the verification parameter and the non-verification parameter form the second advertisement parameter.

[0214] In a possible implementation, the request generation module is specifically configured to:

[0215] Parse the test advertisement request to obtain a server identifier in the test advertisement request, where the server identifier represents a target server that receives the advertisement monitoring request;

[0216] Determine a request format of the advertisement monitoring request based on the advertisement monitoring request type;

[0217] Combine the server identifier, the first advertisement parameter, and the second advertisement parameter according to the request format to generate the advertisement monitoring request.

[0218] It should be noted that for the function explanations of the respective constituent structures in an advertisement monitoring request generation device provided in this application, please refer to the explanations in the foregoing method embodiments, and details are not described in this embodiment.

[0219] In this embodiment, a request receiving module is configured to receive a test advertisement request; an information generating module responds to the test advertisement request to generate advertisement information; a parameter determining module extracts a first advertisement parameter from the advertisement information, where the first advertisement parameter is a preset parameter in the advertisement information, and the preset parameter is a parameter required for the advertisement front end to display and process the advertisement corresponding to the test advertisement request; when the advertisement back end extracts the first advertisement information from the advertisement information, it is not necessary to send the advertisement information to the advertisement front end, and the advertisement front end does not need to display and process the advertisement corresponding to the test advertisement request; a parameter generating module is configured to select an interface rule corresponding to the advertisement identifier according to the advertisement identifier in the advertisement information; according to the interface rule, generate a second advertisement parameter, where the interface rule is a rule adopted when the advertisement front end interacts with the advertisement back end; the second advertisement information is simulated by the advertisement back end as the advertisement front end; a request generating module is configured to generate an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter. In this process, the entire process of generating the advertisement monitoring request is executed by the advertisement back end, without sending the advertisement information to the advertisement front end, and without exposing the advertisement corresponding to the test advertisement request at the advertisement front end. Therefore, it is not necessary for the front-end tester to collect the advertisement monitoring request when the advertisement is exposed at the advertisement front end in the test environment, reducing the complexity of the test process.

[0220] An electronic device is further provided in the embodiment of the present application. Refer to Figure 9 As shown, it shows a schematic structural diagram of an electronic device suitable for implementing the electronic device in the embodiment of the present application. The electronic device in the embodiment of the present application may include, but is not limited to, fixed terminals such as mobile phones, laptop computers, PDAs (Personal Digital Assistants), PADs (Tablet Computers), desktop computers, and the like. Figure 9 The electronic device shown is only an example and should not impose any limitations on the functions and usage scope of the embodiment of the present application.

[0221] As Figure 9 shown, the electronic device may include a processing device (such as a central processing unit, a graphics processing unit, etc.) 901, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 902 or the program loaded from the storage device 908 into the random access memory (RAM) 903. When the electronic device is powered on, various programs and data required for the operation of the electronic device are also stored in the RAM 903. The processing device 901, the ROM 902, and the RAM 903 are connected to each other through a bus 904. The input / output (I / O) interface 905 is also connected to the bus 904.

[0222] Typically, the following devices can be connected to the I / O interface 905: input devices 906 including, for example, a touch screen, a touchpad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 907 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 908 including, for example, a memory card, a hard disk, etc.; and a communication device 909. The communication device 909 can allow the electronic device to communicate with other devices wirelessly or wiredly to exchange data. Although Figure 9 an electronic device with various devices is shown, it should be understood that it is not required to implement or have all the shown devices. Instead, more or fewer devices can be implemented or had.

[0223] An embodiment of the present application also provides a computer program product including computer-readable instructions. When the computer-readable instructions run on an electronic device, the electronic device is enabled to implement any one of the advertisement monitoring request generation methods provided by the embodiments of the present application.

[0224] An embodiment of the present application also provides a computer-readable storage medium. The storage medium carries one or more computer programs. When the one or more computer programs are executed by an electronic device, the electronic device can be enabled to implement any one of the advertisement monitoring request generation methods provided by the embodiments of the present application.

[0225] In addition, it should be noted that the device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided by the present application, the connection relationship between the modules indicates that they have a communication connection, which can be specifically implemented as one or more communication buses or signal lines.

[0226] Through the description of the above embodiments, those skilled in the art can clearly understand that this application can be implemented by means of software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including application-specific integrated circuits, dedicated CPUs, dedicated memories, dedicated components, etc. Generally, functions accomplished by computer programs can be easily implemented by corresponding hardware, and the specific hardware structures for implementing the same function can also be diverse, such as analog circuits, digital circuits, or dedicated circuits, etc. However, for this application, software program implementation is a better embodiment in more cases. Based on such an understanding, the technical solution of this application, in essence, or the part that makes contributions to the prior art, can be embodied in the form of a software product. This computer software product is stored in a readable storage medium, such as a floppy disk, USB flash drive, mobile hard disk, ROM, RAM, magnetic disk, or optical disc of a computer, etc., and includes several instructions to enable a computer device (which can be a personal computer, training device, or network device, etc.) to execute the methods described in various embodiments of this application.

[0227] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product.

[0228] The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of this application are generated in whole or in part. The computer can be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, training device, or data center to another website, computer, training device, or data center by wire (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wirelessly (such as infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that a computer can store, or a data storage device such as a training device or data center that includes one or more integrated available media. The available medium can be a magnetic medium (such as a floppy disk, hard disk, magnetic tape), an optical medium (such as a DVD), or a semiconductor medium (such as a solid state disk (SSD)), etc.

Claims

1. A method for generating an advertisement monitoring request, characterized in that: Applied to the advertising backend, the method includes: Receive test ad requests; In response to the test advertisement request, generating advertisement information; Extracting a first advertisement parameter from the advertisement information, where the first advertisement parameter is a preset parameter in the advertisement information, and the preset parameter is a parameter required by the advertisement front end for displaying and processing the advertisement corresponding to the test advertisement request: According to the advertisement identifier in the advertisement information, an interface rule corresponding to the advertisement identifier is selected; according to the interface rule, a second advertisement parameter is generated, wherein the interface rule is a rule adopted when the advertisement front end interacts with the advertisement back end; An advertisement monitoring request is generated according to the first advertisement parameter and the second advertisement parameter.

2. The method for generating an advertisement monitoring request according to claim 1, characterized in that: The extracting the first advertisement parameter from the advertisement information includes: Parsing the test advertisement request to obtain parameters carried in the test advertisement request; If the parameter carried in the test advertisement request includes a specific log identifier, determining an advertisement position identifier and an advertisement identifier in the advertisement information; the specific log identifier is used to indicate that the log in the advertisement information is in a specific storage format; Determine, according to the advertisement position identifier and the advertisement identifier, a recording range of the first advertisement parameter in a log, wherein the log is a log in the advertisement information; A first advertisement parameter is extracted from a record range in the log.

3. The method for generating an advertisement monitoring request according to claim 2, characterized in that: The step of determining a recording range of the first advertisement parameter in a log of advertisement information according to the advertisement position identifier and the advertisement identifier includes: Determine a first record range in the log of the advertisement information according to the location of the advertisement position identifier in the advertisement information, wherein the first record range includes a plurality of rows of records; Determine a second recording range in the first recording range according to the location of the advertisement identifier in the advertisement information; According to the specific identifier, a third record range of the first advertising parameter in the log is determined in the second record range, the third record range includes at least two rows of records, each row of records corresponds to a parameter in the first advertising parameter, and the specific identifier represents the first advertising parameter.

4. The method for generating an advertisement monitoring request according to claim 2, characterized in that: Also includes: If the parameter carried in the test advertisement request does not include a specific log identifier, adding the specific log identifier to the test advertisement request; According to the test advertisement request with the specific log identifier added, the step of responding to the test advertisement request and generating advertisement information is returned to be executed.

5. The method for generating an advertisement monitoring request according to claim 1, characterized in that: The step of selecting an interface rule corresponding to the advertisement identifier according to the advertisement identifier in the advertisement information; and generating a second advertisement parameter according to the interface rule includes: Determining an advertisement type according to the advertisement identifier in the advertisement information, the advertisement type being the same as the advertisement monitoring request type; Based on the correspondence between the advertisement monitoring type and the interface rule, select the interface rule corresponding to the advertisement monitoring request type; Generate verification parameters according to a preset verification rule in an interface rule corresponding to the advertisement monitoring request type; A non-verification parameter is generated according to a preset parameter generation rule in an interface rule corresponding to the advertisement monitoring request type, and the verification parameter and the non-verification parameter constitute the second advertisement parameter.

6. The method for generating an advertisement monitoring request according to claim 5, characterized in that: The step of generating an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter includes: Parsing the test advertisement request to obtain a server identifier in the test advertisement request, wherein the server identifier represents a target server receiving the advertisement monitoring request; Determining a request format of the advertisement monitoring request based on the advertisement monitoring request type; The server identifier, the first advertisement parameter and the second advertisement parameter are combined according to the request format to generate the advertisement monitoring request.

7. A device for generating an advertisement monitoring request, characterized in that: Applied to the advertising backend, the device includes: A request receiving module, used for receiving a test advertisement request; An information generating module, used for generating advertisement information in response to the test advertisement request; A parameter extraction module, configured to extract a first advertisement parameter from the advertisement information, wherein the first advertisement parameter is a preset parameter in the advertisement information, and the preset parameter is a parameter required by the advertisement front end for displaying and processing the advertisement corresponding to the test advertisement request; A parameter generation module, configured to select an interface rule corresponding to the advertisement identifier in the advertisement information according to the advertisement identifier; and generate a second advertisement parameter according to the interface rule, wherein the interface rule is a rule adopted when the advertisement front end interacts with the advertisement back end; A request generating module is used to generate an advertisement monitoring request according to the first advertisement parameter and the second advertisement parameter.

8. A computer program product, characterized in that It comprises computer-readable instructions, and when the computer-readable instructions are executed on an electronic device, the electronic device implements the method for generating an advertisement monitoring request as claimed in any one of claims 1 to 6.

9. An electronic device, characterized in that: The method comprises at least one processor and a memory connected to the processor, wherein: The memory is used to store computer programs; The processor is used to execute the computer program so that the electronic device can implement the method for generating an advertisement monitoring request as described in any one of claims 1 to 6.

10. A computer storage medium, characterized in that: The storage medium carries one or more computer programs, and when the one or more computer programs are executed by an electronic device, the electronic device can implement the method for generating an advertisement monitoring request as described in any one of claims 1 to 6.