Advertisement control method and device, equipment and medium

By capturing user behavior data in real time and dynamically adjusting the ad queue in the advertising space container, the problem of user experience and exposure balance in the advertising mode is solved, efficient and smooth carousel of advertisements and reasonable management of resources is achieved, and marketing benefits and system stability are improved.

CN120256001APending Publication Date: 2025-07-04GUANGZHOU HUANJUMARK NETWORK INFORMATION CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510312320.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-04

AI Technical Summary

Technical Problem

The existing advertising model is difficult to balance between user experience and advertising exposure, and users cannot actively close ads. Advertisements are played for too long and single, and the same advertisements are frequently played, resulting in user churn and low marketing benefits.

Method used

Obtain the ad collection by responding to events triggered by the ad slot container, launching an independent ad playback thread, capturing user operation behavior data in real time, dynamically adjusting the ad cache queue, responding to ad closing instructions in a timely manner, releasing graphic rendering resources, and realizing the isolation of ad rendering from the main program logic and efficient management of resources.

Benefits of technology

Ensure the continuity and fluency of advertising carousels, dynamically match user acceptance, avoid resource occupation, improve the exposure and accuracy of advertising delivery, reduce the equipment performance burden, and improve system stability and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120256001A_ABST
    Figure CN120256001A_ABST
Patent Text Reader

Abstract

The invention relates to an advertisement control method and device, equipment and medium in the field of image processing, and the method comprises the steps: responding to a page advertisement playing event triggered by an advertisement space container based on a program page, obtaining an advertisement set, and adding each advertisement in the advertisement set to an advertisement buffer queue; an advertisement playing thread is started, and the advertisements in the advertisement cache queue are sequentially played in turn in the advertisement space container; capturing operation behavior data of the program page by adopting an event monitor, and when it is determined that the operation behavior data meets a preset triggering condition, configuring an advertisement cache queue according to a target advertisement quantity corresponding to the triggering condition; and responding to the advertisement closing instruction, ending the advertisement playing thread, emptying the advertisement cache queue, and releasing the graphic rendering resources occupied by the advertisement space container. According to the invention, efficient and smooth carousel and complete closing of advertisements can be controlled.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image processing, and in particular to an advertisement control method, its corresponding device, computer device, and computer-readable storage medium. Background Art

[0002] With the deep penetration of mobile Internet technology, mobile applications have gradually become the core promotion carriers in the digital marketing field. The current mainstream advertisement presentation mode has gradually evolved from static display to dynamic display to improve the advertisement display effect. However, the existing advertisement modes often have difficulty in balancing user experience and advertisement exposure. For example, there is a lack of advertisement closing control, users cannot actively close advertisements, and the advertisement playing time is too long; the advertisements are single, and the same advertisement is played extremely frequently, etc.

[0003] In view of the deficiencies of traditional technologies, the applicant has made corresponding explorations. Summary of the Invention

[0004] The primary object of this application is to solve at least one of the above problems and provide an advertisement control method, its corresponding device, computer device, and computer-readable storage medium.

[0005] To meet the various objectives of this application, the following technical solutions are adopted in this application:

[0006] An advertisement control method provided to meet one of the objectives of this application includes the following steps:

[0007] Respond to a page advertisement playing event triggered by an advertisement position container on a program page, obtain an advertisement set, and add each advertisement in the advertisement set to an advertisement cache queue;

[0008] Start an advertisement playing thread, and sequentially play the advertisements in the advertisement cache queue in the advertisement position container;

[0009] Use an event listener to capture the operation behavior data of the program page. When it is determined that the operation behavior data meets a preset trigger condition, configure the advertisement cache queue according to the target advertisement quantity corresponding to the trigger condition;

[0010] Respond to an advertisement closing instruction, end the advertisement playing thread, empty the advertisement cache queue, and release the graphic rendering resources occupied by the advertisement position container.

[0011] On the other hand, an advertisement control device provided to meet one of the purposes of the present application includes an event response module, a thread startup module, a queue configuration module, and an instruction response module. Among them, the event response module is used to respond to a page advertisement playback event triggered by an advertisement slot container on a program page, obtain an advertisement set, and add each advertisement in the advertisement set to an advertisement cache queue; the thread startup module is used to start an advertisement playback thread to sequentially carousel the advertisements in the advertisement cache queue in the advertisement slot container; the queue configuration module is used to capture operation behavior data of the program page by using an event listener, and when it is determined that the operation behavior data meets a preset trigger condition, configure the advertisement cache queue according to the target advertisement quantity corresponding to the trigger condition; the instruction response module is used to respond to an advertisement close instruction, end the advertisement playback thread, empty the advertisement cache queue, and release the graphic rendering resources occupied by the advertisement slot container.

[0012] On the other hand, a computer device provided to meet one of the purposes of the present application includes a central processing unit and a memory. The central processing unit is used to call and run a computer program stored in the memory to execute the steps of the advertisement control method described in the present application.

[0013] On the other hand, a computer-readable storage medium provided to meet another purpose of the present application stores a computer program implemented according to the advertisement control method in the form of computer-readable instructions. When the computer program is called and run by a computer, it executes the steps included in the method.

[0014] The technical solution of the present application has multiple advantages, including but not limited to the following aspects:

[0015] First of all, in the present application, the entire advertisement set is pre-loaded into the advertisement cache queue, and the localization storage of all advertisement resources is completed before the advertisement playback thread is started, so that resources can be directly read from the memory at high speed during the carousel process, completely eliminating the network delay caused by real-time pulling and loading of each advertisement one by one. On this basis, an independent advertisement playback thread is enabled to achieve physical isolation between advertisement rendering and the main program logic, avoiding screen jams caused by thread blocking, and thus ensuring the continuity and smoothness of advertisement carousel.

[0016] Secondly, by capturing user operation behavior data in real time and presetting an advertisement quantity adjustment rule, the advertisement cache queue can be dynamically expanded or contracted according to the current interaction scenario. In this way, based on the real-time feedback mechanism of behavior data, the dynamic matching between the length of the advertisement queue and user acceptance is realized, which not only avoids user loss caused by excessive advertisement pushing, but also improves the advertisement placement exposure and accuracy in high-value scenarios, bringing greater marketing benefits to advertisers.

[0017] Finally, when responding to the advertisement closing instruction, operations such as terminating the synchronization execution thread, emptying the queue, and releasing rendering resources are synchronously performed. The active release of graphics rendering resources such as GPU textures and frame buffers fundamentally eliminates the resource occupation problem after the advertisement position container is closed, making the resource occupation rate of the advertisement module strictly bound to the life cycle of the advertisement container. While ensuring sufficient resource supply during advertisement playback, it ensures that system resources are immediately released after the advertisement is closed, significantly improving the stability of the application program on low-end devices, reducing the burden on device performance, increasing the utilization rate of device resources, enabling the program to run more smoothly, further enhancing the stability and reliability of the entire system, and creating a more efficient usage environment for users. Brief Description of the Drawings

[0018] The above and / or additional aspects and advantages of the present application will become apparent and be readily understood from the following description of the embodiments in conjunction with the accompanying drawings, where:

[0019] Figure 1 is a schematic flowchart of a typical embodiment of the advertisement control method of the present application;

[0020] Figure 2 is a schematic diagram of a user research pop-up window for exemplary illustration of the present application;

[0021] Figure 3 is a schematic diagram of a positive feedback animation played on a program page for exemplary illustration of the present application;

[0022] Figure 4 is a principle block diagram of the advertisement control device of the present application;

[0023] Figure 5 is a schematic structural diagram of a computer device adopted by the present application. Detailed Description of the Embodiments

[0024] The embodiments of the present application will be described in detail below. The examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals represent the same or similar elements or elements with the same or similar functions throughout. The embodiments described below by referring to the accompanying drawings are exemplary and are only used to explain the present application and should not be construed as limiting the present application.

[0025] Those skilled in the art can understand that, unless specifically stated otherwise, the singular forms "a", "an", "the" and "said" used herein may also include the plural forms. It should be further understood that the term "comprising" used in the specification of the present application means the presence of the stated features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or their groups. It should be understood that when we say that an element is "connected" or "coupled" to another element, it can be directly connected or coupled to other elements, or there may also be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The phrase "and / or" used herein includes all or any unit and all combinations of one or more of the associated listed items.

[0026] Those skilled in the art can understand that, unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meaning as the general understanding of those of ordinary skill in the art to which the present application belongs. It should also be understood that terms such as those defined in a general dictionary should be understood to have a meaning consistent with the meaning in the context of the prior art, and will not be interpreted in an idealized or overly formal sense unless specifically defined as here.

[0027] Those skilled in the art can understand that the "client", "terminal", and "terminal device" used herein include both devices with a wireless signal receiver that only has the ability to receive and no ability to transmit, and devices with receiving and transmitting hardware that have the receiving and transmitting hardware capable of two-way communication on a two-way communication link. Such devices can include: cellular or other communication devices such as personal computers, tablets, etc., which have a single-line display or a multi-line display or a cellular or other communication device without a multi-line display; PCS (Personal Communications Service), which can combine voice, data processing, fax, and / or data communication capabilities; PDA (Personal Digital Assistant), which can include a radio frequency receiver, pager, Internet / intranet access, web browser, notepad, calendar, and / or GPS (Global Positioning System) receiver; conventional laptop and / or palm-top computers or other devices, which are conventional laptop and / or palm-top computers or other devices with and / or including a radio frequency receiver. The "client", "terminal", and "terminal device" used herein can be portable, transportable, installed in a vehicle (air, sea, and / or land), or suitable for and / or configured to run locally, and / or run in a distributed manner at any other location on the earth and / or in space. The "client", "terminal", and "terminal device" used herein can also be a communication terminal, an Internet access terminal, a music / video playback terminal, for example, it can be a PDA, MID (Mobile Internet Device), and / or a mobile phone with music / video playback function, or can also be a smart TV, a set-top box, and other devices.

[0028] The hardware referred to by names such as "server", "client", and "service node" in this application is essentially an electronic device with the equivalent capabilities of a personal computer, and is a hardware device with the necessary components disclosed by the von Neumann principle, including a central processing unit (including an arithmetic unit and a controller), a memory, an input device, and an output device. The computer program is stored in its memory, and the central processing unit loads the program stored in the external memory into the memory for execution, executes the instructions in the program, and interacts with the input / output devices to complete specific functions.

[0029] It should be noted that the concept of "server" in this application can similarly be extended to apply to server clusters. According to the network deployment principles understood by those skilled in the art, the servers should be logically divided. Physically, these servers can either be independent of each other but can be invoked through interfaces, or integrated into a single physical computer or a set of computer clusters. Those skilled in the art should understand this flexibility and should not be restricted by this when implementing the network deployment method of this application.

[0030] One or several technical features of this application, unless expressly specified, can either be deployed on the server and accessed by the client remotely invoking the online service interface provided by the server, or directly deployed and run on the client for access.

[0031] The neural network models cited or possibly cited in this application, unless expressly specified, can either be deployed on a remote server and remotely invoked on the client, or deployed on a client capable of handling the device and directly invoked. In some embodiments, when it runs on the client, its corresponding intelligence can be obtained through transfer learning to reduce the requirements for the client's hardware operating resources and avoid excessive occupation of the client's hardware operating resources.

[0032] All kinds of data involved in this application, unless expressly specified, can either be remotely stored on the server or stored on the local terminal device, as long as it is suitable for being invoked by the technical solution of this application.

[0033] Those skilled in the art should be aware that although the various methods of this application are described based on the same concept and thus show commonality with each other, unless otherwise specified, these methods can all be executed independently. Similarly, for the various embodiments disclosed in this application, they are all proposed based on the same inventive concept. Therefore, for concepts with the same expression, as well as concepts that are only appropriately transformed for convenience although the expression is different, they should be equivalently understood.

[0034] For each of the embodiments to be disclosed in this application, unless expressly stated to be mutually exclusive, the relevant technical features involved in each embodiment can be cross-combined to flexibly construct new embodiments, as long as such combination does not deviate from the creative spirit of this application and can meet the needs in the prior art or solve certain deficiencies in the prior art. Those skilled in the art should be aware of this flexibility.

[0035] An advertising control method of the present application can be programmed as a computer program product and implemented by running on a client or a server. For example, in an exemplary application scenario of the present application, it can be implemented by deploying it on the server of an e-commerce platform. Thus, by accessing the interface opened after the computer program product runs, human-computer interaction can be performed with the process of the computer program product through a graphical user interface to execute this method.

[0036] Please refer to Figure 1 , in a typical embodiment of the advertising control method of the present application, it includes the following steps:

[0037] Step S1100: Respond to the page advertisement playback event triggered by the advertisement position container based on the program page, obtain an advertisement set, and add each advertisement in the advertisement set to the advertisement cache queue;

[0038] Generally, when a program page containing an advertisement position container in the visible area needs to be displayed, the page advertisement playback event is triggered; or when the user scrolls the program page to make the advertisement position container enter the visible area, the page advertisement playback event is triggered; or when a program page containing an advertisement position container in the visible area has been displayed for a duration exceeding a preset duration and no interaction has occurred, the page advertisement playback event is triggered.

[0039] The form of the advertisement position container can be any one or any combination of embedded content stream, Banner, interstitial, full-screen, floating, etc. The advertisement position container is a visual component in the program page that carries advertisements, and it pre-packages the playback components required for adapting to advertisements in various forms, including any one or any combination of video playback components, user interaction components, picture display components, audio playback components, text display components, etc. In addition, it also pre-packages a button component for closing the played advertisement.

[0040] In one embodiment, the API interface provided by the advertising platform is called to dynamically pull the latest advertisements. For example, after sending an HTTP request for the terminal device identifier, geographical location, and user profile to the advertising platform, various advertisements returned by the platform are received. The advertising platform usually deploys multiple external advertising sources, and these external advertising sources are responsible for providing the advertisements participating in the bidding. The platform can select multiple advertisements with relatively high advertising revenue rankings at one time according to the internally set bidding rules. After adding each advertisement to the advertisement set initialized to be empty in the current order, the advertisement set is returned to the terminal device. Alternatively, each time an advertisement with the highest advertising revenue is selected, and in this way, multiple corresponding advertisements are selected successively. Then, each advertisement is added to the advertisement set initialized to be empty in the order of winning the bid, and the advertisement set is returned to the terminal device. In another embodiment, multiple pre-set advertisements are read from the local persistent storage. After adding each advertisement to the advertisement set initialized to be empty in the order of reading, the advertisement set is returned to the terminal device. The advertisement includes a media resource address (such as a picture URL, a text URL, a video stream address), an interactive callback address, etc.

[0041] The advertisement cache queue is implemented using a first-in, first-out (FIFO) data structure. The advertisements in the advertisement set are taken out one by one in the order of sorting from first to last and added to the advertisement cache queue.

[0042] Step S1200: Start the advertisement playback thread, and sequentially play the advertisements in the advertisement cache queue in the advertisement space container;

[0043] The advertisement playback thread is implemented as a background thread independent of the main thread, and the advertisement switching frequency is controlled by a timer mechanism and / or an event-driven mechanism. The carousel process supports at least one playback strategy among the loop playback mode, the single playback mode, and the interruption mode, where:

[0044] Loop playback mode: Play each advertisement in the advertisement cache queue in the order of first-in, first-out. When the playback of the last advertisement in the advertisement cache queue is completed, jump to the first advertisement in the queue to start playing again until an event is triggered to respond to a stop instruction or the advertisement space container exits the visible area;

[0045] Single playback mode: Play the advertisements in the advertisement cache queue only once in the order of first-in, first-out. When the playback of the last advertisement in the advertisement cache queue is completed, repeat playing the last advertisement until a new advertisement is added to the queue, and continue the foregoing process;

[0046] Interruption mode: Real-time monitor the user interaction behavior. When it is detected that the advertisement space container, the screen is swiped, or other preset interaction behaviors are triggered, immediately pause the current advertisement playback behavior and execute the interaction response logic. The preset interaction behaviors can be set as needed by those skilled in the art.

[0047] The playback components encapsulated inside the advertising space container dynamically adapt the playback method according to the advertising media type, including: invoking the video playback component for video advertisements, which supports functions such as playback progress bar control and volume adjustment; invoking the picture display component and the text display component for graphic and text advertisements to achieve a layout with mixed graphics and text; activating the user interaction component for interactive advertisements to execute the pre-embedded click hot zone recognition and / or gesture response module.

[0048] In one embodiment, time slicing is used to achieve smooth carousel: the display cycle of each advertisement is divided into an initialization stage, a stable playback stage, and an exit transition stage. Among them, in the initialization stage, the advertisement is pre-loaded and the corresponding first frame is rendered; in the stable playback stage, the advertisement content is continuously displayed until a preset duration is reached. For example, in the exit transition stage, after rendering a fade-out or sliding animation effect, the next advertisement is switched. The preset duration can be dynamically adjusted based on the advertisement form. For example: video advertisements adopt a fixed duration strategy, and graphic and text advertisements match the duration according to the text reading difficulty. The specific duration can be set by those skilled in the art as needed.

[0049] In another embodiment, the average display duration of the advertising space container is obtained, and based on this average display duration and the preset durations corresponding to each advertisement in the advertisement cache queue, the number of advertisements that can be completely displayed in the queue is dynamically calculated, and the advertisements corresponding to the number of high-value advertisements with higher rankings in the queue, that is, higher advertising revenue, are selected for carousel. For example, when the average residence time of the current advertising space container is 20 seconds, 5 high-value advertisements are preferably selected and the pre-allocated display durations are 4, 3, 5, 2, and 6 respectively.

[0050] The carousel process can also include an exception handling mechanism. If the currently played advertisement fails to load due to network interruption or resource failure, the advertisement is automatically skipped and the corresponding exception information is recorded in the exception log. At the same time, a compensatory advertisement request is sent to the advertisement delivery platform to obtain the corresponding advertisement and supplement it to the advertisement cache queue.

[0051] Step S1300: Use an event listener to capture the operation behavior data of the program page. When it is determined that the operation behavior data meets the preset trigger condition, configure the advertisement cache queue according to the target advertisement quantity corresponding to the trigger condition;

[0052] The event listener captures and analyzes the user's operation behavior data in real time by subscribing to at least one of the page scroll event, touch event, and page life cycle event. Specifically, it includes, but is not limited to:

[0053] Determine the corresponding page scrolling rate as the trigger condition based on the subscription page scrolling event: Calculate the scrolling pixels of the program page within a unit time as the scrolling rate (such as 500 pixels per second). When the scrolling rate exceeds the first threshold and the duration reaches the second threshold, it is determined that the user's operation behavior at this time belongs to the fast browsing behavior, triggering to reduce N ads as the target number of ads, and removing the N ads with lower rankings from the ad cache queue;

[0054] Determine the corresponding interaction density as the trigger condition based on the subscription touch event: Accumulate the number of times the user touches the ad position container as the interaction density. When the interaction density exceeds the third threshold, it is determined that the user's interaction intention is relatively high at this time, triggering to increase M ads as the target number of ads, obtaining the ad set again, sorting the relatively new M ads in the ad set in descending order of the placement revenue, and appending them to the end of the ad cache queue;

[0055] Determine the corresponding page stay duration as the trigger condition based on the subscription page life cycle event: When the duration that the page containing the ad position container continuously remains in the visible area exceeds the fourth threshold, it is determined that the user is deeply browsing the page at this time, triggering to increase M ads as the target number of ads, obtaining the ad set again, sorting the relatively new M ads in the ad set in descending order of the placement revenue, and appending them to the end of the ad cache queue.

[0056] The above first threshold, second threshold, third threshold, fourth threshold, N, and M can all be preset by those skilled in the art as needed.

[0057] Step S1400, in response to the ad closing instruction, end the ad playing thread, empty the ad cache queue, and release the graphic rendering resources occupied by the ad position container.

[0058] An event listener can be applied to capture the operation of the user clicking the button component for closing the playing ad in the ad position container; operations such as swiping right and returning gestures triggered in the program page can be implemented based on a gesture recognition library (such as GestureDetector); a countdown component (such as Countdown Timer) can be applied to display the remaining playing duration of the ad in the upper right corner of the ad position container for the user to intuitively understand.

[0059] When the user clicks on the button component, or when the user triggers a predefined gesture on the program page, when the program page triggers a jump, or when the duration of continuous advertisement playback reaches a preset duration (the preset duration can be set by those skilled in the art as needed), at this time, in response to the advertisement closing instruction, an asynchronous end instruction is sent to the advertisement playback thread, and the thread is destroyed by executing this instruction, so that the thread cannot occupy the running resources. Furthermore, all advertisements in the advertisement cache queue are cleared. In addition, the corresponding release logic is called according to the advertisement form. For example, the hard decoder instance of the video playback component is destroyed and the video memory is released, and the DOM node binding of the graphic display component is released and the CSS animation resources are recycled, etc. And, in order to remove the advertisement slot container from the layout of the program page, the display property of this page element is set to none. In this way, the advertisement slot container will not be displayed on this page and will not occupy the corresponding image rendering resources.

[0060] It is not difficult to understand from the above embodiments that, compared with the prior art, this application has multiple advantages, including at least:

[0061] In this application, first, the entire advertisement set is pre-loaded into the advertisement cache queue, and all advertisement resources are locally stored before the advertisement playback thread is started, so that resources can be directly read from the memory at high speed during the carousel process, completely eliminating the network delay caused by real-time pulling and loading of each advertisement one by one. On this basis, an independent advertisement playback thread is enabled, realizing the physical isolation of advertisement rendering and the main program logic, avoiding the screen freeze caused by thread blocking, and thus ensuring the continuity and smoothness of the advertisement carousel.

[0062] Secondly, by capturing the user operation behavior data in real time and presetting the advertisement quantity adjustment rule, the advertisement cache queue can be dynamically expanded or contracted according to the current interaction scenario. In this way, based on the real-time feedback mechanism of the behavior data, the dynamic matching of the advertisement queue length and the user acceptance degree is realized, which not only avoids the loss of users caused by excessive advertisement pushing, but also improves the advertisement placement exposure and accuracy in high-value scenarios, bringing greater marketing benefits to advertisers.

[0063] Finally, when responding to the advertisement closing instruction, the operations of thread termination, queue clearing, and rendering resource release are synchronously executed, and the active release of graphic rendering resources such as GPU textures and frame buffers can be carried out, fundamentally eliminating the resource occupation problem after the advertisement slot container is closed, making the resource occupation rate of the advertisement module strictly bound to the life cycle of the advertisement container, ensuring the full supply of resources during the advertisement playback, and ensuring the immediate release of system resources after the advertisement is closed, significantly improving the stability of the application program on low-end devices, reducing the burden on the device performance, improving the utilization rate of device resources, enabling the program to run more smoothly, further enhancing the stability and reliability of the entire system, and creating a more efficient usage environment for users.

[0064] In a further embodiment, step S1200, starting an advertisement playback thread, and sequentially playing the advertisements in the advertisement cache queue in the advertisement space container, includes the following steps:

[0065] Step S1210, responding to the program page scrolling event, and obtaining the ratio between the visible area size of the advertisement space container in the program page and its original size as the original ratio;

[0066] By registering a page scrolling listener to capture the scrolling event of the program page in real time, triggering the detection of the visible area of the advertisement space container.

[0067] Call the view coordinate system conversion method (such as the getBoundingClientRect method) to obtain the display area coordinates of the advertisement space container in the current viewport, calculate the width and height of the area of the container, and form the visible area size. Obtain the height and width of the originally designed advertisement space container to form the original size, and then calculate the ratio of the visible area size to the original size. An exemplary formula is as follows:

[0068] proportion = min(width visible / width original , height visible / height original )

[0069] Where: proportion is the original ratio, width visible , height visible are the width and height in the visible area size, width original , height original are the width and height in the original size.

[0070] Step S1220, when the original ratio is lower than the preset visibility, dynamically identify the least content area in the program page, and relocate the advertisement space container to be suspended and displayed above this area.

[0071] Set a matching preset visibility according to the advertisement form. For example: 0.5 is used for video advertisements, and 0.7 is used for picture and text advertisements. When the original ratio is lower than the preset visibility, it is determined that the advertisement space container is in a low visibility state at this time. In one embodiment, the visible area is divided into M×N grid cells, and the text density, image area, and number of interactive controls in each grid cell are counted through DOM node traversal, and the content weight value is calculated. An exemplary formula is as follows:

[0072] Content weight = a * Text lines+b*Image area +c*Interactive controls

[0073] Among them: Content weight 、Text lines 、Image area 、Interactive controls M, N, a, b, and c are the content weight value, text line number, image area, and interactive control number, respectively. a, b, and c are the weights corresponding to the text line number, image area, and interactive control number, respectively. M, N, a, b, and c can all be set by those skilled in the art as needed.

[0074] The grid units are sorted in order from low to high according to the content weight value, and at least one grid unit that is ranked high and adjacent to each other is selected to form the minimum content area.

[0075] In another embodiment, a target detection model pre-trained to a converged state is used, which learns the ability to detect the minimum content area in the input page image, and those skilled in the art can flexibly implement the training of the model. The size of the minimum content area is pre-set to be consistent with the size of the floating display ad space container, and the size of the ad space container can be the original size, and it is recommended to be a scaled size, and the ratio can be set by those skilled in the art as needed.

[0076] Furthermore, in one embodiment, the CSS property of the ad container is modified: position:fixed, the floating coordinates (x, y) are calculated according to the coordinates of the upper left corner of the target area, and z-index:9999 is superimposed to ensure that it is displayed at the topmost layer of the visible layer. On this basis, it is recommended to add a semi-transparent background and shadow effects to enhance visual contrast. Furthermore, the floating ad container is configured with interactive functions such as pushability and edge adsorption to give users control over the position of the floating ad, thereby ensuring the visibility of the ad while reducing interference with the user's operating process and enhancing the user's acceptance of ad display behavior.

[0077] In this embodiment, when the ad space container is limited by the scrolling of the program page and the visibility is insufficient, it is reallocated to be displayed floating above the minimum content area in the page, which can avoid blocking other content of the page as much as possible and ensure that the ad content is fully displayed, thereby reducing interference with users' browsing of the main content, improving users' acceptance of and willingness to click on ads, and helping to increase advertisers' ad exposure and return on investment, attracting more advertisers to cooperate, and thereby enhancing the commercial value and competitiveness of the application in advertising marketing.

[0078] In a further embodiment, after step S1400, in response to an advertisement closing instruction, ending the advertisement playing thread, emptying the advertisement cache queue, and releasing the graphics rendering resources occupied by the advertisement slot container, the following steps are included:

[0079] Step S1510: Determine the negative emotion tendency degree according to the advertisement closing times and the associated advertisement closing speed;

[0080] When responding to the advertisement closing instruction, obtain the current timestamp as the closing timestamp, and obtain the starting playing timestamp that was previously recorded and retained when the advertisement started playing in this advertisement slot container, and obtain the cumulative advertisement closing times from the start of the application startup up to this time. Calculate the negative emotion tendency degree using a weighted calculation formula. An exemplary formula is as follows:

[0081]

[0082] Where: negative tendencies 、close times 、close speed 、begin time are the negative emotion tendency degree, the advertisement closing times, the closing timestamp, and the starting playing timestamp respectively. α and β are the weights of the advertisement closing times and the advertisement closing speed respectively. It is not difficult to understand that the advertisement closing speed is the difference obtained by subtracting the starting playing timestamp from the closing timestamp.

[0083] Step S1520: When the negative emotion tendency degree meets the preset condition, obtain the user research pop-up window to be displayed on the program page. The user research pop-up window includes an emotion calming background image and an advertisement type set, and the advertisement type set contains multiple advertisement type options;

[0084] When the negative emotion tendency degree exceeds the preset threshold, it means that the user is dissatisfied emotionally due to the advertisement playing at this time. Therefore, in order to calm the user's emotion and play the advertisement that the user is interested in at the same time, obtain the user research pop-up window to be displayed on the program page, so that the user can watch the emotion calming background image to relieve the negative emotion and select their preferred advertisement type. The preset threshold can be set by those skilled in the art as needed.

[0085] The advertisement delivery platform can provide or the operator of the application program can set multiple advertisement types, and configure the advertisement type selectability of each advertisement type to be expressed as selectable text or the style of specific advertisement playing. Thus, the corresponding advertisement type selectabilities are constructed to form the advertisement type set. The emotion calming background image can be filled with a warm-toned gradient color and then processed with a blur filter, or it can also be realized by referring to the disclosure of subsequent partial embodiments.

[0086] Step S1530: In response to the event of selecting the optional item, determine each selected advertisement type, which is used to obtain the corresponding advertisement set according to each advertisement type when responding to the page advertisement playing event next time.

[0087] When the user selects at least one advertisement type option in the above pop-up window, after confirmation and submission, in response to the event of selecting the option, determine the advertisement types associated with the mapping of each option. Thus, before the next advertisement is played, an advertisement set composed of advertisements belonging to these advertisement types can be obtained, and then advertisements preferred by the user can be played.

[0088] In this embodiment, the negative emotion tendency degree is quantified based on the advertisement closing times and the associated advertisement closing speed. Accordingly, when it is determined that the user is dissatisfied due to the advertisement playing, a user research pop-up window is displayed on the program page to calm the user's emotions and learn the advertisement types preferred by the user for subsequent advertisement playing. It can be seen that while taking care of the user's emotions as much as possible, the fit between the advertisement placement and the user is enhanced, achieving a win-win situation for both the user and the advertiser.

[0089] In a further embodiment, before step S1520: obtaining the user research pop-up window displayed on the program page, the following steps are included:

[0090] Step S2520: Apply a copywriting generation algorithm to generate an emotion-calming copywriting, and apply an illustration generation algorithm to generate a copywriting illustration according to the emotion-calming copywriting;

[0091] The copywriting generation algorithm can be a large language model, which is suitable for text processing in the field of NLP. It is pre-trained with an extremely large corpus until convergence, acquires the ability to generate human language, and has a certain degree of accurate text semantic understanding ability and logical reasoning ability. The model selection includes Falcon, Chinchilla, PaLM, LLaMA 2, text-embedding-ada-002, etc.

[0092] Obtain the preset prompt text for guiding the large language model to infer and calm the user's negative emotions, input it into the model, and obtain the emotion-calming copywriting. The prompt text can be set by those skilled in the art as needed. Exemplary example: Prompt text: "The user has negative emotions due to watching advertisements, such as boredom, anger, disappointment, etc. I need you to generate a short sentence to calm the user's negative emotions. You can use a warm, understanding, and encouraging tone, avoid using any words that may exacerbate negative emotions, give words of thanks and good wishes for the user's effort in watching the advertisement, or give words of apology and request for understanding."

[0093] The illustration generation algorithm is an algorithm that uses technologies such as deep learning to convert the given text content into an image. It can generate an image that matches the semantic information in the text to enhance the visual appeal and expression effect of the text. The model selection includes DALL·E, Stable Diffusion, etc.

[0094] Step S2521: Apply an image recognition algorithm to determine the design style, theme color scheme, and target caption area of the text illustration.

[0095] Preprocess the text illustration, including operations such as resizing the image and normalizing it to meet the input requirements of the pre-trained Resnet model until convergence. Input the preprocessed image into the model. Extract the deep semantic features of the image through components such as the convolutional layer and pooling layer of the model. Then, use the last fully connected layer of the model to map the extracted features to multiple predefined categories. Each category is mapped to a design style, and the classification probability of each type is obtained. Screen out the category with the highest classification probability as the output. Map the design style associated with the output category as the design style of the text illustration. It can be understood that a large amount of image data containing actual design style annotations can be used to pre-train the Resnet model and adjust the hyperparameters of the model, such as the learning rate and batch size, until the model is trained to a convergent state and acquires the ability to determine the design style of the input image.

[0096] Read the text illustration and convert it into a data format suitable for K-Means clustering, including using the RGB values of each pixel point in the image as data points to form a data set. After constructing a K-Means clustering algorithm and setting the number of clusters (K), perform clustering on the data set. After clustering is completed, obtain the RGB values corresponding to the center points of each cluster as the theme color scheme of the text illustration. The number of clusters can be set by those skilled in the art as needed.

[0097] Preprocess the text illustration, including operations such as resizing the image and normalizing it to meet the input requirements of the pre-trained Yolo model until convergence. Input the preprocessed image into the model to detect the bounding boxes and category information of the areas suitable for adding text. Then, apply non-maximum suppression (NMS) to remove duplicate bounding boxes and screen out the final area as the target caption area. It can be understood that a large amount of image data containing actual caption area annotations can be used to train the YOLO model and adjust the hyperparameters of the model, such as the learning rate and batch size, until the model is trained to a convergent state and acquires the ability to determine the area in the input image that is most suitable for adding text.

[0098] Step S2522: Determine the target text style in the caption style library according to the design style and theme color scheme;

[0099] Pre-construct a caption style library with multiple font styles, where each font style is mapped and associated with at least one matching design style and theme color scheme. Thus, according to the design style and theme color scheme recognized from the image, the matching font style in the library can be retrieved as the target font style.

[0100] Step S2523: Synthesize the emotion-calming copywriting into the target caption area in the caption picture according to the target text style to obtain an emotion-calming background picture;

[0101] Call a graphics rendering engine (such as Skia) to render the copywriting as a text layer with a transparent background according to the target text style, and overlay it on the target caption area so that it is displayed above the layer of the caption picture, resulting in an emotion-calming background picture.

[0102] Step S2524: Obtain typical advertisements corresponding to multiple advertisement types and construct them as advertisement type options respectively, and encapsulate them together with the emotion-calming background picture into a user research pop-up window.

[0103] Map each typical advertisement to its corresponding advertisement type and construct it as an advertisement type option so that it can be played in the user research pop-up window and can be controlled by the user to swipe left or right to switch to the previous or next advertisement type option for playback. Moreover, the advertisement type option can be selected by the user, which is regarded as the user being interested in the advertisement type associated with the selected advertisement type option; if not selected by the user, it is regarded as the user being not interested in the advertisement type associated with the unselected advertisement type option. In addition, the emotion-calming background picture serves as the background illustration of the user research pop-up window. In this way, a user research pop-up window is encapsulated. An exemplary user research pop-up window is as Figure 2 shown, where the emotion-calming background picture serving as the background illustration includes an emotion-calming copywriting 200 and a caption picture 201, and an exemplary advertisement type option 202, and its selected state is shown as 203 in the box, and its unselected state is shown as without a box (not shown).

[0104] In this embodiment, the encapsulation process of the user research pop-up window is disclosed, which can calm the negative emotions caused by the user watching advertisements. At the same time, by providing the user with an intuitive and convenient way to select the advertisement types they are interested in, the task of researching users is completed together, reducing the user's resistance and improving the accuracy and completion rate of the research.

[0105] In a further embodiment, Step S1200: After starting the advertisement playback thread and sequentially playing the advertisements in the advertisement cache queue in the advertisement slot container, the following steps are included:

[0106] Step S2200: Determine the advertisement exposure effectiveness score based on the advertisement click-through rate, advertisement playing duration, and advertisement playing quantity corresponding to the advertisement space container.

[0107] In order to more comprehensively and accurately evaluate the exposure effectiveness of advertisements in the advertisement space container, after the advertisement playing thread is started and the advertisements in the advertisement cache queue are sequentially rotated in the advertisement space container, the advertisement exposure effectiveness score will be determined based on multiple key indicators corresponding to the advertisement space container.

[0108] Specifically, first, obtain the advertisement click-through rate of the advertisement space container. The advertisement click-through rate refers to the ratio of the number of times a user clicks on an advertisement to the number of times the advertisement is displayed. By using an event listener to monitor the user's click behavior on the advertisement in the advertisement space container in real time, every time a click operation is detected, the click count counter is incremented by one; at the same time, every time an advertisement is displayed, the display count counter is also incremented by one. Thus, dividing the click count by the display count can obtain the current advertisement click-through rate.

[0109] Next, by starting the advertisement playing thread until the end each time, subtracting the corresponding start timestamp from the end timestamp can obtain the playing duration of this time, and then accumulating the playing durations corresponding to each play, the total advertisement playing duration can be obtained.

[0110] Furthermore, it can be obtained by counting the advertisements that have been successfully played in the advertisement cache queue. Every time an advertisement is taken out from the advertisement cache queue and played in the advertisement space container, regardless of whether it is clicked by the user, the play quantity counter is incremented by one, and reading this counter can obtain the advertisement playing quantity.

[0111] After obtaining the data of the above three key indicators, assign corresponding weights to each indicator. The assignment of weights is determined based on professional knowledge in the advertisement business field and a large amount of practical data to ensure the rationality and accuracy of each indicator in comprehensively evaluating the advertisement exposure effectiveness. For example, a relatively high weight may be assigned to the advertisement click-through rate because it directly reflects the user's interest and engagement with the advertisement; appropriate weights will also be assigned to the advertisement playing duration and advertisement playing quantity according to their different impacts on the advertisement delivery effect.

[0112] Finally, determine the advertisement exposure effectiveness score through weighted calculation. The specific calculation formula is as follows:

[0113] E = w1 * CTR + w2 * PT + w3 * AN

[0114] Among them, E represents the advertising exposure effectiveness score, and w1, w2, and w3 are the weights of the advertising click-through rate (CTR), the advertising playback duration (PT), and the advertising playback quantity (AN) respectively. Through such a weighted calculation method, the impacts of multiple factors on the advertising exposure effectiveness are comprehensively considered, and a value that can comprehensively reflect the actual exposure effect of the advertisement in the advertisement slot container is obtained.

[0115] Step S2210: When the advertising exposure effectiveness score meets the preset condition, construct a positive feedback animation and play it on the program page.

[0116] When the advertising exposure effectiveness score exceeds the preset threshold, it indicates that the advertising exposure effectiveness is better at this time, and it is necessary to express gratitude to the user. Therefore, a positive feedback animation is constructed and played on the program page. Those skilled in the art can flexibly implement the positive feedback animation and the preset threshold according to the disclosure here. In one embodiment, the positive feedback animation is as Figure 3 shown in 300, dynamically playing gorgeous fireworks and displaying text to express gratitude to the user.

[0117] Use a graphics rendering engine (such as Skia, etc.) to render and synthesize the positive feedback animation. The graphics rendering engine will generate a corresponding sequence of animation frames according to the set parameters and the selected animation template, and play them at a certain frame rate, so as to present a smooth positive feedback animation effect on the program page.

[0118] In this embodiment, by quantifying the advertising exposure effectiveness score, when it reaches the preset condition, a positive feedback animation is constructed and played. While paying attention to the marketing benefits of the advertiser, the user experience is also fully considered. The design of the positive feedback animation not only does not cause interference to the user, but can also increase the interest and attraction of the user browsing the program page to a certain extent. While the user enjoys a good advertising experience, more valuable feedback information is provided for the advertiser, forming a virtuous cycle between the user experience and the advertiser's interests.

[0119] In a further embodiment, before step S1400: responding to the advertisement closing instruction, the following steps are included:

[0120] Step S2400: Respond to the long-press operation event triggered by the program page, and display a canvas on the program page;

[0121] When the user performs a long - press operation on the program page, the application will capture this operation event through the event listening mechanism. Specifically, after the page is loaded, the program will inject a long - press event listener for page elements through front - end technologies such as JavaScript. Once it is detected that the user has performed a long - press operation at a certain position on the program page, that is, the finger continuously presses on the screen for more than a preset time threshold (for example, 800 milliseconds, which can be set as needed), the corresponding event handling function will be triggered. The main task of this handling function is to create and display a canvas in the program page. At the same time, in order to provide visual feedback to the user, there can be some initial drawing operations in the canvas, such as drawing a semi - transparent mask layer covering the page, or displaying some prompt messages to inform the user that they are currently in a state where they can close the advertisement through gesture operations. In this way, users can clearly know that their operations have been recognized and can perform the next gesture drawing.

[0122] Step S2410: When it is recognized that the gesture stroke in the canvas belongs to the target gesture stroke, trigger an advertisement closing instruction.

[0123] The target gesture stroke can be pre - customized and drawn by the user in advance, and then stored for later use.

[0124] When the user performs gesture drawing on the canvas, the program will capture the touch - point coordinate information of the user on the canvas in real time. These coordinate information are continuously updated as the user's finger moves, forming a continuous trajectory data to form the gesture stroke to be recognized.

[0125] To achieve accurate gesture recognition, an image recognition algorithm can be used. Specifically, a gesture recognition model based on machine learning is used. This model is trained on a large number of gesture sample data to learn the characteristics and patterns of different gestures. When the gesture stroke data to be recognized is input, the model will compare and match it with the trained characteristics to determine whether the stroke drawn by the user belongs to the target gesture stroke.

[0126] If the gesture stroke to be recognized belongs to the target gesture stroke, trigger an advertisement closing instruction. The application will respond to this instruction and execute the previous advertisement closing process, including ending the advertisement playback thread, clearing the advertisement cache queue, and releasing the graphic rendering resources occupied by the advertisement position container and other operations, so as to achieve the closing of the advertisement.

[0127] In this embodiment, by expanding the canvas based on the long - press operation and recognizing the gesture strokes therein to achieve advertisement closing, it not only provides users with a novel and interesting interaction experience, but also can, to a certain extent, avoid the situation of users accidentally closing the advertisement, improving the accuracy and reliability of the advertisement closing operation.

[0128] In a further embodiment, after step S1200, which starts an advertisement playback thread and sequentially rotates the advertisements in the advertisement cache queue in the advertisement space container, the following steps are included:

[0129] Step S3200: Convert the advertisement playback duration and the advertisement playback quantity into user points according to the advertisement click-through rate and display them on the program page;

[0130] To encourage users to actively participate in advertisement interactions and / or advertisement viewing and to measure the comprehensive contribution of users to advertisements, calculate the user points by multiplying the sum value between the advertisement playback duration and the advertisement playback quantity by the advertisement click-through rate, and display it on the program page.

[0131] Step S3210: When the user points meet a preset condition, obtain an integral redemption pop-up window and display it on the program page;

[0132] When the user points exceed a preset threshold, display an integral redemption pop-up window on the program page for the user to redeem the redeemable items in the pop-up window. To reduce the unnecessary pop-up times of the pop-up window, the preset threshold can be set to the minimum points required for the redeemable items in the redemption pop-up window. Of course, those skilled in the art can also determine it according to their needs.

[0133] The integral redemption pop-up window is a page element used to display the items or services that users can redeem. In terms of design, the pop-up window can adopt an attractive visual style to highlight the value and attractiveness of the redeemable items; a list of redeemable items is displayed in the pop-up window, and each item is accompanied by corresponding information such as pictures, names, and required points.

[0134] Step S3220: Respond to the redemption event of the redeemed item in the integral redemption pop-up window, respond to the page advertisement control instruction associated with the redeemed item, and execute an advertisement closing instruction on the program page specified by the instruction.

[0135] After the user successfully redeems a redeemable item through the integral redemption pop-up window, trigger the redemption event of the redeemed item, and perform corresponding control on the advertisements on the program page according to the page advertisement control instruction associated with the redeemed item. Analyze the page advertisement control instruction included in this event. This instruction can include closing all advertisements on the current program page, or closing the advertisements on a specified program page, or closing all advertisements in all program pages within a certain period of time, etc. In this way, perform a closing operation on the advertisements in the corresponding program page.

[0136] In this embodiment, by introducing an integral reward and redemption mechanism, not only the user participation and satisfaction are improved, but also the enthusiasm of users can be mobilized.

[0137] Please refer to Figure 4, an advertisement control device provided to meet one of the purposes of the present application, is a functional embodiment of the advertisement control method of the present application. The device includes an event response module 1100, a thread startup module 1200, a queue configuration module 1300, and an instruction response module 1400. Among them, the event response module 1100 is used to respond to a page advertisement playback event triggered by an advertisement slot container on a program page, obtain an advertisement set, and add each advertisement in the advertisement set to an advertisement cache queue; the thread startup module 1200 is used to start an advertisement playback thread and sequentially play the advertisements in the advertisement cache queue in the advertisement slot container; the queue configuration module 1300 is used to capture operation behavior data of the program page by using an event listener, and when it is determined that the operation behavior data meets a preset trigger condition, configure the advertisement cache queue according to the target advertisement quantity corresponding to the trigger condition; the instruction response module 1400 is used to respond to an advertisement close instruction, end the advertisement playback thread, empty the advertisement cache queue, and release the graphic rendering resources occupied by the advertisement slot container.

[0138] In a further embodiment, the thread startup module 1200 includes: a first event response sub-module, which is used to respond to a program page scrolling event, and obtain the ratio between the visible area size and the original size of the advertisement slot container in the program page as the original ratio; a floating display sub-module, which is used to dynamically identify the least content area in the program page when the original ratio is lower than a preset visibility, and relocate the advertisement slot container to be floating and displayed above this area.

[0139] In a further embodiment, after the thread startup module 1200, it includes: a tendency determination sub-module, which is used to determine a negative emotion tendency degree according to the advertisement close times and the associated advertisement close speed; a pop-up window display sub-module, which is used to obtain and display a user research pop-up window on the program page when the negative emotion tendency degree meets a preset condition. The user research pop-up window includes an emotion calming background image and an advertisement type set, and the advertisement type set contains multiple advertisement type options; a second event response sub-module, which is used to respond to an event of selecting the option, determine each selected advertisement type, and use it to obtain a corresponding advertisement set according to each advertisement type when responding to the page advertisement playback event next time.

[0140] In a further embodiment, before the pop-up display sub-module, it includes: a text and image generation sub-module for generating an emotion-calming copy using a copywriting generation algorithm and generating a copy illustration according to the emotion-calming copy using an illustration generation algorithm; an image recognition sub-module for determining the design style, theme color scheme, and target caption area of the copy illustration using an image recognition algorithm; a style determination sub-module for determining the target text style in the caption style library according to the design style and theme color scheme; a background image construction sub-module for synthesizing the emotion-calming copy into the target caption area in the copy illustration according to the target text style to obtain an emotion-calming background image; and a pop-up encapsulation sub-module for obtaining typical advertisements corresponding to multiple advertisement types and constructing them as advertisement type options respectively, and jointly encapsulating a user research pop-up window with the emotion-calming background image.

[0141] In a further embodiment, after the thread start module 1200, it includes: a score determination sub-module for determining an advertisement exposure effectiveness score according to the advertisement click-through rate, advertisement playback duration, and advertisement playback quantity corresponding to the advertisement slot container; and an animation playback sub-module for constructing a positive feedback animation to play on the program page when the advertisement exposure effectiveness score meets a preset condition.

[0142] In a further embodiment, before the instruction response module 1400, it includes: a canvas display sub-module for responding to a long-press operation event triggered on the program page and displaying a canvas on the program page; and an instruction trigger sub-module for triggering an advertisement closing instruction when it recognizes that the gesture stroke in the canvas belongs to a target gesture stroke.

[0143] In a further embodiment, after the thread start module 1200, it includes: a page display sub-module for converting the advertisement playback duration and advertisement playback quantity into user points according to the advertisement click-through rate and displaying them on the program page; a pop-up display sub-module for obtaining an integral redemption pop-up window and displaying it on the program page when the user points meet a preset condition; and an instruction execution sub-module for responding to the redemption event of the redeemed item in the integral redemption pop-up window, responding to the page advertisement control instruction associated with the redeemed item, and executing an advertisement closing instruction on the program page specified by the instruction.

[0144] To solve the above technical problems, an embodiment of the present application also provides a computer device. As Figure 5As shown, it is a schematic diagram of the internal structure of a computer device. The computer device includes a processor, a computer-readable storage medium, a memory, and a network interface connected via a system bus. Among them, the computer-readable storage medium of the computer device stores an operating system, a database, and computer-readable instructions. The database can store a control information sequence. When the computer-readable instructions are executed by the processor, the processor can implement an advertisement control method. The processor of the computer device is used to provide computing and control capabilities to support the operation of the entire computer device. The memory of the computer device can store computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor can execute the advertisement control method of this application. The network interface of the computer device is used to connect and communicate with a terminal. Those skilled in the art can understand that Figure 5 The structure shown is only a block diagram of some structures related to the solution of this application and does not constitute a limitation on the computer device to which the solution of this application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have different component arrangements.

[0145] In this embodiment, the processor is used to execute Figure 4 the specific functions of each module and its sub-modules. The memory stores the program code and various types of data required to execute the above modules or sub-modules. The network interface is used for data transmission between the user terminal and the server. The memory in this embodiment stores the program code and data required to execute all modules / sub-modules in the advertisement control device of this application. The server can call the program code and data of the server to execute the functions of all sub-modules.

[0146] This application also provides a storage medium storing computer-readable instructions. When the computer-readable instructions are executed by one or more processors, one or more processors are caused to execute the steps of the advertisement control method of any embodiment of this application.

[0147] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments of this application can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above methods. Among them, the aforementioned storage medium can be a computer-readable storage medium such as a magnetic disk, an optical disk, a Read-Only Memory (ROM), or a Random Access Memory (RAM), etc.

[0148] In summary, this application can control the efficient and smooth rotation and complete shutdown of advertisements, and ensure the balance between a better user experience and advertising delivery benefits.

[0149] Those skilled in the art can understand that the steps, measures, and solutions in the various operations, methods, and processes discussed in this application can be alternated, changed, combined, or deleted. Further, the other steps, measures, and solutions in the various operations, methods, and processes discussed in this application can also be alternated, changed, rearranged, decomposed, combined, or deleted. Further, the steps, measures, and solutions in the prior art that are the same as those disclosed in the various operations, methods, and processes in this application can also be alternated, changed, rearranged, decomposed, combined, or deleted.

[0150] The above are only some implementation manners of this application. It should be noted that for those of ordinary skill in the art, without departing from the principle of this application, several improvements and refinements can be made, and these improvements and refinements should also be regarded as the protection scope of this application.

Claims

1. An advertisement control method, characterized in that, It includes the following steps: In response to a page advertisement playing event triggered by an advertisement space container on a program page, obtain an advertisement set, and add each advertisement in the advertisement set to an advertisement cache queue; Start an advertisement playing thread, and sequentially rotate the advertisements in the advertisement cache queue in the advertisement space container; Adopt an event listener to capture the operation behavior data of the program page. When it is determined that the operation behavior data meets a preset trigger condition, configure the advertisement cache queue according to the target advertisement quantity corresponding to the trigger condition; In response to an advertisement closing instruction, end the advertisement playing thread, empty the advertisement cache queue, and release the graphic rendering resources occupied by the advertisement space container.

2. The advertisement control method according to claim 1, wherein Start an advertisement playing thread, and sequentially rotate the advertisements in the advertisement cache queue in the advertisement space container, including the following steps: In response to a program page scrolling event, obtain the ratio between the visible area size and the original size of the advertisement space container in the program page as the original ratio; When the original ratio is lower than a preset visibility, dynamically identify the minimum content area in the program page, and relocate the advertisement space container to be suspended and displayed above this area.

3. The advertisement control method according to claim 1, wherein After ending the advertisement playing thread, emptying the advertisement cache queue, and releasing the graphic rendering resources occupied by the advertisement space container in response to an advertisement closing instruction, it includes the following steps: Determine the negative emotion tendency degree according to the advertisement closing times and the associated advertisement closing speed; When the negative emotion tendency degree meets a preset condition, obtain a user research pop-up window to be displayed on the program page. The user research pop-up window includes an emotion calming background image and an advertisement type set, and the advertisement type set contains multiple advertisement type options; In response to an event of selecting the option, determine each selected advertisement type, which is used to obtain a corresponding advertisement set according to each advertisement type when responding to the page advertisement playing event next time.

4. The advertisement control method according to claim 3, wherein Before obtaining the user research pop-up window to be displayed on the program page, it includes the following steps: Apply a copywriting generation algorithm to generate emotion calming copywriting, and apply an illustration generation algorithm to generate a copywriting illustration according to the emotion calming copywriting; Apply an image recognition algorithm to determine the design style, theme color matching, and target caption area of the copywriting illustration; Determine the target text style in the caption style library according to the design style and theme color matching; Synthesize the emotion calming copywriting into the target caption area in the copywriting illustration according to the target text style to obtain an emotion calming background image; Obtain typical advertisements corresponding to multiple advertisement types and respectively construct them into advertisement type options, and jointly encapsulate a user research pop-up window with the emotion calming background image.

5. The advertisement control method according to claim 1, characterized in that After starting an advertisement playing thread and sequentially rotating the advertisements in the advertisement cache queue in the advertisement space container, it includes the following steps: Determine an advertisement exposure effectiveness score according to the advertisement click-through rate, advertisement playing duration, and advertisement playing quantity corresponding to the advertisement space container; When the advertisement exposure effectiveness score meets a preset condition, construct a positive feedback animation to be played on the program page.

6. The advertisement control method according to claim 1, wherein, Before responding to an advertisement closing instruction, it includes the following steps: In response to a long-press operation event triggered by the program page, display a canvas on the program page; When it is recognized that the gesture stroke in the canvas belongs to the target gesture stroke, an advertisement closing instruction is triggered.

7. The advertisement control method according to claim 1, wherein After starting the advertisement playing thread and sequentially playing the advertisements in the advertisement cache queue in the advertisement space container, the following steps are included: Convert the advertisement playing duration and the advertisement playing quantity into user points according to the advertisement click-through rate and display them on the program page; When the user points meet the preset conditions, obtain an integral redemption pop-up window and display it on the program page; Respond to the redemption event of the redeemed item in the integral redemption pop-up window, respond to the page advertisement control instruction associated with the redeemed item, and execute the advertisement closing instruction on the program page specified by the instruction.

8. An advertisement control device, characterized in that, It includes: An event response module, which is used to respond to the page advertisement playing event triggered by the advertisement space container on the program page, obtain the advertisement set, and add each advertisement in the advertisement set to the advertisement cache queue; A thread start module, which is used to start the advertisement playing thread and sequentially play the advertisements in the advertisement cache queue in the advertisement space container; A queue configuration module, which is used to capture the operation behavior data of the program page by using an event listener. When it is determined that the operation behavior data meets the preset trigger condition, configure the advertisement cache queue according to the target advertisement quantity corresponding to the trigger condition; An instruction response module, which is used to respond to the advertisement closing instruction, end the advertisement playing thread, empty the advertisement cache queue, and release the graphic rendering resources occupied by the advertisement space container.

9. A computer device, comprising a central processing unit and a memory, characterized in that, The central processing unit is used to call and run the computer program stored in the memory to execute the steps of the method described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, It stores in the form of computer-readable instructions a computer program implemented according to the method described in any one of claims 1 to 7. When the computer program is called and run by the computer, it executes the steps included in the corresponding method.

Citation Information

Cited By

  • Real-time behavior-driven advertisement popup acceleration method and device

    CN121681962A