Summary of the invention
In order to solve the problems of the technologies described above, the invention provides a kind of method of carrying out advertisement putting according to Internet video duration coupling, it may further comprise the steps:
Step (1) user opens the Internet video broadcast page and carries out the Internet video broadcast, and network video player sends a network video advertisement request to the network video advertisement system;
After step (2) network video advertisement system receives the network video advertisement request, the V-L that searches in the database according to the duration parameters value of the current network video in the network video advertisement request shows, obtain the maximum duration L of network video advertisement that the current network video can be thrown in, the V-R that searches in the database according to current network video duration again shows, the front subsides network video advertisement location sets P that acquisition current network video can be thrown in and the range attribute of each position;
Array of step (3) initialization, travel through network video advertisement set to be put for pasting the position before each, a network video advertisement to be put that satisfies fixed condition is put into array, until the total duration of network video advertisement of putting into the to be put network video advertisement identical with the front subsides number of positions of described front subsides location sets or putting into array has reached maximum duration restrictive condition;
Step (4) returns to network video player with the all-network video ads of depositing in the array.
Further, comprise parameter described in the step (1) in the network video advertisement request: the category attribute under the duration of the current Internet video id that watches, Internet video, the Internet video, uploader ID, the user cookie of Internet video.
Further, user cookie comprises: the network video advertisement that the parameter of the unique identity of identifying user, sign have the user to watch frequency control to require has been watched number of times by the active user parameter.
Further, the fixed condition described in the step (3) is as follows: directed condition restriction, the directed condition of the network video advertisement that namely sets in advance; Total duration restriction, the duration sum of the total duration of the network video advertisement that has found of depositing in the array and the network video advertisement of current taking-up is not more than the current network video can throw the total duration of front subsides network video advertisement; The Range attribute limits, the range attribute of the network video advertisement of current taking-up is not less than the range property value of current front subsides position.
Further, if the network video advertisement of current taking-up does not meet above-mentioned condition, then again from network video advertisement set to be put, seek next network video advertisement and judge.
Further, default is N time for network video advertisement per minute injected volume, and the actual injected volume of finishing is M time in x minute, and the range value in x minute is r (x), then has:
During x=1, r (x)=DEFAULT_R, the range value was initial value DEFAULT_R in namely first minute;
X〉1 o'clock, if N〉M, then r (x)=min (r (x-1)+1, MAX_R); If N<=M, then r (x)=max (r (x-1)-1,0); MAX_R is the maximum of default range value.
The present invention also provides a kind of and has carried out the device that the advertisement coupling is thrown in according to the Internet video duration, and it comprises with lower device:
Network video player contains the Webpage that Internet video is play when the user opens, and when carrying out the Internet video broadcast, is used for sending a network video advertisement request to the network video advertisement system;
The network video advertisement system, receive the network video advertisement request after, according to the duration of the current network video in the network video advertisement request
Parameter value is searched the V-L table in the database, obtain the maximum duration L of network video advertisement that the current network video can be thrown in, the V-R that searches in the database according to current network video duration again shows, the front subsides network video advertisement location sets P that acquisition current network video can be thrown in and the range attribute of each position; Array of initialization, travel through network video advertisement set to be put for pasting the position before each, a network video advertisement to be put that satisfies fixed condition is put into array, until the total duration of network video advertisement of putting into the to be put network video advertisement identical with the front subsides number of positions of described front subsides location sets or putting into array has reached maximum duration restrictive condition; The all-network video ads of depositing in the array is returned to network video player.
Further, the parameter in the described network video advertisement hyperlink request address comprises the duration, the category attribute under the Internet video, uploader ID, the user cookie of Internet video of the current Internet video id that watches, Internet video.
Further, user cookie comprises: the cookie of the unique identity of identifying user, sign has the user to watch the cookie of viewed number of times of network video advertisement that frequency control requires.
Further, the condition that the network video advertisement system is used for judgement is as follows: directed condition restriction namely sets in advance the directed condition of network video advertisement in database; Total duration restriction, the duration sum of the total duration of the network video advertisement that has found of depositing in the array and the network video advertisement of current taking-up is not more than the current network video can throw the total duration of front subsides network video advertisement; The Range attribute limits, the range attribute of the network video advertisement of current taking-up is not less than the range property value of current front subsides position.
Further, the restrictive condition of network video advertisement system has: if for current front subsides position, judge that the network video advertisement obtain does not meet above-mentioned condition, then the network video advertisement system again seeks next network video advertisement and judges from network video advertisement set to be put.
Further, default is N time for network video advertisement per minute injected volume, and the actual injected volume of finishing is M time in x minute, and the range value in x minute is r (x), then has:
During x=1, r (x)=DEFAULT_R, the range value was initial value DEFAULT_R in namely first minute;
X〉1 o'clock, if N〉M, then r (x)=min (r (x-1)+1, MAX_R); If N<=M, then r (x)=max (r (x-1)-1,0); MAX_R is the maximum of default range value.
Embodiment
The invention will be further described below in conjunction with the drawings and specific embodiments.
The invention provides a kind of mechanism of carrying out advertisement putting according to Internet video duration coupling, it is divided into several intervals different in size with the Internet video on the Online Video website according to duration, then the front subsides network video advertisement of stipulating to throw in each interval (network video advertisement of namely before formal Internet video is play, playing, unless back specified otherwise, all refer to front subsides network video advertisement) the total duration of number and these network video advertisements, and it is interval dynamically to adjust the Internet video duration that this network video advertisement can throw in according to the current input situation of each network video advertisement, throw on the long Internet video of duration the purpose of as much as possible few throwing or the network video ads of not casting net on the shorter Internet video of duration thereby reach as much as possible that duration is long network video advertisement.
For realizing above-mentioned functions, need to carry out a series of definition:
Get n point: x1 in the positive axis of number axis, x2 ... xn is divided into n+1 interval different in size with positive axis: [0, x1), [x1, x2) ..., [xn, + ∞), for any positive integer i, interval [xi, xi+1] represents that duration is in the set of xi to all videos between the xi+1 on certain website;
The user experiences in order to keep preferably, is set to first interval [0, x1] without network video advertisement interval; Be that duration is less than not allowing the network video ads of casting net on the all-network video of x1;
For any positive integer i ∈ [1, n], [xi between the setting district, xi+1] in the network video advertisement duration upper limit that can watch of Internet video: Li, (this value can configure in the system backstage) concrete meaning represents: when certain Internet video duration is between xi~xi+1, can not be surpassed Li in this Internet video by the network video advertisement duration of being play before formally playing so; Concrete configuration can represent with the form (being called for short later on the V-L table) of shape such as following form:
The Internet video duration is interval |
The network video ads duration of can casting net |
[x1,x2) |
L1 |
[x2,x3) |
L2 |
…… |
…… |
[xi,xi+1) |
Li |
…… |
…… |
[xn,+∞) |
Ln |
Suppose to exist set A { a1, a2, ai, am}, represent in certain network video advertisement system current throw all before paste the set that network video advertisement forms, define respectively the attribute of a range by name for each network video advertisement in the set, range is a nonnegative integer, span is [0, MAX_R], and wherein MAX_R is a constant, the initial value of range acquiescence is DEFAULT_R, also be a constant, it satisfies following features: 0<=DEFAULT_R<=MAX_R, these two constants can manually be set in system in the specific implementation.The effect of range is the tensity of a current input task of network video advertisement of sign, and the range value of a network video advertisement is larger, and then the current input task performance of this network video advertisement is poorer; The range property value is less, and then the current input task of this network video advertisement performance is better.When reality was thrown in, the range property value of network video advertisement can constantly fluctuate along with the performance of the task of input, and concrete fluctuation rule can be described as follows:
The network video advertisement system is carrying out network video advertisement when throwing in, according to every day the network video advertisement capacity curve will throw in task subdivision to per minute (not necessarily 1 minute cycle can determine according to actual conditions during implementation).Such as certain network video advertisement a, default per minute injected volume is N time within certain period, and the actual injected volume of finishing is M time in x minute, and the range value in x minute is r (x), then has:
During x=1, r (x)=DEFAULT_R, the range value was initial value DEFAULT_R in namely first minute;
X〉1 o'clock, if N〉M, then r (x)=min (r (x-1)+1, MAX_R); If N<=M, then r (x)=max (r (x-1)-1,0);
In the top expression formula, the function of max and min function is respectively to return 2 higher value and smaller values in the parameter.
The implication of top expression formula: if do not finish the input task upper one minute then current minute range value adds 1 for the range value of upper one minute, if the range value that adds after 1 exceeds the maximum MAX_R of setting, then this range value is adjusted into MAX_R; If the task of upper one minute is fulfiled ahead of schedule, then current minute range value subtracts 1 for the range value of upper one minute, if the range value that subtracts after 1 is lower than predetermined minimum 0, then gets 0.
Interval for the Internet video duration of the network video ads of can casting net arbitrarily, corresponding range value is specified in all positions that can throw front subsides to it respectively, and its span is [0, MAX_R].Concrete configuration information can represent with the form (being called for short later on the V-R table) of shape such as following form.Wherein M represents the Internet video maximum front subsides network video advertisement numbers that allow input before formal broadcast the on the website.Wherein the R value in the following table all can configure in the system backstage and adjust.
For certain interval [xi, xi+1), the range value of pasting the position before its k is Rik, the concrete meaning of Rik is: when certain Internet video duration at interval [xi, when xi+1) interior, paste the position before the k of this Internet video and can throw in the range property value and paste network video advertisement more than or equal to before any one of Rik.
Further, can throw in the network video advertisement number progressively increases along with the increase of Internet video duration.As duration interval [x1, x2) in video, paste before only allowing to throw in 1, the range value of pasting before this be R11, the value of subsides position all is sky before the 2nd~M; Duration interval [x2, x3) in video, paste before only allowing to throw 2, the range value of pasting before these 2 is respectively R21 and R22, the value of pasting the position before the 3rd~M all is sky.
The network video advertisement launch process of video duration Network Based is described below in conjunction with actual scene:
(1) before the user opens one section Internet video of Internet video broadcast page broadcast, network video player can send a network video advertisement request to ad system first, comprised the current Internet video id that watches in the network video advertisement request, the duration of Internet video, category attribute under the Internet video, the uploader ID of Internet video, user cookie(wherein comprises: the cookie of the unique identity of identifying user, sign has the user to watch the cookie of viewed number of times of network video advertisement that frequency control requires) etc. series of parameters, following table has been showed the part required parameter:
The member Name |
Implication |
Vid |
The video id of current broadcast |
Vlen |
The video duration (take second as unit) |
Ct |
One-level category attribute under the video |
Cs |
Secondary category attribute under the video |
Uid |
The user id of uploaded videos |
Ip |
The current accessed User IP |
… |
… |
Keywords |
Keyword |
(2) after the network video advertisement system receives the network video advertisement request, obtain parameter and cookie information subsidiary in the network video advertisement request, then the duration vLen according to current video removes to search the V-L table, obtain the maximum duration L of network video advertisement that current video can be thrown in, remove to search V-R table according to current video duration vLen again, obtain to paste the position before front subsides network video advertisement location sets P(that current video can throw in that is to say the network video advertisement that can throw in) and the range attribute of each position;
(3) array ads of initialization is used for depositing network video advertisement; For each position among the set P, the traverses network video ads is thrown in set and is put into array in order to seek a network video advertisement to be put that satisfies fixed condition, before i, paste the position as example, according to the required parameter of obtaining in the step (1) in network video ads set to be cast net, search one satisfy simultaneously below the network video advertisement of 3 restrictive conditions:
Directed condition restriction: satisfy the directed condition of network video advertisement, such as directed city and category attribute, directed certain keyword etc.; This orientation condition is arranged by the system backstage, and for example a certain network video advertisement input is associated with town, category attribute, the specific directory, and this condition exists in the database.
Total duration restriction: the duration sum of the total duration of the network video advertisement that has found of depositing in the ads array and the network video advertisement of current taking-up is not more than current video can throw the total duration of front subsides network video advertisement;
The Range attribute limits: the range attribute of the network video advertisement a of current taking-up is not less than the front range property value that pastes the position of i; If for this i position, the current network video advertisement that finds does not meet one of above-mentioned 3 conditions, then again seeks next network video advertisement from network video advertisement set to be put and carries out condition judgment.Until the total duration of network video advertisement of putting into the to be put network video advertisement identical with the front subsides number of positions of described front subsides location sets or putting into array has reached maximum duration restrictive condition (for example in the situation that paste the location network video ads before can throwing in 2, a network video advertisement that takes out has reached maximum duration restrictive condition, that is to say, judge that the next network video advertisement in the set to be put all cannot be put into array).
(4) the all-network video ads of depositing among the array ads is returned to player.
The flow chart of above-mentioned steps as shown in Figure 1.
Technical solution of the present invention can guarantee to throw in the long network video advertisement of duration in the long Internet video of duration, throws in shorter network video advertisement or the network video ads of not casting net fully of duration on the shorter Internet video of duration.Whole process is automatic adjustment, has improved user's experience.
Example one: the network video advertisement on certain video website is thrown in
As shown in the table, be the V-L table configuration information of certain video website:
Wherein duration interval [0,1) in video belong to interval without network video advertisement, do not allow to throw in any video network video ads; All the other each intervals, along with progressively moving to right of interval, the network video advertisement duration that can throw also progressively increases;
Setting in the reference in the table, design corresponding V-R table, specifying information such as following table:
As seen from the above table, the value of MAX_R is 11, i.e. all fluctuations between 0~11 of the range attribute of all-network video ads.
At first, the initial range value DEFAULT_R that arranges in the supposing the system is set to 0, so according to top V-L table and V-R table:
System starts rear initial the 1st minute, and network video advertisement is only thrown in the first front subsides in Internet video more than 20 minutes.Afterwards each minute, system all can adjust the range value of each network video ads to be cast net, if it is relatively poor that certain network video advertisement is thrown in situation, then along with its range value constantly increases, the position range that can throw in is also progressively to the shorter Internet video expansion of duration; If it is better that this network video advertisement is thrown in the task performance, then along with its range value constantly reduces, it is interval that the input scope also progressively is retracted into the long Internet video of duration, thus the input that has guaranteed network video advertisement as far as possible on the long Internet video of duration " inclination ".
The above is preferred embodiment of the present invention only, is not limited to the invention, all any modifications of making within the invention spirit and principle, is equal to replacement and improvement etc., all is contained within protection scope of the present invention.