Summary of the invention
The shortcoming that the present invention is directed to prior art, it is provided that a kind of advertisement delivery method, the method can carry
Server and network transmission performance are loaded less advantage.Additionally, the invention also discloses a kind of wide
Accuse distribution system, ad distribution device and Advertisement Server.
According to one object of the present invention, the invention provides a kind of advertisement delivery method, including:
A, ad distribution device initiate to obtain ad-request to Advertisement Server;Wherein, this request comprises
There is the multiple advertisement positions numbering needing to be shown on advertisement web interface;
B, Advertisement Server termination receive described ad-request after, according to advertisement position numbering search and obtain right
The advertising message that should show answered also returns to described ad distribution device;
C, ad distribution device receive described advertising message, extract the advertising message that should show and carry out wide
Accuse the issue of advertisement corresponding on the page.
These, it is preferred to, before step A, also include: enter for all advertisement positions on advertisement webpage
Row advertisement position is numbered.
These, it is preferred to, in step A, specifically include:
Ad distribution device uses javascript to initiate to obtain ad-request to described Advertisement Server.
These, it is preferred to, in step B, specifically include:
Advertisement Server is polled obtaining the advertisement that each advertisement position should show according to described advertisement position numbering
Information, and use REST mode that data are described, it is written in response traffic;
Wherein, described advertising message contains relevant javascript code and Html address.
These, it is preferred to, in step C, specifically include:
Described ad distribution device, according to javascript and the Html address in described advertising message, performs
Described javascript code also carries out the display of advertisement and the issue of correspondence.
After this invention takes such scheme, will repeatedly ask to merge into and once ask, such client
The connection number producing server can be greatly decreased, so that can service more by identical number of servers
Many users.
Additionally, the invention also discloses a kind of ad distribution device, including:
Ad-request unit, for initiating to obtain multiple ad-request to Advertisement Server;Wherein, should
Ask and include the multiple advertisement positions numbering needing to carry out advertising display on advertisement interface;
Ad distribution unit, is used for receiving described advertising message, extracts the advertising message that should show also
Carry out the issue of advertisement corresponding on advertisement page.
Wherein, preferred structure is also to include: advertisement position numbered cell, is used for as owning on webpage
Advertisement position carries out advertisement position numbering.
Wherein, preferred structure is, described ad-request unit, be used for using javascript to described extensively
Accuse server to initiate to obtain ad-request;
Described ad distribution unit, is used for according to javascript and the Html address in described advertising message,
Perform described javascript code and carry out the issue of corresponding advertisement.
Additionally, the invention also discloses a kind of Advertisement Server, including:
Receive unit, be used for receiving ad distribution device and initiate to obtain ad-request;
Wherein, this request includes need to carry out on advertisement interface advertising display multiple advertisement positions compile
Number;
Unit is searched in advertisement, after being used for receiving described ad-request, obtains described according to advertisement position numbering
The advertising message that should show that advertisement position numbering is corresponding;
Transmitting element, for returning to described ad distribution device by described advertising message.
Wherein, preferred structure is, described advertisement search unit, for according to described advertisement position number into
Road wheel is ask and is obtained the advertising message that each advertisement position should show;Wherein, described advertising message contains phase
The javascript code closed and Html address.
Additionally, the invention also discloses a kind of advertisement distributing system, including aforementioned ad distribution device with wide
Accuse server.
After this invention takes such scheme, will repeatedly ask to merge into and once ask, such client
The connection number producing server can be greatly decreased, so that can service more by identical number of servers
Many users.
And, additionally it is possible to reduce substantial amounts of repetition data, many parts of identical datas be reduced to portion, thus
Effectively reduce volume of transmitted data.
Further, when server-side processes advertisement, owing to multiple advertisement positions of the same page are merged into
One request processes, and can effectively process the relation between advertisement position, thus effectively evade advertisement
The phenomenon of conflict.
Other features and advantages of the present invention will illustrate in the following description, and, partly from froming the perspective of
Bright book becomes apparent, or understands by implementing the present invention.The purpose of the present invention is excellent with other
Point can come real by structure specifically noted in the description write, claims and accompanying drawing
Now and obtain.
Detailed description of the invention
Present technique uses following prior art:
Http agreement: HTML (Hypertext Markup Language) (HTTP, HyperText Transfer Protocol) is the Internet
On a kind of procotol of being most widely used.All of WWW file must comply with this standard.
Rest agreement: rest, i.e. REST (transfer of Representational State Transfer declarative state)
It is a kind of design for network application and development scheme, the complexity of exploitation can be reduced, improve system
Scalability.
Embodiment of the method one:
Fig. 1 is the schematic flow sheet of advertisement delivery method of the present invention;
As it is shown in figure 1, described advertisement delivery method, comprise the following steps:
S101: ad distribution device initiates to obtain ad-request to Advertisement Server;Wherein, in this request
Include the multiple advertisement positions numbering needing to be shown on advertisement web interface;
After S102: Advertisement Server termination receives described ad-request, search according to advertisement position numbering and obtain
To the corresponding advertising message that should show and return to described ad distribution device;
S103: ad distribution device receives described advertising message, extracts the advertising message that should show and goes forward side by side
The issue of advertisement corresponding on row advertisement page.
Wherein, before step S101, also include: carry out advertisement for all advertisement positions on advertisement webpage
Bit number.
Further, in described step S101, specifically include:
Ad distribution device uses javascript to initiate to obtain ad-request to described Advertisement Server.
In step S102, specifically include:
Advertisement Server is polled obtaining the advertisement that each advertisement position should show according to described advertisement position numbering
Information, and use REST mode that data are described, it is written in response traffic;
Wherein, described advertising message contains relevant javascript code and Html address.
Further, in step S103, specifically include:
Described ad distribution device, according to javascript and the Html address in described advertising message, performs
Described javascript code also carries out the display of advertisement and the issue of correspondence.
After this invention takes such scheme, will repeatedly ask to merge into and once ask, such client
The connection number producing server can be greatly decreased, so that can service more by identical number of servers
Many users.
And, additionally it is possible to reduce substantial amounts of repetition data, many parts of identical datas be reduced to portion, thus
Effectively reduce volume of transmitted data.
Further, when server-side processes advertisement, owing to multiple advertisement positions of the same page are merged into
One request processes, and can effectively process the relation between advertisement position, thus effectively evade advertisement
The phenomenon of conflict.
Embodiment of the method two:
Fig. 2 is the schematic flow sheet of the embodiment of advertisement delivery method of the present invention;
As in figure 2 it is shown, described method comprises the following steps:
S201: number respectively for each advertisement position;Such as 273,274,280 etc.;
S202: initiate request to Advertisement Server, carry the advertisement position of this ad-request in required parameter
Numbering;Such as P=273,274,280;
S203: be polled obtaining the advertising message that each advertisement position should show according to advertisement position numbering;
S204: send the advertising message comprising relevant javascript and Html that know clearly;
Specifically include: use REST mode that data are described, be written in response traffic, extensively
Announcement information contains relevant javascript and Html.
S205: split out the advertising message corresponding to each advertisement position, and perform relevant javascript
Code, carries out corresponding to show on respective advertisement position.
Specifically include: after ad distribution device receives the data stream that Advertisement Server returns, it is carried out
Process, split out the advertising message corresponding to each advertisement position, and it is enterprising to correspond to respective advertisement position
Row display, and perform relevant javascript code accordingly.
Additionally, for front signposting, owing to pasting before having several, be respectively to advertisement clothes under normal circumstances
Business device sends request, so can take the many network bandwidths of comparison and server resource, for this situation,
Then the request pasted before multiple a request be can be merged into, thus the network bandwidth and server resource saved.
System embodiment one:
Fig. 3 is the structural representation of advertisement distributing system of the present invention;As it is shown on figure 3, described ad distribution
System, including: ad distribution device and Advertisement Server, wherein, described ad distribution device, it is used for
Initiate to obtain ad-request to Advertisement Server;Wherein, this request includes on advertisement web interface
Need the multiple advertisement positions numbering being shown;
Described Advertisement Server, for after receiving described ad-request, searches according to advertisement position numbering
And obtain the advertising message that should show of correspondence and return to described ad distribution device;
Described ad distribution device, is used for receiving described advertising message, extracts the advertising message that should show
And carry out the issue of advertisement corresponding on advertisement page.
Wherein, Fig. 4 is the structural representation of ad distribution device of the present invention;Fig. 5 is advertisement clothes of the present invention
The structural representation of business device.
As shown in Figure 4, described ad distribution device, including:
Ad-request unit, for initiating to obtain multiple ad-request to Advertisement Server;Wherein, should
Ask and include the multiple advertisement positions numbering needing to carry out advertising display on advertisement interface;
Ad distribution unit, is used for receiving described advertising message, extracts the advertising message that should show also
Carry out the issue of advertisement corresponding on advertisement page;
Advertisement position numbered cell, for carrying out advertisement position numbering for all advertisement positions on webpage.
Further, described ad-request unit, it is used for using javascript to initiate to obtain to described Advertisement Server
Take ad-request;
Described ad distribution unit, is used for according to javascript and the Html address in described advertising message,
Perform described javascript code and carry out the issue of corresponding advertisement.
As it is shown in figure 5, described Advertisement Server, including:
Receive unit, be used for receiving ad distribution device and initiate to obtain ad-request;
Wherein, this request includes need to carry out on advertisement interface advertising display multiple advertisement positions compile
Number;
Unit is searched in advertisement, after being used for receiving described ad-request, obtains described according to advertisement position numbering
The advertising message that should show that advertisement position numbering is corresponding;
Transmitting element, for returning to described ad distribution device by described advertising message.
Further, unit is searched in described advertisement, for according to described advertisement position numbering be polled obtaining each extensively
Accuse the advertising message that position should show;Wherein, described advertising message contains relevant javascript generation
Code and Html address.
After this invention takes such scheme, this system once can be asked repeatedly asking to merge into,
The connection number that so server is produced by client can be greatly decreased, so that by identical number of servers
More user can be serviced.
And, additionally it is possible to reduce substantial amounts of repetition data, many parts of identical datas be reduced to portion, thus
Effectively reduce volume of transmitted data.
Further, when server-side processes advertisement, owing to multiple advertisement positions of the same page are merged into
One request processes, and can effectively process the relation between advertisement position, thus effectively evade advertisement
The phenomenon of conflict.
One of ordinary skill in the art will appreciate that: realize all or part of step of said method embodiment
Can be completed by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer-readable
Taking in storage medium, this program upon execution, performs to include the step of said method embodiment;And it is aforementioned
Storage medium include: read only memory (Read Only Memory, be called for short ROM), random access memory are deposited
Reservoir (Random Acess Memory is called for short RAM), magnetic disc, terminal phone software or CD etc. are each
Plant the medium that can store program code.
Last it is noted that the foregoing is only the preferred embodiments of the present invention, it is not used to limit
The present invention processed, although being described in detail the present invention with reference to previous embodiment, for this area
For technical staff, the technical scheme described in foregoing embodiments still can be modified by it, or
Person carries out equivalent to wherein portion of techniques feature.All within the spirit and principles in the present invention, made
Any modification, equivalent substitution and improvement etc., should be included within the scope of the present invention.