Advertisement space distribution method and device based on time intersection, equipment and medium
By extracting and analyzing advertising information, the effective time period of the advertising strategy is calculated, and advertising space allocation is allocated based on time intersection, which solves the problem of insufficient flexibility in advertising space allocation in the existing technology and improves the user experience.
Patent Information
- Application Number
- CN202411566532.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-05
- Publication Date
- 2025-03-25
- Estimated Expiration
- 2044-11-05
AI Technical Summary
The existing advertising space allocation method has low flexibility, which affects the user experience and leads to insufficient flexibility in advertising space allocation.
By extracting the current advertising information and scheduled advertising information, conducting strategy analysis, calculate the current policy effective time period and scheduled strategy effective time period, and allocating ad spaces based on time intersection.
Improve the flexibility of advertising space allocation, avoid the ad switching fragmentation felt by users, and improve the user experience.
Smart Images

Figure CN119693059A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data promotion technology, and in particular to a method, device, equipment and medium for allocating advertisement slots based on time intersection. Background Art
[0002] With the rapid development of the information society, more and more users use mobile applications to obtain information, entertainment, shopping and social interaction. Mobile applications have become an indispensable part of users' daily lives. In order to achieve user promotion, the allocation of advertising space on application pages has become more and more common.
[0003] Existing ad slot allocation is mostly based on ordinary pre-sale allocation, that is, allocating ad slots in the future, and dynamically adjusting ad slot allocation strategies and modes during operation. In actual applications, because of the pre-sale form, if the effective time selected by the operation is close to the current time, it will affect the user experience, resulting in a fragmented user experience, which may lead to low flexibility in ad slot allocation. Summary of the invention
[0004] The present invention provides an advertisement slot allocation method, device and computer-readable storage medium based on time intersection, the main purpose of which is to solve the problem of low flexibility in advertisement slot allocation.
[0005] To achieve the above object, the present invention provides an advertisement slot allocation method based on time intersection, comprising:
[0006] Obtaining the name of the currently placed advertisement from a preset advertisement placing process, and extracting the currently placed advertisement information and the scheduled placement advertisement information of the advertisement to be placed after the currently placed advertisement from a preset advertisement information database according to the currently placed advertisement name;
[0007] Performing a strategy analysis on the current advertisement information to obtain a current advertisement allocation strategy, and obtaining a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy;
[0008] Matching a current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file, and calculating a current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period;
[0009] Matching a scheduling strategy advertisement pre-sale time period set corresponding to the scheduled advertisement information from the pre-sale configuration file, and calculating a scheduling strategy effective time period of the scheduled advertisement information according to the scheduling strategy advertisement pre-sale time period set;
[0010] Advertisement slots are allocated according to the current policy effective time period and the scheduling policy effective time period.
[0011] Optionally, performing a strategy analysis on the currently placed advertisement information to obtain a current advertisement allocation strategy includes:
[0012] Performing format analysis on the currently placed advertisement information to obtain the advertisement information format;
[0013] Parsing the currently placed advertisement information according to the advertisement information format to obtain current advertisement parsing information;
[0014] Extracting the time period strategy from the current advertisement analysis information to obtain the current advertisement time period strategy;
[0015] Extracting the allocation mode of the current advertisement parsing information to obtain the current advertisement allocation mode;
[0016] A current advertisement allocation strategy is generated according to the current advertisement period strategy and the current advertisement allocation mode.
[0017] Optionally, matching a current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file includes:
[0018] Parsing the pre-sale configuration file to obtain pre-sale advertisement information;
[0019] Matching the current strategy pre-sale information corresponding to the current advertisement allocation strategy from the pre-sale advertisement information;
[0020] Perform pre-sale time matching on the current strategy pre-sale information to obtain a pre-sale effective start time set and a pre-sale effective period set;
[0021] A current strategy advertisement pre-sale time period set is generated according to the pre-sale effectiveness start time set and the pre-sale effectiveness period set.
[0022] Optionally, the
[0023] The calculating the current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period includes:
[0024] Extracting the current advertisement strategy start time and the current advertisement strategy end time from the current advertisement allocation strategy time period;
[0025] Selecting the current strategy advertisement pre-sale time periods in the current strategy advertisement pre-sale time period set one by one, and extracting the pre-sale effective start time and the pre-sale effective end time from the selected current strategy advertisement pre-sale time periods;
[0026] Determine whether the end time of the current advertising strategy is before the pre-sale effective start time;
[0027] If yes, returning to the step of selecting the current strategic advertising pre-sale time periods in the current strategic advertising pre-sale time period set one by one;
[0028] If not, determining whether the current advertising strategy start time is after the pre-sale effective end time;
[0029] If yes, returning to the step of selecting the current strategic advertising pre-sale time periods in the current strategic advertising pre-sale time period set one by one;
[0030] If not, then generate the target effective time period based on the current advertising strategy start time, the current advertising strategy end time, the pre-sale effective start time and the pre-sale effective end time, and gather the target effective time periods corresponding to all the current strategy advertising pre-sale time periods in the current strategy advertising pre-sale time period into the current strategy effective time period.
[0031] Optionally, generating a target effective time period according to the current advertising strategy start time, the current advertising strategy end time, the pre-sale effective start time, and the pre-sale effective end time includes:
[0032] Obtain the current time, and take the time node farthest from the current time between the current advertising strategy start time and the pre-sale effective start time as the target effective start time;
[0033] The time node closest to the current time between the current advertising strategy end time and the pre-sale effective end time is used as the target effective end time;
[0034] A target effective time period is generated according to the target effective start time and the target effective end time.
[0035] Optionally, matching the scheduled advertising pre-sale time period set corresponding to the scheduled advertising information from the pre-sale configuration file includes:
[0036] Performing a strategic analysis on the scheduled advertising information to obtain a future allocation strategy;
[0037] A scheduling strategy advertisement pre-sale time period set corresponding to the future allocation strategy is matched from the pre-sale configuration file.
[0038] Optionally, extracting the current advertisement information and scheduled advertisement information from a preset advertisement information database according to the current advertisement name includes:
[0039] Acquire the current time, and generate a current information query instruction according to the name of the current advertisement and the current time;
[0040] Querying the current advertisement information from a preset advertisement information database according to the current information query instruction;
[0041] Generate a query instruction for scheduling advertisement delivery according to the current time;
[0042] According to the principle of proximity, the target scheduling start time is queried from the advertisement information database using the scheduled advertisement query instruction, and the advertisement name corresponding to the target scheduling start time is used as the scheduled advertisement name;
[0043] Generate a schedule information query instruction according to the scheduled advertisement name and the target schedule start time;
[0044] The scheduled advertisement information is queried from the advertisement information database according to the schedule information query instruction.
[0045] In order to solve the above problem, the present invention further provides an advertisement slot allocation device based on time intersection, the device comprising:
[0046] An information acquisition module, used to obtain the name of the current advertisement from a preset advertisement delivery process, and extract the current advertisement information and the scheduled advertisement information of the advertisement to be released after the current advertisement from a preset advertisement information database according to the current advertisement name;
[0047] A strategy analysis module, used to perform strategy analysis on the current advertisement information, obtain a current advertisement allocation strategy, and obtain a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy;
[0048] A real-time matching module, used to match the current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file, and calculate the current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period;
[0049] A future matching module is used to match the scheduled advertising pre-sale time period set corresponding to the scheduled advertising information from the pre-sale configuration file, calculate the scheduled advertising pre-sale time period of the scheduled advertising information according to the scheduled advertising pre-sale time period set, and obtain the scheduled advertising pre-sale time period;
[0050] The advertisement allocation module is used to allocate advertisement slots according to the effective time period of the current strategy and the effective time period of the scheduling strategy.
[0051] In order to solve the above problem, the present invention further provides an electronic device, the electronic device comprising:
[0052] at least one processor; and,
[0053] a memory communicatively connected to the at least one processor; wherein,
[0054] The memory stores a computer program that can be executed by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the above-mentioned advertising slot allocation method based on time intersection.
[0055] In order to solve the above problem, the present invention also provides a computer-readable storage medium, in which at least one computer program is stored. The at least one computer program is executed by a processor in an electronic device to implement the above-mentioned advertising space allocation method based on time intersection.
[0056] The embodiments of the present invention can conveniently determine the subsequent advertising arrangements of the system by extracting the current advertising information and the scheduled advertising information, prevent the advertisements that need to be allocated from conflicting with the already scheduled advertisements, thereby improving the flexibility of advertising space allocation; by performing strategy analysis, the allocation strategy of the advertisements being delivered can be obtained, thereby facilitating the implementation of the strategy consistency of allocating advertisements; by obtaining the current advertisement allocation strategy time period, the effective time corresponding to the existing advertisement delivery strategy can be determined; by matching the current strategy advertisement pre-sale time period set, the pre-sale advertisement time period corresponding to the currently delivered advertisement can be determined; by calculating the current strategy effective time period, the effective time period of the currently delivered advertisement strategy determined during the pre-sale configuration can be determined, thereby facilitating the avoidance of messy advertisement strategy delivery and improving the flexibility of advertisement space allocation.
[0057] By calculating the effective time period of the scheduling strategy, it is possible to determine the effective time period of the advertisements to be delivered in the future in the pre-sale configuration file, thereby facilitating the avoidance of messy advertising strategy delivery and improving the flexibility of advertising space allocation. By allocating advertising space according to the effective time period of the current strategy and the effective time period of the scheduling strategy, it is possible to avoid users from feeling the fragmented advertising switching, so that switching between different allocation strategies and modes will not affect the user's purchase, achieving seamless switching, improving user experience, and thus improving the flexibility of advertising space allocation. Therefore, the advertising space allocation method, device, equipment and medium based on time intersection proposed in the present invention can solve the problem of low flexibility in advertising space allocation. BRIEF DESCRIPTION OF THE DRAWINGS
[0058] Figure 1 A schematic diagram of a flow chart of an advertisement slot allocation method based on time intersection provided by an embodiment of the present invention;
[0059] Figure 2 A schematic diagram of a process for calculating the effective time period of a current policy provided by an embodiment of the present invention;
[0060] Figure 3 A schematic diagram of a scene in which the intersection time period does not exist provided by an embodiment of the present invention;
[0061] Figure 4 A device architecture diagram of an advertisement slot allocation device based on time intersection provided by an embodiment of the present invention;
[0062] Figure 5 A schematic diagram of the structure of an electronic device for implementing the advertisement slot allocation method based on time intersection provided by an embodiment of the present invention.
[0063] The purpose, features and advantages of the present invention will be further described with reference to the accompanying drawings in conjunction with the embodiments. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0065] The embodiment of the present application provides an advertisement slot allocation method based on time intersection. The execution subject of the advertisement slot allocation method based on time intersection includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided by the embodiment of the present application. In other words, the advertisement slot allocation method based on time intersection can be executed by software or hardware installed on a terminal device or a server device. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, referred to as CDN), and big data and artificial intelligence platforms.
[0066] Reference Figure 1 FIG. 1 is a flow chart of an advertisement slot allocation method based on time intersection according to an embodiment of the present invention. In this embodiment, the advertisement slot allocation method based on time intersection includes:
[0067] S1. Obtain the name of the current advertisement from a preset advertisement delivery process, and extract the current advertisement information and the scheduled advertisement information of the advertisement to be delivered after the current advertisement from a preset advertisement information database according to the current advertisement name.
[0068] In detail, the name of the currently placed advertisement refers to the unique identifier of the advertisement currently being placed, the advertisement information database is a database that stores the advertisement information of each advertisement that needs to be placed, and the advertisement information refers to the configuration information of the advertisement distribution strategy. There are two situations in the advertisement information database. The first situation is that the effective start and end time recorded in the database include the current time, that is, the currently effective advertisement information; the second situation is that the effective start time recorded in the database is greater than the current time, that is, the scheduled advertisement information that will take effect in the future.
[0069] Specifically, the allocation strategy includes a time period strategy and an allocation mode, wherein the time period strategy includes allocation by time period, multi-time period package allocation, full-day package allocation, multi-day package allocation and the like, and the allocation mode includes a fixed price snap-up, bidding by auction and the like.
[0070] In detail, the currently placed advertisement information refers to the advertisement information of the advertisement currently being placed, and the scheduled placed advertisement information refers to the advertisement information of the advertisement that needs to be placed in the future after the currently placed advertisement ends.
[0071] Specifically, the name of the current advertisement can be obtained from the advertisement delivery process by using API interfaces, management consoles such as Google Ads, Facebook Ads, or log and monitoring systems such as Prometheus and Grafana. For example, the advertisement ID corresponding to the current status of "active" or "running" can be used as the name of the current advertisement. The advertisement delivery process is a process in the advertising system used to implement advertisement delivery.
[0072] In an embodiment of the present invention, the method of extracting the current advertisement information and the scheduled advertisement information from a preset advertisement information database according to the current advertisement name includes: obtaining the current time, generating a current information query instruction according to the current advertisement name and the current time; querying the current advertisement information from a preset advertisement information database according to the current information query instruction; generating a scheduled advertisement query instruction according to the current time; querying the target scheduling start time from the advertisement information database according to the proximity principle using the scheduled advertisement query instruction, and using the advertisement name corresponding to the target scheduling start time as the scheduled advertisement name; generating a scheduling information query instruction according to the scheduled advertisement name and the target scheduling start time; and querying the scheduled advertisement information from the advertisement information database according to the scheduling information query instruction.
[0073] In detail, the current time refers to the time corresponding to the current system time, the primary key of the advertising information database is the advertising ID of each advertisement that needs to be placed, and the foreign key of the advertising information database is the policy effective time period for each advertisement that needs to be placed, wherein the policy effective time period includes an effective start time and an effective end time.
[0074] Specifically, the current information query instruction refers to an instruction for querying the advertisement information corresponding to the name of the currently placed advertisement. The current information query instruction can be generated using a SELECT statement. The scheduled advertisement query instruction refers to an instruction for querying all policy effective time periods in the advertisement information database that are after the current time.
[0075] In detail, the target scheduling start time refers to the start time closest to the current time among all policy effective time periods queried by the scheduling advertisement query instruction, and the method for generating the scheduling information query instruction is the same as the method for generating the current information query instruction.
[0076] In the embodiment of the present invention, by extracting the current advertisement information and the scheduled advertisement information, the subsequent advertisement arrangement of the system can be conveniently determined to prevent the advertisements to be allocated from conflicting with the arranged advertisements, thereby improving the flexibility of advertisement allocation.
[0077] S2. Performing a strategy analysis on the current advertisement information to obtain a current advertisement allocation strategy, and obtaining a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy.
[0078] In detail, the current advertising allocation strategy refers to the allocation form and allocation mode of advertisements in real-time delivery, wherein the allocation form includes allocation by time period, multi-time period package allocation, full-day package allocation, multi-day package allocation and other forms, and the allocation mode includes fixed price rush purchase, bidding by auction and other modes. The current advertising allocation strategy time period refers to the effective time period corresponding to the current advertising allocation strategy, for example: the current advertising allocation strategy is allocation by time period and fixed price rush purchase, and the current advertising allocation strategy time period is 2024-07-01 to 2024-07-30.
[0079] In an embodiment of the present invention, the strategy analysis of the currently delivered advertising information to obtain the current advertising allocation strategy includes: performing format analysis on the currently delivered advertising information to obtain an advertising information format; performing information parsing on the currently delivered advertising information according to the advertising information format to obtain current advertising parsed information; performing time period strategy extraction on the current advertising parsed information to obtain the current advertising time period strategy; performing allocation pattern extraction on the current advertising parsed information to obtain the current advertising allocation pattern; and generating the current advertising allocation strategy according to the current advertising time period strategy and the current advertising allocation pattern.
[0080] Specifically, the advertisement information format refers to the configuration format corresponding to the currently delivered advertisement information. The advertisement information format may be in json or xml format, and information may be parsed using a parsing library. The parsing library may be a json module or a json.load function in a Python standard library.
[0081] In detail, the time period strategy extraction refers to extracting the time period-related strategy of advertisement delivery from the current advertisement parsing information, and the allocation mode extraction refers to extracting the mode-related strategy of advertisement delivery from the current advertisement parsing information.
[0082] Specifically, the keyword matching method may be used to extract the time period strategy and the allocation mode. Generating the current advertisement allocation strategy refers to using the current advertisement time period strategy and the combination of the current advertisement time period strategy as the current advertisement allocation strategy.
[0083] In detail, the obtaining of the current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy refers to querying the strategy time period corresponding to the current advertisement allocation strategy from the advertisement information database, and using the corresponding strategy time period as the current advertisement allocation strategy time period.
[0084] In the embodiment of the present invention, by performing strategy analysis, the allocation strategy of the advertisement being delivered can be obtained, thereby facilitating the implementation of the strategy consistency of allocating advertisements. By obtaining the current advertisement allocation strategy time period, the effective time corresponding to the existing advertisement delivery strategy can be determined.
[0085] S3. Match the current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from the preset pre-sale configuration file, and calculate the current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period.
[0086] In detail, the pre-sale configuration file contains the pre-sale information of each advertising space that has been sold after the pre-sale, and the pre-sale information includes the sales strategy, effective start time and effective period of the pre-sale advertising space. The effective start time refers to the time when the pre-sale advertising space starts to be delivered, and the effective period refers to the delivery period of the pre-sale advertising space.
[0087] In an embodiment of the present invention, matching the current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file includes: parsing the pre-sale configuration file to obtain pre-sale advertisement information; matching the current strategy pre-sale information corresponding to the current advertisement allocation strategy from the pre-sale advertisement information; performing pre-sale time matching on the current strategy pre-sale information to obtain a pre-sale effective start time set and a pre-sale effective period set; and generating the current strategy advertisement pre-sale time period set according to the pre-sale effective start time set and the pre-sale effective period set.
[0088] Specifically, the file parsing refers to parsing according to the file format of the pre-sale configuration file, the pre-sale advertising information refers to the pre-sale information corresponding to the pre-sale configuration file, and the current strategy pre-sale information refers to the pre-sale information of the advertising space in the pre-sale advertising information that has the same sales strategy as the current advertising allocation strategy.
[0089] In detail, the current strategy pre-sale information can be matched using the regular expression matching method, the pre-sale time matching refers to matching the time-related information in the current strategy pre-sale information, the individual pre-sale start times in the pre-sale effective start time set refers to the effective start time corresponding to the current strategy pre-sale information, and the individual pre-sale effective periods in the pre-sale effective period set refers to the effective period corresponding to the current strategy pre-sale information.
[0090] Specifically, generating a pre-sale time period set refers to generating a time period with the pre-sale effectiveness start time set as the starting point and a total duration of the pre-sale effectiveness period corresponding to the pre-sale effectiveness period set. For example, when the current advertising allocation strategy is allocation by time period and fixed price purchase, one of the pre-sale effectiveness start times is 2024-07-08, and the corresponding pre-sale effectiveness period is two weeks, then the corresponding current strategy advertising pre-sale time period is 2024-07-08 to 2024-07-21.
[0091] In detail, the current strategy effective time period refers to the intersection time period of the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period, that is, the effective time period in the pre-sale configuration file of the real-time advertisement.
[0092] Specifically, refer to Figure 2As shown, the current strategy effective time period is calculated according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period, including:
[0093] S21, extracting the current advertising strategy start time and the current advertising strategy end time from the current advertising allocation strategy time period;
[0094] S22, selecting the current strategy advertisement pre-sale time periods in the current strategy advertisement pre-sale time period set one by one, and extracting the pre-sale effective start time and the pre-sale effective end time from the selected current strategy advertisement pre-sale time periods;
[0095] S23, determining whether the end time of the current advertising strategy is before the pre-sale effective start time;
[0096] S24, if yes, returning to the step of selecting the current strategic advertising pre-sale time periods in the current strategic advertising pre-sale time period set one by one;
[0097] S25. If not, determining whether the current advertising strategy start time is after the pre-sale effective end time;
[0098] S26: If yes, return to the step of selecting the current strategic advertising pre-sale time periods in the current strategic advertising pre-sale time period set one by one;
[0099] S27. If not, then generate a target effective time period based on the current advertising strategy start time, the current advertising strategy end time, the pre-sale effective start time and the pre-sale effective end time, and aggregate the target effective time periods corresponding to all current strategy advertising pre-sale time periods in the current strategy advertising pre-sale time period into the current strategy effective time period.
[0100] Specifically, the current advertising strategy start time refers to the start time of the current advertising allocation strategy time period, the current advertising strategy end time refers to the end time of the current advertising allocation strategy time period, the pre-sale effective start time refers to the start time of the current strategy advertising pre-sale time period, and the pre-sale effective end time refers to the end time of the current strategy advertising pre-sale time period.
[0101] For details, refer to Figure 3 As shown, the target effective time period is the intersection time period of the current strategy advertising pre-sale time period and the current advertising allocation strategy time period. There are only two scenarios in which the current strategy advertising pre-sale time period and the current advertising allocation strategy time period do not have the intersection time period, that is, the current strategy advertising pre-sale time period is before the current advertising allocation strategy time period or the current advertising allocation strategy time period is before the current strategy advertising pre-sale time period, for example:
[0102] If the current policy advertisement pre-sale time period is time period A and the current advertisement allocation policy time period is time period B, then there are two scenarios where there is no such intersection time period, namely Scenario 1: A is before B and Scenario 2: B is before A. Among them, for Scenario 1, it can be achieved by judging whether the start time of the current advertisement policy is after the end time of the pre-sale effectiveness. For Scenario 2, it can be achieved by judging whether the end time of the current advertisement policy is before the start time of the pre-sale effectiveness. Figure 3 As shown, there are two cases, namely Scenario 1: A is before B and Scenario 2: B is before A. Among them, for Scenario 1, it can be realized by judging whether the start time of the current advertisement strategy is after the end time of the pre-sale effectiveness. For Scenario 2, it can be realized by judging whether the end time of the current advertisement strategy is before the start time of the pre-sale effectiveness.
[0103] Specifically, the following code can be used to judge the scenario where there is no such intersection time period:
[0104] private boolean isIntersection(Pair<Date,Date>datePair1,Pair<Date,Date>datePair2)
[0105] {return!(datePair1.getValue().getTime() < datePair2.getKey().getTime() || datePair1.getKey().getTime() > datePair2.getValue().getTime());}
[0106] Among them,!isIntersection means calling the isIntersection method to check whether datePair1 and datePair2 have an intersection. datePair1 refers to time period A, and datePair2 refers to time period B.!(datePair1.getValue().getTime() < datePair2.getKey().getTime()) means that the end time of time period A is before the start time of time period B, that is, Scenario 1: A is before B; datePair1.getKey().getTime() > datePair2.getValue().getTime() means that the start of time period A is after the end time of time period B, that is, Scenario 2: B is before A.
[0107] In detail, the method of generating a target effective time period based on the current advertising strategy start time, the current advertising strategy end time, the pre-sale effective start time and the pre-sale effective end time includes: obtaining the current time, and taking the time node farthest from the current time between the current advertising strategy start time and the pre-sale effective start time as the target effective start time; taking the time node closest to the current time between the current advertising strategy end time and the pre-sale effective end time as the target effective end time; and generating a target effective time period based on the target effective start time and the target effective end time.
[0108] Specifically, the target effective time period can be generated by the following code:
[0109] private Pair<Date,Date> getTimeIntersection(Pair<Date,Date> datePair1,Pair<Date,Date> datePair2){
[0110] if(!isIntersection(datePair1,datePair2))
[0111] {return null;}
[0112] Date startTime=datePair1.getKey().getTime()>datePair2.getKey().getTime()? datePair1.getKey():datePair2.getKey();
[0113] Date endTime=datePair1.getValue().getTime() <datePair2.getValue().getTime()?datePair1.getValue():datePair2.getValue();
[0114] return new Pair<>(startTime,endTime);}
[0115] Where, getTimeIntersection is a function for getting the intersection time period, datePair1 refers to time period A, datePair2 refers to time period B, isIntersection refers to calling the isIntersection method to check whether datePair1 and datePair2 have an intersection, Date startTime is used to compare the start time of time period A with the start time of time period B, and select the farthest time node as the target effective start time, Date endTime is used to compare the end time of time period A with the end time of time period B, and select the nearest time node as the target effective end time.
[0116] In an embodiment of the present invention, by matching the current strategy advertising pre-sale time period set, the pre-sale advertising time period corresponding to the currently delivered advertisement can be determined, and by calculating the current strategy effective time period, the effective time period of the currently delivered advertising strategy determined during the pre-sale configuration can be determined, thereby facilitating the avoidance of messy advertising strategy delivery and improving the flexibility of advertising space allocation.
[0117] S4. Match the scheduling strategy advertisement pre-sale time period set corresponding to the scheduled advertisement information from the pre-sale configuration file, calculate the scheduling strategy effective time period of the scheduled advertisement information according to the scheduling strategy advertisement pre-sale time period set, and obtain the scheduling strategy effective time period.
[0118] In detail, the scheduling strategy effective time period refers to the time period during which the advertisements to be delivered in the future are effective in the pre-sale configuration file.
[0119] In an embodiment of the present invention, matching the scheduled advertising strategy pre-sale time period set corresponding to the scheduled advertising information from the pre-sale configuration file includes: performing a strategy analysis on the scheduled advertising information to obtain a future allocation strategy; matching the scheduled advertising strategy pre-sale time period set corresponding to the future allocation strategy from the pre-sale configuration file.
[0120] In detail, the strategy analysis method is the same as the method of performing strategy analysis on the current advertising information in the above step S1 to obtain the current advertising allocation strategy. The future allocation strategy refers to the allocation strategy of advertisements that need to be delivered in the future time period, and the future strategy time period refers to the effective time period of the advertisements that need to be delivered in the future.
[0121] Specifically, the method for matching the future pre-sale time period set is consistent with the method for matching the current strategy advertising pre-sale time period set in the above step S3, and the method for calculating the scheduling strategy effective time period is consistent with the method for calculating the current strategy effective time period in the above step S3.
[0122] In the embodiment of the present invention, by calculating the effective time period of the scheduling strategy, the effective time period of the advertisements to be delivered in the future in the pre-sale configuration file can be determined, thereby facilitating avoiding messy advertising strategy delivery and improving the flexibility of advertising space allocation.
[0123] S5. Allocate advertising space according to the effective time period of the current strategy and the effective time period of the scheduling strategy.
[0124] In an embodiment of the present invention, the current policy effective time period and the scheduling policy effective time period are the time periods in which the pre-sold advertising spaces are actually effective. In order to prevent users from feeling disconnected advertising switching, it is necessary to avoid allocating advertising spaces within the current policy effective time period and the scheduling policy effective time period.
[0125] In detail, allocating advertisement slots according to the effective time period of the current policy and the effective time period of the scheduling policy refers to allocating advertisement slots in the remaining time periods other than the effective time period of the current policy and the effective time period of the scheduling policy.
[0126] In an embodiment of the present invention, by allocating ad slots according to the effective time period of the current strategy and the effective time period of the scheduling strategy, it is possible to avoid users feeling fragmented advertising switching, so that switching between different allocation strategies and modes will not affect user purchases, achieving seamless switching, improving user experience, and thus increasing the flexibility of ad slot allocation.
[0127] The embodiments of the present invention can conveniently determine the subsequent advertising arrangements of the system by extracting the current advertising information and the scheduled advertising information, prevent the advertisements that need to be allocated from conflicting with the already scheduled advertisements, thereby improving the flexibility of advertising space allocation; by performing strategy analysis, the allocation strategy of the advertisements being delivered can be obtained, thereby facilitating the implementation of the strategy consistency of allocating advertisements; by obtaining the current advertisement allocation strategy time period, the effective time corresponding to the existing advertisement delivery strategy can be determined; by matching the current strategy advertisement pre-sale time period set, the pre-sale advertisement time period corresponding to the currently delivered advertisement can be determined; by calculating the current strategy effective time period, the effective time period of the currently delivered advertisement strategy determined during the pre-sale configuration can be determined, thereby facilitating the avoidance of messy advertisement strategy delivery and improving the flexibility of advertisement space allocation.
[0128] By calculating the effective time period of the scheduling strategy, it is possible to determine the effective time period of the advertisements to be delivered in the future in the pre-sale configuration file, thereby facilitating the avoidance of messy advertising strategy delivery and improving the flexibility of advertising space allocation. By allocating advertising space according to the effective time period of the current strategy and the effective time period of the scheduling strategy, it is possible to avoid users from feeling the fragmented advertising switching, so that switching between different allocation strategies and modes will not affect the user's purchase, achieving seamless switching, improving user experience, and thus improving the flexibility of advertising space allocation. Therefore, the advertising space allocation method based on time intersection proposed in the present invention can solve the problem of low flexibility in advertising space allocation.
[0129] like Figure 4 , which is a device architecture diagram of an advertisement slot allocation device based on time intersection provided by an embodiment of the present invention.
[0130] The device 100 for allocating advertisement slots based on time intersection of the present invention can be installed in an electronic device. According to the functions to be implemented, the device 100 for allocating advertisement slots based on time intersection can include an information acquisition module 101, a strategy analysis module 102, a real-time matching module 103, a future matching module 104 and an advertisement allocation module 105. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by a processor of an electronic device and can complete fixed functions, and is stored in the memory of the electronic device.
[0131] In this embodiment, the functions of each module / unit are as follows:
[0132] The information acquisition module 101 is used to obtain the name of the current advertisement from the preset advertisement delivery process, and extract the current advertisement information and the scheduled advertisement information of the advertisement to be released after the current advertisement from the preset advertisement information database according to the current advertisement name;
[0133] The strategy analysis module 102 is used to perform strategy analysis on the current advertisement information to obtain the current advertisement allocation strategy and obtain the current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy;
[0134] The real-time matching module 103 is used to match the current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from the preset pre-sale configuration file, and calculate the current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period;
[0135] The future matching module 104 is used to match the scheduled advertising pre-sale time period set corresponding to the scheduled advertising information from the pre-sale configuration file, calculate the scheduled advertising pre-sale time period of the scheduled advertising information according to the scheduled advertising pre-sale time period set, and obtain the scheduled advertising pre-sale time period;
[0136] The advertisement allocation module 105 is used to allocate advertisement slots according to the effective time period of the current strategy and the effective time period of the scheduling strategy.
[0137] In detail, each module described in the device 100 for allocating advertisement slots based on time intersection in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The same technical means as the advertising space allocation method based on time intersection described in the invention can produce the same technical effects, so I will not go into details here.
[0138] like Figure 5 FIG. 1 is a schematic diagram of the structure of an electronic device for implementing an advertisement slot allocation method based on time intersection provided by an embodiment of the present invention.
[0139] The electronic device 1 may include a processor 10, a memory 11, a communication bus 12, and a communication interface 13, and may also include a computer program stored in the memory 11 and executable on the processor 10, such as an advertisement slot allocation program based on time intersection.
[0140] In some embodiments, the processor 10 may be composed of an integrated circuit, for example, a single packaged integrated circuit, or a plurality of packaged integrated circuits with the same or different functions, including one or more central processing units (CPUs), microprocessors, digital processing chips, graphics processors, and combinations of various control chips. The processor 10 is the control core (ControlUnit) of the electronic device, and uses various interfaces and lines to connect the various components of the entire electronic device, and executes or executes programs or modules stored in the memory 11 (for example, executing an advertising slot allocation program based on time intersection, etc.), and calls data stored in the memory 11 to execute various functions of the electronic device and process data.
[0141] The memory 11 includes at least one type of readable storage medium, and the readable storage medium includes a flash memory, a mobile hard disk, a multimedia card, a card-type memory (for example, an SD or DX memory, etc.), a magnetic memory, a disk, an optical disk, etc. In some embodiments, the memory 11 may be an internal storage unit of an electronic device, such as a mobile hard disk of the electronic device. In other embodiments, the memory 11 may also be an external storage device of an electronic device, such as a plug-in mobile hard disk, a smart memory card (Smart Media Card, SMC for short), a secure digital (Secure Digital, SD for short) card, a flash card, etc. equipped on the electronic device. Further, the memory 11 may also include both an internal storage unit of the electronic device and an external storage device. The memory 11 may not only be used to store application software and various types of data installed in the electronic device, such as the code of an advertisement slot allocation program based on time intersection, but may also be used to temporarily store data that has been output or is to be output.
[0142] The communication bus 12 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The bus is configured to realize connection and communication between the memory 11 and at least one processor 10, etc.
[0143] The communication interface 13 is used for communication between the above-mentioned electronic device and other devices, including a network interface and a user interface. Optionally, the network interface may include a wired interface and / or a wireless interface (such as a WI-FI interface, a Bluetooth interface, etc.), which is generally used to establish a communication connection between the electronic device and other electronic devices. The user interface may be a display (Display), an input unit (such as a keyboard (Keyboard)), and optionally, the user interface may also be a standard wired interface, a wireless interface. Optionally, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, and an organic light-emitting diode (Organic Light-Emitting Diode, referred to as OLED) touch device, etc. Among them, the display may also be appropriately referred to as a display screen or a display unit, which is used to display information processed in the electronic device and to display a visual user interface.
[0144] The figure only shows an electronic device with components. Those skilled in the art will understand that the structure shown in the figure does not constitute a limitation on the electronic device, and may include fewer or more components than shown in the figure, or combine certain components, or arrange the components differently.
[0145] For example, although not shown, the electronic device may also include a power source (such as a battery) for supplying power to each component. Preferably, the power source may be logically connected to the at least one processor 10 through a power management device, so that the power management device can realize functions such as charging management, discharging management, and power consumption management. The power source may also include one or more DC or AC power sources, recharging devices, power failure detection circuits, power converters or inverters, power status indicators, and other arbitrary components. The electronic device may also include a variety of sensors, Bluetooth modules, Wi-Fi modules, etc., which will not be repeated here.
[0146] It should be understood that the embodiment is for illustration only and the scope of the patent application is not limited to this structure.
[0147] The text analysis program based on length optimization stored in the memory 11 of the electronic device 1 is a combination of multiple instructions. When running in the processor 10, it can achieve:
[0148] Obtaining the name of the currently placed advertisement from a preset advertisement placing process, and extracting the currently placed advertisement information and the scheduled placement advertisement information of the advertisement to be placed after the currently placed advertisement from a preset advertisement information database according to the currently placed advertisement name;
[0149] Performing a strategy analysis on the current advertisement information to obtain a current advertisement allocation strategy, and obtaining a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy;
[0150] Matching a current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file, and calculating a current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period;
[0151] Matching a scheduling strategy advertisement pre-sale time period set corresponding to the scheduled advertisement information from the pre-sale configuration file, and calculating a scheduling strategy effective time period of the scheduled advertisement information according to the scheduling strategy advertisement pre-sale time period set;
[0152] Advertisement slots are allocated according to the current policy effective time period and the scheduling policy effective time period.
[0153] Specifically, the specific implementation method of the processor 10 for the above instructions can refer to the description of the relevant steps in the corresponding embodiment of the accompanying drawings, which will not be repeated here.
[0154] Furthermore, if the module / unit integrated in the electronic device 1 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. The computer-readable storage medium can be volatile or non-volatile. For example, the computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, and a read-only memory (ROM).
[0155] The present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor of an electronic device, the computer program can implement:
[0156] Obtaining the name of the currently placed advertisement from a preset advertisement placing process, and extracting the currently placed advertisement information and the scheduled placement advertisement information of the advertisement to be placed after the currently placed advertisement from a preset advertisement information database according to the currently placed advertisement name;
[0157] Performing a strategy analysis on the current advertisement information to obtain a current advertisement allocation strategy, and obtaining a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy;
[0158] Matching a current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file, and calculating a current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period;
[0159] Matching a scheduling strategy advertisement pre-sale time period set corresponding to the scheduled advertisement information from the pre-sale configuration file, and calculating a scheduling strategy effective time period of the scheduled advertisement information according to the scheduling strategy advertisement pre-sale time period set;
[0160] Advertisement slots are allocated according to the current policy effective time period and the scheduling policy effective time period.
[0161] In the several embodiments provided by the present invention, it should be understood that the disclosed devices, apparatuses and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0162] The modules described as separate components may or may not be physically separated, and the components shown as modules 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 modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0163] In addition, each functional module in each embodiment of the present invention 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 hardware plus software functional modules.
[0164] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0165] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0166] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application device that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0167] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or devices stated in the device embodiment can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0168] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for allocating advertising space based on time intersection, characterized in that: The method comprises: Obtaining the name of the currently placed advertisement from a preset advertisement placing process, and extracting the currently placed advertisement information and the scheduled placement advertisement information of the advertisement to be placed after the currently placed advertisement from a preset advertisement information database according to the currently placed advertisement name; Performing a strategy analysis on the current advertisement information to obtain a current advertisement allocation strategy, and obtaining a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy; Matching a current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file, and calculating a current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period; Matching a scheduling strategy advertisement pre-sale time period set corresponding to the scheduled advertisement information from the pre-sale configuration file, and calculating a scheduling strategy effective time period of the scheduled advertisement information according to the scheduling strategy advertisement pre-sale time period set; Advertisement slots are allocated according to the current policy effective time period and the scheduling policy effective time period.
2. The method for allocating advertisement slots based on time intersection as claimed in claim 1, characterized in that: The performing of a strategy analysis on the currently placed advertisement information to obtain a current advertisement allocation strategy includes: Performing format analysis on the currently placed advertisement information to obtain the advertisement information format; Parsing the currently placed advertisement information according to the advertisement information format to obtain current advertisement parsing information; Extracting the time period strategy from the current advertisement analysis information to obtain the current advertisement time period strategy; Extracting the allocation mode of the current advertisement parsing information to obtain the current advertisement allocation mode; A current advertisement allocation strategy is generated according to the current advertisement period strategy and the current advertisement allocation mode.
3. The method for allocating advertisement slots based on time intersection as claimed in claim 1, characterized in that: The step of matching a current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file includes: Parsing the pre-sale configuration file to obtain pre-sale advertisement information; Matching the current strategy pre-sale information corresponding to the current advertisement allocation strategy from the pre-sale advertisement information; Perform pre-sale time matching on the current strategy pre-sale information to obtain a pre-sale effective start time set and a pre-sale effective period set; A current strategy advertisement pre-sale time period set is generated according to the pre-sale effectiveness start time set and the pre-sale effectiveness period set.
4. The method for allocating advertisement slots based on time intersection as claimed in claim 1, characterized in that: The calculating the current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period includes: Extracting the current advertisement strategy start time and the current advertisement strategy end time from the current advertisement allocation strategy time period; Selecting the current strategy advertisement pre-sale time periods in the current strategy advertisement pre-sale time period set one by one, and extracting the pre-sale effective start time and the pre-sale effective end time from the selected current strategy advertisement pre-sale time periods; Determine whether the end time of the current advertising strategy is before the pre-sale effective start time; If yes, returning to the step of selecting the current strategic advertising pre-sale time periods in the current strategic advertising pre-sale time period set one by one; If not, determining whether the current advertising strategy start time is after the pre-sale effective end time; If yes, returning to the step of selecting the current strategic advertising pre-sale time periods in the current strategic advertising pre-sale time period set one by one; If not, then generate the target effective time period based on the current advertising strategy start time, the current advertising strategy end time, the pre-sale effective start time and the pre-sale effective end time, and gather the target effective time periods corresponding to all the current strategy advertising pre-sale time periods in the current strategy advertising pre-sale time period into the current strategy effective time period.
5. The method for allocating advertisement slots based on time intersection as claimed in claim 4, characterized in that: The generating a target effective time period according to the current advertising strategy start time, the current advertising strategy end time, the pre-sale effective start time, and the pre-sale effective end time includes: Obtain the current time, and take the time node farthest from the current time between the current advertising strategy start time and the pre-sale effective start time as the target effective start time; The time node closest to the current time between the current advertising strategy end time and the pre-sale effective end time is used as the target effective end time; A target effective time period is generated according to the target effective start time and the target effective end time.
6. The method for allocating advertisement slots based on time intersection as claimed in claim 1, characterized in that: The step of matching the scheduled advertising pre-sale time period set corresponding to the scheduled advertising information from the pre-sale configuration file includes: Performing a strategic analysis on the scheduled advertising information to obtain a future allocation strategy; A scheduling strategy advertisement pre-sale time period set corresponding to the future allocation strategy is matched from the pre-sale configuration file.
7. The method for allocating advertisement slots based on time intersection as claimed in claim 1, characterized in that: The extracting the current advertisement information and the scheduled advertisement information from a preset advertisement information database according to the current advertisement name includes: Acquire the current time, and generate a current information query instruction according to the name of the current advertisement and the current time; Querying the current advertisement information from a preset advertisement information database according to the current information query instruction; Generate a query instruction for scheduling advertisement delivery according to the current time; According to the principle of proximity, the target scheduling start time is queried from the advertisement information database using the scheduled advertisement query instruction, and the advertisement name corresponding to the target scheduling start time is used as the scheduled advertisement name; Generate a schedule information query instruction according to the scheduled advertisement name and the target schedule start time; The scheduled advertisement information is queried from the advertisement information database according to the schedule information query instruction.
8. An advertising space allocation device based on time intersection, characterized in that: The device comprises: An information acquisition module, used to obtain the name of the current advertisement from a preset advertisement delivery process, and extract the current advertisement information and the scheduled advertisement information of the advertisement to be released after the current advertisement from a preset advertisement information database according to the current advertisement name; A strategy analysis module, used to perform strategy analysis on the current advertisement information, obtain a current advertisement allocation strategy, and obtain a current advertisement allocation strategy time period corresponding to the current advertisement allocation strategy; A real-time matching module, used to match the current strategy advertisement pre-sale time period set corresponding to the current advertisement allocation strategy from a preset pre-sale configuration file, and calculate the current strategy effective time period according to the current strategy advertisement pre-sale time period set and the current advertisement allocation strategy time period; A future matching module is used to match the scheduling strategy advertisement pre-sale time period set corresponding to the scheduled advertisement information from the pre-sale configuration file, calculate the scheduling strategy effective time period of the scheduled advertisement information according to the scheduling strategy advertisement pre-sale time period set, and obtain the scheduling strategy effective time period; The advertisement allocation module is used to allocate advertisement slots according to the effective time period of the current strategy and the effective time period of the scheduling strategy.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and, a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the advertising slot allocation method based on time intersection as described in any one of claims 1 to 7.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the advertising slot allocation method based on time intersection as described in any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Advertisement putting method and device
CN114926205A
Advertisement plan generation method and device, equipment and storage medium
CN118096260A
Advertisement putting method and system, electronic equipment and readable storage medium
CN118735592A