Illegal advertisement identification method and device, electronic equipment and storage medium

By automatically matching the mobile advertising feature data in fast applications with preset illegal advertising feature data, the problems of low recognition accuracy and low efficiency caused by relying on manual review in the prior art are solved, and more efficient and accurate identification of illegal mobile advertising is achieved.

CN119598214APending Publication Date: 2025-03-11VIVO MOBILE COMM CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411658079.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-11-19
Publication Date
2025-03-11

AI Technical Summary

Technical Problem

The prior art relies on manual review when identifying illegal mobile advertisements in fast applications, resulting in low recognition accuracy and low efficiency.

Method used

By obtaining mobile ad ad feature data in fast applications, matching with preset illegal ad feature data, generating violation results, and automatically determining whether the mobile ad is a illegal mobile ad.

Benefits of technology

It improves the accuracy and efficiency of identifying illegal mobile advertisements, reduces manual participation, and effectively avoids the proliferation of illegal mobile advertisements in fast applications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119598214A_ABST
    Figure CN119598214A_ABST
Patent Text Reader

Abstract

The invention discloses a violation advertisement identification method and device, electronic equipment and a storage medium, and belongs to the technical field of artificial intelligence. The method comprises the following steps: acquiring advertisement feature data of a mobile advertisement in a fast application; matching the advertisement feature data with the illegal advertisement feature data to obtain a matching result; and under the condition that the matching result shows that the advertisement feature data is matched with the illegal advertisement feature data, generating an illegal result which is a result that the mobile advertisement is an illegal mobile advertisement.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of artificial intelligence technology, and specifically relates to a method, device, electronic device and storage medium for identifying illegal advertisements. Background Art

[0002] With the rapid development of electronic device technology and mobile Internet, quick applications have emerged. Quick applications are new mobile applications developed based on technologies such as HyperText Markup Language (HTML) and programming languages ​​such as JavaScript, which can be used on electronic devices without downloading. Among them, advertisers can publish mobile advertisements through quick applications. However, some illegal mobile advertisements will frequently push information to users based on quick applications, or use false play, start, pause and other signs to mislead users to click, or click on advertisements to automatically download other applications.

[0003] In the related art, in order to avoid the above situation, the mobile advertisements of quick applications can be controlled and restricted by manual review before the quick application releases the mobile advertisements. However, this method relies too much on manual identification, which is prone to high error rate and low efficiency in identifying illegal mobile advertisements. Summary of the invention

[0004] The purpose of the embodiments of the present application is to provide a method, device, electronic device and storage medium for identifying illegal advertisements, which can improve the accuracy and efficiency of identifying illegal mobile advertisements.

[0005] In a first aspect, an embodiment of the present application provides a method for identifying illegal advertisements, including:

[0006] Get the advertising feature data of mobile ads in quick apps;

[0007] Matching the advertisement characteristic data with the illegal advertisement characteristic data to obtain a matching result;

[0008] When the matching result indicates that the advertisement feature data matches the illegal advertisement feature data, an illegal result is generated, where the illegal result is the result that the mobile advertisement is an illegal mobile advertisement.

[0009] In a second aspect, an embodiment of the present application provides a device for identifying illegal advertisements, including:

[0010] An acquisition module is used to obtain advertisement feature data of mobile advertisements in quick applications;

[0011] A matching module, used to match the advertisement characteristic data with the illegal advertisement characteristic data to obtain a matching result;

[0012] The generating module is used to generate a violation result when the matching result indicates that the advertisement feature data matches the violation advertisement feature data, wherein the violation result is a result that the mobile advertisement is a violation mobile advertisement.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, the steps of the illegal advertisement identification method shown in the first aspect are implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the illegal advertisement identification method shown in the first aspect are implemented.

[0015] In a fifth aspect, an embodiment of the present application provides a chip, the chip including a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the steps of the illegal advertisement identification method shown in the first aspect.

[0016] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the steps of the illegal advertisement identification method shown in the first aspect.

[0017] In the embodiment of the present application, the advertisement feature data of the mobile advertisement in the quick application can be obtained; the advertisement feature data and the illegal advertisement feature data are matched to obtain a matching result; when the matching result indicates that the advertisement feature data matches the illegal advertisement feature data, a violation result is generated, and the violation result is the result that the mobile advertisement is an illegal mobile advertisement. In this way, the advertisement feature data of the mobile advertisement played by the quick application can be identified through the preset illegal advertisement feature data, so as to determine whether the mobile advertisement is an illegal mobile advertisement, reduce manual participation, improve the accuracy and efficiency of identifying illegal mobile advertisements, and effectively avoid the proliferation of illegal mobile advertisements in quick applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 A flowchart of a method for identifying illegal advertisements provided in some embodiments of the present application;

[0019] Figure 2 A schematic diagram of the structure of an illegal advertisement identification system provided for some embodiments of the present application;

[0020] Figure 3 A schematic diagram of the technical architecture of an advertisement reconstruction system based on a quick application engine in an illegal advertisement identification system provided in some embodiments of the present application;

[0021] Figure 4A schematic diagram of generating a fused web page text file in a method for identifying illegal advertisements provided in some embodiments of the present application;

[0022] Figure 5 A schematic diagram of the structure of an illegal advertisement identification device provided in some embodiments of the present application;

[0023] Figure 6 A schematic diagram of the structure of an electronic device provided for some embodiments of the present application;

[0024] Figure 7 A schematic diagram of the hardware structure of an electronic device provided for some embodiments of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the terms used in this way are interchangeable where appropriate, so that the embodiments of the present application can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] In order to solve the problems in the related art, the embodiments of the present application provide a method, device and electronic device for identifying illegal advertisements. Figures 1 to 4 , the illegal advertisement identification method provided by the embodiment of the present application is described in detail through specific embodiments and application scenarios.

[0028] First, combine Figure 1 A method for identifying illegal advertisements provided in an embodiment of the present application is described in detail.

[0029] Figure 1 A flowchart of a method for identifying illegal advertisements provided in some embodiments of the present application.

[0030] like Figure 1 As shown, the illegal advertisement identification method provided in the embodiment of the present application can be applied to electronic devices. Based on this, the illegal advertisement identification method can include step 110 and step 130, as shown below.

[0031] Step 110, obtaining the advertising feature data of the mobile advertisement in the quick application; Step 120, matching the advertising feature data with the illegal advertising feature data to obtain a matching result; Step 130, when the matching result indicates that the advertising feature data matches the illegal advertising feature data, generating a violation result, the violation result being the result that the mobile advertisement is an illegal mobile advertisement.

[0032] Therefore, the preset advertisement feature data in the preset illegal advertisement judgment rule database can be used to identify the advertisement feature data of the mobile advertisement played by the quick application, thereby determining whether the mobile advertisement is an illegal mobile advertisement, reducing manual participation, improving the accuracy and efficiency of identifying illegal mobile advertisements, and effectively avoiding the proliferation of illegal mobile advertisements in quick applications.

[0033] It should be noted that the quick application in the embodiment of the present application is a new type of mobile application, which is developed based on technologies such as HTML5 and JavaScript, and can be used without downloading and installing. Compared with traditional applications, quick applications have the advantages of fast startup, lightweight, cross-platform, etc., and also support offline access and push notification functions. Quick applications can run on multiple operating systems, including Android, iOS, Windows, etc. Mobile advertising refers to advertising published through quick apps. These ads are usually displayed on electronic screens. They will locate and select appropriate advertising content and servers based on the user's interests and behaviors. The following are the steps for embedding mobile advertising in quick apps: the quick app provider can submit it to the corresponding application platform for publication. The mobile advertiser can select the target users and set the mobile advertising publishing strategy according to their preferences. The mobile advertiser can provide optional advertising materials, which can include pictures, videos, HTML5 and various advertising components. Quick apps can embed the advertising materials provided by mobile advertisers into quick apps by using tools such as Android's InMobi SDK or iOS's AdMob SDK. In this way, when users download and use quick apps, mobile ads will be displayed on the electronic screen. If users click on the mobile ads, they can enter the relevant advertising server.

[0034] Based on this, in order to avoid the proliferation of illegal mobile ads in quick applications, you can Figure 2 The illegal advertisement identification system shown identifies whether the mobile advertisement embedded in the quick application is an illegal mobile advertisement, such as Figure 2As shown, the illegal advertisement identification system provided by the embodiment of the present application may include two subsystems, namely, an advertisement reconstruction system based on a quick application engine and an illegal matching expert system, and the two subsystems may respectively perform the steps of the two processes of quick application engine advertisement reconstruction and quick application advertisement illegal matching. Among them, the advertisement reconstruction system based on the quick application engine may perform the following steps 210 to 230 to realize the process of producing a mobile advertisement stream, and the illegal matching expert system may perform how steps 110 to 130 to verify whether the mobile advertisement is an illegal mobile advertisement.

[0035] The above steps are described in detail below, as shown below.

[0036] First, referring to step 110, in some embodiments of the present application, before step 110, the illegal advertisement identification method may further include a process of generating a mobile advertisement stream, as specifically shown in steps 210 to 230 below.

[0037] Step 210: Determine a first fusion text file according to the mobile advertisement filing file of the quick application and the advertisement running code file of the mobile advertisement.

[0038] Specifically, step 210 may include step 2101 and step 2202 .

[0039] Step 2101, obtain a first file for creating a class object-related code file of a mobile advertisement from an advertisement filing file, and obtain a second file for locating an advertisement object-related code file of a mobile advertisement. The mobile advertisement filing file may include a configuration file of a quick application and a network text file, and the first file is an advertisement resource corresponding to the class object-related code file of the mobile advertisement in the configuration file. The second file is a file in the network text file for locating the advertisement object-related code file of the mobile advertisement written in the network text file location.

[0040] Step 2102, generating a first fused file text according to the first file and the second file.

[0041] For example, the technical architecture diagram of the advertisement reconstruction system based on the quick application engine can be referred to Figure 3 ,like Figure 3As shown, the configuration file processing file can generate a fusion webpage text file related to mobile advertising based on the configuration file and network text file of the quick application through the scenario configuration file processing subfile, the extracted button text subfile and the scenario backtracking modeling subfile. Then, the fusion webpage text file can be input into the source code simplified file and the syntax processing file respectively, so that the first fusion text file can be generated based on the code file related to mobile advertising in the fusion webpage text file through the file-level simplified processing file subfile and the function-level simplified processing file subfile in the source code simplified file.

[0042] Step 220: Adjust the running code syntax dependency of at least two text files with running code syntax dependency in the first fused text file to obtain a second fused text file, wherein the second fused text file includes the code syntax dependency between the code module related to the mobile advertisement and the global module in the quick application.

[0043] For example, reference may still be made to Figure 3 , the code syntax data between the code files in the advertising code file set in the fused web page text file can be adjusted through the browser syntax sugar processing sub-file, the es6 syntax downgrade sub-file and the shim method rewriting sub-file in the syntax processing file to obtain a second fused text file.

[0044] Step 230: Determine the mobile advertisement in the quick application based on the first fused text file and the second fused text file.

[0045] Specifically, step 230 may include step 2301 and step 2302 .

[0046] Step 2301: construct an advertisement stream function call graph for playing mobile advertisements in a quick application based on the first fused text file and the second fused text file.

[0047] Step 2302: Determine the mobile advertisement in the quick application from the advertisement stream function call graph.

[0048] For example, reference may still be made to Figure 3 The trigger point file can construct an advertising stream function call graph for playing mobile advertisements in a quick application by creating a virtual entry point subfile and displaying a starting point subfile in the trigger point file, and merging the first fused text file output by the source code simplified file and the second fused text file output by the syntax processing file, so as to extract the mobile advertisement stream from the advertisement stream function call graph, which is convenient for extracting the advertisement feature set of the mobile advertisement stream later.

[0049] Based on the above Figure 3 As shown, the above steps are described in detail below.

[0050] First, the fused web page text file involved in step 210 can be determined by the following steps, that is, according to the second file, the advertising resources corresponding to the code files related to the class objects of the mobile advertisements in the configuration file are restored and written into the network text file to obtain the fused web page text file.

[0051] The configuration file is a json (JavaScript Object Notation) file of the quick application. The json file is a file used to store data structures and objects, and data can be exchanged in the quick application. The webpage text file can be a js file of the quick application. The js file is a text file containing javascript code, which is used to realize the interaction and dynamic effects of the webpage.

[0052] For example, Figure 4 As shown in the figure, from the organization of the quick application, it can be seen that it has a specific resource organization method. The developer code is a js file, and the scene resource is located in the resource configuration json file. What is the callback function of a component? It is also necessary to combine the semantic information in the json file for cross-file analysis. Therefore, the advertising resources related to mobile advertising in the json file can be explicitly restored and written into the js file to obtain a fusion web page text file that integrates the advertising resources related to mobile advertising in the json file and the js file. The advertising resources related to mobile advertising in the json file can include advertising flow trigger point information, restore and process the resource files in the quick application rpk file, component relationships, button semantic information, scene callback mapping and other resources.

[0053] Therefore, through this step, the advertising flow trigger point information hidden in the configuration file can be obtained, the resource files in the quick application rpk package can be restored and processed, and the advertising resources can be extracted at the same time to realize the loading and reconstruction of the quick application static resource configuration.

[0054] Secondly, regarding step 2102, in the code files of the quick app, not all files are related to mobile advertising. For example, some code files are used to process user login logic, and some process page rendering logic, etc., which are independent of the logic of the triggering path of mobile advertising. However, analyzing them will consume a lot of resources and is unnecessary. Therefore, in order to improve the efficiency of generating mobile advertising flow and reduce the time overhead caused by other rendering components in the quick app to run the tool, it is necessary to remove the code files in the code files of the quick app that are not related to the mobile advertising logic, so as to achieve customized simplification of advertising-related codes. This process can be done as follows: Figure 3 The source code simplification file processing shown in the figure, the embodiment of the present application can generate the first fused text file through the following two methods, as shown below.

[0055] In some embodiments of the present application, the code files related to mobile advertisements include a set of class object code files marked in the fusion web page text file for creating mobile advertisements. Based on this, step 2102 may specifically include steps 3101 to 3102.

[0056] Step 3101: when the class object related code files include K class object code files and class object dependency files, add the class object dependency code files corresponding to each class object code file in the K class object code files to a first queue.

[0057] Furthermore, step 3101 may specifically include steps 31011 to 31013, as shown below.

[0058] Step 31011, obtaining K class object code files for creating mobile advertisements and a class object dependency code file corresponding to each of the K class object code files from the fused web page text file, wherein the class object dependency code file includes a first class object dependency code file having a creation dependency relationship with each class object code file, or a first class object dependency code file and a second class object dependency code file having a creation dependency relationship with the first class object dependency code file, and K is an integer greater than 1.

[0059] Exemplarily, the dependency relationship between code files can be obtained through the Abstract Syntax Tree (AST) algorithm, so that K class object code files for creating mobile advertisements and class object dependency code files corresponding to each class object code file in the K class object code files can be obtained.

[0060] Step 31012: Add K class object code files and the class object dependency code files corresponding to each class object code file to a first queue, wherein the first queue includes at least two class dependency code files.

[0061] Exemplarily, a first queue Q is newly created, K class object code files and class object dependency code files corresponding to each class object code file are added to Q, and all code files entering the queue Q will be marked.

[0062] Step 3102, generates a first fusion file text based on the i-th class object dependency code file in the first queue, the first target dependency code file having a running code syntax dependency relationship with the i-th class object dependency code file, and the second target dependency code file having a running code syntax dependency relationship with the first target dependency code file.

[0063] Further, step 3102 may specifically include steps 31021 to 31024. Step 31021: Select a first type of dependent code file from a first queue.

[0064] Step 31022, mark the first-class dependent code files and the first target dependent code files corresponding to the first-class dependent code files, until there are no first target dependent code files corresponding to the first-class dependent code files in the first queue, remove the first-class dependent code files and the first target dependent code files from the first queue, and obtain a second queue, wherein the first target dependent code files include second target dependent code files that have a creation dependency relationship with the first-class dependent code files, or include second target dependent code files and third target dependent files that have a creation dependency relationship with the second target dependent code files.

[0065] Exemplarily, if Q is not empty, a first type of dependent code file is selected from Q, the first queue is traversed, and the first target dependent code file that has code dependency on the first type of dependent code file is marked. If there is also a second target dependent code file in Q that has code dependency on the first target dependent code file, the second target dependent code file is marked until there is no target dependent code file that is dependent on the second target dependent code file. The first type of dependent code file and the first target dependent code file can be removed from the first queue.

[0066] Step 31023, when the second queue is not an empty queue, select the second category of dependent code files from the second queue, determine the second category of dependent code files as the first category of dependent code files, and repeat the following steps: mark the first category of dependent code files and the first target dependent code files corresponding to the first category of dependent code files, until there are no first target dependent code files corresponding to the first category of dependent code files in the first queue, remove the first category of dependent code files and the first target dependent code files from the first queue to obtain the second queue.

[0067] Step 31024, when the second queue is an empty queue, the set of code files marked in the fused web page text file is used as the first fused text file.

[0068] Exemplarily, all code files entering Q will be marked as code files related to mobile advertising and used to create class object code files for mobile advertising. The entire first queue will be traversed until the first queue is an empty queue, indicating that the code files related to mobile advertising in the code of the quick application are all marked, that is, the code files that are not marked and not related to mobile advertising have been eliminated.

[0069] In other embodiments of the present application, based on the above embodiments, code files related to mobile advertising display and its calling in the quick application can be further extracted, and the code files related to mobile advertising include a set of advertising object code files marked in the fusion web page text file for locating mobile advertising. Based on this, step 2102 can specifically include steps 3103 to 3104.

[0070] Step 3103, when the advertising object related code files include P advertising object code files and advertising object dependent code files, add the class object dependent code files corresponding to each advertising object code file in the P advertising object code files and the advertising object dependent code files to the first queue.

[0071] Furthermore, the step 3103 may specifically include steps 31031 to 31034.

[0072] Step 31031, obtain P advertisement object code files for positioning mobile advertisements from the fused web page text file, and the advertisement object dependency code files corresponding to each of the P advertisement object code files; the advertisement object dependency code files include a first advertisement object dependency code file having a creation dependency relationship with each advertisement object code file, or a first advertisement object dependency code file and a second advertisement object dependency code file having a creation dependency relationship with the first advertisement object dependency code file, and P is an integer greater than 1.

[0073] Exemplarily, all code files that create advertising object A in the code files of the quick application can be located and put into the first queue R, the code files are searched globally, the method name B containing the call of advertising object A is also added to R, and the code file where method B is located is marked.

[0074] Step 31032, adding P advertisement object code files and the advertisement object dependency code files corresponding to each advertisement object code file to a first queue, wherein the first queue includes at least two class dependency code files;

[0075] Step 31033, select the third type of object dependency code file from the first queue.

[0076] Exemplarily, method name C is selected from the first queue.

[0077] Step 31034, mark the third category of dependent code files and the fourth target dependent code files corresponding to the third category of dependent code files, until there is no fourth target dependent code file corresponding to the third category of dependent code files in the first queue, remove the third category of dependent code files and the fourth target dependent code files from the first queue, and obtain a second queue, wherein the fourth target dependent code files include the fifth target dependent code files that have a creation dependency relationship with the third category of dependent code files, or include the fifth target dependent code files and the sixth target dependent file that has a creation dependency relationship with the fifth target dependent code file.

[0078] Step 31034, generates a first fusion file text based on the j-th advertising object class dependency code file in the first queue, the first target advertising object class dependency code file having an operating code syntax dependency relationship with the j-th advertising object class dependency code file, and the second target advertising object class dependency code file having an operating code syntax dependency relationship with the first target advertising object class dependency code file.

[0079] Further, the step 31034 may specifically include step 310341 and step 310342. Step 310341, when the second queue is not an empty queue, select the fourth category of dependent code files from the second queue, determine the fourth category of dependent code files as the third category of dependent code files, and repeat the following steps: mark the third category of dependent code files and the fourth target dependent code files corresponding to the third category of dependent code files, until there is no fourth target dependent code file corresponding to the third category of dependent code files in the first queue, remove the third category of dependent code files and the fourth target dependent code files from the first queue to obtain the second queue.

[0080] Step 310342, when the second queue is an empty queue, the set of code files marked in the fused web page text file is used as the first fused text file.

[0081] Exemplarily, until the second queue is an empty queue, it indicates that the code files related to mobile advertising in the code of the quick application are all marked, that is, the code files that are not marked and not related to mobile advertising have been removed.

[0082] Next, step 220 is involved. In some embodiments of the present application, step 230 may specifically include steps 2201 to 2204.

[0083] Step 2201, delete the code of the dynamic loader in the first fused text file to obtain a static web page text file.

[0084] Exemplarily, steps 2301 to 2304 in the embodiment of the present application can be implemented through a syntax processing file. Specifically, the browser syntax sugar processing subfile can be used to handle the variable definition problem caused by the browser-like syntax characteristics in the quick application. The quick application developer logic code manages the file dependencies and export objects in the form of a dynamic loader. The application code is presented in a file-based manner, and these files are dynamically loaded into the memory according to the dependencies at runtime. Since the dynamic loader will make the call relationship complicated, resulting in a large overhead during static analysis, and the static analysis process does not use the loader to perform memory loading operations, it is considered to optimize the file loader. Based on this, the dynamic loading method is changed to static loading to simplify the file dependency and pointer transfer process. First, remove the code of the dynamic loader in the fusion web page text file to obtain a static web page text file.

[0085] Step 2202: split at least two text files with running code syntax dependency in the static webpage text files to obtain M independent advertisement code files, where M is an integer greater than 1.

[0086] For example, if the advertisement code file set includes file A and file B, here, the advertisement code file set is split into independent advertisement code file A and independent advertisement code file B, so that each code file can be turned into a global file.

[0087] Step 2203: Based on the M independent advertising code files, the first code syntax dependency between at least two text files having running code syntax dependency and the global file in the quick application is adjusted to the second code syntax dependency between each independent advertising code file in the M independent advertising code files and the global file.

[0088] Exemplarily, the value of the dependent file can be changed to a global variable value, that is, still taking the above embodiment as an example, the advertising code file set has a first code syntax dependency relationship with the global file C. After the advertising code file set is split, the second code syntax dependency relationship can be the code syntax dependency relationship between the independent advertising code file A and the global file C, and the code syntax dependency relationship between the independent advertising code file B and the global file C.

[0089] Step 2204: Based on the second code syntax dependency, the compatibility of each independent advertisement code file with the global file in the first fused text file is adjusted to obtain a second fused text file.

[0090] Exemplarily, in the embodiment of the present application, the compatibility of each independent advertising code file and the global file in the fused web page text file can be adjusted by the ES6 syntax downgrade sub-file and the shim method rewritten file, as shown below, that is, ECMAScript6.0 (ES6) is a version standard of JavaScript, which adds more advanced features on the basis of ES5, but only supports running in a high version of the browser kernel. Therefore, for the compatibility of the quick application, the quick application packager will automatically generate a compatible downgrade function for it, called a shim method. However, after some quick applications are packaged, multiple versions of syntax may exist at the same time. The residual ES6 syntax will affect the correct analysis of the subsequent system, and the shim implementation usually contains a large number of global traversal operations. The parsing of the shim method may take up a lot of resources for program analysis. Therefore, the function of the two sub-files is to identify the ES6 shim method, delete its declaration and related function calls, and re-simulate the original function of the function, that is, to implement the pseudo-inheritance of the parent class method in sequence by using topological sorting. The execution steps are as follows: First, traverse the AST syntax tree generated by the entire code, identify the shim method, and add the code block corresponding to the method to the target list to be simplified. Currently, there are two methods that need to consider inheritance-related es6 methods (extends) and decorator-related es6 methods (decorate); then, the extends method and the method that calls it cannot be directly deleted, because the class implements class inheritance, that is, all properties of the parent class are passed to the child class. If it is empty, the child class will not be able to obtain the parent class properties. When analyzing the advertising call data flow later, there will be a flow break problem. In this way, it is necessary to locate the methods and properties in the parent class and directly assign them to the child class in the code; then, similarly, the use of decorate is usually related to scene switching and loading, such as prompt windows, setting interfaces, etc. In order to prevent the scene switching-related advertising violation flow from being broken due to the emptying of the decorate shim method, the decorate shim method also needs to be rewritten. You can find the call point of the decorate function and load the resource scene by yourself.

[0091] Furthermore, with respect to step 230, in some embodiments of the present application, step 2301 may specifically include step 23011 and step 23012.

[0092] Step 23011, extract the organizational structure and type relationship of the code logic in the first fused text file and the second fused text file. The WALA tool is a Java library for static and dynamic program analysis, which has the advantages of robustness, high efficiency and scalability. In static analysis, it combines pointing analysis with function call graph construction; inter-procedural data flow analysis; context-sensitive slicing, etc.

[0093] Exemplarily, the WALA tool can be used to generate a call graph for a quick application, and the relevant engine function modeling required to generate the call graph is integrated into the tool. To prevent the call graph from taking too long to generate, this file sets a timeout of 10 minutes. After the timeout is triggered, only the call graph generated at the current moment is retained for subsequent analysis.

[0094] Step 23012: Generate an advertisement stream function call graph for playing mobile advertisements in a quick application based on the organizational structure and type relationship of the code logic.

[0095] In some other embodiments of the present application, step 2302 may specifically include step 23021 and step 23022.

[0096] Step 23021, through the depth-first algorithm, traverse the advertising stream function call graph to obtain the access function of the mobile advertising trigger access quick application, the creation function of the mobile advertising, and the display function of the mobile advertising.

[0097] Step 23022, generating mobile advertisements in the order of function processing from access function, creation function and display function.

[0098] Exemplarily, all advertising-related call flows can be extracted from the call graph, and the entire advertising flow function call graph can be searched using a depth-first search (DFS) algorithm to search all advertising flows starting from a virtual trigger point and ending with the creation and display functions of the advertisement to obtain mobile advertisements.

[0099] Next, step 120 is involved. The violation judgment file in the embodiment of the present application can be divided into two steps: step 1 is as shown in step 110 above, that is, the advertisement stream is abstracted to obtain the advertisement feature set of the mobile advertisement stream; step 2 is based on step 220, that is, judging whether the advertisement stream is in violation of the rules according to the advertisement feature set and the violation rules of the mobile advertisement stream. Among them, the preset advertisement feature data in the preset violation advertisement judgment rule database in the embodiment of the present application can be increased according to the demand.

[0100] In the embodiment of the present application, advertisement feature data can be obtained in the following ways, which are explained below respectively.

[0101] In some embodiments of the present application, before step 120, the illegal advertisement identification method may further include a process of generating advertisement feature data corresponding to the advertisement feature in the advertisement feature set, and the advertisement feature data in the embodiment of the present application includes at least one of the following: advertisement playback triggering method data, advertisement playback calling data, and advertisement type data;

[0102] The trigger mode data includes at least one of the following: first trigger mode data of user touch to play advertisement, and second trigger mode data of conditional trigger to play advertisement;

[0103] The calling data of the advertisement playback includes at least one of the following: calling function information of the advertisement calling path in the quick application, and advertisement content data when the mobile advertisement is called by the quick application.

[0104] The steps of generating advertisement characteristic data are described in detail below based on different advertisement characteristic data.

[0105] The advertising feature data in the embodiment of the present application is the trigger method data for advertising playback, and the trigger method data includes at least one of the following: first trigger method data for user touch to play the advertisement, and second trigger method data for conditional triggering to play the advertisement. The generation process of different advertising feature data corresponding to these two trigger methods is described below.

[0106] In some embodiments, the trigger mode data includes first trigger mode data of a user touching to play an advertisement, the quick application includes an application file, and the application file includes running data of the mobile advertisement in the quick application. Based on this, step 110 may specifically include:

[0107] The interactive path data of the user triggering the mobile advertisement to play in the quick application in the running data is determined as the first trigger mode data.

[0108] Exemplarily, an advertising interaction file corresponding to the first triggering method is obtained from an application file of the quick application, the application file includes running data of the mobile advertisement in the quick application, the advertising interaction file includes interaction path data of the user triggering the mobile advertisement to be played in the quick application, and the interaction file is determined as the first advertising feature data.

[0109] In some other embodiments, the trigger mode data includes second trigger mode data for conditionally triggering the playing of advertisements. Based on this, step 110 may specifically include:

[0110] The time condition data and scene condition data in the running data for triggering the mobile advertisement to be played in the quick application are determined as the second trigger mode data.

[0111] Exemplarily, a conditional triggering scenario file corresponding to the second triggering method is obtained from the application file of the quick application, the application file includes the running data of the mobile advertisement in the quick application, the triggering scenario file includes conditional triggering data for triggering the mobile advertisement to be played in the quick application, and the conditional triggering data includes at least one of the following: time condition triggering data and scene condition triggering data, and the conditional triggering data can be determined as the second advertisement characteristic data.

[0112] The quick application in the embodiment of the present application includes an advertisement playback record file, which includes a first advertisement call path required when a mobile advertisement is expected to be played in the quick application. The generation process of the advertisement playback call data can be as follows.

[0113] In some embodiments, step 110 may specifically include:

[0114] When the second advertisement calling path when the mobile advertisement is actually played in the quick application is the same as the first advertisement calling path, the calling function information corresponding to the first advertisement calling path is determined as the calling function information of the advertisement calling path in the quick application.

[0115] Exemplarily, N advertisement flow path features of the mobile advertisement are obtained, where N is an integer greater than 1. When the first advertisement flow path feature among the N advertisement flow path features is a path feature on an advertisement call path in a quick application, the calling function information of the advertisement call path is determined as the first advertisement play calling data.

[0116] In some other embodiments, step 110 may specifically include:

[0117] When the second advertisement calling path when the mobile advertisement is actually played in the quick application is different from the first advertisement calling path, the calling function information corresponding to the second advertisement calling path is determined as the advertisement content data when the mobile advertisement is called by the quick application.

[0118] Exemplarily, when the second advertisement flow path feature among the N advertisement flow path features is not a path feature on the advertisement calling path, the advertisement calling data of the mobile advertisement during the quick application calling process is determined as the second advertisement playing calling data.

[0119] The advertisement feature in the embodiment of the present application is the advertisement type, and the advertisement type may include image, video, audio and video, or text.

[0120] Then, step 130 is involved. In some embodiments of the present application, the violation result can be output according to the feature of the violation advertisement, that is, the feature data of the violation advertisement includes the triggering method data of the violation advertisement playback, the calling data of the violation advertisement playback, and the type data of the violation advertisement; the violation result includes at least one of the following: the first violation result, the second violation result, and the third violation result. Based on this, step 130 can specifically include steps 1301 to 1303.

[0121] Step 1301, when the matching result indicates that the triggering method data of the advertisement playing matches the triggering method data of the illegal advertisement playing, a first illegal result is generated, and the first illegal result is used to indicate that there is an illegality in the triggering method of the mobile advertisement.

[0122] Step 1302: When the matching result indicates that the call data for the advertisement playback matches the call data for the illegal advertisement playback, a second illegal result is generated, where the second illegal result is used to indicate that there is an illegality in the playback path of the mobile advertisement in the quick application.

[0123] Step 1303: When the matching result indicates that the advertisement type data and the violation advertisement type data match, a third violation result is generated, and the third violation result is used to indicate that the advertisement type of the mobile advertisement is in violation.

[0124] In addition, after obtaining the violation results, the mobile advertising flow can be intercepted, which can effectively avoid the proliferation of illegal advertisements in the quick application ecosystem, thereby improving the user experience of using quick applications.

[0125] It should be noted that the illegal advertisement identification method provided in the embodiments of the present application can be executed by electronic devices such as mobile phones, tablet computers, laptop computers, PDAs, wearable devices, etc. In some embodiments of the present application, the illegal advertisement identification method provided in the embodiments of the present application is described by taking the electronic device as the execution subject to execute the illegal advertisement identification method.

[0126] The illegal advertisement identification method provided in the embodiment of the present application can be executed by an illegal advertisement identification device. In the embodiment of the present application, the illegal advertisement identification method is executed by an illegal advertisement identification device as an example to illustrate the device of the illegal advertisement identification method provided in the embodiment of the present application.

[0127] This application also provides a device for identifying illegal advertisements. Figure 5 Provide detailed explanation.

[0128] Figure 5 A schematic diagram of the structure of an illegal advertisement identification device provided in some embodiments of the present application.

[0129] like Figure 5 As shown, the illegal advertisement identification device 50 can be applied to electronic devices, and the illegal advertisement identification device 50 can specifically include:

[0130] Acquisition module 501, used to acquire advertisement feature data of mobile advertisements in quick applications;

[0131] A matching module 502, used to match the advertisement characteristic data with the illegal advertisement characteristic data to obtain a matching result;

[0132] The generating module 503 is used to generate a violation result when the matching result indicates that the advertisement feature data matches the violation advertisement feature data, wherein the violation result is a result that the mobile advertisement is a violation mobile advertisement.

[0133] The illegal advertisement identification device 50 in the embodiment of the present application is described in detail below, as shown below.

[0134] In some embodiments of the present application, the advertisement characteristic data includes at least one of the following: advertisement playing triggering method data, advertisement playing calling data, advertisement type data;

[0135] The trigger mode data includes at least one of the following: first trigger mode data of user touch to play advertisement, and second trigger mode data of conditional trigger to play advertisement;

[0136] The calling data of the advertisement playback includes at least one of the following: calling function information of the advertisement calling path in the quick application, and advertisement content data when the mobile advertisement is called by the quick application.

[0137] In some embodiments of the present application, the acquisition module 501 is used to determine the interaction path data of the user triggering the mobile advertisement to be played in the quick application in the running data as the first trigger mode data when the quick application includes the application file and the application file includes the running data of the mobile advertisement in the quick application;

[0138] The illegal advertisement identification device 50 in the embodiment of the present application may further include a determination module, which is used to determine the time condition data and scene condition data in the operation data that trigger the mobile advertisement to be played in the quick application as the second trigger mode data.

[0139] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include a determination module, which is used to determine the calling function information corresponding to the first advertisement calling path as the calling function information of the advertisement calling path in the quick application when the quick application includes an advertisement playing record file, the advertisement playing record file includes a first advertisement calling path required when the mobile advertisement is expected to be played in the quick application, and the second advertisement calling path when the mobile advertisement is actually played in the quick application is the same as the first advertisement calling path;

[0140] When the second advertisement calling path when the mobile advertisement is actually played in the quick application is different from the first advertisement calling path, the calling function information corresponding to the second advertisement calling path is determined as the advertisement content data when the mobile advertisement is called by the quick application.

[0141] In some embodiments of the present application, the generating module 503 is used to generate a first violation result when the illegal advertisement feature data includes the triggering method data of illegal advertisement playback, the calling data of illegal advertisement playback, and the illegal advertisement type data, and the violation result includes at least one of the following: a first violation result, a second violation result, and a third violation result, and the matching result indicates that the triggering method data of advertisement playback matches the triggering method data of illegal advertisement playback, and the first violation result is used to indicate that the triggering method of the mobile advertisement has a violation result;

[0142] If the matching result indicates that the calling data of the advertisement playback matches the calling data of the illegal advertisement playback, a second illegal result is generated, and the second illegal result is used to indicate that there is an illegality in the playback path of the mobile advertisement in the quick application;

[0143] In the case where the matching result indicates that the advertisement type data and the violation advertisement type data are matched, a third violation result is generated, and the third violation result is used to indicate that the advertisement type of the mobile advertisement is in violation.

[0144] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include a determination module, which is used to determine the first fusion text file according to the mobile advertisement filing file of the quick application and the advertisement running code file of the mobile advertisement;

[0145] The illegal advertisement identification device 50 in the embodiment of the present application may further include an adjustment module, which is used to adjust the running code syntax dependency relationship of at least two text files having running code syntax dependency relationship in the first fused text file to obtain a second fused text file;

[0146] The determination module is also used to determine the mobile advertisement in the quick application based on the first fused text file and the second fused text file.

[0147] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include a determination module, which is used to obtain a first file of a class object related code file for creating a mobile advertisement from an advertisement filing file, and obtain a second file of an advertisement object related code file for locating a mobile advertisement;

[0148] A first fused file text is generated according to the first file and the second file.

[0149] In some embodiments of the present application, the acquisition module 501 is used to add the class object dependency code file corresponding to each class object code file in the K class object code files and the class object dependency code file in the K class object code files to the first queue when the class object related code file includes K class object code files and class object dependency files;

[0150] A first fusion file text is generated based on the i-th class object dependency code file in the first queue, the first target dependency code file having a running code syntax dependency relationship with the i-th class object dependency code file, and the second target dependency code file having a running code syntax dependency relationship with the first target dependency code file.

[0151] In some embodiments of the present application, the acquisition module 501 is used to add the class object dependency code file corresponding to each of the P advertisement object code files in the P advertisement object code files and the advertisement object dependency code files to the first queue when the advertisement object related code files include P advertisement object code files and advertisement object dependency code files;

[0152] A first fusion file text is generated based on the j-th advertising object class dependency code file in the first queue, the first target advertising object class dependency code file having an operation code syntax dependency relationship with the j-th advertising object class dependency code file, and the second target advertising object class dependency code file having an operation code syntax dependency relationship with the first target advertising object class dependency code file.

[0153] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include a deletion module, which is used to delete the code of the dynamic loader in the first fusion text file to obtain a static web page text file;

[0154] The illegal advertisement identification device 50 in the embodiment of the present application may further include a splitting module, which is used to split at least two text files having a running code syntax dependency in the static webpage text file to obtain M independent advertisement code files, where M is an integer greater than 1;

[0155] The illegal advertisement identification device 50 in the embodiment of the present application may further include an adjustment module, which is used to adjust, based on the M independent advertisement code files, the first code syntax dependency relationship between at least two text files having a running code syntax dependency relationship and the global file in the quick application to the second code syntax dependency relationship between each independent advertisement code file in the M independent advertisement code files and the global file;

[0156] The adjustment module is also used to adjust the compatibility of each independent advertisement code file with the global file in the first fused text file based on the second code syntax dependency to obtain a second fused text file.

[0157] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include a construction module for constructing an advertisement stream function call graph for playing mobile advertisements of a quick application based on the first fused text file and the second fused text file;

[0158] The illegal advertisement identification device 50 in the embodiment of the present application may further include a determination module for determining the mobile advertisement in the quick application from the advertisement stream function call graph.

[0159] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include an extraction module for extracting the organizational structure and type relationship of the code logic in the first fused text file and the second fused text file;

[0160] The generation module 503 generates an advertisement stream function call graph for playing mobile advertisements by the quick application based on the organizational structure and type relationship of the code logic.

[0161] In some embodiments of the present application, the illegal advertisement identification device 50 in the embodiment of the present application may further include a traversal module, which is used to traverse the advertisement stream function call graph by a depth-first algorithm to obtain the access function of the mobile advertisement triggering access to the quick application, the creation function of the mobile advertisement, and the display function of the mobile advertisement when the advertisement stream call data includes the function call sequence flow of the quick application playing the mobile advertisement;

[0162] The generating module 503 is used to generate a mobile advertisement according to the function processing sequence of the access function, the creation function and the display function.

[0163] The illegal advertisement identification device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than the terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a car electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobilepersonal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., and the embodiment of the present application is not specifically limited.

[0164] The illegal advertisement identification device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an IOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0165] The illegal advertisement identification device provided in the embodiment of the present application can achieve Figures 1 to 4The various processes implemented in the embodiment of the illegal advertisement identification method shown achieve the same technical effect, and will not be described again here to avoid repetition.

[0166] Based on this, the illegal advertisement identification device provided in the embodiment of the present application can obtain the advertisement feature data of the mobile advertisement in the quick application; match the advertisement feature data with the illegal advertisement feature data to obtain a matching result; and generate a violation result when the matching result indicates that the advertisement feature data matches the illegal advertisement feature data, and the violation result is the result that the mobile advertisement is an illegal mobile advertisement. In this way, the advertisement feature data of the mobile advertisement played by the quick application can be identified through the preset illegal advertisement feature data, so as to determine whether the mobile advertisement is an illegal mobile advertisement, reduce manual participation, improve the accuracy and efficiency of identifying illegal mobile advertisements, and effectively avoid the proliferation of illegal mobile advertisements in quick applications.

[0167] Optional, such as Figure 6 As shown, an embodiment of the present application further provides an electronic device 60, including a processor 601 and a memory 602, wherein the memory 602 stores programs or instructions that can be executed on the processor 601, and when the program or instructions are executed by the processor 601, the various steps of the above-mentioned illegal advertisement identification method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.

[0168] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0169] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application.

[0170] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710 and other components.

[0171] Those skilled in the art will appreciate that the electronic device 700 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 710 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system.

[0172] Figure 7 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0173] In the embodiment of the present application, the processor 710 is used to obtain the advertisement feature data of the mobile advertisement in the quick application. The processor 710 is used to match the advertisement feature data with the illegal advertisement feature data to obtain a matching result. The processor 710 is used to generate a violation result when the matching result indicates that the advertisement feature data matches the illegal advertisement feature data, and the violation result is the result that the mobile advertisement is an illegal mobile advertisement.

[0174] The electronic device 700 is described in detail below, as shown below.

[0175] In some embodiments of the present application, the advertisement characteristic data includes at least one of the following: advertisement playing triggering method data, advertisement playing calling data, advertisement type data;

[0176] The trigger mode data includes at least one of the following: first trigger mode data of user touch to play advertisement, and second trigger mode data of conditional trigger to play advertisement;

[0177] The calling data of the advertisement playback includes at least one of the following: calling function information of the advertisement calling path in the quick application, and advertisement content data when the mobile advertisement is called by the quick application.

[0178] In some embodiments of the present application, the processor 710 is configured to, when the quick application includes an application file, and the application file includes running data of the mobile advertisement in the quick application, determine the interactive path data of the user triggering the mobile advertisement to be played in the quick application in the running data as the first trigger mode data;

[0179] The time condition data and scene condition data in the running data for triggering the mobile advertisement to be played in the quick application are determined as the second trigger mode data.

[0180] In some embodiments of the present application, the processor 710 is configured to, when the quick application includes an advertisement playback filing file, the advertisement playback filing file includes a first advertisement calling path required when the mobile advertisement is expected to be played in the quick application, and the second advertisement calling path when the mobile advertisement is actually played in the quick application is the same as the first advertisement calling path, determine the calling function information corresponding to the first advertisement calling path as the calling function information of the advertisement calling path in the quick application;

[0181] When the second advertisement calling path when the mobile advertisement is actually played in the quick application is different from the first advertisement calling path, the calling function information corresponding to the second advertisement calling path is determined as the advertisement content data when the mobile advertisement is called by the quick application.

[0182] In some embodiments of the present application, the processor 710 is configured to generate a first violation result when the illegal advertisement feature data includes triggering method data of illegal advertisement playback, calling data of illegal advertisement playback, and illegal advertisement type data, and the violation result includes at least one of the following: a first violation result, a second violation result, and a third violation result, and the matching result indicates that the triggering method data of advertisement playback matches the triggering method data of illegal advertisement playback, and the first violation result is used to indicate that the triggering method of the mobile advertisement has a violation result;

[0183] If the matching result indicates that the calling data of the advertisement playback matches the calling data of the illegal advertisement playback, a second illegal result is generated, and the second illegal result is used to indicate that there is an illegality in the playback path of the mobile advertisement in the quick application;

[0184] In the case where the matching result indicates that the advertisement type data and the violation advertisement type data are matched, a third violation result is generated, and the third violation result is used to indicate that the advertisement type of the mobile advertisement is in violation.

[0185] In some embodiments of the present application, the processor 710 is configured to determine a first fusion text file according to a mobile advertisement filing file of the quick application and an advertisement running code file of the mobile advertisement;

[0186] Adjusting the running code syntax dependency relationship of at least two text files having the running code syntax dependency relationship in the first fused text file to obtain a second fused text file;

[0187] Based on the first fused text file and the second fused text file, a mobile advertisement in the quick application is determined.

[0188] In some embodiments of the present application, the processor 710 is used to obtain a first file of a class object-related code file for creating a mobile advertisement from an advertisement filing file, and obtain a second file of an advertisement object-related code file for locating a mobile advertisement;

[0189] A first fused file text is generated according to the first file and the second file.

[0190] In some embodiments of the present application, the processor 710 is configured to, when the class object-related code file includes K class object code files and class object dependency files, add a class object dependency code file corresponding to each class object code file in the K class object code files and the class object dependency code files to a first queue;

[0191] A first fusion file text is generated based on the i-th class object dependency code file in the first queue, the first target dependency code file having a running code syntax dependency relationship with the i-th class object dependency code file, and the second target dependency code file having a running code syntax dependency relationship with the first target dependency code file.

[0192] In some embodiments of the present application, the processor 710 is configured to, when the advertisement object-related code files include P advertisement object code files and advertisement object dependent code files, add a class object dependent code file corresponding to each advertisement object code file in the P advertisement object code files and the advertisement object dependent code files to a first queue;

[0193] A first fusion file text is generated based on the j-th advertising object class dependency code file in the first queue, the first target advertising object class dependency code file having an operation code syntax dependency relationship with the j-th advertising object class dependency code file, and the second target advertising object class dependency code file having an operation code syntax dependency relationship with the first target advertising object class dependency code file.

[0194] In some embodiments of the present application, the processor 710 is used to delete the code of the dynamic loader in the first fusion text file to obtain a static web page text file;

[0195] Splitting at least two text files with running code syntax dependency among the static webpage text files to obtain M independent advertising code files, where M is an integer greater than 1;

[0196] Based on the M independent advertising code files, adjusting the first code syntax dependency relationship between at least two text files having a running code syntax dependency relationship and a global file in the quick application to a second code syntax dependency relationship between each independent advertising code file in the M independent advertising code files and the global file;

[0197] Based on the second code syntax dependency, the compatibility of each independent advertisement code file with the global file in the first fused text file is adjusted to obtain a second fused text file.

[0198] In some embodiments of the present application, the processor 710 is used to construct an advertisement stream function call graph for playing mobile advertisements by a quick application based on the first fused text file and the second fused text file;

[0199] Identify mobile ads in quick apps from the ad stream function call graph.

[0200] In some embodiments of the present application, the processor 710 is used to extract the organizational structure and type relationship of the code logic in the first fused text file and the second fused text file;

[0201] Based on the organizational structure and type relationship of the code logic, an advertising stream function call graph for quick apps to play mobile ads is generated.

[0202] In some embodiments of the present application, the processor 710 is configured to, when the advertisement stream call data includes a function call sequence flow for a quick application to play a mobile advertisement, traverse the advertisement stream function call graph by a depth-first algorithm to obtain an access function for triggering the mobile advertisement to access the quick application, a mobile advertisement creation function, and a mobile advertisement display function;

[0203] Generate mobile ads in the order of access function, creation function and display function.

[0204] It should be understood that the input unit 704 may include a graphics processing unit (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of a static image or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 706 may include a display panel, and the display panel may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 707 includes a touch panel 7071 and at least one of other input devices 7072. The touch panel 7071 is also called a touch screen. The touch panel 7071 may include two parts: a touch detection device and a touch display. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as a volume display button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0205] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 709 can include a volatile memory or a non-volatile memory, or the memory 709 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 709 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0206] The processor 710 may include one or more processing units; optionally, the processor 710 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless display signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 710.

[0207] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned illegal advertisement identification method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0208] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory ROM, a random access memory RAM, a magnetic disk or an optical disk.

[0209] In addition, an embodiment of the present application further provides a chip, which includes a processor and a display interface, the display interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned illegal advertisement identification method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0210] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0211] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned illegal advertisement identification method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0212] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0213] In addition, it should be noted that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in a reverse order according to the functions involved. For example, the described methods may be performed in an order different from that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.

[0214] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0215] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A method for identifying illegal advertisements, characterized in that: include: Get the advertising feature data of mobile ads in quick apps; Matching the advertisement characteristic data with the illegal advertisement characteristic data to obtain a matching result; In the case where the matching result indicates that the advertisement feature data matches the illegal advertisement feature data, an illegal result is generated, where the illegal result is a result that the mobile advertisement is an illegal mobile advertisement.

2. The method according to claim 1, characterized in that The advertisement characteristic data includes at least one of the following: advertisement playing triggering method data, advertisement playing calling data, and advertisement type data; The trigger mode data includes at least one of the following: first trigger mode data of user touch to play advertisement, and second trigger mode data of conditional trigger to play advertisement; The calling data for advertisement playback includes at least one of the following: calling function information of the advertisement calling path in the quick application, and advertisement content data when the mobile advertisement is called by the quick application.

3. The method according to claim 2, characterized in that The quick application includes an application file, and the application file includes running data of the mobile advertisement in the quick application; and obtaining advertisement feature data of the mobile advertisement in the quick application includes: Determine the interactive path data in the operation data for triggering the mobile advertisement to be played in the quick application as the first trigger mode data; The time condition data and scene condition data in the running data that trigger the mobile advertisement to be played in the quick application are determined as the second trigger mode data.

4. The method according to claim 2, characterized in that: The quick application includes an advertisement playback record file, and the advertisement playback record file includes a first advertisement calling path required when the mobile advertisement is expected to be played in the quick application; and obtaining advertisement feature data of the mobile advertisement in the quick application includes: When the second advertisement calling path when the mobile advertisement is actually played in the quick application is the same as the first advertisement calling path, determining the calling function information corresponding to the first advertisement calling path as the calling function information of the advertisement calling path in the quick application; When the second advertisement calling path when the mobile advertisement is actually played in the quick application is different from the first advertisement calling path, the calling function information corresponding to the second advertisement calling path is determined as the advertisement content data when the mobile advertisement is called by the quick application.

5. The method according to claim 2, characterized in that: The illegal advertisement characteristic data includes the triggering method data of illegal advertisement playing, the calling data of illegal advertisement playing, and the illegal advertisement type data; the illegal result includes at least one of the following: the first illegal result, the second illegal result, and the third illegal result; In the case where the matching result indicates that the advertisement characteristic data matches the illegal advertisement characteristic data, generating an illegal result includes: In the case where the matching result indicates that the triggering method data of the advertisement playing matches the triggering method data of the illegal advertisement playing, generating the first illegal result, wherein the first illegal result is used to indicate that there is illegality in the triggering method of the mobile advertisement; If the matching result indicates that the calling data of the advertisement playback matches the calling data of the illegal advertisement playback, generating a second illegal result, wherein the second illegal result is used to indicate that there is an illegality in the playback path of the mobile advertisement in the quick application; In the case where the matching result indicates the advertisement type data and the illegal advertisement type data, the third illegal result is generated, and the third illegal result is used to indicate that there is an illegality in the advertisement type of the mobile advertisement.

6. The method according to claim 1, characterized in that Before obtaining advertisement feature data of mobile advertisements in quick applications, the method further includes: Determining a first fusion text file according to the mobile advertisement filing file of the quick application and the advertisement running code file of the mobile advertisement; Adjusting the runtime code syntax dependency relationship of at least two text files having the runtime code syntax dependency relationship in the first fused text file to obtain a second fused text file; Based on the first fused text file and the second fused text file, a mobile advertisement in the quick application is determined.

7. The method according to claim 6, characterized in that The determining of the first fusion text file according to the mobile advertisement filing file of the quick application and the advertisement running code file of the mobile advertisement includes: Acquire a first file of a class object-related code file for creating the mobile advertisement from the advertisement filing file, and acquire a second file of an advertisement object-related code file for locating the mobile advertisement; The first fused file text is generated according to the first file and the second file.

8. The method according to claim 7, characterized in that The class object related code files include code files for K class objects and class object dependency files; The step of generating the first fused file text according to the first file and the second file includes: adding the K class object code files and the class object dependency code files corresponding to each class object code file in the K class object code files to a first queue; The first fusion file text is generated based on the i-th class object dependency code file in the first queue, the first target dependency code file having a running code syntax dependency relationship with the i-th class object dependency code file, and the second target dependency code file having a running code syntax dependency relationship with the first target dependency code file.

9. The method according to claim 7, characterized in that: The advertisement object related code files include P advertisement object code files and advertisement object dependent code files; The step of generating the first fused file text according to the first file and the second file includes: Adding the P advertisement object code files and the class object dependency code file in the advertisement object dependency code file corresponding to each advertisement object code file in the P advertisement object code files to a first queue; The first fusion file text is generated based on the j-th advertising object class dependency code file in the first queue, the first target advertising object class dependency code file having an operation code syntax dependency relationship with the j-th advertising object class dependency code file, and the second target advertising object class dependency code file having an operation code syntax dependency relationship with the first target advertising object class dependency code file.

10. The method according to claim 6, characterized in that The step of adjusting the runtime code syntax dependency of at least two text files having runtime code syntax dependency in the first fused text file to obtain the second fused text file comprises: Deleting the code of the dynamic loader in the first fused text file to obtain a static web page text file; Splitting at least two text files having a running code syntax dependency relationship among the static webpage text files to obtain M independent advertising code files, where M is an integer greater than 1; Based on the M independent advertising code files, adjusting the first code syntax dependency relationship between the at least two text files having the running code syntax dependency relationship and the global file in the quick application to the second code syntax dependency relationship between each independent advertising code file in the M independent advertising code files and the global file; Based on the second code syntax dependency, the compatibility of each independent advertisement code file with the global file in the first fused text file is adjusted to obtain the second fused text file.

11. The method according to claim 6, characterized in that The determining the mobile advertisement in the quick application based on the first fused text file and the second fused text file includes: Based on the first fused text file and the second fused text file, construct an advertisement stream function call graph for the quick application to play the mobile advertisement; A mobile advertisement in the quick application is determined from the advertisement stream function call graph.

12. The method according to claim 11, characterized in that The step of constructing an advertisement stream function call graph for playing the mobile advertisement by the quick application based on the first fused text file and the second fused text file includes: Extracting the organizational structure and type relationship of the code logic in the first fused text file and the second fused text file; Based on the organizational structure and type relationship of the code logic, an advertisement stream function call graph for the quick application to play the mobile advertisement is generated.

13. The method according to claim 11, characterized in that The advertisement stream calling data includes a function calling sequence flow for the quick application to play the mobile advertisement; The determining the mobile advertisement in the quick application from the advertisement stream function call graph includes: By using a depth-first algorithm, the advertisement stream function call graph is traversed to obtain an access function for triggering the mobile advertisement to access the quick application, a creation function for the mobile advertisement, and a display function for the mobile advertisement; The mobile advertisement is generated according to the function processing sequence of the access function, the creation function and the display function.

14. A device for identifying illegal advertisements, characterized in that: include: An acquisition module is used to obtain advertisement feature data of mobile advertisements in quick applications; A matching module, used for matching the advertisement characteristic data with the illegal advertisement characteristic data to obtain a matching result; The generating module is used to generate a violation result when the matching result indicates that the advertisement characteristic data matches the violation advertisement characteristic data, wherein the violation result is a result that the mobile advertisement is a violation mobile advertisement.

15. An electronic device, characterized in that: include: A processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the illegal advertisement identification method as described in any one of claims 1 to 13.

16. A readable storage medium, characterized in that: The readable storage medium stores programs or instructions, and when the programs or instructions are executed by the processor, the steps of the illegal advertisement identification method as described in any one of claims 1-13 are implemented.