Resource release adjustment method and related device
By comparing the consumption data and budget data of resource cards and resource providers and adjusting the amount of resource materials, the problem of resource deployment exceeding the budget in the existing technology is solved, and precise control of resource deployment and cost matching is achieved.
Patent Information
- Application Number
- CN202310552936.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-16
- Publication Date
- 2024-11-22
AI Technical Summary
It is difficult for existing resource delivery platforms to achieve precise control of volume, resulting in the cost of resource delivery exceeding the budget and causing resource delivery losses.
By obtaining the consumption data and budget data of resource cards and resource providers, compare the adjustment results to decide whether to adjust the amount of resource materials to ensure that the delivery cost matches the budget.
It realizes precise control of resource allocation and avoids resource losses from resource allocation platforms.
Smart Images

Figure CN119006053A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of Internet technology, and in particular to a resource delivery adjustment method and related devices. Background Art
[0002] In the field of resource delivery, taking advertising as an example, the advertising delivery platform needs to control the delivery of the advertiser's advertising materials based on the advertising delivery budget configured by the advertiser, so as to try to ensure that the delivery cost of the advertising materials matches the advertising delivery budget configured by the advertiser.
[0003] However, many resource delivery platforms are currently unable to achieve precise control over resource delivery, that is, it is difficult to ensure that the delivery cost of resource materials matches the resource delivery budget configured by the resource provider. In many cases, the delivery cost of resource materials by the resource delivery platform will exceed the resource delivery budget configured by the resource provider, which will cause the resource delivery platform to incur resource losses. Summary of the invention
[0004] The embodiments of the present application provide a resource delivery adjustment method and related devices, which can achieve accurate control of resource delivery, thereby avoiding resource delivery loss on the resource delivery platform.
[0005] The first aspect of the present application provides a resource delivery adjustment method, the method comprising:
[0006] For the recalled target resource material, determining a resource card and a resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object;
[0007] Acquire the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider, and acquire the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider; wherein the first consumption data is determined according to the billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined according to the billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider;
[0008] Determining an adjustment result of the target resource material according to a relationship between the first consumption data and the first budget data, and a relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether it is necessary to adjust the delivery amount of the target resource material;
[0009] The delivery of the target resource material is controlled according to the adjustment result corresponding to the target resource material.
[0010] A second aspect of the present application provides a resource delivery adjustment device, the device comprising:
[0011] A determination module, for determining, for the recalled target resource material, a resource card and a resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to recommend the same object or the same type of object;
[0012] An acquisition module is used to acquire first consumption data corresponding to the resource card and second consumption data corresponding to the resource provider, and acquire first budget data corresponding to the resource card and second budget data corresponding to the resource provider; wherein the first consumption data is determined based on a billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined based on a billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider;
[0013] a processing module, configured to determine an adjustment result of the target resource material according to a relationship between the first consumption data and the first budget data, and a relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether the delivery amount of the target resource material needs to be adjusted;
[0014] The adjustment module is used to adjust the delivery of the target resource material according to the adjustment result corresponding to the target resource material.
[0015] A third aspect of the present application provides a resource placement adjustment system, the system comprising a resource card issuing service, a data computing service and a resource return service;
[0016] The resource card issuing service is used to provide the recalled target resource material to the data computing service;
[0017] The data computing service is used to execute the steps of the method described in the first aspect above, determine an adjustment result for the target resource material, and transmit the adjustment result to the resource delivery application through the resource card issuance service, so that the resource delivery application determines whether to deliver the target resource material according to the adjustment result;
[0018] The resource reflux service is used to obtain object events generated based on resource materials delivered by the resource delivery application, and generate resource reflux events based on the object events and transmit them to the data computing service, so that the data computing service updates its stored consumption data based on the resource reflux events.
[0019] A fourth aspect of the present application provides a computer device, the device comprising a processor and a memory:
[0020] The memory is used to store computer programs;
[0021] The processor is used to execute the steps of the method described in the first aspect according to the computer program.
[0022] In a fifth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and the computer program is used to execute the steps of the method described in the first aspect above.
[0023] In a sixth aspect, the present application provides a computer program product or a computer program, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the steps of the method described in the first aspect above.
[0024] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:
[0025] The embodiment of the present application provides a resource delivery adjustment method, which adjusts the resource delivery by comparing consumption data and budget data, and considers whether a certain resource material needs to be adjusted from two dimensions: resource card and resource provider. Specifically, for a certain resource material, it is necessary to obtain the first consumption data of the corresponding resource card, that is, the currently consumed delivery cost, and the first budget data of the resource card, that is, the corresponding delivery budget; it is also necessary to obtain the second consumption data of the resource provider to which it belongs, that is, the currently consumed delivery cost, and the second budget data of the resource provider, that is, the corresponding delivery budget; then, by comparing the first consumption data and the first budget data, and comparing the second consumption data and the second budget data, it is decided whether to adjust the resource material. Thereby, accurate adjustment of the delivery of resource materials can be achieved, avoiding the loss of delivery resources incurred by the resource delivery platform. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 A schematic diagram of a resource placement adjustment system provided in an embodiment of the present application;
[0027] Figure 2 A flowchart of a resource allocation adjustment method provided in an embodiment of the present application;
[0028] Figure 3 A schematic diagram of a billing mode setting interface provided in an embodiment of the present application;
[0029] Figure 4 A schematic diagram of a budget data setting interface provided in an embodiment of the present application;
[0030] Figure 5 A schematic diagram of a process for adjusting resource materials provided in an embodiment of the present application;
[0031] Figure 6 A schematic diagram of a process for storing consumption data provided in an embodiment of the present application;
[0032] Figure 7 A schematic diagram of a process of updating and reading data provided in an embodiment of the present application;
[0033] Figure 8 A schematic diagram of a data storage format provided in an embodiment of the present application;
[0034] Fig. 9 A schematic diagram of the structure of a resource placement adjustment device provided in an embodiment of the present application;
[0035] Fig.10 is a schematic diagram of the structure of a terminal device provided in an embodiment of the present application;
[0036] Fig.11 A schematic diagram of the structure of a server provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0038] The terms "first" and "second" in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0039] In the related technologies, many resource delivery platforms are unable to achieve precise control over the delivery of resources. Taking the advertising delivery platform as an example, it is difficult to ensure that the delivery cost of advertising materials matches the advertising delivery budget configured by the advertiser. In many cases, the delivery cost of advertising materials by the advertising delivery platform will exceed the advertising delivery budget configured by the advertiser, which will cause the advertising delivery platform to incur delivery resource losses.
[0040] In order to solve the above problems, an embodiment of the present application provides a resource delivery adjustment method, in which, for the recalled target resource material, the resource card and resource provider corresponding to the target resource material are determined; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to recommend the same object or the same type of object; the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider are obtained, and the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider are obtained; wherein the first consumption data is determined based on the billing event generated when each resource material corresponding to the resource card is delivered, and is used to characterize the delivery cost currently consumed by each resource material corresponding to the resource card; the second consumption data is determined based on the billing event generated when each resource material of the resource provider is delivered, and is used to characterize the delivery cost currently consumed by each resource material of the resource provider; the adjustment result of the target resource material is determined based on the relationship between the first consumption data and the first budget data, and the relationship between the second consumption data and the second budget data; the adjustment result is used to characterize whether it is necessary to adjust the delivery amount of the target resource material; according to the adjustment result corresponding to the target resource material, the delivery of the target resource material is adjusted.
[0041] In the above-mentioned resource delivery adjustment method, resource delivery is adjusted by comparing consumption data and budget data, and starting from the two dimensions of resource card and resource provider, consider whether a certain resource material needs to be adjusted. Specifically, for a certain resource material, it is necessary to obtain the first consumption data of the corresponding resource card, that is, the currently consumed delivery cost, and the first budget data of the resource card, that is, the corresponding delivery budget; it is also necessary to obtain the second consumption data of the resource provider to which it belongs, that is, the currently consumed delivery cost, and the second budget data of the resource provider, that is, the corresponding delivery budget; then, by comparing the first consumption data and the first budget data, and comparing the second consumption data and the second budget data, it is decided whether to control the quantity of the resource material. In this way, accurate control of the delivery of resource materials can be achieved, avoiding the loss of delivery resources incurred by the resource delivery platform.
[0042] The resource placement adjustment method provided in the embodiment of the present application can be executed by a computer device with data processing capabilities, and the computer device can be a terminal device or a server. Among them, the terminal device includes but is not limited to a mobile phone, a computer, an intelligent voice interaction device, a smart home appliance, a vehicle terminal, an aircraft, etc. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server.
[0043] In order to facilitate understanding of the resource placement adjustment method provided in the embodiment of the present application, the resource placement adjustment system is first exemplarily introduced below.
[0044] See also Figure 1 , Figure 1 Schematic diagram of the resource delivery adjustment system provided in the embodiment of the present application. Figure 1 As shown, the resource placement adjustment system includes a resource card issuing service 101, a data computing service 102 and a resource return service 103.
[0045] The resource delivery adjustment system adjusts the delivery amount of resources exposed by the resource delivery application 104 by interacting with the resource delivery application 104. The resource delivery application 104 can be an APP with the ability to expose resources, for example, it can be a video account APP. The resource delivery application 104 requests resources from the resource card issuing service 101.
[0046] The process of interaction between the resource delivery adjustment system and the resource delivery application 104 is as follows:
[0047] The resource card issuing service 101 receives the request sent by the resource delivery application 104 and performs the operation of recalling resources. Resource recall can be understood as the process of obtaining resources for the resource positions provided by the resource delivery application. It is necessary to adjust the resource material list corresponding to the recalled resources. Therefore, the resource card issuing service 101 sends a request to the data computing service 102 for resource control quantity judgment and provides the data computing service 102 with the recalled target resource material.
[0048] The resource card issuing service 101 can send a request to the data computing service 102 through the remote procedure call protocol (RPC) interface to inquire whether to make adjustments. The data computing service 102 determines whether the resource material requested by the resource card issuing service 101 is configured with quantity control calculation rules. Some resource materials may not be configured with quantity control calculation rules. Resource materials that are not configured with quantity control calculation rules do not need quantity control, and resource materials that are configured with quantity control calculation rules indicate that quantity control is required. Then the data computing service 102 returns the query result to the resource card issuing service 101, informing the resource card issuing service 101 which resource materials need to be controlled and which resource materials do not need to be controlled.
[0049] Then the resource card issuing service 101 sends the query result to the resource delivery application 104 .
[0050] The resource delivery application 104 exposes the resource material based on the query result. In addition, the resource delivery application 104 needs to report the events related to the exposed resource material and report the data back through the resource return service 103.
[0051] The resource reflux service 103 refluxes the data of the exposed resource material to the message queue of the data computing service 102. The data computing service 102 transmits the data in the message queue to the consumption calculation module, and the consumption calculation module calculates the consumption data. The consumption calculation module then transmits the calculated consumption data to the distributed storage module. The distributed storage module stores the consumption data in the cache space. When the resource card issuing service 101 sends a request for quantity control to the data computing service 102, the quantity control logic judgment module in the data computing service 102 obtains the consumption data in the distributed storage module, obtains the budget data in the configuration rule loading module and compares the consumption data with the budget data, and sends the obtained adjustment result to the resource delivery application 104 through the resource card issuing service 101, so as to control the quantity of the resource material when the consumption data is greater than or equal to the budget data.
[0052] The following methods can be used to obtain adjustment results for resource materials and make adjustments:
[0053] The data computing service 102 determines the resource card and resource provider corresponding to the target resource material for the recalled target resource material; wherein the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to recommend the same object or the same type of object. For example, a resource provider provides multiple resource materials, for example, the same resource provider provides 10 resource materials, of which 2 resource materials are used to recommend clothing, 3 resource materials are used to recommend watches, and 5 resource materials are used to recommend mobile phones. Then, the 2 resource materials used to recommend clothing can correspond to the same resource card, the 3 resource materials used to recommend watches can correspond to the same resource card, and the 5 resource materials used to recommend mobile phones can correspond to the same resource card. Among them, the 3 resource materials used to recommend watches can recommend the same watch or different styles of watches, that is, the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to recommend the same object or the same type of object.
[0054] It is understandable that one resource card can only correspond to one resource provider, while one resource provider can correspond to multiple resource cards.
[0055] The data computing service 102 can determine the resource card and resource provider corresponding to the resource material according to the identifier, and obtain the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider according to the determined resource card and resource provider, and obtain the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider; wherein the first consumption data is determined according to the billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined according to the billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider.
[0056] Then, according to the relationship between the first consumption data and the first budget data, and the relationship between the second consumption data and the second budget data, the adjustment result of the resource material is determined; the adjustment result is used to indicate whether the delivery amount of the resource material needs to be controlled. Finally, according to the adjustment result corresponding to the resource material, the delivery of the resource material is controlled.
[0057] The following is a detailed introduction to the advertising delivery control method provided by the present application through a method embodiment.
[0058] See also Figure 2 , Figure 2 Schematic diagram of the process of adjusting the resource delivery provided in the embodiment of the present application. Figure 2As shown, the execution subject of the resource placement adjustment method is introduced as a data computing service, and the data computing service can be deployed in a computer device. The method includes the following steps:
[0059] Step 201: for the recalled target resource material, determine the resource card and resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object.
[0060] The target resource material can be understood as one of the multiple resource materials recalled; resource cards are divided based on the objects that the resource provider needs to display. A resource card can be associated with at least one resource material. At least one resource material associated with the same resource card can display the same object or the same type of object. A resource card corresponds to a resource provider and plays the role of associating some or all of the resource materials corresponding to a resource provider; a resource provider can be understood as a customer who invests resources.
[0061] Resources can be advertisements, videos, links, etc. For example, if the resource is an advertisement, the target resource material is the target ad material, the resource card is the ad card, and the resource provider is the advertiser. The target ad material is one of the multiple recalled ad materials; ad cards are divided based on the recommended objects that advertisers need to promote. An ad card can be associated with at least one ad material. At least one ad material associated with the same ad card can recommend the same object or the same type of object. An ad card corresponds to an advertiser and plays the role of associating some or all ad materials corresponding to an advertiser; an advertiser can be understood as a customer who places an ad.
[0062] In the embodiment of the present application, before the data computing service 102 receives the recalled target resource material, the resource delivery application 104 will request resources from the resource card issuing service 101. The resource delivery application 104 can be an APP with the ability to expose resources, for example, it can be a video account type APP.
[0063] The resource card issuing service 101 receives the request sent by the resource delivery application 104 and performs the operation of recalling resources. Resource recall can be understood as the process of obtaining resources for the resource positions provided by the resource delivery application 104. It is necessary to control the quantity of the resource material list corresponding to the recalled resources. Therefore, the resource card issuing service 101 sends a request for resource quantity control judgment to the data computing service 102, and provides the recalled target resource material to the data computing service 102.
[0064] The data computing service 102 determines the resource card and resource provider corresponding to the target resource material for the recalled target resource material; wherein the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to recommend the same object or the same type of object. For example, a resource owner provides multiple resource materials, for example, the same resource provider provides 10 resource materials, of which 2 resource materials are used to recommend clothing, 3 resource materials are used to recommend watches, and 5 resource materials are used to recommend mobile phones. Then, the 2 resource materials used to recommend clothing can correspond to the same resource card, the 3 resource materials used to recommend watches can correspond to the same resource card, and the 5 resource materials used to recommend mobile phones can correspond to the same resource card. Among them, the 3 resource materials used to recommend watches can recommend the same watch or different styles of watches, that is, the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to recommend the same object or the same type of object.
[0065] It is understandable that the data computing service 102 can determine the resource card and resource provider corresponding to the target resource material according to the identifier of the target resource material. For example, each resource material will be configured with its own material id, different resource cards will also have their own resource card ids, and different resource providers will also have their own resource provider ids. When the resource provider releases the resource material, a corresponding relationship between the material id of the resource material and the resource card id, and a corresponding relationship between the material id of the resource material and the resource provider id can be established. In this way, after obtaining the target resource material, the corresponding resource card and resource provider can be determined according to the id of the target resource material. It should be understood that in actual applications, other methods can also be used to determine the resource card and resource provider corresponding to the target resource material, which is not limited to the implementation method shown in the embodiment of the present application.
[0066] Step 202: Obtain first consumption data corresponding to the resource card and second consumption data corresponding to the resource provider, and obtain first budget data corresponding to the resource card and second budget data corresponding to the resource provider; wherein, the first consumption data is determined based on a billing event generated when each resource material corresponding to the resource card is delivered, and is used to characterize the currently consumed delivery cost of each resource material corresponding to the resource card; the second consumption data is determined based on a billing event generated when each resource material of the resource provider is delivered, and is used to characterize the currently consumed delivery cost of each resource material of the resource provider.
[0067] It can be understood that the first consumption data is determined based on the billing events generated when each resource material corresponding to the resource card is released. The billing events can be clicks, exposures, conversions and other events. For example, the conversion event is a collection event. If a resource card corresponds to 3 resource materials, the billing event generated when the first resource material is released is a click, and the total cost generated is K1; the billing event generated when the second resource material is released is an exposure, and the total cost generated is K2; the billing event generated when the third resource material is released is a collection, and the total cost generated is K3; at this time, the first consumption data corresponding to the resource card is K1+K2+K3, and the first consumption data is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card.
[0068] It can be understood that the second consumption data is determined based on the billing events generated when each resource material of the resource provider is released. The billing events can also be clicks, exposures, conversions and other events. The conversion event is also taken as an example of a collection event. If a resource provider corresponds to 4 resource materials, the billing event generated when the first resource material is released is a click, and the total cost generated is K4; the billing event generated when the second resource material is released is an exposure, and the total cost generated is K5; the billing event generated when the third resource material is released is collection, and the total cost generated is K6; the billing event generated when the fourth resource material is released is also collection, and the total cost generated is K7; at this time, the second consumption data corresponding to the resource provider is K4+K5+K6+K7, and the second consumption data is used to characterize the current consumption of the release cost of each resource material corresponding to the resource provider.
[0069] It can be understood that the first budget data is the total budget data corresponding to the consumption of each resource material under a certain resource card, which can be recorded as D1, and the first overall consumption data should not exceed the first budget data. The second budget data is the total budget data corresponding to the consumption of each resource material under a certain resource provider, which can be recorded as D2, and the second overall consumption data should not exceed the second budget data.
[0070] Step 203: Determine the adjustment result of the target resource material according to the relationship between the first consumption data and the first budget data, and the relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether the delivery amount of the target resource material needs to be adjusted.
[0071] In an embodiment of the present application, the adjustment result of the target resource material can be determined based on the relationship between the first consumption data and the first budget data determined by the billing event generated when each resource material of the resource card is released, and the relationship between the second consumption data and the second budget data determined by the billing event generated when each resource material of the resource provider is released. The adjustment result is used to indicate whether it is necessary to control the release amount of the target resource material.
[0072] The adjustment result of the target resource material is determined based on the relationship between the first consumption data and the first budget data determined by the billing event generated when each resource material of the resource card is released, and the relationship between the second consumption data and the second budget data determined by the billing event generated when each resource material of the resource provider is released. It can be understood as comparing the first budget data D1 with the first consumption data K1+K2+K3; and comparing the second budget data D2 with the second consumption data K4+K5+K6+K7; when the first consumption data K1+K2+K3 exceeds the first budget data D1, or when the second consumption data K4+K5+K6+K7 exceeds the second budget data D2, the obtained adjustment result indicates that the release amount of the target resource material needs to be adjusted; otherwise, the obtained adjustment result indicates that the release amount of the target resource material does not need to be adjusted.
[0073] Step 204: Adjust the delivery of the target resource material according to the adjustment result corresponding to the target resource material.
[0074] When the adjustment result corresponding to the target resource material indicates that the delivery amount of the target resource material needs to be adjusted, the delivery of the target resource material is stopped; when the adjustment result corresponding to the target resource material indicates that the delivery amount of the target resource material does not need to be adjusted, the delivery of the target resource material continues.
[0075] In the embodiment of the present application, the resource delivery is controlled by comparing the consumption data and the budget data, and starting from the two dimensions of the resource card and the resource provider, it is considered whether the quantity needs to be controlled for a certain resource material. Specifically, for a certain resource material, it is necessary to obtain the first consumption data of the corresponding resource card, that is, the currently consumed delivery cost, and the first budget data of the resource card, that is, the corresponding delivery budget; it is also necessary to obtain the second consumption data of the resource provider to which it belongs, that is, the currently consumed delivery cost, and the second budget data of the resource provider, that is, the corresponding delivery budget; then, by comparing the first consumption data and the first budget data, and comparing the second consumption data and the second budget data, it is decided whether to control the quantity of the resource material. In this way, it is possible to achieve precise control of the delivery of resource materials and avoid the loss of delivery resources incurred by the resource delivery platform.
[0076] Taking into account the need to enable the allocation of resources to continue for a longer period of time rather than reaching the expected total amount in a short period of time, the allocation of resources can be controlled by setting periodic budget data and overall budget data.
[0077] Specifically, the first consumption data includes first-cycle consumption data and first overall consumption data. Among them, the first-cycle consumption data is determined based on the consumption events generated when each resource material corresponding to the resource card is released during the current statistical period. The period here can be set according to actual conditions. For example, the period can be set to one day (such as 00:00-23:59). When the period is one day, the first-cycle consumption data can be understood as being determined during the period from 00:00 to the current time point (not exceeding 23:59), based on the consumption events generated when each resource material corresponding to the resource card is released during this period. If a resource card corresponds to 3 resource materials, the billing event when the first resource material is delivered is a click event, and the total cost of click events generated during 00:00-current time point is K11; the billing event generated when the second resource material is delivered is an exposure event, and the total cost of exposure events generated during 00:00-current time point is K22; the billing event generated when the third resource material is delivered is a collection event, and the total cost of collection events generated during 00:00-current time point is K33; at this time, the first-cycle consumption data corresponding to this resource card is K11+K22+K33.
[0078] The first overall consumption data is determined based on the consumption events generated by each resource material corresponding to the resource card since the first release. If a resource card corresponds to 3 resource materials, the billing event generated when the first resource material is released is a click event, and the total cost of the click events generated since the first release is K111; the billing event generated when the second resource material is released is an exposure event, and the total cost of the exposure events generated since the first release is K222; the billing event generated when the third resource material is released is a collection event, and the total cost of the collection events generated since the first release is K333; then the first overall consumption data of the resource card is K111+K222+K333.
[0079] Specifically, the second consumption data includes second-period consumption data and second overall consumption data, wherein the second-period consumption data is determined based on consumption events generated when each resource material of the resource provider is released during the current statistical period. The period here can be set according to actual conditions. For example, the period can be set to one day (such as 00:00-23:59). When the period is one day, the second-period consumption data can be understood as being determined during the period from 00:00 to the current time point (not exceeding 23:59), based on consumption events generated when each resource material of the resource provider is released during this period. Suppose a resource provider corresponds to 4 resource materials, the billing event generated when the first resource material is delivered is a click event, and the total cost generated during the period from 00:00 to the current time point is K44; the billing event generated when the second resource material is delivered is an exposure event, and the total cost generated during the period from 00:00 to the current time point is K55; the billing event generated when the third resource material is delivered is a collection event, and the total cost generated during the period from 00:00 to the current time point is K66; the billing event generated when the fourth resource material is delivered is also a collection event, and the total cost generated during the period from 00:00 to the current time point is K77; at this time, the second-cycle consumption data corresponding to the resource provider is K44+K55+K66+K77.
[0080] The second overall consumption data is determined based on the object events generated by each resource material of the resource provider since the first release. If a resource provider corresponds to 4 resource materials, the billing event generated when the first resource material is released is a click event, and the total cost generated since the first release is K444; the billing event generated when the second resource material is released is exposure, and the total cost generated since the first release is K555; the billing event generated when the third resource material is released is collection, and the total cost generated since the first release is K666; the billing event generated when the fourth resource material is released is also collection, and the total cost generated since the first release is K777; at this time, the second overall consumption data corresponding to the resource provider is K444+K555+K666+K777.
[0081] Specifically, the first budget data includes the first cycle budget data and the first overall budget data, and the second budget data includes the second cycle budget data and the second overall budget data. Among them, the first cycle budget data is the total delivery budget of each resource material of the resource card in a statistical period. For example, when the period is one day, the first cycle budget data can be understood as the total delivery budget of each resource material corresponding to the resource card in one day, and the total consumption data of each resource material corresponding to the resource card in one day should not exceed the cycle budget.
[0082] The second cycle budget data is the total delivery budget of each resource material of the resource provider in a statistical cycle. For example, when the cycle is one day, the second cycle budget data can be understood as the total delivery budget of each resource material corresponding to the resource provider in one day, and the total consumption data of each resource material corresponding to the resource provider in one day should not exceed the cycle budget.
[0083] The first overall budget data is the total delivery budget of each resource material of the resource card, and the total consumption data of each resource material corresponding to the resource card should not exceed the total budget. The second overall budget data is the total delivery budget of each resource material of the resource provider, and the total consumption data of each resource material corresponding to the resource provider should not exceed the total budget.
[0084] It should be understood that the first cycle budget data, the first overall budget data, the second cycle budget data, and the second overall budget data can be preset. The first cycle consumption data, the first overall consumption data, the second cycle consumption data, and the second overall consumption data can be calculated in real time according to the preset billing mode and the actual number of consumption events. The specific settings can be made in the budget data setting interface. The budget setting data interface is as shown in FIG. Figure 3 , Figure 4 shown.
[0085] See also Figure 3 , Figure 3 A schematic diagram of a billing mode setting interface provided for an embodiment of the present application. The operator can pre-set the billing mode of each resource material in this interface. For example, the billing mode of a resource material can be set to one or more of the billing modes such as per collection, per exposure, and per click. The bid can be understood as determining the unit delivery cost corresponding to the billing mode according to the billing mode; for example, if the billing mode is per collection, the unit delivery cost is 1 yuan; if the billing mode is per exposure, the unit delivery cost is 10 yuan for 1,000 exposures; if the billing mode is per click, the unit delivery cost is 1 yuan.
[0086] See also Figure 4 , Figure 4 A schematic diagram of a budget data setting interface provided in an embodiment of the present application. The operator can set the first cycle budget data and the first overall budget data on this interface. The operator can also set the second cycle budget data and the second overall budget data on this interface.
[0087] Operators can Figure 3 , Figure 4 The interface shown can adjust the billing mode and budget data at any time. For example, consumption data and budget data can be adjusted at any time, and the adjusted billing mode and budget data take effect in real time without the need for intervention from the development side, thereby improving the management efficiency of resource deployment.
[0088] Based on the fact that the first budget data includes the first cycle budget data and the first overall budget data, the second budget data includes the second cycle budget data and the second overall budget data; the first consumption data includes the first cycle consumption data and the first overall consumption data, and the second consumption data includes the second cycle consumption data and the second overall consumption data, the adjustment result of the target advertising material can be determined in the following manner:
[0089] If at least one adjustment condition in the adjustment condition set is met, the adjustment result is determined to be that the delivery amount of the target resource material needs to be controlled; otherwise, the adjustment result is determined to be that the delivery amount of the target resource material does not need to be controlled; wherein the adjustment condition set includes: the first period consumption data exceeds the first period budget data, the first overall consumption data exceeds the first overall budget data, the second period consumption data exceeds the second period budget data, and the second overall consumption data exceeds the second overall budget data.
[0090] Since the adjustment condition set includes the conditions for comparing the periodic consumption data of each resource material of the corresponding resource provider and resource card with the periodic budget data, as well as the conditions for comparing the overall consumption data of each resource material of the corresponding resource provider and resource card with the overall budget data, on the one hand, in the period dimension, it is possible to control the resources provided by the resource provider and each resource material of the resource card to be evenly delivered in each period, so that the resources can be delivered for a period of time instead of being concentrated in a short period of time, so as to achieve better resource delivery effects; on the other hand, it is also possible to control the resources provided by the resource provider and each resource material of the resource card in the overall delivery quantity dimension, and stop delivery in time when the delivery cost exceeds the budget, so as to avoid the delivery cost of the resource delivery platform exceeding the budget. In the embodiment of the present application, the adjustment result for the target resource material is determined according to the relationship between the first cycle consumption data and the first cycle budget data, the relationship between the first overall consumption data and the first overall budget data, the relationship between the second cycle consumption data and the second cycle budget data, and the relationship between the second overall consumption data and the second overall budget data. Not only can the delivery of the resource material be stopped when the total delivery of the target resource material exceeds the budget data, but the delivery of the resource material can also be stopped when the total delivery of the target resource material in one cycle exceeds the cycle budget data in each cycle. In this way, the delivery of resources can be continued for a long period of time, rather than reaching the expected total delivery in a very short time. In this way, the delivery of resource materials can be flexibly controlled, and the time of resource delivery can be extended to a certain extent. The above embodiment describes how to determine the adjustment result corresponding to the target resource material according to the corresponding relationship between the cycle consumption data and the cycle budget data, and control the delivery of the target resource material according to the adjustment result. The specific implementation method for calculating the overall consumption data and the cycle consumption data is introduced below.
[0091] First, the resource delivery application 104 will request resources from the resource card issuance service 101. The resource delivery application 104 can be an APP with the ability to expose resources, for example, it can be a video account type APP.
[0092] The resource card issuing service 101 receives the request sent by the resource delivery application 104 and executes the operation of recalling resources. Resource recall can be understood as the process of obtaining resources for the resource positions provided by the resource delivery application. The data computing service 102 needs to control the resource material list corresponding to the recalled resources. Therefore, the resource card issuing service 101 sends a request to the data computing service 102 for resource adjustment judgment and provides the recalled resource material to the data computing service 102.
[0093] The data calculation service 102 determines whether the recalled resource material needs to be adjusted, and returns the determination result of the recalled resource material to the resource card issuing service 101 , where the determination result is used to indicate whether the resource material needs to be adjusted or not.
[0094] The resource card issuing service 101 returns the determination result to the resource delivery application 104 .
[0095] After the resource delivery application 104 exposes the resource material, it will statistically report the data, and then reflow it through the resource reflow service 103.
[0096] The resource return service 103 returns the exposure data of the resource material to the message queue of the data computing service 102. The message queue of the data computing service 102 can be a distributed message queue, such as a kafka queue.
[0097] After analyzing and processing the resource return data, the data computing service 102 calculates and stores the resource consumption data.
[0098] Specifically, the data computing service 102 receives a resource reflow event of the resource material corresponding to the resource card; the resource reflow event is generated and reflowed when an object event based on the resource material is detected; then the event type of the object event represented by the resource reflow event is judged, and if the object event represented by the resource reflow event belongs to the target billing event type corresponding to the resource material, the first period statistic, the first overall statistic, the second period statistic and the second overall statistic corresponding to the target billing event type are updated.
[0099] The target billing event type is one of the preset billing event types. For example, the billing event types may be preset to include exposure events, click events, and collection events. If the object event represented by the resource return event is a click, then the event type of the object event represented by the resource return event is a click event.
[0100] Taking a one-day cycle as an example, the first-cycle statistic refers to the total number of consumption events generated when each resource material corresponding to the resource card is released in the current statistical cycle. For example, if a resource card corresponds to 3 resource materials, the billing event generated by the first resource material when it is released on that day is a click event, and the total number of click events generated from the start of the day to the current time point is N11; the billing event generated by the second resource material when it is released on that day is an exposure event, and the total number of exposure events generated from the start of the day to the current time point is N22; the billing event generated by the third resource material when it is released on that day is a collection event, and the total number of collection events generated from the start of the day to the current time point is N33; at this time, the first-cycle statistic corresponding to the resource card is N11+N22+N33.
[0101] The first overall statistic refers to the sum of the total number of consumption events generated by each resource material corresponding to the resource card since the first release. For example, if a resource card corresponds to 3 resource materials, the billing event generated when the first resource material is released is a click event, and the total number of click events generated since the first release is N111; the billing event generated when the second resource material is released is an exposure event, and the total number of exposure events generated since the first release is N222; the billing event generated when the third resource material is released is a collection event, and the total number of collection events generated since the first release is N333; at this time, the first overall statistic corresponding to the resource card is N111+N222+N333.
[0102] Taking the cycle of one day as an example, the second cycle statistics refer to the total amount of consumption events generated when each resource material corresponding to the resource provider is released in the current statistical cycle. If a resource provider corresponds to 4 resource materials, the billing event generated when the first resource material is released is a click event, and the total amount of click events generated from the start of the day to the current time point is N44; the billing event generated when the second resource material is released is an exposure event, and the total amount of exposure events generated from the start of the day to the current time point is N55; the billing event generated when the third resource material is released is a collection event, and the total amount of collection events generated from the start of the day to the current time point is N66; the billing event generated when the fourth resource material is released is also a collection event, and the total amount of collection events generated from the start of the day to the current time point is N77; at this time, the second cycle statistics corresponding to the resource provider are N44+N55+N66+N77.
[0103] The second overall statistic refers to the sum of the total number of consumption events generated by each resource material corresponding to the resource provider since the first release. If a resource provider corresponds to 4 resource materials, the billing event generated when the first resource material is released is a click event, and the total number of click events generated since the first release is N444; the billing event generated when the second resource material is released is exposure, and the total number of exposure events generated since the first release is N555; the billing event generated when the third resource material is released is collection, and the total number of collection events generated since the first release is N666; the billing event generated when the fourth resource material is released is also collection, and the total number of collection events generated since the first release is N777; at this time, the second overall statistic corresponding to the resource provider is N444+N555+N666+N777.
[0104] After obtaining the first cycle statistics, the first overall statistics, the second cycle statistics and the second overall statistics, the first cycle consumption data can be determined according to the first cycle statistics and the unit delivery cost corresponding to the target billing event type; the first overall consumption data can be determined according to the first overall statistics and the unit delivery cost; the second cycle consumption data can be determined according to the second cycle statistics and the unit delivery cost; the second overall consumption data can be determined according to the second overall statistics and the unit delivery cost.
[0105] It should be understood that since the first period statistics, the first overall statistics, the second period statistics and the second overall statistics are updated in real time according to the resource reflow events, the first period consumption data and the second period consumption data are determined according to the first period statistics, the first overall statistics, the second period statistics and the second overall statistics, that is, the first period consumption data and the second period consumption data are updated in real time. When comparing the consumption data with the budget data, the comparison is made based on the consumption data that can reflect the resource material delivery situation in real time, so that when the consumption data is greater than or equal to the budget data, the corresponding resource delivery is controlled in time, thereby avoiding the loss of delivered resources by the resource delivery platform.
[0106] Specifically, the unit delivery cost is the delivery cost of the unit quantity preset for different event types. For example, for exposure events, one thousand exposure events can be preset to 10 yuan, that is, the unit delivery cost of the exposure event is 0.01 yuan. For click events, one click event can be preset to 0.5 yuan, that is, the unit delivery cost of the click event is 0.5 yuan. For collection events, the unit delivery cost of one collection event can be preset to 1 yuan, that is, the unit delivery cost of the collection event is 1 yuan.
[0107] For example, for a click event, the consumption data of the click event = the product of the total number of click UVs and the unit delivery cost. UV is the abbreviation of Unique Visitor, that is, multiple click events for the same user are deduplicated and only recorded as one click event. For example, for an exposure event, the consumption data of the exposure event = the product of the unit (1000 times) delivery cost and the total number of exposures / 1000. It can be understood that the total number of exposures / 1000 is expressed in the form of one thousand exposures. For example, for a collection event, the consumption data of the collection event = the product of the total number of collections and the unit delivery cost.
[0108] After determining the unit cost, the first cycle consumption data K11+K22+K33=N11×0.5+N22 / 1000×10+N33×1; the first overall consumption data K111+K222+K333=N111×0.5+N222 / 1000×10+N333×1; the second cycle consumption data K44+K55+K66+K77=N44×0.5+N55 / 1000×10+N66×1+N77×1; the second overall consumption data K444+K555+K666+K777=N444×0.5+N555 / 1000×10+N666×1+N777×1. In this way, the calculation of consumption data is realized. The consumption data may be compared with the corresponding budget data to determine an adjustment result. When the adjustment result indicates that the advertisement needs to be adjusted, the delivery of the advertisement creative is adjusted according to the adjustment result corresponding to the advertisement creative.
[0109] The process of determining whether resource materials need to be adjusted is as follows Figure 5 As shown, see Figure 5 , Figure 5 A flow chart of adjusting resource materials provided in an embodiment of the present application. The resource card issuing service 101 can query the adjustment data for adjusting the resource materials in the data computing service 102 through the RPC interface. After receiving the query request from the resource card issuing service 101, the data computing service 102 reads the configured budget data; the configured budget data includes the first cycle budget data and the first overall budget data of each resource material under the corresponding resource card; and the second cycle budget data and the second overall budget data of each resource material under the corresponding resource provider.
[0110] After reading the data, first determine whether the resource material requested by the resource card issuance service 101 is configured with adjustment calculation rules. Some resource materials may not be configured with adjustment calculation rules. Resource materials that are not configured with adjustment calculation rules do not need to be adjusted. Resource materials that are not configured with adjustment calculation rules can be directly returned to the resource card issuance service 101.
[0111] If the adjustment calculation rule is configured, the consumption data can be read in the cache space, and the consumption data includes the first cycle consumption data and the first overall consumption data of each resource material under the corresponding resource card; and the second cycle consumption data and the second overall consumption data of each resource material under the corresponding resource provider. Then, it is judged whether the first cycle consumption data of the resource card exceeds the first cycle budget data, and whether the first overall consumption data of the resource card exceeds the first overall budget data; and whether the second cycle consumption data of the resource provider exceeds the second cycle budget data, and whether the second overall consumption data of the resource provider exceeds the second overall budget data. If the first cycle consumption data of the resource card exceeds the first cycle budget data, or the first overall consumption data of the resource card exceeds the first overall budget data, the resource card is filtered; if the second cycle consumption data of the resource provider exceeds the second cycle budget data, or the second overall consumption data of the resource provider exceeds the second overall budget data, the resource provider is filtered; in other cases, it is determined that the resource card is not filtered, or the resource provider is not filtered.
[0112] After filtering the resource cards or resource materials corresponding to the resource providers that need to be controlled, the resource cards or resource material lists corresponding to the resource providers that have not been filtered are returned to the resource card issuing service 101 .
[0113] The above embodiment shows an example of calculating consumption data of a resource material using only one billing mode. For example, if the billing event corresponding to a resource material is click, then the consumption data is calculated as the product of the number of click events and the unit delivery cost of the click event.
[0114] In some possible implementations, a resource material may also adopt multiple billing modes. For example, a resource material not only needs to calculate the consumption data generated by the click event, but also needs to calculate the consumption data generated by the exposure event. At this time, it is necessary to set the budget data of a resource material corresponding to different billing modes. For example, a resource material has two billing modes, one is to calculate the consumption data generated by the click event, and the other is the consumption data generated by the collection event. It is necessary to pre-set the periodic budget data corresponding to the click event and the collection event. Suppose, the periodic budget data corresponding to the click event is set to D011; the periodic budget data corresponding to the collection event is set to D012. It is also necessary to pre-set the overall budget data corresponding to the click event and the collection event. Suppose, the overall budget data corresponding to the click event is set to D021; the overall budget data corresponding to the collection event is set to D022.
[0115] When calculating the consumption data corresponding to the resource material, it is necessary to simultaneously calculate the periodic consumption data and overall consumption data of the click event corresponding to the resource material, as well as the periodic consumption data and overall consumption data of the corresponding collection event. In a cycle, when at least one of the periodic consumption data corresponding to the click event or the periodic consumption data corresponding to the collection event exceeds the corresponding periodic budget data, the delivery of the resource material in the current cycle is stopped. When at least one of the overall consumption data corresponding to the click event or the overall consumption data corresponding to the collection event exceeds the corresponding overall budget data, the delivery of the resource material is stopped.
[0116] This can prevent the consumption data of the resource from exceeding the budget data when there are multiple billing methods for the same resource material.
[0117] Since the data calculation service 102 needs to compare the consumption data with the budget data, so as to timely find that the consumption data exceeds the budget data, so as to timely control the amount of resources, it is necessary to store the first consumption data and the second consumption data in the target storage space when the first consumption data and the second consumption data are calculated, so as to facilitate reading the first consumption data and the second consumption data when the consumption data and the budget data are compared.
[0118] See also Figure 6 , Figure 6 A schematic diagram of a process for storing consumption data provided by an embodiment of the present application. The message queue of the data computing service 102 stores resource return data, and the resource return data is parsed to obtain the specific event type corresponding to each resource material. For example, the specific event type obtained may be a click, exposure, collection, and other events. As long as the corresponding event type data is generated in the resource delivery application 104, a return data will be reported to the message queue.
[0119] Then the data calculation service 102 will determine whether the event type of the current return flow matches the control mode. If not, the event will be discarded; if it matches, the consumption data will be calculated. The calculation of consumption data depends on the total amount of each type of event, so it is necessary to first calculate the total amount of each type of event.
[0120] When calculating the total amount of data, if the current event type is the corresponding event type, the total amount of the corresponding event type is increased by 1; the total amount of each event type is calculated and the total amount data is stored separately.
[0121] One thing that needs to be noted here is that when calculating the total amount of click data, deduplication processing is required, that is, multiple click events of a user are recorded as one click event.
[0122] Then, the first cycle consumption data and the first overall consumption data of each resource material under the resource card can be calculated according to the unit delivery cost of each event and the total amount of each event; and the second cycle consumption data and the second overall consumption data of each resource material under the resource provider can be calculated. The first cycle consumption data and the first overall consumption data of each resource material under the resource card, the second cycle consumption data and the second overall consumption data of each resource material under the resource provider are updated using the calculated data. The calculated data and the updated data are stored.
[0123] Considering that the prior art usually reads data based on a single cache mechanism, the cache needs to be locked during the process of writing data from the database to the cache. At this time, data is not allowed to be read from the cache, which will affect data queries and further lead to the inability to timely discover when data consumption exceeds the budget data, making it impossible to accurately control the amount of resource delivery.
[0124] In view of this, the present application provides a dual cache mechanism, that is, setting the target storage space to include a sub-cache space and a second sub-cache space, and realizing synchronization of the consumption data stored in the first sub-cache space with the consumption data stored in the second sub-cache space. Since the first sub-cache space and the second sub-cache space are different memory modules, when the database can write data to one of the sub-cache spaces, the data computing service 102 reads data in the other sub-cache space. Therefore, it is possible to directly read the data without locking, thereby timely stopping the delivery of the corresponding advertisement when the consumption data is greater than or equal to the budget data according to the relationship between the consumption data and the budget data.
[0125] Specifically, the consumption data stored in the first sub-cache space and the consumption data stored in the second sub-cache space may be synchronized in the following manner:
[0126] During the process of writing the consumed data to the first sub-cache space, if a first data read request is received, the data corresponding to the first data read request is read from the second sub-cache space; after completing the process of writing the consumed data to the first sub-cache space, the consumed data is written to the second sub-cache space; during the process of writing the consumed data to the second sub-cache space, if a second data read request is received, the data corresponding to the second data read request is read from the first sub-cache space. It can be understood that the first data is one or more of the various consumed data stored in the first sub-cache space and the second sub-cache space.
[0127] In the embodiment of the present application, a timer may be used to periodically update the data in the first sub-cache space and the second sub-cache space. The implementation process of updating and reading the data is as follows: Figure 7 shown.
[0128] See also Figure 7 , Figure 7 A schematic diagram of a process of updating and reading data provided for an embodiment of the present application. Specifically, the first sub-cache space can be updated first, and the party reading the data can read the data in the second sub-cache space. Since the first sub-cache space and the second sub-cache space are different storage spaces, there is no need to lock the data when reading the data, and the data can be read directly. After the timing cycle of the timer ends, the second sub-cache space can be updated, and the party reading the data can read the data in the first sub-cache space. In this way, by setting the first sub-cache space and the second sub-cache space, data updating and reading can be achieved at the same time without affecting each other. Thus, the efficiency of data processing can be improved, and the consumption data can be read in time, so that the delivery of advertisements can be stopped in time when the consumption data is greater than or equal to the budget data.
[0129] In a possible implementation, the first sub-cache space and the second sub-cache space may be set as a distributed cache Redis, which has high query performance and can speed up data reading.
[0130] It should be understood that when storing the consumed data in the first sub-cache space and the second sub-cache space, the types of consumed data can be distinguished to facilitate the rapid reading of the corresponding types of consumed data. The Key+Value storage format of Redis can be used. The specific storage format is as follows: Figure 8 shown.
[0131] See also Figure 8 , Figure 8 A schematic diagram of a data storage format provided for an embodiment of the present application. The data computing service 102 stores the data stored in the Kafka queue in the cache space. If the stored data is the first-cycle consumption data of the resource card, the Key can be a combination of prefix + resource card id, where the prefix is custom-set and is used to distinguish it from other consumption data; the Value is the consumption data of each cycle of each resource material corresponding to the current resource card. The first-cycle consumption data of the resource card will be automatically cleared at the beginning of a cycle. If the cycle is one day, the specific method of clearing the data can be achieved by setting an expiration time, for example, it can be set to the early morning of the same day, so that the first-cycle consumption data will be cleared in the early morning, and Redis will automatically clear it according to the set expiration time.
[0132] If the stored data is the first overall consumption data of a resource card, the Key can be a combination of prefix + resource card id, where the prefix is a custom setting to distinguish it from other consumption data; the Value is the total consumption data of each resource material corresponding to the current resource card. The first overall consumption data of a resource card will always be stored and stored in an accumulated manner.
[0133] If the stored data is the second cycle consumption data of the resource provider, the Key can be a combination of prefix + resource provider ID, where the prefix is a custom setting to distinguish it from other consumption data; the Value is the consumption data of each cycle of each resource material corresponding to the current resource provider. The second cycle consumption data of the resource provider will be automatically cleared at the beginning of a cycle.
[0134] If the stored data is the second overall consumption data of the resource provider, the Key can be a combination of prefix + resource provider id, where the prefix is custom set to distinguish it from other consumption data; the Value is the total consumption data of each resource material corresponding to the current resource provider. The second cycle consumption data of the resource provider will be stored all the time and in a cumulative manner.
[0135] The present application also provides a resource delivery adjustment device. Fig. 9 , Fig. 9 A schematic diagram of a resource placement adjustment device provided in an embodiment of the present application, the device comprising:
[0136] The determination module 901 is used to determine the resource card and resource provider corresponding to the recalled target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object;
[0137] The acquisition module 902 is used to acquire the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider, and acquire the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider; wherein the first consumption data is determined according to the billing event generated when each resource material corresponding to the resource card is released, and is used to represent the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined according to the billing event generated when each resource material of the resource provider is released, and is used to represent the current consumption of the release cost of each resource material of the resource provider;
[0138] The processing module 903 is used to determine the adjustment result of the target resource material according to the relationship between the first consumption data and the first budget data, and the relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether the delivery amount of the target resource material needs to be adjusted;
[0139] The control module 904 is used to adjust the delivery of the target resource material according to the adjustment result corresponding to the target resource material.
[0140] The device provided in the embodiment of the present application is used to execute the corresponding resource delivery adjustment method. In the above-mentioned resource delivery adjustment method, the resource delivery is adjusted by comparing the consumption data and the budget data, and starting from the two dimensions of the resource card and the resource provider, whether a certain resource material needs to be adjusted is considered. Specifically, for a certain resource material, it is necessary to obtain the first consumption data of the corresponding resource card, that is, the currently consumed delivery cost, and the first budget data of the resource card, that is, the corresponding delivery budget; it is also necessary to obtain the second consumption data of the resource provider to which it belongs, that is, the currently consumed delivery cost, and the second budget data of the resource provider, that is, the corresponding delivery budget; then, by comparing the first consumption data and the first budget data, and comparing the second consumption data and the second budget data, it is decided whether to adjust the resource material. Thereby, it is possible to achieve accurate adjustment of the delivery of resource materials, avoiding the loss of delivery resources incurred by the resource delivery platform.
[0141] In an optional embodiment of the present application, the first budget data includes first-cycle budget data and first overall budget data; the second budget data includes second-cycle budget data and second overall budget data; the first consumption data includes first-cycle consumption data and first overall consumption data, the first-cycle consumption data is determined based on consumption events generated when each resource material corresponding to the resource card is released during the current statistical cycle, and the first overall consumption data is determined based on consumption events generated when each resource material corresponding to the resource card is released for the first time; the second consumption data includes second-cycle consumption data and second overall consumption data, the second-cycle consumption data is determined based on consumption events generated when each resource material of the resource master is released during the current statistical cycle, and the second overall consumption data is determined based on object events generated when each resource material of the resource master is released for the first time.
[0142] In an optional embodiment of the present application, the processing module 903 is configured to determine that the adjustment result is that the delivery amount of the target resource material needs to be adjusted if at least one adjustment condition in the adjustment condition set is met; otherwise, determine that the adjustment result is that the delivery amount of the target resource material does not need to be adjusted;
[0143] The adjustment condition set includes: the first cycle consumption data exceeds the first cycle budget data, the first overall consumption data exceeds the first overall budget data, the second cycle consumption data exceeds the second cycle budget data, and the second overall consumption data exceeds the second overall budget data.
[0144] In an optional embodiment of the present application, the resource delivery adjustment device further includes a receiving module and an updating module; the receiving module is used to receive a resource reflow event of a resource material corresponding to a resource card. The updating module is used to update the first period statistic, the first overall statistic, the second period statistic, and the second overall statistic corresponding to the target billing event type if the object event represented by the resource reflow event belongs to the target billing event type corresponding to the resource material.
[0145] Determination module 901 is also used to determine the first period consumption data based on the first period statistics and the unit delivery cost corresponding to the target billing event type; determine the first overall consumption data based on the first overall statistics and the unit delivery cost; determine the second period consumption data based on the second period statistics and the unit delivery cost; determine the second overall consumption data based on the second overall statistics and the unit delivery cost.
[0146] In an optional embodiment of the present application, the first consumption data and the second consumption data are stored in a target storage space; the target storage space includes a first sub-cache space and a second sub-cache space, and the consumption data stored in the first sub-cache space is synchronized with the consumption data stored in the second sub-cache space.
[0147] In an optional embodiment of the present application, the resource placement adjustment device also includes a reading module and a writing module. When the writing module is writing consumed data to the first sub-cache space, if a first data reading request is received, the reading module reads data corresponding to the first data reading request from the second sub-cache space.
[0148] After completing the process of writing consumed data to the first sub-cache space, the write module writes the consumed data to the second sub-cache space; during the process of writing consumed data to the second sub-cache space, if a second data read request is received, the read module reads the data corresponding to the second data read request from the first sub-cache space.
[0149] An embodiment of the present application also provides a resource delivery adjustment system, which includes a resource card-issuing service, a data computing service and a resource reflux service; the resource card-issuing service is used to provide the recalled target resource material to the data computing service; the data computing service is used to execute any one of the resource delivery adjustment methods described in the above embodiments, determine the adjustment result for the target resource material, and transmit the adjustment result to the resource delivery application through the resource card-issuing service, so that the resource delivery application determines whether to deliver the target resource material based on the adjustment result; the resource reflux service is used to obtain object events generated based on the resource material delivered by the resource delivery application, and generate resource reflux events based on the object events and transmit them to the data computing service, so that the data computing service updates its stored consumption data based on the resource reflux events.
[0150] The resource delivery adjustment system provided in the embodiment of the present application is used to execute the corresponding resource delivery adjustment method. When the adjustment result indicates that the delivery amount of the target resource material needs to be adjusted, the delivery of the target resource material can be adjusted, thereby achieving precise control of the delivery of the resource material and avoiding the loss of delivery resources incurred by the resource delivery platform.
[0151] The embodiment of the present application also provides a computer device, which may specifically be a terminal device or a server. The terminal device and the server provided in the embodiment of the present application will be introduced below from the perspective of hardware entity.
[0152] See also Fig.10 , Fig.10 Schematic diagram of the structure of the terminal device provided in the embodiment of the present application. Fig.10 For the sake of convenience, only the parts related to the embodiments of the present application are shown. For specific technical details not disclosed, please refer to the method part of the embodiments of the present application. The terminal can be any terminal device including a mobile phone, a tablet computer, a personal digital assistant, a point of sales (POS), a car computer, etc., taking the terminal as a computer as an example:
[0153] Fig.10 FIG. 1 is a block diagram showing a partial structure of a computer related to a terminal provided in an embodiment of the present application. Fig.10 The computer includes: a radio frequency (RF) circuit 1210, a memory 1220, an input unit 1230 (including a touch panel 1231 and other input devices 1232), a display unit 1240 (including a display panel 1241), a sensor 1250, an audio circuit 1260 (which can be connected to a speaker 1261 and a microphone 1262), a wireless fidelity (WiFi) module 1270, a processor 1280, and a power supply 1290. Those skilled in the art can understand that Fig.10 The computer structure shown in the figure does not constitute a limitation of the computer, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0154] The memory 1220 can be used to store software programs and modules. The processor 1280 executes various functional applications and data processing of the computer by running the software programs and modules stored in the memory 1220. The memory 1220 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the computer (such as audio data, a phone book, etc.), etc. In addition, the memory 1220 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0155] The processor 1280 is the control center of the computer, which uses various interfaces and lines to connect various parts of the entire computer, and executes various functions of the computer and processes data by running or executing software programs and / or modules stored in the memory 1220, and calling data stored in the memory 1220. Optionally, the processor 1280 may include one or more processing units; preferably, the processor 1280 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 1280.
[0156] In the embodiment of the present application, the processor 1280 included in the terminal also has the following functions:
[0157] For the recalled target resource material, determining a resource card and a resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object;
[0158] Acquire the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider, and acquire the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider; wherein the first consumption data is determined according to the billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined according to the billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider;
[0159] Determining an adjustment result of the target resource material according to a relationship between the first consumption data and the first budget data, and a relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether it is necessary to adjust the delivery amount of the target advertising material;
[0160] The delivery of the target resource material is controlled according to the adjustment result corresponding to the target resource material.
[0161] Optionally, the processor 1280 is also used to execute the steps of any implementation method provided in the embodiments of the present application.
[0162] See also Fig.11 , Fig.11 A schematic diagram of the structure of a server 1300 provided for an embodiment of the present application. The server 1300 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1322 (for example, one or more processors) and a memory 1332, and one or more storage media 1330 (for example, one or more mass storage devices) storing application programs 1342 or data 1344. Among them, the memory 1332 and the storage medium 1330 may be temporary storage or permanent storage. The program stored in the storage medium 1330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations on the server. Furthermore, the central processing unit 1322 may be configured to communicate with the storage medium 1330 to execute a series of instruction operations in the storage medium 1330 on the server 1300.
[0163] The server 1300 may also include one or more power supplies 1326, one or more wired or wireless network interfaces 1350, one or more input and output interfaces 1358, and / or one or more operating systems, such as Windows Server 2003. TM , Mac OS X TM, Unix TM ,Linux TM , FreeBSD TM etc.
[0164] The steps performed by the server in the above embodiment can be based on the Fig.11 The server structure shown.
[0165] The CPU 1322 is used to execute the following steps:
[0166] For the recalled target resource material, determining a resource card and a resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object;
[0167] Acquire the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider, and acquire the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider; wherein the first consumption data is determined according to the billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined according to the billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider;
[0168] Determining an adjustment result of the target resource material according to a relationship between the first consumption data and the first budget data, and a relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether it is necessary to adjust the delivery amount of the target advertising material;
[0169] The delivery of the target resource material is controlled according to the adjustment result corresponding to the target resource material.
[0170] Optionally, the CPU 1322 may also be used to execute steps of any implementation method of the method provided in the embodiments of the present application.
[0171] An embodiment of the present application also provides a computer-readable storage medium for storing a computer program, wherein the computer program is used to execute any one of the methods described in the aforementioned embodiments.
[0172] The embodiment of the present application also provides a computer program product or a computer program, which includes a computer instruction stored in a computer-readable storage medium. The processor of the computer device reads the computer instruction from the computer-readable storage medium, and the processor executes the computer instruction, so that the computer device executes any one of the methods described in the above embodiments.
[0173] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0174] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0175] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0176] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0177] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (full name in English: Read-Only Memory, English abbreviation: ROM), random access memory (full name in English: Random Access Memory, English abbreviation: RAM), disk or optical disk and other media that can store computer programs.
[0178] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.
[0179] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A resource delivery adjustment method, It is characterized in that The method comprises: For the recalled target resource material, determining a resource card and a resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object; Acquire the first consumption data corresponding to the resource card and the second consumption data corresponding to the resource provider, and acquire the first budget data corresponding to the resource card and the second budget data corresponding to the resource provider; wherein the first consumption data is determined according to the billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined according to the billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider; Determining an adjustment result of the target resource material according to a relationship between the first consumption data and the first budget data, and a relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether it is necessary to adjust the delivery amount of the target advertising material; The delivery of the target resource material is controlled according to the adjustment result corresponding to the target resource material.
2. The method according to claim 1, It is characterized in that The first budget data includes first cycle budget data and first overall budget data; the second budget data includes second cycle budget data and second overall budget data; The first consumption data includes first period consumption data and first overall consumption data, wherein the first period consumption data is determined according to consumption events generated when each resource material corresponding to the resource card is released in the current statistical period, and the first overall consumption data is determined according to consumption events generated since the first release of each resource material corresponding to the resource card; The second consumption data includes second-period consumption data and second overall consumption data. The second-period consumption data is determined based on consumption events generated when each resource material of the resource provider is released in the current statistical period, and the second overall consumption data is determined based on consumption events generated by each resource material of the resource provider since the first release.
3. The method according to claim 2, It is characterized in that The determining the adjustment result of the target resource material according to the relationship between the first consumption data and the first budget data, and the relationship between the second consumption data and the second budget data, includes: If at least one adjustment condition in the adjustment condition set is satisfied, determining that the adjustment result is that the delivery amount of the target resource material needs to be adjusted; otherwise, determining that the adjustment result is that the delivery amount of the target resource material does not need to be adjusted; Among them, the adjustment condition set includes: the first cycle consumption data exceeds the first cycle budget data, the first overall consumption data exceeds the first overall budget data, the second cycle consumption data exceeds the second cycle budget data, and the second overall consumption data exceeds the second overall budget data.
4. The method according to claim 2, It is characterized in that The method further comprises: Receive a resource reflow event of a resource material corresponding to the resource card; the resource reflow event is generated and reflowed when an object event based on the resource material is detected; If the object event represented by the resource reflow event belongs to the target billing event type corresponding to the resource material, then updating the first period statistic, the first overall statistic, the second period statistic, and the second overall statistic corresponding to the target billing event type; Determine the first cycle consumption data according to the first cycle statistics and the unit delivery cost corresponding to the target billing event type; determine the first overall consumption data according to the first overall statistics and the unit delivery cost; determine the second cycle consumption data according to the second cycle statistics and the unit delivery cost; determine the second overall consumption data according to the second overall statistics and the unit delivery cost.
5. The method according to claim 1 or 2, It is characterized in that The first consumption data and the second consumption data are stored in a target storage space; the target storage space includes a first sub-cache space and a second sub-cache space, and the consumption data stored in the first sub-cache space is synchronized with the consumption data stored in the second sub-cache space.
6. The method according to claim 5, It is characterized in that The method further comprises: In the process of writing consumed data into the first sub-cache space, if a first data read request is received, reading data corresponding to the first data read request from the second sub-cache space; After completing the process of writing the consumed data to the first sub-cache space, write the consumed data to the second sub-cache space; during the process of writing the consumed data to the second sub-cache space, if a second data read request is received, read the data corresponding to the second data read request from the first sub-cache space.
7. A resource placement adjustment device, It is characterized in that The device comprises: A determination module, for determining, for the recalled target resource material, a resource card and a resource provider corresponding to the target resource material; the resource card corresponds to at least one resource material provided by the resource provider, and each resource material corresponding to the resource card is used to display the same object or the same type of object; An acquisition module is used to acquire first consumption data corresponding to the resource card and second consumption data corresponding to the resource provider, and acquire first budget data corresponding to the resource card and second budget data corresponding to the resource provider; wherein the first consumption data is determined based on a billing event generated when each resource material corresponding to the resource card is released, and is used to characterize the current consumption of the release cost of each resource material corresponding to the resource card; the second consumption data is determined based on a billing event generated when each resource material of the resource provider is released, and is used to characterize the current consumption of the release cost of each resource material of the resource provider; a processing module, configured to determine an adjustment result of the target resource material according to a relationship between the first consumption data and the first budget data, and a relationship between the second consumption data and the second budget data; the adjustment result is used to indicate whether the delivery amount of the target resource material needs to be adjusted; The adjustment module is used to adjust the delivery of the target resource material according to the adjustment result corresponding to the target resource material.
8. A resource delivery adjustment system, It is characterized in that The system includes resource card issuing service, data computing service and resource return service; The resource card issuing service is used to provide the recalled target resource material to the data computing service; The data computing service is used to execute the method according to any one of claims 1 to 6, determine an adjustment result for the target resource material, and transmit the adjustment result to the resource delivery application through the resource card issuing service, so that the resource delivery application determines whether to deliver the target resource material according to the adjustment result; The resource reflux service is used to obtain object events generated based on resource materials delivered by the resource delivery application, and generate resource reflux events based on the object events and transmit them to the data computing service, so that the data computing service updates its stored consumption data based on the resource reflux events.
9. A computer device, It is characterized in that The computer device includes a processor and a memory; The memory is used to store computer programs; The processor is used to execute the resource delivery adjustment method according to any one of claims 1 to 6 according to the computer program.
10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and the computer program is used to execute the resource delivery adjustment method according to any one of claims 1 to 6.
