Advertisement insertion method, device and electronic device based on left-right sliding window

By dynamically determining the loading and display of advertisements based on the number of page turn times of users, the problem of difficulty in balancing the revenue and user experience of advertising delivery in the prior art is solved, and the advertising effect and user experience are improved.

CN116795469BActive Publication Date: 2024-11-22CHENGDU YUNLAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310709952.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-06-15
Publication Date
2024-11-22
Estimated Expiration
2043-06-15

AI Technical Summary

Technical Problem

Existing advertising methods are difficult to balance between improving revenue and user experience, and too many or too few ads will affect the user experience.

Method used

Determine whether to load and display ads based on the number of page turn times of the user. By initializing the ad sliding window and interval position, dynamically insert ads to adapt to user behavior.

Benefits of technology

Improve advertising performance and user experience, avoid advertising interference, and enhance advertising display efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116795469B_ABST
    Figure CN116795469B_ABST
Patent Text Reader

Abstract

The present application provides an advertisement insertion method, device and electronic device based on a left-right sliding window, the method comprising: determining whether to load an advertisement and whether to display an advertisement at the current position in sequence based on the number of page turns by the user; and determining whether the advertisement is successfully inserted according to the judgment result. It can realize adaptively judging whether an advertisement needs to be inserted according to the number of page turns by the user, thereby improving the advertising effect and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of the Internet, and in particular to an advertisement insertion method, device and electronic device based on a left-right sliding window. Background Art

[0002] In modern society, advertising has become an indispensable part of marketing. Existing advertising methods usually insert advertisements at a certain frequency or time interval. When the frequency of advertising is increased in order to increase revenue, too many and overly conspicuous advertisements will make users feel uncomfortable and affect their experience; when the frequency of advertising is reduced in order to improve user experience, for advertising operating media, less advertising investment will reduce revenue. Therefore, in terms of advertising, how to improve advertising effects and user experience is an urgent problem to be solved. Summary of the invention

[0003] In order to overcome the problems existing in the related art, the embodiments of the present disclosure provide an advertisement insertion method, device and electronic device based on a left-right sliding window.

[0004] In order to achieve the above objectives, the present invention adopts the following technical solutions:

[0005] In a first aspect, a method for inserting advertisements based on a left-right sliding window is provided, comprising:

[0006] Based on the number of page turns by the user, determine in turn whether to load an ad at the current location and whether to display the ad;

[0007] Whether the advertisement is successfully inserted is determined based on the judgment result.

[0008] According to the method described in the first aspect, since whether to insert advertisements is determined based on the number of times the user turns the pages, it is possible to place advertisements at an appropriate frequency, thereby ensuring user experience and avoiding interference with the user and affecting the user experience; and it is also possible to dynamically insert advertisements, thereby improving the efficiency of advertisement display.

[0009] In a possible design, before determining in sequence whether to load an advertisement and whether to display an advertisement at a current position based on the number of page turns by the user, the method includes:

[0010] When there are multiple sliding windows and the sliding mode of the multiple sliding windows is the left-right sliding mode, the initial display position and interval position of the advertisement are initially set, wherein the initial display position of the advertisement is used to represent the position where the advertisement is displayed for the first time, and the interval position is used to indicate that the positions after each preset interval are all advertisement display positions;

[0011] According to the initial display position and interval position of the advertisement, an advertisement sliding window for determining the advertisement to be displayed is initialized, wherein the advertisement sliding window is a display interval consisting of a start position and an end position, the initialization start position of the advertisement sliding window is the initial display position of the advertisement, and the initialization end position of the advertisement sliding window is the position corresponding to the sum of the initial display position of the advertisement and the interval position.

[0012] In a possible design, whether to load an ad at the current location is determined based on the number of page turns by the user, including:

[0013] Determine whether to load ads within the current ad window range based on the number of page turns by the user;

[0014] If the number of page turns is equal to the number of pages of the sliding window corresponding to the starting position of the advertising sliding window, or the number of page turns is equal to the number of pages of the sliding window corresponding to the position before the end position of the advertising sliding window and closest to the end position of the advertising sliding window, the loading advertisement instruction is triggered to determine the loading of the advertisement at the current position within the range of this round of advertising sliding window.

[0015] In a possible design, determining whether to load an advertisement at the current position based on the number of page turns by the user also includes:

[0016] Determine whether the number of page turns is the number of pages of the sliding window corresponding to the start position within the current advertisement sliding window range;

[0017] If so, the ad display reporting instruction is triggered to calculate the ad exposure.

[0018] In a possible design, whether to display an advertisement at the current position is determined based on the number of page turns by the user, including:

[0019] Determine whether to display an ad within the current ad window based on the number of page turns by the user;

[0020] If the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the start position of the advertisement sliding window, it is determined whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool;

[0021] If the ad to be displayed is successfully obtained from the ad cache pool, the ad to be displayed is displayed at the current position and the first ad sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to the position corresponding to the sum of the initial display position of the ad and the interval position, and the end position of the sliding window is updated to the position corresponding to the sum of the initial display position of the ad and twice the interval position.

[0022] In a possible design solution, determining whether the to-be-displayed advertisement is successfully obtained from the advertisement cache pool further includes:

[0023] If the advertisement to be displayed cannot be successfully obtained from the advertisement buffer pool, whether the end position of the current advertisement sliding window is exceeded is determined based on whether the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window;

[0024] If the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window, a second advertisement sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to a position corresponding to a position that is after the end position of the previous advertisement sliding window and closest to the end position of the advertisement sliding window, and the end position of the sliding window is updated to a position that is after the end position of the previous advertisement sliding window and closest to the end position of the advertisement sliding window and a position corresponding to the sum of the interval positions.

[0025] In a possible design, before determining in sequence whether to load an advertisement and whether to display an advertisement at a current position based on the number of page turns by the user, the method further includes:

[0026] According to the received user gesture operation, the number of page turning times corresponding to the user gesture operation is obtained by counting.

[0027] In a second aspect, an advertisement insertion device based on a left-right sliding window is provided, comprising:

[0028] A first determination module is configured to determine whether to load an advertisement and whether to display an advertisement in a current position in sequence based on the number of page turns by the user;

[0029] The second determination module is configured to determine whether the advertisement is successfully inserted according to the determination result.

[0030] In a third aspect, an electronic device is provided, comprising: a processor coupled to a memory; the processor is configured to execute a computer program stored in the memory, so that the electronic device executes the method in any one of the implementation modes in the first aspect.

[0031] In a fourth aspect, a computer-readable storage medium is provided, comprising: a computer program or instructions; when the computer program or instructions are run on a computer, the method that causes the computer to execute any possible implementation method in the first aspect is executed.

[0032] In a fifth aspect, a computer program product is provided, comprising a computer program or instructions, which, when executed on a computer, causes the computer to execute any possible implementation method of the first aspect.

[0033] The technical solution provided by the embodiments of the present disclosure may have the following beneficial effects:

[0034] In the above technical solution, it is possible to determine whether to load an advertisement and whether to display an advertisement at the current position according to the number of page turns by the user, and then determine whether the advertisement is successfully inserted according to the judgment result. Since the above technical solution is a method for dynamically inserting advertisements based on user behavior, it is possible to adaptively determine whether an advertisement needs to be inserted according to the number of page turns by the user, thereby improving the advertising effect and user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of an advertisement insertion method based on a left-right sliding window provided in an embodiment of the present application;

[0036] Figure 2 A block diagram of an advertisement insertion device based on a left-right sliding window provided in an embodiment of the application;

[0037] Figure 3 A block diagram of an electronic device provided for an embodiment of the application. DETAILED DESCRIPTION

[0038] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0039] The present application will present various aspects, embodiments or features around a system that may include multiple devices, components, modules, etc. It should be understood and appreciated that each system may include additional devices, components, modules, etc., and / or may not include all of the devices, components, modules, etc. discussed in conjunction with the figures. In addition, combinations of these schemes may also be used.

[0040] In addition, in the embodiments of the present application, words such as "exemplarily" and "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "example" in the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of the word "example" is intended to present concepts in a concrete way. In addition, in the embodiments of the present application, the meaning expressed by "and / or" can be both, or it can be either of the two.

[0041] Figure 1 FIG. 1 is a flowchart of a method for inserting advertisements based on a left-right sliding window according to an exemplary embodiment, and the method can be executed by an electronic device. Figure 1 As shown, the advertisement insertion method based on the left-right sliding window may include:

[0042] In step S101 , based on the number of page turns by the user, it is determined in sequence whether to load an advertisement at the current position and whether to display the advertisement.

[0043] In the disclosed embodiment, the user inputs through a hardware device such as a touch screen and sends a user gesture operation. The embodiment of the present application receives the user gesture operation, identifies and processes the user gesture operation, and obtains the page turning number information corresponding to the user gesture operation.

[0044] The sliding direction of the user gesture operation includes left and right sliding operation and up and down sliding operation. The user moves the information flow left and right by sliding left and right to load more page content; the user moves the information flow up and down by sliding up and down to load more page content. The sliding speed of the user gesture operation corresponds to the sliding speed of the information flow, so the sliding speed of the information flow can be controlled by controlling the sliding speed of the user gesture operation. In an embodiment of the present application, the number of page turns of the user is determined based on the left and right sliding operation of the user gesture operation.

[0045] In step S102, it is determined whether the advertisement is successfully inserted according to the judgment result.

[0046] In the above technical solution, it is possible to determine whether to load an advertisement and whether to display an advertisement at the current position according to the number of page turns by the user, and then determine whether the advertisement is successfully inserted according to the judgment result. Since the above technical solution is a method for dynamically inserting advertisements based on user behavior, it is possible to adaptively determine whether an advertisement needs to be inserted according to the number of page turns by the user, thereby improving the advertising effect and user experience.

[0047] In an exemplary embodiment, before determining in sequence whether to load an advertisement and whether to display an advertisement at a current position based on the number of page turns by the user, the method includes:

[0048] When there are multiple sliding windows and the sliding mode of the multiple sliding windows is the left-right sliding mode, the initial display position and interval position of the advertisement are initially set, wherein the initial display position of the advertisement is used to represent the position where the advertisement is displayed for the first time, and the interval position is used to indicate that the positions after each preset interval are all advertisement display positions;

[0049] According to the initial display position and interval position of the advertisement, an advertisement sliding window for determining the advertisement to be displayed is initialized, wherein the advertisement sliding window is a display interval consisting of a start position and an end position, the initialization start position of the advertisement sliding window is the initial display position of the advertisement, and the initialization end position of the advertisement sliding window is the position corresponding to the sum of the initial display position of the advertisement and the interval position.

[0050] In an embodiment of the present disclosure, a display screen of a user's electronic device has multiple sliding windows arranged on it. Based on the order in which the multiple sliding windows are arranged, each sliding window has a unique corresponding page number. For example, there are four sliding windows arranged from left to right, and the four sliding windows can be switched in the form of sliding left and right. According to the arrangement order, the page numbers corresponding to the four sliding windows are 1, 2, 3 and 4. It should be noted that the four sliding windows are only exemplary values ​​and are not limited in the present disclosure.

[0051] In the embodiment of the present disclosure, the interval position is used to indicate that each position after a preset distance is an advertisement display position, wherein the preset distance is the value corresponding to the interval position.

[0052] In the disclosed embodiment, the initialization start position of the advertisement sliding window is related to the initial advertisement display position, and the initialization end position of the advertisement sliding window is determined by the initial advertisement display position and the interval position. After the display interval corresponding to the determined advertisement sliding window is initialized, it can be updated according to the number of page turns by the user.

[0053] In an exemplary implementation, determining whether to load an advertisement at a current location based on the number of page turns by the user includes:

[0054] Determine whether to load ads within the current ad window range based on the number of page turns by the user;

[0055] If the number of page turns is equal to the number of pages of the sliding window corresponding to the starting position of the advertising sliding window, or the number of page turns is equal to the number of pages of the sliding window corresponding to the position before the end position of the advertising sliding window and closest to the end position of the advertising sliding window, the loading advertisement instruction is triggered to determine the loading of the advertisement at the current position within the range of this round of advertising sliding window.

[0056] As another possible implementation, if the number of page turns is not equal to the number of pages of the sliding window corresponding to the starting position of the advertising sliding window or the number of page turns is not equal to the number of pages of the sliding window corresponding to the position before the end position of the advertising sliding window and closest to the end position of the advertising sliding window, then whether to exit the left-right sliding page turning operation is determined based on whether the number of page turns of the user is greater than or equal to the total number of sliding windows. If the number of page turns of the user is greater than or equal to the total number of sliding windows, the left-right sliding page turning operation is exited; if the number of page turns of the user is not greater than or equal to the total number of sliding windows, the number of page turns of the user continues to be counted.

[0057] In another exemplary embodiment, determining whether to load an advertisement at a current location based on the number of page turns by the user further includes:

[0058] Determine whether the number of page turns is the number of pages of the sliding window corresponding to the start position within the current advertisement sliding window range;

[0059] If so, the ad display reporting instruction is triggered to calculate the ad exposure.

[0060] As another possible implementation, if the number of page turns is not the number of pages of the sliding window corresponding to the starting position within the current advertising sliding window range, then whether to exit the left and right sliding page turning operation is determined based on whether the number of page turns by the user is greater than or equal to the total number of sliding windows. If the number of page turns by the user is greater than or equal to the total number of sliding windows, then the left and right sliding page turning operation is exited; if the number of page turns by the user is not greater than or equal to the total number of sliding windows, then the number of page turns by the user continues to be counted.

[0061] In an exemplary embodiment, determining whether to display an advertisement at a current location based on the number of page turns by the user includes:

[0062] Determine whether to display an ad within the current ad window based on the number of page turns by the user;

[0063] If the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the start position of the advertisement sliding window, it is determined whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool;

[0064] If the ad to be displayed is successfully obtained from the ad cache pool, the ad to be displayed is displayed at the current position and the first ad sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to the position corresponding to the sum of the initial display position of the ad and the interval position, and the end position of the sliding window is updated to the position corresponding to the sum of the initial display position of the ad and twice the interval position.

[0065] As another possible implementation, if the number of page turns is not greater than or equal to the number of pages in the sliding window corresponding to the starting position of the advertising sliding window, then whether to exit the left and right sliding page turning operation is determined based on whether the number of page turns by the user is greater than or equal to the total number of sliding windows. If the number of page turns by the user is greater than or equal to the total number of sliding windows, then the left and right sliding page turning operation is exited; if the number of page turns by the user is not greater than or equal to the total number of sliding windows, then the number of page turns by the user continues to be counted.

[0066] In the above implementation, a new sliding window is formed by updating the start position and the end position of the sliding window. In the new sliding window, it can be determined whether the advertisement to be displayed is successfully inserted.

[0067] In an exemplary implementation, determining whether the to-be-displayed advertisement is successfully acquired from the advertisement cache pool further includes:

[0068] If the advertisement to be displayed cannot be successfully obtained from the advertisement buffer pool, whether the end position of the current advertisement sliding window is exceeded is determined based on whether the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window;

[0069] If the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window, a second advertisement sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to a position corresponding to a position that is after the end position of the previous advertisement sliding window and closest to the end position of the advertisement sliding window, and the end position of the sliding window is updated to a position that is after the end position of the previous advertisement sliding window and closest to the end position of the advertisement sliding window and a position corresponding to the sum of the interval positions.

[0070] In the above manner, different new sliding windows can be determined based on different updating methods. The technical solution in this embodiment realizes dynamic insertion of advertisements, improves the efficiency of advertisement display, ensures user experience, and avoids interference to users.

[0071] In an exemplary embodiment, before step S101, the advertisement insertion method based on the left-right sliding window further includes:

[0072] According to the received user gesture operation, the number of page turning times corresponding to the user gesture operation is obtained by counting.

[0073] Figure 2 is a block diagram of an advertisement insertion device 10 based on a left-right sliding window according to an exemplary embodiment. Figure 2 As shown, the advertisement insertion device 10 based on the left-right sliding window may include:

[0074] The first determination module 110 is configured to determine whether to load an advertisement and whether to display an advertisement in the current position in sequence based on the number of page turns by the user;

[0075] The second determination module 120 is configured to determine whether the advertisement is successfully inserted according to the determination result.

[0076] In the disclosed embodiment, the initialization start position of the advertisement sliding window is related to the initial advertisement display position, and the initialization end position of the advertisement sliding window is determined by the initial advertisement display position and the interval position. After the display interval corresponding to the determined advertisement sliding window is initialized, it can be updated according to the number of page turns by the user.

[0077] Optionally, the advertisement insertion device 10 based on the left-right sliding window may further include:

[0078] A first initialization module is configured to initialize and set an initial advertisement display position and an interval position when there are multiple sliding windows and the sliding mode of the multiple sliding windows is a left-right sliding mode, wherein the initial advertisement display position is used to represent the position where the advertisement is displayed for the first time, and the interval position is used to indicate that each position after a preset interval is an advertisement display position;

[0079] The second initialization module is configured to initialize an advertisement sliding window used to determine the advertisement to be displayed according to the initial advertisement display position and the interval position, wherein the advertisement sliding window is a display interval consisting of a start position and an end position, the initialization start position of the advertisement sliding window is the initial advertisement display position, and the initialization end position of the advertisement sliding window is the position corresponding to the sum of the initial advertisement display position and the interval position.

[0080] Optionally, the first determining module 110 may further include:

[0081] The first determination submodule is configured to determine whether an advertisement needs to be loaded within the current advertisement sliding window according to the number of page turns by the user;

[0082] The second determination submodule is configured to trigger an advertisement loading instruction if the number of page turning times is equal to the number of pages of the sliding window corresponding to the start position of the advertisement sliding window or the number of page turning times is equal to the number of pages of the sliding window corresponding to the position before the end position of the advertisement sliding window and closest to the end position of the advertisement sliding window, and determine to load the advertisement at the current position within the range of this round of advertisement sliding window.

[0083] Optionally, the first determining module 110 may further include:

[0084] A third determination submodule is configured to determine whether the number of page turns is the number of pages of the sliding window corresponding to the start position within the current advertisement sliding window range;

[0085] The first trigger submodule is configured to trigger an advertisement display reporting instruction if yes, so as to calculate the exposure of the advertisement.

[0086] Optionally, the first determining module 110 may further include:

[0087] A fourth determination submodule is configured to determine whether to display an advertisement within the current advertisement sliding window according to the number of page turns by the user;

[0088] A fifth determination submodule is configured to determine whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool if the number of page turning times is greater than or equal to the number of pages of the sliding window corresponding to the start position of the advertisement sliding window;

[0089] The display submodule is configured to display the advertisement to be displayed at the current position and trigger the first advertisement sliding window switching instruction if the advertisement to be displayed is successfully obtained from the advertisement cache pool, so that the starting position of the sliding window is updated to the position corresponding to the sum of the initial display position of the advertisement and the interval position, and the ending position of the sliding window is updated to the position corresponding to the sum of the initial display position of the advertisement and twice the interval position.

[0090] Optionally, the first determining module 110 may further include:

[0091] The sixth determination submodule is configured to determine whether the end position of the current advertisement sliding window is exceeded according to whether the number of page turns is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window if the advertisement to be displayed cannot be successfully obtained from the advertisement buffer pool;

[0092] The second trigger submodule is configured to trigger a second advertising sliding window switching instruction if the number of page turning times is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertising sliding window, so that the starting position of the sliding window is updated to a position corresponding to a position that is after the end position of the previous advertising sliding window and closest to the end position of the advertising sliding window, and the end position of the sliding window is updated to a position that is after the end position of the previous advertising sliding window and closest to the end position of the advertising sliding window and a position corresponding to the sum of the interval position.

[0093] Optionally, the advertisement insertion device 10 based on the left-right sliding window may further include:

[0094] The statistics module is configured to obtain the number of page turning times corresponding to the user gesture operation according to the received user gesture operation.

[0095] Figure 3 8 is a block diagram of an electronic device 800 according to an exemplary embodiment. For example, the electronic device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0096] Reference Figure 3 , the electronic device 800 may include one or more of the following components: a processing component 802 , a memory 804 , a power component 806 , a multimedia component 808 , an audio component 810 , an input / output interface 812 , a sensor component 814 , and a communication component 816 .

[0097] The processing component 802 generally controls the overall operation of the electronic device 800, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned advertisement insertion method based on left and right sliding windows. In addition, the processing component 802 may include one or more modules to facilitate the interaction between the processing component 802 and other components. For example, the processing component 802 may include a multimedia module to facilitate the interaction between the multimedia component 808 and the processing component 802.

[0098] The memory 804 is configured to store various types of data to support operations on the electronic device 800. Examples of such data include instructions for any application or method operating on the electronic device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0099] The power supply component 806 provides power to the various components of the device 800. The power supply component 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the electronic device 800.

[0100] The multimedia component 808 includes a screen that provides an output interface between the electronic device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front camera and / or a rear camera. When the electronic device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0101] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the electronic device 800 is in an operating mode, such as a call mode, a recording mode, and a voice recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0102] The input / output interface 812 provides an interface between the processing component 802 and the peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: a home button, a volume button, a start button, and a lock button.

[0103] The sensor assembly 814 includes one or more sensors for providing various aspects of status assessment for the electronic device 800. For example, the sensor assembly 814 can detect the open / closed state of the device 800, the relative positioning of the components, such as the display and keypad of the electronic device 800, and the sensor assembly 814 can also detect the position change of the electronic device 800 or a component of the electronic device 800, the presence or absence of user contact with the electronic device 800, the orientation or acceleration / deceleration of the electronic device 800, and the temperature change of the electronic device 800. The sensor assembly 814 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 814 may also include an optical sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an accelerometer, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.

[0104] The communication component 816 is configured to facilitate wired or wireless communication between the electronic device 800 and other devices. The electronic device 800 can access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0105] In an exemplary embodiment, the electronic device 800 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to execute the above-mentioned advertisement insertion method based on left and right sliding windows.

[0106] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 804 including instructions, and the instructions can be executed by a processor 820 of an electronic device 800 to complete the above-mentioned advertisement insertion method based on a left-right sliding window. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0107] In another exemplary embodiment, a computer program product is also provided. The computer program product includes a computer program that can be executed by a programmable device. The computer program has a code portion for executing the above-mentioned advertisement insertion method based on left-right sliding windows when executed by the programmable device.

[0108] It should be understood that the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. A and B can be singular or plural. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship, but it may also indicate an "and / or" relationship. Please refer to the context for specific understanding.

[0109] In this application, "at least one" means one or more, and "more than one" means two or more. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can be represented by: a, b, c, ab, ac, bc, or abc, where a, b, c can be single or multiple.

[0110] It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0111] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0112] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0113] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0114] 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 on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0116] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage media include: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories (ROM), random access memories (RAM), magnetic disks or optical disks.

[0117] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. An advertisement insertion method based on a left-right sliding window, characterized in that: include: Based on the number of page turns by the user, determine in turn whether to load an ad at the current location and whether to display the ad; Determine whether the advertisement is successfully inserted according to the judgment result; Before determining in sequence whether to load an advertisement and whether to display an advertisement at a current position based on the number of page turns by the user, the method includes: When there are multiple sliding windows and the sliding modes of the multiple sliding windows are left-right sliding modes, the initial advertisement display position and the interval position are initialized and set, wherein the initial advertisement display position is used to represent the position where the advertisement is displayed for the first time, and the interval position is used to indicate that the positions after each preset interval are all advertisement display positions; Initializing an advertisement sliding window for determining the advertisement to be displayed according to the advertisement initial display position and the interval position, wherein the advertisement sliding window is a display interval consisting of a start position and an end position, the initialization start position of the advertisement sliding window is the advertisement initial display position, and the initialization end position of the advertisement sliding window is a position corresponding to the sum of the advertisement initial display position and the interval position; The determining whether to display an advertisement at the current position based on the number of page turns by the user includes: Determine whether to display an ad within the current ad window based on the number of page turns by the user; If the page turning number is greater than or equal to the number of pages of the sliding window corresponding to the start position of the advertisement sliding window, determining whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool; If the advertisement to be displayed is successfully obtained from the advertisement buffer pool, the advertisement to be displayed is displayed at the current position and the first advertisement sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to the position corresponding to the sum of the initial display position of the advertisement and the interval position, and the ending position of the sliding window is updated to the position corresponding to the sum of the initial display position of the advertisement and twice the interval position; The step of determining whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool further includes: If the advertisement to be displayed cannot be successfully obtained from the advertisement buffer pool, determining whether the end position of the current advertisement sliding window is exceeded according to whether the number of page turning times is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window; If the number of page turning times is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertising sliding window, a second advertising sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to a position corresponding to a position that is after the end position of the previous advertising sliding window and closest to the end position of the advertising sliding window, and the end position of the sliding window is updated to a position that is after the end position of the previous advertising sliding window and closest to the end position of the advertising sliding window and a position corresponding to the sum of the interval positions.

2. The advertisement insertion method based on left-right sliding window according to claim 1, characterized in that: The determining whether to load an advertisement at a current position based on the number of page turns by the user includes: According to the number of page turns by the user, determine whether it is necessary to load ads within the current ad sliding window range; If the number of page turns is equal to the number of pages of the sliding window corresponding to the starting position of the advertising sliding window or the number of page turns is equal to the number of pages of the sliding window corresponding to the position before the ending position of the advertising sliding window and closest to the ending position of the advertising sliding window, the instruction to load advertisement is triggered to determine to load advertisement at the current position within the range of this round of advertising sliding window.

3. The advertisement insertion method based on left-right sliding window according to claim 1, characterized in that: The determining whether to load an advertisement at the current position based on the number of page turns by the user further includes: Determine whether the page turning number is the number of pages of the sliding window corresponding to the starting position within the current advertisement sliding window range; If so, the ad display reporting instruction is triggered to calculate the ad exposure.

4. The advertisement insertion method based on left-right sliding window according to claim 1, characterized in that: Before determining in sequence whether to load an advertisement and whether to display an advertisement at a current position based on the number of page turns by the user, the method further includes: According to the received user gesture operation, the number of page turning times corresponding to the user gesture operation is obtained by counting.

5. An advertisement insertion device based on a left-right sliding window, characterized in that: include: A first determination module is configured to determine whether to load an advertisement and whether to display an advertisement in a current position in sequence based on the number of page turns by the user; A second determination module is configured to determine whether the advertisement is successfully inserted according to the judgment result; Before determining in sequence whether to load an advertisement at the current position and whether to display an advertisement based on the number of page turns of the user, when there are multiple sliding windows and the sliding modes of the multiple sliding windows are left-right sliding modes, the initial advertisement display position and the interval position are initialized and set, wherein the initial advertisement display position is used to represent the position where the advertisement is displayed for the first time, and the interval position is used to indicate that the positions after each preset interval are all advertisement display positions; according to the initial advertisement display position and the interval position, the advertisement sliding window for determining the advertisement to be displayed is initialized, wherein the advertisement sliding window is a display interval consisting of a start position and an end position, the initialization start position of the advertisement sliding window is the initial advertisement display position, and the initialization end position of the advertisement sliding window is the position corresponding to the sum of the initial advertisement display position and the interval position; The determining whether to display an advertisement at the current position based on the number of page turns by the user includes: Determine whether to display an ad within the current ad window based on the number of page turns by the user; If the page turning number is greater than or equal to the number of pages of the sliding window corresponding to the start position of the advertisement sliding window, determining whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool; If the advertisement to be displayed is successfully obtained from the advertisement buffer pool, the advertisement to be displayed is displayed at the current position and the first advertisement sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to the position corresponding to the sum of the initial display position of the advertisement and the interval position, and the ending position of the sliding window is updated to the position corresponding to the sum of the initial display position of the advertisement and twice the interval position; The step of determining whether the advertisement to be displayed is successfully obtained from the advertisement buffer pool further includes: If the advertisement to be displayed cannot be successfully obtained from the advertisement buffer pool, determining whether the end position of the current advertisement sliding window is exceeded according to whether the number of page turning times is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertisement sliding window; If the number of page turning times is greater than or equal to the number of pages of the sliding window corresponding to the end position of the advertising sliding window, a second advertising sliding window switching instruction is triggered, so that the starting position of the sliding window is updated to a position corresponding to a position that is after the end position of the previous advertising sliding window and closest to the end position of the advertising sliding window, and the end position of the sliding window is updated to a position that is after the end position of the previous advertising sliding window and closest to the end position of the advertising sliding window and a position corresponding to the sum of the interval positions.

6. An electronic device, characterized in that: include: a processor coupled to the memory; The processor is configured to execute a computer program stored in the memory so that the electronic device executes the method according to any one of claims 1 to 4.

7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a computer program or instructions, and when the computer program or instructions are run on a computer, the method according to any one of claims 1 to 4 is executed.