CN112116374A - Advertisement resource access method, device, readable storage medium and terminal equipment - Google Patents

Advertisement resource access method, device, readable storage medium and terminal equipment Download PDF

Info

Publication number
CN112116374A
CN112116374A CN201910537556.7A CN201910537556A CN112116374A CN 112116374 A CN112116374 A CN 112116374A CN 201910537556 A CN201910537556 A CN 201910537556A CN 112116374 A CN112116374 A CN 112116374A
Authority
CN
China
Prior art keywords
advertisement
browser engine
content
advertisement content
webpage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910537556.7A
Other languages
Chinese (zh)
Inventor
魏扼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201910537556.7A priority Critical patent/CN112116374A/en
Publication of CN112116374A publication Critical patent/CN112116374A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • G06Q30/0251Targeted advertisements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9577Optimising the visualization of content, e.g. distillation of HTML documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range

Abstract

The embodiment of the invention provides an advertisement resource access method, an advertisement resource access device, a readable storage medium and a terminal device, wherein JSSDK is not responsible for accessing advertisement resources, but a function module independent of a browser engine in a browser is responsible for accessing the advertisement resources, a developer of a webpage page only needs to insert an advertisement tag corresponding to the advertisement resources needing to be accessed into the webpage page, when the webpage page is loaded by the browser, the browser engine analyzes the advertisement tag from the webpage page, the function module obtains the advertisement attribute, after the advertisement resources are obtained based on the advertisement attribute, the advertisement resources are subjected to primary rendering to obtain advertisement content and are sent to the browser engine, and the browser engine performs combined rendering on the advertisement content and the webpage page to obtain a combined page for display. The problem of high supervision and optimization cost when the advertisement resources are accessed through the webpage is solved. In addition, the advertisement resources are rendered in a native rendering mode, and fluency of webpage page switching is improved.

Description

Advertisement resource access method, device, readable storage medium and terminal equipment
Technical Field
The invention relates to the technical field of information processing, in particular to an advertisement resource access method, an advertisement resource access device, a readable storage medium and terminal equipment.
Background
At present, when an advertisement resource needs to be accessed through a web page, an advertisement function package (JSSDK) embedded in the web page is generally used to access the advertisement resource, the JSSDK acquires feature information such as characteristics and an operating environment of a terminal device through an Application Program Interface (API) provided by a browser, and then requests the advertisement resource from an advertisement server according to the acquired information, and after the advertisement server returns an advertisement resource matched with the feature information, the JSSDK has two processing modes: one is that directly sending the advertisement resource to the data of the flow main page (i.e. the web page for putting the advertisement), rendering the advertisement resource by the browser engine according to the definition of the flow main page, and after the advertisement is displayed, the related events such as the user interaction and the background interaction related to the advertisement are realized by the web page; the other mode is that a function module developed by a webpage developer is integrated in the JSSDK, and the function module directly renders advertisement resources and processes related events such as user interaction and background interaction related to the advertisement.
However, regardless of the access mode, the JSSDK must be opened to the web page developer and embedded into the web page, so that the advertisement resources and the processing logic thereof are completely exposed to the web page developer, and are very easy to be researched and utilized by the web page developer, for example, ad content is tampered randomly, the click rate is forged and exposed for cheating, and the intermediary attacks, so that the supervision workload is increased, and the advertisement supervision and optimization cost is very high.
Disclosure of Invention
In view of this, embodiments of the present invention provide an advertisement resource access method, an apparatus, a readable storage medium, and a terminal device, so as to overcome the problem of high supervision and optimization cost when accessing an advertisement resource through a web page.
In order to achieve the above purpose, the embodiments of the present invention provide the following technical solutions:
an advertisement resource access method is applied to a browser, and comprises the following steps:
acquiring at least one advertisement label obtained by analyzing webpage data received by a browser engine;
acquiring advertisement resources based on the advertisement attributes set on the advertisement tags;
performing primary rendering on the advertisement resources to obtain advertisement content;
and sending the advertisement content to the browser engine so that the browser engine performs combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
The method preferably further includes, before sending the advertisement content to the browser engine:
drawing the advertisement content into a pre-created canvas;
the sending the advertising content to the browser engine includes:
and sending the canvas drawn with the advertisement content to the browser engine so that the browser engine performs combined rendering on the canvas drawn with the advertisement content and the webpage.
The above method, preferably, further comprises:
collecting characteristic information through an interface provided by an operating system, wherein the characteristic information comprises characteristics of terminal equipment and running environment information;
the obtaining of the advertisement resource based on the advertisement attribute 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;
and acquiring the advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
The above method, preferably, further comprises:
if the click operation of a closing button aiming at the advertisement content is monitored, hiding the advertisement content;
and if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by the browser engine to open a detail page corresponding to the advertisement content.
The above method, preferably, further comprises:
uploading the description information and the exposure identification of the advertisement resource to a statistical server;
and if the click operation aiming at the advertisement content is monitored and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server.
An advertising resource access apparatus, employing a browser, the apparatus comprising:
the advertisement tag acquisition module is used for acquiring at least one advertisement tag obtained by analyzing webpage data received by the browser by a browser engine;
the advertisement resource acquisition module is used for acquiring advertisement resources based on the advertisement attributes set on the advertisement tags;
the native rendering module is used for performing native rendering on the advertisement resources to obtain advertisement content;
and the sending module is used for sending the advertisement content to the browser engine so as to enable the browser engine to perform combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
The above-described device, preferably, is characterized in that,
the native rendering module is further configured to draw the advertisement content into a pre-created canvas;
the sending module is specifically configured to send the canvas on which the advertisement content is drawn to the browser engine, so that the browser engine performs combined rendering on the canvas on which the advertisement content is drawn and the webpage.
The above apparatus, preferably, further comprises:
the acquisition module is used for acquiring characteristic information through an interface provided by an operating system, wherein the characteristic information comprises the characteristics of the terminal equipment and the running environment information;
the advertisement resource acquisition module is specifically configured to:
sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
and acquiring the advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
The above apparatus, preferably, further comprises:
an interaction module to: if the click operation of a closing button aiming at the advertisement content is monitored, hiding the advertisement content; and if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by the browser engine to open a detail page corresponding to the advertisement content.
The above apparatus, preferably, further comprises:
an event reporting module, configured to: uploading the description information and the exposure identification of the advertisement resource to a statistical server; and if the click operation aiming at the advertisement content is monitored and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server.
A terminal device comprising a memory and a processor;
the memory is used for storing programs;
the processor is configured to execute the program to implement the steps of the advertisement resource access method as described in any one of the above.
A readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the advertising resource access method as described in any one of the above.
According to the advertisement resource access method, the device, the readable storage medium and the terminal device provided by the embodiment of the invention, the JSSDK is not responsible for accessing the advertisement resource, but a function module independent of a browser engine in the browser is responsible for accessing the advertisement resource, a developer of a webpage page only needs to insert an advertisement tag corresponding to the advertisement resource needing to be accessed into the webpage page, when the browser loads the webpage page, the browser engine analyzes the advertisement tag from the webpage page, the function module obtains the advertisement attribute, after the advertisement resource is obtained based on the advertisement attribute, the advertisement resource is subjected to primary rendering to obtain the advertisement content and is sent to the browser engine, and the browser engine performs combined rendering on the advertisement content and the webpage page to obtain a combined page for display. According to the advertisement resource access scheme, the advertisement resources are extracted from the webpage, and the processing logic of the advertisement resources is decoupled and independent from the browser engine, so that the advertisement resources and the processing logic are prevented from being exposed to developers of the webpage, and the problems of high supervision and optimization cost when the advertisement resources are accessed through the webpage are solved. In addition, the advertisement resources are rendered in a native rendering mode, and the streaming degree of webpage page switching is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic overall architecture diagram of an advertisement resource access method according to an embodiment of the present invention;
FIG. 2 is a diagram illustrating an exemplary effect of splicing advertisement content and a webpage according to an embodiment of the present invention;
FIG. 3 is an exemplary diagram of floating advertisement content on a web page provided by an embodiment of the present invention;
fig. 4 is a flowchart of an implementation of an advertisement resource access method according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an advertisement resource access device according to an embodiment of the present invention;
fig. 6 is a block diagram of a hardware structure of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The advertisement resource access method provided by the embodiment of the invention is applied to the terminal equipment, the browser can be installed and operated in the terminal equipment, and various webpages can be requested to be accessed through the browser. The terminal device may be a mobile terminal, such as a mobile phone, a tablet computer, a notebook computer, etc., or a personal computer PC, etc.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an overall architecture of an advertisement resource access scheme according to an embodiment of the present invention.
In this embodiment, a terminal device runs a browser, and a browser kernel of the browser includes a browser engine (i.e., "WEB engine" module in fig. 1) and an advertisement management module (i.e., "Native advertisement" module in fig. 1). Wherein the content of the first and second substances,
the browser engine is used for analyzing the webpage data and rendering the webpage according to the analysis result.
The advertisement management module is responsible for collecting characteristic information of terminal equipment, such as characteristics and operating environment and the like, and is also responsible for pulling, rendering, user interaction processing and event reporting of advertisements, so that an independent sandbox model is realized, the sandbox model extracts advertisement resources from a webpage page, and processing logic of the advertisement resources is decoupled and independent from a browser engine, thereby avoiding exposing the advertisement resources and the processing logic to developers of the webpage page, and overcoming the problems of high supervision and optimization cost when the advertisement resources are accessed through the webpage page.
The browser kernel side defines an advertisement tag for inserting a webpage, and the advertisement tag can be set with attributes such as the size (including width and height), background and advertisement special identification of an advertisement.
When the advertisement resource needs to be accessed through the webpage, a developer of the webpage inserts a corresponding number of the advertisement tags into webpage data according to the number of the advertisements, and each advertisement tag is provided with attribute information of the advertisement resource to be accessed. As shown in fig. 1, < native width ═ 100%, "height ═ 80 px" … native/> is an example of an advertisement tag inserted in web page data, in which example the width and height dimensions of an advertisement are shown.
After the browser receives the webpage data, the browser engine analyzes the webpage data to obtain the advertisement tag, and renders the webpage according to the analysis result of the webpage data.
The advertisement management module requests advertisement resources from the advertisement server according to the advertisement attributes set on each advertisement label analyzed by the browser engine.
And the advertisement server returns the advertisement resources corresponding to the labels to the advertisement management module.
The advertisement management module performs primary rendering on each advertisement resource, namely the advertisement management module analyzes the advertisement resource and renders according to the analysis result to obtain advertisement content. The advertisement management module may render using native UIs and controls provided by the terminal device system.
And the advertisement management module sends the rendered advertisement content to the browser engine.
And the browser engine performs combined rendering on the advertisement content and the webpage to obtain a combined page, and displays the combined page through the display. For example, as shown in fig. 2, an exemplary diagram of the effect of splicing the advertisement content and the web page is shown, in this example, the advertisement content is spliced below the web page, but the present application is not limited thereto, and the advertisement content may also be spliced at other positions of the web page, such as spliced above the web page, or on the side. For another example, the advertisement content may be suspended on the web page, as shown in fig. 3, which is an exemplary diagram of suspending the advertisement content on the web page, in this example, a transparent cover layer with a full-screen layout is covered on the web page, the advertisement content is carried on the transparent cover layer, and the advertisement content is displayed therein, but the present application is not limited thereto, for example, the transparent cover layer may be in a non-full-screen layout, and the advertisement content is displayed in a certain corner position, and the like.
Based on the above ideas, an implementation flowchart of the advertisement resource access method provided by the present application is shown in fig. 4, and may include:
step S101: and acquiring at least one advertisement label obtained by analyzing webpage data received by the browser by a browser engine.
The webpage data received by the browser is usually an HTML file, when the advertisement resource needs to be accessed through the webpage, a developer of the webpage inserts an advertisement tag into the webpage data, and the advertisement tag is provided with attribute information of the advertisement resource to be accessed.
After the browser engine analyzes the browser, the browser engine not only obtains the advertisement tag, but also renders a webpage according to an analysis result.
Step S102: and acquiring the advertisement resources based on the advertisement attributes set on the advertisement label.
In the embodiment of the invention, the advertisement resource which accords with the advertisement attribute is requested from the advertisement server based on the advertisement attribute.
Step S103: and performing primary rendering on the advertisement resources to obtain advertisement content.
In the embodiment of the invention, the advertisement resource is not rendered by the browser engine, but is rendered by a module independent of the browser engine, namely the rendering of the advertisement resource and the rendering of the webpage page are independent.
Step S104: and sending the advertisement content to the browser engine so that the browser engine performs combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
In the embodiment of the invention, the browser engine combines the webpage and the advertisement content together to obtain the combined page which needs to be displayed finally.
According to the advertisement resource access method provided by the embodiment of the invention, the JSSDK is not responsible for accessing the advertisement resource, but a functional module independent from a browser engine in the browser is responsible for accessing the advertisement resource, a developer of a webpage page only needs to insert an advertisement tag corresponding to the advertisement resource needing to be accessed into the webpage page, when the browser loads the webpage page, the browser engine analyzes the advertisement tag from webpage page data, the functional module obtains the advertisement attribute, after the advertisement resource is obtained based on the advertisement attribute, the advertisement resource is subjected to primary rendering to obtain the advertisement content and is sent to the browser engine, and the browser engine performs combined rendering on the advertisement content and the webpage page to obtain the combined page for display. Because the advertisement resources are extracted from the webpage, the processing logic of the advertisement resources is decoupled and independent from the browser engine, thereby avoiding exposing the advertisement resources and the processing logic to developers of the webpage, enabling the developers of the webpage to be unable to access the advertisement resources, and overcoming the problem of high supervision and optimization cost when the advertisement resources are accessed through the webpage.
In addition, the advertisement resources are rendered in a native rendering mode, and the streaming degree of webpage page switching is improved.
Moreover, compared with the access of the advertisement resources through the JSSDK, when the webpage accesses the advertisement resources through the JSSDK, the webpage can be opened and requested for advertisements in any browser, the cost of malicious traffic is very low, cheating traffic can be caused to request a large amount of advertisement resources to a background, and pressure is caused to an advertisement server. Based on the scheme of the application, the request of the advertisement resource needs to pass through the browser kernel, and the non-browser kernel does not initiate the advertisement request, so that part of cheating traffic can be filtered at the terminal equipment side.
In an optional embodiment, to better achieve isolation of the advertisement content from the web page content, before sending the advertisement content to the browser engine, the method may further include:
the advertising content is drawn into a pre-created canvas.
The canvas may be created by a browser engine, and the browser engine may, after parsing out the advertisement tag, determine a size of the canvas according to the attribute information set on the advertisement tag and create the canvas.
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 obtained attribute information set on the advertisement tag.
Accordingly, when the advertisement content is transmitted to the browser engine, the canvas on which the advertisement content is drawn is transmitted to the browser engine.
In the foregoing embodiment, the canvas carrying the advertisement content and the canvas carrying the webpage page are mutually independent canvases. In an optional embodiment, the canvas may also be a canvas for bearing a webpage, that is, the canvas for bearing the advertisement content and the canvas for bearing the webpage are the same canvas, and based on this, when the browser engine renders the webpage, an area may be reserved in the canvas for bearing the webpage, so that after the advertisement management module renders the advertisement content, the browser engine renders the advertisement content into the reserved area.
In an optional embodiment, before obtaining the advertisement resource based on the advertisement attribute set on the advertisement tag, feature information may be further collected through an interface provided by an operating system of the terminal device, where the feature information includes characteristics of the terminal device and operating environment information. Specifically, the characteristic information may include, but is not limited to: device identification information (e.g., IMEI, etc.), network identification, etc. Wherein the device identification can be used to uniquely identify the user.
The operating system of the terminal device may be an Android operating system, or may be another operating system, for example, an IOS operating system, or a Windows operating system.
Based on the embodiment of the invention, which users look up the advertisement can be accurately identified, and the advertisement server is favorable for accurately positioning the advertisement, thereby realizing the accurate delivery of the advertisement and improving the advertisement conversion efficiency.
When the JSSDK accesses the advertisement resource, the JSSDK collects characteristic information such as a model, an operating system, a browser type, and the like of the terminal device, and characteristic information such as a running environment and the like, through an Application Program Interface (API) provided by the browser, but the information cannot be used for identifying the user. At present, users are marked by a cookie creating mode in a page, the cookie is set based on a website and can not be read across domains, and when the same user visits different websites, the set cookie is different, so that the user can not be identified accurately, the accurate positioning of advertisements by an advertisement server is not facilitated, the user can not be identified accurately, the advertisement putting precision is low, and the advertisement conversion efficiency is low.
Correspondingly, one implementation way for acquiring the advertisement resource based on the advertisement attribute set on the advertisement tag in the present application may be:
and sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information.
For example, to ensure security, the advertisement resource acquisition request may be encrypted using a predetermined encryption protocol and then sent to the advertisement server.
And acquiring advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
And after receiving the advertisement resource acquisition request, the advertisement server searches the advertisement resources according to the characteristic information and the advertisement attributes carried in the request and sends the searched advertisement resources to the advertisement management module.
In an optional embodiment, after the combined page is displayed, if the click operation of the close button for the advertisement content is monitored, the advertisement content is hidden.
Typically, a close button is placed in a location of the advertising content so that a user viewing the advertisement can close the advertisement. In the embodiment of the application, the advertisement management module hides the advertisement content after monitoring the click operation of the closing button aiming at the advertisement content.
And if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by a browser engine to open a detail page corresponding to the advertisement content.
After monitoring the click operation aiming at the advertisement content, the advertisement management module calls an interface provided by a browser engine to open a detailed page corresponding to the advertisement content, and at the moment, a user can see the process of jumping from the current page to the detailed page of the advertisement.
In the embodiment of the application, the user interaction events related to the advertisements are realized by the advertisement management module and are independent from the webpage, so that developers of the webpage are prevented from cheating, and the supervision and optimization cost when the webpage accesses advertisement resources is further reduced.
In an optional embodiment, after the combined page is displayed, the advertisement management module may further upload the description information and the exposure identifier of the advertisement resource to the statistics server.
The description information of the advertisement resources is used for identifying the advertisement resources, and the exposure identification is used for identifying that the advertisement is exposed. And after receiving the description information and the exposure identification, the counting server counts the exposure times of the advertisement resources.
And if the advertisement management module monitors the click operation aiming at the advertisement content and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server. The click representation is used to indicate whether an advertisement details page is open. And after receiving the description information and the click identification, the counting server counts the opening times of the advertisement detail page.
In the embodiment of the application, the reporting event related to the advertisement is also realized by the advertisement management module and is independent from the webpage, so that the cheating of a developer of the webpage is prevented, and the supervision and optimization cost when the advertisement resource is accessed through the webpage is further reduced.
Corresponding to the method embodiment, the embodiment of the invention also provides an advertisement resource access device, which realizes the functions of the advertisement management module. A schematic structural diagram of the advertisement resource access device is shown in fig. 5, and may include:
an advertisement tag obtaining module 51, an advertisement resource extracting module 52, a native rendering module 53 and a sending module 54, wherein:
the advertisement tag obtaining module 51 is configured to obtain at least one advertisement tag obtained by analyzing, by a browser engine, webpage data received by the browser;
the advertisement resource obtaining module 52 is configured to obtain an advertisement resource based on the advertisement attribute set on the advertisement tag;
the native rendering module 53 is configured to perform native rendering on the advertisement resource to obtain advertisement content;
the sending module 54 is configured to send the advertisement content to the browser engine, so that the browser engine performs combined rendering on the advertisement content and a webpage rendered by the browser engine to obtain a combined page for display.
According to the advertisement resource access device, the JSSDK is not responsible for accessing advertisement resources, but a functional module independent of a browser engine in a browser is responsible for accessing the advertisement resources, a developer of a webpage page only needs to insert an advertisement tag corresponding to the advertisement resources needing to be accessed into the webpage page, when the browser loads the webpage page, the browser engine analyzes the advertisement tag from webpage page data, the functional module obtains advertisement attributes, after the advertisement resources are obtained based on the advertisement attributes, the advertisement resources are subjected to primary rendering to obtain advertisement content and sent to the browser engine, the browser engine performs combined rendering on the advertisement content and the webpage page to obtain a combined page for display. Because the advertisement resources are extracted from the webpage, the processing logic of the advertisement resources is decoupled and independent from the browser engine, thereby avoiding exposing the advertisement resources and the processing logic to developers of the webpage, enabling the developers of the webpage to be unable to access the advertisement resources, and overcoming the problem of high supervision and optimization cost when the advertisement resources are accessed through the webpage.
In addition, the advertisement resources are rendered in a native rendering mode, and the streaming degree of webpage page switching is improved.
Moreover, compared with the access of the advertisement resources through the JSSDK, when the webpage accesses the advertisement resources through the JSSDK, the webpage can be opened and requested for advertisements in any browser, the cost of malicious traffic is very low, cheating traffic can be caused to request a large amount of advertisement resources to a background, and pressure is caused to an advertisement server. Based on the scheme of the application, the request of the advertisement resource needs to pass through the browser kernel, and the non-browser kernel does not initiate the advertisement request, so that part of cheating traffic can be filtered at the terminal equipment side.
In an alternative embodiment of the present invention,
the native rendering module 53 may be further configured to draw the advertisement content into a pre-created canvas;
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 performs combined rendering on the canvas on which the advertisement content is drawn and the webpage.
In an optional embodiment, the advertisement resource access apparatus provided in the embodiment of the present invention may further include:
the acquisition module is used for acquiring characteristic information through an interface provided by an operating system, wherein the characteristic information comprises the characteristics of the terminal equipment and the running environment information;
the advertisement resource obtaining module 52 may be specifically configured to:
sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
and acquiring the advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
In an optional embodiment, the advertisement resource access apparatus provided in the embodiment of the present invention may further include:
an interaction module to: if the click operation of a closing button aiming at the advertisement content is monitored, hiding the advertisement content; and if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by the browser engine to open a detail page corresponding to the advertisement content.
In an optional embodiment, the advertisement resource access apparatus provided in the embodiment of the present invention may further include:
an event reporting module, configured to: uploading the description information and the exposure identification of the advertisement resource to a statistical server; and if the click operation aiming at the advertisement content is monitored and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server.
The embodiment of the invention also provides terminal equipment which can be configured with the advertisement resource access device. An exemplary diagram of a hardware structure block diagram of a terminal device provided in an embodiment of the present invention is shown in fig. 6, and may include:
a processor 1, a communication interface 2, a memory 3 and a communication bus 4;
wherein, the processor 1, the communication interface 2 and the memory 3 complete the communication with each other through the communication bus 4;
optionally, the communication interface 2 may be an interface of a communication module, such as an interface of a GSM module;
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 embodiments of the present invention.
The memory 3 may comprise a high-speed RAM memory and may also comprise a non-volatile memory, such as at least one disk memory.
Wherein, the processor 1 is specifically configured to:
acquiring at least one advertisement label obtained by analyzing webpage data received by a browser engine;
acquiring advertisement resources based on the advertisement attributes set on the advertisement tags;
performing primary rendering on the advertisement resources to obtain advertisement content;
and sending the advertisement content to the browser engine so that the browser engine performs combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
Optionally, before sending the advertisement content to the browser engine, the processor 1 is further configured to:
drawing the advertisement content into a pre-created canvas;
the processor 1 sends the advertisement content to the browser engine, and comprises:
and sending the canvas drawn with the advertisement content to the browser engine so that the browser engine performs combined rendering on the canvas drawn with the advertisement content and the webpage.
Optionally, the processor 1 may be further configured to:
collecting characteristic information through an interface provided by an operating system, wherein the characteristic information comprises characteristics of terminal equipment and running environment information;
the processor 1 acquires an advertisement resource based on the advertisement attribute set on the advertisement tag, and 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;
and acquiring the advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
Optionally, the processor 1 may be further configured to:
if the click operation of a closing button aiming at the advertisement content is monitored, hiding the advertisement content;
and if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by the browser engine to open a detail page corresponding to the advertisement content.
Optionally, the processor 1 may be further configured to: uploading the description information and the exposure identification of the advertisement resource to a statistical server;
and if the click operation aiming at the advertisement content is monitored and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server.
Embodiments of the present application further provide a readable storage medium, where the storage medium may store a program adapted to be executed by a processor, where the program is configured to:
acquiring at least one advertisement label obtained by analyzing webpage data received by a browser engine;
acquiring advertisement resources based on the advertisement attributes set on the advertisement tags;
performing primary rendering on the advertisement resources to obtain advertisement content;
and sending the advertisement content to the browser engine so that the browser engine performs combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
Alternatively, the detailed function and the extended function of the program may be as described above.
The embodiments in the present description are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims (12)

1. An advertisement resource access method, applied to a browser, the method comprising:
acquiring at least one advertisement label obtained by analyzing webpage data received by a browser engine;
acquiring advertisement resources based on the advertisement attributes set on the advertisement tags;
performing primary rendering on the advertisement resources to obtain advertisement content;
and sending the advertisement content to the browser engine so that the browser engine performs combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
2. The method of claim 1, prior to sending the advertising content to the browser engine, further comprising:
drawing the advertisement content into a pre-created canvas;
the sending the advertising content to the browser engine includes:
and sending the canvas drawn with the advertisement content to the browser engine so that the browser engine performs combined rendering on the canvas drawn with the advertisement content and the webpage.
3. The method of claim 1, further comprising:
collecting characteristic information through an interface provided by an operating system, wherein the characteristic information comprises characteristics of terminal equipment and running environment information;
the obtaining of the advertisement resource based on the advertisement attribute 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;
and acquiring the advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
4. The method of claim 1, further comprising:
if the click operation of a closing button aiming at the advertisement content is monitored, hiding the advertisement content;
and if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by the browser engine to open a detail page corresponding to the advertisement content.
5. The method of claim 1, further comprising:
uploading the description information and the exposure identification of the advertisement resource to a statistical server;
and if the click operation aiming at the advertisement content is monitored and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server.
6. An advertising resource access apparatus, wherein a browser is applied, the apparatus comprising:
the advertisement tag acquisition module is used for acquiring at least one advertisement tag obtained by analyzing webpage data received by the browser by a browser engine;
the advertisement resource acquisition module is used for acquiring advertisement resources based on the advertisement attributes set on the advertisement tags;
the native rendering module is used for performing native rendering on the advertisement resources to obtain advertisement content;
and the sending module is used for sending the advertisement content to the browser engine so as to enable the browser engine to perform combined rendering on the advertisement content and the webpage rendered by the browser engine to obtain a combined page for display.
7. The apparatus of claim 6,
the native rendering module is further configured to draw the advertisement content into a pre-created canvas;
the sending module is specifically configured to send the canvas on which the advertisement content is drawn to the browser engine, so that the browser engine performs combined rendering on the canvas on which the advertisement content is drawn and the webpage.
8. The apparatus of claim 1, further comprising:
the acquisition module is used for acquiring characteristic information through an interface provided by an operating system, wherein the characteristic information comprises the characteristics of the terminal equipment and the running environment information;
the advertisement resource acquisition module is specifically configured to:
sending an advertisement resource acquisition request to an advertisement server, wherein the advertisement resource acquisition request carries the advertisement attribute and the characteristic information;
and acquiring the advertisement resources which are returned by the advertisement server and matched with the advertisement attributes and the characteristic information.
9. The apparatus of claim 6, further comprising:
an interaction module to: if the click operation of a closing button aiming at the advertisement content is monitored, hiding the advertisement content; and if the clicking operation aiming at the advertisement content is monitored, calling an interface provided by the browser engine to open a detail page corresponding to the advertisement content.
10. The apparatus of claim 6, further comprising:
an event reporting module, configured to: uploading the description information and the exposure identification of the advertisement resource to a statistical server; and if the click operation aiming at the advertisement content is monitored and the detail page corresponding to the advertisement content is opened, uploading the description information and the click identification of the advertisement resource to the statistical server.
11. A terminal device comprising a memory and a processor;
the memory is used for storing programs;
the processor, configured to execute the program, implementing the steps of the advertisement resource access method according to any one of claims 1-5.
12. A readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, performs the steps of the advertising resource access method as claimed in any one of claims 1 to 5.
CN201910537556.7A 2019-06-20 2019-06-20 Advertisement resource access method, device, readable storage medium and terminal equipment Pending CN112116374A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910537556.7A CN112116374A (en) 2019-06-20 2019-06-20 Advertisement resource access method, device, readable storage medium and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910537556.7A CN112116374A (en) 2019-06-20 2019-06-20 Advertisement resource access method, device, readable storage medium and terminal equipment

Publications (1)

Publication Number Publication Date
CN112116374A true CN112116374A (en) 2020-12-22

Family

ID=73795482

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910537556.7A Pending CN112116374A (en) 2019-06-20 2019-06-20 Advertisement resource access method, device, readable storage medium and terminal equipment

Country Status (1)

Country Link
CN (1) CN112116374A (en)

Similar Documents

Publication Publication Date Title
US10701030B2 (en) Real-time monitoring of web page code
US20190295127A1 (en) Real-time monitoring of ads inserted in real-time into a web page
CN106933722B (en) Webpage application monitoring method, server and system
US8725794B2 (en) Enhanced website tracking system and method
CN104766014B (en) For detecting the method and system of malice network address
US20150186521A1 (en) Method and system for tracking and gathering multivariate testing data
US9275398B1 (en) Obtaining metrics for client-side display of content
CN109672580A (en) Full link monitoring method, apparatus, terminal device and storage medium
CN110245069B (en) Page version testing method and device and page display method and device
CN111737692B (en) Application program risk detection method and device, equipment and storage medium
US20170053307A1 (en) Techniques for detecting and verifying fraudulent impressions
CN112948226B (en) User portrait drawing method and device
CN108959619A (en) Content screen method, user equipment, storage medium and device
EP3707662A1 (en) Web page performance improvement system
CN114157568B (en) Browser secure access method, device, equipment and storage medium
US20090228549A1 (en) Method of tracking usage of client computer and system for same
CN107526748A (en) A kind of method and apparatus for identifying user and clicking on behavior
CN110674426B (en) Webpage behavior reporting method and device
CN111158777B (en) Component calling method, device and computer readable storage medium
Gao et al. Exploring the effects of ad schemes on the performance cost of mobile phones
WO2021189766A1 (en) Data visualization method and related device
KR101692482B1 (en) Advertising Method of Mobile Device, the Mobile Device and Program Distributing Server therefor
CN112116374A (en) Advertisement resource access method, device, readable storage medium and terminal equipment
CN115563423A (en) Data acquisition method and device, computer equipment and storage medium
CN114706601A (en) Data processing method and device and terminal equipment

Legal Events

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