CN113191800B - Method and device for counting advertisement click rate on APP - Google Patents

Method and device for counting advertisement click rate on APP Download PDF

Info

Publication number
CN113191800B
CN113191800B CN202110443322.3A CN202110443322A CN113191800B CN 113191800 B CN113191800 B CN 113191800B CN 202110443322 A CN202110443322 A CN 202110443322A CN 113191800 B CN113191800 B CN 113191800B
Authority
CN
China
Prior art keywords
advertisement
counter
click
sub
app client
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.)
Active
Application number
CN202110443322.3A
Other languages
Chinese (zh)
Other versions
CN113191800A (en
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.)
Guangdong Convenisun Technology Co ltd
Original Assignee
Guangdong Convenisun Technology Co ltd
Filing date
Publication date
Application filed by Guangdong Convenisun Technology Co ltd filed Critical Guangdong Convenisun Technology Co ltd
Priority to CN202110443322.3A priority Critical patent/CN113191800B/en
Publication of CN113191800A publication Critical patent/CN113191800A/en
Application granted granted Critical
Publication of CN113191800B publication Critical patent/CN113191800B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and a device for counting advertisement click rate on an APP, wherein the method comprises the following steps: acquiring an advertisement request data packet sent by an APP client to an advertisement server when an advertisement click event occurs and recording the advertisement request data packet as an advertisement request, and sending real-time positioning to the advertisement server by the APP client when the advertisement click event occurs; when the APP client exits the advertisement interface, the advertisement server pops up an advertisement page exiting request to the advertisement interface of the APP client, the user selects to exit the advertisement page, and a second sub-counter of a corresponding advertisement area in the advertisement server is automatically increased by 1; and the counter I and the counter II in the corresponding areas of the advertisement server transmit the compared count values to the total counter, and the advertisement click rate of the APP client is determined according to the count value of the total counter in the preset time period. The method and the device for counting the advertisement click quantity on the APP can completely ensure that the advertisement server can accurately, rapidly and reliably acquire the user click quantity, and are also convenient for unified management on the advertisement line.

Description

Method and device for counting advertisement click rate on APP
Technical Field
The invention relates to the technical field of communication, in particular to a method and a device for counting advertisement click rate on an APP.
Background
Advertising, as the name suggests, is advertising and tells the public of something to the public. Advertisement is meant in a broad and narrow sense, non-economical advertisement means advertisement not aimed at profit, such as government notices, religious, education, cultural, municipal, social community, etc., economical advertisement means advertisement aimed at profit, usually commercial advertisement, means for promoting goods or providing services, means for transmitting goods or service information to consumers or users through advertisement media in a pay manner, commercial advertisement is such economical advertisement.
APP is mobile phone software, is also tablet software, mainly refers to software installed on a smart phone, improves the defects and individuation of an original system, improves functions of the mobile phone, provides a richer use experience for users, and needs a corresponding mobile phone system by 2017, 6 and 1 days, and is mainly: apple iOS, google Android (Android) system, saint platform, and microsoft platform. APP is a wide variety of types on the market, including communications, games, entertainment, social, utility life, and so on. The game is the most popular and highest downloaded mobile phone APP application in the current market, and the game is the social APP, wherein the well-known social APP comprises WeChat, strange and the like, and the third entertainment APP can be divided into several categories: songs, players, etc.
The conventional advertisements and APP clients are combined with each other, the income of the advertisements is increased through the click-through amount of the advertisements, and the interests of the advertisers are improved through counterfeiting the click-through amount, so that the deception developer is realized, the payment is reduced, any attack behavior of abusing or paying is prevented from being executed by a malicious agent, and the privacy of the user can be protected in a charging stage.
The prior art scheme (Chinese patent application with bulletin number of CN 107992525A) discloses a method and a device for counting the click rate of advertisements on an APP, the click rate of the advertisements is processed by utilizing an advertisement server in a collective mode, the effective click rate of users can be accurately and reliably obtained, real click payment is realized, and the prior art scheme (Chinese patent application with bulletin number of CN 102999500B) discloses a click rate counting method and a system, click counting codes do not need to be embedded in each content page, packets such as jQeury are not used, the broadband is saved, and the problem of cross-domain is avoided.
However, according to the two prior art schemes, the advertisement server is used for collectively processing the click quantity of advertisements, so that the click quantity occurrence error is easy to cause, the advertisement processing efficiency of the advertisement server is greatly reduced, in addition, the click quantity is counted for a single time, the error is easy to occur in the counting process, and the accuracy of the click quantity is greatly reduced.
Disclosure of Invention
The invention provides a method and a device for counting advertisement click quantity on an APP, which are used for solving the technical problems that in the prior art, the click quantity of advertisements is processed by an advertisement server in a collective mode, so that the occurrence error of the click quantity is easy to cause, the advertisement processing efficiency of the advertisement server is greatly reduced, the error is easy to occur in the counting process by adopting single counting of the click quantity, and the accuracy of the click quantity value is greatly reduced.
In order to achieve the above purpose, the present invention provides the following technical solutions: a method for counting advertisement click rate on APP comprises the following steps:
s1: when an advertisement clicking event occurs, an APP client sends an advertisement request data packet to an advertisement server and records the advertisement request data packet as an advertisement request;
s2: acquiring a real-time positioning and advertisement area dividing request sent by the APP client to an advertisement server when an advertisement clicking event occurs;
s3: the advertisement server receives an advertisement area division request of the APP client and divides advertisements into N advertisement areas, wherein the N advertisement areas correspond to each geographic area, and each geographic area can be positioned and transmitted through the APP client;
s4: the APP client sends the advertisement request data packet to the advertisement server, the advertisement server determines an advertisement area corresponding to the APP client based on real-time positioning sent by the APP client, and advertisements are extracted in the advertisement area corresponding to the advertisement server;
s5: when receiving an advertisement request response data packet returned in an advertisement area corresponding to the advertisement server, automatically adding 1 to a first sub-counter corresponding to the advertisement area in the advertisement server;
s6: when the APP client exits the advertisement interface, the advertisement server pops up an advertisement exit page request to the advertisement interface of the APP client, the user selects to exit the advertisement page, and a second sub-counter corresponding to the advertisement area in the advertisement server is automatically increased by 1;
s7: comparing the count values recorded by the first sub-counter with the count values recorded by the second sub-counter; when the count value recorded by the first counter is the same as the count value recorded by the second counter, taking the count value of the first counter or the count value of the second counter as the advertisement click quantity; when the count values recorded by the first counter and the second counter are different, taking the smaller value of the count values of the first counter and the second counter as the advertisement click quantity;
s8: and sending the compared smaller count value to a total counter, summing the count value by using a summation function by the total counter, recording the sum as a total count value, storing the total count value into an EXCEL table, and determining the advertisement click rate of the APP client according to the total count value.
Preferably, the specific mode for acquiring the advertisement request data packet based on the advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs is as follows:
using a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function to call a DLL file to acquire an advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs;
and adding at least one of the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server into the advertisement request data packet.
Preferably, the LoadLibrary function is used for loading a dynamic connection library or an EXE running file; the GetProcAddress function is used for acquiring the address of the dynamic connection library; the FreeLibrary function is used to release the dynamic connection library.
The invention also provides a device for counting the click rate of advertisements on the APP, which comprises:
the first acquisition module is used for acquiring an advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs and recording the advertisement request data packet as an advertisement request;
the second acquisition module is used for acquiring a real-time positioning and advertisement area dividing request sent by the APP client to the advertisement server when the advertisement clicking event occurs;
the advertisement area dividing module is used for obtaining a dividing area after the advertisement server performs regional division on the advertisement and the advertisement in the dividing area;
the processor is used for acquiring an advertisement request data packet sent by the APP client to the advertisement server when an advertisement click event occurs and recording the advertisement request data packet as an advertisement request, comparing the count values of the first sub-counter and the second sub-counter through the small-taking processing module and carrying out small-taking processing, and determining the advertisement click quantity of the APP client according to the count value of the total counter in a preset time period;
the receiver is used for receiving an advertisement request response data packet returned by the advertisement server;
a first sub-counter for automatically adding 1 when the receiver receives the advertisement request response packet;
the second sub-counter is used for counting the click quantity of the advertisement in the dividing area for the second time when the APP client side is used for automatically adding 1 to the second sub-counter in the dividing area by the advertisement server;
a total counter which uses a summation function to sum the count values and uses the sum function as the advertisement click rate of the APP client;
and the memory is used for storing the count value recorded by the total counter.
Preferably, the specific mode for acquiring the advertisement request data packet based on the advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs is as follows:
using a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function to call a DLL file to acquire an advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs;
and adding at least one of the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server into the advertisement request data packet.
Preferably, the LoadLibrary function is used for loading a dynamic connection library or an EXE running file; the GetProcAddress function is used for acquiring the address of the dynamic connection library; the FreeLibrary function is used to release the dynamic connection library.
Preferably, the initial values of the first sub-counter, the second sub-counter and the total counter are zero; and when the first sub-counter, the second sub-counter and the total counter are recorded at one time, automatically resetting.
The invention can obtain the following beneficial effects:
1. according to the invention, when an advertisement click event occurs, the APP client sends an advertisement request data packet to the advertisement server and records the advertisement request data packet as an advertisement request, and meanwhile, the advertisement request data packet is sent to the advertisement server for real-time positioning, the advertisement is divided into N areas by the area dividing module in the advertisement server, the corresponding area of the APP client is determined by the real-time positioning sent by the advertisement server to the APP client, the advertisement is extracted in the corresponding area of the advertisement server, so that the advertisement is subjected to regional management, the advertisement server is utilized to process the advertisement in the divided areas, the fluency of the advertisement server is rapidly improved, the phenomenon of machine blocking does not occur in the use process, the advertisement server processing efficiency is greatly improved, the disorder of an internal system of the advertisement server is avoided, and the unified management on an advertisement line is also facilitated.
2. When receiving an advertisement request response data packet returned in a region corresponding to the advertisement server, the invention automatically adds 1 to a corresponding counter I in a region 1, a region 2, a region 3 and a region … … in the advertisement server and a corresponding counter II in a region N corresponding to the region, ejects a 'yes/no' exit advertisement to the APP client advertisement interface when exiting the advertisement interface, clicks the 'yes' exit advertisement on the APP client advertisement interface, at the moment, the corresponding counter II in N regions in the advertisement server automatically adds 1 to the corresponding counter I, compares the count value recorded by the counter I with the count value recorded by the counter II, takes the count value of the counter I or the counter II as the advertisement click quantity when the count value recorded by the counter I and the counter II is different, the method comprises the steps that smaller values of count values of a first counter and a second counter are taken as advertisement click amounts, the corresponding count values of the first counter and the second counter in an area 1, an area 2, an area 3 and an area … … and an area N in an advertisement server are transmitted to a total counter, the total counter sums the count values by using a summation function, the advertisement click amounts of the APP client are determined according to the count values of the total counter in a preset time period, and the comparison between the count values of the first counter entering advertisement records and the count values of the second counter exiting advertisements is utilized, so that error records can be effectively prevented, the accuracy of count value records is ensured, and further, the advertisement server can be completely ensured to accurately, rapidly and reliably acquire the effective click amounts of users.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
The technical scheme of the invention is further described in detail through the drawings and the embodiments.
Drawings
The accompanying drawings are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate the invention and together with the embodiments of the invention, serve to explain the invention.
In the drawings:
FIG. 1 is a schematic workflow diagram of an embodiment of the present invention;
fig. 2 is a schematic diagram of a module architecture according to an embodiment of the invention.
In the figure: 1. an advertisement server; 11. an advertisement area dividing module; 2. a memory; 3. a total counter; 31. a first sub-counter; 32. a second sub-counter; 4. a processor; 5. a receiver; 6. a first acquisition module; 7. a second acquisition module; 8. and taking a small processing module.
Detailed Description
The preferred embodiments of the present invention will be described below with reference to the accompanying drawings, it being understood that the preferred embodiments described herein are for illustration and explanation of the present invention only, and are not intended to limit the present invention.
The embodiment of the invention provides a method for counting advertisement click rate on an APP, which is shown in figure 1 and comprises the following steps:
s1: when an advertisement clicking event occurs, an APP client transmits an advertisement request data packet to an advertisement server 1 and records the advertisement request data packet as an advertisement request;
s2: acquiring a real-time positioning and advertisement area dividing request sent by the APP client to the advertisement server 1 when an advertisement clicking event occurs;
s3: the advertisement server 1 receives an advertisement area division request of the APP client and divides an advertisement into N advertisement areas, wherein the N advertisement areas correspond to each geographic area, and each geographic area can be positioned and transmitted by the APP client;
s4: the APP client sends the advertisement request data packet to the advertisement server 1, the advertisement server 1 determines an advertisement area corresponding to the APP client based on real-time positioning sent by the APP client, and advertisements are extracted in the advertisement area corresponding to the advertisement server 1;
s5: when receiving an advertisement request response data packet returned in an advertisement area corresponding to the advertisement server 1, automatically adding 1 to a first sub-counter 31 corresponding to the advertisement area in the advertisement server 1;
s6: when the APP client exits the advertisement interface, the advertisement server 1 pops up an advertisement exit page request to the advertisement interface of the APP client, the user selects to exit the advertisement page, and a second sub-counter 32 corresponding to the advertisement area in the advertisement server 1 is automatically added with 1;
s7: comparing the count values recorded by the first sub-counter 31 and the second sub-counter 32; when the count value recorded by the first sub-counter 31 and the second sub-counter 32 is the same, taking the count value of the first sub-counter 31 or the second sub-counter 32 as the advertisement click rate; when the count values recorded by the first sub-counter 31 and the second sub-counter 32 are different, taking the smaller value of the count values of the first sub-counter 31 and the second sub-counter 32 as the advertisement click rate;
s8: the compared smaller count value is sent to a total counter 3, the total counter 3 uses a summation function to sum the count value, the sum is recorded as a total count value and is stored in an EXCEL table, and the advertisement click rate of the APP client is determined according to the total count value;
the working principle of the technical scheme is as follows: acquiring the occurrence of an advertisement click event, an APP client sending an advertisement request data packet to an advertisement server 1 and recording the advertisement request data packet as an advertisement request, simultaneously acquiring the occurrence of the advertisement click event, the APP client sending real-time positioning to the advertisement server 1, acquiring the real-time positioning of the APP client through the advertisement server 1, dividing the advertisement into a plurality of parts of area 1, area 2, area 3, … … and area n by the advertisement server 1, wherein the advertisement in each area is the same, determining the corresponding area of the APP client by the real-time positioning sent by the advertisement server 1, extracting the advertisement in the corresponding area of the advertisement server 1, automatically adding 1 to the corresponding sub-counter 31 in the corresponding area of the area 1, the area 2, the area 3, the … … and the corresponding area of the area n in the advertisement server 1 when receiving the advertisement request response data packet returned in the corresponding area of the advertisement server 1, when the APP client exits the advertisement interface, the advertisement server 1 pops up a yes/no exit advertisement to the APP client advertisement interface, clicks the yes exit advertisement on the APP client advertisement interface, at the moment, the corresponding partial counter two 32 in the area 1, the area 2, the area 3, the area … … and the area n in the advertisement server 1 is automatically added with 1, the count value recorded by the partial counter one 31 and the partial counter two 32 is compared, when the count value recorded by the partial counter one 31 and the partial counter two 32 is the same, namely, the count value of the partial counter one 31 or the count value of the partial counter two 32 is taken as the advertisement click quantity, when the count value recorded by the partial counter one 31 and the count value recorded by the partial counter two 32 are different, the smaller value of the count value of the partial counter one 31 and the count value of the partial counter two 32 is taken as the advertisement quantity, and the area 1, the area 2 and the area 3 in the advertisement server 1, … …, the corresponding first and second sub-counters 31 and 32 in the region n transmit the compared smaller count value to the total counter 3, the total counter 3 sums the count values by using a summation function, and finally the advertisement click number of the APP client is determined according to the count value of the total counter 3 in a preset time period;
the beneficial effects of the technical scheme are as follows: when an advertisement click event occurs, an APP client sends an advertisement request data packet to an advertisement server and records the advertisement request data packet as an advertisement request, and simultaneously sends real-time positioning to the advertisement server, an area dividing module in the advertisement server divides the advertisement into a plurality of areas 1, 2, 3 and … …, and n, the advertisement server determines the corresponding area of the APP client when the real-time positioning sent by the APP client is performed, and extracts the advertisement in the corresponding area of the advertisement server, so that the regional management of the advertisement is realized, and the advertisement server is utilized to process the advertisement in the divided areas, so that the fluency of the advertisement server is rapidly improved, the phenomenon of machine blocking does not occur in the using process, the efficiency of the advertisement server on the advertisement processing is greatly improved, the confusion of an internal system of the advertisement server is avoided, and the unified management on an advertisement line is also convenient;
in one embodiment, based on sending an advertisement request data packet to an advertisement server by an APP client when an advertisement click event occurs, the specific manner of obtaining the advertisement request data packet is as follows:
using a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function to call a DLL file to acquire an advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs;
adding at least one of the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server into the advertisement request data packet;
the working principle of the technical scheme is as follows: the method comprises the steps that a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function are used for calling DLL files to obtain advertisement request data packets sent to an advertisement server by an APP client when an advertisement click event occurs, the LoadLibrary function is used for loading a dynamic connection library or an EXE running file, the GetProcAddress function is used for obtaining an address of the dynamic connection library, and the FreeLibrary function is used for releasing the dynamic connection library; acquiring advertisements by using the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server 1;
the beneficial effects of the technical scheme are as follows: the advertisement request data packet sent by the APP client to the advertisement server 1 when the advertisement click event occurs can be accurately and easily obtained by using the LoadLibrary function, the GetPorcAddress function and the FreeLibrary function; can be used for accurately acquiring advertisements.
In one embodiment, the initial values of the first sub-counter 31, the second sub-counter 32 and the total counter 3 are set to zero, and the click rate is automatically cleared after the first sub-counter 31, the second sub-counter 32 and the total counter 3 complete one-time recording.
The beneficial effects of the technical scheme are as follows: an accurate count of the amount of clicks in the next time period in the vicinity is ensured.
The invention also provides a method for counting the click rate of advertisements on the APP, which comprises the following steps:
step S1, decomposing a scoring matrix of 'user-advertisement' into a scoring matrix of 'user-click-through-advertisement' and a scoring matrix of 'click-through-advertisement' based on a matrix factorization method:
Figure BDA0003035952720000091
wherein U represents a user, a represents an advertisement, U represents a matrix of the user, a represents a matrix of the advertisement, r represents a click amount of the advertisement by the user, n and m represent factorization of the matrix, n x n represents a matrix of n rows and n columns, n x m represents a matrix of n rows and m columns, and m x n represents a matrix of n rows and m columns;
s2, obtaining optimal interest parameters of the user for the advertisement according to the click quantity and the decomposition result;
Figure BDA0003035952720000092
wherein obj (x, y) represents the optimal interest parameter of the user in the advertisement; the x is u,r Representing an invisible interest relationship for measuring the click rate r of a user u and an advertisement, wherein y is as follows r,a Representing an explicit connection relationship between measuring advertisement click rate r and advertisement, said connection relationship
Figure BDA0003035952720000101
Representing the actual interest score of the user in the advertisement, said +.>
Figure BDA0003035952720000102
Represents the click-through amount of the advertisement and the actual connection amount of the advertisement, wherein epsilon represents the regularization parameter, and x * An accompanying matrix representing the invisible interest relationship of user u and advertisement click rate r, said y * An accompanying matrix of explicit connection relations between advertisement click quantity r and advertisements, wherein N represents the maximum factorial number obtained by N of a scoring matrix of N multiplied by N 'user-advertisement';
and step S3, evaluating the optimal interest parameters, determining an evaluation result, and carrying out corresponding operation according to the evaluation result.
The beneficial effects of the technical scheme are as follows: and evaluating the interest degree of the user on the advertisement, thereby optimizing the advertisement popularization.
The invention also provides a method for counting the click rate of advertisements on the APP, which comprises the following steps:
step S301 evaluates the optimal interest parameters and determines the evaluation result
Figure BDA0003035952720000103
Wherein M represents the evaluation result, delta x,y Representing the click probability of the user on the advertisement under the optimal interest parameter of the advertisement; η represents a preset click probability threshold;
step S302, when the M evaluation result is 1, transmitting the optimal interest parameter to a preset prediction model, and recommending a corresponding advertisement to a user terminal;
and step S303, when the M evaluation result is 0, placing and sequencing the advertisements corresponding to the optimal interest parameters.
The beneficial effects of the technical scheme are as follows: and (3) optimizing and calculating the interest degree of the advertisement, and better counting the click rate of the advertisement on the APP.
The invention also provides a device for counting the click rate of advertisements on the APP, as shown in figure 2, comprising:
the first acquisition module 6 is used for acquiring an advertisement request data packet sent by the APP client to the advertisement server 1 when the advertisement click event occurs and recording the advertisement request data packet as an advertisement request;
the second obtaining module 7 is used for obtaining a real-time positioning and advertisement area dividing request sent by the APP client to the advertisement server 1 when the advertisement clicking event occurs;
the advertisement area dividing module 11 is used for obtaining a dividing area after the advertisement server 1 performs regional division on the advertisement and the advertisement in the dividing area;
the processor 4 is configured to obtain an advertisement request packet sent by the APP client to the advertisement server 1 when an advertisement click event occurs, record the advertisement request packet as an advertisement request, compare count values of the first sub-counter 31 and the second sub-counter 32 through the small-taking processing module 8, perform small-taking processing, and determine an advertisement click amount of the APP client according to a count value of the total counter 3 in a predetermined period of time;
a receiver 5, configured to receive an advertisement request response packet returned by the advertisement server 1;
a first sub-counter 31 for automatically incrementing 1 when the receiver 5 receives the advertisement request response packet;
the second sub-counter 32 is used for counting the click rate of the advertisement in the divided area twice when the APP client side is used for automatically adding 1 to the second sub-counter 32 in the divided area by the advertisement server 1;
a total counter 3, which uses a summation function to sum the count values as the advertisement click rate of the APP client;
and a memory 2 for storing the count value recorded by the total counter 3.
The working principle of the technical scheme is as follows: acquiring advertisement click event occurrence, wherein an APP client transmits an advertisement request data packet to a first acquisition module 6 in an advertisement server 1 and records the advertisement request data packet as an advertisement request, simultaneously acquiring advertisement click event occurrence, transmitting real-time positioning to the advertisement server 1 by the APP client, acquiring real-time positioning of the APP client by a second acquisition module 7 in the advertisement server 1, dividing advertisements into a plurality of parts of a region 1, a region 2, a region 3, a region … … and a region n by a region dividing module 11 in the advertisement server 1, wherein advertisements in each region are identical, determining a corresponding region where the APP client is positioned by the real-time positioning transmitted by the advertisement server 1 to the APP client, extracting advertisements in the region corresponding to the advertisement server 1, and when receiving the advertisement request response data packet returned in the region corresponding to the advertisement server 1, the corresponding counter I31 in the corresponding area of the area 1, the area 2, the area 3 and the area … … and the area n in the advertisement server 1 is automatically added with 1, when the APP client exits the advertisement interface, the advertisement server 1 ejects a yes/no exit advertisement to the APP client advertisement interface, clicks the yes exit advertisement on the APP client advertisement interface, at the moment, the corresponding counter II 32 in the area 1, the area 2, the area 3, the area … … and the area n in the advertisement server 1 is automatically added with 1, the counter I31 is compared with the counter II 32, when the counter I31 and the counter II 32 record the same count value, namely, the counter I31 or the counter II 32 count value is taken as the advertisement click quantity, when the counter I31 and the counter II 32 record the different count value, the smaller value of the counter I31 and the counter II 32 count value is taken as the advertisement click quantity, the corresponding first and second sub-counters 31, 32 in the areas 1, 2, 3, … … and n in the advertisement server 1 transmit the compared count value to the total counter 3, the total counter 3 sums the count value by using a summation function, finally the advertisement click quantity of the APP client is determined according to the count value of the total counter 3 in a preset time period, the click quantity is stored in the memory 2, and the first, second and third sub-counters 31, 32 and 3 are automatically cleared.
The beneficial effects of the technical scheme are as follows: the advertisement is regionally managed, the advertisement server is utilized to treat the advertisement in regions, so that the smoothness of the advertisement server is rapidly improved, the phenomenon of machine blocking can not occur in the using process, the efficiency of the advertisement server on advertisement treatment is greatly improved, disorder of an internal system of the advertisement server is avoided, unified management on an advertisement line is also facilitated, the comparison between a count value of a first pair of entering advertisement records and a record count value of a second pair of exiting advertisements of the second pair of dividing counters is utilized, error records can be effectively prevented, the accuracy of the count value records is ensured, and further, the advertisement server can be completely ensured to accurately, rapidly and reliably acquire the effective click quantity of a user.
In one embodiment, based on sending an advertisement request data packet to an advertisement server by an APP client when an advertisement click event occurs, the specific manner of obtaining the advertisement request data packet is as follows:
using a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function to call a DLL file to acquire an advertisement request data packet sent by the APP client to the advertisement server when the advertisement click event occurs;
adding at least one of the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server into the advertisement request data packet;
the working principle of the technical scheme is as follows: the method comprises the steps that a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function are used for calling DLL files to obtain advertisement request data packets sent to an advertisement server by an APP client when an advertisement click event occurs, the LoadLibrary function is used for loading a dynamic connection library or an EXE running file, the GetProcAddress function is used for obtaining an address of the dynamic connection library, and the FreeLibrary function is used for releasing the dynamic connection library; acquiring advertisements by using the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server 1;
the beneficial effects of the technical scheme are as follows: the advertisement request data packet sent by the APP client to the advertisement server 1 when the advertisement click event occurs can be accurately and easily obtained by using the LoadLibrary function, the GetPorcAddress function and the FreeLibrary function; can be used for accurately acquiring advertisements.
In one embodiment, the initial values of the first sub-counter 31, the second sub-counter 32 and the total counter 3 are set to zero, and the click rate is automatically cleared after the first sub-counter 31, the second sub-counter 32 and the total counter 3 complete one-time recording.
The beneficial effects of the technical scheme are as follows: an accurate count of the amount of clicks in the next time period in the vicinity is ensured.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (6)

1. The method for counting the advertisement click rate on the APP is characterized by comprising the following steps:
s1: when an advertisement clicking event occurs, an APP client transmits an advertisement request data packet to an advertisement server (1) and records the advertisement request data packet as an advertisement request;
s2: acquiring a real-time positioning and advertisement area dividing request sent by the APP client to an advertisement server (1) when an advertisement clicking event occurs;
s3: the advertisement server (1) receives an advertisement area division request of the APP client and divides advertisements into N advertisement areas, wherein the N advertisement areas correspond to each geographic area, and each geographic area can be positioned and transmitted by the APP client;
s4: the APP client sends the advertisement request data packet to the advertisement server (1), the advertisement server (1) determines an advertisement area corresponding to the APP client based on real-time positioning sent by the APP client, and advertisements are extracted in the advertisement area corresponding to the advertisement server (1);
s5: when receiving an advertisement request response data packet returned in an advertisement area corresponding to the advertisement server (1), automatically adding 1 to a first sub-counter (31) corresponding to the advertisement area in the advertisement server (1);
s6: when the APP client exits the advertisement interface, the advertisement server (1) pops up an advertisement exit page request to the advertisement interface of the APP client, a user selects to exit the advertisement page, and a second sub-counter (32) corresponding to the advertisement area in the advertisement server (1) is automatically added with 1;
s7: comparing the count value recorded by the first sub-counter (31) with the count value recorded by the second sub-counter (32); when the count value recorded by the first sub-counter (31) and the second sub-counter (32) is the same, taking the count value of the first sub-counter (31) or the second sub-counter (32) as the advertisement click quantity; when the count values recorded by the first sub-counter (31) and the second sub-counter (32) are different, taking the smaller value of the count values of the first sub-counter (31) and the second sub-counter (32) as the advertisement click quantity;
s8: the compared smaller count value is sent to a total counter (3), the total counter (3) uses a summation function to sum the count value, the sum is recorded as a total count value and is stored in an EXCEL table, and the advertisement click rate of the APP client is determined according to the total count value;
wherein the method further comprises the steps of:
step S1: based on a matrix factorization method, the scoring matrix of the user-advertisement is decomposed into a scoring matrix of the user-click-through-advertisement and a scoring matrix of the click-through-advertisement:
Figure FDA0004212715610000021
wherein U represents a user, a represents an advertisement, U represents a matrix of the user, A represents a matrix of the advertisement, r represents click quantity of the user on the advertisement, n and m represent factorization of the matrix, n×n represents a matrix of n rows and n columns, n×m represents a matrix of n rows and m columns, and m×n represents a matrix of n rows and m columns;
step S2: according to the click quantity and the decomposition result, obtaining the optimal interest parameter of the user to the advertisement;
Figure FDA0004212715610000022
wherein obj (x, y) represents the optimal interest parameter of the user in the advertisement; x is x u,r Representing the invisible interest relation between the measured user u and the advertisement click rate r, y r,a Representative measures the explicit connection between the advertisement click rate r and the advertisement,
Figure FDA0004212715610000023
score representing the actual interest of the user in the advertisement, +.>
Figure FDA0004212715610000024
Representing the click-through amount of the advertisement and the actual connection amount of the advertisement, epsilon represents regularization parameter and x * An accompanying matrix, y, representing the invisible interest relationship between user u and advertisement click rate r * An accompanying matrix of explicit connection relations between advertisement click quantity r and advertisements, wherein N represents the maximum factorial number obtained by N of a scoring matrix of N multiplied by N 'user-advertisement';
step S3: and evaluating the optimal interest parameters, determining an evaluation result, and performing corresponding operation according to the evaluation result.
2. The method for counting advertisement click rate on APP according to claim 1, wherein based on sending an advertisement request packet to an advertisement server (1) by APP client when an advertisement click event occurs, the specific way of obtaining the advertisement request packet is as follows:
using a LoadLibrary function, a GetPorcAddress function and a FreeLibrary function to call a DLL file to acquire an advertisement request data packet sent by the APP client to the advertisement server (1) when the advertisement click event occurs;
and adding at least one of the MAC number of the terminal equipment of the APP client, the IP address of the terminal equipment of the APP client and the IP address of the advertisement server (1) into the advertisement request data packet.
3. The method for counting the click rate of advertisements on an APP according to claim 2, wherein the LoadLibrary function is used for loading a dynamic connection library or an EXE running file; the GetProcAddress function is used for acquiring the address of the dynamic connection library; the FreeLibrary function is used to release the dynamic connection library.
4. The method for counting the advertisement click rate on the APP according to claim 1, wherein initial values of the first sub-counter (31), the second sub-counter (32) and the total counter (3) are set to be zero, and the first sub-counter (31), the second sub-counter (32) and the total counter (3) automatically clear after one-time recording of the click rate is completed.
5. A method for counting the number of clicks on an advertisement on an APP according to claim 1, said step S3 comprising the steps of:
step S301, evaluating the optimal interest parameters and determining the evaluation result
Figure FDA0004212715610000031
Wherein M represents the evaluation result, Δ x,y Representing the click probability of the user on the advertisement under the optimal interest parameter of the advertisement; η represents a preset click probability threshold;
step S302: when the M evaluation result is 1, transmitting the optimal interest parameter to a preset prediction model, and recommending a corresponding advertisement to the user terminal;
step S303: and when the M evaluation result is 0, placing and sequencing the advertisements corresponding to the optimal interest parameters.
6. A device for counting the number of clicks of an advertisement on an APP, a method for counting the number of clicks of an advertisement on an APP as set forth in any one of claims 1 to 4, comprising:
the first acquisition module (6) is used for acquiring an advertisement request data packet sent by the APP client to the advertisement server (1) when the advertisement click event occurs and recording the advertisement request data packet as an advertisement request;
the second acquisition module (7) is used for acquiring a real-time positioning and advertisement area dividing request sent by the APP client to the advertisement server (1) when an advertisement click event occurs;
the advertisement area dividing module (11) is used for obtaining the divided areas after the advertisement server (1) performs regional division on the advertisements and the advertisements in the divided areas;
the processor (4) is used for acquiring an advertisement request data packet sent by the APP client to the advertisement server (1) when an advertisement click event occurs and recording the advertisement request data packet as an advertisement request, comparing the count values of the first sub-counter (31) and the second sub-counter (32) through the small processing module (8) and carrying out small processing, and determining the advertisement click quantity of the APP client according to the count value of the total counter (3) in a preset time period;
a receiver (5) for receiving an advertisement request response data packet returned from the advertisement server (1);
a first sub-counter (31) for automatically incrementing 1 when the receiver (5) receives the advertisement request response packet;
the second sub-counter (32) is used for counting the click quantity of the advertisement in the divided area for the second time when the APP client side carries out the second time, and the advertisement server (1) automatically adds 1 to the second sub-counter (32) in the divided area;
a total counter (3) for summing the count values using a summing function as the advertisement click rate of the APP client;
and the memory (2) is used for storing the count value recorded by the total counter (3).
CN202110443322.3A 2021-04-23 Method and device for counting advertisement click rate on APP Active CN113191800B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110443322.3A CN113191800B (en) 2021-04-23 Method and device for counting advertisement click rate on APP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110443322.3A CN113191800B (en) 2021-04-23 Method and device for counting advertisement click rate on APP

Publications (2)

Publication Number Publication Date
CN113191800A CN113191800A (en) 2021-07-30
CN113191800B true CN113191800B (en) 2023-06-30

Family

ID=

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010083733A1 (en) * 2009-01-22 2010-07-29 腾讯科技(深圳)有限公司 Method and device for implementing statistic of advertisements delivered to mobile terminal
CN103781022A (en) * 2014-02-12 2014-05-07 重庆先迈通信技术有限公司 Advertisement push business system and processing method based on geographic position
KR20150110857A (en) * 2014-03-20 2015-10-05 주식회사 한국인터넷기술원 An advertisement displaying method and a video server
CN110866651A (en) * 2019-11-20 2020-03-06 深圳市豪斯莱科技有限公司 Advertisement click rate prediction method
JP2021033491A (en) * 2019-08-21 2021-03-01 雅人 池田 Advertisement device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010083733A1 (en) * 2009-01-22 2010-07-29 腾讯科技(深圳)有限公司 Method and device for implementing statistic of advertisements delivered to mobile terminal
CN103781022A (en) * 2014-02-12 2014-05-07 重庆先迈通信技术有限公司 Advertisement push business system and processing method based on geographic position
KR20150110857A (en) * 2014-03-20 2015-10-05 주식회사 한국인터넷기술원 An advertisement displaying method and a video server
JP2021033491A (en) * 2019-08-21 2021-03-01 雅人 池田 Advertisement device
CN110866651A (en) * 2019-11-20 2020-03-06 深圳市豪斯莱科技有限公司 Advertisement click rate prediction method

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
一种无位置偏见的广告协同推荐算法;霍晓骏;计算机工程;第40卷(第12期);全文 *
基于联合概率矩阵分解的上下文广告推荐算法;涂丹丹;舒承椿;余海燕;;软件学报;第24卷(第03期);全文 *

Similar Documents

Publication Publication Date Title
US10929879B2 (en) Method and apparatus for identification of fraudulent click activity
CN108009844B (en) Method and device for determining advertisement cheating behaviors and cloud server
CN109426980B (en) Method, device, server and storage medium for determining advertisement bidding
US11373205B2 (en) Identifying and punishing cheating terminals that generate inflated hit rates
EP2689371B1 (en) Fast device classification
CN107330718B (en) Media anti-cheating method and device, storage medium and terminal
US20080154678A1 (en) Internet based search engine advertising exchange
CN111435507A (en) Advertisement anti-cheating method and device, electronic equipment and readable storage medium
CN111738770B (en) Advertisement abnormal flow detection method and device
CN108154379B (en) Media information publishing method and device
CA2699937A1 (en) Computer-implemented method and system for increasing the rate of enrolment in a contest
CN105631708B (en) Information processing method and device
CN109495378A (en) Detect method, apparatus, server and the storage medium of abnormal account number
CN111222922B (en) Advertisement putting method and device, advertisement putting server and storage medium
CN111814062A (en) Information pushing method and device, server and storage medium
CN113191800B (en) Method and device for counting advertisement click rate on APP
CN109146574A (en) Ad click cheating monitoring method and device
CN106354725A (en) Event anti-refreshing method and device, server and system thereof
CN111563765A (en) Cheating user screening method, device and equipment and readable storage medium
CN112667706A (en) Method and device for identifying stolen account
CN113923048B (en) Network attack behavior identification method, device, equipment and storage medium
US10068249B1 (en) Inventory forecasting for bidded ad exchange
CN113191800A (en) Method and device for counting click rate of advertisements on APP
CN112016959A (en) Advertisement processing method and server
CN111405507B (en) Flow distribution method, device, system, terminal, server and medium

Legal Events

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