Summary of the invention
The technical problem relatively low in order to solve above-mentioned network resource utilization, what the present invention proposed a kind of new network flow-medium advertisement broadcasts put-on method, it is possible to reasonably utilize resource.
The present invention proposes the advertisement placement method of a kind of network flow-medium for having the degree of association, including step:
S1 network of network DST PLAYER sends ad-request to advertisement putting engine;
S2 advertisement putting engine searches the network flow-medium ID with the 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 the degree of association;
S4 travels through advertisement ID list, finds the ad material of correspondence;
S5 encapsulates and returns described ad material to network of network DST PLAYER.
Preferably, wherein in step S2, if not finding the network flow-medium ID with the degree of association of correspondence, enter other advertisement putting logics.
Preferably, it is characterised in that also include:
After finding ad material in traversal, then log is to daily record storehouse.
Preferably, it is characterised in that in step s 4, if the residue injected volume of ad material is more than 0, then stop traversal, otherwise continue traversal.
The invention allows for the advertisement delivery device of a kind of network flow-medium for having the degree of association, including:
For receiving the module sending ad-request from network of network DST PLAYER;
For searching the module of the network flow-medium ID with the degree of association corresponding with this network flow-medium ID according to the network flow-medium ID in request;
For searching the module of corresponding advertisement ID list according to the network flow-medium ID with the degree of association;
For traveling through advertisement ID list, find the module of the ad material of correspondence;
For encapsulating and return the described ad material module to network of network DST PLAYER.
Preferably, the module being wherein used for searching the network flow-medium ID with the degree of association corresponding with this network flow-medium ID according to the network flow-medium ID in request includes: if not finding the corresponding network flow-medium ID with the degree of association, enter other advertisement putting logics.
Preferably, it is characterised in that also include:
After finding ad material in traversal, then log is to the module in daily record storehouse.
Preferably, it is characterised in that described for traveling through advertisement ID list, find the module of the ad material of correspondence to include: if the residue injected volume of ad material is more than 0, then stop traversal, otherwise continue traversal.
By technical scheme proposed by the invention, meet the advertisement putting demand to the network flow-medium type network Streaming Media with the degree of association, it is possible to dynamically adjust the injected volume that advertisement is per minute, it is to avoid the situation that spending on ads is not enough.
The present invention has been firstly introduced into the concept of the network flow-medium with the degree of association, when not affecting the original classification of network flow-medium, in new dimension, multiple network flow-mediums with the degree of association are carried out packing and throws in, adapted to the new granularity demand of network flow-medium advertisement putting.Another side introduces dynamically controlled advertisement placement method, and spending on ads is timed adjustment.
Detailed description of the invention
In order to make the purpose of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein is only in order to explain the present invention, is not intended to limit the present invention.
Invention introduces the dynamic drop mechanisms of a kind of network flow-medium type network flow media advertisement being directed to and there is the degree of association, feature based on the network flow-medium network flow-medium advertisement with the degree of association, use independent data structure and logic, under the premise that original ad system is not caused big impact, meet the demand of the network flow-medium input advertisement according to network flow-medium with the degree of association.About have the degree of association network flow-medium concept as shown in Figure 1.
In fig. 1, Vedio refers to network flow-medium.
Play refers to that program, each program comprise multiple network flow-medium, and each network flow-medium has a PlayId field, is tied to some program up, and serial is the common program on network flow-medium website.
Theater refers to the network flow-medium with the degree of association, is multiple joint destination aggregation (mda)s, and each program has a TheaterId field can be tied on a network flow-medium with the degree of association.
Having the relation that the network flow-medium of the degree of association and collection of drama are one-to-manies, the network flow-medium in general with the degree of association is the set of the collection of drama that multiple content is relevant, but does not impose restrictions in this dependency program.
Realize principle as shown in Figure 2, which describe the network flow-medium advertisement putting with the degree of association and the flow process of data renewal.Wherein, the function of each module describes as follows:
Network of network DST PLAYER: when user opens before certain network flow-medium broadcast page viewing network flow-medium, it can be thrown in engine from trend and send ad-request, after obtaining the advertisement of return of input engine, successively to user's broadcasting advertisement content;
PlayTheaterMap: the data structure in internal memory, deposits collection of drama ID and the corresponding relation of the network flow-medium ID with the degree of association.For being searched the network flow-medium ID with the degree of association by collection of drama Id;
TheaterAdMap: deposit the list of the network flow-medium ID and advertisement ID with the degree of association, it is possible to find this to have the Id of a series of advertisements corresponding to the network flow-medium of the degree of association by having the Id of the network flow-medium of the degree of association;
ADEntityMap: searched the data structure of ad material by advertisement ID;
ADEntity: ad material, stores the related data of an advertisement, explained later.
Throw in engine: throw in the ad placement service logic containing complexity in engine, be not described in detail here, only discuss and throw in relevant content to the network flow-medium with the degree of association.After input engine receives the ad-request that network of network DST PLAYER is sent, can judge whether this request is the network flow-medium ad-request with the degree of association according to ID and the PlayTheaterMap of network flow-medium (collection of drama) in request, if, then take out corresponding ad material by the multiple data structures in above-mentioned internal memory, be organized into corresponding format and return to player;
AD data base: the data base of ad system, wherein houses advertisement putting mission bit stream and other attribute of advertisement;
ADLog data base: the data base of ad system daily record, wherein houses the log information of advertisement putting;
Timing statistical module: the impression information of network flow-medium advertisement with the degree of association is taken out in timing inside AdLog data base, adds up, calculates in the ensuing time spending on ads of each network flow-medium with the degree of association and writes AD data base.
The flow process of the network flow-medium advertisement putting with the degree of association is as follows:
1. first ad-request is sent by network of network DST PLAYER to advertisement putting engine.
2. throw in engine to search in PlayTheaterMap according to the ID of the network flow-medium (collection of drama) in request, find the network flow-medium ID(ThreaterID with the degree of association of correspondence), if not finding the network flow-medium ID with the degree of association of correspondence, enter other advertisement putting logics.
3. according to the network flow-medium ID(TheaterID with the degree of association) search in TheaterADMap, find corresponding advertisement ID list (AdIdList).
4. traversal advertisement Id list, finds the ad material of correspondence in AdEntityMap, optionally, if the residue injected volume of ad material is more than 0, stops traversal, otherwise continues traversal.
5. after finding ad material (AdEntity) in traversal, then log is to daily record storehouse (AdLog).
6. encapsulate and return ad material (AdEntity) to network of network DST PLAYER.
The workflow of timing statistical module is as follows:
1. timing statistical module reads in the advertisement putting log recording of advertisement engine record from log database (AdLog) and log information is added up, and calculates the residue injected volume of the network flow-medium advertisement respectively with the degree of association.
2. will calculate network flow-medium advertisement residue injected volume information write advertising database (AD) with the degree of association of gained.
3. advertisement putting engine meeting timing operation, advertising message is read from advertising database (AD), update PlayTheaterMap, TheaterADMap and ADEntityMap to ensure that the network flow-medium advertisement with the degree of association thrown in dynamically can change according to the network flow-medium advertisement residue injected volume with the degree of association.
The network flow-medium with the degree of association throwing in engine throws in logic as shown in Figure 3, throw in engine and comprise polytype advertisement putting logic, after network of network DST PLAYER sends ad-request, throwing in engine can according to the network flow-medium ID(PlayID in request) in PlayTheaterMap, find the corresponding network flow-medium with the degree of association, if finding, illustrate that it is the advertisement thrown in by the network flow-medium with the degree of association, then entering the network flow-medium with the degree of association and surely throw logic, the network flow-medium CPM performing to have the degree of association throws surely;If it is by the advertisement put on by classification, then enters classification and surely throw logic;If it is the advertisement thrown in by area, then enter the logic that region is thrown surely;Otherwise, illustrate that it is other advertisement putting mode, then enter in other advertisement putting logics;Perform corresponding surely throw logic after, encapsulate and return ad material to network of network DST PLAYER.
Throwing in three key data structure in engine is PlayTheaterMap, TheaterADMap and ADEntityMap.
PlayTheaterMap is the corresponding relation of collection of drama and the network flow-medium with the degree of association.The HashMap<Integer, Integer in java can be used>realize, its key is the ID of collection of drama (Play), is worth the ID of the network flow-medium (Theater) with the degree of association corresponding to collection of drama.
TheaterADMap is the corresponding relation of network flow-medium and the advertisement with the degree of association.HashMap<the Integer in java can be used, List<Integer>>realize, its key is the ID of the network flow-medium (Theater) with the degree of association, is worth the ID, the ArrayList<Integer in available java of the advertisement corresponding to the network flow-medium for having the degree of association>store.
ADEntityMap is for finding ad material by advertisement ID.The HashMap<Integer, ADEntity in java can be used>realize, its key is the ID of advertisement, is worth for ad material.
Ad material is an independent java class, stores the essential information of advertisement, and its main contents are as shown in Figure 4.
Wherein, " advertisement ID " is unique mark of an advertisement, and it is uniquely corresponding with the key in ADEntityMap;
Wherein, " in current minute remain impressions " deducts, for the total degree thrown in current minute, the total degree thrown in current minute, because throwing in engine is the taking-up a collection of AdEntity of data creation from AD data base per minute, the life cycle of each AdEntity is 1 minute, so it need to record when interior spending on ads in previous minute.Daily record is carried out statistical computation by timing statistical module and draws by this injected volume, and computing formula is as follows:
Ti=(S–Sok)*rate[i])/60/SN。
Wherein:
● Ti: expression advertisement is the number of times to throw in per minute at current hour;
● S: represent the total degree to throw in of advertising presupposition;
● Sok: representing and threw in complete total degree the same day, these data are collected according to correlation log (AD data base) by ad system;
● rate [i]: represent that the advertisement capacity of current hour accounts for the advertisement capacity ratio of remaining to throw in advertisement whole hours;
● SN: representing the number of servers for advertisement putting, number of times can be divided equally on every station server.It follows that by concrete example, the present invention is described in more detail.
Example one: quantity of signposting before certain network flow-medium website limits.
Certain is had the network flow-medium of the degree of association network flow-medium of the degree of association (gold medal have) and carries out advertisement putting by certain client, the network flow-medium (Theater) with the degree of association comprises multiple program, such as Travels of King Mu, " Xuanyuan sword " etc., as shown in Figure 9.The network flow-medium network flow-medium of the degree of association (gold medal have) with the degree of association has been bound certain advertisement by this client, according to importance, day injected volume is set to 1000CPM.
Firstly, it is necessary to arrange the collection of drama ID(PlayId corresponding to the network flow-medium with the degree of association on backstage), as shown in Figure 5.The network flow-medium performance ID with the degree of association is set to 269807, and the time started is JIUYUE in 2012 14, and the end time is JIUYUE in 2012 20, and what wherein the beginning and ending time referred to this network flow-medium with the degree of association and this collection of drama associates the cycle.
Then, the advertisement id corresponding to network flow-medium with the degree of association, beginning and ending time and injected volume (CPM) are set, as shown in Figure 6.Wherein, throwing in material is 100001, and the time started is on August 1st, 2012, and the end time is December in 2012 31.Injected volume every day (CPM) is set to 1000.Wherein the beginning and ending time refers to the beginning and ending time of this advertisement putting.
After starting advertisement putting, there is all-network Streaming Media corresponding in the network flow-medium of the degree of association and all can preferentially play the advertisement of the network flow-medium bound with the degree of association, until the injected volume of advertisement completes, just throw in other advertisements.
Example two: user advertising request example
Accompanying drawing 7 and 8 is the webpage of the network flow-medium (theater) with the degree of association of certain network flow-medium website, multiple program (play) is contained in this webpage, as: " love apartment 3 ", " new poliosis sorceress ", each program has multiple network flow-medium, when certain user clicks viewing network flow-medium, player can send acquisition request advertisement to throwing in engine, throw in engine according to the program ID(playId in request), find the advertisement that the network flow-medium with the degree of association is corresponding, return to player, after player obtains advertisement, carry out advertisement broadcasting.In test environment, this network flow-medium with the degree of association has bound a unique advertisement, by experiment it is found that watch this arbitrary network Streaming Media having in the network flow-medium of the degree of association all can play identical advertisement.
Additionally, the invention allows for the advertisement delivery device of a kind of network flow-medium for having the degree of association,
Including:
For receiving the module sending ad-request from network of network DST PLAYER;
For searching the module of the network flow-medium ID with the degree of association corresponding with this network flow-medium ID according to the network flow-medium ID in request;
For searching the module of corresponding advertisement ID list according to the network flow-medium ID with the degree of association;
For traveling through advertisement ID list, find the module of the ad material of correspondence;
For encapsulating and return the described ad material module to network of network DST PLAYER.
Preferably, the module being wherein used for searching the network flow-medium ID with the degree of association corresponding with this network flow-medium ID according to the network flow-medium ID in request includes: if not finding the corresponding network flow-medium ID with the degree of association, enter other advertisement putting logics.
Preferably, it is characterised in that also include:
After finding ad material in traversal, then log is to the module in daily record storehouse.
Preferably, it is characterised in that described for traveling through advertisement ID list, find the module of the ad material of correspondence to include: if the residue injected volume of ad material is more than 0, then stop traversal, otherwise continue traversal.
Owing to device proposed by the invention can realize completely based on computer program, therefore herein not to its execute draw an accompanying drawing carry out faithful module block introduction, it will be understood by those skilled in the art that logic step herein-above set forth all can be realized by corresponding functional module mode.
It should be appreciated by those skilled in the art, methods and apparatus of the present invention can adopt the mode that hardware, software or hardware and software combine, and is embodied in various ways by microprocessor, digital signal processor, field programmable logic cell or gate array etc..
In sum, although the present invention discloses as above with preferred embodiment, but it is not limited to the present invention.General technical staff of the technical field of the invention, without departing from the spirit and scope of the present invention, can do various variation and modification.Therefore, protection scope of the present invention ought be as the criterion depending on the scope that appended claims defines.