Summary of the invention
In order to solve above-mentioned technical problem, the invention provides one and carry out advertisement putting according to online video time length coupling
Method, it comprises the following steps:
Step (1) user opens the Internet video broadcasting page and carries out Internet video broadcasting, and network video player is to network
Video advertisement system sends a network video advertisement request;
After step (2) network video advertisement system receives network video advertisement request, ask according to network video advertisement
In the duration parameters value of current network video search the V-L table in data base, it is thus achieved that the net that current network video can be thrown in
Network video ads maximum duration L, searches the V-R table in data base further according to current network video duration, it is thus achieved that current network regards
Frequently front patch network video advertisement location sets P can thrown in and the range attribute of each position;
Step (3) initializes an array, pastes position traversal network video advertisement set to be put before each, will be full
Foot fixed condition a network video advertisement to be put put in array, until put into described before patch location sets in before
The patch identical network video advertisement to be put of number of positions or put into the total duration of the network video advertisement in array and reached
Maximum duration restrictive condition;
The all-network video ads deposited in array is returned to network video player by step (4).
Further, the request of network video advertisement described in step (1) includes parameter: currently viewing Internet video id,
Category attribute belonging to the duration of Internet video, Internet video, uploader ID of Internet video, user cookie.
Further, user cookie comprises: mark user's unique identities parameter, be identified with user watch the frequency control want
The network video advertisement asked has been watched the parameter of number of times by active user.
Further, the fixed condition described in step (3) is as follows: stereotactic conditions limits, the Internet video i.e. pre-set
Advertisement stereotactic conditions;Total duration limits, the total duration of the network video advertisement found deposited in array and current taking-up
The duration sum of network video advertisement is not more than the patch total duration of network video advertisement before current network video can be thrown;Range attribute
Limiting, the range attribute of the network video advertisement currently taken out pastes the range property value of position before being not less than currently.
Further, if the current network video advertisement taken out does not meets above-mentioned condition, the most again from network video to be put
Advertising aggregator is found next network video advertisement frequently judge.
Further, presetting injected volume per minute for network video advertisement is n times, actually accomplishes input in xth minute
Amount is for M time, and the range value in xth minute is r (x), then have:
During x=1, r (x)=DEFAULT_R, within i.e. first minute, range value is initial value DEFAULT_R;
During x > 1, 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.
Present invention also offers a kind of device carrying out advertising matches input according to online video time length, it includes following dress
Put:
Network video player, when user opens the Webpage play containing Internet video, carries out Internet video broadcasting
Time, for sending a network video advertisement request to network video advertisement system;
Network video advertisement system, after receiving network video advertisement request, working as in asking according to network video advertisement
The duration of front Internet video
Parameter value searches the V-L table in data base, it is thus achieved that the network video advertisement that current network video can be thrown in is maximum
Duration L, searches the V-R table in data base further according to current network video duration, it is thus achieved that before current network video can be thrown in
Patch network video advertisement location sets P and the range attribute of each position;Initialize an array, before each, paste position
Put traversal network video advertisement set to be put, the network video advertisement to be put meeting fixed condition is put into array
In, until putting into the to be put network video advertisement identical with the front patch number of positions in described front patch location sets or putting into
The total duration of network video advertisement in array has been maxed out duration restrictive condition;The all-network video will deposited in array
Advertisement returns to network video player.
Further, the parameter in described network video advertisement hyperlink request address include currently viewing Internet video id,
Category attribute belonging to the duration of Internet video, Internet video, uploader ID of Internet video, user cookie.
Further, user cookie comprises: the cookie of mark user's unique identities, is identified with user and watches frequency control
The network video advertisement required is by the cookie of viewing number of times.
Further, network video advertisement system is as follows for the condition judged: stereotactic conditions limits, and is i.e. set in advance in number
According to the network video advertisement stereotactic conditions in storehouse;Total duration limits, and the network video advertisement found deposited in array is total
Duration is not more than patch network video advertisement before current network video can be thrown with the duration sum of the current network video advertisement taken out
Total duration;Range attribute limits, and the range attribute of the network video advertisement currently taken out pastes position before current
Range property value.
Further, the restrictive condition of network video advertisement system has: if pasting position before current, it is judged that the net of acquisition
Network video ads does not meets above-mentioned condition, then network video advertisement system is found again from network video advertisement set to be put
Next network video advertisement judges.
Further, presetting injected volume per minute for network video advertisement is n times, actually accomplishes input in xth minute
Amount is for M time, and the range value in xth minute is r (x), then have:
During x=1, r (x)=DEFAULT_R, within i.e. first minute, range value is initial value DEFAULT_R;
During x > 1, 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.
Detailed description of the invention
Below in conjunction with the drawings and specific embodiments, the invention will be further described.
The invention provides a kind of mechanism carrying out advertisement putting according to online video time length coupling, it is by Online Video net
Internet video on standing is divided into several intervals different in size according to duration, then specifies the front patch net that each interval can be thrown
Network video ads (network video advertisement i.e. play before formal Internet video is play, after unless specifically indicated, all refer to
Be front patch network video advertisement) the total duration of number and these network video advertisements, and according to each network video advertisement
Current input situation dynamically to adjust the online video time length that this network video advertisement can throw in interval, thus reach as much as possible
Network video advertisement longer for duration is thrown in the Internet video that duration is longer, the Internet video that duration is shorter to the greatest extent may be used
Can the few purpose thrown or do not throw network video advertisement in ground.
For realizing above-mentioned functions, need to carry out a series of definition:
The positive axis of number axis takes n point: x1, x2 ..., xn, positive axis is divided into n+1 district different in size
Between: [0, x1), [x1, x2) ..., [xn ,+∞), for any positive integer i, interval [xi, xi+1] represents that on certain website, duration exists
The set of all videos between xi to xi+1;
For keeping preferable Consumer's Experience, first interval [0, x1] is set to without network video advertisement interval;Immediately
The most do not allow to throw network video advertisement on the long all-network video less than x1;
For any positive integer i ∈ [1, n], set the Internet video that the Internet video in interval [xi, xi+1] may be viewed by
The advertisement duration upper limit: Li, (this value can configure in system background) concrete meaning represents: when certain online video time length exists
Time between xi~xi+1, then can not be surpassed by the network video advertisement duration play before formally playing in this Internet video
Cross Li;Concrete configuration can represent with the form (being called for short V-L table) of the most following form of shape later:
Online video time length is interval |
Network video advertisement duration can be thrown |
[x1,x2) |
L1 |
[x2,x3) |
L2 |
…… |
…… |
[xi,xi+1) |
Li |
…… |
…… |
[xn,+∞) |
Ln |
Assume to there is set A{a1, a2 ... ai ... am}, represent currently all throw in certain network video advertisement system
The set of front patch network video advertisement composition, defines an entitled range's respectively for each network video advertisement in set
Attribute, range is a nonnegative integer, and span is [0, MAX_R], and wherein MAX_R is a constant, range acquiescence
Initial value is DEFAULT_R, is also a constant, and it meets following features: 0≤DEFAULT_R≤MAX_R, the two constant
Can manually set in systems in the specific implementation.The effect of range is that one network video advertisement of mark currently throws in task
Tensity, the range value of a network video advertisement is the biggest, then the current input task of this network video advertisement completes feelings
Condition is the poorest;Range property value is the least, then currently to throw in task performance the best for this network video advertisement.When reality is thrown in,
The range property value of network video advertisement constantly can fluctuate along with the performance of the task of input, and concrete fluctuation rule can
Describe as follows:
Network video advertisement system is when carrying out network video advertisement and throwing in, according to network video advertisement capacity curve every day
By input task subdivision to (when being embodied as, the cycle is not necessarily 1 minute, can determine according to practical situation) per minute.Such as certain net
Network video ads a, presetting injected volume per minute within certain period is n times, and actually accomplishing injected volume in xth minute is M time,
Range value in xth minute is r (x), then have:
During x=1, r (x)=DEFAULT_R, within i.e. first minute, range value is initial value DEFAULT_R;
During x > 1, 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);
Above in expression formula, the function of max and min function is to return the higher value in 2 parameters and smaller value respectively.
The implication of expression formula above: if being not fully complete input task upper one minute, the range value of current minute is upper one
Minute range value add 1, if the range value after adding 1 beyond set maximum MAX_R, then this range value is adjusted to
MAX_R;If the task of upper one minute is fulfiled ahead of schedule, the range value that range value is upper one minute of the most current minute subtracts 1, as
Range value after fruit subtracts 1 is less than predetermined minimum 0, then take 0.
Interval for the online video time length of network video advertisement arbitrarily can be thrown, respectively to its all positions throwing front patch
Specifying corresponding range value, its span is [0, MAX_R].Concrete configuration information can be with the form of the most following form of shape
(being called for short V-R table) represents later.Wherein M represents that the Internet video on website at most allows the front patch thrown in before formal broadcasting
Network video advertisement number.Wherein the R value in following table all can configure in system background and be adjusted.
For certain is interval [xi, xi+1), the concrete meaning that range value is Rik, Rik pasting position before its kth is: when certain
Online video time length interval [xi, xi+1) interior time, paste position before the kth of this Internet video and can throw in range property value
More than or equal to Rik any one before paste network video advertisement.
Further, network video advertisement number can be thrown in be stepped up along with the increase of online video time length.Such as duration
Interval [x1, x2) in video, paste before only allowing to throw in 1, before this, range value of patch is R11, and before the 2nd~M patch position
Value is all empty;Duration interval [x2, x3) in video, paste before only allowing to throw 2, the range value of patch respectively R21 before these 2
And R22, the value pasting position before the 3rd~M is all empty.
Below in conjunction with actual scene description network video advertisement launch process based on online video time length:
(1) before user opens the Internet video broadcasting page one section of Internet video of broadcasting, network video player can be first
Send a network video advertisement request to ad system, network video advertisement request contains currently viewing Internet video
Category attribute belonging to id, the duration of Internet video, Internet video, uploader ID of Internet video, user cookie(wherein wrap
Contain: mark user's unique identities cookie, be identified with user watch the frequency control require network video advertisement seen
See the cookie of number of times) etc. series of parameters, following table illustrates component requests parameter:
Member Name |
Implication |
Vid |
Currently playing video id |
Vlen |
Video duration (in seconds) |
Ct |
Category attribute belonging to video |
Cs |
Two grades of category attributes belonging to video |
Uid |
The user id of uploaded videos |
Ip |
Current accessed User IP |
… |
… |
Keywords |
Keyword |
(2), after network video advertisement system receives network video advertisement request, obtain in network video advertisement request attached
The parameter of band and cookie information, then go to search V-L table according to the duration vLen of current video, it is thus achieved that current video can be thrown
The network video advertisement maximum duration L put, goes to search V-R table further according to current video duration vLen, it is thus achieved that current video is permissible
Front patch network video advertisement location sets P(thrown in pastes position before that is can carrying out the network video advertisement thrown in) with
And the range attribute of each position;
(3) initialize array ads, be used for depositing network video advertisement;For each position in set P, traversal
Network video advertisement throws in set so that the network video advertisement to be put that searching meets fixed condition is put in array, with
As a example by pasting position before i-th, search one according in the required parameter obtained in step (1) to network set of video ads to be cast net
Meet the network video advertisement of following 3 restrictive conditions simultaneously:
Stereotactic conditions limits: meet network video advertisement stereotactic conditions, such as orients city and category attribute, orients certain
Keyword etc.;This stereotactic conditions is arranged by system background, and the most a certain network video advertisement is thrown in and belonged to town, classification
Property, the specific directory are associated, and this condition exists in data base.
Total duration limits: the total duration of the network video advertisement found deposited in ads array and the current net taken out
The duration sum of network video ads is not more than the patch total duration of network video advertisement before current video can be thrown;
Range attribute limits: the range attribute of the current network video advertisement a taken out is not less than patch position before i-th
Range property value;If for this i-th position, the network video advertisement being currently found does not meets one of above-mentioned 3 conditions,
The most again from network video advertisement set to be put, find next network video advertisement carry out conditional judgment.Until put into
Paste the identical network video advertisement to be put of the front patch number of positions in location sets before described or put into the network in array
The total duration of video ads has been maxed out duration restrictive condition and (such as pastes location network video ads before can throwing in 2
In the case of, a network video advertisement of taking-up has been maxed out duration restrictive condition, say, that, it is judged that set to be put
In next network video advertisement all cannot put in array).
(4) the all-network video ads deposited in array ads is returned to player.
The flow chart of above-mentioned steps is as shown in Figure 1.
Technical solution of the present invention can ensure that the Internet video throwing in duration longer in the Internet video that duration is longer is wide
Accuse, the Internet video that duration is shorter is thrown in the shorter network video advertisement of duration or does not the most throw network video advertisement.Whole
Individual process is automatically to adjust, and improves Consumer's Experience.
Example one: the network video advertisement in certain video website is thrown in
As shown in the table, for the V-L table configuration information of certain video website:
Wherein duration interval [0,1) in video belong to without network video advertisement interval, do not allow to throw in any video
Network video advertisement;Remaining each interval, along with interval progressively moves to right, the network video advertisement duration that can throw also is stepped up;
With reference to the setting in upper 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. the range attribute of all-network video ads all ripples between 0~11
Dynamic.
First, it is assumed that initial range value DEFAULT_R arranged in system is arranged to 0, then according to V-above
L table and V-R table:
After system start-up initial 1st minute, before network video advertisement only throws in more than 20 minutes the first of Internet video
Patch.Each minute afterwards, system all can adjust the range value of each network video advertisement to be thrown, if certain Internet video
Advertisement putting situation is poor, then constantly increase along with its range value, and the position range that can throw in is the most progressively to the net that duration is shorter
Network video is expanded;If it is preferable that this network video advertisement throws in task performance, then constantly reduce along with its range value, throw
It is interval that scope of putting the most progressively is retracted into the longer Internet video of duration, thus ensure that the input of network video advertisement as far as possible to time
" tilt " in longer Internet video.
The foregoing is only presently preferred embodiments of the present invention, be not limited to the invention, all in the invention
Any amendment, equivalent and the improvement etc. made within spirit and principle, within being both contained in protection scope of the present invention.