Advertisement resource access method, device, readable storage medium and terminal device
By accessing and rendering advertising resources through functional modules in the browser that are independent of the browser engine, it solves the problem of high supervision and optimization costs when accessing advertising resources on web pages, achieves precise advertising and efficient conversion, and prevents cheating. , and improve the fluency of web pages.
Patent Information
- Application Number
- CN201910537556.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-06-20
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2039-06-20
AI Technical Summary
In the existing technology, when advertising resources are accessed through web pages, supervision and optimization costs are high. Advertising resources and their processing logic are easily tampered with or exploited by web developers, leading to increased difficulty in cheating and supervision.
Use a functional module in the browser that is independent of the browser engine to be responsible for the access and rendering of advertising resources. By obtaining advertising tags, obtaining feature information, natively rendering advertising content and combining it with web pages to render, it avoids exposure of advertising resources and processing logic. To web developers, and collect feature information through operating system interfaces to achieve precise advertising.
It reduces advertising supervision and optimization costs, improves advertising accuracy and conversion efficiency, prevents cheating, and improves the smoothness of web page switching.
Smart Images

Figure CN112116374B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an advertising resource access method, device, readable storage medium and terminal equipment. Background Art
[0002] At present, when it is necessary to access advertising resources through web pages, the advertising function package (JSSDK) embedded in the web pages is generally used to access advertising resources. JSSDK collects characteristic information such as the characteristics of the terminal device and the operating environment through the application program interface (Application Program Interface, API) provided by the browser, and then requests advertising resources from the advertising server based on the collected information. After the advertising server returns the advertising resources that match the characteristic information, JSSDK has two processing methods: one is to directly send the advertising resources to the traffic main page (that is, the web page used to deliver advertisements) data, and the browser engine renders the advertising resources according to the definition of the traffic main page. After the advertisement is displayed, the related events such as user interaction and background interaction related to the advertisement are all implemented by the web page; the other method is that the JSSDK integrates the function module developed by the web developer internally, and the function module directly renders the advertising resources and processes the related events such as user interaction and background interaction related to the advertisement.
[0003] However, no matter which access method is used, JSSDK must be open to web developers and embedded in web pages. In this way, advertising resources and their processing logic will be completely exposed to web developers, making them very easy to be studied and exploited by web developers. For example, they can arbitrarily tamper with advertising content, forge exposure and click-through rates to cheat, and perform middleman attacks, which increases the workload of supervision and leads to very high costs for advertising supervision and optimization. Summary of the invention
[0004] In view of this, embodiments of the present invention provide an advertising resource access method, apparatus, readable storage medium and terminal device to overcome the problem of high supervision and optimization costs when accessing advertising resources through web pages.
[0005] To achieve the above objectives, the embodiments of the present invention provide the following technical solutions:
[0006] An advertising resource access method, applied to a browser, comprising:
[0007] Acquire at least one advertisement tag obtained by parsing web page data received by the browser by a browser engine;
[0008] Acquire advertising resources based on the advertising attributes set on the advertising tag;
[0009] Perform native rendering on the advertising resources to obtain advertising content;
[0010] The advertisement content is sent to the browser engine, so that the browser engine combines and renders the advertisement content with a web page rendered by the browser engine to obtain a combined page for display.
[0011] The above method, preferably, before sending the advertisement content to the browser engine, further comprises:
[0012] Drawing the advertisement content into a pre-created canvas;
[0013] The sending the advertisement content to the browser engine comprises:
[0014] The canvas on which the advertisement content is drawn is sent to the browser engine, so that the browser engine combines the canvas on which the advertisement content is drawn with the web page for rendering.
[0015] The above method preferably further comprises:
[0016] Collect characteristic information through the interface provided by the operating system, wherein the characteristic information includes characteristics of the terminal device and operating environment information;
[0017] The acquiring of advertisement resources based on the advertisement attributes set on the advertisement tag includes:
[0018] Sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
[0019] Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
[0020] The above method preferably further comprises:
[0021] If a click operation on a close button of the advertisement content is detected, hiding the advertisement content;
[0022] If a click operation on the advertisement content is detected, an interface provided by the browser engine is called to open a detail page corresponding to the advertisement content.
[0023] The above method preferably further comprises:
[0024] Uploading the description information and exposure identifier of the advertising resource to a statistics server;
[0025] If a click operation on the advertisement content is detected and a detail page corresponding to the advertisement content is opened, the description information and click mark of the advertisement resource are uploaded to the statistics server.
[0026] An advertising resource access device, using a browser, comprising:
[0027] An advertisement tag acquisition module, used to acquire at least one advertisement tag obtained by parsing the web page data received by the browser by the browser engine;
[0028] An advertisement resource acquisition module, used to acquire advertisement resources based on advertisement attributes set on the advertisement tag;
[0029] A native rendering module, used for performing native rendering on the advertising resources to obtain advertising content;
[0030] The sending module is used to send the advertisement content to the browser engine, so that the browser engine combines and renders the advertisement content with the web page rendered by the browser engine to obtain a combined page for display.
[0031] The above device is preferably characterized in that
[0032] The native rendering module is also used to draw the advertisement content into a pre-created canvas;
[0033] The sending module is specifically used to send the canvas on which the advertisement content is drawn to the browser engine, so that the browser engine combines the canvas on which the advertisement content is drawn with the web page for rendering.
[0034] The above device preferably further comprises:
[0035] A collection module, used to collect feature information through an interface provided by the operating system, wherein the feature information includes characteristics of the terminal device and operating environment information;
[0036] The advertising resource acquisition module is specifically used for:
[0037] Sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
[0038] Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
[0039] The above device preferably further comprises:
[0040] The interactive module is used to: if a click operation on the close button of the advertisement content is detected, hide the advertisement content; if a click operation on the advertisement content is detected, call the interface provided by the browser engine to open the detail page corresponding to the advertisement content.
[0041] The above device preferably further comprises:
[0042] The event reporting module is used to: upload the description information and exposure identification of the advertising resources to the statistical server; if a click operation on the advertising content is detected and the detail page corresponding to the advertising content is opened, upload the description information and click identification of the advertising resources to the statistical server.
[0043] A terminal device comprises a memory and a processor;
[0044] The memory is used to store programs;
[0045] The processor is used to execute the program to implement each step of the advertising resource access method as described in any one of the above.
[0046] A readable storage medium having a computer program stored thereon, characterized in that when the computer program is executed by a processor, each step of the advertising resource access method as described in any one of the above is implemented.
[0047] The advertising resource access method, device, readable storage medium and terminal device provided by the embodiment of the present invention are no longer responsible for the access of advertising resources by JSSDK, but by the functional module in the browser that is independent of the browser engine. The developer of the web page only needs to insert the advertising tag corresponding to the advertising resource to be accessed in the web page. When the browser loads the web page, the browser engine parses the advertising tag from the web page, and the above-mentioned functional module obtains the advertising attribute. After obtaining the advertising resource based on the advertising attribute, the advertising resource is natively rendered to obtain the advertising content and sent to the browser engine. The browser engine combines the advertising content with the web page for rendering to obtain a combined page for display. The advertising resource access solution provided by this application extracts the advertising resources from the web page, decouples and separates the processing logic of the advertising resources from the browser engine, thereby avoiding exposing the advertising resources and the processing logic to the developer of the web page, and overcoming the problem of high supervision and optimization costs when accessing advertising resources through the web page. In addition, the advertising resources are rendered in a native rendering manner to improve the flow when the web page is switched. BRIEF DESCRIPTION OF THE DRAWINGS
[0048] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0049] Figure 1 A schematic diagram of the overall architecture of the advertising resource access method provided by an embodiment of the present invention;
[0050] Figure 2 An example diagram of the effect of splicing advertisement content and web pages provided by an embodiment of the present invention;
[0051] Figure 3 An example diagram of floating advertisement content on a web page provided by an embodiment of the present invention;
[0052] Figure 4 A flowchart of an implementation method of an advertising resource access method provided in an embodiment of the present invention;
[0053] Figure 5 A schematic diagram of the structure of an advertisement resource access device provided by an embodiment of the present invention;
[0054] Figure 6 A hardware structure block diagram of a terminal device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] The advertising resource access method provided in the embodiment of the present invention is applied to a terminal device, in which a browser can be installed and run, and various web pages can be accessed through the browser. The terminal device can be a mobile terminal, such as a mobile phone, a tablet computer, a laptop computer, etc., or a personal computer PC, etc.
[0057] See also Figure 1 , Figure 1 A schematic diagram of the overall architecture of the advertising resource access solution provided in an embodiment of the present invention.
[0058] In the embodiment of the present application, a browser is running on the terminal device, and the browser kernel of the browser includes a browser engine (i.e. Figure 1 The "WEB Engine" module in the Figure 1 The "Native Ads" module in the
[0059] The browser engine is used to parse web page data and render the web page according to the parsing results.
[0060] The advertising management module is responsible for collecting characteristic information such as the characteristics of the terminal device and the operating environment, and is also responsible for advertising pulling, rendering, user interaction processing and event reporting. This is equivalent to implementing an independent sandbox model, which extracts advertising resources from web pages and decouples the processing logic of advertising resources from the browser engine, thereby avoiding exposing advertising resources and processing logic to web page developers and overcoming the high cost of supervision and optimization when accessing advertising resources through web pages.
[0061] The browser kernel defines an advertisement tag for inserting into a web page. The advertisement tag can be used to set attributes such as the size of the advertisement (including width and height), background, and special advertisement mark.
[0062] When it is necessary to access advertising resources through a web page, the developer of the web page inserts a corresponding number of the above advertising tags into the web page data according to the number of advertisements, and each advertising tag is set with attribute information of the advertising resources to be accessed. Figure 1 As shown in<nativead width=“100%”height=“80px”…nativead / > This is an example of an advertisement tag inserted into web page data. In this example, the width and height dimensions of the advertisement are shown.
[0063] After the browser receives the web page data, the browser engine parses the web page data to obtain the advertisement tag, and the browser engine also renders the web page according to the parsing result of the web page data.
[0064] The advertisement management module requests advertisement resources from the advertisement server according to the advertisement attributes set on each advertisement tag parsed by the browser engine.
[0065] The advertising server returns the advertising resources corresponding to each tag to the advertising management module.
[0066] The advertisement management module performs native rendering on each advertisement resource, that is, the advertisement management module analyzes the advertisement resource and renders the advertisement content according to the analysis result. The advertisement management module can use the native UI and controls provided by the terminal device system for rendering.
[0067] The advertisement management module sends the rendered advertisement content to the browser engine.
[0068] The browser engine renders the combination of the advertisement content and the web page to obtain a combination page, and displays the combination page on the display. There are many ways to combine the advertisement content and the web page, for example, splicing the advertisement content and the web page, such as Figure 2As shown in FIG. 1 , an example diagram of the effect of splicing the advertisement content and the web page is shown. In this example, the advertisement content is spliced at the bottom of the web page, but the present application is not limited to this. The advertisement content can also be spliced at other positions of the web page, such as at the top or side of the web page. For another example, the advertisement content can also be suspended above the web page, such as Figure 3 As shown, it is an example diagram of floating advertising content above a web page. In this example, a transparent mask with a full-screen layout is covered on the web page, and the advertising content is carried on the transparent mask. The advertising content is displayed therein, but the present application is not limited to this. For example, the transparent mask can be in a non-full-screen layout, and the advertising content can be displayed in a corner, etc.
[0069] Based on the above ideas, a flowchart of an implementation method of the advertising resource access method provided by this application is as follows: Figure 4 As shown, it may include:
[0070] Step S101: Obtain at least one advertisement tag obtained by parsing web page data received by the browser through a browser engine.
[0071] The web page data received by the browser is usually an HTML file. When it is necessary to access advertising resources through a web page, the developer of the web page inserts an advertising tag into the web page data. The advertising tag is provided with attribute information of the advertising resources to be accessed.
[0072] After parsing the browser, the browser engine not only obtains the ad tag, but also renders the web page based on the parsing results.
[0073] Step S102: Acquire advertisement resources based on advertisement attributes set on the advertisement tag.
[0074] In the embodiment of the present invention, based on the advertisement attributes, an advertisement resource that meets the advertisement attributes is requested from the advertisement server.
[0075] Step S103: Perform native rendering on the advertising resources to obtain advertising content.
[0076] In the embodiment of the present invention, the advertisement resources are no longer rendered by the browser engine, but by a module independent of the browser engine, that is, the rendering of the advertisement resources is independent of the rendering of the web page.
[0077] Step S104: sending the advertisement content to the browser engine, so that the browser engine combines and renders the advertisement content with the web page rendered by the browser engine to obtain a combined page for display.
[0078] In the embodiment of the present invention, the browser engine combines the web page and the advertisement content together to obtain a combined page that needs to be displayed in the end.
[0079] The advertising resource access method provided by the embodiment of the present invention is no longer responsible for the access of advertising resources by JSSDK, but by the functional module in the browser that is independent of the browser engine. The developer of the web page only needs to insert the advertising tag corresponding to the advertising resource to be accessed in the web page. When the browser loads the web page, the browser engine parses the advertising tag from the web page data, and the above-mentioned functional module obtains the advertising attribute. After obtaining the advertising resource based on the advertising attribute, the advertising resource is natively rendered to obtain the advertising content and sent to the browser engine. The browser engine combines the advertising content with the web page for rendering to obtain a combined page for display. Since the advertising resources are extracted from the web page, the processing logic of the advertising resources is decoupled and separated from the browser engine, thereby avoiding exposing the advertising resources and the processing logic to the developer of the web page, making it impossible for the developer of the web page to access the advertising resources, and overcoming the problem of high supervision and optimization costs when accessing advertising resources through web pages.
[0080] In addition, the advertising resources are rendered using native rendering to improve the smoothness when switching web pages.
[0081] Moreover, compared with accessing advertising resources through JSSDK, when a web page accesses advertising resources through JSSDK, it can be opened and requested in any browser. The cost of malicious traffic brushing is very low, which will cause cheating traffic to request a large number of advertising resources from the background, causing pressure on the advertising server. Based on the solution of this application, the request for advertising resources must go through the browser kernel, and non-browser kernels will not initiate advertising requests. Therefore, a part of the cheating traffic can be filtered on the terminal device side.
[0082] In an optional embodiment, in order to better isolate the advertisement content from the webpage content, before sending the advertisement content to the browser engine, the following may also be included:
[0083] Draw the ad content into a pre-created canvas.
[0084] The canvas may be created by a browser engine. After parsing the advertisement tag, the browser engine may determine the size of the canvas according to the attribute information set on the advertisement tag and create the canvas.
[0085] The canvas may also be created by an advertisement management module, which determines the size of the canvas and creates the canvas according to the acquired attribute information set on the advertisement tag.
[0086] Correspondingly, when the advertisement content is sent to the browser engine, the canvas on which the advertisement content is drawn is sent to the browser engine.
[0087] In the above-mentioned embodiment, the canvas carrying the advertisement content and the canvas carrying the web page are independent canvases. In an optional embodiment, the canvas may also be the canvas carrying the web page, that is, the canvas carrying the advertisement content and the canvas carrying the web page are the same canvas. Based on this, when rendering the web page, the browser engine may reserve an area in the canvas carrying the web page, so that after the advertisement management module renders the advertisement content, the browser engine renders the advertisement content into the reserved area.
[0088] In an optional embodiment, before obtaining advertising resources based on the advertising attributes set on the advertising tag, feature information may also be collected through an interface provided by the operating system of the terminal device, and the feature information includes the characteristics of the terminal device and the operating environment information. Specifically, the feature information may include, but is not limited to: device identification information (such as IMEI, etc.), network identification, etc. Among them, the device identification can be used to uniquely identify the user.
[0089] The operating system of the terminal device may be an Android operating system or other operating systems, such as an IOS operating system or a Windows operating system.
[0090] Based on the embodiments of the present invention, it is possible to accurately identify which users have viewed advertisements, which is beneficial for the advertisement server to accurately locate advertisements, thereby achieving accurate delivery of advertisements and improving advertisement conversion efficiency.
[0091] When accessing advertising resources through JSSDK, since JSSDK collects characteristic information such as the characteristics and operating environment of the terminal device through the application program interface (API) provided by the browser, such as the model, operating system, browser type, etc., this information cannot be used to identify the user. At present, there is also a way to mark users by creating cookies in the page. Since cookies are set based on the website and cookies cannot be read across domains, when the same user visits different websites, the cookies set are also different. Therefore, the user cannot be accurately identified. Therefore, it is not conducive to the advertising server to accurately locate the advertisement and cannot accurately identify the user, resulting in low accuracy of advertisement delivery and low advertising conversion efficiency.
[0092] Accordingly, one implementation of the present application for obtaining advertising resources based on the advertising attributes set on the advertising tag may be:
[0093] An advertisement resource acquisition request is sent to the advertisement server, where the advertisement resource acquisition request carries advertisement attributes and the above-mentioned characteristic information.
[0094] For example, to ensure security, a predetermined encryption protocol may be used to encrypt the advertising resource acquisition request before sending it to the advertising server.
[0095] Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
[0096] After receiving the advertisement resource acquisition request, the advertisement server searches for advertisement resources according to the characteristic information and advertisement attributes carried in the request, and sends the searched advertisement resources to the advertisement management module.
[0097] In an optional embodiment, after the combined page is displayed, if a click operation on a close button for the advertisement content is detected, the advertisement content is hidden.
[0098] Usually, a close button is set at a certain position of the advertisement content so that users who see the advertisement can close the advertisement. In the embodiment of the present application, the advertisement management module hides the advertisement content after detecting a click operation on the close button of the advertisement content.
[0099] If a click operation on the advertising content is detected, the interface provided by the browser engine is called to open the detail page corresponding to the advertising content.
[0100] After detecting a click operation on the advertisement content, the advertisement management module calls the interface provided by the browser engine to open the detail page corresponding to the advertisement content. At this time, the user will see the process of jumping from the current page to the advertisement detail page.
[0101] In the embodiment of the present application, all user interaction events related to advertisements are implemented by the advertisement management module, which is independent of the web page, thereby preventing the developers of the web page from cheating and further reducing the supervision and optimization costs when accessing advertising resources through the web page.
[0102] In an optional embodiment, after displaying the combination page, the advertisement management module may also upload the description information and exposure identifier of the advertisement resource to the statistics server.
[0103] The description information of the advertisement resource is used to identify the advertisement resource, and the exposure identifier is used to identify that the advertisement has been exposed. After receiving the description information and the exposure identifier, the statistics server performs statistics on the number of exposures of the advertisement resource.
[0104] If the advertisement management module detects a click operation on the advertisement content and the detail page corresponding to the advertisement content is opened, the description information and click mark of the advertisement resource are uploaded to the statistics server. The click mark is used to indicate whether the advertisement detail page is opened. After receiving the above description information and click mark, the statistics server counts the number of times the advertisement detail page is opened.
[0105] In the embodiment of the present application, reporting events related to advertising are also implemented by the advertising management module, which is independent of the web page, to prevent cheating by the developers of the web page and further reduce the supervision and optimization costs when accessing advertising resources through the web page.
[0106] Corresponding to the method embodiment, the embodiment of the present invention further provides an advertising resource access device, which implements the functions of the advertising management module as described above. A structural diagram of the advertising resource access device is shown in FIG. Figure 5 As shown, it may include:
[0107] Advertisement tag acquisition module 51, advertisement resource acquisition module 52, native rendering module 53 and sending module 54, wherein:
[0108] The advertisement tag acquisition module 51 is used to acquire at least one advertisement tag obtained by parsing the web page data received by the browser by the browser engine;
[0109] The advertisement resource acquisition module 52 is used to acquire advertisement resources based on the advertisement attributes set on the advertisement tag;
[0110] The native rendering module 53 is used to perform native rendering on the advertising resources to obtain advertising content;
[0111] The sending module 54 is used to send the advertisement content to the browser engine, so that the browser engine combines and renders the advertisement content with the web page rendered by the browser engine to obtain a combined page for display.
[0112] The advertising resource access device provided by the present application is no longer responsible for the access of advertising resources by JSSDK, but by the functional module in the browser that is independent of the browser engine. The developer of the web page only needs to insert the advertising tag corresponding to the advertising resource to be accessed in the web page. When the browser loads the web page, the browser engine parses the advertising tag from the web page data, and the above-mentioned functional module obtains the advertising attribute. After obtaining the advertising resources based on the advertising attributes, the advertising resources are natively rendered to obtain the advertising content and sent to the browser engine. The browser engine combines the advertising content with the web page for rendering to obtain a combined page for display. Since the advertising resources are extracted from the web page, the processing logic of the advertising resources is decoupled and separated from the browser engine, thereby avoiding exposing the advertising resources and the processing logic to the developers of the web page, making it impossible for the developers of the web page to access the advertising resources, and overcoming the problem of high supervision and optimization costs when accessing advertising resources through web pages.
[0113] In addition, the advertising resources are rendered using native rendering to improve the smoothness when switching web pages.
[0114] Moreover, compared with accessing advertising resources through JSSDK, when a web page accesses advertising resources through JSSDK, it can be opened and requested in any browser. The cost of malicious traffic brushing is very low, which will cause cheating traffic to request a large number of advertising resources from the background, causing pressure on the advertising server. Based on the solution of this application, the request for advertising resources must go through the browser kernel, and non-browser kernels will not initiate advertising requests. Therefore, a part of the cheating traffic can be filtered on the terminal device side.
[0115] In an alternative embodiment,
[0116] The native rendering module 53 may also be used to draw the advertisement content into a pre-created canvas;
[0117] The sending module 54 may be specifically configured to send the canvas on which the advertisement content is drawn to the browser engine, so that the browser engine combines the canvas on which the advertisement content is drawn with the web page for rendering.
[0118] In an optional embodiment, the advertising resource access device provided by the embodiment of the present invention may further include:
[0119] A collection module, used to collect feature information through an interface provided by the operating system, wherein the feature information includes characteristics of the terminal device and operating environment information;
[0120] The advertising resource acquisition module 52 can be specifically used for:
[0121] Sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
[0122] Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
[0123] In an optional embodiment, the advertising resource access device provided by the embodiment of the present invention may further include:
[0124] The interactive module is used to: hide the advertising content if a click operation on the close button of the advertising content is detected; and call the interface provided by the browser engine to open the detail page corresponding to the advertising content if a click operation on the advertising content is detected.
[0125] In an optional embodiment, the advertising resource access device provided by the embodiment of the present invention may further include:
[0126] The event reporting module is used to: upload the description information and exposure identification of the advertising resources to the statistical server; if a click operation on the advertising content is detected and the detail page corresponding to the advertising content is opened, upload the description information and click identification of the advertising resources to the statistical server.
[0127] The embodiment of the present invention further provides a terminal device, which can be configured with the above-mentioned advertising resource access device. Figure 6 As shown, it may include:
[0128] Processor 1, communication interface 2, memory 3 and communication bus 4;
[0129] The processor 1, the communication interface 2, and the memory 3 communicate with each other via the communication bus 4;
[0130] Optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
[0131] The processor 1 may be a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present invention.
[0132] The memory 3 may include a high-speed RAM memory, and may also include a non-volatile memory (non-volatile memory), such as at least one disk memory.
[0133] The processor 1 is specifically used for:
[0134] Acquire at least one advertisement tag obtained by parsing web page data received by the browser by a browser engine;
[0135] Acquire advertising resources based on the advertising attributes set on the advertising tag;
[0136] Perform native rendering on the advertising resources to obtain advertising content;
[0137] The advertisement content is sent to the browser engine, so that the browser engine combines and renders the advertisement content with a web page rendered by the browser engine to obtain a combined page for display.
[0138] Optionally, before sending the advertisement content to the browser engine, the processor 1 is further configured to:
[0139] Drawing the advertisement content into a pre-created canvas;
[0140] The processor 1 sends the advertisement content to the browser engine, including:
[0141] The canvas on which the advertisement content is drawn is sent to the browser engine, so that the browser engine combines the canvas on which the advertisement content is drawn with the web page for rendering.
[0142] Optionally, the processor 1 may also be used for:
[0143] Collect characteristic information through the interface provided by the operating system, wherein the characteristic information includes characteristics of the terminal device and operating environment information;
[0144] The processor 1 obtains advertisement resources based on the advertisement attributes set on the advertisement tag, including:
[0145] Sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
[0146] Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
[0147] Optionally, the processor 1 may also be used for:
[0148] If a click operation on a close button of the advertisement content is detected, hiding the advertisement content;
[0149] If a click operation on the advertisement content is detected, an interface provided by the browser engine is called to open a detail page corresponding to the advertisement content.
[0150] Optionally, the processor 1 may also be used to: upload the description information and exposure identifier of the advertising resource to a statistics server;
[0151] If a click operation on the advertisement content is detected and a detail page corresponding to the advertisement content is opened, the description information and click mark of the advertisement resource are uploaded to the statistics server.
[0152] The present application also provides a readable storage medium, which may store a program suitable for execution by a processor, wherein the program is used to:
[0153] Acquire at least one advertisement tag obtained by parsing web page data received by the browser by a browser engine;
[0154] Acquire advertising resources based on the advertising attributes set on the advertising tag;
[0155] Perform native rendering on the advertising resources to obtain advertising content;
[0156] The advertisement content is sent to the browser engine, so that the browser engine combines and renders the advertisement content with a web page rendered by the browser engine to obtain a combined page for display.
[0157] Optionally, the detailed functions and extended functions of the program may refer to the above description.
[0158] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0159] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0160] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0161] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the core concept or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for accessing advertising resources, characterized in that: Applied to a browser, the method comprises: Acquire at least one advertisement tag obtained by parsing web page data received by the browser through a browser engine; Acquire advertising resources based on the advertising attributes set on the advertising tag; Perform native rendering on the advertising resources to obtain advertising content; Drawing the advertisement content into a pre-created canvas, wherein the size of the canvas is determined according to the attribute information set on the advertisement tag and the canvas is created; Sending the advertisement content to the browser engine so that the browser engine combines and renders the advertisement content with a web page rendered by the browser engine to obtain a combined page for display; The step of sending the advertisement content to the browser engine includes: The canvas on which the advertisement content is drawn is sent to the browser engine, so that the browser engine renders the canvas on which the advertisement content is drawn in combination with the web page, wherein the rendering of the advertisement resource and the rendering of the web page are independent of each other.
2. The method according to claim 1, characterized in that Also includes: Collect characteristic information through the interface provided by the operating system, wherein the characteristic information includes characteristics of the terminal device and operating environment information; The acquiring of advertisement resources based on the advertisement attributes set on the advertisement tag includes: Sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information; Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
3. The method according to claim 1, characterized in that: Also includes: If a click operation on a close button of the advertisement content is detected, hiding the advertisement content; If a click operation on the advertisement content is detected, an interface provided by the browser engine is called to open a detail page corresponding to the advertisement content.
4. The method according to claim 1, characterized in that: Also includes: Uploading the description information and exposure identifier of the advertising resource to a statistics server; If a click operation on the advertisement content is detected and a detail page corresponding to the advertisement content is opened, the description information and click mark of the advertisement resource are uploaded to the statistics server.
5. An advertising resource access device, characterized in that: Application browser, the device comprises: An advertisement tag acquisition module, used to acquire at least one advertisement tag obtained by parsing the web page data received by the browser by the browser engine; An advertisement resource acquisition module, used to acquire advertisement resources based on advertisement attributes set on the advertisement tag; A native rendering module, used for performing native rendering on the advertising resources to obtain advertising content; The native rendering module is further used to draw the advertisement content into a pre-created canvas, wherein the size of the canvas is determined and the canvas is created according to the attribute information set on the advertisement tag; A sending module, used to send the advertisement content to the browser engine, so that the browser engine combines and renders the advertisement content with a web page rendered by the browser engine to obtain a combined page for display; Wherein, the sending module is specifically used for: The canvas on which the advertisement content is drawn is sent to the browser engine, so that the browser engine renders the canvas on which the advertisement content is drawn in combination with the web page, wherein the rendering of the advertisement resource and the rendering of the web page are independent of each other.
6. The device according to claim 5, characterized in that Also includes: A collection module, used to collect feature information through an interface provided by the operating system, wherein the feature information includes characteristics of the terminal device and operating environment information; The advertising resource acquisition module is specifically used for: Sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information; Acquire advertisement resources returned by the advertisement server that match the advertisement attributes and the characteristic information.
7. The device according to claim 5, characterized in that Also includes: The interactive module is used to: if a click operation on a close button of the advertisement content is detected, hide the advertisement content; If a click operation on the advertisement content is detected, an interface provided by the browser engine is called to open a detail page corresponding to the advertisement content.
8. The device according to claim 5, characterized in that Also includes: The event reporting module is used to: upload the description information and exposure identification of the advertising resources to the statistical server; if a click operation on the advertising content is detected and the detail page corresponding to the advertising content is opened, upload the description information and click identification of the advertising resources to the statistical server.
9. A terminal device, characterized in that: including memory and processor; The memory is used to store programs; The processor is used to execute the program to implement each step of the advertising resource access method according to any one of claims 1 to 4.
10. A readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, each step of the advertising resource access method according to any one of claims 1 to 4 is implemented.
