Disclosure of Invention
The embodiment of the invention provides a method, a device, equipment and a storage medium for advertisement operation, which solve the problem of poor universality of a developed SDK.
In order to solve the technical problems, the invention comprises the following steps:
in a first aspect, a method for advertisement operation is provided, which is applied to a terminal device, and includes:
receiving a Software Development Kit (SDK), wherein the SDK comprises preset scripts for running advertisements on a plurality of platforms;
acquiring a platform identifier of a current operation interface of the terminal equipment;
determining a first target script from preset scripts included in the SDK according to the platform identification;
and executing the first target script and displaying the advertisement content.
In some implementations of the first aspect, the first target script includes an initialization script; executing a first target script to display advertising content, comprising:
according to the initialization script, executing the initialization of the SDK to obtain initialized data;
and generating and displaying advertisement content according to the initialized data.
In some implementations of the first aspect, the method further comprises:
receiving a downloading request input by a user based on the advertisement content;
determining a download script from preset scripts according to the download request and the platform identification;
and downloading the target SDK corresponding to the SDK according to the downloading script.
In some implementations of the first aspect, the method further comprises:
when the platform identification meets a preset condition, determining a reporting script from a preset script;
and reporting and executing data of a preset script in the SDK and/or instruction information input by a user based on the advertisement content based on the reporting script.
In a second aspect, there is provided an apparatus for advertisement operation, the apparatus comprising:
the system comprises a receiving module, a processing module and a display module, wherein the receiving module is used for receiving a Software Development Kit (SDK), and the SDK comprises preset scripts for running advertisements on a plurality of platforms;
the acquisition module is used for acquiring a platform identifier of a current operation interface of the terminal equipment;
the processing module is used for determining a first target script from preset scripts included in the SDK according to the platform identification;
and the display module is used for executing the first target script and displaying the advertisement content.
In some implementations of the second aspect, the first target script includes an initialization script; the display module is also used for executing the initialization of the SDK according to the initialization script to obtain initialized data;
and the display module is also used for generating and displaying the advertisement content according to the initialized data.
In some implementations of the second aspect, the receiving module is further configured to receive a download request input by a user based on the advertisement content;
the processing module is also used for determining a download script from the preset scripts according to the download request and the platform identification;
and the processing module is also used for downloading the target SDK corresponding to the SDK according to the downloading script.
In some implementations of the second aspect, the apparatus further includes a reporting module;
the processing module is also used for determining a reporting script from the preset scripts when the platform identification meets the preset condition;
and the reporting module is used for reporting and executing data of the preset script in the SDK and/or instruction information input by the user based on the advertisement content based on the reporting script.
In a third aspect, an electronic device is provided, the device comprising: a processor and a memory storing computer program instructions;
the processor, when executing the computer program instructions, implements the first aspect and methods of advertisement execution in some implementations of the first aspect.
In a fourth aspect, a computer storage medium is provided having computer program instructions stored thereon that, when executed by a processor, implement the first aspect and a method of advertisement execution in some implementations of the first aspect.
The embodiment of the invention provides a method, a device, equipment and a storage medium for advertisement operation. Firstly, receiving a Software Development Kit (SDK), wherein the SDK comprises preset scripts for running advertisements on a plurality of platforms; then, acquiring a platform identifier of a current operation interface of the terminal equipment; then, according to the platform identification, determining a first target script from preset scripts included in the SDK; and finally, executing the first target script and displaying the advertisement content. Because the received SDK has the preset scripts for the advertisement to run on the multiple platforms, the first target script matched with the platform identification can be selected from the preset scripts according to the platform identification of the current running interface of the terminal equipment, the first target script is executed, and the advertisement content is displayed.
Detailed Description
Features and exemplary embodiments of various aspects of the present invention will be described in detail below, and in order to make objects, technical solutions and advantages of the present invention more apparent, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not to be construed as limiting the invention. It will be apparent to one skilled in the art that the present invention may be practiced without some of these specific details. The following description of the embodiments is merely intended to provide a better understanding of the present invention by illustrating examples of the present invention.
It is noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Interactive trial advertisement (playable ads) is a novel interactive advertisement, and compared with traditional advertisements, the interactive trial advertisement can enable a user to experience APP content in advance on the premise that the APP is not downloaded, and the user click download will is improved. The nature of the interactive try-and-play advertisement is essentially an html5 web page that accesses the advertiser SDK.
At present, a plurality of advertisement factories which are mainstream in China provide access to interactive trial advertisements, but the access modes of all advertisement channels are different, so that the development time for independently developing the interactive advertisements for each channel is high, and the subsequent process also brings great maintenance cost.
In the existing advertisement Development process, a developed Software Development Kit (SDK) cannot access to a multi-channel advertisement platform, so that the problem of poor universality of the developed SDK exists, and the SDK cannot be developed once while supporting mainstream advertisement channels in the market.
In order to solve the problem that the developed SDK is poor in universality in the existing scheme, the embodiment of the invention provides a method, a device, equipment and a storage medium for advertisement operation, wherein the method comprises the steps of firstly receiving a Software Development Kit (SDK), wherein the SDK comprises preset scripts for running advertisements on a plurality of platforms; then, acquiring a platform identifier of a current operation interface of the terminal equipment; then, according to the platform identification, determining a first target script from preset scripts; and finally, executing the first target script and displaying the advertisement content. Because the SDK has the preset scripts for the advertisement to run on the multiple platforms, the first target script matched with the platform identifier can be selected from the preset scripts according to the platform identifier of the current running interface of the terminal equipment, the first target script is executed, and the advertisement content is displayed, so that the advertisement content in the SDK is supported to run and display on the multiple platforms, and the universality is good.
The technical solutions provided by the embodiments of the present invention are described below with reference to the accompanying drawings.
Fig. 1 is a flowchart of a method for running an advertisement according to an embodiment of the present invention, where an execution subject of the method may be a terminal device.
As shown in fig. 1, the method for running an advertisement may specifically include:
s101: and receiving the SDK, wherein the SDK comprises preset scripts for running the advertisements on the plurality of platforms.
Specifically, the process of receiving the SDK in S101 may also be to acquire the SDK, as long as the SDK can be acquired, and the acquisition manner is not limited.
The SDK may be an SDK of a specific advertisement a, and the SDK may include a preset script that the advertisement a runs on multiple platforms. And when a certain platform of the terminal equipment runs a corresponding preset script, displaying specific advertisements included in the SDK on the terminal equipment.
The platform may be an entertainment video Application (APP) installed in the terminal device, or a webpage browsed by the user.
S102: and acquiring a platform identifier of a current operation interface of the terminal equipment.
In an embodiment, after the terminal device receives an SDK of a specific advertisement, a page of the html5 webpage may obtain an instance of an advertisement platform SDK corresponding to a current operation interface of the terminal device, where the instance of the advertisement platform SDK is the platform identifier, and the advertisement platform may be, for example, different entertainment video APPs, different news APPs, or other APPs that may be operated on the terminal device, which is not limited herein.
S103: and determining a first target script from preset scripts included in the SDK according to the platform identification.
In one embodiment, taking a platform identifier of a first advertisement platform as an example, a first target script is determined from preset scripts run by multiple platforms by an advertisement included in an SDK according to the platform identifier of the first advertisement platform, where the first target script is a script corresponding to the first advertisement platform.
S104: and executing the first target script and displaying the advertisement content.
In an embodiment, the specific process of S104 may be to execute a script corresponding to the first advertisement platform, and generate and display advertisement content according to data obtained after execution, so as to display the advertisement content in the SDK.
According to the advertisement running method provided by the embodiment of the invention, because the received SDK has the preset scripts for running the advertisement on the multiple platforms, the first target script matched with the platform identification can be selected from the preset scripts included in the SDK according to the platform identification of the current running interface of the terminal equipment, the first target script is executed, and the advertisement content is displayed, so that the advertisement content in the SDK is supported to run and displayed on the multiple platforms, and the universality is better.
In a specific embodiment, taking a plurality of advertisement vendors as an example, the preset script for running the advertisement included in the SDK of S101 on the plurality of platforms may include a first advertisement platform initialization code, a second advertisement platform initialization code, and a third advertisement platform initialization code, where the initialization codes are used to perform SDK initialization and generate and display advertisement content included in the SDK.
In one embodiment, the specific process of acquiring the platform identifier of the current operation interface of the terminal device in S102 is as follows: after the terminal device accesses the SDK of a specific advertisement, the page of the html5 webpage may obtain an instance of the SDK of the advertisement platform corresponding to the current running interface, where the instance of the SDK of the advertisement platform is the platform identifier.
Therefore, after acquiring the instance of the advertisement platform SDK, the specific process of S103 may be: the terminal equipment judges the advertisement platform where the current running interface is located according to the instance of the advertisement platform SDK under the page, and then calls a first target script corresponding to the advertisement platform from a preset script included in the SDK.
The examples of the advertisement platform SDK may be examples of the first advertisement platform SDK, examples of the second advertisement platform SDK, and examples of the third advertisement platform SDK, corresponding to the preset scripts of the first advertisement platform initialization code, the second advertisement platform initialization code, and the third advertisement platform initialization code included in S101.
In the SDK provided in the embodiment of the present invention, 3 functions, init (), download (), and report (), are provided to the outside to respectively complete the functions of SDK initialization, trigger download, and data reporting.
In one embodiment, to enable the content in the SDK to be displayed on the terminal device, the SDK is built-in with an SDK initialization function.
Fig. 2 shows a schematic flow chart of SDK initialization, that is, init (), and with reference to fig. 2, the specific process of S103 may be: when detecting that the instance of the first advertisement platform SDK exists, calling a first advertisement platform initialization code from a preset script included in the SDK; when detecting that the instance of the second advertisement platform SDK exists, calling a second advertisement platform initialization code from a preset script included in the SDK; and when detecting that the instance of the first advertisement platform SDK and the instance of the second advertisement platform SDK do not exist, namely the instance of the third advertisement platform SDK exists, calling the initialization code of the third advertisement platform from the preset script included in the SDK.
After the platform identifier of the current running interface is acquired and the corresponding advertisement platform initialization code is determined from the preset script according to the platform identifier, that is, the initialization script, the first target script is executed in S104, and the specific process of displaying the advertisement content may be as follows: executing SDK initialization according to the initialization script to obtain initialized data; and then generating and displaying the advertisement content according to the initialized data so as to display the advertisement content in the SDK.
Because the initialization script, namely the advertisement platform initialization code, corresponds to different advertisement platforms, the process of displaying the advertisement content in the SDK can be displayed for different platforms, thereby improving the universality of the SDK.
In one embodiment, in order to realize the target SDK for downloading the complete application software corresponding to the SDK, a trigger download function is built in the SDK.
After the SDK is initialized and the advertisement content is displayed, the user may input a request for downloading the complete software corresponding to the SDK, that is, a download request, based on the advertisement content displayed by the terminal device, and after receiving the download request, the terminal device may determine a download script from a preset script included in the SDK, that is, trigger a download function, and download a target SDK corresponding to the SDK according to the download script, so as to complete installation of the complete software according to the target SDK. The downloading request is a selection made by the user based on the advertisement content displayed by the terminal device and the interest and the demand of the user, and the target SDK is an SDK of the complete application software corresponding to a specific advertisement SDK.
In one embodiment, corresponding to the above-mentioned advertisement platform, the preset script included in the SDK may include a first advertisement platform download code, a second advertisement platform download code, and a third advertisement platform download code.
Fig. 3 shows a schematic flowchart of a process of downloading a target SDK, that is, download (), where, with reference to fig. 3, the specific process of determining a download script from preset scripts included in the SDK according to the download request and the detected platform identifier, and downloading the target SDK corresponding to the SDK according to the download script may be: when the fact that the first advertisement platform SDK exists is detected, a first advertisement platform downloading code is called from a preset script included in the SDK, and a target SDK corresponding to the SDK is downloaded according to the first advertisement platform downloading code; when the second advertisement platform SDK instance is detected to exist, calling a second advertisement platform download code from a preset script included in the SDK, and downloading a target SDK corresponding to the SDK according to the second advertisement platform download code; and when detecting that the instance of the first advertisement platform SDK and the instance of the second advertisement platform SDK do not exist, namely the instance of the third advertisement platform SDK exists, calling a third advertisement platform download code from a preset script included in the SDK, and downloading the target SDK corresponding to the SDK according to the third advertisement platform download code.
In one embodiment, in order to enable a developer to obtain the operation condition of the SDK on the terminal device for subsequent adjustment, a data reporting function, i.e., report (), may be further built in the SDK.
In one embodiment, the data reporting process may be performed when it is detected that the existing platform identifier is an instance of the third advertisement platform SDK. The reported data may specifically include data for executing a preset script in the SDK, and/or instruction information input by the user based on the advertisement content, where the data for executing the preset script in the SDK may include time data for the terminal device to execute the preset script in the SDK and category data for executing the preset script in the SDK; the instruction information input by the user based on the advertisement content may include information that the user inputs a download instruction and time information that the user closes the advertisement content.
According to the advertisement running method provided by the embodiment of the invention, because the received SDK has the preset scripts for running the advertisement on the multiple platforms, the first target script matched with the platform identification can be selected from the preset scripts according to the platform identification of the current running interface of the terminal equipment, the first target script is executed, and the advertisement content is displayed, so that the advertisement content in the SDK is supported to run and displayed on the multiple platforms, the universality is good, and the SDK is compatible with the multiple advertisement platforms, so that the high-efficiency development experience of the SDK in one-time development and running everywhere can be realized.
Corresponding to the method for running the advertisement in fig. 1, the embodiment of the invention also provides a device for running the advertisement.
Fig. 4 is a schematic structural diagram of an advertisement running apparatus according to an embodiment of the present invention, and as shown in fig. 4, the advertisement running apparatus may include: a receiving module 401, an obtaining module 402, a processing module 403 and a display module 404.
The receiving module 401 may be configured to receive an SDK, where the SDK includes a preset script for running an advertisement on multiple platforms.
The obtaining module 402 may be configured to obtain a platform identifier of a current operation interface of the terminal device.
The processing module 403 may be configured to determine the first target script from preset scripts included in the SDK according to the platform identifier.
The display module 404 may be configured to execute the first target script and display the advertising content.
In one embodiment, the first target script comprises an initialization script; the display module 404 may be further configured to execute initialization of the SDK according to the initialization script to obtain initialized data; and generating and displaying advertisement content according to the initialized data.
In one embodiment, the receiving module 401 may be further configured to receive a download request input by a user based on the advertisement content;
the processing module 403 may also be configured to determine a download script from preset scripts included in the SDK according to the download request and the platform identifier; and downloading the target SDK corresponding to the SDK according to the downloading script.
In an embodiment, the apparatus for advertisement running further includes a reporting module, and the processing module 403 is further configured to determine a reporting script from the preset scripts when the platform identifier meets the preset condition;
and the reporting module can be used for reporting and executing data of the preset script in the SDK and/or instruction information input by the user based on the advertisement content based on the reporting script.
It can be understood that each module in the advertisement running apparatus shown in fig. 4 has a function of implementing each step in fig. 1, and can achieve the corresponding technical effect, and for brevity, no further description is provided herein.
According to the advertisement running device provided by the embodiment of the invention, because the received SDK has the preset scripts for running the advertisement on the multiple platforms, the first target script matched with the platform identification can be selected from the preset scripts included in the SDK according to the platform identification of the current running interface of the terminal equipment, the first target script is executed, and the advertisement content is displayed, so that the advertisement content in the SDK is supported to run and displayed on the multiple platforms, the universality is good, and the SDK is compatible with the multiple advertisement platforms, so that the efficient development experience of running the SDK everywhere in one time can be realized.
Fig. 5 is a block diagram of a hardware architecture of a computing device according to an embodiment of the present invention. As shown in fig. 5, computing device 500 includes an input interface 501, a central processor 502, a memory 503, and a display 504. The input interface 501, the central processing unit 502, the memory 503, and the display 504 are connected to each other via a bus 510.
Specifically, the input interface 501 is configured to receive an SDK, where the SDK includes preset scripts for running advertisements on multiple platforms, and transmit the received SDK to the central processing unit 502; the central processor 502 obtains a platform identifier of a current operation interface of the terminal device based on the computer executable instruction stored in the memory 503, determines a first target script from preset scripts included in the SDK according to the platform identifier, executes the first target script, generates image data, temporarily or permanently stores the image data in the memory 503, and then displays the generated image data through the display 504.
That is, the computing device shown in fig. 5 may also be implemented as an advertisement running device, which may include: a processor and a memory storing computer executable instructions; the processor, when executing the computer-executable instructions, may implement the method of advertisement execution provided by embodiments of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, where the computer-readable storage medium has computer program instructions stored thereon; the computer program instructions, when executed by a processor, implement a method for advertisement execution as provided by embodiments of the present invention.
It is to be understood that the invention is not limited to the specific arrangements and instrumentality described above and shown in the drawings. A detailed description of known methods is omitted herein for the sake of brevity. In the above embodiments, several specific steps are described and shown as examples. However, the method processes of the present invention are not limited to the specific steps described and illustrated, and those skilled in the art can make various changes, modifications and additions or change the order between the steps after comprehending the spirit of the present invention.
The functional blocks shown in the above-described structural block diagrams may be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, it may be, for example, an electronic Circuit, an Application Specific Integrated Circuit (ASIC), suitable firmware, plug-in, function card, or the like. When implemented in software, the elements of the invention are the programs or code segments used to perform the required tasks. The program or code segments may be stored in a machine-readable medium or transmitted by a data signal carried in a carrier wave over a transmission medium or a communication link. A "machine-readable medium" may include any medium that can store or transfer information. Examples of machine-readable media include electronic circuits, semiconductor Memory devices, Read-Only memories (ROMs), flash memories, Erasable Read-Only memories (EROMs), floppy disks, Compact disk Read-Only memories (CD-ROMs), optical disks, hard disks, optical fiber media, Radio Frequency (RF) links, and so forth. The code segments may be downloaded via computer networks such as the internet, intranet, etc.
It should also be noted that the exemplary embodiments mentioned in this patent describe some methods or systems based on a series of steps or devices. However, the present invention is not limited to the order of the above-described steps, that is, the steps may be performed in the order mentioned in the embodiments, may be performed in an order different from the order in the embodiments, or may be performed simultaneously.
Aspects of the present disclosure are described above with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the disclosure. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, enable the implementation of the functions/acts specified in the flowchart and/or block diagram block or blocks. Such a processor may be, but is not limited to, a general purpose processor, a special purpose processor, an application specific processor, or a field programmable logic circuit. It will also be understood that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware for performing the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As described above, only the specific embodiments of the present invention are provided, and it can be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the system, the module and the unit described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again. It should be understood that the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive various equivalent modifications or substitutions within the technical scope of the present invention, and these modifications or substitutions should be covered within the scope of the present invention.