Advertisement preloading method and device
By preloading the ad landing page when displaying ads on the client, the problem of long ad loading time and low conversion rate is solved, and faster loading speed and higher conversion rate are achieved.
Patent Information
- Application Number
- CN202411062551.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-02
- Publication Date
- 2024-11-22
AI Technical Summary
The existing ad landing page is loaded for a long time after the user clicks, which leads to the user being inadequate and leaving, reducing the conversion rate of the ad.
When displaying advertisements on the client, if you do not receive a viewing command, determine whether to preload the ad landing page, and preload it in the background based on the URL address and preload configuration information. You can display it in the front desk when you are viewing the command.
The loading speed of ad landing pages is significantly improved through preloading technology, the conversion rate of ads is improved, and unnecessary bandwidth consumption is avoided.
Smart Images

Figure CN119003029A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of network technology, and in particular, to an advertisement preloading method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] An ad landing page is a specific web page that users are directed to after clicking on an online ad (such as a search engine ad, social media ad, banner ad, etc.). It is part of an advertising campaign that aims to provide a dedicated page to display the products, services or information mentioned in the ad and encourage users to take specific actions, such as purchase, registration, download or fill out a form, thereby achieving ad conversions.
[0003] However, currently the ad landing page is loaded after the user clicks it, and the loading time is long, which makes the user impatient to wait for the ad landing page to load and leave prematurely, resulting in a low conversion rate of the ad.
[0004] It should be noted that the above content is not necessarily prior art, nor is it intended to limit the scope of patent protection of this application. Summary of the invention
[0005] The embodiments of the present application provide an advertisement preloading method, apparatus, computer device, computer-readable storage medium, and computer program product to solve or alleviate one or more of the technical problems mentioned above.
[0006] An aspect of an embodiment of the present application provides an advertisement preloading method, the method comprising:
[0007] When the content information stream currently displayed by the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time, determining whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded;
[0008] When it is determined that preloading is required, obtaining a first URL address and first preloading configuration information related to the first advertisement landing page;
[0009] Preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information to obtain a preloading page of the first advertisement landing page;
[0010] When a second viewing instruction for the first advertisement is received, the first advertisement landing page is displayed in the foreground according to the preloaded page.
[0011] Optionally, preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes:
[0012] Preloading the first advertisement landing page using a preloading container in the background according to the first URL address and the first preloading configuration information, wherein the number of the preloading containers is a preset number;
[0013] The method further comprises:
[0014] When the content information stream newly displayed by the client includes a second advertisement and the first viewing instruction is not received within the preset time, determining whether the accumulated number of advertisements is greater than the preset number, and obtaining a second URL address and second preloading configuration information of a second advertisement landing page corresponding to the second advertisement;
[0015] When the accumulated number is greater than the preset number, the first preloaded preload container is used to preload the second advertisement landing page according to the second URL address and the second preload configuration information.
[0016] Optionally, preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes:
[0017] Preloading the first advertisement landing page using a preloading container in the background according to the first URL address and the first preloading configuration information, wherein the number of the preloading containers is a preset number;
[0018] The method further comprises:
[0019] When the content information stream newly displayed by the client includes a second advertisement and the first viewing instruction is not received within the preset time, determining whether the cumulative number of advertisements is greater than the preset number and whether the memory usage rate of the client is less than the preset usage rate, and obtaining a second URL address and second preloading configuration information of a second advertisement landing page corresponding to the second advertisement;
[0020] When the accumulated number is greater than the preset number and the memory usage of the client is less than the preset usage, a new preloading container is created, and the new preloading container is used to preload the second advertising landing page according to the second URL address and the second preloading configuration information.
[0021] Optionally, the first preloading configuration information includes traffic identification information of the client, and the traffic identification information is used to determine target page content preloaded by the first advertisement landing page on the client, and the target page content includes content of at least one screen of the first advertisement landing page;
[0022] The preloading of the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes:
[0023] The target page content is preloaded in the background according to the first URL address and the traffic identification information.
[0024] Optionally, the method further comprises:
[0025] The cache policy of the target static resource files in the first advertisement landing page is configured as strong cache, and the target static resource files include at least JavaScript files and CSS files.
[0026] Optionally, preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes:
[0027] Add a preload status key-value pair to the query string in the first URL address to obtain a modified first URL address;
[0028] The redirection is performed according to the modified first URL address, and during the redirection process, the first advertisement landing page is preloaded according to the first preloading configuration information.
[0029] Another aspect of an embodiment of the present application provides an advertisement preloading device, the device comprising:
[0030] A determination module, configured to determine whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded when the content information stream currently displayed on the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time;
[0031] An acquisition module, configured to acquire a first URL address and first preloading configuration information of the first advertisement landing page when it is determined that preloading is required;
[0032] A preloading module, configured to preload the first advertisement landing page in the background according to the first URL address and the first preloading configuration information, and obtain a preloading page of the first advertisement landing page;
[0033] A display module is used to display the first advertisement landing page in the foreground according to the preloaded page when a second viewing instruction for the first advertisement is received.
[0034] Another aspect of an embodiment of the present application provides a computer device, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein: the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method described above.
[0035] Another aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method described above is implemented.
[0036] Another aspect of an embodiment of the present application provides a computer program product, including a computer program, which implements the method described above when executed by a processor.
[0037] The above technical solution adopted in the embodiment of the present application may have the following advantages:
[0038] By determining whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded when the content information stream currently displayed on the client includes a first advertisement and no viewing instruction for the content information stream is received within a preset time, if it is determined that preloading is required, obtaining a first URL address and first preloading configuration information related to the first advertisement landing page, and preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information to obtain a preloading page for the first advertisement landing page; when a viewing instruction for the first advertisement is received, the first advertisement landing page is displayed in the foreground according to the preloading page, and the advertisement landing page can be preloaded in the background in advance, so that the loading of the advertisement landing page is quickly completed when the advertisement landing page needs to be loaded, thereby improving the loading speed of the advertisement landing page and thus improving the final conversion rate of the advertisement; at the same time, by starting the preloading of the advertisement landing page only when the first viewing instruction for the content information is not received within the preset time, unnecessary bandwidth consumption can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0040] Figure 1The following schematically shows an operating environment diagram of the advertisement preloading method according to the first embodiment of the present application;
[0041] Figure 2 The flowchart of the advertisement preloading method according to the first embodiment of the present application is schematically shown;
[0042] Figure 3 Schematically shows Figure 2 Flow chart of sub-steps of step S204;
[0043] Figure 4 The newly added process of the advertisement preloading method according to the first embodiment of the present application is schematically shown;
[0044] Figure 5 Another newly added process of the advertisement preloading method according to the first embodiment of the present application is schematically shown;
[0045] Figure 6 The following schematically shows an example of a process of an advertisement preloading method according to the first embodiment of the present application;
[0046] Figure 7 A block diagram schematically shows an advertisement preloading device according to the second embodiment of the present application; and
[0047] Figure 8 The hardware architecture diagram of the computer device according to the third embodiment of the present application is schematically shown. DETAILED DESCRIPTION
[0048] In order to make the purpose, technical solutions and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.
[0049] It should be noted that the descriptions involving "first", "second", etc. in the embodiments of the present application are only for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the technical solutions between the various embodiments can be combined with each other, but they must be based on the ability of ordinary technicians in the field to implement them. When the combination of technical solutions is contradictory or cannot be implemented, it should be deemed that such combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0050] In the description of the present application, it should be understood that the numerical labels before the steps do not indicate the order in which the steps are executed, but are only used to facilitate the description of the present application and to distinguish each step, and therefore should not be understood as a limitation on the present application.
[0051] First, the following terms are explained:
[0052] Ad landing page: also known as landing page or target page, is the web page that users are directed to after clicking on an ad. It is a key component of an advertising campaign and is usually used to display detailed information about a product or service and encourage users to take specific actions (such as purchase, registration, download, etc.).
[0053] Strong caching: Also known as forced caching, it is a common caching mechanism in Web development. It means that when a browser requests a resource, it will first check whether there is a copy of the resource in the local cache and whether the copy is valid (i.e. not expired). If the cache is valid, the browser will directly obtain the resource from the local cache without sending a request to the server.
[0054] HTML (HyperText Markup Language): is a standard markup language used to create web pages and online applications. It consists of various tags and attributes and is used to define the structure and content of a web page.
[0055] CSS (Cascading Style Sheets): is a language used for web page creation and network development. It is responsible for the visual performance and layout design of web pages. CSS defines how elements in a web page are rendered, including style information such as color, font, spacing, layout, etc.
[0056] JavaScript ("JS" for short): is a high-level, interpreted programming language. It is a lightweight, prototype-based language that is commonly used on web pages to implement client-side scripting.
[0057] Web page loading speed: refers to the time it takes for a web page to load and be fully presented to the user. It is an important indicator for measuring web page performance and directly affects user experience and website conversion rate. Factors that affect web page loading speed include server response time, network bandwidth and latency, resource file size, including the size of HTML, CSS, JavaScript files, images, videos and other resources, resource quantity, rendering blocking resources, browser cache, etc.
[0058] WebView: is a component that allows web content to be embedded in mobile applications. It provides an embedded browser environment, allowing users to browse and interact with web pages within the application without opening a separate browser application.
[0059] Client-side rendering: is a web development technique in which most or all of the content of a page is generated and rendered in the user's browser. This means that the server sends a basic HTML file, and then JavaScript dynamically fills in the content to create a complete user interface.
[0060] URL (Uniform Resource Locator): is an address used to identify a resource on the Internet. It is a standardized string that provides a way to access resources on the Internet, whether it is a web page, image, video, document or other type of file.
[0061] Static resources: refers to files that do not change frequently in web development. They are usually provided directly by the server and do not require dynamic processing on the server side. These resources include but are not limited to HTML, CSS, JavaScript, images, video and audio files, font files, icons and icon fonts, XML and JSON files.
[0062] Advertising Delivery Engine: It is a core component in the advertising technology ecosystem, responsible for effectively delivering advertising content to the target audience. Advertising delivery engines are usually integrated into advertising platforms or advertising servers, using complex algorithms and data processing capabilities to optimize the display and performance of advertisements.
[0063] App information flow: usually refers to the information display method within the application, which presents content to users in the form of a continuously scrolling list. This design pattern allows users to continuously scroll through new content items, thus providing a smooth and engaging user experience.
[0064] Secondly, in order to facilitate those skilled in the art to understand the technical solutions provided in the embodiments of the present application, the relevant technologies are described below:
[0065] In the related art, the advertisement landing page is loaded after the user clicks on it, and the loading time is relatively long, which makes the user impatient to wait for the loading of the advertisement landing page to be completed and leaves prematurely, resulting in the loss of users who watch the advertisement, thereby causing a low conversion rate of the advertisement.
[0066] To this end, the embodiment of the present application provides an advertisement preloading technical solution. In this technical solution, the loading of the advertisement landing page can be accelerated, thereby improving the conversion rate of the advertisement. See below for details.
[0067] Finally, for ease of understanding, an exemplary operating environment is provided below.
[0068] like Figure 1As shown, the environment diagram includes a service platform 2, a network 4, and a client 6, wherein:
[0069] The service platform 2 may be composed of a single or multiple computing devices. The multiple computing devices may include virtualized computing instances. Virtualized computing instances may include virtual machines, such as simulations of computer systems, operating systems, servers, etc. The computing device may load a virtual machine based on a virtual image and / or other data defining specific software (e.g., operating system, dedicated application, server) for simulation. As the demand for different types of processing services changes, different virtual machines may be loaded and / or terminated on one or more computing devices. A hypervisor may be implemented to manage the use of different virtual machines on the same computing device.
[0070] The service platform 2 may be configured to communicate with the client 6 or the like via a network 4. The network 4 includes various network devices, such as routers, switches, multiplexers, hubs, modems, bridges, repeaters, firewalls, proxy devices, and / or the like. The network 4 may include physical links, such as coaxial cable links, twisted pair cable links, optical fiber links, combinations thereof, and the like, or wireless links, such as cellular links, satellite links, Wi-Fi links, and the like.
[0071] The service platform 2 can provide storage, reading, writing, querying, deleting and other services, such as providing video viewing services for clients.
[0072] Client 6 can be a Windows, Android TM ) or iOS operating systems, such as smartphones, tablet devices, laptop computers, virtual reality devices, gaming devices, set-top boxes, in-vehicle terminals, and smart TVs. Based on the above operating systems, various applications, such as video viewing applications, can be run.
[0073] The client 6 may provide / configure a user access page for manipulating the service platform 2 or uploading objects, etc.
[0074] It should be noted that the above devices are exemplary, and the number and type of devices are adjustable in different scenarios or according to different needs.
[0075] The following describes the technical solution of the present application through multiple embodiments, taking the client as the execution subject. It should be noted that these embodiments can be implemented in a variety of different forms and should not be interpreted as being limited to the embodiments described here.
[0076] Embodiment 1
[0077] Figure 2 The flowchart of the advertisement preloading method according to the first embodiment of the present application is schematically shown.
[0078] like Figure 2 As shown, the advertisement preloading method may include steps S200 to S206, wherein:
[0079] Step S200, when the content information stream currently displayed on the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time, it is determined whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded.
[0080] Step S202: When it is determined that preloading is required, a first URL address and first preloading configuration information of a first advertisement landing page are obtained.
[0081] Step S204: preload the first advertisement landing page in the background according to the first URL address and the first preloading configuration information to obtain a preload page of the first advertisement landing page.
[0082] Step S206: When a second viewing instruction for the first advertisement is received, the first advertisement landing page is displayed in the foreground according to the preloaded page.
[0083] The advertisement preloading method provided in the present embodiment determines whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded when the content information stream currently displayed on the client includes the first advertisement and no viewing instruction for the content information stream is received within a preset time. When it is determined that preloading is required, a first URL address and first preloading configuration information of the first advertisement landing page are obtained, and the first advertisement landing page is preloaded in the background according to the first URL address and the first preloading configuration information to obtain a preloading page of the first advertisement landing page; when a viewing instruction for the first advertisement is received, the first advertisement landing page is displayed in the foreground according to the preloading page, and the advertisement landing page can be preloaded in the background in advance, so that the loading of the advertisement landing page is completed quickly when the advertisement landing page needs to be loaded, thereby improving the loading speed of the advertisement landing page and thus improving the final conversion rate of the advertisement; at the same time, by starting the preloading of the advertisement landing page only when the first viewing instruction for the content information is not received within the preset time, unnecessary bandwidth consumption can be avoided.
[0084] The following combination Figure 2 , each step in steps S200 to S206 and other optional steps are described in detail.
[0085] Step S200 , when the content information stream currently displayed on the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time, it is determined whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded.
[0086] The content information stream currently displayed by the client refers to the content of the content information stream currently displayed on the client screen. The display form of the client content information stream can be an up-down sliding form or a left-right sliding form, and the first viewing instruction can be an up-down sliding instruction or a left-right sliding instruction, so that the client user can slide the content information stream up-down or left-right to view the content of interest. The display form of the content information stream can also be a page turning form, such as an up-down page turning form or a left-right page turning form, and accordingly, the first viewing instruction can be an instruction corresponding to page turning, such as a click, long press, or slide instruction.
[0087] The preset time can be set according to actual needs, such as 1 second, 1.5 seconds or 2 seconds.
[0088] The advertising delivery engine can send the URL address and preloading configuration information of the advertising landing page to the client in advance, and the client can determine whether the first advertising landing page needs to be preloaded through the preloading configuration information. Optionally, the relevant information of preloading can also be included in the configuration file of the client or a policy service of the service platform. These configuration files or policy services can be used to guide which advertising landing pages need to be preloaded. When the client receives the URL address of the advertising landing page, the client can determine whether the advertising landing page needs to be preloaded by querying these configuration files or policy services. In particular, these configuration files or policy services can be configured to preload all advertising landing pages, so that if the client does not receive the first viewing instruction within the preset time, it can be determined that the first advertising landing page needs to be preloaded; or, these configuration files or policy services can be configured to preload within certain time periods, so that if the client does not receive the first viewing instruction within the preset time, it only needs to determine whether the current time belongs to the time period to determine whether the first advertising landing page needs to be preloaded. In addition, the preloaded information can also be included in the first advertisement or the relevant information of the first advertisement, so that the client determines whether the first advertising landing page needs to be preloaded according to the first advertisement or the relevant information of the first advertisement.
[0089] Step S202 , when it is determined that preloading is required, obtain the first URL address and first preloading configuration information of the first advertisement landing page.
[0090] The client may obtain the first URL address and the first preloading configuration information of the first advertisement landing page from the advertisement delivery engine or the service platform. In the case where the advertisement delivery engine sends the URL address and the preloading configuration information of the advertisement landing page to the client in advance, the client may store the URL address and the preloading configuration information of the advertisement landing page locally on the client, and obtain the URL address and the preloading configuration information of the first advertisement landing page from the client locally when it is determined that the first advertisement landing page needs to be preloaded.
[0091] The preloading configuration information may include, but is not limited to, the path, type, preloading priority, resource cache mechanism (such as cache time, location, cache invalidation policy, etc.), network condition adaptation, device performance adaptation, security settings, dynamic configuration, etc. of the corresponding resource file, among which, network condition adaptation is used to adjust the preloading policy according to network conditions; device performance adaptation is used to adjust the preloading policy according to device performance; dynamic configuration is used to dynamically adjust the preloading policy according to changes in the service platform.
[0092] In an optional embodiment, the advertisement preloading method may further include: configuring the cache policy of the target static resource file of the first advertisement landing page to strong cache, and the target static resource file includes at least a JavaScript file and a CSS file.
[0093] The cache policy configuration of the target static resource file can be included in the preload configuration information, or in the client's configuration file or a policy service of the service platform. When the cache policy of the target static resource file of the first advertising landing page is configured as strong cache, when the target static resource file of the first advertising landing page needs to be read, the target static resource file can be directly obtained from the local cache without sending a request to the service platform, which can greatly reduce network transmission volume and improve page loading speed.
[0094] Step S204 , preload the first advertisement landing page in the background according to the first URL address and the first preloading configuration information, and obtain a preloading page of the first advertisement landing page.
[0095] When preloading the first advertisement landing page in the background, the first advertisement landing page may be preloaded partially or in full.
[0096] In an optional embodiment, the first preloading configuration information includes traffic identification information of the client, and the traffic identification information is used to determine the target page content preloaded on the client for the first advertising landing page, and the target page content includes the content of at least one screen of the first advertising landing page. Step S204 may further include: preloading the target page content in the background according to the first URL address and the traffic identification information.
[0097] Specifically, the service platform can identify the traffic corresponding to all clients and determine the target page content corresponding to the traffic identification information. The specific traffic identification information and the corresponding target page content can be set according to actual needs and are not limited here.
[0098] For example, 20% of the traffic is marked with A traffic, 30% of the traffic is marked with B traffic, and 50% of the traffic is marked with C traffic, where the target page content corresponding to the A traffic mark is the top screen content of the first advertising landing page, the target page corresponding to the B traffic mark is the content of the second to third screens of the first advertising landing page, and the target page corresponding to the C traffic mark is the content of the fourth to last screens of the first advertising landing page.
[0099] In this optional embodiment, by preloading the first advertising landing page according to the first URL address and the traffic identification information used to determine the target page content to be preloaded for the first advertising landing page, an AB experiment can be conducted on the first advertising landing page as needed, so that the advertising effects of different preloaded pages can be counted, thereby facilitating the optimization of the advertising landing page according to the statistical results.
[0100] In an optional embodiment, if Figure 3 As shown, step S204 may further include steps S500 to S502:
[0101] Step S500: adding a preload status key-value pair to the query string in the first URL address to obtain a modified first URL address.
[0102] Step S502: redirect according to the modified first URL address, and preload the first advertisement landing page according to the first preloading configuration information during the redirection process.
[0103] Specifically, "preload=1" can be added to the first URL address to indicate a preloading status key-value pair to obtain a modified first URL address, and then jump to an HTML page (such as an H5 page) based on the modified first URL address; during the jump process, the first preloading configuration information corresponding to the first URL address is obtained through the added preloading status key-value pair, and then the relevant page content of the first advertising landing page is rendered, relevant static resources are loaded, CSS style sheets and Javascript scripts are cached, etc. according to the first preloading configuration information to complete the preloading of the first advertising landing page.
[0104] Since the ad delivery engine will count the opening of the ad landing page, and preloading does not mean actual opening, the reporting of the page can be prohibited during the preloading process, which will not affect the opening statistics of the ad landing page.
[0105] In this optional embodiment, by adding a preloading status key-value pair to the query string in the first URL address, a modified first URL address is obtained, a jump is performed according to the modified first URL address, and during the jump, the first advertising landing page is preloaded according to the first preloading configuration information, thereby effectively realizing the preloading of the advertising landing page in the background.
[0106] Step S206 , when receiving the second viewing instruction for the first advertisement, the first advertisement landing page is displayed in the foreground according to the preloaded page.
[0107] Specifically, when receiving the second viewing instruction for the first advertisement, the client pushes the preloaded page in the background to the foreground, thereby displaying the first advertisement landing page in the foreground. Before pushing to the foreground, the corresponding preload mark can be removed and the page can be refreshed. If the HTML page can read the CSS and JavaScript cache resources, the cache resources are directly used to render the page. If it cannot read, the relevant static resources are requested from the service platform again to render all the contents of the page.
[0108] In an optional embodiment, in step S204, preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes: preloading the first advertisement landing page in the background using a preloading container according to the first URL address and the first preloading configuration information, wherein the number of preloading containers is a preset number, such as Figure 4 As shown, the advertisement preloading method may further include steps S300 to S302:
[0109] Step S300, when the content information flow newly displayed by the client includes a second advertisement and the first viewing instruction is not received within a preset time, determine whether the cumulative number of advertisements is greater than a preset number, and obtain a second URL address of a second advertisement landing page corresponding to the second advertisement and second preloading configuration information.
[0110] Step S302: When the accumulated number is greater than the preset number, the first preloaded preload container is used to preload the second advertisement landing page according to the second URL address and the second preload configuration information.
[0111] The preloaded container may be a webview container. The preset number may be set according to the actual situation of the content information flow. For example, if the content information flow is a column of content that slides up and down, the preset number may be 1; if the content information flow is two columns of content that slide up and down, the preset number may be 2.
[0112] When the cumulative number of advertisements is less than or equal to the preset number, the remaining preloading containers can be used to preload the second advertisement; when the cumulative number of advertisements is greater than the preset number, the earliest preloading container is used for preloading, and then the second earliest preloading container is used for preloading, and so on.
[0113] For example, if the preset number is 2, the number of first advertisements is 2, and they are preloaded successively by preloading container No. 1 and preloading container No. 2. When there is a new second advertisement, the cumulative number of advertisements is greater than 2, then the earliest preloaded preloading container No. 1 is used to preload the second advertisement landing page.
[0114] In this optional embodiment, by using the earliest preloaded preload container for preloading when the second advertising landing page needs to be preloaded and the cumulative number of advertisements is greater than the number of preload containers, the number of preload containers can be kept within a certain value, thereby avoiding preloading from occupying too much memory on the client and ensuring the performance of the client.
[0115] In an optional embodiment, in step S204, preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes: preloading the first advertisement landing page in the background using a preloading container according to the first URL address and the first preloading configuration information, wherein the number of preloading containers is a preset number, such as Figure 5 As shown, the advertisement preloading method may further include steps S400 to S402:
[0116] Step S400, when the content information flow newly displayed by the client includes a second advertisement and the first viewing instruction is not received within a preset time, determine whether the cumulative number of advertisements is greater than a preset number and whether the memory usage of the client is less than a preset usage, and obtain a second URL address of a second advertisement landing page corresponding to the second advertisement and second preloading configuration information.
[0117] Step S402, when the accumulated number is greater than the preset number and the memory usage of the client is less than the preset usage, a new preloading container is created, and the new preloading container is used to preload the second advertising landing page according to the second URL address and the second preloading configuration information.
[0118] For example, if the preset number is 2, the number of first advertisements is 2, and they are preloaded successively by preloading container No. 1 and preloading container No. 2. When there is a new second advertisement, the cumulative number of advertisements is greater than 2. If the memory usage of the client is less than the preset usage, a new preloading container No. 3 is created, and preloading container No. 3 is used to preload the second advertisement landing page.
[0119] In this optional embodiment, when the second advertising landing page needs to be preloaded, the cumulative number of advertisements is greater than the number of preload containers, and the memory usage of the client is less than the preset usage, a new preload container is created to load the second advertising landing page. The number of preload containers can be increased according to the actual situation of the client, so that more advertising landing pages can be preloaded, thereby improving the preloading capacity and preloading flexibility.
[0120] In order to make this application easier to understand, the following Figure 6 Provide an example application. Figure 6 As shown, it can generally include the following:
[0121] 1. The advertising platform configures advertising information, and the advertising engine sends the advertising data to the client;
[0122] 2. When displaying the content information stream, the client determines whether the advertisement in the content information stream contains a preload mark. If so, proceed to step 4; otherwise, proceed to step 3;
[0123] 3. Do not enable preloading;
[0124] 4. Determine whether the user slides the page. If so, proceed to step 5; otherwise, proceed to step 3.
[0125] 5. The client opens the webview to jump to the URL address of the advertisement landing page, adds a query string identifier to the URL address of the advertisement landing page, and sends the preload configuration information;
[0126] 6. The ad landing page renders the corresponding content and caches CSS and Javascript static resources according to the sent data;
[0127] 7. When the user clicks on the ad card, the client removes the preload mark on the URL address of the ad landing page, automatically refreshes the page, and launches the webview to display it to the user;
[0128] 8. Render all content on the ad landing page;
[0129] 9. Close the page.
[0130] Embodiment 2
[0131] Figure 7 The block diagram of the advertisement preloading device 600 according to the second embodiment of the present application is schematically shown. The device 600 can be divided into one or more program modules, one or more program modules are stored in a storage medium, and are executed by one or more processors to complete the embodiment of the present application. The program module referred to in the embodiment of the present application refers to a series of computer program instruction segments that can complete specific functions. The following description will specifically introduce the functions of each program module in this embodiment. Figure 7 As shown, the apparatus 600 may include: a determination module 610, an acquisition module 620, a preloading module 630 and a display module 640, wherein:
[0132] The determination module 610 is used to determine whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded when the content information stream currently displayed on the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time;
[0133] An acquisition module 620 is used to acquire a first URL address and first preloading configuration information of the first advertisement landing page when it is determined that preloading is required;
[0134] A preloading module 630 is used to preload the first advertisement landing page in the background according to the first URL address and the first preloading configuration information to obtain a preload page of the first advertisement landing page;
[0135] The display module 640 is used to display the first advertisement landing page in the foreground according to the preloaded page when receiving the second viewing instruction for the first advertisement.
[0136] In an optional embodiment, the preloading module 630 is further configured to:
[0137] Preloading the first advertisement landing page using a preloading container in the background according to the first URL address and the first preloading configuration information, wherein the number of the preloading containers is a preset number;
[0138] The device 600 is also used for:
[0139] When the content information stream newly displayed by the client includes a second advertisement and the first viewing instruction is not received within the preset time, determining whether the accumulated number of advertisements is greater than the preset number, and obtaining a second URL address and second preloading configuration information of a second advertisement landing page corresponding to the second advertisement;
[0140] When the accumulated number is greater than the preset number, the first preloaded preload container is used to preload the second advertisement landing page according to the second URL address and the second preload configuration information.
[0141] In an optional embodiment, the preloading module 630 is further configured to:
[0142] Preloading the first advertisement landing page using a preloading container in the background according to the first URL address and the first preloading configuration information, wherein the number of the preloading containers is a preset number;
[0143] The device 600 is also used for:
[0144] When the content information stream newly displayed by the client includes a second advertisement and the first viewing instruction is not received within the preset time, determining whether the cumulative number of advertisements is greater than the preset number and whether the memory usage rate of the client is less than the preset usage rate, and obtaining a second URL address and second preloading configuration information of a second advertisement landing page corresponding to the second advertisement;
[0145] When the accumulated number is greater than the preset number and the memory usage of the client is less than the preset usage, a new preloading container is created, and the new preloading container is used to preload the second advertising landing page according to the second URL address and the second preloading configuration information.
[0146] In an optional embodiment, the first preloading configuration information includes traffic identification information of the client, and the traffic identification information is used to determine the target page content preloaded by the first advertisement landing page on the client, and the target page content includes the content of at least one screen of the first advertisement landing page;
[0147] The preloading module 630 is also used for:
[0148] The target page content is preloaded in the background according to the first URL address and the traffic identification information.
[0149] In an optional embodiment, the device 600 is further used for:
[0150] The cache policy of the target static resource files in the first advertisement landing page is configured as strong cache, and the target static resource files include at least JavaScript files and CSS files.
[0151] In an optional embodiment, the preloading module 630 is further configured to:
[0152] Add a preload status key-value pair to the query string in the first URL address to obtain a modified first URL address;
[0153] The redirection is performed according to the modified first URL address, and during the redirection process, the first advertisement landing page is preloaded according to the first preloading configuration information.
[0154] Embodiment 3
[0155] Figure 8The schematic diagram of the hardware architecture of a computer device 10000 suitable for implementing the advertisement preloading method according to the third embodiment of the present application is shown schematically. In some embodiments, the computer device 10000 may be a terminal device such as a smart phone, a wearable device, a tablet computer, a personal computer, a vehicle terminal, a game console, a virtual device, a workbench, a digital assistant, a set-top box, a robot, etc. In other embodiments, the computer device 10000 may be a rack server, a blade server, a tower server, or a cabinet server (including an independent server, or a server cluster composed of multiple servers), etc. Figure 8 As shown, the computer device 10000 includes but is not limited to: a memory 10010, a processor 10020, and a network interface 10030 that can communicate with each other through a system bus. Among them:
[0156] The memory 10010 includes at least one type of computer-readable storage medium, and the readable storage medium includes a flash memory, a hard disk, a multimedia card, a card-type memory (such as an SD or DX memory), a random access memory (RAM), a static random access memory (SRAM), a read-only memory (ROM), an electrically erasable programmable read-only memory (EEPROM), a programmable read-only memory (PROM), a magnetic memory, a magnetic disk, an optical disk, etc. In some embodiments, the memory 10010 may be an internal storage module of the computer device 10000, such as a hard disk or a memory of the computer device 10000. In other embodiments, the memory 10010 may also be an external storage device of the computer device 10000, such as a plug-in hard disk equipped on the computer device 10000, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 10010 may also include both the internal storage module of the computer device 10000 and its external storage device. In this embodiment, the memory 10010 is generally used to store the operating system and various application software installed in the computer device 10000, such as the program code of the advertisement preloading method, etc. In addition, the memory 10010 can also be used to temporarily store various data that have been output or will be output.
[0157] In some embodiments, the processor 10020 may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other chips. The processor 10020 is generally used to control the overall operation of the computer device 10000, such as performing control and processing related to data interaction or communication with the computer device 10000. In this embodiment, the processor 10020 is used to run the program code stored in the memory 10010 or process data.
[0158] The network interface 10030 may include a wireless network interface or a wired network interface, and the network interface 10030 is generally used to establish a communication link between the computer device 10000 and other computer devices. For example, the network interface 10030 is used to connect the computer device 10000 to an external terminal through a network, and to establish a data transmission channel and a communication link between the computer device 10000 and the external terminal. The network may be a wireless or wired network such as an intranet, the Internet, the Global System of Mobile communication (GSM), Wideband Code Division Multiple Access (WCDMA), 4G network, 5G network, Bluetooth, Wi-Fi, etc.
[0159] It should be pointed out that Figure 8 Only a computer device having components 10010 - 10030 is shown, but it should be understood that implementing all of the components shown is not a requirement, and more or fewer components may alternatively be implemented.
[0160] In this embodiment, the advertisement preloading method stored in the memory 10010 may also be divided into one or more program modules and executed by one or more processors (such as the processor 10020) to complete the embodiment of the present application.
[0161] Embodiment 4
[0162] The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, wherein when the computer program is executed by a processor, the steps of the advertisement preloading method in the embodiment are implemented.
[0163] In this embodiment, the computer-readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEP ROM), programmable read-only memory (PROM), magnetic memory, disk, optical disk, etc. In some embodiments, the computer-readable storage medium can be an internal storage unit of a computer device, such as a hard disk or memory of the computer device. In other embodiments, the computer-readable storage medium can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the computer-readable storage medium can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the computer-readable storage medium is generally used to store an operating system and various application software installed on the computer device, such as the program code of the advertisement preloading method in the embodiment. In addition, the computer-readable storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0164] Embodiment 5
[0165] An embodiment of the present application also provides a computer program product, including a computer program, which implements the method in the above embodiment when executed by a processor.
[0166] Obviously, those skilled in the art should understand that the modules or steps of the above-mentioned embodiments of the present application can be implemented by general-purpose computer devices, they can be concentrated on a single computer device, or distributed on a network composed of multiple computer devices, optionally, they can be implemented by executable program codes of computer devices, so that they can be stored in a storage device and executed by the computer device, and in some cases, the steps shown or described can be executed in a different order from that herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. In this way, the embodiments of the present application are not limited to any specific combination of hardware and software.
[0167] It should be noted that the above are only preferred embodiments of the present application, and the patent protection scope of the present application is not limited thereto. Any equivalent structure or equivalent process transformation made using the contents of the specification and drawings of the present application, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. An advertisement preloading method, characterized in that: The method comprises: When the content information stream currently displayed by the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time, determining whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded; When it is determined that preloading is required, obtaining a first URL address and first preloading configuration information related to the first advertisement landing page; Preloading the first advertisement landing page in the background according to the first URL address and the first preloading configuration information to obtain a preloading page of the first advertisement landing page; When a second viewing instruction for the first advertisement is received, the first advertisement landing page is displayed in the foreground according to the preloaded page.
2. The method according to claim 1, characterized in that The preloading of the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes: Preloading the first advertisement landing page using a preloading container in the background according to the first URL address and the first preloading configuration information, wherein the number of the preloading containers is a preset number; The method further comprises: When the content information stream newly displayed by the client includes a second advertisement and the first viewing instruction is not received within the preset time, determining whether the accumulated number of advertisements is greater than the preset number, and obtaining a second URL address and second preloading configuration information of a second advertisement landing page corresponding to the second advertisement; When the accumulated number is greater than the preset number, the first preloaded preload container is used to preload the second advertisement landing page according to the second URL address and the second preloading configuration information.
3. The method according to claim 1, characterized in that The preloading of the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes: Preloading the first advertisement landing page using a preloading container in the background according to the first URL address and the first preloading configuration information, wherein the number of the preloading containers is a preset number; The method further comprises: When the content information stream newly displayed by the client includes a second advertisement and the first viewing instruction is not received within the preset time, determining whether the cumulative number of advertisements is greater than the preset number and whether the memory usage rate of the client is less than the preset usage rate, and obtaining a second URL address and second preloading configuration information of a second advertisement landing page corresponding to the second advertisement; When the accumulated number is greater than the preset number and the memory usage of the client is less than the preset usage, a new preloading container is created, and the new preloading container is used to preload the second advertising landing page according to the second URL address and the second preloading configuration information.
4. The method according to claim 1, characterized in that: The first preloading configuration information includes flow identification information of the client, and the flow identification information is used to determine target page content preloaded on the client by the first advertisement landing page, and the target page content includes content of at least one screen of the first advertisement landing page; The preloading of the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes: The target page content is preloaded in the background according to the first URL address and the traffic identification information.
5. The method according to claim 1, characterized in that The method further comprises: The cache policy of the target static resource files in the first advertisement landing page is configured as strong cache, and the target static resource files include at least JavaScript files and CSS files.
6. The method according to any one of claims 1 to 5, characterized in that: The preloading of the first advertisement landing page in the background according to the first URL address and the first preloading configuration information includes: Add a preload status key-value pair to the query string in the first URL address to obtain a modified first URL address; The redirection is performed according to the modified first URL address, and during the redirection process, the first advertisement landing page is preloaded according to the first preloading configuration information.
7. An advertisement preloading device, characterized in that: The device comprises: A determination module, configured to determine whether a first advertisement landing page corresponding to the first advertisement needs to be preloaded when the content information stream currently displayed on the client includes a first advertisement and a first viewing instruction for the content information stream is not received within a preset time; An acquisition module, configured to acquire a first URL address and first preloading configuration information of the first advertisement landing page when it is determined that preloading is required; A preloading module, configured to preload the first advertisement landing page in the background according to the first URL address and the first preloading configuration information, and obtain a preloading page of the first advertisement landing page; A display module is used to display the first advertisement landing page in the foreground according to the preloaded page when a second viewing instruction for the first advertisement is received.
8. A computer device, characterized in that: include: at least one processor; and a memory communicatively connected to the at least one processor; wherein: The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and when the computer instructions are executed by a processor, the method according to any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
