Advertisement event occurrence time determination method, storage medium and electronic equipment

By obtaining the time and historical ID of the advertisement event on the client and correcting it on the server side, using the server-side time as a unified reference, the inaccuracy of the advertisement event time and the difference between the client time is solved, and the advertisement event time is realized Accuracy and consistency.

CN119313401APending Publication Date: 2025-01-14SUZHOU GUOSHUANG SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310844948.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-07-11
Publication Date
2025-01-14

AI Technical Summary

Technical Problem

The inaccuracy of the time of advertising events leads to unavailability of data or incorrect conclusions, especially due to the deviation of the time system of the client device and the differences in time between different clients, there is a lack of unified reference standards.

Method used

By obtaining the current advertising event occurrence time and historical advertising event ID on the client and reporting it to the server. The server determines the current advertising event occurrence time based on the reception time and historical advertising event ID, and corrects it according to the round trip delay and time difference. , using server-side time as a unified reference.

Benefits of technology

It avoids the time of advertising events being affected by the client time system, solves the problem of time differences between multiple client devices, and ensures the accuracy and consistency of advertising events time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119313401A_ABST
    Figure CN119313401A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides an advertisement event occurrence time determination method, a storage medium and electronic equipment, and belongs to the field of advertisement monitoring. The method comprises the following steps: when a current advertisement event occurs, acquiring current advertisement event occurrence time and current advertisement event information of a client side, and generating current advertisement event data; determining a historical advertisement event ID of the historical advertisement event at the client side; the current advertisement event data and the historical advertisement event ID are reported to a server, the server side determines the receiving time of the server side according to the received reported information, then determines the occurrence time of the current advertisement event according to the receiving time, and determines whether to correct the occurrence time of the current advertisement event according to the occurrence time of the historical advertisement event. In this way, the server side time is adopted as the unified reference time, and the problems that the occurrence time of the advertisement event is affected by a client side time system and time differences exist among multiple client side devices are solved.
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 in particular to a method for determining the occurrence time of an advertising event, a storage medium and an electronic device. Background Art

[0002] Many aspects of the advertising monitoring and analysis process rely on the time of occurrence of advertising events, such as exposure time, click time, etc. If the time of occurrence of the advertising event is inaccurate, it may lead to data unavailability or even wrong conclusions.

[0003] At present, the client time is generally used as the occurrence time of the advertising event. For example, when the advertisement is exposed, the time of the client device is collected as the exposure time of the advertisement, and when the advertisement is clicked, the time of the client device is collected as the click time of the advertisement. Because the time of the advertising event is directly collected from the time of the client device, it is affected by the client device time system. For example, if the client time is 3 minutes slower, the collected advertising event time will be 3 minutes slower. The impact of this situation is relatively small, but if the client device time is reset to January 1, 1970, the collected advertising event time will be seriously deviated from the actual time and will affect subsequent analysis. For example, after the user is exposed to the advertisement, before clicking, the device time is adjusted from 10:10 to 10:08. When analyzing the data, it will be found that the click occurred before the exposure, which is obviously unreasonable. At the same time, there are differences in the time of different clients, so there is no unified reference standard for the collected advertising event time, which will be affected when it is necessary to analyze data from different client devices. Summary of the invention

[0004] The purpose of the embodiments of the present invention is to provide a method for determining the occurrence time of an advertising event, a storage medium, and an electronic device, so as to solve at least part of the technical problems existing in the above-mentioned prior art.

[0005] In order to achieve the above-mentioned purpose, an embodiment of the present invention provides a method for determining the occurrence time of an advertising event, which is applied to a client, including obtaining the current advertising event occurrence time and current advertising event information corresponding to the current advertising event on the client side when the current advertising event occurs, and generating current advertising event data based on the current advertising event occurrence time and the current advertising event information; determining the historical advertising event ID of the historical advertising event on the client side; and reporting the current advertising event data and the historical advertising event ID to a server.

[0006] Optionally, the method further includes:

[0007] Obtaining a reporting time for the client side to report the current advertising event data and the historical advertising event ID to the server; and

[0008] The difference between the occurrence time of the current advertising event and the reporting time is calculated, and the difference is reported to the server.

[0009] Optionally, the historical advertising event is an advertising event that occurred most recently before the current advertising event occurred on the client side.

[0010] On the other hand, an embodiment of the present invention also provides a method for determining the occurrence time of an advertising event, which is applied to a server side and includes: receiving current advertising event data and historical advertising event IDs of historical advertising events from a client side, and determining the reception time of the server side for the current advertising event data and the historical advertising event IDs of historical advertising events; determining the occurrence time of the historical advertising event corresponding to the historical advertising event ID based on the historical advertising event ID; determining the occurrence time of the current advertising event based on the reception time, and determining whether to correct the occurrence time of the current advertising event based on the historical advertising event occurrence time.

[0011] Optionally, the method further includes:

[0012] receiving a difference between the occurrence time of the current advertising event reported by the client and the reporting time;

[0013] The determining of the occurrence time of the current advertising event is also based on the difference.

[0014] Optionally, the occurrence time of the current advertising event is determined according to the following formula:

[0015] T= s -ΔT c -2T RTT

[0016] Wherein, T represents the occurrence time of the current advertising event, T s represents the receiving time, ΔT c represents the difference between the occurrence time of the current advertising event reported by the client and the reporting time, T RTT Represents the round-trip delay between the client and the server.

[0017] Optionally, the determination of the round trip delay includes:

[0018] In response to the client reporting the current advertisement event data, adding an initial timestamp in the TCP protocol;

[0019] Sending a confirmation message to the client indicating that the current advertisement event data has been received, and determining a current timestamp when receiving a response message returned by the client;

[0020] The round trip delay is determined according to the initial timestamp and the current timestamp.

[0021] Optionally, determining whether to modify the occurrence time of the current advertising event according to the occurrence time of the historical advertising event includes:

[0022] If the occurrence time of the current advertising event is earlier than the occurrence time of the historical advertising event, it is determined to correct the occurrence time of the current advertising event.

[0023] Optionally, modifying the occurrence time of the current advertising event includes:

[0024] The occurrence time of the current advertising event is determined to be a predetermined time later than the occurrence time of the historical advertising event.

[0025] Accordingly, an embodiment of the present invention further provides a client for determining the occurrence time of an advertising event, including:

[0026] Memory; and

[0027] The processor is configured to execute the above-mentioned determination method.

[0028] Accordingly, an embodiment of the present invention further provides a server for the occurrence time of an advertisement event, comprising:

[0029] Memory; and

[0030] The processor is configured to execute the above-mentioned determination method.

[0031] On the other hand, the present invention provides an electronic device, including a processor, a memory and a bus; wherein the processor and the memory communicate with each other through the bus, and the processor is used to call program instructions in the memory to execute the above-mentioned determination method.

[0032] On the other hand, the present invention provides a computer-readable storage medium having instructions stored thereon, the instructions being used to enable a machine to execute the determination method described above in the present application.

[0033] Through the above technical solution, when the current advertising event occurs, the current advertising event occurrence time and the historical advertising event ID corresponding to the client side are sent to the server side. The server side determines the reception time of the server side based on the received current advertising event data and the historical advertising event ID of the historical advertising event, and determines the occurrence time of the historical advertising event based on the historical advertising event ID. Finally, the occurrence time of the current advertising event is determined based on the reception time, and based on the occurrence time of the historical advertising event, it is determined whether to correct the occurrence time of the current advertising event. In this way, by using the server-side time as the unified reference time, the occurrence time of the advertising event is avoided from being affected by the client time system, and the problem of time differences between multiple client devices is avoided.

[0034] Other features and advantages of the embodiments of the present invention will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] The accompanying drawings are used to provide a further understanding of the embodiments of the present invention and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the embodiments of the present invention, but do not constitute a limitation on the embodiments of the present invention. In the accompanying drawings:

[0036] Figure 1 It is a schematic diagram of the structure of a system for determining the occurrence time of an advertising event provided by an embodiment of the present invention;

[0037] Figure 2 It is a flow chart of an implementation of a method for determining the occurrence time of an advertising event provided by an embodiment of the present invention;

[0038] Figure 3 is a flowchart of another method for determining the occurrence time of an advertising event provided by an embodiment of the present invention;

[0039] Figure 4 is a flowchart of a method for determining the occurrence time of an advertising event provided by another embodiment of the present invention;

[0040] Figure 5 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0041] Many aspects of the advertising monitoring and analysis process rely on the time of occurrence of advertising events, such as exposure time, click time, etc. If the time of occurrence of an advertising event is inaccurate, it may cause data unavailability or even lead to incorrect conclusions. At present, there are generally two solutions to calculate the time of occurrence of advertising events. One is to use the client time as the time of occurrence of the advertising event. For example, when the advertisement is exposed, the time of the client device is collected as the exposure time of the advertisement, and when the advertisement is clicked, the time of the client device is collected as the click time of the advertisement. The other is to use the server time as the time of occurrence of the advertising event, for example, the time when the server receives the advertisement exposure request is used as the advertisement exposure time.

[0042] The applicant found that in the above-mentioned solution one, the time of the advertising event is directly collected from the time of the client device, and is therefore affected by the client device time system. For example, if the client time is 3 minutes slow, the collected advertising event time will be 3 minutes slow. The impact of this situation is relatively small; if the client device time is reset to January 1, 1970, the collected advertising event time will be seriously deviated from the actual time and will affect subsequent analysis. For example, after the advertisement is exposed, the user adjusts the device time from 10:10 to 10:08 before clicking. When analyzing the data, it will be found that the click occurred before the exposure, which is obviously unreasonable. At the same time, there will be differences in the time of different clients. Therefore, there is no unified reference standard for the collected advertising event time. When it is necessary to analyze data from different client devices, it will be affected because the time sequence between them may be inconsistent with the actual situation.

[0043] In the above solution 2, the time of the advertising event is the time when the server receives the request. At this time, there is also a situation where the advertising event time does not match the actual time. For example, after the advertisement is exposed, the network is suddenly interrupted when sending a request to the server. At this time, the time when the exposure request is sent to the server will be later than the actual time of exposure. This situation is more common on the mobile side. For example, when a user uses a mobile phone on the subway or on the high-speed rail, the above situation will often occur because the network is unstable at this time.

[0044] In view of this, the present invention proposes a method for determining the occurrence time of an advertising event, a storage medium and an electronic device, which are used to solve the technical problems existing in the above-mentioned prior art.

[0045] The specific implementation of the embodiment of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the embodiment of the present invention, and is not used to limit the embodiment of the present invention.

[0046] See also Figure 1As shown, it is a schematic diagram of the structure of a system for determining the occurrence time of an advertisement event provided by an embodiment of the invention, including a client and a server.

[0047] The client includes: an advertising event data collection module and an advertising event data sending module, and the server includes: an advertising event data receiving module and an advertising event data processing module.

[0048] Specifically, the advertising event data collection module of the client writes the collected advertising event data information into the advertising event data queue, the advertising event data sending module reads its important information and sends it to the advertising event data receiving module of the server, and further, the advertising event data receiving module sends the received advertising event data to the advertising event data processing module.

[0049] See also Figure 2 As shown, it is a flowchart of a method for determining the occurrence time of an advertising event provided by an embodiment of the present invention, and specifically performs the following steps:

[0050] S200: When a current advertising event occurs, the client obtains the current advertising event occurrence time and current advertising event information corresponding to the current advertising event on the client side, and generates current advertising event data based on the current advertising event occurrence time and the current advertising event information.

[0051] S201: Determine a historical advertising event ID of a historical advertising event on the client side.

[0052] Optionally, the historical advertising event is a series of advertising events that occurred on the client side before the current advertising event that occurred, preferably the advertising event that occurred most recently before the current advertising event that occurred on the client side. If the advertising event that occurred most recently before the current advertising event is not available, any historical advertising event that occurred before the most recently occurring advertising event is selected.

[0053] In some implementations, when an advertising event occurs, the advertising event collection module of the client collects necessary information and the client time (denoted as T C1 ) and generates advertising event data, and at the same time attaches the ID (denoted as PID) of the previous advertising event to the advertising event data (if there is no previous advertising event, the attachment is blank).

[0054] S202: The client reports the current advertising event data and the historical advertising event ID to the server.

[0055] In some implementations, data can be transmitted between the client and the server via http protocol, IP protocol, etc. The choice of a specific protocol can be based on the actual application scenario and is not limited here. In addition, during the transmission process, if the client fails to report due to factors such as network interruption, it is necessary to re-transmit the current advertising event occurrence time and current advertising event information corresponding to the current advertising event on the client side.

[0056] S203: The server receives the current advertising event data and the historical advertising event ID of the historical advertising event from the client, and determines the reception time of the server for the current advertising event data and the historical advertising event ID of the historical advertising event.

[0057] S204: The server determines the occurrence time of the historical advertising event corresponding to the historical advertising event ID according to the historical advertising event ID.

[0058] S205: The server determines the occurrence time of the current advertisement event according to the receiving time.

[0059] In some implementations, the time when the server receives the current advertising event data and the historical advertising event ID of the historical advertising event is determined as the occurrence time of the current advertising event.

[0060] In some embodiments, if the client side reports the current advertising event data and the historical advertising event ID, there is no network delay and the transmission speed is fast enough to be ignored, and the server side responds quickly when receiving without any delay, or the delay is short enough to be ignored, the receiving time is determined as the occurrence time of the current advertising event.

[0061] S206: Determine whether the occurrence time of the current advertising event is earlier than the occurrence time of the historical event. If so, execute step S207; otherwise, execute step S208.

[0062] S207: Correct the occurrence time of the current advertising event.

[0063] S208: The occurrence time of the current advertising event is not modified.

[0064] See also Figure 3 As shown, it is a flowchart of another method for determining the occurrence time of an advertising event provided by an embodiment of the present invention, and specifically performs the following steps:

[0065] S300: When a current advertising event occurs, the client side obtains the current advertising event occurrence time and current advertising event information corresponding to the current advertising event, and generates current advertising event data based on the current advertising event occurrence time and the current advertising event information.

[0066] S301: Determine the historical advertising event ID of the historical advertising event on the client side.

[0067] S302: The client reports the current advertising event data and the historical advertising event ID to the server.

[0068] S303: The server receives the current advertising event data and the historical advertising event ID of the historical advertising event from the client, and determines the reception time of the server for the current advertising event data and the historical advertising event ID of the historical advertising event.

[0069] S304: The client side obtains the reporting time of the client side for reporting the current advertisement event data and the historical advertisement event ID to the server.

[0070] S305: The client side calculates the difference between the occurrence time of the current advertising event and the reporting time, and reports the difference to the server.

[0071] S306: The server receives the difference between the occurrence time of the current advertising event reported by the client and the reporting time.

[0072] In some implementations, the advertising event data sending module collects the client time (denoted as T C2 ), and calculate the time difference T C2 -T C1 The value (denoted as: ΔT C ), and at the same time, ΔT C The value of is reported to the server. If the data collected by the client is reported to the server via the http protocol, a network interruption will cause the report to fail. If the report fails, ΔT needs to be recalculated when re-reporting. C .

[0073] S307: The server determines the occurrence time of the current advertising event according to the receiving time and the difference.

[0074] S308: Determine whether the occurrence time of the current advertising event is earlier than the occurrence time of the historical event. If so, execute step S309; ​​otherwise, execute step S310.

[0075] S309: Correct the occurrence time of the current advertising event.

[0076] S310: The occurrence time of the current advertising event is not modified.

[0077] See also Figure 4 FIG. 1 is a flowchart of a method for determining the occurrence time of an advertising event provided by another embodiment of the present invention, and specifically performs the following steps:

[0078] S400: When a current advertising event occurs, the client side obtains the current advertising event occurrence time and current advertising event information corresponding to the current advertising event, and generates current advertising event data based on the current advertising event occurrence time and the current advertising event information.

[0079] S401: Determine a historical advertising event ID of a historical advertising event on the client side.

[0080] S402: The client side reports the current advertising event data and the historical advertising event ID to the server.

[0081] S403: The server receives the current advertising event data and the historical advertising event ID of the historical advertising event from the client, and determines the reception time of the server for the current advertising event data and the historical advertising event ID of the historical advertising event.

[0082] S404: The client side obtains the reporting time of the client side for reporting the current advertisement event data and the historical advertisement event ID to the server.

[0083] In some implementations, the client reports the collected data to the server via the http protocol. In actual applications, the data may also be reported to the server via other protocols, such as the IP protocol, which is not limited here.

[0084] S405: The client side calculates the difference between the occurrence time of the current advertising event and the reporting time, and reports the difference to the server.

[0085] S406: The server receives the difference between the occurrence time of the current advertising event reported by the client and the reporting time.

[0086] S407: The server determines the occurrence time of the current advertising event according to the receiving time, the difference, and the round-trip delay between the client and the server.

[0087] Specifically, the occurrence time of the current advertising event may be determined according to the following formula:

[0088] T= s -ΔT c -2T RTT

[0089] Wherein, T represents the occurrence time of the current advertising event, T s represents the receiving time, ΔT c represents the difference between the occurrence time of the current advertising event reported by the client and the reporting time, T RTT Represents the round-trip delay between the client and the server.

[0090] In this way, the server-side time is used as a unified reference time, combined with the delayed sending time (the difference between the current advertising event occurrence time reported by the client and the reporting time) and the round-trip time to determine the real time of the advertising event, thereby avoiding the advertising event occurrence time being affected by the client and solving the problem of time differences between multiple client devices.

[0091] In some implementations, the round trip delay may be determined by the following steps:

[0092] Step 1: The server adds an initial timestamp in the TCP protocol in response to the client reporting the current advertisement event data.

[0093] Step 2: The server sends a confirmation message to the client indicating that the current advertisement event data has been received, and upon receiving a response message returned by the client, determines a current timestamp.

[0094] Step 3: Determine the round trip delay based on the initial timestamp and the current timestamp.

[0095] In some implementations, after receiving the reported data, the advertising event data receiving module records the server time at that time (represented as T s ), reported data, and the RTT of the TCP (Transmission Control Protocol (TCP) is a connection-oriented, reliable, byte-stream-based transport layer communication protocol) (the underlying protocol of the http protocol) connection (i.e., the time it takes for a TCP data packet to be sent back and forth between the client and the server), where the server time is the time obtained from the server at that time. The value of the TCP connection RTT is calculated in real time when responding to the reporting request, because the RTT of the TCP connection of different clients is different. The RTT is calculated as follows: When responding to the reporting event, the server adds a timestamp option to the TCP option, and then determines the RTT of the TCP connection based on the client's reply event (i.e., confirmation of receipt of the message).

[0096] S408: Determine whether the occurrence time of the current advertising event is earlier than the occurrence time of the historical event. If so, execute step S409; otherwise, execute step S410.

[0097] S409: Determine the occurrence time of the current advertising event to be a predetermined time later than the occurrence time of the historical advertising event.

[0098] In some implementations, when calculating the advertising event time, the advertising event data processing module first obtains the server time T from the event log. s , Delayed sending time ΔT C And the RTT time of the TCP connection, then according to the formula T = T S -ΔT C -2T RTT Calculate the advertising event time, and finally correct the advertising event time. The correction method is to correct the current event time to 1 millisecond later than the previous event time based on the time of the previous advertising event. If the current event is not earlier than the time of the previous advertising event, no correction is made.

[0099] It should be noted that in this embodiment, the current event time is corrected to be 1 millisecond later than the previous event time. In actual applications, the specific correction time can be set according to the actual application scenario, for example, 5 milliseconds is not limited thereto.

[0100] S410: The occurrence time of the current advertising event is not modified.

[0101] In this way, by combining the ID of the historical advertising event to further correct the current advertising event time, the problem of event time reversal is avoided and the impact on subsequent data analysis is reduced.

[0102] Accordingly, an embodiment of the present invention provides a client for determining the occurrence time of an advertising event, which specifically includes:

[0103] Memory; and

[0104] The processor is configured to execute the above-mentioned determination method.

[0105] Accordingly, an embodiment of the present invention provides a server for determining the occurrence time of an advertising event, which specifically includes:

[0106] Memory; and

[0107] The processor is configured to execute the above-mentioned determination method.

[0108] The processor includes a kernel, which calls the corresponding program unit from the memory. The kernel can be set to one or more, and the time when the advertising event occurs can be accurately determined by adjusting the kernel parameters.

[0109] An embodiment of the present invention provides a storage medium on which a program is stored. When the program is executed by a processor, the method for determining the occurrence time of the advertising event is implemented.

[0110] An embodiment of the present invention provides a processor, which is used to run a program, wherein the method for determining the occurrence time of the advertising event is executed when the program is running.

[0111] On the other hand, see Figure 5 As shown, an embodiment of the present invention further provides an electronic device 50, which includes at least one processor 501, at least one memory 502 connected to the processor, and a bus 503; wherein the processor 501 and the memory 502 communicate with each other through the bus 503; the processor 501 is used to call the program instructions in the memory 502 to execute the method for determining the occurrence time of the advertising event described in the above steps S200-S208, steps S300-S310, and steps S400-S410. The device in this article can be a server, PC, PAD, mobile phone, etc.

[0112] The present application also provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the method for determining the occurrence time of the advertising event described above is implemented. When executed on a data processing device, it is suitable for executing a program that is initialized with the following method steps: when a current advertising event occurs, the current advertising event occurrence time and current advertising event information corresponding to the current advertising event on the client side are obtained, and based on the current advertising event occurrence time and current advertising event information, current advertising event data is generated; the historical advertising event ID of the historical advertising event on the client side is determined; and the current advertising event data and the historical advertising event ID are reported to the server. The reporting time of the client side for reporting the current advertising event data and the historical advertising event ID to the server is obtained; and the difference between the current advertising event occurrence time and the reporting time is calculated, and the difference is reported to the server.

[0113] The server side receives the current advertising event data and the historical advertising event ID of the historical advertising event from the client side, and determines the reception time of the server side for the current advertising event data and the historical advertising event ID of the historical advertising event; determines the occurrence time of the historical advertising event corresponding to the historical advertising event ID according to the historical advertising event ID; determines the occurrence time of the current advertising event according to the reception time, and determines whether to correct the occurrence time of the current advertising event according to the occurrence time of the historical advertising event. If the occurrence time of the current advertising event is earlier than the occurrence time of the historical advertising event, the occurrence time of the current advertising event is determined as a predetermined time later than the occurrence time of the historical advertising event.

[0114] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0115] In a typical configuration, the device includes one or more processors (CPU), memory and bus. The device may also include input / output interface, network interface and the like.

[0116] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip. The memory is an example of a computer-readable medium.

[0117] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0118] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity 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, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0119] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0120] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A method for determining the occurrence time of an advertising event, applied to a client, characterized in that: include: When a current advertising event occurs, obtaining the current advertising event occurrence time and current advertising event information corresponding to the current advertising event on the client side, and generating current advertising event data based on the current advertising event occurrence time and the current advertising event information; Determine the historical advertising event ID of the historical advertising event on the client side; as well as The current advertising event data and the historical advertising event ID are reported to the server.

2. The determination method according to claim 1, characterized in that: The method further includes: Obtaining a reporting time for the client side to report the current advertising event data and the historical advertising event ID to the server; and The difference between the occurrence time of the current advertising event and the reporting time is calculated, and the difference is reported to the server.

3. The determination method according to claim 1, characterized in that: The historical advertising event is an advertising event that occurred most recently before the current advertising event occurred on the client side.

4. A method for determining the occurrence time of an advertising event, applied to a server, characterized in that: include: Receiving current advertising event data and historical advertising event IDs of historical advertising events from the client side, and determining a reception time of the current advertising event data and the historical advertising event IDs of historical advertising events by the server side; According to the historical advertising event ID, determining the occurrence time of the historical advertising event corresponding to the historical advertising event ID; Determining the occurrence time of the current advertising event according to the receiving time; as well as According to the occurrence time of the historical advertising event, it is determined whether to modify the occurrence time of the current advertising event.

5. The determination method according to claim 4, characterized in that: The method further includes: receiving a difference between the occurrence time of the current advertising event reported by the client and the reporting time; The determining of the occurrence time of the current advertising event is also based on the difference.

6. The determination method according to claim 5, characterized in that: The occurrence time of the current advertising event is determined according to the following formula: T=T s -ΔT c -2T RTT Wherein, T represents the occurrence time of the current advertising event, T s represents the receiving time, ΔT c represents the difference between the occurrence time of the current advertising event reported by the client and the reporting time, T RTT Represents the round-trip delay between the client and the server.

7. The determination method according to claim 6, characterized in that: The determination of the round trip delay includes: In response to the client reporting the current advertisement event data, adding an initial timestamp in the TCP protocol; Sending a confirmation message to the client indicating that the current advertisement event data has been received, and determining a current timestamp when receiving a response message returned by the client; The round trip delay is determined according to the initial timestamp and the current timestamp.

8. The determination method according to claim 4, characterized in that: The determining whether to modify the occurrence time of the current advertising event according to the occurrence time of the historical advertising event includes: If the occurrence time of the current advertising event is earlier than the occurrence time of the historical advertising event, it is determined to correct the occurrence time of the current advertising event.

9. The determination method according to claim 8, characterized in that: Modifying the occurrence time of the current advertising event includes: The occurrence time of the current advertising event is determined to be a predetermined time later than the occurrence time of the historical advertising event.

10. An electronic device, characterized in that: include: Processor, memory, and bus; Wherein, the processor and the memory communicate with each other via the bus; The processor is used to call the program instructions in the memory to execute the determination method according to any one of claims 1-9.