Invention content
The embodiment of the present invention provides a kind of advertisement generation method and device, and to improve the formation efficiency of advertisement, enhancing is wide
Accuse main service experience.
First aspect of the embodiment of the present invention provides a kind of advertisement generation method, and this method includes:
It detects ad data update event, searches the advertisement pattern for showing updated ad data;
Displaying rule based on the preconfigured advertisement pattern carries out data processing to updated ad data, obtains
To the advertisement that displaying pattern is the advertisement pattern.
Optionally, the ad data update event includes:Create the event of new ad data;
The advertisement pattern searched for showing updated ad data, including:
The advertisement pattern of all data contents that can be used for showing new advertisement is searched in first database, wherein described new
The data content of advertisement includes at least following one kind:Word, picture, audio, video.
Optionally, the ad data update event includes:Edit the event of old ad data, the old advertisement number of editor
According to event include any one following:Data addition, data change and data are deleted;
The advertisement pattern looked for for showing updated ad data, including:
Other advertisement samples for belonging to same style type with the advertisement pattern of the old advertisement are searched in first database
Formula.
Optionally, the ad data update event includes the restricted information of advertisement pattern;
The advertisement pattern searched for showing updated ad data, including:
According to the restricted information, the advertisement sample for meeting limitation requirement is filtered out from all advertisement patterns found
Formula.
Optionally, the method further includes:
If the advertisement pattern filtered out is multiple, prompt message is exported, to prompt advertiser from the multiple advertisement
It selects to show the advertisement pattern of updated ad data in pattern.
Optionally, the displaying rule of the advertisement pattern is included in placement rule and display area in display area
Content composition rule per sub-regions;
The displaying rule based on the preconfigured advertisement pattern carries out at data updated ad data
Reason obtains the advertisement that displaying pattern is the advertisement pattern, including:
Each sub-district in the placement rule and display area of display area based on the preconfigured advertisement pattern
The content composition rule in domain splits updated ad data and/or is spliced and layout processing, obtains flex spline
Formula is the advertisement of the advertisement pattern.
Optionally, the method further includes:
In the second database, classification storage is carried out to ad data update event according to event type.
A kind of advertisement generating means of second aspect of embodiment of the present invention offer, the device, including:
Searching module, for when detecting that ad data updates thing, searching to show updated ad data
Advertisement pattern;
Data processing module, for the displaying rule based on the preconfigured advertisement pattern to updated advertisement number
According to data processing is carried out, the advertisement that displaying pattern is the advertisement pattern is obtained.
Optionally, the ad data update event includes:Create the event of new ad data;
The searching module, including:
First searches submodule, all available for showing the data content of new advertisement for being searched in first database
Advertisement pattern, wherein the data content of the new advertisement includes at least following one kind:Word, picture, audio, video.
Optionally, the ad data update event includes:Edit the event of old ad data, the old advertisement number of editor
According to event include any one following:Data addition, data change and data are deleted;
The searching module, including:
Second searches submodule, belongs to with the advertisement pattern of the old advertisement for being searched in first database
Other advertisement patterns of formula type.
Optionally, the ad data update event includes the restricted information of advertisement pattern;
The searching module, including:
Submodule is screened, for according to the restricted information, being filtered out from all advertisement patterns found and meeting limit
Make the advertisement pattern of requirement.
Optionally, described device includes:
Output module, for the advertisement pattern filtered out for it is multiple when, export prompt message, to prompt advertiser from
It selects to show the advertisement pattern of updated ad data in the multiple advertisement pattern.
Optionally, the displaying rule of the advertisement pattern is included in placement rule and display area in display area
Content composition rule per sub-regions;
The data processing module, is specifically used for:
Each sub-district in the placement rule and display area of display area based on the preconfigured advertisement pattern
The content composition rule in domain splits updated ad data and/or is spliced and layout processing, obtains flex spline
Formula is the advertisement of the advertisement pattern.
Optionally, described device includes:
Memory module is deposited in the second database, carrying out classification to ad data update event according to event type
Storage.
Based on aspects above, the embodiment of the present invention has the advantages that:
It is updated wide for showing by when detecting ad data update event, searching in the embodiment of the present invention
Accuse the advertisement pattern of data;Displaying rule based on the preconfigured advertisement pattern carries out data processing to ad data, obtains
To the advertisement of the advertisement pattern.Since the embodiment of the present invention can be when detecting ad data update event, automatic search is used
Data are carried out to ad data in the advertisement pattern for showing updated ad data, and based on the displaying rule of the advertisement pattern
Processing obtains the advertisement of novel type, meets the ad data of the displaying rule of the advertisement pattern altogether because being carried without advertiser,
So as to save the time linked up with advertiser, the formation efficiency and real-time of advertisement are improved, reduces the work of advertiser
Amount, improves service experience.In addition, the displaying rule due to pre-setting advertisement pattern in the embodiment of the present invention,
When generating advertisement, directly ad data can be handled according to the displaying rule of advertisement pattern, acquisition meets displaying rule
Ad data, be required for being developed again for data processing without often generating a new advertisement as the prior art
Code, further improve the formation efficiency of advertisement.
The term " comprising " and " having " of description and claims of this specification and their any deformation, it is intended that
Be to cover it is non-exclusive include, for example, the device of process or structure for containing series of steps is not necessarily limited to clearly arrange
It is that those structures or step for going out but may include are not listed clearly or for the intrinsic other steps of these processes or device
Rapid or structure.
The embodiment of the present invention provides a kind of advertisement generation method, and this method can be performed by a kind of advertisement generating means,
Under some scenes, which can be specially a kind of hardware entities or software program is arranged on at calculating
In the server for managing function.Under other scenes, which, which can also be specially, has the function of calculation processing
Server.Referring to Fig. 1, Fig. 1 is the flow chart of a kind of advertisement generation method that one embodiment of the invention provides, as shown in Figure 1,
This method includes:
Step 101 detects ad data update event, searches the advertisement sample for showing updated ad data
Formula.
In the present embodiment, ad data update event includes creating the event of new ad data and edits old ad data
Event, wherein, the event for editing old ad data includes any one following edit format:Data addition, data change and
Data are deleted.
The ad data that the present embodiment is related to includes at least one kind in following data:Word, picture, audio, video.
In the present embodiment, all generated advertisements are stored in a database, and all advertisement styles stores are another
In one database, the data for storing advertisement are become the second database by the present embodiment, and the database for storing advertisement pattern is become
First database.
Optionally, it when advertisement generating means detect the event for creating new ad data, is searched from first database
It is all can be used for show new advertisement data contents advertisement pattern, the advertisement pattern found at this time may be one may also
It is multiple.For example, the data content of new advertisement includes word and picture, wherein word content includes title and text, one
There may be multiple similar advertisement patterns in the case of kind is possible, differ only in the size of picture in different advertisement patterns
It is different.Another may in the case of there is likely to be multiple advertisement patterns, identical point is to show title, just simultaneously
Text and picture, difference are that the relative placement position of title, text and picture three in advertisement pattern is different.Certainly this
In it is merely illustrative explanation rather than to the present invention unique restriction.
Optionally, it when advertisement generating means detect the event for editing old ad data, is searched from first database
Belong to other advertisement patterns of same style type with the advertisement pattern of old advertisement.It is similar, the advertisement sample of acquisition is searched at this time
Equally possible formula is one or more.Wherein, the present embodiment does not limit the mode classification of advertisement pattern specifically.
Further, due under some scenes advertiser may have specific requirement to advertisement pattern, at this point, selected
Advertisement pattern has to comply with the requirement of advertiser, and not necessarily all meets wanting for advertiser in the advertisement pattern of above-mentioned acquisition
It asks, it is necessary to the advertisement pattern of above-mentioned acquisition further be screened according to requirement of the advertiser to advertisement pattern.
For these reasons, if advertiser requires advertisement pattern, then advertiser is in establishment or edit advertisement number
According to when need simultaneously add its restricted information to advertisement pattern ad data that advertisement generating means detect at this time update thing
The restricted information that will carry advertisement pattern in part, advertisement generating means are according to the restricted information, from all advertisements found
The advertisement pattern for meeting limitation requirement is filtered out in pattern.For example, advertiser is restricted to display size of the picture in advertisement,
So it is satisfactory to filter out picture display size from the above-mentioned all advertisement patterns found for advertisement generating means needs
Advertisement pattern.
Under some scenes, the advertisement pattern obtained by above-mentioned screening may be still multiple, and there are two types of handle at this time
Mode:
In a kind of possible processing mode:An advertisement is generated according to each advertisement pattern, obtains multiple advertisements.Than
Such as, after the screening by the example above, there are two the satisfactory advertisement patterns of picture display size, one of advertisement sample
Picture display size in formula is more than the display size of picture in another advertisement pattern, then can be wide according to the two simultaneously
Pattern is accused, generates two advertisements, gives the big advertisement pushing of picture display size to the terminal device under wifi network environment,
Give the relatively small advertisement pushing of picture worry size to the terminal device under mobile network environment.Certainly it is only for examples
Illustrate rather than to unique restriction of the invention.
In alternatively possible processing mode:It can export that advertiser is prompted to select to use from multiple advertisement patterns
To show the advertisement pattern of updated ad data.Advertisement pattern so as to be selected according to advertiser generates advertisement.
Step 102, the displaying rule based on the preconfigured advertisement pattern are to updated ad data into line number
According to processing, the advertisement that displaying pattern is the advertisement pattern is obtained.
In the present embodiment, the displaying rule of advertisement pattern is included in placement rule and display area in display area
Content composition rule per sub-regions.Specifically, the placement rule in display area just refers to provide entire display area
It is divided into several sub-regions and size, shape and position per sub-regions.Content composition rule per sub-regions
Refer to that every sub-regions show what content (such as picture, text, title, audio, video etc.) and shown per sub-regions
What the building form of content is, for example, subregion shows that the building form of content can be defined as in one example:It is aobvious
Show that content is equal to title plus n character before text, certainly unique restriction it is only for illustrating rather than to the present invention.
Optionally, the display rule of advertisement pattern is preconfigured in the present embodiment, in advertisement generating means foundation
After step 101 finds the advertisement pattern of needs, advertisement generating means are according to all corresponding display area of the advertisement pattern
Placement rule and the content composition rule per sub-regions, are split and/or are spliced to updated ad data, with
And layout processing, obtain the advertisement that displaying pattern is the advertisement pattern.For example, advertisement pattern includes description region and picture region
Domain, wherein, the content for describing region is equal to title plus n character before text, and a length of 4 centimetres of picture, wide in picture region
It it is 4 centimetres, then the preceding n character composition description content that title and text are extracted from updated ad data is placed on description area
Domain, by the picture in updated ad data be adjusted to it is long and it is wide be that 4 centimetres of picture is placed on picture region.Certainly here
Merely illustrative explanation rather than unique restriction to the present invention.
In the present embodiment, by when detecting ad data update event, searching for showing updated advertisement number
According to advertisement pattern;Displaying rule based on the preconfigured advertisement pattern carries out data processing to ad data, is somebody's turn to do
The advertisement of advertisement pattern.Since the present embodiment can be automatic to search to show more when detecting ad data update event
The advertisement pattern of ad data after new, and data processing is carried out to ad data based on the displaying rule of the advertisement pattern and is obtained
The advertisement of novel type meets the ad data of the displaying rule of the advertisement pattern because being carried without advertiser, so as to save altogether
It the time linked up with advertiser, the formation efficiency and real-time of advertisement are improved, reduces the workload of advertiser, improves
Service experience.In addition, the displaying rule by pre-setting advertisement pattern in this present embodiment, therefore, when generating advertisement, energy
It is enough that directly ad data is handled according to the displaying rule of advertisement pattern, the ad data for meeting displaying rule is obtained, and
It is not required to often to generate a new advertisement as the prior art and is required for developing the code for data processing again, further
Improve the formation efficiency of advertisement.
Fig. 2 is the flow chart of a kind of advertisement generation method that further embodiment of this invention provides, as shown in Fig. 2, in Fig. 1 realities
On the basis of applying example, this method comprises the following steps:
Step 201 detects ad data update event, searches the advertisement sample for showing updated ad data
Formula.
Step 202, in the second database, according to event type to ad data update event carry out classification storage.
In the present embodiment, the event type of ad data update event includes creating the event of new ad data and edit old
The event of ad data, in the second database, all events for creating new ad data are stored in a storage region, own
The event for editing old ad data is stored in another storage region.
Optionally, the event for editing old ad data can also be carried out in a kind of possible realization method further
It divides, the event that design data is added is stored in a storage region, the event that design data is changed is stored in another
The time that design data is deleted is stored in another storage region by a storage region.
The merely illustrative explanation of dividing mode of certain above-mentioned event type rather than unique restriction to the present invention, it is practical
On, event type can be divided in practical application according to actual needs.
Optionally, it is respectively that a phase is configured in each event type in order to improve advertisement formation efficiency, in the present embodiment
The processor answered, such a processor only needs to handle a kind of event type, and can accomplish to same event class
The data of type carry out batch processing.Improve advertisement formation efficiency.
Step 203, the displaying rule based on the preconfigured advertisement pattern are to updated ad data into line number
According to processing, the advertisement that displaying pattern is the advertisement pattern is obtained.
In the present embodiment, by when detecting ad data update event, searching for showing updated advertisement number
According to advertisement pattern;Displaying rule based on the preconfigured advertisement pattern carries out data processing to ad data, is somebody's turn to do
The advertisement of advertisement pattern.Since the present embodiment can be automatic to search to show more when detecting ad data update event
The advertisement pattern of ad data after new, and data processing is carried out to ad data based on the displaying rule of the advertisement pattern and is obtained
The advertisement of novel type meets the ad data of the displaying rule of the advertisement pattern because being carried without advertiser, so as to save altogether
It the time linked up with advertiser, the formation efficiency and real-time of advertisement are improved, reduces the workload of advertiser, improves
Service experience.In addition, the displaying rule by pre-setting advertisement pattern in this present embodiment, therefore, when generating advertisement, energy
It is enough that directly ad data is handled according to the displaying rule of advertisement pattern, the ad data for meeting displaying rule is obtained, and
It is not required to often to generate a new advertisement as the prior art and is required for developing the code for data processing again, further
Improve the formation efficiency of advertisement.
Fig. 3 is the structure diagram of a kind of advertisement generating means that one embodiment of the invention provides.The advertisement generating means
A kind of hardware entities can be specially under some scenes or software program is arranged on the service with calculation processing
In device, under other scenes, which can also be specially the server with calculation processing.Such as figure
Shown in 3, advertisement generating means 11 include:
Searching module 111, for when detecting that ad data updates thing, searching to show updated ad data
Advertisement pattern;
Data processing module 112, for the displaying rule based on the preconfigured advertisement pattern to updated wide
It accuses data and carries out data processing, obtain the advertisement that displaying pattern is the advertisement pattern.
Optionally, the ad data update event includes:Create the event of new ad data;
The searching module 111, including:
First searches submodule, all available for showing the data content of new advertisement for being searched in first database
Advertisement pattern, wherein the data content of the new advertisement includes at least following one kind:Word, picture, audio, video.
Optionally, the ad data update event includes:Edit the event of old ad data, the old advertisement number of editor
According to event include any one following:Data addition, data change and data are deleted;
The searching module 111, including:
Second searches submodule, belongs to with the advertisement pattern of the old advertisement for being searched in first database
Other advertisement patterns of formula type.
Optionally, the ad data update event includes the restricted information of advertisement pattern;
The searching module 111, including:
Submodule is screened, for according to the restricted information, being filtered out from all advertisement patterns found and meeting limit
Make the advertisement pattern of requirement.
Optionally, described device includes:
Output module, for the advertisement pattern filtered out for it is multiple when, export prompt message, to prompt advertiser from
It selects to show the advertisement pattern of updated ad data in the multiple advertisement pattern.
Optionally, the displaying rule of the advertisement pattern is included in placement rule and display area in display area
Content composition rule per sub-regions;
The data processing module 112, is specifically used for:
Each sub-district in the placement rule and display area of display area based on the preconfigured advertisement pattern
The content composition rule in domain splits updated ad data and/or is spliced and layout processing, obtains flex spline
Formula is the advertisement of the advertisement pattern.
Device provided in this embodiment is able to carry out the technical solution of Fig. 1 embodiments, executive mode and advantageous effect class
Seemingly, it repeats no more herein.
Fig. 4 is the structure diagram of a kind of advertisement generating means that further embodiment of this invention provides, as shown in figure 4,
On the basis of Fig. 3 embodiments, advertisement generating means 11 further include:
Memory module 113, in the second database, classifying according to event type to ad data update event
Storage.
Device provided in this embodiment can be used in performing the technical solution of Fig. 2 embodiments, executive mode and beneficial effect
Fruit seemingly, repeats no more herein.
The embodiment of the present invention also provides a kind of server, which includes:It processor and can be held for storing processor
The memory of row instruction, following method is performed when processor performs the instruction in above-mentioned memory:
It detects ad data update event, searches the advertisement pattern for showing updated ad data;
Displaying rule based on the preconfigured advertisement pattern carries out data processing to updated ad data, obtains
To the advertisement that displaying pattern is the advertisement pattern.
The embodiment of the present invention also provides a kind of non-transitorycomputer readable storage medium including instructing, such as including referring to
The memory of order, above-metioned instruction can be performed to complete the above method by the processor of server.For example, the non-transitory calculates
Machine readable storage medium storing program for executing can be ROM, random access memory (RAM), CD-ROM, tape, floppy disk and optical data storage devices
Deng.
A kind of non-transitorycomputer readable storage medium, when the instruction in the storage medium is by the processing of above-mentioned server
When device performs so that the processor of server performs following method:
It detects ad data update event, searches the advertisement pattern for showing updated ad data;
Displaying rule based on the preconfigured advertisement pattern carries out data processing to updated ad data, obtains
To the advertisement that displaying pattern is the advertisement pattern.
In the present embodiment, by when detecting ad data update event, searching for showing updated advertisement number
According to advertisement pattern;Displaying rule based on the preconfigured advertisement pattern carries out data processing to ad data, is somebody's turn to do
The advertisement of advertisement pattern.Since the present embodiment can be automatic to search to show more when detecting ad data update event
The advertisement pattern of ad data after new, and data processing is carried out to ad data based on the displaying rule of the advertisement pattern and is obtained
The advertisement of novel type meets the ad data of the displaying rule of the advertisement pattern because being carried without advertiser, so as to save altogether
It the time linked up with advertiser, the formation efficiency and real-time of advertisement are improved, reduces the workload of advertiser, improves
Service experience.In addition, the displaying rule by pre-setting advertisement pattern in this present embodiment, therefore, when generating advertisement, energy
It is enough that directly ad data is handled according to the displaying rule of advertisement pattern, the ad data for meeting displaying rule is obtained, and
It is not required to often to generate a new advertisement as the prior art and is required for developing the code for data processing again, further
Improve the formation efficiency of advertisement.
It is last it should be noted that one of ordinary skill in the art will appreciate that whole in above-described embodiment method or
Part flow is that relevant hardware can be instructed to complete by computer program, and the program can be stored in a computer
In readable storage medium storing program for executing, the program is when being executed, it may include such as the flow of the embodiment of above-mentioned each method.Wherein, it is described to deposit
Storage media can be disk, CD, read-only memory (ROM) or random access memory (RAM) etc..
Each functional unit in the embodiment of the present invention can be integrated in a processing module or each unit
Individually be physically present, can also two or more units be integrated in a module.Above-mentioned integrated module both can be with
It is realized, can also be realized in the form of software function module in the form of hardware.If the integrated module is with software
The form of function module realizes, and is independent product and sells or computer-readable deposited in use, one can also be stored in
In storage media.Storage medium mentioned above can be read-only memory, disk or CD etc..
The above embodiments are only used to illustrate the technical solution of the present invention., rather than its limitations;Although with reference to aforementioned each reality
Example is applied the present invention is described in detail, it will be understood by those of ordinary skill in the art that:It still can be to aforementioned each
Technical solution recorded in embodiment modifies and either carries out equivalent replacement to which part or all technical features;And
These modifications are replaced, the range for various embodiments of the present invention technical solution that it does not separate the essence of the corresponding technical solution.