Summary of the invention
In order to solve the lower technical problem of above-mentioned network resource utilization, the present invention proposes a kind of put-on method of broadcasting of new network flow-medium advertisement, can reasonably utilize resource.
The present invention proposes a kind of advertisement placement method of the network flow-medium be used to having the degree of association, comprise step:
S1 network of network DST PLAYER sends ad-request to the advertisement putting engine;
S2 advertisement putting engine is searched the network flow-medium ID with degree of association corresponding with this network flow-medium ID according to the network flow-medium ID in request;
S3 searches corresponding advertisement ID list according to the network flow-medium ID with degree of association;
S4 traversal advertisement ID list, find corresponding ad material;
S5 encapsulates and returns described ad material to the network of network DST PLAYER.
Preferably, wherein at step S2, if do not find the corresponding network flow-medium ID with degree of association to enter other advertisement putting logics.
Preferably, characterized by further comprising:
Find ad material in traversal after, log is to the daily record storehouse.
Preferably, it is characterized in that in step S4, if the residue injected volume of ad material, greater than 0, stops traversal, otherwise continue traversal.
The invention allows for a kind of advertisement putting device of the network flow-medium be used to having the degree of association, comprising:
Be used for receiving from the network of network DST PLAYER module that sends ad-request;
Be used for the module of according to the network flow-medium ID that asks, searching the network flow-medium ID with degree of association corresponding with this network flow-medium ID;
Be used for searching according to the network flow-medium ID with degree of association the module of corresponding advertisement ID list;
Be used for traversal advertisement ID list, find the module of corresponding ad material;
Be used for encapsulating and returning the module of described ad material to the network of network DST PLAYER.
Preferably, wherein being used for the module that network flow-medium ID according to request searches the network flow-medium ID with degree of association corresponding with this network flow-medium ID comprises: if do not find the corresponding network flow-medium ID with degree of association to enter other advertisement putting logics.
Preferably, characterized by further comprising:
Be used for after traversal finds ad material, log is to the module in daily record storehouse.
Preferably, it is characterized in that describedly for traversal advertisement ID list, find the module of corresponding ad material to comprise: if the residue injected volume of ad material, greater than 0, stops traversal, otherwise to continue traversal.
By technical scheme proposed by the invention, met the advertisement putting demand to the network flow-medium type network Streaming Media with degree of association, can dynamically adjust advertisement injected volume per minute, avoid the situation of advertisement putting quantity not sufficient.
At first the present invention has introduced the concept of the network flow-medium with degree of association, in the situation that do not affect the original classification of network flow-medium, on new dimension,, to the input of packing of a plurality of network flow-mediums with degree of association, adapted to the new granularity demand of network flow-medium advertisement putting.Another side has been introduced dynamic controlled advertisement placement method, and timing adjustment is carried out in spending on ads.
Embodiment
, in order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The present invention has introduced a kind of dynamic drop mechanisms that is directed to the network flow-medium type network flow media advertisement with degree of association, characteristics based on the network flow-medium network flow-medium advertisement with degree of association, use independently data structure and logic, original ad system is not being caused under the prerequisite of large impact, meeting the demand that has the network flow-medium input advertisement of the degree of association according to network flow-medium.About the concept of network flow-medium with degree of association as shown in Figure 1.
In accompanying drawing 1, Vedio refers to network flow-medium.
Play refers to program, and each program comprises a plurality of network flow-mediums, and each network flow-medium has a PlayId field, is tied to some programs and gets on, and serial is the common program on the network flow-medium website.
Theater refers to have the network flow-medium of the degree of association, is the set of a plurality of programs, and each program has a TheaterId field can be tied on a network flow-medium with degree of association.
Have the network flow-medium of the degree of association and the relation that collection of drama is one-to-many, the network flow-medium that in general has the degree of association is the set of the relevant collection of drama of a plurality of contents, but does not do restriction by force on this correlation program.
Realize principle as shown in Figure 2, wherein described network flow-medium advertisement putting with degree of association and the flow process of Data Update.Wherein, the functional description of each module is as follows:
The network of network DST PLAYER: before the user opened certain network flow-medium broadcast page and watches network flow-medium, its can be thrown in engine from trend and send ad-request, after obtaining throwing in the advertisement of returning of engine, successively to user's broadcasting advertisement content;
Play Theater Map: the data structure in internal memory, deposit collection of drama ID and the corresponding relation with network flow-medium ID of the degree of association.Be used for searching the network flow-medium ID with degree of association by collection of drama Id;
Theater Ad Map: depositing network flow-medium ID with degree of association and the list of advertisement ID, the Id of a series of advertisements that the network flow-medium that the Id of network flow-medium that can be by having the degree of association finds this to have the degree of association is corresponding;
AD Entity Map: the data structure of searching ad material by advertisement ID;
AD Entity: ad material, storing the related data of an advertisement, back is described in detail.
Throw in engine: throw in engine and comprised complicated advertisement putting service logic, do not describe in detail, only discuss to the network flow-medium with degree of association and throw in relevant content here.After throwing in engine and receiving the ad-request that the network of network DST PLAYER sends, can judge whether this request is the network flow-medium ad-request with degree of association according to ID and the PlayTheater Map of network flow-medium (collection of drama) in request, if, by a plurality of data structures in above-mentioned internal memory, take out corresponding ad material, be organized into corresponding format and return to player;
The AD database: the database of ad system, wherein deposited the advertisement putting mission bit stream, and other attribute of advertisement;
The ADLog database: the database of ad system daily record, wherein deposited the log information of advertisement putting;
Timing statistical module: the impression information of regularly from AdLog database the inside, taking out the network flow-medium advertisement with degree of association, add up, calculate in the ensuing time spending on ads of each network flow-medium with degree of association and write the AD database.
The flow process of network flow-medium advertisement putting with degree of association is as follows:
1. at first by the network of network DST PLAYER, to the advertisement putting engine, send ad-request.
2. throwing in engine searches in PlayTheaterMap according to the ID of the network flow-medium (collection of drama) in request, find the corresponding network flow-medium ID(ThreaterID with degree of association), if do not find the corresponding network flow-medium ID with degree of association to enter other advertisement putting logics.
3. according to the network flow-medium ID(TheaterID with degree of association) search in TheaterADMap, find corresponding advertisement ID list (AdIdList).
4. travel through advertisement Id list, find corresponding ad material in AdEntityMap, optional, if the residue injected volume of ad material, greater than 0, stops traversal, otherwise continue traversal.
5. find ad material (AdEntity) in traversal after, log is to daily record storehouse (AdLog).
6. encapsulate and return ad material (AdEntity) to the network of network DST PLAYER.
Regularly the workflow of statistical module is as follows:
1. regularly statistical module reads in the advertisement putting log recording of advertisement engine record and log information is added up from log database (AdLog), calculates the residue injected volume of the network flow-medium advertisement that respectively has the degree of association.
2. the network flow-medium advertisement residue injected volume information with degree of association that will calculate gained writes advertising database (AD).
3. the advertisement putting engine is understood timing operation, read advertising message from advertising database (AD), upgrade PlayTheaterMap, TheaterADMap and ADEntityMap are to guarantee that the network flow-medium advertisement meeting with degree of association of throwing in is according to the network flow-medium advertisement residue injected volume dynamic change with degree of association.
Throw in the network flow-medium with degree of association of engine and throw in logic as shown in Figure 3, throw in engine and comprise polytype advertisement putting logic, after the network of network DST PLAYER sends ad-request, throwing in engine can be according to the network flow-medium ID(PlayID in request) find the corresponding network flow-medium with degree of association in PlayTheaterMap, if find, illustrate that it is the advertisement of by the network flow-medium with degree of association, throwing in, enter the network flow-medium with degree of association and surely throw logic, carry out the network flow-medium CPM with degree of association and surely throw; If it, for by the advertisement of putting on by classification, enters classification and surely throws logic; If its advertisement for by area, throwing in, enter the fixed logic of throwing in zone; Otherwise, illustrate that it is other advertisement putting mode, enter in other advertisement putting logics; After having carried out and surely throwing logic accordingly, encapsulate and return ad material to the network of network DST PLAYER.
Throwing in three key data structure in engine is PlayTheaterMap, TheaterADMap and ADEntityMap.
PlayTheaterMap is collection of drama and the corresponding relation with network flow-medium of the degree of association.Can use the HashMap<Integer in java, Integer〉to realize, its key is the ID of collection of drama (Play), is worth the ID of the network flow-medium (Theater) that has the degree of association for collection of drama is corresponding.
TheaterADMap has the network flow-medium of the degree of association and the corresponding relation of advertisement.Can use the HashMap<Integer in java, List<Integer〉〉 realize, its key is the ID of network flow-medium (Theater) with degree of association, is worth the ID for the corresponding advertisement of network flow-medium with degree of association, the ArrayList<Integer in available java〉storage.
ADEntityMap is used for finding ad material by advertisement ID.Can use the HashMap<Integer in java, ADEntity〉to realize, its key is the ID of advertisement, is worth for ad material.
Ad material is an independent java class, is storing the essential information of advertisement, and its main contents as shown in Figure 4.
Wherein, " advertisement ID " is the unique identification of an advertisement, and it is unique corresponding with the key in ADEntityMap;
Wherein, " remain impressions in current minute " and deduct the total degree of throwing in current minute for the total degree that will throw in current minute, the a collection of AdEntity of data creation that takes out from the AD database per minute because throw in engine, the life cycle of each AdEntity is 1 minute, so it needs the spending on ads of record in last minute.This injected volume is carried out statistical computation to daily record and is drawn by the timing statistical module, and computing formula is as follows:
Ti=(S–Sok)*rate[i])/60/SN。
Wherein:
● Ti: the expression advertisement is the number of times that will throw in per minute at current hour;
● S: the total degree that throw in of expression advertising presupposition;
● Sok: the same day was thrown in complete total degree in expression, and these data are gathered to come according to relevant daily record (AD database) by ad system;
● rate[i]: the advertisement capacity that represents current hour accounts for the remaining advertisement capacity ratio of whole hours that will throw in advertisement;
● SN: expression is used for the number of servers of advertisement putting, and number of times can all be assigned on every station server.Next, by concrete example, the present invention is done more detailed description.
Example one: the restricted number of signposting before certain network flow-medium website.
Certain client carries out advertisement putting to the network flow-medium (gold medal has the network flow-medium of the degree of association) that certain has the degree of association, network flow-medium (Theater) with degree of association comprises a plurality of programs, such as Travels of King Mu, " Xuanyuan sword " etc., as shown in Figure 9.This client has bound certain advertisement to the network flow-medium (gold medal has the network flow-medium of the degree of association) with degree of association, according to importance with day injected volume be made as respectively 1000CPM.
At first, the corresponding collection of drama ID(PlayId of network flow-medium with degree of association need to be set on backstage), as shown in Figure 5.Network flow-medium performance ID with degree of association is made as 269807, and the time started is on September 14th, 2012, and the concluding time is on September 20th, 2012, and wherein the beginning and ending time refers to the related cycle of this network flow-medium with degree of association and this collection of drama.
Then, set the corresponding advertisement id of network flow-medium with degree of association, beginning and ending time and injected volume (CPM), as shown in Figure 6.Wherein, throwing in material is 100001, and the time started is on August 1st, 2012, and the concluding time is on December 31st, 2012.Injected volume every day (CPM) is made as 1000.Wherein the beginning and ending time refers to the beginning and ending time of this advertisement putting.
After starting advertisement putting, have corresponding all-network Streaming Media in the network flow-medium of the degree of association and all can preferentially play the advertisement that network flow-medium with degree of association is bound,, until the injected volume of advertisement is completed, just throw in other advertisements.
Example two: user advertising request example
the webpage of accompanying drawing 7 and 8 network flow-mediums with degree of association (theater) for certain network flow-medium website, a plurality of programs (play) have been comprised in this webpage, as: " love apartment 3 ", " new white hair sorceress ", a plurality of network flow-mediums are arranged in each program, when network flow-medium is watched in certain user's click, player can send request and obtain advertisement to the input engine, throw in engine according to the program ID(playId in request), find advertisement corresponding to network flow-medium with degree of association, return to player, after player obtains advertisement, carrying out advertisement plays.In test environment, this network flow-medium with degree of association has been bound a unique advertisement, can find by experiment, watches the arbitrary network Streaming Media in this network flow-medium with degree of association all can play identical advertisement.
In addition, the invention allows for a kind of advertisement putting device of the network flow-medium be used to having the degree of association,
Comprise:
Be used for receiving from the network of network DST PLAYER module that sends ad-request;
Be used for the module of according to the network flow-medium ID that asks, searching the network flow-medium ID with degree of association corresponding with this network flow-medium ID;
Be used for searching according to the network flow-medium ID with degree of association the module of corresponding advertisement ID list;
Be used for traversal advertisement ID list, find the module of corresponding ad material;
Be used for encapsulating and returning the module of described ad material to the network of network DST PLAYER.
Preferably, wherein being used for the module that network flow-medium ID according to request searches the network flow-medium ID with degree of association corresponding with this network flow-medium ID comprises: if do not find the corresponding network flow-medium ID with degree of association to enter other advertisement putting logics.
Preferably, characterized by further comprising:
Be used for after traversal finds ad material, log is to the module in daily record storehouse.
Preferably, it is characterized in that describedly for traversal advertisement ID list, find the module of corresponding ad material to comprise: if the residue injected volume of ad material, greater than 0, stops traversal, otherwise to continue traversal.
Because device proposed by the invention can be realized as basis take computer program fully, therefore this paper does not draw an accompanying drawing and carries out the introduction of faithful module piece it is executed, it will be understood by those skilled in the art that above-mentioned logic step all can be realized by corresponding functional module mode herein.
It should be appreciated by those skilled in the art, the mode that method and apparatus of the present invention can adopt hardware, software or hardware and software to combine, realize by variety of ways such as microprocessor, digital signal processor, field programmable logic unit or gate arrays.
In sum, although the present invention with the preferred embodiment disclosure as above, yet it is not in order to limit the present invention.The general technical staff of the technical field of the invention, without departing from the spirit and scope of the present invention, can do various changes and modification.Therefore, protection scope of the present invention is as the criterion when looking accompanying the scope that claim defines.