js|server| Server | advertising | Planning One, the billing mode of website advertisement
Part of the Ad Server (ADS server) module of a Web site looks at the business model, and the Ad server needs to support a minimum of two billing modes: on-Time and Pay-per-click.
For billing by release time, the release event is easy to get, the difficulty is to terminate the release time, if not a timer. For a large number of applications running servers, in view of the resource consumption considerations, the use of multithreading timer to be cautious, there is no doubt that the decentralized to the module-level discretion of the timer is inefficient and dangerous. If the complete timer is used in a single module, also makes this module development appears too big, the marginal function occupies the main development work; If you share a timing framework, then you need to make the overall rules for the existing timing function to use the new timing framework, which is actually an upgrade.
Even for the number of clicks, billing is still necessary, which is not the same as Googgle ads; the latter does not have a fixed page or a fixed format. The former, there is a fixed place, if the simple use of Pay-per-click, then who would like to put the first column of the first page, because do not click is not to collect money.
Second, advertising columns and advertising items;
The advertising position (column) as an advertising box, then published to this box of advertising items should be regarded as the owner of all things, he is the rental site ads and the corresponding billing services, the release of their own ads, and then pay the website advertising costs. Each ad entry includes the content of the advertisement (the posting code), and each ad column (location) includes price information and scrolling settings, which is the setting of the rotation ad, and the default blank content. The advertisement item and the advertisement position are a many-to-many relationship, through the entity of an advertisement item order to realize the contact.
The order of an ad item is like this: Each ad item can be posted to a different advertising position (order) to use how long the dough is to be spent, and multiple orders are queued sequentially. This means that there is a need for a two-way advertising order management module to exist.
The advertising implementation is done through the tag. The label application needs to include the following attributes: Ad bit ID, ad entry id. The ID of the ad position binds the advertising tag to the location of the advertisement, obtains the price and the replacement content of the advertisement, and the time of publication, and obtains the advertised content by the advertising item ID.
Third, the website manager to develop the advertisement column
Advertising column is mainly related to the cost, but does not include location information, then there is no relationship with the page (which is determined by the use of the label), in general, and cost-related. Location information is just one of its hint attributes. In this way, advertising can be uncertain with the location of "a certain type of" companion, the same ad column can appear in different sections, and the same version can appear multiple advertising positions. Therefore, the advertising column is essentially equivalent to the set of advertising partners. This is because, in any case, the definition of advertising location, ultimately, through the JSP code of the page to respond, since the JSP tag itself and position binding, it does not have to be in the abstract layer to manage it. In this way, you can save the administrator a lot of work.
Advertising customers to develop advertising items, and linked to specific units, departments of each advertisement;
Advertisers apply the Yellow Pages logic to the management of advertising items. Manage the advertising content on your own, and then post it to a few ads. Different ads have different (lower) base release fees, and then add one click Charge per click. Each advertisement expression roughly includes the display effect--"Click Link-count-turn target interface;" The display effect is by the Advertiser self Management or by the website management, or a little inconclusive, probably the most appropriate way is to use the template; an IFRAME can make the error of the effect code not affect the layout of the published layout, Also, the download of the target code does not affect the display of the main layout. Overall, is to minimize the site itself management requirements, the more able to achieve this goal, the actual operation will be better.
V. Advertising column to deal with the advertising order;
Advertising item orders with the length of the release time set, the release of events can be easily obtained, so you can get an ad column in the advertising order has a deadline for the start and end time. The advertisement label to the server time control, determines whether the advertisement item is in the validity period, if is not in the validity period, the advertisement item clears, reads out the next line order; If there is no queue order, take out the default column content, and put the ad column for free. So you don't need a timer.
Six, the realization of the rotation advertisement
The same advertising with the random appearance of different content, that is, different advertising orders, only the strong demand for advertising positions, both hope that customers can sign more long-term orders, and do not want to monopolize the maximum potential benefits of the advertising position when the real application. Rotation can be seen as a method of random conversion in the ad column itself. Using a random number instead of a time segment is certain, so the algorithm is more efficient and simpler than using the time segment segmentation.
Whether it's using a rotational advertising companion with a probabilistic sharing method or a few ad presets that randomly share an ad location, the two abstract models seem to have the same effect. The former is set on the attribute of the advertisement column, the latter is can use many columns on the call label. In contrast, I tend to use the latter logic from maintaining the consistency of advertising columns. That is, in the same column randomly shared ads column as a different column, set its price, through the call on the label on the share call.
Seven, the advertising module needs the development work summary:
- At least three data entities: Advertising columns, advertising column orders, advertising items and their regular management interface;
- A counting-turn CGI program;
- The JSP tag that the advertisement item publishes;
- The statistical interface of the publication usage of the advertisement column;
- The tracking interface of the advertising column order;
- The statistic interface after the advertisement item is published;
And the package service is not included here, can not think of it and the core modules have any inevitable relationship.