Page advertisement screenshot method, system and equipment and storage medium

By using automated ad placement configuration and image recognition technology, the problem of low efficiency in manually taking screenshots of mobile application ad content has been solved. This enables efficient and accurate ad placement screenshots, adapts to complex page changes, and improves ad verification and monitoring efficiency.

CN120994097APending Publication Date: 2025-11-21CTRIP TRAVEL NETWORK TECH SHANGHAI0
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511087192.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-08-04
Publication Date
2025-11-21

AI Technical Summary

Technical Problem

In existing technologies, screenshotting methods for mobile application advertising content rely on manual operation, which is inefficient and easily affected by human factors, making it difficult to adapt to frequent updates of advertising content and dynamic changes in page layout.

Method used

This paper provides a method for taking screenshots of page advertisements. It obtains the ad placement configuration information by receiving user input, automatically adjusts the target ad placement to the terminal's visible area based on the ad placement coordinates and operation instructions, and takes a screenshot. It supports strategic screenshots of various ad types and detects screenshot errors through an image recognition model, thus achieving automated ad placement screenshots.

Benefits of technology

It significantly improves the efficiency and quality of ad verification, enhances adaptability to dynamic changes in ad placements on app pages, is suitable for large-scale ad placement and page content monitoring scenarios, reduces manual operation time and effort, and improves system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120994097A_ABST
    Figure CN120994097A_ABST
Patent Text Reader

Abstract

According to the page advertisement screenshot method, system and device and the storage medium, the advertisement space configuration information is obtained by responding to user input, the advertisement space configuration information comprises the page path of the target advertisement space, the advertisement space coordinates and the first operation instruction used for page control, and the advertisement space coordinates are used for identifying the position of the target advertisement space in the page; and skipping to a target page based on the page path, adjusting the target advertisement position to a terminal visible area based on the first operation instruction, and performing at least one time of screenshot on the target page based on the advertisement position coordinates to obtain an advertisement position screenshot image. According to the embodiment, rapid collection of a large number of pages or advertisement space images can be achieved, and the efficiency and stability of advertisement space screenshot are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of mobile application technology, and in particular to a method, system, device, and storage medium for taking screenshots of web page advertisements. Background Technology

[0002] With the rapid development of the mobile internet, mobile applications (APPs) have become an important platform for online advertising. Advertisers and platform operators need to use screenshot technology to verify the accuracy, completeness, and display effect of advertising content to ensure that the advertisements meet the requirements for placement.

[0003] However, existing technologies rely on manual screenshotting of advertising content, which requires significant time and human resources. Operators need to navigate to the target page, adjust the ad placement to the visible area, and take the screenshot. This process is inefficient and susceptible to human error, resulting in inconsistent screenshot quality and difficulty in adapting to frequent updates to advertising content and dynamic changes in page layout.

[0004] It should be noted that the information disclosed in the background section above is only used to enhance the understanding of the background of the present invention, and therefore may include information that does not constitute prior art known to those skilled in the art. Summary of the Invention

[0005] In view of the problems in the prior art, the present invention aims to provide a method, system, device and storage medium for taking screenshots of page advertisements, which overcomes the difficulties of the prior art and solves the technical problem of low efficiency in the prior art for taking screenshots of advertisements in APP.

[0006] The first aspect of this disclosure provides a method for taking screenshots of page advertisements in a mobile application, comprising:

[0007] Receive user input;

[0008] In response to the user input, ad placement configuration information is obtained. The ad placement configuration information includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page.

[0009] The system redirects to the target page based on the page path, adjusts the target ad position to the visible area of ​​the terminal based on the first operation instruction, and takes at least one screenshot of the target page based on the coordinates of the ad position to obtain an ad position screenshot image.

[0010] Optionally, the method for taking screenshots of page advertisements further includes:

[0011] Screen recording begins from the point where the user is redirected to the target page based on the page path, and continues until a screenshot of the ad placement is obtained, generating a screen recording file.

[0012] Optionally, when multiple screenshots of the target page are taken based on the coordinates of the ad placement to obtain multiple screenshot images of the ad placement, the page ad screenshot method further includes:

[0013] Based on the extracted image features, the similarity of the multiple ad space screenshots is compared. If the comparison results show that the similarity of at least two ad space screenshots exceeds a preset threshold, then one of them is retained as the final ad space screenshot.

[0014] Optionally, the ad placement configuration information also includes the ad type of the target ad placement, wherein the ad type is one of pop-up ads, banner ads, and waterfall ads; the step of taking at least one screenshot of the target page based on the ad placement coordinates to obtain an ad placement screenshot image includes:

[0015] According to the screenshot strategy corresponding to the ad type, the target page is screenshotted at least once based on the ad position coordinates to obtain the ad position screenshot image.

[0016] Optionally, the screenshot strategy includes:

[0017] If the advertisement type is the pop-up advertisement, after the target page is navigated to based on the page path, the target page is captured at least once based on the advertisement position coordinates after waiting for a first preset time.

[0018] If the advertisement type is the banner advertisement, then a sliding operation on the target advertisement position is simulated based on the advertisement position coordinates, and after waiting for a second preset time, the target page is captured at least once based on the advertisement position coordinates. The sliding operation, the waiting for the second preset time, and the capture are repeated until multiple advertisement position screenshot images are obtained, and the multiple advertisement position screenshot images are deduplicated based on the image deduplication algorithm.

[0019] If the ad type is the waterfall ad, then before taking at least one screenshot of the target page based on the ad position coordinates, the ad loading operation is simulated based on the second operation instruction to display the ad in the target ad position. The ad loading operation is swiping, clicking, or waiting.

[0020] Optionally, if the advertisement type is the waterfall advertisement, the page advertisement screenshot method further includes: when the advertisement loading operation is the swiping, repeating the swiping and taking a screenshot of the target page based on the advertisement position coordinates at least once to obtain multiple advertisement position screenshot images, and performing deduplication processing on the multiple advertisement position screenshot images based on an image deduplication algorithm.

[0021] Optionally, if the advertisement type is the banner advertisement, the method for taking screenshots of the page advertisement further includes:

[0022] Before simulating a swiping operation on the target ad slot based on the ad slot coordinates, it is detected whether there is a pop-up ad on the target page. If there is a pop-up ad, the pop-up close button is identified, and the pop-up close operation is simulated based on the identified pop-up close button.

[0023] Optionally, when multiple ad types are included, the process is as follows: for each ad type, the target ad position is adjusted to the terminal's visible area based on the first operation instruction, and the target page is captured at least once based on the ad position coordinates to obtain an ad position screenshot image.

[0024] Optionally, the method for taking screenshots of page advertisements further includes:

[0025] By identifying the image features of the screenshot of the ad placement, it is detected whether there is a screenshot error in the screenshot of the ad placement; if there is a screenshot error, the process of jumping to the target page based on the page path is repeated until there is no screenshot error in the screenshot of the ad placement.

[0026] Optionally, detecting whether there is a screenshot error in the screenshot image of the ad space by recognizing the image features of the screenshot image includes:

[0027] The screenshot of the ad placement is input into a trained image recognition model. The image recognition model identifies the image features of the screenshot of the ad placement, detects whether there is a screenshot error, and outputs the screenshot error identification result.

[0028] The image recognition model is trained based on historical advertising image samples, which include ad position coordinates and ad position feature information. The ad position feature information includes the image pixel distribution and layout structure based on the ad position coordinates.

[0029] Optionally, the method for taking screenshots of page advertisements further includes: if there is a screenshot error, outputting a screenshot error message.

[0030] Optionally, the first operation instruction includes swiping, clicking, or waiting.

[0031] Optionally, the method for taking screenshots of page advertisements further includes:

[0032] Before receiving user input, a screenshot configuration interface is displayed to receive the user input and parse the ad placement configuration information through the screenshot configuration interface.

[0033] Optionally, the method for taking screenshots of page advertisements further includes:

[0034] If redirection to the target page based on the stated page path fails or page rendering times out, retry redirecting to the target page based on the stated page path and log the error.

[0035] A second aspect of this disclosure provides a screenshot system for page advertisements in mobile applications, comprising:

[0036] The receiving module receives user input;

[0037] The response module receives ad placement configuration information in response to the user input. The ad placement configuration information includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page.

[0038] The screenshot module redirects to the target page based on the page path, adjusts the target ad position to the terminal's visible area based on the first operation instruction, and takes at least one screenshot of the target page based on the ad position coordinates to obtain an ad position screenshot image.

[0039] A third aspect of this disclosure provides an electronic device comprising:

[0040] processor;

[0041] A memory in which executable instructions of the processor are stored;

[0042] The processor is configured to perform the steps of the page advertisement screenshot method for a mobile application according to any of the above embodiments by executing the executable instructions.

[0043] The fourth aspect of this disclosure provides a computer-readable storage medium for storing a program that, when executed, implements the steps of a page advertisement screenshot method for a mobile application according to any embodiment.

[0044] The method, system, device, and storage medium for taking screenshots of page advertisements in mobile applications provided in this disclosure have the following advantages:

[0045] In this embodiment, personalized ad placement configuration information can be obtained based on user input, and a redirection operation to the target page can be triggered based on the configuration information to automatically capture screenshots of the target ad placements on the page. This embodiment provides an automated APP page ad screenshot solution that can accurately locate the ad display area on the target page based on ad placement coordinates and a first operation command, replacing traditional manual operation methods and achieving efficient and accurate ad placement screenshots.

[0046] The above methods not only significantly improve the efficiency and quality of ad verification, but also enhance the solution's adaptability and robustness to dynamic changes in ad placements within the app, making it suitable for real-time and complex use cases. Furthermore, through automated screenshot technology, this implementation method can rapidly collect images of a large number of pages or ad placements, effectively reducing the time and effort required for manual operations.

[0047] In addition, this implementation method also supports preset configuration parameters and automated execution processes, which can realize batch processing of advertising screenshot tasks. It is particularly suitable for scenarios such as large-scale advertising and page content monitoring, thereby further improving overall work efficiency and system stability.

[0048] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0049] Other features, objectives, and advantages of the invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings.

[0050] Figure 1 One of the flowcharts illustrating a method for taking screenshots of page advertisements in a mobile application according to an embodiment of this disclosure;

[0051] Figure 2 Show an app page with pop-up ads, where "Ads" is the ad placement area;

[0052] Figure 3 Display an app page with a banner ad, where "Ad" is the ad placement area;

[0053] Figure 4 Show an app page with waterfall-style ads, where "Ads" is the ad placement area;

[0054] Figure 5 A second flowchart illustrating a method for taking screenshots of page advertisements in a mobile application according to an embodiment of this disclosure;

[0055] Figure 6This is the third flowchart illustrating a method for taking screenshots of page advertisements in a mobile application according to an embodiment of this disclosure;

[0056] Figure 7 This illustration shows a schematic diagram of the module structure of a page advertisement screenshot system for mobile applications provided in an embodiment of this disclosure;

[0057] Figure 8 This invention discloses a schematic diagram of the structure of an electronic device provided in an embodiment of the present invention.

[0058] Figure 9 This is a schematic diagram of the structure of a computer program product according to an embodiment of the present disclosure. Detailed Implementation

[0059] To make the technical solution of the present invention clearer and more specific, exemplary embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be understood that the following embodiments are only used to illustrate the technical implementation path of the present invention, and are not intended to limit the scope of protection of the present invention. Those skilled in the art should be able to make various modifications and adjustments based on the basic ideas disclosed in the present invention, and these modifications should also be considered as included within the scope of protection of the present invention.

[0060] It should be noted that the specific implementation methods provided in this specification can be implemented in various forms, and the examples given should not be construed as limiting the present invention in any way. The structural features, module divisions, and processing steps in the implementation methods can be flexibly combined and adjusted according to the system architecture, deployment platform, and operating environment to better adapt to the needs of the target application scenario.

[0061] Furthermore, the accompanying drawings are used to illustrate the principle structure and implementation steps of the present invention and are not necessarily drawn to physical scale. To simplify the description of the drawings, the same reference numerals in the drawings represent the same or similar components or modules, and therefore these same elements will not be described repeatedly in multiple drawings. The functional entities or processing flows shown in the drawings can be implemented in various ways and are not limited to a specific hardware structure or logical division. Specific implementations can be achieved through software functions, API interfaces, script logic, microservice processes, or hardware modules, and can also be completed in a single computing node or a distributed system.

[0062] like Figure 1 As shown, Figure 1This flowchart illustrates a method for taking screenshots of page advertisements in a mobile application, as provided by an embodiment of this disclosure. This method automatically captures screenshots of advertisement content displayed on an app page. The execution entity of this method is an automated script program running on an external server or local device. The script program establishes a connection with the corresponding app through a UI automation interface (such as ADB+uiautomator, Appium, etc.) to trigger the app to automatically capture screenshots of the advertisement positions displayed on the page. This improves the execution efficiency and image quality stability of the ad screenshot process, making it particularly suitable for business scenarios requiring large-scale, batch collection of advertisement display content.

[0063] like Figure 1 As shown, the methods for taking screenshots of the advertisements on this page include, but are not limited to, the following steps:

[0064] Step 110: Receive user input;

[0065] Step 120: In response to the user input, obtain the ad placement configuration information, which includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page.

[0066] Step 130: Redirect to the target page based on the page path, adjust the target ad position to the terminal's visible area based on the first operation instruction, and take at least one screenshot of the target page based on the ad position coordinates to obtain an ad position screenshot image.

[0067] In this embodiment, personalized ad placement configuration information can be obtained based on user input, and a redirection operation to the target page can be triggered based on the configuration information to automatically capture screenshots of the target ad placements on the page. This embodiment provides an automated APP page ad screenshot solution that can accurately locate the ad display area on the target page based on ad placement coordinates and a first operation command, replacing traditional manual operation methods and achieving efficient and accurate ad placement screenshots.

[0068] The above methods not only significantly improve the efficiency and quality of ad verification, but also enhance the solution's adaptability and robustness to dynamic changes in ad placements within the app, making it suitable for real-time and complex use cases. Furthermore, through automated screenshot technology, this implementation method can rapidly collect images of a large number of pages or ad placements, effectively reducing the time and effort required for manual operations.

[0069] In addition, this implementation method also supports preset configuration parameters and automated execution processes, which can realize batch processing of advertising screenshot tasks. It is particularly suitable for scenarios such as large-scale advertising and page content monitoring, thereby further improving overall work efficiency and system stability.

[0070] In one application scenario, a screenshot configuration interface is displayed on the current terminal. This interface provides a screenshot configuration entry point to receive user input and parse the ad placement configuration information. The configuration options displayed on the interface include the page path of the target ad placement, the ad placement coordinates, and a first operation command for page control. The page path is used for navigation or jumping to the target page, and the first operation command is used to control the adjustment of the target ad placement to the visible area of ​​the current terminal for visual screenshot capture.

[0071] For example, the screenshot configuration interface displays a page path input box, which can be a text input box and / or a page preview button. Users can enter the path to the page where the target ad placement is located or a Uniform Resource Identifier (URI).

[0072] The ad placement coordinates configuration option provides a visual selection option. For example, when the current terminal displays a screenshot or preview of the target page's ad, the user can directly click on the ad placement (such as a banner, icon, or card area) in the screenshot or preview to generate the ad placement coordinates. Alternatively, the system can automatically obtain the coordinates of the user's click location and simultaneously display them in the coordinate input box in the screenshot configuration interface (e.g., "X:120, Y:300, Width:200, Height:100"), as the ad placement coordinates.

[0073] The first operation command can be executed through the drop-down menu or the operation recording button.

[0074] In one implementation, the user enters the "Screenshot Configuration Interface," which is displayed as a form module. The user enters / hotel / detail / 12345 in the "Page Path" field. The system loads the page via the "Preview Page" button. The user selects an area on the page as an ad placement by clicking or dragging with the mouse, and the system automatically records the coordinates of the ad placement. The user selects "Scroll down to the ad placement" in the "First Operation Instruction" drop-down menu. Based on the user's input, the system generates ad placement configuration information.

[0075] In addition, the screenshot configuration interface can also include an ad type option to provide corresponding screenshot strategies based on the ad type selected by the user, achieving precise adaptation.

[0076] Optionally, a screenshot configuration entry can be provided to receive ad placement configuration files uploaded by users and parse these files to obtain ad placement configuration information. In this case, the screenshot configuration interface provides a trigger icon. When the trigger icon is detected to have received a user action, it triggers the execution to obtain the ad placement configuration information.

[0077] After receiving the ad placement trigger information, the system can automatically redirect to the target page based on the page path. At this time, the target page may contain the target ad placement and display the ad content. Then, based on the first operation command, the target ad placement is adjusted to the visible area of ​​the terminal. By automatically scrolling or positioning the ad placement element to the visible area of ​​the current terminal screen, the system can easily capture a complete and clear screenshot.

[0078] In one implementation, the first operation instruction is set when the user configures the screenshot parameters, and may include operations such as swiping, clicking, or waiting, for example, actions such as "scroll to top / bottom", "locate by ID", "simulate clicking a tab", "wait for dynamic loading to complete" and so on.

[0079] Specifically, based on the coordinates of the ad placement, the system identifies the DOM structure and location information of the target ad placement, checks whether the target ad placement has entered the visible area, and if it has not entered the visible area, it continues to adjust: scrolling down or up a certain distance; or trying other operations (such as clicking the "expand" button); repeating the judgment and scrolling until the target ad placement becomes visible.

[0080] In this embodiment, the automated script program can respond to a first operation command to control the terminal to simulate operations such as page swiping, scrolling, or control expansion, thereby adjusting the target advertisement from its original position to the visible area of ​​the terminal. The visible area refers to the area of ​​the page that can be fully or primarily displayed on the terminal screen. This method ensures that the target advertisement is in a screenshot-friendly position on the terminal display interface, providing a foundation for subsequent image capture operations.

[0081] In this embodiment of the disclosure, when the target ad placement enters the visible area of ​​the current terminal, the ad content may be displayed immediately. At this time, step 130 can be executed to automatically take a screenshot of the target page based on the ad placement coordinates. The ad placement coordinates mark the coordinate information of the target ad placement in the target page. The coordinate information may include the area boundary of the target ad placement in the target page (e.g., the pixel coordinates of the upper left and lower right corners).

[0082] In some implementations, the generation of the ad placement screenshot image includes the following process: Based on the coordinate information of the target ad placement in the target page (i.e., ad placement coordinates), after the target page is rendered, the terminal or server calls the screenshot interface of the page rendering engine, uses the ad placement coordinates as a reference to determine the screenshot area, and performs at least one image capture operation on the screenshot area to obtain the ad placement screenshot image corresponding to the ad placement content.

[0083] In one optional embodiment, the screenshot operation may include the following steps:

[0084] The absolute or relative position information of the target ad placement on the target page is parsed. This position information may include the coordinates (x, y) of the top left corner and the width and height parameters (width, height).

[0085] Based on the location information, a rectangular frame of the screenshot area is constructed. After the target page is rendered, the image of this rectangular area is captured as the screenshot image of the ad space.

[0086] If the target page has dynamically loaded elements (such as lazy loading or asynchronous rendering), a screenshot timing delay strategy can be set to ensure that the ad content is rendered before taking a screenshot.

[0087] Optionally, after the target ad placement enters the terminal's visible area, a set time can be waited for the ad image to stabilize before taking a screenshot, avoiding image blurring or content loss due to page animation or dynamic loading of ad content.

[0088] Optionally, the target ad space can be captured once or multiple times. Multiple captures can ensure that the ad space screenshot image is of good quality.

[0089] In one implementation, multiple screenshots are taken of the same target ad position on the target page based on the ad position coordinates, resulting in multiple screenshot images of the ad position. Furthermore, the page ad screenshot method further includes:

[0090] Based on the extracted image features, the similarity of the multiple ad slot screenshots is compared. If the comparison results show that the similarity of at least two ad slot screenshots exceeds a preset threshold, one of them (e.g., the one with the higher image quality score or the one with the latest timestamp) is retained as the final ad slot screenshot, and the remaining ad slot screenshots are discarded.

[0091] Specifically, image feature extraction algorithms are used to encode the screenshots of each ad placement, and cosine similarity, structural similarity index Measure (SSIM), or other image similarity measurement methods are used to calculate the similarity value between any two ad placement screenshots.

[0092] By implementing the above methods, duplicate identification and deduplication of multiple ad placement screenshots help reduce storage redundancy and improve the processing efficiency and image management accuracy of ad placement screenshots. The ad placement screenshots obtained in this way can serve as the input basis for subsequent ad display quality analysis, creative review, or manual correction processes.

[0093] Referring to the above, in one implementation, and in some implementations, to adapt to different types of ad display characteristics, the ad placement configuration information may further include the ad type of the target ad placement. The ad type is one of pop-up ads, banner ads, and waterfall ads; the step of taking at least one screenshot of the target page based on the ad placement coordinates to obtain an ad placement screenshot image includes:

[0094] The timing and frequency of screenshots are controlled according to the screenshot strategy corresponding to the ad type. The target page is screenshotted at least once based on the coordinates of the ad position to obtain the screenshot image of the ad position, thereby improving the stability and integrity of the screenshot.

[0095] Specifically:

[0096] If the ad type is a pop-up ad, such as Figure 2 As shown, since pop-up ads may experience a delay in display after the page loads, the system will automatically enter a waiting state after navigating to the target page based on the page path. This waiting state lasts for a first preset time (e.g., 1 to 3 seconds) to ensure that the pop-up ad completes loading and enters a stable display area. Subsequently, the target page is captured at least once based on the ad position coordinates to obtain a screenshot image of the pop-up ad.

[0097] If the ad type is a banner ad, such as Figure 3 As shown, since banner ads may be embedded in the middle or bottom of the page content, after entering the target page, the system can simulate a sliding operation based on the ad position coordinates (e.g., simulating a finger sliding from the first coordinate position (x1, y1) to the second coordinate position (x2, y2)) to scroll the target ad position into the terminal's visible area. After the sliding operation is completed, a second preset time is waited to ensure that the page scrolling stops and to avoid image blurring, and then a screenshot operation is performed. The sliding operation, the waiting for the second preset time, and the screenshot are repeated multiple times to obtain multiple banner ad position screenshot images. After obtaining multiple ad position screenshot images, an image deduplication algorithm (such as an image feature vector-based similarity algorithm) is further used to deduplicate the multiple ad position screenshot images, retaining the ad position screenshot image with the best image quality or the unique non-repeating ad position screenshot image as the final output result.

[0098] For example, in apps, banner ads are typically located at the top, bottom, or center of the page, exhibiting strong carousel characteristics and asynchronous loading behavior. When a user opens a target page, they will see a banner ad area whose content automatically rotates every few seconds, displaying multiple ad images, or they can switch to the next ad by swiping. Given the dynamic carousel, content switching, and loading delay characteristics of banner ads, a single ad screenshot may not capture all ad instances, and there may even be issues such as duplicate content display, loading failures, or placeholder images. To ensure the comprehensiveness of ad content collection and image quality, the system needs to collect multiple ad screenshots through multiple swipe operations and multiple ad screenshot methods, and then use an image deduplication algorithm to filter out valid, non-duplicate ad screenshots.

[0099] If the ad type is a waterfall ad, such as Figure 4 As shown, since waterfall-style ad content is typically triggered by sliding loading, before taking at least one screenshot of the target page based on the ad position coordinates, the ad loading operation is simulated according to the second operation instruction contained in the ad configuration information. The ad position loading operation can include sliding (e.g., sliding down to load the next group of ads), clicking (e.g., clicking the "More Ads" button), or waiting (for dynamic page rendering). By simulating the ad position loading behavior, the ad content in the target ad position is displayed in the terminal's visible area. After loading is complete, a screenshot is taken based on the ad position coordinates. If the loading method is a sliding operation, the sliding and screenshot operations can be executed repeatedly until multiple ad position screenshot images are obtained. The multiple ad position screenshot images are then deduplicated using an image deduplication algorithm to output the final ad position screenshot image.

[0100] For example, compared to the carousel-like nature of banner ads, waterfall ads are commonly found on information feed pages, such as news, social media, or product recommendation pages. Their ad placements are distributed across multiple vertical positions on the page, dynamically loading as the page scrolls. During implementation, to ensure that screenshots of all waterfall ad placements are obtained, a simulated vertical scrolling operation is used to gradually slide each target ad placement into the visible area, and a screenshot is taken after each scroll. Since some waterfall pages may experience issues such as duplicate ad loading, scroll bounce, or lazy loading, multiple scrolling and image deduplication strategies can also be employed to ensure the diversity and accuracy of ad content.

[0101] In the above implementation, the image deduplication algorithm can refer to the processing method for removing multiple ad slot screenshots in the above implementation, and will not be repeated here.

[0102] In a preferred embodiment, when the ad placement configuration information contains multiple ad types (such as a page containing pop-up ads, banner ads, and waterfall ads), the system can execute the screenshot strategy in sequence, prioritizing the screenshot operation for pop-up ads, followed by banner ads, and finally waterfall ads, to ensure clear element hierarchy during the screenshot process and avoid screenshot interference caused by dynamic page behavior.

[0103] Furthermore, before taking a screenshot of the banner ad, it can also detect whether there are any obstructive pop-up ads on the current target page. If a pop-up ad exists, the pop-up close button is identified, and a pop-up close operation is simulated based on the identified pop-up close button (which can be implemented through image recognition or UI element analysis) to close the pop-up, thus avoiding the pop-up ad obstructing the banner content and causing screenshot failure or misjudgment.

[0104] Through the strategic screenshot process corresponding to the above-mentioned multiple types of advertisements, the page advertisement screenshot method can adapt to the complex and ever-changing advertisement display formats in actual mobile applications, ensuring the accuracy, consistency and usability of the advertisement screenshot images, and significantly improving the automated quality of advertisement screenshots.

[0105] like Figure 5 As shown, this disclosure also provides a method for taking screenshots of page advertisements in an app, which includes, but is not limited to, the following steps:

[0106] Step 510: Receive user input;

[0107] Step 520: In response to the user input, obtain the ad placement configuration information, which includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page.

[0108] Step 530: Based on the page path, jump to the target page, and based on the first operation instruction, adjust the target ad position to the terminal's visible area, and take at least one screenshot of the target page based on the ad position coordinates to obtain an ad position screenshot image;

[0109] Step 540: By identifying the image features of the ad space screenshot, detect whether there is a screenshot error in the ad space screenshot; if there is a screenshot error, re-execute the step of jumping to the target page based on the page path until there is no screenshot error in the ad space screenshot.

[0110] In this implementation, screenshot errors are detected by analyzing the screenshot images of the ad placements to identify and correct screenshot errors caused by reasons such as page loading failure, network fluctuations, incomplete display of the ad area, or obstruction by pop-ups, thereby improving the accuracy and usability of ad screenshots.

[0111] In one implementation, the screenshot of the ad placement is used as input to a pre-trained image recognition model. The image recognition model identifies image features of the screenshot, such as pixel distribution, texture structure, edge contours, color histogram, and text region density, to detect whether there are screenshot errors (e.g., blank spaces, loading failures, missing content, repeated carousel frames, ad placement not displayed, etc.), and outputs a screenshot error identification result, such as whether the screenshot is correct or incorrect.

[0112] In this embodiment, the image recognition model can be trained based on historical advertising image samples. These historical advertising image samples may include the corresponding advertising position coordinates and advertising position feature information. The advertising position feature information includes dimensions such as the image pixel distribution based on the advertising position coordinates, the proportion of identifiable text areas, and the layout structure (such as whether there is a title / image / button distribution).

[0113] Alternatively, image template matching, text recognition based on optical character recognition (OCR), pixel distribution analysis, and other techniques can be used to perform structured comparison and feature matching of the content of multiple ad space screenshots to help identify whether the ad space screenshots contain the expected advertising information, thereby achieving screenshot error detection.

[0114] In some implementations, if a screenshot error exists, a screenshot error message can also be output. For example, if the screenshot error persists, a screenshot error message can be output. This message can be written locally via a log system or uploaded to a remote monitoring platform for operations personnel to investigate the cause. For example, the content of the screenshot error message may include the ad placement identifier, page path, screenshot time, error type, etc.

[0115] In this implementation, based on the screenshot error message, suspected erroneous screenshots will automatically enter the manual review queue. Reviewers will judge whether the screenshot is a valid ad placement based on multiple dimensions such as ad display logic, visual structure, and coordinate information.

[0116] By introducing a manual review mechanism, the limitations of the aforementioned image recognition models in identifying scenarios with high similarity or prone to misjudgment can be effectively compensated for, thereby improving the overall screenshot accuracy of the system. Furthermore, the results of the manual review can be recorded and fed back into the image recognition model for subsequent continuous training and parameter optimization, thus gradually improving the model's fault tolerance and discrimination accuracy.

[0117] For example, an app needs to take a screenshot of the banner ad area on its homepage. The system takes a partial screenshot based on preset ad coordinates (e.g., top left corner (100, 200), width and height 600×200), and then calls an image recognition model to check the image quality. The image recognition model determines that the screenshot of the ad area is a "white screen error" because the ad has not finished loading when the screenshot is taken. The system then automatically reloads the target page and delays the screenshot time before taking another screenshot. The second screenshot passes the screenshot error detection and is saved as the final screenshot of the ad area.

[0118] In another embodiment, an app page displays a waterfall-style ad feed. The system obtains multiple screenshots of the ad placements by swiping multiple times. The image recognition model detects that one of the images is "obscured by a pop-up." Based on the recorded pop-up feature location, the system automatically triggers a simulated "pop-up close" click action, refreshes the page, and takes a new screenshot until an unobstructed screenshot of the ad placement is obtained.

[0119] The screenshot error detection and recovery mechanism provided in this embodiment effectively improves the accuracy, integrity and robustness of the screenshot images of the ad slots, and is particularly suitable for automated ad image acquisition tasks under dynamic ad content and complex page structures.

[0120] In some exemplary embodiments, the page ad screenshot method also includes an exception handling mechanism to improve the stability and success rate of page redirection and ad screenshot operations.

[0121] Specifically, during the process of redirecting to the target page based on the page path, if a redirection failure is detected, such as due to the target page resource not loading successfully, network fluctuations causing loading interruption, or incorrect path configuration resulting in the page not existing, the system can trigger a preset retry mechanism. The retry mechanism may include setting a maximum number of retries N (e.g., N is 1 to 3 times). After the first redirection failure, the system will automatically re-execute the page path redirection operation within a limited time interval until success or the retry limit is reached.

[0122] Similarly, if the target page has been successfully redirected but the page rendering is not completed within the preset time threshold (i.e., page rendering timeout), the system can also trigger the same retry logic to ensure that the ad slot can be successfully loaded and enter the visible area, thereby meeting the prerequisite for subsequent screenshot operations.

[0123] In addition, the system can generate corresponding error log information in the event of any redirection failure or rendering timeout. The error log includes, but is not limited to: the target page identifier, the reason for failure, the failure timestamp, the terminal identifier, user session information, and network status. This log information can be stored in a log database or uploaded to a remote server for subsequent error analysis and system optimization.

[0124] Through the above methods, the system can have a certain fault tolerance when automatically executing page path navigation and screenshot tasks, reducing the loss of ad screenshots due to navigation failure or rendering timeout, and improving the completeness and accuracy of ad content collection.

[0125] In some exemplary implementations, such as Figure 6 As shown, the methods for taking screenshots of page ads for mobile applications include, but are not limited to, the following steps:

[0126] Step 610: Receive user input;

[0127] Step 620: In response to the user input, obtain the ad placement configuration information, which includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page.

[0128] Step 630: Based on the page path, jump to the target page, and based on the first operation instruction, adjust the target ad position to the terminal's visible area, and take at least one screenshot of the target page based on the ad position coordinates to obtain an ad position screenshot image;

[0129] Step 640: Start screen recording from the page path jump to the target page until the screenshot image of the advertisement space is obtained, and generate a screen recording file.

[0130] Specifically, screen recording begins when the target page is navigated to via a page path. This page path can include starting from the homepage or any intermediate page, loading transitional pages sequentially through multi-level page navigation instructions until the target page is reached. Screen recording continues until a screenshot of the preset ad placement is successfully captured.

[0131] The screen recording operation can be implemented by calling the screen recording function built into the terminal system, or by calling the screen recording interface provided by a dedicated automated testing framework to start and terminate the screen recording task. In specific implementations, the start point of screen recording can be set to when the APP returns to the foreground after entering the background, or before a page jump is executed, to set key markers so that the state changes before and after the jump can be accurately located in the subsequent screen recording video content. The video files generated during the screen recording process are cached as intermediate products. Once the screenshot of the ad space is successfully generated, the screen recording task automatically ends, and the recorded file is saved as an associated screen recording file for subsequent proofreading, error reproduction, or training of image recognition models.

[0132] By recording the screen simultaneously during the screenshot generation process, it not only helps to trace and analyze the source of abnormalities in the ad placement screenshots, but also serves as auxiliary material for manual verification, improving the accuracy and reproducibility of ad display content collection. It is especially suitable for backtracking in scenarios such as target page loading failure, ad placement position offset, or recognition error.

[0133] Figure 7 This is a schematic diagram of a module of an embodiment of a page advertisement screenshot system for mobile applications provided in this disclosure. Figure 7 As shown, the page advertisement screenshot system 700 disclosed herein includes, but is not limited to:

[0134] Receiver module 710 receives user input;

[0135] The response module 720 receives ad placement configuration information in response to the user input. The ad placement configuration information includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page.

[0136] The screenshot module 730 jumps to the target page based on the page path, adjusts the target ad position to the terminal's visible area based on the first operation instruction, and takes at least one screenshot of the target page based on the ad position coordinates to obtain an ad position screenshot image.

[0137] Optionally, the page ad screenshot system 700 also provides a screen recording module (not shown in the figure), which is used to record the screen from the point of navigation based on the page path to the target page until the screenshot image of the ad space is obtained, and generate a screen recording file.

[0138] Optionally, when multiple screenshots of the target page are taken based on the coordinates of the ad placement to obtain multiple screenshot images of the ad placement, the screenshot module 730 is further used for:

[0139] Based on the extracted image features, the similarity of the multiple ad space screenshots is compared. If the comparison results show that the similarity of at least two ad space screenshots exceeds a preset threshold, then one of them is retained as the final ad space screenshot.

[0140] Optionally, the ad placement configuration information also includes the ad type of the target ad placement, wherein the ad type is one of pop-up ads, banner ads, and waterfall ads; the screenshot module 730 is used for:

[0141] According to the screenshot strategy corresponding to the ad type, the target page is screenshotted at least once based on the ad position coordinates to obtain the ad position screenshot image.

[0142] Optionally, screenshot strategies include:

[0143] If the advertisement type is the pop-up advertisement, after the target page is navigated to based on the page path, the target page is captured at least once based on the advertisement position coordinates after waiting for a first preset time.

[0144] If the advertisement type is the banner advertisement, then a sliding operation on the target advertisement position is simulated based on the advertisement position coordinates, and after waiting for a second preset time, the target page is captured at least once based on the advertisement position coordinates. The sliding operation, the waiting for the second preset time, and the capture are repeated until multiple advertisement position screenshot images are obtained, and the multiple advertisement position screenshot images are deduplicated based on the image deduplication algorithm.

[0145] If the ad type is the waterfall ad, then before taking at least one screenshot of the target page based on the ad position coordinates, the ad loading operation is simulated based on the second operation instruction to display the ad in the target ad position. The ad loading operation is swiping, clicking, or waiting.

[0146] Optionally, if the advertisement type is the waterfall advertisement; the page advertisement screenshot system 700 is also used for:

[0147] When the ad loading operation is the swipe, the swipe and the screenshot of the target page based on the ad position coordinates are repeated at least once to obtain multiple ad position screenshot images, and the multiple ad position screenshot images are deduplicated based on the image deduplication algorithm.

[0148] Optionally, if the advertisement type is the banner advertisement, the screenshot module 730 is further used for:

[0149] Before simulating a swiping operation on the target ad slot based on the ad slot coordinates, it is detected whether there is a pop-up ad on the target page. If there is a pop-up ad, the pop-up close button is identified, and the pop-up close operation is simulated based on the identified pop-up close button.

[0150] Optionally, when multiple ad types are included, the screenshot module 730 is specifically used for:

[0151] Following the order of pop-up ads, banner ads, and waterfall ads, for each type of ad, the first operation instruction is used to adjust the target ad position to the terminal's visible area, and the target page is captured at least once based on the ad position coordinates to obtain an ad position screenshot image.

[0152] Optionally, the page ad screenshot system 700 may also include a screenshot error detection module (not shown in the figure), which is used for:

[0153] By identifying the image features of the screenshot of the ad placement, it is detected whether there is a screenshot error in the screenshot of the ad placement; if there is a screenshot error, the process of jumping to the target page based on the page path is repeated until there is no screenshot error in the screenshot of the ad placement.

[0154] Optionally, the screenshot error detection module is specifically used for:

[0155] The screenshot of the ad placement is input into a trained image recognition model. The image recognition model identifies the image features of the screenshot of the ad placement, detects whether there is a screenshot error, and outputs the screenshot error identification result.

[0156] The image recognition model is trained based on historical advertising image samples, which include ad position coordinates and ad position feature information. The ad position feature information includes the image pixel distribution and layout structure based on the ad position coordinates.

[0157] Optionally, the screenshot error detection module is also specifically used for:

[0158] If a screenshot error exists, an error message will be displayed.

[0159] Optionally, the first operation instruction includes swiping, clicking, or waiting.

[0160] Optionally, the page ad screenshot system 700 further includes a display module (not shown in the figure), which is used to: display a screenshot configuration interface before receiving user input, so as to receive the user input and parse the ad slot configuration information through the screenshot configuration interface.

[0161] Optionally, the page ad screenshot system 700 is also used to: retry redirecting to the target page based on the page path and record error logs when the page fails to redirect to the target page based on the page path or when the page rendering times out.

[0162] This system provides an automated solution for capturing app page advertisement screenshots. It obtains personalized ad placement configuration information based on user input and triggers a redirection to the target page based on this configuration information to automatically capture screenshots of the target ad placements, achieving efficient and accurate ad placement capture. Furthermore, this system can perform batch processing of ad screenshot tasks, making it particularly suitable for large-scale ad placement and page content monitoring scenarios, thereby further improving overall operational efficiency and system stability.

[0163] The various modules of this system can be interconnected through data interfaces to collaboratively implement the page ad screenshot system for mobile applications. The system can be embedded as an independent software module into front-end development tools, or it can provide an interface as a cloud service for developers to call remotely.

[0164] This invention also provides a device for taking screenshots of page advertisements in a mobile application, including a processor and a memory, wherein the memory stores executable instructions of the processor. The processor is configured to perform steps of a method for taking screenshots of page advertisements in a mobile application by executing the executable instructions.

[0165] As shown above, the page ad screenshotting device for mobile applications of the present invention provides an automated solution for screenshotting APP page ads. It obtains personalized ad placement configuration information based on user input and triggers a redirection to the target page based on this configuration information to automatically capture the target ad placements on the page, achieving efficient and accurate ad placement screenshotting. Furthermore, this system can perform batch processing of ad screenshotting tasks, making it particularly suitable for large-scale ad placement and page content monitoring scenarios, thereby further improving overall operational efficiency and system stability.

[0166] Those skilled in the art will understand that various aspects of the present invention can be implemented as systems, methods, or program products. Therefore, various aspects of the present invention can be specifically implemented in the following forms: a completely hardware implementation, a completely software implementation (including firmware, microcode, etc.), or a combination of hardware and software aspects, collectively referred to herein as a "circuit," "module," or "platform."

[0167] Figure 8 This is a schematic diagram of the electronic device of the present invention. See below for reference. Figure 8 To describe an electronic device 800 according to this embodiment of the present invention. Figure 8 The electronic device 800 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0168] like Figure 8 As shown, the electronic device 800 is presented in the form of a general-purpose computing device. The components of the electronic device 800 may include, but are not limited to: at least one processing unit 810, at least one storage unit 820, a bus 830 connecting different platform components (including storage unit 820 and processing unit 810), a display unit 840, etc.

[0169] The storage unit stores program code, which can be executed by the processing unit 810, causing the processing unit 810 to perform the steps described in the above-described section of this specification regarding the method for taking screenshots of page advertisements for mobile applications, according to various exemplary embodiments of the present invention. For example, the processing unit 810 can perform actions such as... Figure 1 The steps are shown in the figure.

[0170] Storage unit 820 may include a readable medium in the form of a volatile storage unit, such as random access memory (RAM) 821 and / or cache memory 822, and may further include a read-only memory (ROM) 823.

[0171] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, including but not limited to: a processing system, one or more application programs, other program modules, and program data, each or some combination of these examples may include an implementation of a network environment.

[0172] Bus 830 can represent one or more of several types of bus structures, including a memory cell bus or memory cell controller, a peripheral bus, a graphics acceleration port, a processing unit, or a local bus using any of the various bus structures.

[0173] Electronic device 800 can also communicate with one or more external devices 801 (e.g., keyboard, pointing device, Bluetooth device, etc.), and with one or more devices that enable a user to interact with electronic device 800, and / or with any device that enables electronic device 800 to communicate with one or more other computing devices (e.g., router, modem, etc.). This communication can be performed via input / output (I / O) interface 850. Furthermore, electronic device 800 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 860. Network adapter 860 can communicate with other modules of electronic device 800 via bus 830. It should be understood that, although not shown in the figures, other hardware and / or software modules can be used in conjunction with electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms.

[0174] This disclosure also provides a computer-readable storage medium for storing a program that, when executed, implements the steps of a method for taking screenshots of page advertisements for a mobile application. In some possible implementations, various aspects of the invention can also be implemented as a program product comprising program code that, when run on a terminal device, causes the terminal device to perform the steps described in the foregoing section of this specification regarding the method for taking screenshots of page advertisements for a mobile application, according to various exemplary embodiments of the invention.

[0175] like Figure 9 As shown, the computer program product 900 for implementing the above-described method according to an embodiment of the present invention may employ a portable compact disc read-only memory (CD-ROM) and include program code, and may run on a terminal device, such as a personal computer. However, the computer program product of the present invention is not limited thereto. In this document, the readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, apparatus, or device.

[0176] Computer program products may employ any combination of one or more readable media. A readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of readable storage media (a non-exhaustive list) include: electrical connections having one or more wires, portable disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0177] Computer-readable storage media may include data signals propagated in baseband or as part of a carrier wave, carrying readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A readable storage medium may also be any readable medium other than a readable storage medium that can transmit, propagate, or transfer a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the readable storage medium may be transmitted using any suitable medium, including but not limited to wireless, wired, optical fiber, RF, etc., or any suitable combination thereof.

[0178] Program code for performing the processing of this invention can be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java and C++, and conventional procedural programming languages ​​such as C or similar languages. The program code can execute entirely on the user's computing device, partially on the user's device, as a standalone software package, partially on the user's computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving remote computing devices, the remote computing device can be connected to the user's computing device via any type of network, including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computing device (e.g., via the Internet using an Internet service provider).

[0179] In summary, the objective of this invention is to provide a method, system, device, and storage medium for taking screenshots of page advertisements in mobile applications. It offers an automated solution for taking screenshots of APP page advertisements, obtaining personalized advertisement placement configuration information based on user input, and triggering a redirection to the target page based on this configuration information to automatically capture screenshots of the target advertisement placements on the page, achieving efficient and accurate advertisement placement screenshots. Furthermore, this system can perform batch processing of advertisement screenshot tasks, making it particularly suitable for scenarios such as large-scale advertising campaigns and page content monitoring, thereby further improving overall operational efficiency and system stability.

[0180] The above description, in conjunction with specific preferred embodiments, provides a further detailed explanation of the present invention. It should not be construed that the specific implementation of the present invention is limited to these descriptions. For those skilled in the art, various simple deductions or substitutions can be made without departing from the concept of the present invention, and all such modifications and substitutions should be considered within the scope of protection of the present invention.

Claims

1. A method for taking screenshots of page advertisements in mobile applications, characterized in that, include: Receive user input; In response to the user input, ad placement configuration information is obtained. The ad placement configuration information includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page. The system redirects to the target page based on the page path, adjusts the target ad position to the visible area of ​​the terminal based on the first operation instruction, and takes at least one screenshot of the target page based on the coordinates of the ad position to obtain an ad position screenshot image.

2. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, The method for taking screenshots of page advertisements also includes: Screen recording begins from the point where the user is redirected to the target page based on the page path, and continues until a screenshot of the ad placement is obtained, generating a screen recording file.

3. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, When multiple screenshots of the target page are taken based on the coordinates of the ad placement to obtain multiple screenshot images of the ad placement, the page ad screenshot method further includes: Based on the extracted image features, the similarity of multiple ad space screenshots is compared. If the comparison results show that the similarity of at least two ad space screenshots exceeds a preset threshold, then one of them is retained as the final ad space screenshot.

4. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, The ad placement configuration information also includes the ad type of the target ad placement, which is one of pop-up ads, banner ads, and waterfall ads; the step of taking at least one screenshot of the target page based on the ad placement coordinates to obtain an ad placement screenshot image includes: According to the screenshot strategy corresponding to the ad type, the target page is screenshotted at least once based on the ad position coordinates to obtain the ad position screenshot image.

5. The method for taking screenshots of page advertisements in mobile applications according to claim 4, characterized in that, The screenshot strategy includes: If the advertisement type is the pop-up advertisement, after the target page is navigated to based on the page path, the target page is captured at least once based on the advertisement position coordinates after waiting for a first preset time. If the advertisement type is the banner advertisement, then a sliding operation on the target advertisement position is simulated based on the advertisement position coordinates, and after waiting for a second preset time, the target page is captured at least once based on the advertisement position coordinates. The sliding operation, the waiting for the second preset time, and the capture are repeated until multiple advertisement position screenshot images are obtained, and the multiple advertisement position screenshot images are deduplicated based on the image deduplication algorithm. If the ad type is the waterfall ad, then before taking at least one screenshot of the target page based on the ad position coordinates, the ad loading operation is simulated based on the second operation instruction to display the ad in the target ad position. The ad loading operation is swiping, clicking, or waiting.

6. The method for taking screenshots of page advertisements in mobile applications according to claim 5, characterized in that, If the ad type is the waterfall ad; The page ad screenshot method further includes: when the ad loading operation is the swiping, repeating the swiping and taking a screenshot of the target page based on the ad position coordinates at least once to obtain multiple ad position screenshot images, and performing deduplication processing on the multiple ad position screenshot images based on an image deduplication algorithm.

7. The method for taking screenshots of page advertisements in mobile applications according to claim 5, characterized in that, If the advertisement type is a banner advertisement, the method for taking a screenshot of the page advertisement further includes: Before simulating a swiping operation on the target ad slot based on the ad slot coordinates, it is detected whether there is a pop-up ad on the target page. If there is a pop-up ad, the pop-up close button is identified, and the pop-up close operation is simulated based on the identified pop-up close button.

8. The method for taking screenshots of page advertisements in mobile applications according to claim 4, characterized in that, When multiple ad types are included, the process proceeds in the order of pop-up ads, banner ads, and waterfall ads. For each ad type, the process of adjusting the target ad position to the terminal's visible area based on the first operation instruction is executed, and the target page is captured at least once based on the ad position coordinates to obtain an ad position screenshot image.

9. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, The method for taking screenshots of page advertisements also includes: By identifying the image features of the screenshot of the ad placement, it is detected whether there is a screenshot error in the screenshot of the ad placement; if there is a screenshot error, the process of jumping to the target page based on the page path is repeated until there is no screenshot error in the screenshot of the ad placement.

10. The method for taking screenshots of page advertisements in a mobile application according to claim 9, characterized in that, The step of detecting whether there is a screenshot error in the screenshot image of the ad placement by recognizing the image features of the screenshot image includes: The screenshot of the ad placement is input into a trained image recognition model. The image recognition model identifies the image features of the screenshot of the ad placement, detects whether there is a screenshot error, and outputs the screenshot error identification result. The image recognition model is trained based on historical advertising image samples, which include ad position coordinates and ad position feature information. The ad position feature information includes the image pixel distribution and layout structure based on the ad position coordinates.

11. The method for taking screenshots of page advertisements in mobile applications according to claim 10, characterized in that, The method for taking screenshots of page advertisements also includes: if there is a screenshot error, outputting a screenshot error message.

12. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, The first operation instruction includes swiping, clicking, or waiting.

13. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, The method for taking screenshots of page advertisements also includes: Before receiving user input, a screenshot configuration interface is displayed to receive the user input and parse the ad placement configuration information through the screenshot configuration interface.

14. The method for taking screenshots of page advertisements in mobile applications according to claim 1, characterized in that, The method for taking screenshots of page advertisements also includes: If redirection to the target page based on the stated page path fails or page rendering times out, retry redirecting to the target page based on the stated page path and log the error.

15. A screenshot system for page advertisements in mobile applications, characterized in that, include: The receiving module receives user input; The response module receives ad placement configuration information in response to the user input. The ad placement configuration information includes the page path of the target ad placement, the ad placement coordinates, and a first operation instruction for page control. The ad placement coordinates are used to identify the position of the target ad placement on the page. The screenshot module redirects to the target page based on the page path, adjusts the target ad position to the terminal's visible area based on the first operation instruction, and takes at least one screenshot of the target page based on the ad position coordinates to obtain an ad position screenshot image.

16. An electronic device, characterized in that, include: processor; A memory in which executable instructions of the processor are stored; The processor is configured to perform the steps of the page advertisement screenshot method for a mobile application as described in any one of claims 1 to 14 by executing the executable instructions.

17. A computer-readable storage medium for storing a program, characterized in that, When the program is executed, it implements the steps of the page advertisement screenshot method for mobile applications as described in any one of claims 1 to 14.