CN111158811B - Advertisement processing method and device, electronic equipment and storage medium - Google Patents

Advertisement processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111158811B
CN111158811B CN201911295019.2A CN201911295019A CN111158811B CN 111158811 B CN111158811 B CN 111158811B CN 201911295019 A CN201911295019 A CN 201911295019A CN 111158811 B CN111158811 B CN 111158811B
Authority
CN
China
Prior art keywords
window
advertisement
detected
current interface
button
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201911295019.2A
Other languages
Chinese (zh)
Other versions
CN111158811A (en
Inventor
梁玮琪
马颖江
张轶
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911295019.2A priority Critical patent/CN111158811B/en
Publication of CN111158811A publication Critical patent/CN111158811A/en
Application granted granted Critical
Publication of CN111158811B publication Critical patent/CN111158811B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Abstract

The embodiment of the application provides an advertisement processing method and device, an electronic device and a storage medium, which are used for avoiding the generation of garbage flow caused by entering an advertisement link page due to mistaken touch when an advertisement is closed, avoiding the interruption of the current application interface of a user and improving the user experience. The method comprises the following steps: detecting whether an advertisement window pops up in a current interface or not; if an advertisement window pops up in the current interface, generating a first window, wherein the first window is displayed on the upper layer of the advertisement window, and a first button is included in the first window; opening an advertisement contained in the advertisement window when a long-press operation for the first button is detected; and closing the advertisement window when other operations except the long press operation are detected.

Description

Advertisement processing method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of terminal technologies, and in particular, to a method and an apparatus for processing an advertisement, an electronic device, and a storage medium.
Background
Today, people are using electronic devices (such as computers, smartphones and tablets) everyday to handle various tasks or entertainment and the like. There are a large number of applications in electronic devices for communication, scheduling, viewing web pages (Internet pages), controlling bank accounts, etc. Among other things, some applications may pop up advertising windows that are displayed during application use, causing interference to the user. Generally, a closing button for closing an advertisement in an advertisement window is set to be small, a user cannot accurately click the closing button, and when the user wants to close the advertisement, the user enters an advertisement page due to mistaken touch, so that garbage flow is generated, the current application interface of the user is interrupted, and user experience is affected.
Therefore, how to effectively process the displayed advertisement becomes a technical problem to be solved urgently at present.
Disclosure of Invention
The embodiment of the application provides an advertisement processing method and device, electronic equipment and a storage medium, which are used for avoiding generating garbage flow due to the fact that the user mistakenly touches an advertisement link page when an advertisement is closed, avoiding interrupting the current application interface of the user and improving user experience.
In a first aspect, a method for advertisement processing is provided, the method comprising:
detecting whether an advertisement window pops up in a current interface or not;
if an advertisement window pops up in the current interface, generating a first window, wherein the first window is displayed on the upper layer of the advertisement window, and a first button is included in the first window;
opening an advertisement contained in the advertisement window when a long-press operation for the first button is detected;
and closing the advertisement window when other operations except the long press operation are detected.
Optionally, the display area of the first window is greater than or equal to the display area of the advertisement window.
Optionally, the other operations include: a sliding operation within the current interface or within the first window, or a single-click, double-click operation, or an operation on a physical key.
Optionally, the method further includes:
and if any operation in the current interface or the first window is not detected within a first preset time length, closing the advertisement window.
Optionally, before generating the first window, the method further includes:
determining that an advertisement processing function for instructing to open or close the advertisement window when a different operation is detected is turned on.
In a second aspect, an apparatus for advertisement processing is provided, the apparatus comprising:
the detection module is used for judging whether an advertisement window pops up in the current interface or not;
the processing module is used for generating a first window when an advertisement window pops up in the current interface, the first window is displayed on the upper layer of the advertisement window, and a first button is included in the first window;
the processing module is further used for opening the advertisement contained in the advertisement window when the long-press operation aiming at the first button is detected;
the processing module is further used for closing the advertisement window when other operations except the long press operation are detected.
Optionally, the display area of the first window is greater than or equal to the display area of the advertisement window.
Optionally, the other operations include: a sliding operation within the current interface or within the first window, or a single-click, double-click operation, or an operation on a physical key.
Optionally, the processing module is further configured to:
and if any operation in the current interface or the first window is not detected within a first preset time length, closing the advertisement window.
Optionally, before generating the first window, the processing module is further configured to:
determining that an advertisement processing function for instructing to open or close the advertisement window when a different operation is detected is turned on.
In a third aspect, an electronic device is provided, which includes:
a memory for storing program instructions;
a processor for calling the program instructions stored in the memory and executing the steps comprised in any of the methods of the first aspect according to the obtained program instructions.
In a fourth aspect, there is provided a computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the steps included in the method of any one of the first aspects.
In a fifth aspect, a computer program product containing instructions is provided, which when run on a computer causes the computer to perform the method of advertisement processing described in the various possible implementations described above.
In the embodiment of the application, whether the current interface pops up an advertisement window or not is detected in real time, if yes, a first window is generated and displayed on the upper layer of the advertisement window, the advertisement window comprises a first button, when long-press operation aiming at the first button is detected, advertisements in the advertisement window are opened, and when other operations except the long-press operation are detected, the advertisement window is closed. That is, a new window including the first button is generated to be displayed on the upper layer of the advertisement window when the pop-up advertisement window is detected, the advertisement is opened when a long press operation for the first button is detected within the newly generated window, and the advertisement window is closed when operations other than the long press operation are detected (i.e., the advertisement window is closed as long as the long press operation for the first button is not detected). Therefore, in the embodiment of the application, when the user wants to close the advertisement, the advertisement window can be closed by any operation except long-pressing the first button in the first window, and the closing of the advertisement by the smaller closing button arranged in the advertisement window is not limited. Therefore, the probability that the user enters the advertisement interface due to the false touch is low, the current application interface of the user can be effectively prevented from being forcibly interrupted, and the user experience is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application.
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
FIG. 2 is a flowchart of a method for advertisement processing according to an embodiment of the present application;
FIG. 3 is a block diagram of an apparatus for processing advertisements according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the accompanying drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application. In the present application, the embodiments and features of the embodiments may be arbitrarily combined with each other without conflict. Also, while a logical order is shown in the flow diagrams, in some cases, the steps shown or described may be performed in an order different than here.
The terms "first" and "second" in the description and claims of the present application and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the term "comprises" and any variations thereof, which are intended to cover non-exclusive protection. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus. The "plurality" in the present application may mean at least two, for example, two, three or more, and the embodiments of the present application are not limited.
In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" in this document generally indicates that the preceding and following related objects are in an "or" relationship unless otherwise specified.
For ease of understanding, the technical background of the embodiments of the present invention will be described below.
As described above, how to effectively process the displayed advertisement becomes a technical problem to be solved. Currently, when a user wants to close such an advertisement, the user often mistakenly touches an advertisement link page, thereby generating garbage flow and interrupting the current application interface of the user. For example, when a user is watching a video on a mobile phone, an advertisement window pops up in the lower right corner of a video playing interface, a small x advertisement closing button is arranged in the upper right corner of the advertisement window and used for closing the advertisement window, but the x advertisement closing button occupies a very small area in the whole advertisement window interface, when the user clicks the x advertisement closing, the clicked position is not the x position, but the clicked position enters the advertisement link interface beside the x position, so that the mobile phone jumps to the advertisement interface from the current video playing interface, garbage flow is generated, flow waste is caused, and the current time-frequency playing interface of the mobile phone is also interrupted, and user experience is influenced.
In order to meet the requirement that when an advertisement window appears on a current interface, a user can avoid entering an advertisement link page due to the fact that the current application interface is interrupted by mistake touch when an advertisement is closed, so that garbage flow is generated and user experience is improved. The embodiment of the application provides an advertisement processing scheme, a new window is generated and displayed on an advertisement window when the advertisement window is detected to pop up, so that a user can operate the whole display interface of the current interface, the user is prevented from operating in the advertisement window, the phenomenon that the user mistakenly touches the advertisement due to the fact that an advertisement closing button is small is avoided, and user experience is improved.
After introducing the design concept of the embodiment of the present application, some simple descriptions are provided below for application scenarios to which the technical solution of the embodiment of the present application can be applied, and it should be noted that the application scenarios described below are only used for describing the embodiment of the present application and are not limited. In specific implementation, the technical scheme provided by the embodiment of the application can be flexibly applied according to actual needs.
Please refer to fig. 1, where fig. 1 is an application scenario to which the technical solution of the embodiment of the present application can be applied. In this application scenario, an interface is shown where the terminal device is playing a video (in other application scenarios, for example, an e-book reading interface, a web browsing interface, or other application interfaces that may pop up an advertisement window). As shown in fig. 1(a), an advertisement window 110 pops up in the lower right corner of the video playing interface, and the advertisement window 110 blocks part of the video content. The terminal device generates a new first window upon detecting the pop-up ad window 110. Wherein the first window can refer to the first window 120 in fig. 1(b), the first window 120 is displayed on the upper layer of the advertisement window 110, so in fig. 1(b), the advertisement window 110 is presented by a dotted line. Within the first window 120 is a first button 130 that can be operated by a user. The first button 130 may be transparent, translucent, an oval region with gray scale or the like that does not obscure the advertisement content, or an opaque oval region that obscures part of the advertisement information.
The first button 130 may be pressed for a long time when the user needs to open the advertisement within the advertisement window. When the user desires to close the advertisement window, any operation other than long-pressing the first button 130 may be used. The terminal device processes the advertisement window 110, such as opening or closing an advertisement, according to the detected operation of the user. It should be noted that the terminal device in the application scenario may be a mobile phone, a tablet, a computer, or other intelligent devices that can perform video playing, e-book reading, web browsing, and the like, and the type of the terminal device is not limited in the embodiments of the present application.
The technical scheme provided by the embodiment of the application is described in the following with the accompanying drawings of the specification.
Referring to fig. 2, fig. 2 provides a method for processing an advertisement according to an embodiment of the present application, where the method may be executed by the terminal device in the application scenario shown in fig. 1. The flow chart of the method shown in fig. 2 is described as follows:
step 201: and detecting whether the advertisement pops up in the current interface.
In the embodiment of the present application, the current interface refers to an interface that a user is viewing. For example, when a user is watching a video online, the lower right corner of the video may pop up with an advertising window. When the user pauses the video interface, an advertising window pops up in the center of the screen. When a user is reading an electronic book, an advertisement window may pop up above or below the screen, and the popped-up advertisement window may block a part of the video interface, so that the user cannot watch a complete time frequency or block a part of the characters of the electronic book, the area of the characters that the user can watch is reduced, the interface that can be watched needs to be frequently slid, and the watching experience of the user is affected. At this time, if the advertisement content in the advertisement window is the content in which the user is interested, the user can open the advertisement in the advertisement window and view the details of the advertisement. If the advertisement content in the advertisement window is content that is not of interest to the user, the user can close the advertisement, so that when the pop-up advertisement of the current interface is detected, it indicates that the user has a need to process (open or close) the advertisement window.
Step 202: and when an advertisement window pops up in the current interface, generating a first window, wherein the first window is displayed on the upper layer of the advertisement window, and a first button is included in the first window.
In the embodiment of the present application, when the advertisement window pop-up is detected, a new first window including a first button (for example, an "advertisement skip" button) is generated and displayed on the upper layer of the advertisement window. The first button may be, for example, an oval area, the first window may be, for example, a transparent window, a semi-transparent window, a gray window, or the like, and the user can see the advertisement content in the advertisement window through the first window and then determine whether to open or close the advertisement.
In a possible implementation manner, the generated display area of the first window is greater than or equal to the display area of the popped-up advertisement window, and at this time, the first window covers the whole advertisement window interface and the advertisement closing button for closing the advertisement window, so that the user is prevented from mistakenly clicking the advertisement when clicking the advertisement closing button, and the user is also prevented from inadvertently clicking the advertisement window interface to enter the advertisement when performing other operations on the page.
For example, the generated first window may be transparent, and the user may see the advertisement content in the advertisement window clearly, but since the first window is displayed on the upper layer of the advertisement window, the user's operation in the area occurs in the newly generated first window, and the user's operation will not directly act on the popped-up advertisement window, so that it may be avoided that the user enters the advertisement due to inadvertently clicking the advertisement window, and the terminal device makes a response that is not in the user's demand, which may affect the user experience.
In one possible implementation, advertisement processing operation prompting information is displayed in the generated first window for prompting a user of an operation mode which can be performed by closing the advertisement window or opening the advertisement in the advertisement window.
In one possible implementation, before generating the first window, it is determined that an advertisement processing function is turned on that would indicate opening or closing the advertisement window upon detection of a different operation. For example, the terminal device provides a switch control for turning on the function through a "setup" application, and a user can turn on or off the function through the switch control, and when it is determined that the user turns on the switch control on the terminal device, a first window is generated. When the user is determined to close the switch control on the terminal equipment, the first window is not generated; or when the user is determined to close the switch control on the terminal device, pushing a shortcut operation selection for opening the switch control to the user, generating a first window if the user selects to open the switch control, and not generating the first window if the user does not select to open the switch control within a certain time period.
In a specific implementation process, the mode that the first window is generated to cover the advertisement window can prevent a user from directly operating in the advertisement window, reduce the probability that the user enters the advertisement interface due to mistaken touch, and improve the user experience.
Step 203: the operation of the user is detected.
In this embodiment of the present application, after the first window is generated, the operation of the user is detected, and if the long-press operation on the first button is detected, step 204 is executed. If other operations except the long press operation are detected, step 205 is executed.
Step 204: opening an advertisement contained within the advertisement window when a long press operation for the first button is detected.
In the embodiment of the application, after the first window is generated, the operation of a user is detected, if the user operates on the display screen of the terminal device, the X-axis value and the Y-axis value of the coordinate of the operation on the display screen of the terminal device are obtained, and whether the coordinate position corresponding to the operation is in the oval area occupied by the first button is judged according to the obtained X-axis value and the obtained Y-axis value of the coordinate. If the coordinate position corresponding to the operation is in the elliptical area, determining whether the operation is a long-press operation (for example, determining whether the operation duration of the operation exceeds a second preset duration). If yes, the user needs to open the advertisement, and responds to the long-time pressing operation to open the advertisement in the advertisement window and enter an advertisement link interface. For example, the coordinate position corresponding to the detected user operation is in the elliptical area of the first button, when the terminal device detects the operation at the first time, the terminal device starts to count time, and when the terminal device does not release the operation for a second preset time (for example, 1s), the terminal device responds to the long-press operation of the user on the first button, and opens the advertisement in the advertisement window.
Step 205: and closing the advertisement window when other operations except the long press operation are detected.
As described above, after the first window is generated, the operation of the user is detected, and if a long-press operation for the first button exceeding a second preset time period is detected, the advertisement window is closed.
In the embodiment of the present application, there may be various ways to close the advertisement window, and for convenience of understanding, the following description is provided for example.
First mode of closure
An operation for the first button that does not exceed a second preset duration is detected.
In a specific implementation process, the coordinate position corresponding to the operation of the user is obtained according to the obtained X-axis value and the obtained Y-axis value of the coordinate and is in the oval area of the first button, the operation duration of the operation does not exceed the second preset duration, the user cannot open the advertisement in the advertisement window, the requirement that the user does not open the advertisement is indicated, and the advertisement window is closed. For example, the detected coordinate position corresponding to the user operation is in the elliptical area of the first button, when the terminal device detects the operation at the first time, timing is started, and if the operation is not reached for the second preset time period (for example, 1s), the user releases the operation, and then it is considered that the long-press operation for the first button exceeding the second preset time period is not detected, and the advertisement window is closed. Therefore, even if the user accidentally touches the first button in the first window, the advertisement can be closed as long as the operation on the first button does not exceed the second preset time, and the influence on the user experience caused by the fact that the terminal equipment makes a response which does not belong to the user requirement when touched by mistake is avoided.
Second mode of closure
The user's operation is detected in a region other than the elliptical region of the first button in the terminal device display screen. For example, if the user performs an operation (for example, a click operation, a slide operation, a long press operation, or the like) on the area other than the elliptical area of the first button on the display screen of the terminal device, the advertisement window is closed. The other area may be other area in the first window except the elliptical area of the first button, or may be other area in the display screen of the terminal device that does not include the first window. Therefore, the user can close the advertisement window by operating other areas except the oval area of the first button in the terminal device, and the situations that the advertisement closing button is too small, the advertisement window is touched by mistake to enter the advertisement interface to generate garbage flow and the current application interface of the user is interrupted are effectively avoided.
Third mode of closure
An operation is detected on a physical key of the terminal device. For example, when the user presses the "back" key, the "Home" key, the "Menu" key, the volume adjustment key, the screen lock key, and the like, the advertisement window is closed. Therefore, the user can close the advertisement window without operating the display screen by operating the physical keys, and the phenomenon that the user mistakenly touches the advertisement interface when operating the display screen is effectively avoided.
In other embodiments, after the first window is generated, if no operation within the current interface or the first window is detected within a first preset time period, the advertisement window is closed. For example, when the user is watching a video with a tablet, an advertisement window pops up, and at this time, the user has two hands not empty and cannot perform any operation on the tablet, so that when the first window is generated, the timer starts, and if no operation is detected within a first preset time (for example, 2s), the advertisement window is closed. Therefore, when the user is inconvenient to close the advertisement window, the terminal equipment automatically closes the advertisement window after waiting for the first preset time, so that the requirements of the user can be better met, and the user experience is improved.
Based on the same inventive concept, the embodiment of the present application provides an advertisement processing apparatus, and the advertisement processing apparatus can implement the corresponding function of the foregoing advertisement processing method. The means for advertisement processing may be a hardware structure, a software module, or a hardware structure plus a software module. The advertisement processing device can be realized by a chip system, and the chip system can be formed by a chip and can also comprise the chip and other discrete devices. Referring to fig. 3, the advertisement processing apparatus includes a detection module 301 and a processing module 302. Wherein:
the detection module 301 is configured to determine whether an advertisement window pops up in a current interface;
a processing module 302, configured to generate a first window when an advertisement window pops up in the current interface, where the first window is displayed on an upper layer of the advertisement window, and the first window includes a first button;
the processing module 302 is further configured to open an advertisement contained in the advertisement window when a long-press operation for the first button is detected;
the processing module 302 is further configured to close the advertisement window when other operations are detected besides the long press operation.
In one possible embodiment, the display area of the first window is greater than or equal to the display area of the advertisement window.
In one possible implementation, the other operations include: a sliding operation within the current interface or within the first window, or a single-click, double-click operation, or an operation on a physical key.
In a possible implementation, the processing module 302 is further configured to:
and if any operation in the current interface or the first window is not detected within a first preset time length, closing the advertisement window.
In a possible implementation, the processing module 302 is further configured to:
determining that an advertisement processing function for instructing to open or close the advertisement window when a different operation is detected is turned on.
All relevant contents of each step related to the foregoing embodiment of the advertisement processing method may be cited to the functional description of the functional module corresponding to the advertisement processing apparatus in the embodiment of the present application, and are not described herein again.
The division of the modules in the embodiments of the present application is schematic, and only one logical function division is provided, and in actual implementation, there may be another division manner, and in addition, each functional module in each embodiment of the present application may be integrated in one processor, may also exist alone physically, or may also be integrated in one module by two or more modules. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode.
Based on the same inventive concept, the embodiment of the application provides electronic equipment. Referring to fig. 4, the electronic device includes at least one processor 401 and a memory 402 connected to the at least one processor, a specific connection medium between the processor 401 and the memory 402 is not limited in this embodiment, in fig. 4, the processor 401 and the memory 402 are connected by a bus 400 as an example, the bus 400 is represented by a thick line in fig. 4, and a connection manner between other components is only schematically illustrated and is not limited. The bus 400 may be divided into an address bus, a data bus, a control bus, etc., and is shown with only one thick line in fig. 4 for ease of illustration, but does not represent only one bus or type of bus.
In the embodiment of the present application, the memory 402 stores instructions executable by the at least one processor 401, and the at least one processor 401 may execute the steps included in the foregoing advertisement processing method by executing the instructions stored in the memory 402.
The processor 401 is a control center of the electronic device, and may connect various portions of the whole electronic device by using various interfaces and lines, and perform various functions and process data of the electronic device by operating or executing instructions stored in the memory 402 and calling data stored in the memory 402, thereby performing overall monitoring on the electronic device. Optionally, the processor 401 may include one or more processing units, and the processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles operating systems, application programs, and the like, and the modem processor mainly handles wireless communication. It will be appreciated that the modem processor described above may not be integrated into the processor 401. In some embodiments, processor 401 and memory 402 may be implemented on the same chip, or in some embodiments, they may be implemented separately on separate chips.
The processor 401 may be a general-purpose processor, such as a Central Processing Unit (CPU), digital signal processor, application specific integrated circuit, field programmable gate array or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or the like, that may implement or perform the methods, steps, and logic blocks disclosed in embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method for processing advertisement disclosed in the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in the processor.
Memory 402, which is a non-volatile computer-readable storage medium, may be used to store non-volatile software programs, non-volatile computer-executable programs, and modules. The Memory 402 may include at least one type of storage medium, and may include, for example, a flash Memory, a hard disk, a multimedia card, a card-type Memory, a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Programmable Read Only Memory (PROM), a Read Only Memory (ROM), a charge Erasable Programmable Read Only Memory (EEPROM), a magnetic Memory, a magnetic disk, an optical disk, and so on. The memory 402 is any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer, but is not limited to such. The memory 402 in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
By programming the processor 401, the code corresponding to the advertisement processing method described in the foregoing embodiment may be solidified in the chip, so that the step of the advertisement processing method described above can be executed when the chip runs, and how to program the processor 401 is a technique known by those skilled in the art, and is not described here again.
Based on the same inventive concept, the present application also provides a computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the steps of the method for processing advertisements as described above.
In some possible embodiments, the aspects of the method of advertisement processing provided by the present application may also be implemented in the form of a program product comprising program code for causing a detection device to perform the steps of the method of advertisement processing according to various exemplary embodiments of the present application described above in this specification, when the program product is run on an electronic device.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (7)

1. A method of advertisement processing, the method comprising:
detecting whether an advertisement window pops up in the current interface or not based on the operation of triggering the pop-up window of the current interface or the position of the popped-up window in the current interface;
if an advertisement window pops up in the current interface, a first window is generated, the first window is displayed on the upper layer of the advertisement window, and a first button is included in the first window;
opening an advertisement contained in the advertisement window when a long-press operation for the first button is detected;
closing the advertisement window when other operations besides the long-press operation are detected, or an operation of the first button is detected, wherein the operation does not exceed a second preset time length, or no operation within the current interface or the first window is detected within a first preset time length, wherein the other operations comprise a sliding operation within the current interface or the first window, or a single-click operation, a double-click operation, or an operation on a physical key.
2. The method of claim 1, wherein the display area of the first window is greater than or equal to the display area of the advertisement window.
3. The method of claim 1, wherein prior to generating the first window, the method further comprises:
determining that an advertisement processing function for instructing to open or close the advertisement window when a different operation is detected is turned on.
4. An apparatus for advertisement processing, the apparatus comprising:
the detection module is used for judging whether an advertisement window pops up in the current interface or not based on the operation of triggering the pop-up window of the current interface or the position of the popped-up window in the current interface;
the processing module is used for generating a first window when an advertisement window pops up in the current interface, the first window is displayed on the upper layer of the advertisement window, and a first button is included in the first window;
the processing module is further used for opening the advertisement contained in the advertisement window when the long-press operation aiming at the first button is detected;
the processing module is further configured to close the advertisement window when other operations besides the long press operation are detected, or an operation for the first button is detected, the operation does not exceed a second preset time period, or no operation within the current interface or the first window is detected within a first preset time period, where the other operations include a sliding operation within the current interface or within the first window, or a single-click operation, a double-click operation, or an operation for a physical key.
5. The apparatus of claim 4, wherein a display area of the first window is greater than or equal to a display area of the advertisement window.
6. An electronic device, characterized in that the electronic device comprises:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps comprised in the method of any one of claims 1 to 3 in accordance with the obtained program instructions.
7. A computer-readable storage medium having stored thereon computer-executable instructions for causing a computer to perform the steps comprising the method of any one of claims 1-3.
CN201911295019.2A 2019-12-16 2019-12-16 Advertisement processing method and device, electronic equipment and storage medium Active CN111158811B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911295019.2A CN111158811B (en) 2019-12-16 2019-12-16 Advertisement processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911295019.2A CN111158811B (en) 2019-12-16 2019-12-16 Advertisement processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111158811A CN111158811A (en) 2020-05-15
CN111158811B true CN111158811B (en) 2022-06-21

Family

ID=70557210

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911295019.2A Active CN111158811B (en) 2019-12-16 2019-12-16 Advertisement processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111158811B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113986003A (en) * 2020-07-27 2022-01-28 北京字节跳动网络技术有限公司 Multimedia information playing method and device, electronic equipment and computer storage medium
CN112083973A (en) * 2020-09-18 2020-12-15 珠海豹趣科技有限公司 Window closing method and device, electronic equipment and storage medium

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7962955B2 (en) * 2006-08-15 2011-06-14 International Business Machines Corporation Protecting users from malicious pop-up advertisements
CN103019719B (en) * 2012-12-14 2016-08-24 北京奇虎科技有限公司 A kind of pop-up blocking apparatus and method
CN103164654B (en) * 2013-03-28 2016-08-03 北京奇虎科技有限公司 A kind of method carrying out information alert in pop-up and user interface display device
CN104007964B (en) * 2014-05-06 2017-11-07 珠海市君天电子科技有限公司 The method and apparatus of advertising management in application program
CN106776610B (en) * 2015-11-19 2020-04-17 珠海豹趣科技有限公司 Advertisement popup intercepting method and device
CN105549975A (en) * 2015-12-15 2016-05-04 北京金山安全软件有限公司 Processing method and device for prompt advertisement window
CN105824499A (en) * 2016-03-04 2016-08-03 维沃移动通信有限公司 Window control method and mobile terminal
CN107193956A (en) * 2017-05-23 2017-09-22 深圳天珑无线科技有限公司 Page processing method and device
CN107422916B (en) * 2017-07-26 2020-04-17 Oppo广东移动通信有限公司 Touch operation response method and device, storage medium and terminal
CN108536504A (en) * 2018-03-16 2018-09-14 广东欧珀移动通信有限公司 page display method, device, mobile terminal and storage medium

Also Published As

Publication number Publication date
CN111158811A (en) 2020-05-15

Similar Documents

Publication Publication Date Title
US10551987B2 (en) Multiple screen mode in mobile terminal
CN106951152B (en) Control method and device for label bar
CN107924283B (en) Human-computer interaction method, equipment and user graphical interface
CN108984093B (en) Touch operation method and device, storage medium and electronic equipment
EP2872979B1 (en) View mode switch of graphical user interface
WO2019085821A1 (en) Processing method, device, apparatus, and machine-readable medium
US8214546B2 (en) Mode switching
CN111046290A (en) Advertisement processing method and device, electronic equipment and storage medium
US11537265B2 (en) Method and apparatus for displaying object
WO2019085820A1 (en) Processing method, device, apparatus, and machine-readable medium
CN103377026B (en) Shortcut panel display method and device
CN106250190A (en) A kind of application startup method and terminal
CN111158811B (en) Advertisement processing method and device, electronic equipment and storage medium
CN109388309B (en) Menu display method, device, terminal and storage medium
CN110532051B (en) Method and device for displaying shortcut operation bar, folding screen equipment and storage medium
CN111694490B (en) Setting method and device and electronic equipment
CN109388810A (en) A kind of data processing method, device and the device for data processing
CN111159599A (en) Method, device, electronic equipment and storage medium for processing advertisement
CN110568990B (en) Screen splitting method and device, electronic equipment and storage medium
WO2019085810A1 (en) Processing method, device, apparatus, and machine-readable medium
CN113268182A (en) Application icon management method and electronic equipment
CN113535022A (en) Application icon display method and device, electronic equipment and readable storage medium
CN109885233B (en) Screen content identification method and device, electronic equipment and storage medium
CN112083837A (en) Touch information processing method and device of touch screen and electronic equipment
CN116400840A (en) Application advertisement skipping method, system, terminal and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant