Updating method of exposure times, electronic equipment and program product

By obtaining and analyzing the exposure configuration information and sliding information of the page module, combining the screen specifications and layout information, the response page module reaches the exposure position and updates its exposure number, solving the problem of inaccurate exposure statistics in the existing technology, and achieving more accurate and flexible exposure number statistics.

CN120104232APending Publication Date: 2025-06-06KE COM (BEIJING) TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510192338.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-20
Publication Date
2025-06-06

AI Technical Summary

Technical Problem

The prior art is difficult to accurately reflect user behavior in the exposure count statistics of page modules, resulting in poor accuracy of exposure statistics results and cannot meet the exposure statistics needs of different page modules.

Method used

By obtaining the exposure configuration information and sliding information of the page module defined in the page, combining the screen specification parameters and page layout information, the position relationship between the page module and the screen visual area is determined, and the number of exposures is updated when the page module reaches the exposure position.

Benefits of technology

It realizes a more accurate, flexible and universal exposure statistics on page modules, overcomes the problems of inaccurate exposure times and the inability to customize exposure range, ensures the accuracy and timeliness of exposure data, and supports page optimization and analysis.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120104232A_ABST
    Figure CN120104232A_ABST
Patent Text Reader

Abstract

The invention provides an exposure frequency updating method, electronic equipment and a computer program product, and the method comprises the steps that firstly, exposure configuration information of a page module defined in a page and sliding information of the page are acquired, and the exposure configuration information comprises an exposure position; determining a position relation between the page module and a screen visible area according to the sliding information, the screen specification parameters and the page layout information, and updating the exposure times of the page module in response to the fact that the page module reaches an exposure position under the position relation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of computers, and more particularly to a method for updating exposure times, an electronic device, and a computer program product. Background Art

[0002] Exposure statistics for objects on a page is a means of conducting data analysis on Internet products. Exposure statistics can help us understand user behavior, evaluate marketing effectiveness, and optimize content recommendations.

[0003] In the related art, the exposure statistics scheme of the page module is to realize exposure reporting by updating the exposure count when creating the page module. This exposure scheme is difficult to perform exposure count statistics for different page modules, and the accuracy of the exposure statistics results is poor, which is difficult to meet the exposure statistics requirements. Summary of the invention

[0004] The present disclosure provides a method for updating the number of exposures, an electronic device, a readable storage medium, and a computer program product.

[0005] The first aspect of the present disclosure proposes a method for updating the number of exposures, comprising: obtaining exposure configuration information of a page module defined in a page and sliding information of the page, the exposure configuration information including an exposure position; determining a positional relationship between the page module and a visible area of ​​the screen based on the sliding information, screen specification parameters and page layout information; and in response to the page module reaching the exposure position under the positional relationship, updating the number of exposures of the page module.

[0006] According to some embodiments of the present disclosure, obtaining exposure configuration information of a page module defined in a page includes: obtaining the exposure configuration information of the page module defined in the page from a local client; or sending a parameter acquisition request to a server, and receiving the exposure configuration information of the page module defined in the page sent by the server in response to the parameter acquisition request.

[0007] According to some embodiments of the present disclosure, the execution of acquiring the exposure configuration information of the page module defined in the page occurs before the moment when the page is first loaded as the foreground page.

[0008] According to some embodiments of the present disclosure, the exposure configuration information also includes a first configuration parameter, and the first configuration parameter is used to indicate a configured situation in which updating of the exposure times is not allowed; in response to the page module reaching the exposure position under the position relationship, updating the exposure times of the page module, including: in response to the page module reaching the exposure position under the position relationship, determining whether the situation in which updating of the exposure times is not allowed indicated by the first configuration parameter is met; and if the situation in which updating of the exposure times is not allowed indicated by the first configuration parameter is not met, updating the exposure times of the page module.

[0009] According to some embodiments of the present disclosure, the situation where the exposure times are not allowed to be updated represented by the first configuration parameter includes: the page module reaching the exposure position under the position relationship is not the first time.

[0010] According to some embodiments of the present disclosure, the exposure configuration information also includes a second configuration parameter, and the second configuration parameter is used to indicate a configured situation in which the number of exposures is allowed to be updated before the page is loaded; before the page is loaded, the method also includes: determining whether the situation in which the number of exposures allowed to be updated indicated by the second configuration parameter is satisfied; and if the situation in which the number of exposures allowed to be updated indicated by the second configuration parameter is satisfied, updating the number of exposures of the page module.

[0011] According to some embodiments of the present disclosure, the situation in which the exposure times are allowed to be updated represented by the second configuration parameter includes: the situation in which the page is loaded using cache data.

[0012] According to some implementations of the present disclosure, updating the exposure count of the page module includes: reporting an update indication of the page module to a designated location, wherein the update indication is used to increase the exposure count of the page module by one.

[0013] According to some embodiments of the present disclosure, the exposure configuration information also includes a module identifier of the page module, the update indication includes the module identifier of the page module to be updated, and the module identifier is used to determine the page module to be updated when updating the exposure times.

[0014] According to some embodiments of the present disclosure, the sliding information includes a sliding distance.

[0015] According to some embodiments of the present disclosure, the sliding information also includes a sliding direction.

[0016] According to some embodiments of the present disclosure, the screen specification parameters include screen size and screen resolution.

[0017] According to some embodiments of the present disclosure, the page layout information includes page size information and location information of the page module in the page.

[0018] According to some embodiments of the present disclosure, the exposure position is represented by the ratio of a first distance to a second distance of the page module in the page sliding direction, the first distance being the distance between the first exposed position to the specified position of the page module in the page sliding direction, and the second distance being the distance between the first exposed position to the full exposed position of the page module in the page sliding direction.

[0019] A second aspect of the present disclosure proposes an electronic device, comprising: a memory storing execution instructions; and a processor executing the execution instructions stored in the memory, so that the processor executes the method described in any one of the above embodiments.

[0020] A third aspect of the present disclosure provides a readable storage medium, wherein the readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the method described in any of the above embodiments.

[0021] A fourth aspect of the present disclosure provides a computer program product, which includes a computer program. When the computer program is executed by a processor, it is used to implement the method described in any of the above embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] The accompanying drawings illustrate exemplary embodiments of the present disclosure and together with the description serve to explain the principles of the present disclosure. These drawings are included to provide a further understanding of the present disclosure and are incorporated in and constitute a part of this specification.

[0023] Figure 1 A schematic diagram showing an application scenario of a method for updating the number of exposures according to some embodiments of the present disclosure.

[0024] Figure 2 A schematic diagram of the overall flow of a method M100 for updating the number of exposures in some embodiments of the present disclosure is shown.

[0025] Figure 3 A schematic diagram showing the positional relationship between a page visual viewport and a page layout viewport during page sliding in some embodiments of the present disclosure is shown.

[0026] Figure 4-Figure 6 The overall flow chart of the method M100 for updating the number of exposures according to some other embodiments of the present disclosure is shown.

[0027] Figure 7A schematic diagram showing the positional relationship between a page visual viewport and a page layout viewport during page sliding in some other embodiments of the present disclosure is shown.

[0028] Figure 8 It is a schematic block diagram of the structure of an exposure number updating device according to an embodiment of the present disclosure.

[0029] Fig. 9 1 is a schematic block diagram of the structure of an electronic device 1000 equipped with an exposure number updating device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0030] The present disclosure is further described in detail below in conjunction with the accompanying drawings and implementations. It is understood that the specific implementations described herein are only used to explain the relevant content, rather than to limit the present disclosure. It should also be noted that, for ease of description, only the parts related to the present disclosure are shown in the accompanying drawings.

[0031] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The technical solution of the present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.

[0032] Unless otherwise specified, the exemplary embodiments / embodiments shown will be understood as providing exemplary features of various details of some ways in which the technical concept of the present disclosure can be implemented in practice. Therefore, unless otherwise specified, the features of the various embodiments / embodiments can be combined, separated, interchanged and / or rearranged without departing from the technical concept of the present disclosure.

[0033] The terms used herein are for the purpose of describing specific embodiments, rather than being restrictive. As used herein, unless the context clearly indicates otherwise, the singular forms "one (kind, person)" and "said (the)" are also intended to include plural forms. In addition, when the terms "comprise" and / or "include" and their variations are used in this specification, it is explained that there are stated features, integral bodies, steps, operations, parts, assemblies and / or their groups, but it is not excluded that there are or add one or more other features, integral bodies, steps, operations, parts, assemblies and / or their groups. It should also be noted that, as used herein, the terms "substantially", "approximately" and other similar terms are used as approximate terms and not as degree terms, so that they are used to explain the inherent deviations of the measured values, calculated values ​​and / or provided values ​​that will be recognized by those of ordinary skill in the art.

[0034] A visual component or area in a web page or application page that has a specific function or displays content is called a page module. These modules can be static or dynamic and can contain a set of related UI (User Interface) components and logic. Page modules can include navigation bars, carousels, product lists, recommendation modules, comment areas, sidebars, etc.

[0035] When operators display and market Internet products through the Internet, they can collect exposure data of page modules to understand users' focus and interest preferences, evaluate product exposure and influence, and understand user activity. They can then optimize advertising delivery strategies, content recommendation algorithms, page design layouts, and resource allocation based on the collected exposure data.

[0036] At present, the collection and reporting of exposures mainly rely on updating the exposure count when the page module is created. Updating the exposure count when the page module is created means that when the page is opened and loaded, the page module will be created and rendered. When each page module is created, the exposure count of the page module will be updated because the callback is triggered, which means that the exposure count of the page module will increase. However, at this time, the user may not actually browse all the created page modules.

[0037] For example, after a user opens a page, if he closes the page immediately before the page has finished displaying all the contents, the user will not browse all the page modules of the first screen, but the exposure count of these page modules will be updated. Or when a page with a size of n screens is opened, the page loading strategy is to load the page modules within the range of 2 screens. After the first screen is loaded and displayed, the user closes the page without browsing the content of the second screen. In this case, the page modules in the second screen are created but not browsed, and the exposure count will also be updated. For another example, when a user is browsing a page, if the page is scrolled down, the page data of the next screen will be received through the interface, and the system control list of the page will be reloaded (reload), and each time the list is loaded, the exposure count will be updated because the callback is triggered. In addition, some system control lists may not trigger callbacks, so the exposure count cannot be updated.

[0038] Therefore, the above exposure scheme makes the statistical exposure times of some page modules inconsistent with the actual exposure times, and the accuracy of the exposure amount is poor. To this end, the present disclosure proposes a method for updating the exposure times.

[0039] Figure 1A schematic diagram of an application scenario of a method for updating the number of exposures in some embodiments of the present disclosure is shown. In the application scenario, a client 10 and a server 20 may be included. The server 20 can communicate with the client 10 to send and receive data or instructions. In the present disclosure, the client 10 and the server 20 each include at least one processor and at least one memory.

[0040] Exemplarily, the client 10 may be a terminal device held by a user, the server 20 may send exposure configuration information to the client 10 , and the client 10 may report exposure data to the server 20 .

[0041] exist Figure 1 The shapes and structures of the client 10 and the server 20 shown in the figure should not be understood as limiting the scope of protection of the present disclosure. In the present disclosure, "terminal devices" can be different types of electronic devices, for example, terminal devices can be mobile phones, tablet computers, laptop computers, desktop computers, or self-service machines. In addition, the server 20 can be a server or a cloud server with a physical form, and the present disclosure does not limit the type of server.

[0042] For the convenience of description and to make the technical solutions of the specific implementation methods of the present disclosure easier to understand, before describing the method for updating the number of exposures implemented in the present disclosure, the technical terms involved in the specific implementation methods of the present disclosure are first introduced.

[0043] Flutter: It is an open source cross-platform application development framework from Google that can run on multiple platforms and operating systems such as Android and iOS with only one set of code. The official language of Flutter is Dart.

[0044] Native page: A page created based on the design specifications and development tools of the operating system that the page is expected to run on is called a Native page. For example, for an application running on the Android system, its native page is a page developed based on Android.

[0045] Page module exposure: refers to the page module appearing in the visual viewport of the page.

[0046] Visual viewport: The area of ​​the page that can be observed by the outside world (such as users) through the screen, that is, the part of the page that users can actually see. Users can change the size of the visual viewport by zooming in and out.

[0047] Layout viewport: The content and state of the page defined when the layout is completed. The page under the layout viewport can be fully displayed. The layout viewport may be larger than the visual viewport. At this time, the page the user actually sees is only a part of the entire page. Slide operations are required to see the undisplayed part of the page.

[0048] Figure 2 FIG. 1 is a schematic diagram showing the overall flow of a method M100 for updating the number of exposures in some embodiments of the present disclosure. Figure 2 The method shown includes step S110, step S120 and step S130. The method can be executed by electronic devices such as mobile phones and tablet computers.

[0049] S110, obtaining exposure configuration information of the page module defined in the page and the sliding information of the page, wherein the exposure configuration information includes an exposure position.

[0050] One or more page modules can be defined in a page, and developers can generate exposure configuration information for some or all of these page modules. The page modules corresponding to the exposure configuration information may be referred to as target modules below. The target module is the object that needs to collect exposure data, and there is no need to collect exposure data for non-target modules. It can be understood that, regardless of whether they are displayed or not, the modules defined in the page have an inclusion relationship with the page. The page can be a Flutter page, a native page, or another type of page.

[0051] The exposure configuration information corresponding to different target modules may be different, that is, each target module needs to meet different exposure conditions when it can update the exposure times; or multiple target modules may share the same exposure configuration information, then these target modules need to meet the same exposure conditions when they can update the exposure times.

[0052] The exposure configuration information may be obtained during the process of the page being operated by the user, or may be obtained before the page can be operated by the user. When the user slides the page to make the target module in a visible state that satisfies the exposure configuration information, it can be considered that the target module has been exposed once. For example, when the user slides the page to the target module to meet the exposure position, it is considered that the target module has been exposed once.

[0053] The overall size of a page is usually larger than the size of the screen's visual viewport, so when browsing a page, the user needs to slide the page so that the currently undisplayed content of the page slides into the visible area of ​​the screen. When the page is opened, the page status can be monitored in real time, so that when the page is slid by the user, the sliding information formed by the sliding operation can be obtained in real time. The sliding information may include the sliding distance. The sliding distance refers to the distance the page moves in the sliding direction, not the distance the finger slides on the screen.

[0054] Figure 3A schematic diagram showing the positional relationship between the page visual viewport and the page layout viewport during page sliding in some embodiments of the present disclosure is shown. Figure 3 , the length (height) of the layout viewport B of page Y is L2, and the width is H, and the length of the visual viewport S of the screen is L1, and the width is H. L2>L1, so it is necessary to slide up the page Y to see the content defined in the page except for the current visual viewport S. Five modules are defined in page Y, namely M1, M2, M3, M4 and M5, among which page modules M2, M4 and M5 are target modules. When page Y is opened, page module M1 is displayed in the visual viewport B, and the other four modules can only be seen by the user after page Y is slid up.

[0055] When the user performs a sliding operation C1 on the page, the page Y starts to move upward relative to the visual viewport S, and the target module M2 starts to be partially displayed on the screen during the movement. When the sliding operation C1 is completed, the page Y moves upward by a distance D1, and the sliding distance is D1.

[0056] It is understandable that in step S110, the exposure configuration information and the sliding information can be acquired at the same time, for example, when the user slides the page, both are acquired. The exposure configuration information and the sliding information can also be acquired at different times, for example, the exposure configuration information can be acquired only when the page is first loaded (only one acquisition is required), and the sliding information can be acquired in real time after the page is loaded and displayed (multiple acquisitions).

[0057] S120, determining a positional relationship between a page module and a visible area of ​​the screen according to the sliding information, screen specification parameters, and page layout information.

[0058] The visible area of ​​the screen is the page area displayed by the visual viewport S. When page Y is opened, the visible area of ​​the screen only includes M1 of the five page modules. When the sliding operation C1 is completed, the visible area of ​​the screen includes M1 and part of M2 at the same time. Therefore, the positional relationship between the page module and the visible area of ​​the screen is equivalent to the positional relationship between the page module and the page area displayed by the visual viewport S.

[0059] The screen specification parameters are used to characterize the size of the area that the visual viewport can display. For example, the screen specification parameters may include the size of the screen visible area and the screen resolution. For example, the screen size of a mobile phone (the diagonal length of the mobile phone screen) is 6.67 inches and the resolution is 3220*1440. The screen specification parameters can be obtained through the API (application programming interface) provided by the system.

[0060] The page layout information includes some characteristic information of the page itself and the content in the page. For example, the page layout information may include page size information and location information of page modules in the page. Figure 3 In the example, the page size information is L1*H, and the position information of the page module in the page can be the top position or the bottom position or other specified position defined by the page module in the page. For example, the top left vertex and the top right vertex of the module M1 are the top position defined by the module M1 in the page, and the bottom left vertex and the bottom right vertex are the bottom position defined by the module M1 in the page. The position information of the page module in the page can also be obtained by the known positions of each vertex of the page module. The page layout information can be obtained through the xml (Extensible Markup Language) file or the dom (Document Object Model) file.

[0061] The position of each target module relative to the visual viewport S can be determined through sliding information, screen specification parameters and page layout information, which means whether each target module is displayed in the visible area of ​​the screen and the size of the part of each target module displayed in the visible area of ​​the screen can be determined.

[0062] by Figure 3 For example, when page Y is just opened, the user has not performed a sliding operation, because the sliding distance is zero. At this time, the sliding information, screen specification parameters and page layout information can be used to determine that page module M1 is fully exposed, and page modules M2 to M5 are not exposed. In the process of the user operating page Y to perform sliding operation C1, the sliding information, screen specification parameters and page layout information can be used to determine that page module M1 remains fully exposed, page module M2 is partially exposed, and page modules M3 to M5 remain unexposed. When the user completes sliding operation C1, the sliding distance is D1. The sliding distance D1, screen specification parameters and page layout information can be used to determine that page module M1 remains fully exposed, page module M2 is partially exposed and the exposed area is the top part of the entire area of ​​M2, and the range of this part is one-fifth of the range of the entire area of ​​M2, and page modules M3 to M5 remain unexposed.

[0063] S130: In response to the page module reaching the exposure position under the above position relationship, the exposure times of the page module are updated.

[0064] The exposure position may be set to the topmost position of the page module, that is, when the page module is just exposed, it is determined that the page module reaches the exposure position, thereby triggering the action of updating the exposure times.

[0065] When the page is just opened, the exposure times of the target modules M2, M4 and M5 can all be zero. Assuming that in the exposure configuration information of the target modules, the exposure position of module M2 is the bottom position of module M2, and the exposure positions of modules M4 and M5 are the top positions of each, then when the user completes the sliding operation C1, each target module has reached its own exposure position, so the exposure times of any target module are not triggered to be updated. During the user's sliding operation C2, when the visual viewport S slides to a distance D2 from the top of the page, the bottom position of module M2 is just exposed in the visual viewport S. At this time, the positional relationship between module M2 and visual viewport S obtained by step S120 determines that module M2 has reached the exposure position, so the exposure times of module M2 will be triggered to be updated at this time, and the exposure times of the updated module M2 will increase by 1, and the exposure times are 1. For modules M4 and M5, the positional relationship between modules M4, M5 and the visual viewport S obtained through step S120 determines that modules M4 and M5 have reached the exposure position, so the exposure count update of modules M4 and M5 will not be triggered, and the exposure count of modules M4 and M5 remains 0.

[0066] According to the exposure number updating method proposed in the embodiment of the present disclosure, a more accurate, flexible and universal page module exposure scheme is provided, which triggers the update of the exposure number by the pre-configured exposure positions of each page module. Compared with updating the exposure number of all defined page modules during the page opening and loading process, and compared with updating the exposure number when the system space list is loaded, this embodiment overcomes the problems of inaccurate exposure times, dependence on specific controls and inability to customize the exposure range, and realizes accurate and customized exposure number statistics. It does not need to rely on a specific space list and is applicable to a variety of controls, meeting different exposure range requirements, ensuring that the exposure data is accurate and timely, and strongly supporting page optimization and analysis. Figure 4 FIG. 1 is a schematic diagram showing the overall flow of a method M100 for updating the number of exposures according to other embodiments of the present disclosure. Figure 4 In step S110, the method of obtaining the exposure configuration information of the page module defined in the page may include the following steps S111 or S112, and include step S114. Figure 4 In the step S114, the acquisition of the sliding information is performed, and the acquisition time of the sliding information is later than the acquisition time of the exposure configuration information.

[0067] S111, obtaining exposure configuration information of a page module defined in the page from the client locally. For example, the exposure configuration information of each page can be stored locally on the client. When it is identified that the loading of page Y begins, the exposure configuration information of page Y can be determined by the page ID of page Y and sent to the function module responsible for loading the page, thereby obtaining the exposure configuration information of page Y.

[0068] S112, sending a parameter acquisition request to the server, and receiving exposure configuration information of the page module defined in the page sent by the server in response to the parameter acquisition request. Figure 1 When the function module responsible for loading pages starts to load page Y, a parameter acquisition request can be generated based on the page ID of page Y and sent to the server. The server can store the exposure configuration information of each page. After receiving the request, the server obtains the exposure configuration information of page Y according to the page ID in the request and feeds it back to the client, thereby obtaining the exposure configuration information of page Y. In this way, dynamic configuration and modification of exposure configuration information can be realized.

[0069] Step S111 and step S112 may be performed selectively, that is, only step S111 or step S112 is used to obtain the exposure configuration information of all page modules M1 to M5 in page Y; step S111 and step S112 may also be performed in full, for example, the exposure configuration information of a part of the page modules in page Y is obtained through step S111, and the exposure configuration information of another part of the page modules is obtained through step S112.

[0070] Exemplarily, the execution of obtaining the exposure configuration information of the page modules defined in the page may occur before the first time the page is loaded as the foreground page. That is, when the user opens the APP (application) and enters page Y for the first time, the time when steps S111 and S112 start to be executed may be no earlier than the time when page Y starts to load, and when page Y is loaded, the exposure configuration information of all page modules in page Y has been obtained. Since the conditions for obtaining the sliding information are met only after the page is loaded, in this case, the acquisition of the sliding information is later than the acquisition of the exposure configuration information.

[0071] It is understandable that the exposure configuration information of page Y can also be obtained in advance before page Y starts loading. For example, if the page is currently on page Y1, and the controls set in page Y1 enable page Y1 to jump to page Y2 and page Y3, the exposure configuration information of pages Y2 and Y3 can be obtained when page Y1 is displayed, so there is no need to obtain the exposure configuration information when entering page Y2 or Y3.

[0072] In order to overcome the problem of inflexibility of the exposure mechanism and exposure mode, the exposure configuration information may further include a first configuration parameter. The first configuration parameter may be used to indicate a configuration in which the number of exposures is not allowed to be updated. By changing the first configuration parameter, the exposure mechanism and exposure mode may be changed, so that the counting mechanism of the number of exposures may be changed.

[0073] Figure 5 FIG. 1 is a schematic diagram showing the overall flow of a method M100 for updating the number of exposures according to other embodiments of the present disclosure. Figure 5 , step S130 may include the following steps S131, S132 and S133.

[0074] S131, in response to the page module reaching the exposure position under the above position relationship, executing step S132.

[0075] S132, determining whether the situation indicated by the first configuration parameter that the exposure times are not allowed to be updated is satisfied. If not (not satisfied), executing step S133. The situation indicated by the first configuration parameter that the exposure times are not allowed to be updated includes: the page module reaching the exposure position under the above position relationship is not the first time to reach it.

[0076] S133, updating the exposure times of the page module.

[0077] by Figure 3 Take as an example. If the first configuration parameter is set to valid, the exposure mode is a non-repetitive exposure mode, that is, if the user frequently slides page Y up and down, so that the display state of the exposure position (the bottom position) of module M2 switches between being displayed in the visual viewport S and not being displayed in the visual viewport S, then except for the first time when module M2 reaches the exposure position, it will be judged that the situation that the exposure number is not allowed to be updated is not satisfied, so the exposure number is increased by 1, and the remaining times of reaching the exposure position are all satisfied. The situation that the exposure number is not allowed to be updated, so the exposure number will not be increased. If the first configuration parameter is set to invalid, the exposure mode is a repetitive exposure mode, that is, if the user frequently slides page Y up and down, so that the display state of the exposure position of module M2 switches between being displayed in the visual viewport S and not being displayed in the visual viewport S, the exposure number will be increased by 1 each time module M2 reaches the exposure position.

[0078] The first configuration parameter may be a Boolean type parameter, and its parameter value may only include 0 or 1, 1 may represent that the first configuration parameter is valid, and 0 may represent that it is invalid. Through the first configuration parameter in conjunction with steps S131, S132, and S133, the exposure mode can be flexibly customized, and the exposure mode using repeated exposure or single exposure can be selected, which overcomes the problem of being unable to customize the exposure mode and adapts to diverse scenes.

[0079] In order to effectively distinguish between real exposure and repeated exposure caused by page refresh, the exposure configuration information may further include a second configuration parameter. The second configuration parameter may be used to indicate the configuration of allowing the number of exposures to be updated before the page is loaded. By changing the second configuration parameter, the exposure mechanism and exposure mode may also be changed, so that the counting mechanism of the number of exposures may be changed.

[0080] Figure 6 FIG. 1 is a schematic diagram showing the overall flow of a method M100 for updating the number of exposures according to other embodiments of the present disclosure. Figure 6 Before the page loading is completed, the exposure times updating method M100 may further include the following step S113.

[0081] S113, determine whether the situation indicated by the second configuration parameter that allows the exposure times to be updated is satisfied. If yes, update the exposure times of the page module (execute step S133). The situation indicated by the second configuration parameter that allows the exposure times to be updated includes: when the page is loaded using cache data.

[0082] When a user opens a page for the first time and moves it to the background, and then enters the page again, the page will be loaded using the cached data from the first time the page was opened. Since some content of the page may have changed between the two page entries, the second page entry may require the use of both cached data and new data after the page changes to load the page. For some page modules, the loading of cached data and the loading of new data will each result in an update to the number of exposures.

[0083] After completing step S111 or S112, the judgment of step S113 can be started. If the page Y is not opened for the first time, for example, page Y has been opened before and switched to the background, when the user switches page Y from the background to the foreground, page Y may use cached page data to load the page data during the process of loading the page data, thereby increasing the page loading speed. If the second configuration parameter is set to valid, then during the page loading process or after the loading is completed, step S113 can be used to determine whether cached data is used to load page Y. If so, step S133 is used to increase the exposure count of the target module contained in the cached data by 1, and then the subsequent step S114 (such as Figure 6 If not, the exposure count will not be updated, and then the subsequent step S114 will be executed. If the second configuration parameter is set to invalid, regardless of whether cache data is used to load page Y, step S113 will not be executed, and the action of triggering the exposure count update based on page loading will not occur.

[0084] It should be noted that, since the user may perform page sliding operations multiple times at different times, steps S114 to S133 may be executed multiple times in the life cycle of a page.

[0085] It is understandable that the second configuration parameter indicates that the situation in which the exposure times are allowed to be updated may also include: the situation in which the page refreshes the page data through an interface request. After the page is opened, when the user slides the page, based on lazy loading or similar technologies, some page modules in the page will start loading after approaching the visual viewport. At this time, the page data may be refreshed during the loading process, and after the refresh, the exposure times of the refreshed page modules may be updated due to callbacks.

[0086] The second configuration parameter may be a Boolean type parameter, and its parameter value may only include 0 or 1, 1 may represent that the second configuration parameter is valid, and 0 may represent that it is invalid. By combining the second configuration parameter with steps S113 and S133, it is possible to effectively distinguish between real exposure and repeated counting caused by data refresh, increase the diversity of counting modes, and improve the accuracy of exposure times.

[0087] The method of updating the exposure count of the page module in step S130 can be implemented in the following manner: reporting an update indication of the page module to a specified location. The update indication is used to increase the exposure count of the page module once. The specified location can be a server or other preset device or address. The method of updating the exposure count of the page module in step S133 can also be implemented in this manner.

[0088] Exemplarily, the exposure configuration information may also include a module identifier of the page module. The update indication may include a module identifier of the page module to be updated. The module identifier is used to determine the page module to be updated when updating the exposure count. For example, Figure 3 When the user performs a sliding operation C2 and triggers the exposure count of the page module M2 to increase by 1, the module identifier of the module M2 is obtained and added to the update indication. After receiving the update indication, the server determines that the exposure count of the module M2 is increased by 1 through the module identifier.

[0089] It is understandable that the sliding information obtained in step S110 may also include a sliding direction. When the page widths of the visual viewport S and the layout viewport B are the same, the sliding direction is a single-degree-of-freedom sliding, that is, an up and down sliding. When the page widths and page lengths of the visual viewport S and the layout viewport B are different, the sliding direction is a multi-degree-of-freedom sliding, which may be an up and down sliding or a left and right sliding. The exposure position of the page module may include the top position, the bottom position, the leftmost position and the rightmost position of the page module at the same time, or it may be other specified exposure positions. The sliding distance will also include both horizontal and vertical distances. The positional relationship determined in step S120 can simultaneously characterize the horizontal and vertical relative positional relationship.

[0090] Figure 7 A schematic diagram showing the positional relationship between the page visual viewport and the page layout viewport during page sliding in some other embodiments of the present disclosure is shown. Figure 7 The exposure position can be represented by the ratio of the first distance of the page module in the page sliding direction to the second distance. The first distance is the distance between the first exposure position of the page module in the page sliding direction and the specified position, and the second distance is the distance between the first exposure position of the page module in the page sliding direction and the full exposure position.

[0091] by Figure 7 For example, the module M4 of the page in FIG. 1 is the target module. The exposure position of the module M4 is 0.5, that is, when the exposed length of the module M4 in the vertical direction reaches 50%, the module M4 is considered to be exposed. Figure 7 , the vertical length of module M4 is 2*D4. The user slides page Y so that the visual viewport stays at a position D3 between the top of the visual viewport and the top of page Y. At this position, the edge of the visual viewport reaches the middle position of module M4, and the middle position is the specified position. Therefore, it is considered that the position of 50% of the vertical length of module M4 has been reached, and the action of increasing the exposure times of module M4 by 1 will be triggered.

[0092] It can be understood that the exposure position can be adjusted by changing the above-mentioned designated position, thereby changing the exposure determination condition.

[0093] Based on any of the above implementations, the present disclosure also provides a device for updating the number of exposures. Figure 8 FIG. 1 is a schematic block diagram of the structure of an exposure number updating device according to an embodiment of the present disclosure. Figure 8 As shown, the exposure number updating device includes a configuration information acquisition module 1002 , a sliding information acquisition module 1004 , a position relationship determination module 1006 and an exposure number updating module 1008 .

[0094] The configuration information acquisition module 1002 is used to acquire the exposure configuration information of the page module defined in the page, wherein the exposure configuration information includes the exposure position.

[0095] The sliding information acquisition module 1004 is used to acquire the sliding information of the page. The position relationship determination module 1006 is used to determine the position relationship between the page module and the screen visible area according to the sliding information, screen specification parameters and page layout information.

[0096] The exposure times updating module 1008 is used for updating the exposure times of the page module in response to the page module reaching the exposure position under the above position relationship.

[0097] The above modules can be implemented by computer program modules. The implementation process of the functions and effects of each module in the above device is specifically described in the implementation process of the corresponding steps in the above method, which will not be repeated here.

[0098] The execution subject of the method for updating the number of exposures in the specific implementation manner of the present disclosure may be a terminal electronic device such as a mobile phone or a tablet computer.

[0099] Therefore, based on any of the above-mentioned embodiments, the present disclosure also provides an electronic device, which can execute the exposure number updating method of any of the above-mentioned embodiments of the present disclosure, and the exposure number updating device of any of the above-mentioned embodiments can be configured on the electronic device.

[0100] Fig. 9 1 is a schematic block diagram of the structure of an electronic device 1000 equipped with an exposure number updating device according to an embodiment of the present disclosure. The exposure number updating device includes a configuration information acquisition module 1002, a sliding information acquisition module 1004, a position relationship determination module 1006, and an exposure number updating module 1008. The implementation process of the functions and effects of each module in the above device is specifically described in the implementation process of the corresponding steps in the above method, which will not be repeated here.

[0101] The hardware structure of the electronic device 1000 can be implemented using a bus architecture. The bus architecture can include any number of interconnected buses and bridges, depending on the specific application and overall design constraints of the hardware. The bus 1100 connects various circuits including one or more processors 1200, memory 1300 and / or hardware modules together. The bus 1100 can also connect various other circuits 1400 such as peripherals, voltage regulators, power management circuits, external antennas, etc.

[0102] The bus 1100 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Component (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the figure only uses one connecting line, but does not mean that there is only one bus or one type of bus.

[0103] The processor 1200 may be a central processing unit (CPU). The processor 1200 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.

[0104] The memory 1300 can be used as a non-transitory computer-readable storage medium, and can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions of the computer program in the embodiment of the present disclosure. The processor 1200 implements the method for updating the number of exposures by running the non-transitory software programs, instructions and modules stored in the memory 1300.

[0105] The memory 1300 may include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required by at least one function; the data storage area may store data created by the processor 1200, such as structural data, model data, sample data, stiffness evaluation results, etc. of the bridge. In addition, the memory 1300 may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 1300 may optionally include a memory remotely arranged relative to the processor 1200, and these remote memories may be connected to the processor 1200 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0106] The present disclosure also provides a readable storage medium, in which a computer program is stored, and the computer program is used to implement the above method when executed by a processor. "Readable storage medium" can be any device that can contain, store, communicate, propagate or transmit a program for use in an instruction execution system, device or equipment or in combination with these instruction execution systems, devices or equipment. More specific examples of readable storage media include the following: an electrical connection portion (electronic device) with one or more wirings, a portable computer disk box (magnetic device), a random access memory (RAM), a read-only memory (ROM), an erasable and editable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM), etc.

[0107] The present disclosure also provides a computer program product, and the method of the present disclosure can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer programs or instructions. When the computer program or instruction is loaded and executed, the process or function of the present disclosure is executed in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, a network device, a user device, a core network device, an OAM or other programmable device.

[0108] The computer program or instructions may be stored in a readable storage medium or transmitted from one readable storage medium to another readable storage medium, for example, the computer program or instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center by wired or wireless means. The readable storage medium may be any available medium that can be accessed or a data storage device such as a server, data center, etc. that integrates one or more available media. The available medium may be a magnetic medium, such as a floppy disk, a hard disk, or a magnetic tape; it may also be an optical medium, such as a digital video disk; it may also be a semiconductor medium, such as a solid state drive. The computer readable storage medium may be a volatile or non-volatile storage medium, or may include both volatile and non-volatile types of storage media.

[0109] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems, or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0110] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0111] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0112] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0113] In the description of this specification, the description with reference to the terms "one embodiment / method", "some embodiments / methods", "example", "specific example", or "some examples" etc. means that the specific features, structures, or characteristics described in conjunction with the embodiment / method or example are included in at least one embodiment / method or example of the present disclosure. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment / method or example. Moreover, the specific features, structures, or characteristics described may be combined in any one or more embodiments / methods or examples in a suitable manner. In addition, those skilled in the art may combine and combine different embodiments / methods or examples described in this specification and features of different embodiments / methods or examples, unless they are contradictory.

[0114] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, "plurality" means at least two, such as two, three, etc., unless otherwise clearly and specifically defined.

[0115] Those skilled in the art should understand that the above embodiments are only for the purpose of clearly illustrating the present disclosure, and are not intended to limit the scope of the present disclosure. For those skilled in the art, other changes or modifications may be made based on the above disclosure, and these changes or modifications are still within the scope of the present disclosure.

Claims

1. A method for updating the number of exposures, characterized in that: include: Acquire exposure configuration information of a page module defined in a page and sliding information of the page, wherein the exposure configuration information includes an exposure position; Determine the positional relationship between the page module and the screen visible area according to the sliding information, screen specification parameters and page layout information; as well as In response to the page module reaching the exposure position under the position relationship, the exposure times of the page module are updated.

2. The method for updating the number of exposures according to claim 1, characterized in that: Get the exposure configuration information of the page module defined in the page, including: Obtain the exposure configuration information of the page module defined in the page from the client locally; or A parameter acquisition request is sent to a server, and exposure configuration information of a page module defined in a page sent by the server in response to the parameter acquisition request is received.

3. The method for updating the number of exposures according to claim 1 or 2, characterized in that: The execution of acquiring the exposure configuration information of the page module defined in the page occurs before the page is first loaded as a foreground page.

4. The method for updating the number of exposures according to claim 1, characterized in that: The exposure configuration information further includes a first configuration parameter, where the first configuration parameter is used to indicate a configured situation where updating of the exposure times is not allowed; In response to the page module reaching the exposure position under the position relationship, updating the exposure times of the page module, including: In response to the page module reaching the exposure position under the position relationship, determining whether a condition indicating that the exposure times are not allowed to be updated as indicated by the first configuration parameter is satisfied; as well as If the condition indicated by the first configuration parameter that updating of the exposure times is not allowed is not satisfied, the exposure times of the page module are updated.

5. The method for updating the number of exposures according to claim 4, characterized in that: The situation in which the exposure times are not allowed to be updated indicated by the first configuration parameter includes: the page module reaching the exposure position under the position relationship is not the first time.

6. The method for updating the number of exposures according to any one of claims 1, 4-5, characterized in that: The exposure configuration information further includes a second configuration parameter, where the second configuration parameter is used to indicate a situation in which the number of exposures is allowed to be updated before the page is loaded; Before the page loading is completed, the method further includes: Determine whether the condition indicated by the second configuration parameter that allows updating of the number of exposure times is satisfied; as well as If the condition indicated by the second configuration parameter that allows updating of the exposure times is met, the exposure times of the page module are updated.

7. The method for updating the number of exposures according to claim 6, characterized in that: The situation in which the exposure times are allowed to be updated represented by the second configuration parameter includes: the situation in which the page is loaded using cache data.

8. The method for updating the number of exposures according to any one of claims 1, 4-5, and 7, characterized in that: The exposure times of the page module are updated, including: An update instruction of the page module is reported to a designated location, where the update instruction is used to increase the exposure times of the page module by one.

9. An electronic device, characterized in that: include: A memory storing execution instructions; as well as A processor, wherein the processor executes the execution instruction stored in the memory so that the processor executes the method according to any one of claims 1 to 8.

10. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the computer program is used to implement the method according to any one of claims 1 to 8.