CN118210685A - Method and device for identifying exposure of control in application program - Google Patents

Method and device for identifying exposure of control in application program Download PDF

Info

Publication number
CN118210685A
CN118210685A CN202410131110.5A CN202410131110A CN118210685A CN 118210685 A CN118210685 A CN 118210685A CN 202410131110 A CN202410131110 A CN 202410131110A CN 118210685 A CN118210685 A CN 118210685A
Authority
CN
China
Prior art keywords
user
page container
control
area
page
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202410131110.5A
Other languages
Chinese (zh)
Inventor
皇甫煜东
李坤坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shandong Energy Chain Holding Co ltd
Original Assignee
Shandong Energy Chain Holding Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shandong Energy Chain Holding Co ltd filed Critical Shandong Energy Chain Holding Co ltd
Priority to CN202410131110.5A priority Critical patent/CN118210685A/en
Publication of CN118210685A publication Critical patent/CN118210685A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a method and a device for identifying control exposure in an application program, wherein the method comprises the following steps: acquiring real-time operation information of a user in an application program; determining whether the first page container assembly meets exposure conditions based on the user real-time operation information; if the first page container assembly meets the exposure condition, determining a first user visible area of the first page container assembly; based on the first user viewable area and a location area of a second page container assembly nested within the first page container assembly; judging whether the control in the second page container component is positioned in the second user visible area or not under the condition that the second page container component is provided with the second user visible area; and generating first reporting information aiming at the control based on the judging result. According to the technical scheme, the data processing cost is reduced, a great amount of behavior data of the user in the application program is not required to be collected, and the evaluation of the user behavior can be realized on the basis of protecting the privacy security of the user.

Description

Method and device for identifying exposure of control in application program
[ Field of technology ]
The present application relates to the field of data processing technologies, and in particular, to a method and an apparatus for identifying control exposure in an application program.
[ Background Art ]
At present, in actual scenes of advertisement delivery, product display, user interaction and the like in an application program, a user activity rule in the application program is often required to be evaluated so as to update page arrangement of the application program according to the evaluation result, and better use experience is provided for a user.
In this regard, generally, behavior data of a user in an application program may be collected as a basis for judgment. However, this solution requires obtaining the authorization of the user and is not usable by unauthorized users. And behavior data are various, the process for evaluating the activity rule of the user based on the behavior data is very complex, and the defects of large data quantity and large calculation quantity are faced.
Therefore, how to safely and effectively evaluate the activity rule of the user in the application program becomes a technical problem to be solved.
[ Invention ]
The embodiment of the application provides a control exposure identification method and device in an application program, aiming at solving the technical problems that an evaluation mode for collecting behavior data of a user in the application program in the related technology has potential safety hazards and high cost defects.
In a first aspect, an embodiment of the present application provides a method for identifying exposure of a control in an application program, including:
Acquiring real-time operation information of a user in an application program;
Determining whether a first page container component in the application program meets an exposure condition based on the user real-time operation information, wherein the first page container component comprises at least one group of parent containers, and each group of parent containers comprises at least one parent container;
if the first page container assembly meets the exposure condition, determining a first user visible area of the first page container assembly;
Determining whether a second page container assembly has a second user viewable area based on the first user viewable area and a location area of the second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly;
Judging whether a control in the second page container component is positioned in the second user visible area or not under the condition that the second page container component is provided with the second user visible area;
and generating first reporting information aiming at the control based on a judging result, wherein the first reporting information is used for reflecting whether the control is in an exposure state when the first page container component meets an exposure condition.
In one embodiment of the present application, optionally, the determining, based on the user real-time operation information, whether the first page container component in the application program meets an exposure condition includes:
determining whether a user operation corresponding to the real-time user operation information is a designated operation for bringing the first page container assembly into a user-viewable state, wherein,
If the user operation is the specified operation, determining that the first page container assembly meets exposure conditions;
And if the user operation is not the specified operation, determining that the first page container component does not meet the exposure condition.
In one embodiment of the present application, optionally, if the first page container assembly includes only a set of parent containers, the determining the first user viewable area of the first page container assembly includes:
And determining the superposition area of the distribution area of the parent container and the application program page display area as a first user visible area of the first page container component.
In one embodiment of the present application, optionally, if the first page container assembly includes multiple groups of parent containers nested layer by layer, the determining the first user viewable area of the first page container assembly includes:
for each adjacent nested outer parent container and inner parent container of the plurality of sets of parent containers,
Acquiring a superposition area of the distribution area of the outer parent container and the application page display area as a third user visible area of the outer parent container;
determining a fourth user viewable area of the inner parent container based on the third user viewable area and a location area of the inner parent container nested within the outer parent container;
And setting a fourth user visible area corresponding to an inner parent container of the innermost layers in the plurality of groups of parent containers as the first user visible area.
In one embodiment of the present application, optionally, the method further includes:
And under the condition that the second page container component does not have the second user visible area, generating second reporting information aiming at the control in the second page container component, wherein the second reporting information is used for reflecting that the control is in an unexposed state when the first page container component meets an exposure condition.
In one embodiment of the present application, optionally, generating the first report information for the control based on the determination result includes:
if the judgment result shows that the control in the second page container assembly is located in the second user visible area, determining that the first reported information is in an exposure state when the first page container assembly meets the exposure condition;
If the judgment result is that the control in the second page container assembly is not located in the second user visible area, determining that the first reporting information is that the control is in an unexposed state when the first page container assembly meets the exposure condition.
In one embodiment of the present application, optionally, the generating, based on the determination result, first report information for the control further includes:
If the judgment result is that the first part and the second part of the control in the second page container assembly are respectively positioned in and out of the second user visible area, determining the exposure confidence degree of the control based on the duty ratio area of the first part and the duty ratio area of the second part and the relative position information among the first user visible area, the application page display area and the second user visible area;
If the exposure confidence coefficient is greater than or equal to a preset confidence coefficient threshold value, determining that the first reporting information is in an exposure state when the first page container component meets an exposure condition;
and if the exposure confidence coefficient is smaller than the preset confidence coefficient threshold value, determining that the first reporting information is in an unexposed state when the first page container component meets an exposure condition.
In a second aspect, an embodiment of the present application provides an application program in-control exposure recognition device, including:
The operation information acquisition unit is used for acquiring real-time operation information of a user in the application program;
An exposure condition checking unit for determining whether a first page container component in the application program meets an exposure condition based on the user real-time operation information, wherein the first page container component comprises at least one group of parent containers, and each group of parent containers comprises at least one parent container;
A first user visible area determining unit, configured to determine a first user visible area of the first page container assembly if the first page container assembly meets an exposure condition;
A second user viewable area determining unit configured to determine whether a second page container assembly has a second user viewable area based on the first user viewable area and a location area of the second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly;
The control position judging unit is used for judging whether the control in the second page container assembly is positioned in the second user visible area or not under the condition that the second page container assembly is provided with the second user visible area;
and the report information generating unit is used for generating first report information aiming at the control based on the judging result, wherein the first report information is used for reflecting whether the control is in an exposure state when the first page container component meets the exposure condition.
In one embodiment of the present application, optionally, the exposure condition inspection unit is configured to:
Determining whether a user operation corresponding to the real-time user operation information is a specified operation for enabling the first page container assembly to be in a user visible state, wherein if the user operation is the specified operation, the first page container assembly is determined to meet an exposure condition; and if the user operation is not the specified operation, determining that the first page container component does not meet the exposure condition.
In one embodiment of the present application, optionally, the first user visible area determining unit includes:
and the first execution unit is used for determining the superposition area of the distribution area of the parent container and the application program page display area as the first user visible area of the first page container component if the first page container component only comprises a group of parent containers.
In one embodiment of the present application, optionally, the first user visible area determining unit includes:
the second execution unit is used for acquiring a superposition area of a distribution area of the outer parent container and an application page display area as a third user visible area of the outer parent container for each adjacent nested outer parent container and inner parent container in the plurality of groups of parent containers if the first page container assembly comprises a plurality of groups of nested parent containers layer by layer; determining a fourth user viewable area of the inner parent container based on the third user viewable area and a location area of the inner parent container nested within the outer parent container; and setting a fourth user visible area corresponding to an inner parent container of the innermost layers in the plurality of groups of parent containers as the first user visible area.
In one embodiment of the present application, optionally, the report information generating unit is further configured to:
And under the condition that the second page container component does not have the second user visible area, generating second reporting information aiming at the control in the second page container component, wherein the second reporting information is used for reflecting that the control is in an unexposed state when the first page container component meets an exposure condition.
In one embodiment of the present application, optionally, the report information generating unit includes:
The first determining unit is used for determining that the control in the second page container component is in an exposure state when the first page container component meets the exposure condition if the control in the second page container component is located in the second user visible area according to the judging result;
And the second determining unit is used for determining that the control in the second page container component is in an unexposed state when the first page container component meets the exposure condition if the control in the second page container component is not located in the second user visible area according to the judging result.
In one embodiment of the present application, optionally, the report information generating unit further includes:
The exposure confidence determining unit is used for determining the exposure confidence of the control if the judgment result is that the first part and the second part of the control in the second page container assembly are respectively positioned in and out of the second user visible area based on the duty ratio area of the first part and the duty ratio area of the second part and the relative position information among the first user visible area, the application page display area and the second user visible area;
The third determining unit is used for determining that the control is in an exposure state when the first page container component meets an exposure condition if the exposure confidence is greater than or equal to a preset confidence threshold;
and the fourth determining unit is used for determining that the first reported information is in an unexposed state when the first page container component meets an exposure condition if the exposure confidence is smaller than the preset confidence threshold.
In a third aspect, an embodiment of the present application provides a computer apparatus, including: at least one processor; and a memory communicatively coupled to the at least one processor; wherein the memory stores instructions executable by the at least one processor, the instructions being arranged to perform the method of the first aspect described above.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions for performing the method of the first aspect.
According to the technical scheme, aiming at the technical problems that the evaluation mode for collecting behavior data of the user in the application program in the related technology has potential safety hazards and high cost, the control exposure condition reflects the actual performance of the user operation, so that the browsing and use condition of the user in the application program can be reflected laterally through the acquisition of the control exposure state. And aiming at the application program display interface nested layer by layer, the user visual area can be determined layer by layer, and finally whether the control is in the user visual area of the underlying page container component where the control is positioned is judged, so that whether the control is exposed or not is judged, and the exposure state of the control is conveniently reported. The technical scheme has the advantages of simple and unified judgment logic for the control exposure, low calculation amount and high accuracy, reduces the data processing cost, and can realize the evaluation of the user behavior on the basis of protecting the privacy safety of the user without collecting a large amount of behavior data of the user in the application program.
[ Description of the drawings ]
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 illustrates a flow diagram of a method for in-application control exposure identification according to one embodiment of the application;
FIG. 2 illustrates a schematic diagram of an in-application page container component, according to one embodiment of the application;
FIG. 3 illustrates a schematic diagram of an in-application page container component in accordance with another embodiment of the application;
FIG. 4 illustrates a block diagram of an in-application control exposure identification apparatus according to one embodiment of the application;
FIG. 5 shows a block diagram of a computer device according to one embodiment of the application;
FIG. 6 illustrates a block diagram of a computer device according to one embodiment of the application.
[ Detailed description ] of the invention
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
FIG. 1 illustrates a flow diagram of a method for in-application control exposure identification according to one embodiment of the application.
As shown in fig. 1, the method for identifying the exposure of the control in the application program according to one embodiment of the application comprises the following steps:
Step 102, acquiring real-time operation information of a user in an application program.
Applications include, but are not limited to, APP, applet, etc. any form of client for use by a user.
Step 104, determining whether the first page container component in the application program meets the exposure condition or not based on the real-time operation information of the user.
Wherein the first page container component is located within an application program and comprises at least one set of parent containers, each set of parent containers comprising at least one parent container, a parent container referring to a page container component having further containers nested therein.
As shown in fig. 2, the first page container assembly only comprises a group of laterally sliding parent containers, and the parent containers consist of three parent containers, wherein a second page container assembly for placing a control, namely a child container of the first page container assembly, is arranged in the middle parent container.
As shown in fig. 3, the first page container assembly includes two sets of parent containers, the first set being a laterally sliding parent container a, which is composed of three parent containers, left, middle and right. The second group is a parent container b that slides up and down, nested within an intermediate parent container in the first group of parent containers a. The upper part of the second group of father containers b is nested with a second page container assembly c which can slide left and right, and a plurality of controls are arranged in the second page container assembly.
Step 106, if the first page container assembly meets the exposure condition, determining a first user visible area of the first page container assembly.
Determining whether a user operation corresponding to the real-time user operation information is a specified operation for enabling the first page container assembly to be in a user visible state, wherein if the user operation is the specified operation, the first page container assembly is determined to meet an exposure condition; and if the user operation is not the specified operation, determining that the first page container component does not meet the exposure condition.
The designating operation is a user operation for making the first page container component in a user-visible state, for example, a page switching operation, a list sliding operation, an application program background switching to a foreground operation, or any operation for changing the display content of the display area of the computer device.
Referring to fig. 2, if the first page container assembly includes only a set of parent containers, a region where the distribution region of the parent containers coincides with the application page display region may be determined as the first user viewable region of the first page container assembly. The application page display region refers to the portion of the application program that is presented within the display region of the computer device, that is, regardless of the location to which the first page container component is changed in the user operation, so long as it has an overlapping region with the application page display region, that is, a portion that is viewable by the user, that is, the first user viewable region.
Referring to fig. 3, the first page container component includes multiple groups of parent containers nested layer by layer, and then, for each adjacent nested outer parent container and inner parent container in the multiple groups of parent containers, a superposition area of a distribution area of the outer parent container and a display area of an application page is obtained and is used as a third user visible area of the outer parent container; determining a fourth user viewable area of the inner parent container based on the third user viewable area and a location area of the inner parent container nested within the outer parent container; and setting a fourth user visible area corresponding to an inner parent container of the innermost layers in the plurality of groups of parent containers as the first user visible area.
That is, for each adjacent nested outer parent container and inner parent container, a third user viewable area of the outer parent container is determined, and then a fourth user viewable area of the inner parent container is determined in the third user viewable area. If the inner parent container is the last parent container, that is, if the inner parent container is the parent container of the child container with the arrangement control inside, the fourth user visual area is determined to be the first user visual area.
Step 108, determining whether a second page container assembly has a second user viewable area based on the first user viewable area and a location area of the second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly.
Child containers refer to page container components for arranging controls that are nested within a parent container and no further containers are nested inside.
And if the second page container component does not have the second user visible area, indicating that the control in the second page container component is not exposed, i.e. the user does not cause the control to be exposed by real-time operation.
At this time, under the condition that the second page container component does not have the second user visible area, generating second report information for the control in the second page container component, wherein the second report information is used for reflecting that the control is in an unexposed state when the first page container component meets an exposure condition.
Step 110, determining whether a control in the second page container component is located in the second user visible area if the second page container component has the second user visible area.
And step 112, generating first report information for the control based on the judging result, wherein the first report information is used for reflecting whether the control is in an exposure state when the first page container component meets an exposure condition.
Specifically, if the judgment result shows that the control in the second page container assembly is located in the second user visible area, determining that the first reporting information is in an exposure state when the first page container assembly meets an exposure condition; if the judgment result is that the control in the second page container assembly is not located in the second user visible area, determining that the first reporting information is that the control is in an unexposed state when the first page container assembly meets the exposure condition.
That is, if the second page container component has a second user viewable area, then if the control is located within the second user viewable area, it is indicated that the user's real-time operation causes the control to be exposed. Otherwise, if the control is located outside the visible area of the second user, the user is informed that the real-time operation does not cause the exposure of the control.
According to the technical scheme, the actual performance of the user operation is reflected by the control exposure condition, so that the browsing and using condition of the user in the application program can be reflected laterally by acquiring the control exposure state. And aiming at the application program display interface nested layer by layer, the user visual area can be determined layer by layer, and finally whether the control is in the user visual area of the underlying page container component where the control is positioned is judged, so that whether the control is exposed or not is judged, and the exposure state of the control is conveniently reported. The technical scheme has the advantages of simple and unified judgment logic for the control exposure, low calculation amount and high accuracy, reduces the data processing cost, and can realize the evaluation of the user behavior on the basis of protecting the privacy safety of the user without collecting a large amount of behavior data of the user in the application program.
In addition, in a real scenario, the control may also be partially visible and partially invisible, i.e. across the edge of the second user viewable area, due to uncontrollable user operations.
If the judgment result is that the first part and the second part of the control in the second page container assembly are respectively positioned in and out of the second user visible area, determining the exposure confidence of the control based on the duty ratio area of the first part and the duty ratio area of the second part and the relative position information among the first user visible area, the application page display area and the second user visible area. This exposure confidence is used to reflect the likelihood that the control is exposed.
In one possible design, one-hot encoding may be performed on five variables, including the first portion of the area with the ratio, the second portion of the area with the ratio, the relative position information between the first user visual area and the application page display area, the relative position information between the first user visual area and the second user visual area, and the relative position information between the application page display area and the second user visual area, to obtain encoded feature values, then normalization processing is performed on each encoded feature value, and weighted summation is performed on the normalization processing results to obtain the exposure confidence. The weight of each variable is proportional to the distance from the distribution position of each variable to the center point of the display area of the application program page.
Further, a predetermined confidence threshold is set, which refers to the lowest exposure confidence that the control portion has when exposed sufficiently to be of interest to the user. If the exposure confidence coefficient is greater than or equal to a preset confidence coefficient threshold value, determining that the first reporting information is in an exposure state when the first page container component meets an exposure condition; and if the exposure confidence coefficient is smaller than the preset confidence coefficient threshold value, determining that the first reporting information is in an unexposed state when the first page container component meets an exposure condition.
Therefore, for the control with incomplete display, whether the control is in an effective exposure state or not can be effectively judged, the control is suitable for a changeable actual scene of a user operating an application program, the accuracy of data reporting in the exposure state is improved, and the control is beneficial to more accurately and reliably evaluating the behavior rule of the user.
The technical scheme of the present application is further described below in conjunction with the actual scenario of fig. 3.
First, a control for listening to exposure opportunities and computing the visible range, WATCHPARENT, is set, wrapping WATCHPARENT for each parent container within the first page container assembly.
And secondly, setting a control for monitoring whether the control is exposed or not, namely, a WATCHITEM control, and wrapping WATCHITEM controls for each control in the second page container component.
The WATCHPARENT control is used for acquiring the visual range of the parent container wrapped by the control when the exposure condition is monitored, and sending an event to each WATCHITEM control.
When WATCHITEM receives the event of WATCHPARENT, it calculates whether exposure occurs according to the visual range of WATCHPARENT and the position of itself in parent container, and informs the calling layer, and at the same time, calls back the calculation result to WATCHPARENT.
Alternatively, for a parent container, the WATCHPARENT control and WATCHITEM control may be the same control.
Finally, after the call layer receives the result of the exposure or non-exposure of the control, the result is sent to the server for the server to collect the exposure condition of the control in the application program for user behavior evaluation.
FIG. 4 illustrates a block diagram of an in-application control exposure identification apparatus according to one embodiment of the application.
As shown in fig. 4, an in-application control exposure recognition apparatus 400 according to an embodiment of the present application includes:
An operation information acquisition unit 402, configured to acquire user real-time operation information in an application program;
An exposure condition checking unit 404, configured to determine, based on the user real-time operation information, whether a first page container component in the application program meets an exposure condition, where the first page container component includes at least one group of parent containers, and each group of parent containers includes at least one parent container;
a first user visible area determining unit 406, configured to determine a first user visible area of the first page container assembly if the first page container assembly meets an exposure condition;
A second user viewable area determining unit 408 for determining whether the second page container assembly has a second user viewable area based on the first user viewable area and a location area of a second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly;
a control position determining unit 410, configured to determine, when the second page container assembly has the second user visible area, whether a control in the second page container assembly is located in the second user visible area;
And the report information generating unit 412 is configured to generate, based on a determination result, first report information for the control, where the first report information is used to reflect whether the control is in an exposure state when the first page container component meets an exposure condition.
In one embodiment of the present application, optionally, the exposure condition inspection unit 404 is configured to:
Determining whether a user operation corresponding to the real-time user operation information is a specified operation for enabling the first page container assembly to be in a user visible state, wherein if the user operation is the specified operation, the first page container assembly is determined to meet an exposure condition; and if the user operation is not the specified operation, determining that the first page container component does not meet the exposure condition.
In one embodiment of the present application, optionally, the first user visible area determining unit 406 includes:
and the first execution unit is used for determining the superposition area of the distribution area of the parent container and the application program page display area as the first user visible area of the first page container component if the first page container component only comprises a group of parent containers.
In one embodiment of the present application, optionally, the first user visible area determining unit 406 includes:
the second execution unit is used for acquiring a superposition area of a distribution area of the outer parent container and an application page display area as a third user visible area of the outer parent container for each adjacent nested outer parent container and inner parent container in the plurality of groups of parent containers if the first page container assembly comprises a plurality of groups of nested parent containers layer by layer; determining a fourth user viewable area of the inner parent container based on the third user viewable area and a location area of the inner parent container nested within the outer parent container; and setting a fourth user visible area corresponding to an inner parent container of the innermost layers in the plurality of groups of parent containers as the first user visible area.
In one embodiment of the present application, optionally, the report information generating unit 412 is further configured to:
And under the condition that the second page container component does not have the second user visible area, generating second reporting information aiming at the control in the second page container component, wherein the second reporting information is used for reflecting that the control is in an unexposed state when the first page container component meets an exposure condition.
In one embodiment of the present application, optionally, the report information generating unit 412 includes:
The first determining unit is used for determining that the control in the second page container component is in an exposure state when the first page container component meets the exposure condition if the control in the second page container component is located in the second user visible area according to the judging result;
And the second determining unit is used for determining that the control in the second page container component is in an unexposed state when the first page container component meets the exposure condition if the control in the second page container component is not located in the second user visible area according to the judging result.
In one embodiment of the present application, optionally, the report information generating unit 412 further includes:
The exposure confidence determining unit is used for determining the exposure confidence of the control if the judgment result is that the first part and the second part of the control in the second page container assembly are respectively positioned in and out of the second user visible area based on the duty ratio area of the first part and the duty ratio area of the second part and the relative position information among the first user visible area, the application page display area and the second user visible area;
The third determining unit is used for determining that the control is in an exposure state when the first page container component meets an exposure condition if the exposure confidence is greater than or equal to a preset confidence threshold;
and the fourth determining unit is used for determining that the first reported information is in an unexposed state when the first page container component meets an exposure condition if the exposure confidence is smaller than the preset confidence threshold.
The in-application control exposure recognition device 400 uses the scheme described in any one of the above embodiments, so that all the above technical effects are achieved, and will not be described herein.
In addition, in one embodiment, the present application provides a computer device, which may be a server, and an internal structure diagram thereof may be as shown in fig. 5. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes non-volatile and/or volatile storage media and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is for communicating with an external client via a network connection. The computer program, when executed by a processor, may implement the method for identifying exposure of a control in an application program according to any one of the embodiments.
In one embodiment, the present application also provides a computer device, which may be a client, and an internal structure diagram thereof may be as shown in fig. 6. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is for communicating with an external server via a network connection. The computer program, when executed by a processor, may implement the method for identifying exposure of a control in an application program according to any one of the embodiments.
Any of the computer devices described above in accordance with embodiments of the present application exist in a variety of forms including, but not limited to:
(1) A mobile communication device: such devices are characterized by mobile communication capabilities and are primarily aimed at providing voice, data communications. Such terminals include: smart phones (e.g., iPhone), multimedia phones, functional phones, and low-end phones, etc.
(2) Ultra mobile personal computer device: such devices are in the category of personal computers, having computing and processing functions, and generally also having mobile internet access characteristics. Such terminals include: PDA, MID, and UMPC devices, etc., such as iPad.
(3) Portable entertainment device: such devices may display and play multimedia content. The device comprises: audio, video players (e.g., iPod), palm game consoles, electronic books, and smart toys, wearable devices, and portable car navigation devices.
(4) And (3) a server: the configuration of the server includes a processor, a hard disk, a memory, a system bus, and the like, and the server is similar to a general computer architecture, but is required to provide highly reliable services, and thus has high requirements in terms of processing capacity, stability, reliability, security, scalability, manageability, and the like.
(5) Other electronic devices with data interaction function.
In addition, an embodiment of the present application provides a computer-readable storage medium storing computer-executable instructions for performing the steps of:
Determining whether a first page container component in the application program meets an exposure condition based on the user real-time operation information, wherein the first page container component comprises at least one group of parent containers, and each group of parent containers comprises at least one parent container;
if the first page container assembly meets the exposure condition, determining a first user visible area of the first page container assembly;
Determining whether a second page container assembly has a second user viewable area based on the first user viewable area and a location area of the second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly;
Judging whether a control in the second page container component is positioned in the second user visible area or not under the condition that the second page container component is provided with the second user visible area;
and generating first reporting information aiming at the control based on a judging result, wherein the first reporting information is used for reflecting whether the control is in an exposure state when the first page container component meets an exposure condition.
It should be noted that, the functions or steps that can be implemented by the computer readable storage medium or the computer device may correspond to the relevant descriptions in the foregoing method embodiments, and are not described herein for avoiding repetition.
The technical scheme of the application is described in detail above with reference to the accompanying drawings, and by the technical scheme of the application, the actual performance of the user operation is reflected by the control exposure condition, so that the browsing and using condition of the user in the application program can be reflected laterally by acquiring the control exposure state. And aiming at the application program display interface nested layer by layer, the user visual area can be determined layer by layer, and finally whether the control is in the user visual area of the underlying page container component where the control is positioned is judged, so that whether the control is exposed or not is judged, and the exposure state of the control is conveniently reported. The technical scheme has the advantages of simple and unified judgment logic for the control exposure, low calculation amount and high accuracy, reduces the data processing cost, and can realize the evaluation of the user behavior on the basis of protecting the privacy safety of the user without collecting a large amount of behavior data of the user in the application program.
It should be understood that although the terms first, second, etc. may be used in embodiments of the present application to describe page container components, these page container components should not be limited to these terms. These terms are only used to distinguish the page container components from each other. For example, a first page container assembly may also be referred to as a second page container assembly, and similarly, a second page container assembly may also be referred to as a first page container assembly, without departing from the scope of embodiments of the application.
Depending on the context, the word "if" as used herein may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to a detection". Similarly, the phrase "if determined" or "if detected (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when detected (stated condition or event)" or "in response to detection (stated condition or event), depending on the context.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In the several embodiments provided by the present application, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of the elements is merely a logical function division, and there may be additional divisions when actually implemented, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYNCHLINK) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (10)

1. An in-application control exposure identification method is characterized by comprising the following steps:
Acquiring real-time operation information of a user in an application program;
Determining whether a first page container component in the application program meets an exposure condition based on the user real-time operation information, wherein the first page container component comprises at least one group of parent containers, and each group of parent containers comprises at least one parent container;
if the first page container assembly meets the exposure condition, determining a first user visible area of the first page container assembly;
Determining whether a second page container assembly has a second user viewable area based on the first user viewable area and a location area of the second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly;
Judging whether a control in the second page container component is positioned in the second user visible area or not under the condition that the second page container component is provided with the second user visible area;
and generating first reporting information aiming at the control based on a judging result, wherein the first reporting information is used for reflecting whether the control is in an exposure state when the first page container component meets an exposure condition.
2. The method for recognizing exposure to control in application program according to claim 1, wherein said determining whether the first page container component in the application program satisfies the exposure condition based on the user real-time operation information comprises:
determining whether a user operation corresponding to the real-time user operation information is a designated operation for bringing the first page container assembly into a user-viewable state, wherein,
If the user operation is the specified operation, determining that the first page container assembly meets exposure conditions;
And if the user operation is not the specified operation, determining that the first page container component does not meet the exposure condition.
3. The method of claim 1, wherein if the first page container assembly includes only a set of parent containers, the determining the first user viewable area of the first page container assembly comprises:
And determining the superposition area of the distribution area of the parent container and the application program page display area as a first user visible area of the first page container component.
4. The method for identifying the exposure of the control in the application program according to claim 1, wherein if the first page container assembly includes a plurality of groups of parent containers nested layer by layer, the determining the first user viewable area of the first page container assembly includes:
for each adjacent nested outer parent container and inner parent container of the plurality of sets of parent containers,
Acquiring a superposition area of the distribution area of the outer parent container and the application page display area as a third user visible area of the outer parent container;
determining a fourth user viewable area of the inner parent container based on the third user viewable area and a location area of the inner parent container nested within the outer parent container;
And setting a fourth user visible area corresponding to an inner parent container of the innermost layers in the plurality of groups of parent containers as the first user visible area.
5. The method for identifying exposure of controls within an application according to any one of claims 1 to 4, further comprising:
And under the condition that the second page container component does not have the second user visible area, generating second reporting information aiming at the control in the second page container component, wherein the second reporting information is used for reflecting that the control is in an unexposed state when the first page container component meets an exposure condition.
6. The method for identifying exposure of a control in an application program according to any one of claims 1 to 4, wherein the generating first report information for the control based on the determination result includes:
if the judgment result shows that the control in the second page container assembly is located in the second user visible area, determining that the first reported information is in an exposure state when the first page container assembly meets the exposure condition;
If the judgment result is that the control in the second page container assembly is not located in the second user visible area, determining that the first reporting information is that the control is in an unexposed state when the first page container assembly meets the exposure condition.
7. The method for identifying exposure of a control in an application according to claim 6, wherein generating first report information for the control based on a result of the determination further comprises:
If the judgment result is that the first part and the second part of the control in the second page container assembly are respectively positioned in and out of the second user visible area, determining the exposure confidence degree of the control based on the duty ratio area of the first part and the duty ratio area of the second part and the relative position information among the first user visible area, the application page display area and the second user visible area;
If the exposure confidence coefficient is greater than or equal to a preset confidence coefficient threshold value, determining that the first reporting information is in an exposure state when the first page container component meets an exposure condition;
and if the exposure confidence coefficient is smaller than the preset confidence coefficient threshold value, determining that the first reporting information is in an unexposed state when the first page container component meets an exposure condition.
8. An in-application control exposure recognition device, comprising:
The operation information acquisition unit is used for acquiring real-time operation information of a user in the application program;
An exposure condition checking unit for determining whether a first page container component in the application program meets an exposure condition based on the user real-time operation information, wherein the first page container component comprises at least one group of parent containers, and each group of parent containers comprises at least one parent container;
A first user visible area determining unit, configured to determine a first user visible area of the first page container assembly if the first page container assembly meets an exposure condition;
A second user viewable area determining unit configured to determine whether a second page container assembly has a second user viewable area based on the first user viewable area and a location area of the second page container assembly nested within the first page container assembly, wherein the second page container assembly is a child container of the first page container assembly;
The control position judging unit is used for judging whether the control in the second page container assembly is positioned in the second user visible area or not under the condition that the second page container assembly is provided with the second user visible area;
and the report information generating unit is used for generating first report information aiming at the control based on the judging result, wherein the first report information is used for reflecting whether the control is in an exposure state when the first page container component meets the exposure condition.
9. A computer device, comprising: at least one processor; and a memory communicatively coupled to the at least one processor;
wherein the memory stores instructions executable by the at least one processor, the instructions being arranged to perform the method of any of the preceding claims 1 to 7.
10. A computer readable storage medium storing computer executable instructions for performing the method of any one of claims 1 to 7.
CN202410131110.5A 2024-01-30 2024-01-30 Method and device for identifying exposure of control in application program Pending CN118210685A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410131110.5A CN118210685A (en) 2024-01-30 2024-01-30 Method and device for identifying exposure of control in application program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410131110.5A CN118210685A (en) 2024-01-30 2024-01-30 Method and device for identifying exposure of control in application program

Publications (1)

Publication Number Publication Date
CN118210685A true CN118210685A (en) 2024-06-18

Family

ID=91445226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410131110.5A Pending CN118210685A (en) 2024-01-30 2024-01-30 Method and device for identifying exposure of control in application program

Country Status (1)

Country Link
CN (1) CN118210685A (en)

Similar Documents

Publication Publication Date Title
CN107066478B (en) False address information identification method and device
CN110826071B (en) Software vulnerability risk prediction method, device, equipment and storage medium
CN108665143B (en) Wind control model evaluation method and device
CN107391359B (en) Service testing method and device
CN112819611A (en) Fraud identification method, device, electronic equipment and computer-readable storage medium
CN109670931A (en) Behavioral value method, apparatus, equipment and the storage medium of loan user
CN112085588B (en) Method and device for determining safety of rule model and data processing method
CN109670929A (en) Control method, device, equipment and the computer readable storage medium of loan early warning
CN112613974A (en) Risk early warning method, device, equipment and readable storage medium
CN118210685A (en) Method and device for identifying exposure of control in application program
CN116362750A (en) Data screening method and device, electronic equipment and storage medium
CN112836612B (en) Method, device and system for user real-name authentication
CN112085590B (en) Method and device for determining safety of rule model and server
CN112269940A (en) Data processing method and device
CN111770080A (en) Method and device for recovering device fingerprint
CN111708994A (en) Risk management method, device, equipment and medium
CN109635226A (en) Early warning method for pushing, server and the storage medium of real estate data
CN109949154B (en) Customer information classification method, apparatus, computer device and storage medium
CN117932504A (en) Abnormal transaction identification method, device, equipment and medium based on blockchain
CN112256814B (en) Information acquisition method, electronic device, and computer-readable storage medium
CN111447082B (en) Determination method and device of associated account and determination method of associated data object
CN110442845B (en) File repetition rate calculation method and device
CN116737563A (en) Privacy compliance component optimization method and device and electronic equipment
CN112214705A (en) Page display method, device and equipment
CN116405440A (en) Current limiting method and device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination