Summary of the invention
The present invention is directed to the shortcoming of prior art, a kind of advertisement delivery method is provided, this method can be brought server and the less advantage of network transmission performance load.In addition, the invention also discloses a kind of advertisement distributing system, ad distribution device and Advertisement Server.
According to one object of the present invention, the invention provides a kind of advertisement delivery method, comprising:
A, ad distribution device initiate to obtain ad-request to Advertisement Server; Wherein, include a plurality of advertisement position numberings that on the advertisement web interface, need show in this request;
After B, Advertisement Server termination are received said ad-request, search and obtain the corresponding advertising message that should show and return to said ad distribution device according to advertisement position numbering;
C, ad distribution device are received said advertising message, and the advertising message that extraction should show is also carried out the issue of corresponding advertisement on the advertising page face.
Wherein, preferably, before the steps A, also comprise: for all advertisement positions on the advertisement webpage carry out the advertisement position numbering.
Wherein, preferably, in the steps A, specifically comprise:
The ad distribution device uses javascript to initiate to obtain ad-request to said Advertisement Server.
Wherein, preferably, among the step B, specifically comprise:
Advertisement Server carries out poll according to said advertisement position numbering and obtains the advertising message that each advertisement position should show, and uses the REST mode that data are described, and is written in the response traffic;
Wherein, comprised relevant javascript code and Html address in the said advertising message.
Wherein, preferably, among the step C, specifically comprise:
Said ad distribution device is carried out said javascript code and is carried out the demonstration and the issue of corresponding advertisement according to javascript in the said advertising message and Html address.
The present invention has taked after the such scheme, will repeatedly ask to merge into one-time request, and client can significantly reduce the linking number that server produces like this, thereby uses identical number of servers can serve more user.
In addition, the invention also discloses a kind of ad distribution device, comprising:
The ad-request unit is used for initiating to obtain a plurality of ad-request to Advertisement Server; Wherein, include a plurality of advertisement positions numberings that on the advertisement interface, need carry out the advertisement displaying in this request;
The ad distribution unit is used to receive said advertising message, extract the advertising message that should show and the issue of carrying out corresponding advertisement on the advertising page face.
Wherein, preferred construction is also to comprise: the advertisement position numbered cell, all advertisement positions that are used on the webpage carry out the advertisement position numbering.
Wherein, preferred construction is that said ad-request unit is used to use javascript to initiate to obtain ad-request to said Advertisement Server;
Said ad distribution unit is used for javascript and Html address according to said advertising message, carries out said javascript code and carries out the issue of corresponding advertisement.
In addition, the invention also discloses a kind of Advertisement Server, comprising:
Receiving element is used to receive the ad distribution device and initiates to obtain ad-request;
Wherein, include a plurality of advertisement positions numberings that on the advertisement interface, need carry out the advertisement displaying in this request;
The unit is searched in advertisement, be used to receive said ad-request after, obtain the corresponding advertising message that should show of said advertisement position numbering according to advertisement position numbering;
Transmitting element is used for said advertising message is returned to said ad distribution device.
Wherein, preferred construction is that the unit is searched in said advertisement, is used for carrying out poll according to said advertisement position numbering and obtains the advertising message that each advertisement position should show; Wherein, comprised relevant javascript code and Html address in the said advertising message.
In addition, the invention also discloses a kind of advertisement distributing system, comprise aforementioned ad distribution device and Advertisement Server.
The present invention has taked after the such scheme, will repeatedly ask to merge into one-time request, and client can significantly reduce the linking number that server produces like this, thereby uses identical number of servers can serve more user.
And, can also reduce a large amount of repeating datas, be reduced to portion by many parts of identical datas, thereby effectively reduce volume of transmitted data.
And, when the server-side processes advertisement,, handle a plurality of advertisement positions of the same page because being merged into a request, and can handle the relation between the advertisement position effectively, thereby effectively evade the phenomenon of advertisement conflict.
Other features and advantages of the present invention will be set forth in instructions subsequently, and, partly from instructions, become obvious, perhaps understand through embodiment of the present invention.The object of the invention can be realized through the structure that in the instructions of being write, claims and accompanying drawing, is particularly pointed out and obtained with other advantages.
Embodiment
Present technique has been used following prior art:
The http agreement: HTTP (HTTP, HyperText Transfer Protocol) is to use the most a kind of procotol on the internet.All WWW files all must be observed this standard.
Rest agreement: rest, promptly REST (Representational State Transfer statement sexual state shifts) is a kind of design and development scheme to network application, can reduce the complicacy of exploitation, improves the scalability of system.
Method embodiment one:
Fig. 1 is the schematic flow sheet of advertisement delivery method of the present invention;
As shown in Figure 1, said advertisement delivery method comprises the following steps:
S101: the ad distribution device initiates to obtain ad-request to Advertisement Server; Wherein, include a plurality of advertisement position numberings that on the advertisement web interface, need show in this request;
S102: after the Advertisement Server termination is received said ad-request, search and obtain the corresponding advertising message that should show and return to said ad distribution device according to advertisement position numbering;
S103: the ad distribution device is received said advertising message, and the advertising message that extraction should show is also carried out the issue of corresponding advertisement on the advertising page face.
Wherein, before step S101, also comprise: for all advertisement positions on the advertisement webpage carry out the advertisement position numbering.
And, among the said step S101, specifically comprise:
The ad distribution device uses javascript to initiate to obtain ad-request to said Advertisement Server.
Among the step S102, specifically comprise:
Advertisement Server carries out poll according to said advertisement position numbering and obtains the advertising message that each advertisement position should show, and uses the REST mode that data are described, and is written in the response traffic;
Wherein, comprised relevant javascript code and Html address in the said advertising message.
And, among the step S103, specifically comprise:
Said ad distribution device is carried out said javascript code and is carried out the demonstration and the issue of corresponding advertisement according to javascript in the said advertising message and Html address.
The present invention has taked after the such scheme, will repeatedly ask to merge into one-time request, and client can significantly reduce the linking number that server produces like this, thereby uses identical number of servers can serve more user.
And, can also reduce a large amount of repeating datas, be reduced to portion by many parts of identical datas, thereby effectively reduce volume of transmitted data.
And, when the server-side processes advertisement,, handle a plurality of advertisement positions of the same page because being merged into a request, and can handle the relation between the advertisement position effectively, thereby effectively evade the phenomenon of advertisement conflict.
Method embodiment two:
Fig. 2 is the schematic flow sheet of the embodiment of advertisement delivery method of the present invention;
As shown in Figure 2, said method comprises the following steps:
S201: for each advertisement position is numbered respectively; For example 273,274,280 or the like;
S202:, in required parameter, carry the advertisement position numbering of this ad-request to the Advertisement Server initiation request; P=273 for example, 274,280;
S203: carry out poll according to the advertisement position numbering and obtain the advertising message that each advertisement position should show;
S204: send the advertising message that comprises know clearly relevant javascript and Html;
Specifically comprise: use the REST mode that data are described, be written in the response traffic, comprised relevant javascript and Html in the advertising message.
S205: split out the pairing advertising message of each advertisement position, and carry out relevant javascript code, correspond on the advertisement position separately and show.
Specifically comprise: the ad distribution device is received after the data stream that Advertisement Server returns; It is handled; Split out the pairing advertising message of each advertisement position, and correspond on the advertisement position separately and show, and the relevant javascript code of corresponding execution.
In addition; For preceding signposting,, generally be to send request to Advertisement Server respectively owing to paste before having several; Can take many network bandwidths and server resource like this; For this situation, then can a request be merged in the request of pasting before a plurality of, thereby saved the network bandwidth and server resource.
System embodiment one:
Fig. 3 is the structural representation of advertisement distributing system of the present invention; As shown in Figure 3, said advertisement distributing system comprises: ad distribution device and Advertisement Server, and wherein, said ad distribution device is used for initiating to obtain ad-request to Advertisement Server; Wherein, include a plurality of advertisement position numberings that on the advertisement web interface, need show in this request;
Said Advertisement Server is used for after receiving said ad-request, searches and obtains the corresponding advertising message that should show and return to said ad distribution device according to advertisement position numbering;
Said ad distribution device is used to receive said advertising message, and the advertising message that extraction should show is also carried out the issue of corresponding advertisement on the advertising page face.
Wherein, Fig. 4 is the structural representation of ad distribution device of the present invention; Fig. 5 is the structural representation of Advertisement Server of the present invention.
As shown in Figure 4, said ad distribution device comprises:
The ad-request unit is used for initiating to obtain a plurality of ad-request to Advertisement Server; Wherein, include a plurality of advertisement positions numberings that on the advertisement interface, need carry out the advertisement displaying in this request;
The ad distribution unit is used to receive said advertising message, extract the advertising message that should show and the issue of carrying out corresponding advertisement on the advertising page face;
The advertisement position numbered cell, all advertisement positions that are used on the webpage carry out the advertisement position numbering.
And said ad-request unit is used to use javascript to initiate to obtain ad-request to said Advertisement Server;
Said ad distribution unit is used for javascript and Html address according to said advertising message, carries out said javascript code and carries out the issue of corresponding advertisement.
As shown in Figure 5, said Advertisement Server comprises:
Receiving element is used to receive the ad distribution device and initiates to obtain ad-request;
Wherein, include a plurality of advertisement positions numberings that on the advertisement interface, need carry out the advertisement displaying in this request;
The unit is searched in advertisement, be used to receive said ad-request after, obtain the corresponding advertising message that should show of said advertisement position numbering according to advertisement position numbering;
Transmitting element is used for said advertising message is returned to said ad distribution device.
And the unit is searched in said advertisement, is used for carrying out poll according to said advertisement position numbering and obtains the advertising message that each advertisement position should show; Wherein, comprised relevant javascript code and Html address in the said advertising message.
The present invention has taked after the such scheme, and this system can be with repeatedly asking to merge into one-time request, and client can significantly reduce the linking number that server produces like this, thereby uses identical number of servers can serve more user.
And, can also reduce a large amount of repeating datas, be reduced to portion by many parts of identical datas, thereby effectively reduce volume of transmitted data.
And, when the server-side processes advertisement,, handle a plurality of advertisement positions of the same page because being merged into a request, and can handle the relation between the advertisement position effectively, thereby effectively evade the phenomenon of advertisement conflict.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of programmed instruction; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: ROM (read-only memory) (Read Only Memory; Abbreviation ROM), various media that can be program code stored such as RAS (Random Acess Memory is called for short RAM), magnetic disc, terminal phone software or CD.
What should explain at last is: the above is merely the preferred embodiments of the present invention; Be not limited to the present invention; Although the present invention has been carried out detailed explanation with reference to previous embodiment; For a person skilled in the art, it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement.All within spirit of the present invention and principle, any modification of being done, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.