Advertisement playing method and device

By obtaining the advertising container and material addresses in the application, and generating and loading a network view to play advertisements when appropriate, the problem of inefficiency in the prior art is solved, and the playback effect of advertisements is significantly improved.

CN112801684BActive Publication Date: 2024-11-19TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201911115508.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-11-14
Publication Date
2024-11-19
Estimated Expiration
2039-12-25

AI Technical Summary

Technical Problem

In the prior art, when pushing advertisements at the application terminal, the click rate of advertisements is low, the interactive performance is poor, and the transmission and processing efficiency of advertisement data is low, which affects the playback effect of advertisements.

Method used

Get the ad container address, creative address, and ad play time when the application is running, generate a network view and overwrite it on the application, load and initialize the ad container, load creatives, and play ads in the ad container at the ad play time.

Benefits of technology

It improves the data processing efficiency and playback efficiency of advertisements and improves the playback effect of advertisements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112801684B_ABST
    Figure CN112801684B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method and device for playing advertisements. The method for playing advertisements includes: obtaining the advertisement container address, advertisement material address, and advertisement playing time when the application is running; generating a network view based on the advertisement playing time and overlaying it on the application, and loading and initializing the advertisement container in the network view based on the advertisement container address, and loading the advertisement material in the advertisement container based on the advertisement material address; finally, at the advertisement playing time, playing the advertisement in the advertisement container based on the advertisement material. The technical solution of the embodiments of the present application improves the data processing efficiency and playing efficiency of advertisements by loading advertisement containers and advertisement materials to play advertisements in terminal devices, and also improves the playing effect of advertisements.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer and communication technology, and in particular to a method and device for playing advertisements. Background Art

[0002] In the process of pushing advertisements to application terminals, advertisements are usually inserted at specific times, and after the user finishes watching the advertisements in the terminal, the application continues to run. For example, when a video in a video player software is played for half an hour, an advertisement video is inserted, and the video continues to play after the advertisement video ends. This method not only has a low click-through rate of advertisements, but also has poor interactive performance, especially in the process of transmitting and processing advertisement data, which is inefficient and affects the playback effect of advertisements. Summary of the invention

[0003] The embodiments of the present application provide a method and device for playing advertisements, thereby improving the data processing efficiency and the playing efficiency of advertisements at least to a certain extent, thereby improving the playing effect of advertisements.

[0004] Other features and advantages of the present application will become apparent from the following detailed description, or may be learned in part by the practice of the present application.

[0005] According to one aspect of an embodiment of the present application, a method for playing an advertisement is provided, including: obtaining an advertisement container address, an advertisement material address, and an advertisement playing time when an application is running; generating a network view based on the advertisement playing time and overlaying it on the application; loading and initializing an advertisement container in the network view based on the advertisement container address; loading advertisement material in the advertisement container based on the advertisement material address; and playing an advertisement in the advertisement container based on the advertisement material at the advertisement playing time.

[0006] According to one aspect of an embodiment of the present application, there is provided an advertisement playing device, comprising: an acquisition unit, for acquiring an advertisement container address, an advertisement material address, and an advertisement playing time when an application is running; a generation unit, for generating a network view based on the advertisement playing time and overlaying the network view on the application; a first loading unit, for loading and initializing an advertisement container in the network view based on the advertisement container address; a second loading unit, for loading the advertisement material in the advertisement container based on the advertisement material address; and a playing unit, for playing the advertisement in the advertisement container at the advertisement playing time based on the advertisement material.

[0007] In some embodiments of the present application, based on the aforementioned solution, the advertisement playing device further includes: a time determination unit, configured to determine the advertisement playing time based on the application display content and the advertisement material.

[0008] In some embodiments of the present application, based on the aforementioned solution, the generating unit includes: a view generating unit, configured to generate a transparent network view based on the advertisement playing time and overlay the view on the application.

[0009] In some embodiments of the present application, based on the aforementioned scheme, the playback unit includes: a setting unit, used to set the advertising container to a visible state at the time of the advertising playback; and a first playback unit, used to play the advertisement in the advertising container based on the advertising material.

[0010] In some embodiments of the present application, based on the aforementioned scheme, the setting unit includes: a message sending unit, which is used for, when the advertising material is loaded, the component of the advertising material sends a loading completion message to the advertising container to instruct the advertising container to send a playback preparation notification to the application; a state setting unit, which is used for setting the advertising container to a visible state after the application determines that the advertising container is ready to play and at the time of the advertisement playing.

[0011] In some embodiments of the present application, based on the aforementioned scheme, the playback unit includes: a second playback unit, configured to pause the application if it is detected that the advertising container is in a visible state and that the advertising material is ready, and to play the advertisement in the advertising container based on the advertising material at the advertisement playback time.

[0012] In some embodiments of the present application, based on the aforementioned solution, the advertisement playing device further includes: a deleting unit, configured to delete the advertisement and continue running the application if an error occurs in the advertisement playing or the advertisement playing ends.

[0013] In some embodiments of the present application, based on the aforementioned solution, the advertisement playback device further includes: a jump unit, which is used to jump from the advertisement playback interface to the product page corresponding to the advertisement when it is detected that a user clicks on the advertisement.

[0014] In some embodiments of the present application, based on the aforementioned scheme, the jump unit includes: a product view unit, used to generate a product network view in the application when it is detected that a user clicks on the advertisement; and a page loading unit, used to load the product page corresponding to the advertisement in the product network view.

[0015] According to one aspect of an embodiment of the present application, a computer-readable medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the advertisement playing method as described in the above embodiment is implemented.

[0016] According to one aspect of an embodiment of the present application, an electronic device is provided, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the advertisement playing method as described in the above embodiment.

[0017] In the technical solutions provided in some embodiments of the present application, the ad container address, ad material address, and ad play time are obtained when the application is running; a network view is generated based on the ad play time and overlaid on the application, and based on the ad container address, the ad container is loaded and initialized in the network view, and based on the ad material address, the ad material is loaded in the ad container; finally, at the ad play time, the ad is played in the ad container based on the ad material. By loading the ad container and ad material to play the ad in the terminal device, the data processing efficiency and play efficiency of the ad are improved, and the play effect of the ad is also improved.

[0018] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] The drawings herein are incorporated into the specification and constitute a part of the specification, showing embodiments consistent with the present application, and together with the specification, are used to explain the principles of the present application. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work. In the drawings:

[0020] Figure 1 A schematic diagram showing an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied;

[0021] Figure 2 A schematic diagram schematically shows an exemplary system architecture according to an embodiment of the present application;

[0022] Figure 3 A flowchart schematically shows a method for playing advertisements according to an embodiment of the present application;

[0023] Figure 4 A schematic diagram schematically shows data loading according to an embodiment of the present application;

[0024] Figure 5 A flowchart of playing an advertisement in an advertisement container based on an advertisement material according to an embodiment of the present application is schematically shown;

[0025] Figure 6A flowchart of playing advertisements based on advertisement materials according to an embodiment of the present application is schematically shown;

[0026] Figure 7 A flowchart of setting an advertisement container to a visible state according to an embodiment of the present application is schematically shown;

[0027] Figure 8 A flowchart schematically shows how a playback interface jumps to a product page according to an embodiment of the present application;

[0028] Fig. 9 A timing diagram schematically illustrates processing interactive advertisements according to an embodiment of the present application;

[0029] Fig.10 A block diagram schematically shows an advertisement playback device according to an embodiment of the present application;

[0030] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown. DETAILED DESCRIPTION

[0031] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be more comprehensive and complete and fully convey the concept of the example embodiments to those skilled in the art.

[0032] In addition, described feature, structure or characteristic can be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical scheme of the present application can be put into practice without one or more of the specific details, or other methods, components, devices, steps, etc. can be adopted. In other cases, known methods, devices, realizations or operations are not shown or described in detail to avoid blurring the various aspects of the application.

[0033] The block diagrams shown in the accompanying drawings are merely functional entities and do not necessarily correspond to physically independent entities. That is, these functional entities may be implemented in software form, or in one or more hardware modules or integrated circuits, or in different networks and / or processor devices and / or microcontroller devices.

[0034] The flowcharts shown in the accompanying drawings are only exemplary and do not necessarily include all the contents and operations / steps, nor must they be executed in the order described. For example, some operations / steps can be decomposed, and some operations / steps can be combined or partially combined, so the actual execution order may change according to actual conditions.

[0035] Figure 1 A schematic diagram of an exemplary system architecture to which the technical solution of the embodiments of the present application can be applied is shown.

[0036] like Figure 1 As shown, the system architecture may include terminal devices (such as Figure 1 The embodiment of the present invention is a schematic diagram of a mobile phone 101, a tablet computer 102, a portable computer 103, a desktop computer, etc., a network 104, and a server 105. The network 104 is used to provide a medium for a communication link between the terminal device and the server 105. The network 104 may include various connection types, such as a wired communication link, a wireless communication link, etc.

[0037] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. According to the implementation requirements, there may be any number of terminal devices, networks and servers. For example, the server 105 may be a server cluster composed of multiple servers.

[0038] The user can use the terminal device to interact with the server 105 through the network 104 to receive or send messages, etc. The server 105 can be a server that provides various services. For example, the user uses the terminal device 103 (or the terminal device 101 or 102) to make a service request to the server 105 to obtain the ad container address, ad material address, and ad play time when the application is running; based on the ad play time, a network view is generated and overlaid on the application, and based on the ad container address, the ad container is loaded and initialized in the network view, and based on the ad material address, the ad material is loaded in the ad container; finally, at the ad play time, the ad is played in the ad container based on the ad material. By loading the ad container and ad material to play the ad in the terminal device, the data processing efficiency and play efficiency of the ad are improved, and the play effect of the ad is also improved.

[0039] Please also read Figure 2As shown, the application in this embodiment is a video player, and the advertisement is a video advertisement. During the process of the video player running in the terminal device 201, the terminal device obtains the video advertisement container address, the video advertisement material address, and the video advertisement playback time during the process of the video player playing the video; based on the video advertisement playback time, a network view is generated and covered on the video player, and based on the video advertisement container address, the video advertisement container 202 is loaded and initialized in the network view; at the same time, based on the video advertisement material address, the video advertisement material is loaded in the video advertisement container, and finally at the video advertisement playback time, the advertisement is played in the video advertisement container based on the video advertisement material. By loading the advertisement container and the advertisement material to play the advertisement in the terminal device, the data processing efficiency and the playback efficiency of the advertisement are improved, thereby improving the playback effect of the advertisement.

[0040] For example, when a video content includes a shot of Coke, a Coke advertisement can be added to the video accordingly, and the playback time of the Coke shot in the video can be determined so that after the video content of Coke is played at that playback time, the Coke advertisement can be played immediately. In this way, on the basis of stimulating the user's senses and emotions based on the video content, the publicity effect of the advertisement can be further promoted and the value of the advertisement can be increased.

[0041] It should be noted that the advertising container 202 and the advertising material in this embodiment are not displayed on the interface of the terminal device 201 before the advertisement is played, wherein the advertising container 202 is a transparent network view, and the advertising material is data temporarily cached in the terminal device 201, so that the state of the advertising container 202 can be modified to a visible state at the time of advertisement playing, and the advertising material can be played in the advertising container 202.

[0042] The implementation details of the technical solution of the embodiment of the present application are described in detail below:

[0043] Figure 3 A flowchart of a method for playing advertisements according to an embodiment of the present application is shown. The method for playing advertisements can be executed by a terminal device, which can be Figure 1 The terminal equipment shown in . Figure 3 As shown, the advertisement playing method at least includes steps S310 to S350, which are described in detail as follows:

[0044] In step S310, the advertisement container address, advertisement material address, and advertisement playing time are obtained when the application is running.

[0045] In one embodiment of the present application, the advertisement is played when the terminal device runs the application. When the application is running, the advertisement container address, the advertisement material address and the advertisement playing time are obtained. In this embodiment, the method of obtaining the above information can be obtained from the server, which is not limited here.

[0046] In one embodiment of the present application, the advertising container address is used to call and load the advertising container, which is a transparent user interface loaded on the terminal interface during the running of the application, and is used to play advertisements in the advertising container; the advertising material address is used to load the advertising material, which includes the data required to play the advertisement, such as video, audio, animation or link, etc., which is not limited here; the advertisement playing time is used to play the advertisement when the time arrives.

[0047] In this embodiment, the advertisement container establishes a bridge between the application and the advertisement, and is used for data communication between the application and the advertisement component, such as transmitting instructions or transmitting advertisement material data, etc. Moreover, the advertisement container in this embodiment can be based on the nesting of the inline frame iframe, and by creating an inline frame containing another document, i.e., an inline frame, it is ensured that it cannot directly access the business data, ensuring data security, and giving it sufficient room for development.

[0048] In one embodiment of the present application, Figure 3 As shown, in addition to the above steps S310 to S350, the following steps are also included: determining the advertisement playing time based on the application display content and the advertisement material.

[0049] In one embodiment of the present application, the advertisement playing time can be a fixed time, which is used to achieve a good advertising effect at that time. Among them, the advertisement in this embodiment is related to the application display content. Therefore, when the advertisement is played, it is also when the application runs to a certain display content, so as to achieve the best advertisement display and promotion effect, increase the exposure click rate of the advertisement, and enhance the value of the advertisement.

[0050] In one embodiment of the present application, the advertisement playing time is determined based on the application display content and the advertising material. In the process of determining the advertisement playing time, the part of the advertising material associated with the application display content is first determined based on the application display content and the advertising material, and the part is identified as the advertisement playing time at the running time of the application display content.

[0051] Exemplarily, when the application is a video player, the video content played in the video player is determined, that is, the application display content, and the part of the video content related to the advertising material is identified, the playback time corresponding to the part in the video content is determined, and the playback time is identified as the advertising playback time.

[0052] For example, when a video content includes a shot of Coke, a Coke advertisement can be added to the video accordingly, and the playback time of the Coke shot in the video can be determined so that after the video content of Coke is played at that playback time, the Coke advertisement can be played immediately. In this way, on the basis of stimulating the user's senses and emotions based on the video content, the publicity effect of the advertisement can be further promoted and the value of the advertisement can be increased.

[0053] In step S320, a network view is generated based on the advertisement playing time and overlaid on the application.

[0054] In one embodiment of the present application, when the advertisement playing time arrives or there is still some time before the advertisement playing time, a network view is generated and overlaid on the application. The network view in this embodiment is used to load and display advertisements, and is used to display advertisements after network requests, that is, to display the content corresponding to the advertisement material in it.

[0055] The process of generating a network view based on the advertisement playing time and overlaying it on the application in step S320 includes: generating a transparent network view based on the advertisement playing time and overlaying it on the application.

[0056] In one embodiment of the present application, when the advertisement playing time arrives or there is still some time before the advertisement playing time, the generated network view is in a transparent state and is overlaid on the application. In this embodiment, the transparent network view is used to load the advertisement material and prepare for advertisement playing while the application is running, without affecting the normal operation of the application, thereby improving the efficiency of advertisement playing.

[0057] In step S330, based on the advertisement container address, an advertisement container is loaded and initialized in the network view.

[0058] In one embodiment of the present application, after the network view is generated, the ad container is loaded and initialized in the network view based on the ad container address. The ad container of this embodiment includes various components required for playing ads, such as ad material components, etc. The ad container in this embodiment serves as a bridge between the application and the ad, and is used to directly interact with the components between the applications, thereby improving the data transmission efficiency during the ad playback process.

[0059] In step S340, the advertising material is loaded into the advertising container based on the advertising material address.

[0060] In one embodiment of the present application, after the advertisement container is loaded, the advertisement material is loaded into the advertisement container. When loading the advertisement material, the advertisement material stored in the server or the advertisement material stored locally can be obtained based on the advertisement material address, and the advertisement material is loaded into the advertisement container. In this embodiment, the advertisement material can be in the form of video, audio, or animation, which is not limited here.

[0061] In addition, the advertising material can be loaded in the advertising container, or the advertising material can be loaded locally to the application terminal, so that the advertising material locally in the application terminal can be called through the application program and the advertisement can be played in the advertising container.

[0062] See also Figure 4 As shown, Figure 4 FIG. 1 is a schematic diagram of data loading provided by this embodiment. The loading process in this embodiment includes loading the advertisement container and the advertisement material. Figure 4 As shown, Figure 4 The video (Application, APP) in the video is the application. First, the interactive advertising material is preloaded 410. According to the preloading situation, when the preloading times out, the video APP is notified that the interactive advertising container has a loading error 420. When the preloading error occurs, the video APP is notified that the interactive advertising container has a loading error 430. When the advertising material is loaded successfully, the video APP is notified that the advertisement is ready 440.

[0063] In step S350, at the advertisement playing time, the advertisement is played in the advertisement container based on the advertisement material.

[0064] In one embodiment of the present application, Figure 5 As shown, in step S350, at the advertisement playing time, the process of playing the advertisement in the advertisement container based on the advertisement material includes the following steps S510 to S520, which are described in detail as follows:

[0065] In step S510, at the time of playing the advertisement, the advertisement container is set to be in a visible state.

[0066] In one embodiment of the present application, when the advertisement container is initially generated, the state of the advertisement container is a transparent state. At the time of advertisement playing, the advertisement container is set to a visible state.

[0067] Exemplarily, in the video player software, the advertisement container has been generated and the advertisement playing time has arrived. At the advertisement playing time, the advertisement container is set to a visible state, that is, on the interface of the video player software, the advertisement can be played through the visible advertisement container.

[0068] In one embodiment of the present application, the process of playing the advertisement in the advertisement container based on the advertisement material includes: if it is detected that the advertisement container is in a visible state and it is detected that the advertisement material is ready, pausing the running of the application, and playing the advertisement in the advertisement container based on the advertisement material at the advertisement playing time.

[0069] For example, see Figure 6 As shown, Figure 6 When the advertisement playing time point is reached 610, it is detected whether the interactive advertisement material is ready 620. If the interactive advertisement material is not ready, the interactive advertisement container is closed and the main film is continued to be played 630. If the interactive advertisement material is ready, the interactive container is notified to play the advertisement 640.

[0070] In one embodiment of the present application, Figure 7 As shown, the process of setting the advertisement container to a visible state at the advertisement playing time in step S510 includes the following steps S710 to S720, which are described in detail as follows:

[0071] In step S710, when the advertisement material is completely loaded, the component of the advertisement material sends a loading completion message to the advertisement container to instruct the advertisement container to send a play ready notification to the application.

[0072] In one embodiment of the present application, when the advertisement material is loaded, the component of the advertisement material sends a loading completion message to the advertisement container to instruct the advertisement container to send a play preparation notification to the application and play the advertisement when the play time arrives.

[0073] Exemplarily, during the process of an advertisement being played by a video player, when the interactive ad material is loaded successfully, the interactive ad container is notified, and the interactive ad container notifies the video App that the interactive ad is ready to be played; when an error occurs in loading the interactive ad material, the interactive ad container is notified of the error, the interactive ad container will notify the video App of the interactive ad error, and the video App will close the interactive ad container WebView; when the interactive ad container detects that the loading of the interactive ad material has timed out, it will notify the video App of the interactive ad error, and the video App will close the interactive ad container WebView.

[0074] In addition, in this embodiment, the advertising content can also be carried by means of a network worker WebWorker, so that the interactive WebView and the advertising material are in the same page context. By creating a multi-threaded environment, the main thread is allowed to create a Worker thread and assign some tasks to the latter to run. While the main thread is running, the Worker thread runs in the background, and the two do not interfere with each other. Wait until the Worker thread completes the calculation task, and then return the result to the main thread. The advantage of this is that some computationally intensive or high-latency tasks are borne by the Worker thread, and the main thread is usually responsible for the interaction of the user interface, so it will be very smooth and will not be blocked or slowed down, thereby improving the efficiency of advertising data processing and the effect of advertising display in this embodiment.

[0075] In step S720, after the application determines that the advertisement container is ready to play and at the advertisement playing time, the advertisement container is set to a visible state.

[0076] In one embodiment of the present application, after the application determines that the advertisement container is ready to play and at the advertisement playing time, the advertisement container is set to a visible state, so that when it is detected that the advertisement container is in a visible state, the advertisement is played in the advertisement container based on the advertisement material.

[0077] In step S520, an advertisement is played in the advertisement container based on the advertisement material.

[0078] In one embodiment of the present application, when it is detected that the advertisement container is in a visible state and the advertisement material is ready, the application is paused, and the advertisement is played in the advertisement container based on the advertisement material at the advertisement playing time.

[0079] Wherein, after the process of playing the advertisement in the advertisement container based on the advertisement material in step S320, the process further includes: when it is detected that a user clicks on the advertisement, jumping from the advertisement playing interface to the product page corresponding to the advertisement.

[0080] In one embodiment of the present application, during the playing of an advertisement, the user may click on the advertisement interface to jump to the product page corresponding to the advertisement through the advertisement interface to obtain the product details in the advertisement.

[0081] When it is detected that a user clicks on the advertisement, the process of jumping from the advertisement playback interface to the product page corresponding to the advertisement specifically includes steps S810 to S820, which are described in detail as follows:

[0082] In step S810, when it is detected that a user clicks on the advertisement, a product network view is generated in the application.

[0083] In one embodiment of the present application, a user can click on the advertisement interface while watching an advertisement to obtain the advertisement information corresponding to the advertisement. When it is detected that the user clicks on the advertisement, a product network view is generated in the application program for jumping to the product page corresponding to the product through the product network view.

[0084] For example, in this embodiment, a component for detecting user click triggers is set on the advertisement interface. When the user clicks on the advertisement interface, it can be determined that the user clicks on the advertisement. In addition, an area can be set at a specific position on the advertisement interface, such as the upper right corner, and the words "product details" can be displayed. When the user needs to view the product details, he can click on the product details in the upper right corner of the interface, and the page will start to jump to the product page corresponding to the advertisement.

[0085] The video ads in this embodiment contain plots, which are much richer than those of rich media ads, and the interactive methods are flexible and diverse in style. In such a scenario, interactive video ads can provide a way to attract users, allow users to actively operate ads, and guide interactions, which will increase the exposure and click-through rate of ads. For advertisers, the interactive method enriches the presentation of video ads, thereby improving the conversion rate and value of ads. For users, the disturbing experience brought by the single form of ads in the past is eliminated, and the viewing experience is improved compared to past ad forms. At the same time, the video ads in this embodiment can be based on mature Hyper Text Markup Language 5 (HTML5) technology and video players, allowing developers to quickly and easily access and improve development efficiency.

[0086] In step S820, a product page corresponding to the advertisement is loaded in the product network view.

[0087] In one embodiment of the present application, after a product network view is generated, the product page corresponding to the product is recorded in the product network view, that is, jumping to the specific advertising product landing page, so that users can obtain more product information through the product page, allowing users to actively operate advertisements and guide the ability to interact, which will increase the exposure and click-through rate of advertisements and enhance the value of advertisements.

[0088] like Fig. 9 As shown, Fig. 9 A timing diagram for processing interactive advertisements provided in an embodiment of the present application. In one embodiment of the present application, the application is a video APP, the advertisement container is an interactive advertisement container, and the advertisement is a video advertisement. Fig. 9In the figure, WebView represents the independent browser operating environment provided by the video APP. The interactive ad container represents the intermediate proxy layer between the video APP and the interactive ad material. It is the container of the interactive video ad and provides the communication interface between the video APP and the interactive video ad. The whole process proceeds from left to right along the timeline. The steps are as follows:

[0089] S901: The user enters the video playback details page.

[0090] S902: The video APP requests the interactive advertising container uniform resource locator (Uniform Resource Locator, URL) and the video advertising material URL from the video advertising background.

[0091] S903: The video APP opens a new WebView to cover the current player, and loads and initializes the interactive advertising container during a preset period before the advertisement playing time, for example, 10 seconds before the advertisement playing time.

[0092] S904: The interactive advertisement container obtains the interactive advertisement material link from the URL parameter and preloads the interactive advertisement material.

[0093] Among them, when preloading interactive ad materials, three possible situations may occur: (1) When the interactive ad material is loaded successfully, the interactive ad container is notified, and the interactive ad container notifies the video app that the interactive ad is ready to play. (2) When an error occurs when the interactive ad material is loaded, the interactive ad container is notified of the error, and the interactive ad container notifies the video app of the interactive ad error, and the video app closes the interactive ad container WebView. (3) When the interactive ad container detects that the interactive ad material has timed out, it notifies the video app of the interactive ad error, and the video app closes the interactive ad container WebView.

[0094] S905: When the ad is ready to play, the video App determines that the interactive ad is ready to play (notifyPageReady), and then notifies the interactive ad container that it can play, and sets the interactive ad container to a visible state. The interactive ad container determines that it is currently in a visible state, and then notifies the interactive ad material to start playing the ad video in the container. In addition, if the interactive ad material is not ready to play at this time, the main video will continue to play directly, and the interactive ad will not be displayed during the current playback.

[0095] S906: The interactive video advertisement obtains relevant information of the current advertisement from the video APP, including parameters such as data reporting, exposure, and clicks (getAdOrderInfo).

[0096] S907: When the advertisement playing time arrives, the video APP notifies the interactive video advertisement that it can be played (setPagePlayAction).

[0097] S908: When the user clicks on the advertisement jump link, the video APP is notified to open the specific product page of the advertisement (clickJumpActionHandle).

[0098] Specifically, during the playback process, when the details of the interactive advertising material are clicked, the interactive advertising material notifies the interactive advertising container, and the interactive advertising container handles this click event and notifies the App to open a new WebView and jump to the specific advertising product landing page.

[0099] S909: indicates a protective measure. When an ad cannot be played due to a network error or other reasons, the video app is notified to close the ad in time without affecting the playback of the main video (callbackH5PlayError).

[0100] Specifically, when an error occurs during the advertisement playback, the interactive advertisement container is notified through the interface, and the interactive advertisement container notifies the App to destroy the current advertisement and continue to play the main video.

[0101] S910: When the advertisement ends normally, the interactive advertisement container is notified through the interface, and the interactive advertisement container notifies the App to destroy the current advertisement and continue playing the main video.

[0102] The following describes an embodiment of the device of the present application, which can be used to execute the advertisement playing method in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the advertisement playing method in the above embodiment of the present application.

[0103] Fig.10 A block diagram of an advertisement playing device according to an embodiment of the present application is shown.

[0104] Reference Fig.10 As shown, an advertisement playing device 1000 according to an embodiment of the present application includes:

[0105] The acquisition unit 1010 is used to acquire the advertisement container address, the advertisement material address, and the advertisement playing time when the application is running; the generation unit 1020 is used to generate a network view based on the advertisement playing time and overlay it on the application; the first loading unit 1030 is used to load and initialize the advertisement container in the network view based on the advertisement container address; the second loading unit 1040 is used to load the advertisement material in the advertisement container based on the advertisement material address; the playback unit 1050 is used to play the advertisement in the advertisement container at the advertisement playing time based on the advertisement material.

[0106] In some embodiments of the present application, based on the aforementioned solution, the advertisement playing device 1000 further includes: a time determination unit, configured to determine the advertisement playing time based on the application display content and the advertisement material.

[0107] In some embodiments of the present application, based on the aforementioned solution, the generating unit 1020 includes: a view generating unit, configured to generate a transparent network view based on the advertisement playing time and overlay the view on the application.

[0108] In some embodiments of the present application, based on the aforementioned scheme, the playback unit 1050 includes: a setting unit, used to set the advertising container to a visible state at the time of the advertising playback; and a first playback unit, used to play the advertisement in the advertising container based on the advertising material.

[0109] In some embodiments of the present application, based on the aforementioned scheme, the setting unit includes: a message sending unit, which is used for, when the advertising material is loaded, the component of the advertising material sends a loading completion message to the advertising container to instruct the advertising container to send a playback preparation notification to the application; a state setting unit, which is used for setting the advertising container to a visible state after the application determines that the advertising container is ready to play and at the time of the advertisement playing.

[0110] In some embodiments of the present application, based on the aforementioned scheme, the playback unit 1050 includes: a second playback unit, configured to pause the application if it is detected that the advertising container is in a visible state and that the advertising material is ready, and to play the advertisement in the advertising container based on the advertising material at the advertisement playback time.

[0111] In some embodiments of the present application, based on the aforementioned solution, the advertisement playing device 1000 further includes: a deleting unit, configured to delete the advertisement and continue to run the application if an error occurs in the advertisement playing or the advertisement playing ends.

[0112] In some embodiments of the present application, based on the aforementioned solution, the advertisement playback device 1000 further includes: a jump unit, configured to jump from the advertisement playback interface to a product page corresponding to the advertisement when detecting that a user clicks on the advertisement.

[0113] In some embodiments of the present application, based on the aforementioned scheme, the jump unit includes: a product view unit, used to generate a product network view in the application when it is detected that a user clicks on the advertisement; and a page loading unit, used to load the product page corresponding to the advertisement in the product network view.

[0114] Fig.11 A schematic diagram of the structure of a computer system suitable for implementing an electronic device of an embodiment of the present application is shown.

[0115] It should be noted that Fig.11 The computer system 1100 of the electronic device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0116] like Fig.11 As shown, the computer system 1100 includes a central processing unit (CPU) 1101, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 1102 or the program loaded from the storage part 1108 to the random access memory (RAM) 1103, such as executing the method described in the above embodiment. Various programs and data required for system operation are also stored in the RAM 1103. The CPU 1101, the ROM 1102 and the RAM 1103 are connected to each other through the bus 1104. The input / output (I / O) interface 1105 is also connected to the bus 1104.

[0117] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, etc.; an output section 1107 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 1108 including a hard disk, etc.; and a communication section 1109 including a network interface card such as a LAN (Local Area Network) card, a modem, etc. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. A removable medium 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 1110 as needed so that a computer program read therefrom is installed into the storage section 1108 as needed.

[0118] In particular, according to an embodiment of the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a computer program for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through the communication part 1109, and / or installed from a removable medium 1111. When the computer program is executed by the central processing unit (CPU) 1101, various functions defined in the system of the present application are executed.

[0119] It should be noted that the computer-readable medium shown in the embodiment of the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier, which carries a computer-readable computer program. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0120] The flowchart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operations of the system, method and computer program product according to various embodiments of the present application. Wherein, each box in the flowchart or block diagram can represent a module, a program segment, or a part of the code, and the above-mentioned module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flowchart, and the combination of boxes in the block diagram or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0121] The units involved in the embodiments described in this application may be implemented by software or hardware, and the units described may also be set in a processor. The names of these units do not, in some cases, constitute limitations on the units themselves.

[0122] As another aspect, the present application also provides a computer-readable medium, which may be included in the electronic device described in the above embodiment; or may exist independently without being assembled into the electronic device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by an electronic device, the electronic device implements the method described in the above embodiment.

[0123] It should be noted that, although several modules or units of the equipment for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present application, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into being embodied by multiple modules or units.

[0124] Through the description of the above implementation methods, it is easy for those skilled in the art to understand that the example implementation methods described here can be implemented by software, or by combining software with necessary hardware. Therefore, the technical solution according to the implementation method of the present application can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, including several instructions to enable a computing device (which can be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the implementation method of the present application.

[0125] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the embodiments disclosed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary technical means in the art that are not disclosed in the present application.

[0126] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for playing an advertisement, characterized in that: include: Get the ad container address, ad material address, and ad play time when the application is running; In a preset period before the advertisement playing time, a network view is generated and overlaid on the application; the network view is an independent browser operating environment provided by the application; Based on the advertisement container address, loading and initializing an advertisement container in the network view; Based on the advertising material address, loading the advertising material into the advertising container; At the advertisement playing time, playing the advertisement in the advertisement container based on the advertisement material; The method further comprises: The advertisement playing time is determined based on the application presentation content and the advertisement material.

2. The method according to claim 1, characterized in that At a preset time period before the advertisement playing time, a network view is generated and overlaid on the application, including: During a preset period of time before the advertisement playing time, a network view in a transparent state is generated and overlaid on the application.

3. The method according to claim 1, characterized in that At the advertisement playing time, playing the advertisement in the advertisement container based on the advertisement material includes: At the time when the advertisement is played, setting the advertisement container to a visible state; An advertisement is played in the advertisement container based on the advertisement creative.

4. The method according to claim 3, characterized in that At the advertisement playing moment, setting the advertisement container to a visible state includes: When the advertisement material is loaded completely, the component of the advertisement material sends a loading completion message to the advertisement container to instruct the advertisement container to send a play preparation notification to the application; After the application determines that the advertisement container is ready to be played and at the advertisement playing time, the advertisement container is set to a visible state.

5. The method according to claim 1, characterized in that At the advertisement playing time, playing the advertisement in the advertisement container based on the advertisement material includes: If it is detected that the advertisement container is in a visible state and the advertisement material is ready, the application is paused and the advertisement is played in the advertisement container based on the advertisement material at the advertisement playing time.

6. The method according to claim 1, characterized in that At the advertisement playing time, after the advertisement is played in the advertisement container based on the advertisement material, the method further includes: If an error occurs in playing the advertisement or the playing of the advertisement ends, the advertisement is deleted and the application continues to run.

7. The method according to claim 1, characterized in that Also includes: When it is detected that the user clicks on the advertisement, the user is redirected from the advertisement playback interface to the product page corresponding to the advertisement.

8. The method according to claim 7, characterized in that When it is detected that a user clicks on the advertisement, jumping from the advertisement playback interface to the product page corresponding to the advertisement includes: When detecting that a user clicks on the advertisement, generating a product web view in the application; The product page corresponding to the advertisement is loaded in the product network view.

9. An advertisement playing device, characterized in that: include: An acquisition unit, used to acquire the advertisement container address, advertisement material address, and advertisement playing time when the application is running; A generating unit, configured to generate a network view and overlay the network view on the application program during a preset period before the advertisement playing time; the network view is an independent browser operating environment provided by the application program; A first loading unit, configured to load and initialize an advertisement container in the network view based on the advertisement container address; A second loading unit, configured to load the advertising material into the advertising container based on the advertising material address; A playing unit, configured to play the advertisement in the advertisement container based on the advertisement material at the advertisement playing time; The time determination unit is used to determine the advertisement playing time based on the application display content and the advertisement material.

10. A computer-readable medium, characterized in that A computer program is stored, and when the computer program is executed by a processor, the advertisement playing method according to any one of claims 1 to 8 is implemented.

11. An electronic device, characterized in that: include: one or more processors; A storage device, used for storing one or more programs, when the one or more programs are executed by the one or more processors, enables the one or more processors to implement the advertisement playing method according to any one of claims 1-8.

12. A computer program product, characterized in that The invention comprises a computer program carried on a computer-readable medium, wherein the computer program comprises a computer program for implementing the advertisement playing method according to any one of claims 1 to 8.