Nothing Special   »   [go: up one dir, main page]

CN106485534A - The generation method of advertisement and device in webpage - Google Patents

The generation method of advertisement and device in webpage Download PDF

Info

Publication number
CN106485534A
CN106485534A CN201610719529.8A CN201610719529A CN106485534A CN 106485534 A CN106485534 A CN 106485534A CN 201610719529 A CN201610719529 A CN 201610719529A CN 106485534 A CN106485534 A CN 106485534A
Authority
CN
China
Prior art keywords
advertisement
generated
length
picture
height ratio
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610719529.8A
Other languages
Chinese (zh)
Inventor
马春阳
杨昌源
忻程烨
王茂星
王晶
朱梦
朱一梦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Publication of CN106485534A publication Critical patent/CN106485534A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Strategic Management (AREA)
  • Finance (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application proposes the generation method of advertisement and device in a kind of webpage.Wherein, the method includes:Obtain ad elements;Obtain the length to height ratio of advertisement to be generated;Length to height ratio according to advertisement to be generated determines the corresponding Dimension Types of advertisement to be generated;Corresponding create-rule is obtained according to Dimension Types;Advertisement to be generated is generated according to ad elements and create-rule.The generation method of advertisement in the webpage of the embodiment of the present application, so that user is during design advertisement, need not spend the time that countless advertisement formworks are made, greatly reduce the cost of design advertisement, advertisement is conveniently generated, meets the demand of the design advertisement of user.

Description

The generation method of advertisement and device in webpage
Technical field
The application is related to Internet technical field, the generation method of advertisement and device in more particularly to a kind of webpage.
Background technology
Banner (Banner) advertisement is the traditional method that advertises on the world wide web (www.Webpage publisher is in the webpage of distribution On leave open space, for insertion into banner, be typically different the size in space of the webpage left by banner Difference, this require that user makes various sizes of banner according to the actual demand of webpage.
At present, in order to show various sizes of banner in different web pages, usual user needs wide for banner Accuse and the different banner template of countless sizes is made, such as user can make 720*290 pixel, 750*360 pixel, 350*150 Pixel, the banner template of 780*270 pixel equidimension.An a size of 720* has been made in user for specific ad content After the banner of 290 pixels, if the user find that needing the banner of an a size of 350*150 pixel wide on current web page Accuse, now, user can first obtain the banner template of pre-production, and the content on existing banner is assembled in a size of In the banner template of 350*150.
However, existing in webpage generate banner mode there are the following problems:(1) user needs according to demand Countless banner templates are set, make the relatively costly of banner;(2), after webpage correcting, user needs to redesign banner Template;(3) due to the word number in each banner, and picture pattern is not all fixed, therefore, by fixing banner Template goes assembly, and adaptation success rate is low, needs to manually adjust, it is impossible to meet the demand of different design advertisements.
Content of the invention
The application is intended at least to solve to a certain extent one of technical problem in correlation technique.
For this purpose, first purpose of the application is to propose a kind of generation method of advertisement in webpage, the method causes to use Family need not be spent the time to make countless advertisement formworks, greatly reduce the cost of design advertisement during design advertisement, Advertisement is conveniently generated, meets the demand of the design advertisement of user.
Second purpose of the application is to propose a kind of generating means of advertisement in webpage.
For reaching above-mentioned purpose, the application first aspect embodiment proposes a kind of generation method of advertisement in webpage, including: Obtain ad elements;Obtain the length to height ratio of advertisement to be generated;Length to height ratio according to the advertisement to be generated determines described to be generated The corresponding Dimension Types of advertisement;Corresponding create-rule is obtained according to the Dimension Types;According to ad elements and described Create-rule generates the advertisement to be generated.
The generation method of advertisement in the webpage of the embodiment of the present application, obtains growing tall for ad elements and advertisement to be generated first Than then determining the corresponding Dimension Types of advertisement to be generated according to the length to height ratio of advertisement to be generated, and being obtained according to Dimension Types Corresponding create-rule, and advertisement to be generated is generated according to ad elements and the corresponding create-rule of Dimension Types.Thus, make User is obtained during design advertisement, need not spend the time that countless advertisement formworks are made, greatly reduce design advertisement Cost, conveniently generates advertisement, meets the demand of the design advertisement of user.
For reaching above-mentioned purpose, the application second aspect embodiment proposes a kind of generating means of advertisement in webpage, including: First acquisition module, for obtaining ad elements;Second acquisition module, for obtaining the length to height ratio of advertisement to be generated;Determine mould Block, for determining the corresponding Dimension Types of the advertisement to be generated according to the length to height ratio of the advertisement to be generated;3rd obtains mould Block, for obtaining corresponding create-rule according to the Dimension Types;Generation module, for according to ad elements and described Create-rule generates the advertisement to be generated.
The generating means of advertisement in the webpage of the embodiment of the present application, obtain ad elements by the first acquisition module, pass through The length to height ratio of the second acquisition module advertisement to be generated, it is then determined that module determined according to the length to height ratio of advertisement to be generated to be generated wide Accuse corresponding Dimension Types, the 3rd acquisition module obtains corresponding create-rule according to Dimension Types, and generation module according to Ad elements and the corresponding create-rule of Dimension Types generate advertisement to be generated.As a result, process of the user in design advertisement In, need not spend the time that countless advertisement formworks are made, the cost of design advertisement is greatly reduced, conveniently generate wide Accuse, meet the demand of the design advertisement of user.
Description of the drawings
Fig. 1 be the application one embodiment webpage in advertisement generation method flow chart.
Fig. 2 is the exemplary plot of the source advertisement of the application one embodiment.
Fig. 3 a is the application one embodiment according to the create-rule of ad elements and super-high generation advertisement to be generated During first show the effect diagram of word content.
Fig. 3 b is the application one embodiment according to the create-rule of ad elements and super-high generation advertisement to be generated During complete the effect diagram that full content shows.
Fig. 4 a is the application one embodiment according to the create-rule of ad elements and high type generation advertisement to be generated During first show the effect diagram of image content.
Fig. 4 b is the application one embodiment according to the create-rule of ad elements and high type generation advertisement to be generated During complete the effect diagram that full content shows.
Fig. 5 is the schematic diagram of the painting canvas of the advertisement to be generated of the square comprising tangent line of the application one embodiment.
Fig. 6 is the schematic diagram of the process of the determination delta-shaped region of the application one embodiment.
Fig. 7 a is placing showing for picture in the painting canvas of the advertisement to be generated of square in proportion for the application one embodiment It is intended to.
Fig. 7 b is the schematic diagram after the advertisement to be generated filling word of the square of the application one embodiment.
Fig. 8 a is the schematic diagram after the advertisement to be generated filling picture of the elongated of the application one embodiment.
Fig. 8 b be the elongated of the application one embodiment advertisement to be generated according to picture mapping ruler to picture scaling and Mobile schematic diagram.
After Fig. 8 c is the advertisement to be generated filling word of the advertisement elongated to be generated of the elongated of the application one embodiment Schematic diagram.
Fig. 9 a is the schematic diagram after the advertisement to be generated filling word of the super long type of the application one embodiment.
Fig. 9 b is the schematic diagram after the advertisement to be generated filling picture of the super long type of the application one embodiment.
Fig. 9 c is the schematic diagram after the picture movement in the advertisement to be generated of the super long type of the application one embodiment.
Figure 10 be the application one embodiment webpage in advertisement generating means structural representation.
Figure 11 be another embodiment of the application webpage in advertisement generating means structural representation.
Figure 12 is the process chart of the generation method of advertisement in a kind of webpage that one embodiment of the application is provided.
Figure 13 be one embodiment of the application webpage in targeted advertisements position schematic diagram.
Figure 14 is the process chart of the generation method of advertisement in another webpage that one embodiment of the application is provided.
Specific embodiment
Embodiments herein is described below in detail, the example of the embodiment is shown in the drawings, wherein from start to finish Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the application, and it is not intended that restriction to the application.
Below with reference to the accompanying drawings the generation method of advertisement and device in the webpage of the embodiment of the present application are described.
Fig. 1 be the application one embodiment webpage in advertisement generation method flow chart.
As shown in figure 1, the generation method of advertisement includes in the webpage:
S101, obtains ad elements.
Specifically, after source advertisement is obtained, layering can be carried out to source advertisement and is split to extract ad elements from the advertisement of source.
Wherein, above-mentioned ad elements can include character layer, picture layer and background layer.
S102, obtains the length to height ratio of advertisement to be generated.
S103, the length to height ratio according to advertisement to be generated determine the corresponding Dimension Types of advertisement to be generated.
In one embodiment of the application, the corresponding chi of advertisement to be generated is being determined according to the length to height ratio of advertisement to be generated Before very little type, can also judge whether the length to height ratio of source advertisement and advertisement to be generated is similar, if it is determined that similar, then according to treating Generate the length to height ratio of advertisement and source advertisement generates advertisement to be generated.
Specifically, the length to height ratio of advertisement to be generated can determine whether whether in the interval similar to the length to height ratio of source advertisement, such as In the interval, then advertisement to be generated is similar to the length to height ratio of source advertisement for fruit, now, the setting of advertisement reusable source advertisement to be generated Meter, i.e., be multiplexed the design of source advertisement, to generate advertisement to be generated.Specifically, can be to advertisement employing to be generated and source Advertisement identical layout, and source advertisement is integrally zoomed in and out according to the length to height ratio of advertisement to be generated.
Wherein, the interval similar to the length to height ratio of source advertisement is by presetting the percentage that arranges in the length to height ratio of source advertisement and system Number determines.For example, in system, default percentage is 5%, and the length to height ratio of source advertisement is 2, now, length to height ratio with source advertisement Similar interval is [1.9,2.1], if the length to height ratio for being calculated advertisement to be generated is 1.95, can determine that advertisement to be generated Similar to the length to height ratio of source advertisement, now, the design of advertisement reusable source advertisement to be generated, i.e., the design of source advertisement is carried out multiple With to generate advertisement to be generated.
It should be noted that after the length to height ratio of determination advertisement to be generated is similar to the length to height ratio of source advertisement, can be according to source Proportionate relationship between the size of advertisement and advertisement to be generated is zoomed in and out to source advertisement, and the advertisement after scaling is can be used as needing Advertisement to be generated.
In addition, if judge source advertisement and advertisement to be generated dissmilarity, then further according to the length to height ratio of advertisement to be generated Determine the corresponding Dimension Types of advertisement to be generated.
Specifically, if the length to height ratio of advertisement to be generated is less than the first ratio, judge the corresponding size of advertisement to be generated Type is super-high;If the length to height ratio of advertisement to be generated more than or equal to the first ratio and is less than the second ratio, judge to treat It is high type to generate the corresponding Dimension Types of advertisement;If the length to height ratio of advertisement to be generated is more than or equal to the second ratio and less than the Three ratios, then judge that the corresponding Dimension Types of advertisement to be generated are square;If the length to height ratio of advertisement to be generated is more than or equal to 4th ratio and be less than or equal to the 5th ratio, then judge that the corresponding Dimension Types of advertisement to be generated are elongated;And if treat The length to height ratio for generating advertisement is more than the 5th ratio, then judge that the corresponding Dimension Types of advertisement to be generated are super long type.
For example it is assumed that the first ratio is 1:3, the second ratio is 3:4, the 3rd ratio is 4:3, the 4th ratio is 8:5, the 5th Ratio is 3:The interval of the length to height ratio pre-saved in 1, and system is as shown in table 1 with the corresponding relation of Dimension Types, if calculating The length to height ratio for going out currently advertisement to be generated is 1, now can determine that according to the interval of length to height ratio and the corresponding relation of Dimension Types and works as The Dimension Types of front advertisement to be generated are square.
The interval of 1 length to height ratio of table and the corresponding relation of Dimension Types
The interval of length to height ratio Dimension Types
(0,1/3) Super-high
[1/3,3/4) High type
[3/4,4/3) Square
[8/5,3) Elongated
[3,∞) Super long type
S104, obtains corresponding create-rule according to Dimension Types.
Wherein, above-mentioned create-rule can include but is not limited to word filling region, picture filling region, word filling rule Then with picture fill rule, wherein, word filling region is used for filling character layer, and picture filling region is used for blank map lamella, Word fill rule is used for limiting the setting rule of word filling region Chinese word, and picture fill rule is used for limiting picture filling The setting rule of picture in region.
In one embodiment of the application, above-mentioned create-rule is except including word filling region, picture filling Outside region, word fill rule and picture fill rule, create-rule can also include picture mapping ruler, and wherein, picture reflects Penetrate rule to fill out for the picture layer of source advertisement being mapped to picture according to the length to height ratio of the when advertisement to be generated of growing tall of source advertisement Fill region.Above-mentioned picture mapping ruler can include to inhale in side mapping ruler, scaling mapping ruler and displacement mapping ruler Individual or multiple.Wherein, above-mentioned suction side mapping ruler includes to inhale bottom, ceiling, inhales the left side and inhale the right, and above-mentioned scaling mapping ruler is Refer to carry out scaling pictures according to high ratio, above-mentioned displacement mapping ruler refers to be multiplied by high relative scale to move according to shift length Motion picture cartoon.
S105, generates advertisement to be generated according to ad elements and create-rule.
Specifically, when the Dimension Types of advertisement to be generated are different, corresponding generated according to ad elements and create-rule The process of advertisement to be generated is different, divides situation to generate the process of advertisement to be generated to description below.
(1) if the Dimension Types of advertisement to be generated are super-high, corresponding given birth to according to ad elements and create-rule Become the detailed process of advertisement to be generated as follows:
A) word filling and layout
Specifically, it is assumed that the word fill rule of super-high is:Character layer is filled in the top of painting canvas, and character layer is filled out 3/4 no more than painting canvas top is filled, in addition, relative position is kept between each literal term in filling process character layer, this When, can be by the fills obtained from character layer in the advertisement of source in the top of the painting canvas of advertisement to be generated.
B) picture is filled
Specifically, it is assumed that the picture fill rule of super-high is:Region corresponding to lower 1/2 painting canvas is filled out as picture Fill region, and specify when picture is placed, by the center superposition of the center of picture and lower 1/2 painting canvas, now, can be according to picture The picture obtained from picture layer in the advertisement of source is loaded onto in the painting canvas of advertisement to be generated by fill rule automatically.
C) picture mapping
Specifically, the picture mapping ruler of source advertisement is mapped in advertisement to be generated, if the picture in the advertisement of source goes out Side is now inhaled, then suction side also occurs in the picture in corresponding advertisement to be generated.
For example it is assumed that in the picture mapping ruler of source advertisement do not include any mapping ruler, and the background layer of source advertisement with The background layer of advertisement to be generated is identical, that is to say, that during advertisement to be generated is generated, without the need for filling out to background layer Fill.The form of source advertisement is as shown in Figure 2, if it is determined that the Dimension Types of advertisement to be generated are super-high, now, according to source advertisement Ad elements and the create-rule of advertisement of super-high generate the detailed process of advertisement to be generated and be:First, will be to be generated wide The painting canvas of announcement is divided into 1/2 and lower 1/2, and the word obtained from the advertisement of source is filled in the painting canvas of advertisement to be generated, fills out The form of the painting canvas of the advertisement to be generated that fills after word as shown in Figure 3 a, then, finds down the central point of 1/2 painting canvas, from source In the picture layer of advertisement obtain picture, and by the central point of the picture with will overlap with the central point of lower 1/2 painting canvas, and according to Relation pair picture between the size of the size of advertisement to be generated and source advertisement is zoomed in and out, and fills the advertisement to be generated after picture Painting canvas form as shown in Figure 3 b.
(2) if the Dimension Types of advertisement to be generated are high type, corresponding generated according to ad elements and create-rule The detailed process of advertisement to be generated is as follows:
A) picture is filled
Specifically, it is assumed that the picture fill rule of high type is:Region corresponding to lower 1/2 painting canvas is filled as picture Region, and when picture is placed, by the center superposition of the center of picture and lower 1/2 painting canvas, now, can be first by advertisement to be generated Painting canvas divided, be divided into left 1/2 and lower 1/2 painting canvas, then, can will be from picture in the advertisement of source according to picture fill rule The picture obtained in layer is loaded onto in the painting canvas of advertisement to be generated automatically.
B) picture mapping
Specifically, the picture mapping ruler of source advertisement is mapped in advertisement to be generated, if the picture in the advertisement of source goes out Side is now inhaled, then suction side also occurs in the picture in corresponding advertisement to be generated.If the picture in the advertisement of source does not have picture mapping rule Then, then the picture of corresponding advertisement to be generated is also without mapping ruler.
C) word filling
Specifically, it is assumed that the word fill rule of high type is:Character layer is filled in the top of painting canvas, and character layer filling No more than the 3/4 of painting canvas top, if in the filling process, word has exceeded the width of the painting canvas of advertisement to be generated, then will Corresponding word is entered a new line.In addition, it is necessary to illustrate, between each literal term, keep relative in filling process character layer Position, and text flowing, now, the word content obtained from character layer in the advertisement of source can be filled in the picture of advertisement to be generated In upper the 1/2 of cloth.
For example it is assumed that in the picture mapping ruler of source advertisement do not include any mapping ruler, and the background layer of source advertisement with The background layer of advertisement to be generated is identical, that is to say, that during advertisement to be generated is generated, without the need for filling out to background layer Fill.The form of source advertisement is as shown in Figure 2, if it is determined that the Dimension Types of advertisement to be generated are high type, now, according to source advertisement The create-rule of the advertisement of ad elements and high type generates the detailed process of advertisement to be generated:First, by advertisement to be generated Painting canvas is divided into 1/2 and lower 1/2, finds down the central point of 1/2 painting canvas, and during picture is placed, from source advertisement Obtain picture in picture layer, and by the central point of the picture with will overlap with the central point of lower 1/2 painting canvas, and according to be generated Relation pair picture between the size of the size of advertisement and source advertisement is zoomed in and out, the painting canvas after advertisement filling picture to be generated The word obtained from the advertisement of source as shown in fig. 4 a, after having placed picture, can be filled in the painting canvas of advertisement to be generated by form In the painting canvas of advertisement to be generated, the form of the painting canvas after advertisement filling word to be generated is as shown in Figure 4 b.Permissible by Fig. 4 b Find out, the word for the painting canvas width for exceeding advertisement to be generated is entered a new line.It should be noted that the chi of advertisement to be generated Very little corresponding with the size of picture, Fig. 4 b can also represent the advertisement being newly successfully generated.
(3) if the Dimension Types of advertisement to be generated are square, corresponding generated according to ad elements and create-rule The detailed process of advertisement to be generated is as follows:
A) picture filling
Specifically, first tangent line can be determined according to the length to height ratio of advertisement to be generated, and tangential angle is tried to achieve, then wide according to source Picture in the picture layer of announcement determines positioning " just point ", then from " just point " (lower right corner vertical line of picture and the friendship of parallel lines Point) tangent line cutting picture is begun through, to find the tangent line side of picture, when tangent line is with picture only one of which intersection point, this point For boundary point, corresponding tangent line is boundary line, and now, picture completes to be included in what boundary line, vertical line and horizontal line were formed In delta-shaped region.
After the delta-shaped region comprising picture is obtained, the picture that picture is placed on advertisement to be generated can be proportionally scaled In cloth, will be in the maximized painting canvas for being placed on advertisement to be generated of picture.
B) word filling
After in the painting canvas that picture is placed on advertisement to be generated, the word for obtaining can be filled in be generated from the advertisement of source Become in the painting canvas of advertisement, in filling out during, should ensure that word and picture relative flow, and also should ensure that each word it Between keep relative position.
For example it is assumed that in the picture mapping ruler of source advertisement do not include any mapping ruler, and the background layer of source advertisement with The background layer of advertisement to be generated is identical, that is to say, that during advertisement to be generated is generated, without the need for filling out to background layer Fill.The form of source advertisement is as shown in Figure 2, if it is determined that the Dimension Types of advertisement to be generated are square, now, according to source advertisement The create-rule of the advertisement of ad elements and square generates the detailed process of advertisement to be generated:
The first step:Length to height ratio according to advertisement to be generated determines tangent line, painting canvas such as Fig. 5 of the advertisement to be generated comprising tangent line Shown;
Second step:Positioning " just point ", specifically, it is determined that going out the lower right corner vertical line of picture (picture in the advertisement of source) and putting down The intersection point of line, the intersection point are " just point ";
3rd step:The process for comprising the delta-shaped region comprising picture is completed, wherein obtaining delta-shaped region is cut out as schemed Shown in 6;
4th step:The graphic field that this is tried to achieve, proportionally places the picture extracted from the advertisement of source in painting canvas, Placement process is as shown in Figure 7a;
5th step:Filling word.
Specifically, the word obtained from the advertisement of source is filled in the painting canvas of advertisement to be generated, in filling out during, Word and picture relative flow is should ensure that, and also should ensure that holding relative position between each word.Advertisement filling to be generated The form of the painting canvas after word is as shown in Figure 7b.It should be noted that Fig. 7 b is also ad elements and the generation according to source advertisement The advertisement generated by rule.
(4) if the Dimension Types of advertisement to be generated are elongated, corresponding generated according to ad elements and create-rule The detailed process of advertisement to be generated is as follows:
A) picture is filled
Specifically, it is assumed that the picture fill rule of elongated is:Region corresponding to right 1/2 painting canvas is filled as picture Region, and specify when picture is placed, by the center superposition of the center of picture and right 1/2 painting canvas, now, can first will be to be generated The painting canvas of advertisement is divided, and is divided into 1/2 and right 1/2 painting canvas, then, can will be from the advertisement of source according to picture fill rule The picture obtained in picture layer is loaded onto in the painting canvas of advertisement to be generated automatically.
B) picture mapping
Specifically, the picture mapping ruler of source advertisement is mapped in advertisement to be generated, if wrapped in picture mapping ruler The mapping ruler containing scaling, the then picture being put in advertisement painting canva to be generated according to scaling rule are zoomed in and out, if picture mapping Include displacement mapping ruler in rule, then displacement is carried out to the picture after scaling according to displacement mapping ruler.If comprising picture In mapping ruler comprising suction when mapping ruler carries out suction to the picture in advertisement to be generated.
C) word filling
Specifically, it is assumed that the word fill rule of elongated is:Character layer is filled in the left side of painting canvas, and character layer filling No more than the 3/4 of the painting canvas left side, in addition, relative position between each literal term, is kept in filling process character layer, and text This relative flow, now, the word content obtained from character layer in the advertisement of source can be filled in the painting canvas of advertisement to be generated In left 1/2.
For example it is assumed that comprising according to high proportional zoom picture and according to high relative in the picture mapping ruler of source advertisement Ratio is moving picture, and the background layer of source advertisement is identical with the background layer of advertisement to be generated, that is to say, that to be generated generating During advertisement, without the need for being filled with to background layer.The form of source advertisement is as shown in Figure 2, if it is determined that advertisement to be generated Dimension Types are elongated, and now, the create-rule according to the advertisement of the ad elements and elongated of source advertisement generates advertisement to be generated Detailed process be:First, advertisement to be generated is divided into left 1/2 and right 1/2, then, finds the center of right 1/2 painting canvas Point, and during picture is placed, obtain picture from the picture layer of source advertisement, and by the central point of the picture with will be with the right side The central point of 1/2 painting canvas overlaps, and the relation pair picture between the size of the size according to advertisement to be generated and source advertisement enters Row scaling, the form of the painting canvas after the advertisement to be generated filling picture of elongated is as shown in Figure 8 a.Then, according to picture mapping ruler Picture in advertisement to be generated is mapped, as shown in Figure 8 b, the picture to advertisement to be generated is carried out specific mapping process Scaling and displacement.Finally, the word obtained from the advertisement of source is filled in the painting canvas on a left side 1/2 of advertisement to be generated, filling The form of the painting canvas of the advertisement to be generated after word as shown in Figure 8 c, it should be noted that Fig. 8 c is newly-generated advertisement.
(5) if the Dimension Types of advertisement to be generated are super long type, corresponding given birth to according to ad elements and create-rule Become the detailed process of advertisement to be generated as follows:
A) word filling and layout
Specifically, it is assumed that the word fill rule of super long type is:The painting canvas of advertisement to be generated is divided into left 1/2 and right 1/2, And the word obtained from the advertisement of source is filled in the painting canvas of advertisement to be generated.
B) determine picture filling region
Corresponding canvas area is picture filling region to word 10px (10 pixels) afterwards, and during filling word such as Fruit word exceedes the 3/4 of painting canvas, then according to the word of overage is entered a new line.
C) picture is filled
Specifically, it is assumed that the picture fill rule of super long type is:Using remaining for painting canvas region as scheming after word filling Piece fills region, overlaps with remaining painting canvas midpoint according to center picture point and is filled with, it is ensured that the longest edge of picture is full of, and During filling picture, it is ensured that keep relative flow between word and picture.
D) picture mapping
Specifically, the picture mapping ruler of source advertisement is mapped in advertisement to be generated, if the picture in the advertisement of source goes out Side is now inhaled, then suction side also occurs in the picture in corresponding advertisement to be generated;If comprising displacement mapping rule in picture mapping ruler Then, then the picture in painting canvas according to displacement mapping ruler to advertisement to be generated carries out displacement.If wrapped in picture mapping ruler The mapping ruler containing scaling, then zoom in and out according to the picture in scaling painting canvas of the mapping ruler to advertisement to be generated.
For example it is assumed that in the picture mapping ruler of source advertisement include displacement mapping ruler, and the background layer of source advertisement with treat The background layer for generating advertisement is identical, that is to say, that during advertisement to be generated is generated, without the need for being filled with to background layer. The form of source advertisement is as shown in Figure 2, if it is determined that the Dimension Types of advertisement to be generated are super long type, now, according to source advertisement The create-rule of the advertisement of ad elements and super long type generates the detailed process of advertisement to be generated:
The first step:Word filling and layout
Specifically, the painting canvas of advertisement to be generated is divided into left 1/2 and right 1/2, and the word obtained from the advertisement of source is filled out Fill in the painting canvas of advertisement to be generated, the form of the painting canvas after the advertisement to be generated filling word of super long type is as illustrated in fig. 9.
The positioning in second step picture filling region
After word 10px (10 pixels) afterwards corresponding canvas area be picture region, and fill word during if Word exceedes the 3/4 of painting canvas, then according to the word of overage is entered a new line.
3rd step:Picture is filled
After word being filled, region is filled as picture in the remaining region of painting canvas, and according to center picture and remaining painting canvas During the principle of center superposition fills the picture extracted from the advertisement of source to the painting canvas of advertisement to be generated, and in filling process Middle guarantee picture longest edge is full of, and the process in filling picture, it is ensured that keep relative flow between word and picture.Overlength Form after the advertisement to be generated filling picture of type is as shown in figure 9b.
It should be noted that during filling picture, needing the chi of the size according to advertisement to be generated and source advertisement Relation pair picture between very little is zoomed in and out.
4th step:Picture maps
Specifically, the picture mapping ruler in the advertisement of source is mapped in advertisement to be generated, as the picture of source advertisement reflects Penetrate comprising displacement mapping ruler in rule, it is assumed that mapping ruler is to be multiplied by high relative scale to move figure according to shift length Piece, then move the position of the picture in advertisement to be generated according to the displacement mapping ruler.The shape of the advertisement to be generated after movement Formula is as is shown in fig. 9 c.It should be noted that Fig. 9 c is also the generation rule of the advertisement of the ad elements and super long type according to source advertisement The new advertisement for then being generated.
In summary it can be seen, the embodiment propose a kind of can be according to ad elements and the Dimension Types pair of advertisement to be generated The create-rule that answers automatically generates the mode of advertisement to be generated, and which no longer needs the user effort time to make countless advertisements Template, greatly reduces the cost of design advertisement, conveniently generates advertisement, meets the demand of the design advertisement of user.
The generation method of advertisement in the webpage of the embodiment of the present application, obtains growing tall for ad elements and advertisement to be generated first Than then determining the corresponding Dimension Types of advertisement to be generated according to the length to height ratio of advertisement to be generated, and being obtained according to Dimension Types Corresponding create-rule, and advertisement to be generated is generated according to ad elements and the corresponding create-rule of Dimension Types.Thus, make User is obtained during design advertisement, need not spend the time that countless advertisement formworks are made, greatly reduce design advertisement Cost, conveniently generates advertisement, meets the demand of the design advertisement of user.
In order to realize above-described embodiment, the application also proposes a kind of generating means of advertisement in webpage.
Figure 10 be the application one embodiment webpage in advertisement generating means structural representation.
As shown in Figure 10, in the webpage generating means of advertisement include the first acquisition module 100, the second acquisition module 200, Determining module 300, the 3rd acquisition module 400 and generation module 500, wherein:
First acquisition module 100 is used for obtaining ad elements;Second acquisition module 200 is used for obtaining the length of advertisement to be generated High ratio;Determining module 300 is used for determining the corresponding Dimension Types of advertisement to be generated according to the length to height ratio of advertisement to be generated;3rd obtains Delivery block 400 is used for obtaining corresponding create-rule according to Dimension Types;Generation module 500 is used for according to ad elements and generation Rule generates advertisement to be generated.
Wherein, create-rule can include but is not limited to word filling region, picture filling region, word fill rule and Picture fill rule, wherein, word filling region is used for filling character layer, and picture filling region is used for blank map lamella, word Fill rule is used for limiting the setting rule of word filling region Chinese word, and picture fill rule is used for limiting picture filling region The setting rule of middle picture.
In one embodiment of the application, above-mentioned create-rule is except including word filling region, picture filling Outside region, word fill rule and picture fill rule, above-mentioned create-rule can also include picture mapping ruler, wherein, on The picture layer of source advertisement is mapped by the length to height ratio for stating picture mapping ruler for the when advertisement to be generated of growing tall according to source advertisement Region is filled to picture.Above-mentioned picture mapping ruler can include to inhale side mapping ruler, scaling mapping ruler and displacement mapping rule One or more in then.
First acquisition module 100 specifically for:Carry out layering to split to extract ad elements from the advertisement of source to source advertisement, Wherein, ad elements include character layer, picture layer and background layer.
In addition, as shown in figure 11, said apparatus can also include pretreatment module 600, and the pretreatment module 600 is used for Before determining module 300 determines the corresponding Dimension Types of advertisement to be generated according to the length to height ratio of advertisement to be generated, source advertisement is judged Whether similar with the length to height ratio of advertisement to be generated, if it is determined that similar, then according to length to height ratio and the source advertisement life of advertisement to be generated Become advertisement to be generated;And if it is determined that dissmilarity, then determine advertisement to be generated according to the length to height ratio of advertisement to be generated further Corresponding Dimension Types.
Specifically, whether pretreatment module 600 can determine whether the length to height ratio of advertisement to be generated in the length to height ratio phase with source advertisement As interval in, if in the interval, advertisement to be generated is similar to the length to height ratio of source advertisement, and now, advertisement to be generated can The design of multiplexing source advertisement, i.e., be multiplexed the design of source advertisement, to generate advertisement to be generated.Specifically, can be to be generated Become advertisement to adopt and source advertisement identical layout, and source advertisement is integrally zoomed in and out according to the length to height ratio of advertisement to be generated.
Wherein, the interval similar to the length to height ratio of source advertisement is by presetting the percentage that arranges in the length to height ratio of source advertisement and system Number determines.For example, in system, default percentage is 5%, and the length to height ratio of source advertisement is 2, now, length to height ratio with source advertisement Similar interval is [1.9,2.1], if the length to height ratio for being calculated advertisement to be generated is 1.95, can determine that advertisement to be generated Similar to the length to height ratio of source advertisement, now, the design of advertisement reusable source advertisement to be generated, i.e., the design of source advertisement is carried out multiple With to generate advertisement to be generated.
It should be noted that after the length to height ratio of determination advertisement to be generated is similar to the length to height ratio of source advertisement, pre-processing mould Block 600 can be also zoomed in and out to source advertisement according to the proportionate relationship between the size of source advertisement and advertisement to be generated, after scaling Advertisement is can be used as needing the advertisement for generating.
Determining module 300 specifically for:If the length to height ratio of advertisement to be generated is less than the first ratio, judge to be generated wide Corresponding Dimension Types are accused for super-high;If the length to height ratio of advertisement to be generated is more than or equal to the first ratio and less than the second ratio Example, then judge that the corresponding Dimension Types of advertisement to be generated are high type;If the length to height ratio of advertisement to be generated is more than or equal to second Ratio and be less than the 3rd ratio, then judge that the corresponding Dimension Types of advertisement to be generated are square;If the growing tall of advertisement to be generated Than more than or equal to the 4th ratio and less than or equal to the 5th ratio, then judging the corresponding Dimension Types of advertisement to be generated for length Type;And if the length to height ratio of advertisement to be generated is more than the 5th ratio, then judge that the corresponding Dimension Types of advertisement to be generated are super Elongated.
For example it is assumed that the first ratio is 1:3, the second ratio is 3:4, the 3rd ratio is 4:3, the 4th ratio is 8:5, the 5th Ratio is 3:The interval of the length to height ratio pre-saved in 1, and system is as shown in table 1 with the corresponding relation of Dimension Types, if calculating The length to height ratio for going out currently advertisement to be generated is 1, now can determine that according to the interval of length to height ratio and the corresponding relation of Dimension Types and works as The Dimension Types of front advertisement to be generated are square.
Specifically, when the Dimension Types of advertisement to be generated are different, generation module 500 is according to ad elements and create-rule The process for generating advertisement to be generated is different, specifically, if the Dimension Types of advertisement to be generated are super-high, processing module 500 specifically for:The word of advertisement to be generated is filled and layout according to the word fill rule of super-high first, then, root Picture is filled according to the picture fill rule of super-high for advertisement to be generated, that is, fill picture, and the picture of source advertisement is mapped Rule is mapped in advertisement to be generated.
Wherein, the word fill rule of above-mentioned super-high is:Character layer is filled in the top of painting canvas, and character layer filling No more than the 3/4 of painting canvas top, in addition, keeping relative position in filling process character layer between each literal term.Above-mentioned The picture fill rule of super-high is:Region is filled as picture in region corresponding to lower 1/2 painting canvas, and specifies placing During picture, by the center superposition of the center of picture and lower 1/2 painting canvas.
If the Dimension Types of advertisement to be generated be high type, processing module 500 specifically for:First according to the figure of high type Piece fill rule fills picture for advertisement to be generated, and then, the picture mapping ruler of source advertisement is mapped in advertisement to be generated, with And word is filled for advertisement to be generated according to the word fill rule of high type.
Wherein, the picture fill rule of above-mentioned high type is:Using the region corresponding to lower 1/2 painting canvas as picture fill area Domain, and when picture is placed, by the center superposition of the center of picture and lower 1/2 painting canvas.The word fill rule of high type is:Will Character layer is filled in the top of painting canvas, and character layer filling is no more than the 3/4 of painting canvas top, if in the filling process, text Word has exceeded the width of the painting canvas of advertisement to be generated, then corresponding word is entered a new line.
If the Dimension Types of advertisement to be generated be square, processing module 500 specifically for:According to advertisement to be generated Length to height ratio determines tangent line, and tries to achieve tangential angle, then determines positioning " just point " according to the picture in the picture layer of source advertisement, so Tangent line is begun through from " just point " (lower right corner vertical line of picture and the intersection point of parallel lines) afterwards and picture is cut, to find picture Tangent line side, when tangent line is with picture only one of which intersection point, this point is boundary point, and corresponding tangent line is boundary line, now, picture Complete to be included in the delta-shaped region formed by boundary line, vertical line and horizontal line.Obtaining the delta comprising picture Behind domain, can proportionally scale and picture is placed in the painting canvas of advertisement to be generated, will picture maximized be placed on to be generated Become in the painting canvas of advertisement.Then, the mistake word obtained from the advertisement of source being filled in the painting canvas of advertisement to be generated, in filling out Cheng Zhong, should ensure that word and picture relative flow, and also should ensure that holding relative position between each word.
If the Dimension Types of advertisement to be generated be elongated, processing module 500 specifically for:First according to the figure of elongated Piece fill rule fills picture for advertisement to be generated.Then, the picture mapping ruler of source advertisement is mapped in advertisement to be generated, And word is filled for advertisement to be generated according to the word fill rule of elongated.
Wherein, the picture fill rule of above-mentioned elongated is:Using the region corresponding to right 1/2 painting canvas as picture fill area Domain, and specify when picture is placed, by the center of picture and the center superposition of right 1/2 painting canvas.The word filling of above-mentioned elongated Rule is:Character layer is filled in the left side of painting canvas, and character layer filling is no more than the 3/4 of the painting canvas left side, in addition, in filling Relative position, and text relative flow is kept in process character layer between each literal term.
If the Dimension Types of advertisement to be generated be super long type, generation module 500 specifically for:First according to super long type Word fill rule fill word for advertisement to be generated, then will be from word 10px (10 pixels) corresponding canvas area afterwards Region is filled for picture, and if word exceedes the 3/4 of painting canvas during filling word, then according to by the word of overage Entered a new line.Picture is filled for advertisement to be generated according to the picture fill rule of super long type, and the picture of source advertisement is mapped Rule is mapped in advertisement to be generated.
Wherein, the word fill rule of super long type is:The painting canvas of advertisement to be generated is divided into left 1/2 and right 1/2, and will be from The word obtained in the advertisement of source is filled in the painting canvas of advertisement to be generated.The picture fill rule of super long type is:After word filling Region is filled as picture in remaining for painting canvas region, is overlapped with remaining painting canvas midpoint according to center picture point and is filled with, Ensure that the longest edge of picture is full of, and during filling picture, it is ensured that relative flow is kept between word and picture.
It should be noted that the explanation of the aforementioned generation method embodiment to advertisement in webpage is also applied for the enforcement The generating means of advertisement in the webpage of example, here is omitted.
Refer to Figure 12.The application embodiment further provides in a kind of webpage advertisement generation method.Methods described can To comprise the following steps.
Step 1201:Obtain and there are the ad elements for presetting layout.
In the present embodiment, the default layout can include each word included by web advertisement to be generated The size of layer, picture layer and background layer, position relationship of the above layers in the layout of advertisement to be generated and other cloth Office's information.For example, in Taobao, the advertising presupposition layout of commodity A can be specifically the exhibiting pictures layer of commodity A, the making of commodity A The size of each layers such as the explanatory note layer with effect cardon layer and commodity A, position relationship of the above layers in the advertisement And above layers in the advertisement default present order.Wherein, above layers are default in the advertisement assumes order tool Body can be the exhibiting pictures layer for first assuming commodity A;Assume the explanatory note layer of commodity A again on the exhibiting pictures layer of commodity A, But explanatory note layer does not cover original exhibiting pictures layer;Finally assume the using effect cardon layer of commodity A, using effect cardon Layer can cover the exhibiting pictures layer of commodity A, but not cover the explanatory note layer of commodity A.
In the present embodiment, the ad elements can be each character layer in web advertisement to be generated, picture The particular content included by layer and background layer, while above-mentioned ad elements can also have the default layout of the advertisement.For example, wash in a pan In precious net, the ad elements of the advertisement of commodity A can specifically include the particular content, commodity included by the exhibiting pictures layer of commodity A The particular content included by the using effect cardon layer of A and the particular content included by the explanatory note layer of commodity A, while commodity The ad elements of the advertisement of A also have the default layout of the advertisement of commodity A.
In the present embodiment, described obtain have preset layout ad elements can be by wide to webpage to be generated The parsing of announcement, obtains the ad elements of the advertisement.Wherein, the ad elements of the advertisement are while the default cloth of the advertisement can be had Office.For example, the ad elements for obtaining the advertisement of commodity A can be the advertisement by parsing commodity A, obtain the advertisement of commodity A Ad elements, i.e.,:The tool included by particular content that the exhibiting pictures layer of commodity A is included, the using effect cardon layer of commodity A The particular content included by the explanatory note layer of internal appearance and commodity A.While the ad elements of the advertisement of commodity A can also be obtained The advertising presupposition layout of had commodity A, i.e.,:The exhibiting pictures layer of commodity A, the using effect cardon layer of commodity A and commodity A's The size of each layer of explanatory note layer, position relationship of the above layers in the advertisement and above layers are pre- in the advertisement If present order etc..
Step 1202:Obtain the characteristic feature of targeted advertisements position.
In the present embodiment, the targeted advertisements position can be specifically for assuming the corresponding area of the advertisement in webpage Block.For example, Figure 13 is referred to.The figure can be a concrete page in Taobao's webpage, and wherein advertisement position block 1 is particularly as can Be for assuming the targeted advertisements position of the advertisement of commodity A in Taobao's webpage.Advertisement position block 2 is particularly as could be for presenting The targeted advertisements position of preferential walking advertisement in Taobao's webpage.Similarly, advertisement position block 3 and advertisement position block 4 namely for Assume the targeted advertisements position of corresponding advertisement.
In the present embodiment, the characteristic feature can be in the webpage length to height ratio of targeted advertisements position, or The length of the targeted advertisements position and height value, can also be the characteristic informations such as other specified layout information of the targeted advertisements position. For example, refering to Figure 13.The characteristic feature of advertisement position block 1 can be just the length to height ratio of block 1.And the sign of advertisement position block 2 Feature can be the length of block 2 and height.3 characteristic feature of advertisement position block can also be except above-mentioned length to height ratio, length Outside height, other specified layout information.For example when advertisement position block 3 is circular block, it is possible to be the half of the circle Footpath;When advertisement position block 3 is triangle block, it is possible to be the length of side of the three sides of a triangle.
In the present embodiment, the characteristic feature for obtaining targeted advertisements position, can be targeted advertisements position place webpage Service server the characteristic feature of the targeted advertisements position is provided.The targeted advertisements position provided according to service server is provided Information, further computing obtains the characteristic feature of targeted advertisements position.Specifically, can be according to the targeted advertisements position, obtain The length to height ratio of the targeted advertisements position, length and the characteristic feature such as height or other specified layout information.For example, refering to Figure 13. By the analysis to wherein advertisement position block 1, the length to height ratio of advertisement position block 1 can be obtained, as the sign of advertisement position block 1 Feature.
Step 1203:When the characteristic feature of the targeted advertisements position is in the default sign domain of the ad elements, The ad elements are generated the advertisement of the targeted advertisements position with the default layout.
In the present embodiment, the default sign domain can be the default table of the ad elements of web advertisement to be generated Levy the scope area of feature.Specifically, the scope area of the characteristic feature can be added based on the default characteristic feature of the ad elements The range areas that a default tolerance that subtracts is obtained.Wherein, above-mentioned default tolerance can be the judgement based on advertising man, target The difference that can be allowed between the default characteristic feature of the characteristic feature and ad elements of advertisement position.Its concrete form can be one Individual default concrete numerical value, or the concrete percentage with regard to default characteristic feature.For the form of the default tolerance, The application is not construed as limiting.For example, in Taobao's webpage, the default characteristic feature of the advertisement of commodity B can be the length of the advertisement of commodity B Height is than ratio 3.Correspondingly, the default sign domain of the advertisement of commodity B can add and subtract a default concrete number on the basis of 3 Value.If this concrete numerical value is 0.5, corresponding sign domain can be expressed as 3-0.5 3+0.5, i.e., the scope area is 2.5 To between 3.5.Can also add and subtract the percentage that one with regard to 3 on the basis of 3.If this percentage is 20%, right The sign domain that answers can be expressed as 3-3*20% 3+3*20%, i.e., the scope area be 2.4 to 3.6 between.
In the present embodiment, default sign domain of the characteristic feature of the targeted advertisements position in the ad elements Interior, can be targeted advertisements position characteristic feature web advertisement to be generated ad elements default characteristic feature scope area Interior.In this case, it is believed that the targeted advertisements position is similar to web advertisement to be generated.For example, the target of Taobao's webpage is wide The characteristic feature for accusing position 2 can be length to height ratio, and its value is 3.2.The default length to height ratio of the advertisement of commodity C can be 3.If pre- If tolerance is 0.5, then the default sign domain of the advertisement of commodity C can be expressed as 3-0.5 3+0.5, i.e., between 2.5 to 3.5.By In the length to height ratio ratio 3.2 of targeted advertisements position 2 is between 2.5 to 3.5, that is, the scope area in default characteristic feature Interior.It is therefore contemplated that in default sign domain of the characteristic feature of targeted advertisements position 2 in the advertisement of commodity C.Meanwhile, also may be used To further determine that accordingly, targeted advertisements position 2 is similar to the web advertisement to be generated of commodity C.
In the present embodiment, the ad elements are generated the advertisement of the targeted advertisements position with the default layout, Can generate the webpage target according to the ad elements of web advertisement to be generated with the default layout that the ad elements have The corresponding advertisement of advertisement position.Specifically, as targeted advertisements position is similar to web advertisement to be generated, can be according to webpage to be generated The default layout of advertisement, according to ad elements, generates corresponding advertisement in targeted advertisements position.For example, in the mesh of Taobao's webpage In mark advertisement position 2, according to the ad elements of the advertisement of commodity C, can generate and correspond to according to the default layout of the advertisement of commodity C Commodity C advertisement.
Therefore, this application provides in a kind of webpage advertisement generation method, in the characteristic feature of targeted advertisements position In the case of in the default sign domain of ad elements, it is believed that targeted advertisements position is similar to web advertisement to be generated, can Corresponding advertisement is generated according to default layout, so as to avoid the multiple advertisement formworks of design, effectively reduce becoming for design advertisement This, it is achieved that automatically, quickly generate advertisement.
In a specific embodiment, Figure 13 can be referred to.In order to generate corresponding commodity D's in advertisement position block 1 Advertisement.The advertisement of parsing commodity D can be first passed through, obtains the ad elements with the commodity D for presetting layout.Meanwhile, according to page Advertisement position block 1 in face, obtains the characteristic feature of block 1.Wherein, the characteristic feature for the length to height ratio of block 1, its value can be 3.1.Judge the length to height ratio 3.1 of block 1 whether in the default sign domain in the ad elements of commodity D.Wherein, according to commodity D The default layout that has of ad elements, it may be determined that the default length to height ratio of the advertisement of commodity D is 3.If default tolerance takes 0.5, then the default sign domain that can add and subtract 0.5 ad elements for obtaining commodity D on the basis of 3 is:2.5 to 3.5 scope Area.By comparing, it may be determined that the characteristic feature 3.1 of block 1 is placed exactly in the interval in scope area 2.5 to 3.5, at this moment permissible Determine that advertisement position block 1 has the size similar to the advertisement of commodity D, it is believed that the advertisement phase of advertisement position block and commodity D Seemingly.At this moment, can be in advertisement position block 1, according to the default layout of the advertisement of commodity D, according to the advertisement unit of the advertisement of commodity D Element, generates the advertisement of corresponding commodity D.So as to, it is to avoid design multiple template, it is achieved that automatically and quickly generate corresponding wide Accuse, be that advertising man provides convenience.
In an embodiment of the application, the characteristic feature can include:The length to height ratio of the targeted advertisements position, Length and height, specified layout information.
In the present embodiment, the characteristic feature can include:The length to height ratio of the targeted advertisements position, length and height Degree, specified layout information.I.e., it is possible to be that the length to height ratio using targeted advertisements position is used as characteristic feature as the case may be, it is also possible to Using the length of targeted advertisements position and height value as characteristic feature, can also be using other specified layout information as characteristic feature. Specifically, Figure 13 can be referred to.The length value of advertisement position block 1 is 3, and width value is 1.Accordingly, the length to height ratio of the advertisement position Can be length and the ratio 3 of height.Accordingly, can using the ratio 3 of the length to height ratio of advertisement position block 1 as characteristic feature, Can also with the length value 3 of advertisement position block 1 and height value 1 together as the advertisement position characteristic feature.Further, it is also possible to Other specified layout information of advertisement position block 1 are used as characteristic feature.For example, when advertisement position block 1 is for circle, can be with this Circular radius value is used as characteristic feature;When advertisement position block 1 is triangle, then can be with the side of the three sides of a triangle Long value is used as characteristic feature.
In an embodiment of the application, the characteristic feature of targeted advertisements position is permissible in the default sign domain Including:In the case of the length to height ratio that the characteristic feature is the targeted advertisements position, at the length to height ratio of the targeted advertisements position In the scope area of the default length to height ratio of the ad elements;In the length that the characteristic feature is the targeted advertisements position and height In the case of degree, the length of the targeted advertisements position and height are in the preset length of the ad elements and the scope area of height Interior;In the case of the specified layout information that the characteristic feature is the targeted advertisements position, the targeted advertisements position specify In scope area of the layout information in the default specified layout information of the ad elements.
In the present embodiment, the scope area of the default length to height ratio of the ad elements can be default based on ad elements Length to height ratio one default tolerance of plus-minus after obtained by scope area.Wherein, above-mentioned default tolerance can be based on advertisement The difference that can be allowed between the default characteristic feature of the judgement of designer, the characteristic feature of targeted advertisements position and ad elements. Its concrete representation, can be a concrete numerical value, or the concrete percentage with regard to default length to height ratio.For pre- If the representation of tolerance, the application are not construed as limiting.For example, in Taobao's webpage, the default characteristic feature of the advertisement of commodity B is permissible It is the length to height ratio ratio 3 of the advertisement of commodity B.Accordingly, the scope area of the default length to height ratio of the Commdity advertisement can be the base 3 A concrete numerical value is added and subtracted on plinth.If this concrete numerical value is 0.5, corresponding scope area can be expressed as 3-0.5 3+ 0.5, i.e. the scope area be 2.5 to 3.5 between.The scope area of the default length to height ratio of the Commdity advertisement can also be the basis 3 Upper plus-minus one with regard to 3 percentage.If this percentage is 20%, corresponding scope area can be expressed as 3-3* 20% 3+3*20%, i.e. the scope area be 2.4 to 3.6 between.
In the present embodiment, the scope area of the preset length of the ad elements and height, can be first based on advertisement The preset length value of element and height value, the scope area obtained after respectively adding and subtracting a default tolerance respectively.Wherein, above-mentioned default tolerance Form can be a concrete numerical value, or with regard to default length value and the concrete percentage of height value.Due to pre- If length is similar with the scope area of default length to height ratio with the scope area of height, will not be described here.
In the present embodiment, the scope area of the default specified layout information of the ad elements, can be based on advertisement The scope area that the default specified layout information of element is obtained after adding and subtracting a default tolerance.Wherein, the form of above-mentioned default tolerance Can be a concrete numerical value, or the concrete percentage with regard to specified layout information.Similarly, since presetting specified layout The scope area of information is similar with the scope area in the scope area, preset length and height of default length to height ratio, will not be described here.
In the present embodiment, the characteristic feature of the targeted advertisements position includes in the default sign domain:Institute In the case of stating the length to height ratio that characteristic feature is the targeted advertisements position, the length to height ratio of the targeted advertisements position is in the advertisement In the scope area of the default length to height ratio of element;In the length that the characteristic feature is the targeted advertisements position and the situation of height Under, in the scope area of the length of the targeted advertisements position and height preset length and height in the ad elements;Institute In the case of stating the specified layout information that characteristic feature is the targeted advertisements position, the specified layout information of the targeted advertisements position In scope area in the default specified layout information of the ad elements.Can be specifically different according to following at least three kinds Situation, by determining in the scope area of default characteristic feature of the characteristic feature of targeted advertisements position in corresponding ad elements come really The characteristic feature of advertisement position of setting the goal is characterized in domain in default.Situation one, characteristic feature for targeted advertisements position length to height ratio In the case of, by determining in scope area of the length to height ratio of targeted advertisements position in the default length to height ratio of ad elements, determine mesh The characteristic feature of mark advertisement position is characterized in domain in default.Situation two, is the length of targeted advertisements position and height in characteristic feature In the case of, by determining the length value of targeted advertisements position and height value preset length value and height value all in ad elements Scope area in, determine that the characteristic feature of targeted advertisements position is characterized in domain in default.Situation three is wide for target in characteristic feature In the case of accusing the specified layout information of position, by determining the specified layout information of targeted advertisements position in the default of ad elements In the scope area of layout information, determine that the characteristic feature of targeted advertisements position is characterized in domain in default.Certainly, three kinds of above-mentioned feelings Condition is intended merely to the application is clearly described, cited three kinds of exemplary cases.The application is also included except above-mentioned three kinds Beyond situation, can pass through the corresponding default sign spy of ad elements whether to be located at according to other characteristic feature of targeted advertisements position In the scope area for levying, determine whether the characteristic feature of targeted advertisements position is characterized in domain in default.In this regard, not applying not limiting Fixed.
Refer to Figure 14.The application embodiment also provides a kind of generation method of advertisement in webpage.The method can be wrapped Include following steps.
Step 1401:Obtain and there are the first ad elements for presetting layout.
In the present embodiment, described first each word that layout can be included by web advertisement to be generated is preset Layer, the size of picture layer and background layer, position relationship of the above layers in web advertisement layout to be generated and its His layout information.For example, it can be specifically the exhibiting pictures layer of commodity A, business that in Taobao, layout is preset in the advertisement first of commodity A The size of each layers such as the explanatory note layer of the using effect cardon layer of product A and commodity A, position of the above layers in the advertisement Put relation and above layers in the advertisement default present order.
In the present embodiment, described obtain have first preset layout ad elements can be by net to be generated The parsing of page advertisement, obtains the ad elements of the advertisement.Wherein, the ad elements of the advertisement are while have the first of the advertisement again Default layout.For example, the ad elements for obtaining the advertisement of commodity A can be the advertisement by parsing commodity A, obtain commodity A's The ad elements of advertisement, i.e.,:The particular content included by the exhibiting pictures layer of commodity A, the using effect cardon layer of commodity A are wrapped The particular content included by the particular content for containing and the explanatory note layer of commodity A.While also obtaining the advertisement unit of the advertisement of commodity A Layout is preset in the advertisement first of the had commodity A of element, i.e.,:The exhibiting pictures layer of commodity A, the using effect cardon layer of commodity A and The size of each layer such as explanatory note layer of commodity A, position relationship and above layers of the above layers in the advertisement exist In the advertisement default present order.
Step 1402:Obtain the characteristic feature of targeted advertisements position.
In the present embodiment, can be that the service server of targeted advertisements position place webpage provides the targeted advertisements position Characteristic feature.The information of the targeted advertisements position provided according to service server is can also be, further computing obtains targeted advertisements The characteristic feature of position.Wherein, above-mentioned characteristic feature can be the length to height ratio of targeted advertisements position, or the target in the webpage The length of advertisement position and height, can also be the characteristic informations such as other specified layout information of the targeted advertisements position.Specifically, may be used Being the concrete condition according to the targeted advertisements position, obtain length to height ratio, length and the height of the targeted advertisements position or other refer to Determine the characteristic feature information such as layout information.For example, refering to Figure 13, by wherein this targeted advertisements position of advertisement position block 1 Analysis, can obtain the length to height ratio of advertisement position block 1, and the characteristic feature as advertisement position block 1.
Step 1403:Determine the second default layout of the characteristic feature coupling of the targeted advertisements position;Described second presets It is different that layout presets layout from described first.
In the present embodiment, the described second default layout can be matched with the characteristic feature of targeted advertisements position, And layout is preset different from the first another kind for presetting layout.Layout is preset similar to first, can also specifically include to be generated Web advertisement included by each character layer, picture layer and background layer size, above layers are in advertisement to be generated The information such as position relationship and other layout informations in layout.
In the present embodiment, determine the second default layout of the characteristic feature coupling of the targeted advertisements position;Described It is different that two default layouts preset layout from described first.It is considered that the first default layout that ad elements have is wide with target Accuse position to mismatch, i.e. first presets layout with targeted advertisements position dissmilarity.In this case, it is otherwise determined that one is different from the The one default layout for presetting layout so as to which the scope area of the default characteristic feature having includes the sign of corresponding targeted advertisements position Feature, and this default layout is defined as the second default layout.For example, in Taobao's webpage advertisement position block 4 characteristic feature Can be the ratio 3 of length to height ratio.It is 5 that the first of commodity D presets the default length to height ratio of layout.Accordingly, if tolerance takes 0.5, First preset layout default length to height ratio scope area be 4.5 to 5.5 between.As the scope area does not include 3, i.e. do not include The characteristic feature of advertisement position block 4, so the first of ad elements does not preset the characteristic feature of layout and advertisement position block 4 not Join.In this case, need to be otherwise determined that is different from the first second default layout for presetting layout so that the default layout Mate with the characteristic feature of advertisement position block 4.Specifically, it may be determined that a new default layout so that the default layout Default length to height ratio can be 3.2, if tolerance can take 0.5, correspondingly, the scope area of the default length to height ratio can for 2.7 to 3.7 between.Because the scope area contains the length to height ratio ratio 3 of advertisement position block 4, all can determine the default layout with wide Accuse position block 4 to mate.Therefore, it can for the default layout to be defined as the second default layout.
Step 1404:The ad elements are preset, based on described second, the advertisement that layout generates the targeted advertisements position.
In the present embodiment, the ad elements are preset layout based on described second and generates the targeted advertisements position Advertisement.Can be in targeted advertisements position, according to the ad elements of web advertisement to be generated, layout is preset according to second, generate Corresponding advertisement.Specifically, can be in targeted advertisements position, the characteristic feature of layout is preset to default with first according to second The particular content included by the ad elements of layout is adjusted, then the content after adjustment is preset layout, arrangement according to second To in corresponding targeted advertisements position, to generate respective advertisement.For example, the F Commdity advertisement of web advertisement to be generated includes picture Layer a and character layer b.Wherein, the length to height ratio of targeted advertisements position is had first for the ad elements of 3, commodity F and is preset in layout The length to height ratio of picture layer a is 4, and the second default length to height ratio for presetting layout is 3, then picture layer a is adjusted processing, permissible So that the length to height ratio of picture layer a is 3.1, then after adjusting, picture a presets layout according to second, is arranged in the right of targeted advertisements position Answer position.Equally, similar process is carried out to character layer b.It is thus possible to generate the wide of the corresponding commodity F of targeted advertisements position Accuse.
Therefore, this application provides in another webpage advertisement generation method, the sign in targeted advertisements position is special Levy with first preset layout unmatched in the case of, determine targeted advertisements position characteristic feature coupling second preset layout, then Preset, based on second, the advertisement that layout generates targeted advertisements position, so as to the multiple advertisement formworks of design are avoided, effectively reduce and set The cost of meter advertisement, furthermore achieved that and automatically, quickly generate advertisement.
In an embodiment of the application, the characteristic feature of the targeted advertisements position can include:The target is wide Accuse length to height ratio, length and height, the specified layout information of position.
In the present embodiment, the characteristic feature of the targeted advertisements position can include:The growing tall of the targeted advertisements position Than, length and height, specified layout information.I.e., it is possible to be that the length to height ratio using targeted advertisements position is used as sign as the case may be Feature, it is also possible to using the length of targeted advertisements position and height as characteristic feature, can also using other specified layout information as Characteristic feature.Specifically, Figure 13 can be referred to.The length value of advertisement position block 1 is 3, and width value is 1.Corresponding advertisement position area The length to height ratio of block 1 can be length and the ratio 3 of height.Accordingly, can be made with the ratio 3 of the length to height ratio of advertisement position block 1 For characteristic feature, it is also possible to the length value 3 of advertisement position block 1 and height value 1 together as characteristic feature.Further, it is also possible to Using other specified layout information of targeted advertisements position as characteristic feature.For example, when advertisement position block 1 is for circle, can be with this Circular radius value is used as characteristic feature;When advertisement position block 1 is triangle, then can be with the side of the three sides of a triangle Long value is used as characteristic feature.
In an embodiment of the application, determine that the characteristic feature coupling second of the targeted advertisements position presets cloth Office, can include:In the case of the length to height ratio that the characteristic feature is the targeted advertisements position, the model for presetting length to height ratio is determined The default layout for enclosing length to height ratio of the area comprising the targeted advertisements position is the second default layout;It is the mesh in the characteristic feature In the case of the length of mark advertisement position and height, the length of the scope area comprising the targeted advertisements position of preset length and height is determined The default layout of degree and height is the second default layout;In the specified layout information that the characteristic feature is the targeted advertisements position In the case of, determine the default cloth of specified layout information of the scope area comprising the targeted advertisements position for presetting specified layout information Office presets layout for second.
In the present embodiment, determine that the characteristic feature coupling second of the targeted advertisements position presets layout, can include: In the case of the length to height ratio that the characteristic feature is the targeted advertisements position, determine the scope area for presetting length to height ratio comprising described The default layout of the length to height ratio of targeted advertisements position is the second default layout;In the length that the characteristic feature is the targeted advertisements position In the case of degree and height, the pre- of the length of the scope area comprising the targeted advertisements position of preset length and height and height is determined If layout is the second default layout;In the case of the specified layout information that the characteristic feature is the targeted advertisements position, really Surely the default layout for presetting the specified layout information of the scope area comprising the targeted advertisements position of specified layout information is pre- for second If layout.Specifically, can be when the second default layout that mates with the characteristic feature of targeted advertisements position is determined, can basis Hereinafter at least three kinds different situations, determine presetting for characteristic feature of the scope area comprising targeted advertisements position for presetting characteristic feature Layout is to mate second to preset layout with the characteristic feature of targeted advertisements position.Situation one, is targeted advertisements position in characteristic feature In the case of length to height ratio, determine preset length to height ratio scope area comprising the targeted advertisements position length to height ratio default layout be with The second of the characteristic feature coupling of targeted advertisements position presets layout.Situation two, characteristic feature for targeted advertisements position length and In the case of height, determine that preset length and the scope area of height include the length of the targeted advertisements position and the default cloth of height Office is that second mated with the characteristic feature of targeted advertisements position presets layout.Situation three, is targeted advertisements position in characteristic feature In the case of specified layout information, determine and preset specified layout of the scope area of specified layout information comprising the targeted advertisements position The default layout of information is that second mated with the characteristic feature of targeted advertisements position presets layout.Certainly, three kinds of above-mentioned situations It is intended merely to three kinds of specific exemplary cases cited by the application are clearly described, the application is also included except above-mentioned three Beyond the situation of kind, can be special by determining the corresponding sign of the scope area comprising the targeted advertisements position of other default characteristic feature The default layout that levies, determines that second presets layout.In this regard, not applying being not construed as limiting.
The generating means of advertisement in the webpage of the embodiment of the present application, obtain ad elements by the first acquisition module, pass through The length to height ratio of the second acquisition module advertisement to be generated, it is then determined that module determined according to the length to height ratio of advertisement to be generated to be generated wide Accuse corresponding Dimension Types, the 3rd acquisition module obtains corresponding create-rule according to Dimension Types, and generation module according to Ad elements and the corresponding create-rule of Dimension Types generate advertisement to be generated.As a result, process of the user in design advertisement In, need not spend the time that countless advertisement formworks are made, the cost of design advertisement is greatly reduced, conveniently generate wide Accuse, meet the demand of the design advertisement of user.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy described with reference to the embodiment or example Point is contained at least one embodiment or the example of the application.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.And, the specific features of description, structure, material or feature can be in office Combined in one or more embodiments or example in an appropriate manner.Additionally, in the case of not conflicting, the skill of this area The feature of the different embodiments described in this specification or example and different embodiments or example can be tied by art personnel Close and combine.
Additionally, term " first ", " second " are only used for describing purpose, and it is not intended that indicating or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can express or Implicitly include at least one this feature.In the description of the present application, " multiple " are meant that at least two, such as two, three Individual etc., unless otherwise expressly limited specifically.
In flow chart or here any process described otherwise above or method description are construed as, expression includes One or more for realizing specific logical function or process the step of the module of code of executable instruction, fragment or portion Point, and the scope of the preferred embodiment of the application includes other realization, wherein can not be by the suitable of shown or discussion Sequence, including according to involved function by basic and meanwhile in the way of or in the opposite order, carry out perform function, this should be by the application Embodiment person of ordinary skill in the field understood.
Represent in flow charts or here logic described otherwise above and/or step, for example, it is possible to be considered as to use In the order list of the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, include the system of processor or other can hold from instruction Row system, device or equipment instruction fetch the system of execute instruction) use, or with reference to these instruction execution systems, device or set Standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass The dress that defeated program is used for instruction execution system, device or equipment or with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program thereon or other are suitable Medium, because edlin, interpretation can then be entered or if necessary with which for example by carrying out optical scanner to paper or other media His suitable method is processed to electronically obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the application can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, the software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realizing.For example, if realized with hardware, and in another embodiment, can be with well known in the art Any one of row technology or their combination are realizing:The logic gates having for realizing logic function to data-signal Discrete logic, the special IC with suitable combinational logic gate circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step of above-described embodiment method carrying Suddenly the hardware that can be by program to instruct correlation is completed, and described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
Additionally, each functional unit in each embodiment of the application can be integrated in a processing module, it is also possible to It is that unit is individually physically present, it is also possible to which two or more units are integrated in a module.Above-mentioned integrated mould Block both can be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as Fruit using in the form of software function module realize and as independent production marketing or use when, it is also possible to be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having shown that above and retouching Embodiments herein is stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the application System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of application Type.

Claims (20)

1. in a kind of webpage advertisement generation method, it is characterised in that comprise the following steps:
Obtain ad elements;
Obtain the length to height ratio of advertisement to be generated;
Length to height ratio according to the advertisement to be generated determines the corresponding Dimension Types of the advertisement to be generated;
Corresponding create-rule is obtained according to the Dimension Types;
The advertisement to be generated is generated according to the ad elements and the create-rule.
2. in webpage as claimed in claim 1 advertisement generation method, it is characterised in that the acquisition ad elements are specifically wrapped Include:
Carry out layering to split to extract the ad elements from the source advertisement to source advertisement, wherein, the ad elements bag Include character layer, picture layer and background layer.
3. in webpage as claimed in claim 2 advertisement generation method, it is characterised in that described according to described to be generated wide Before the length to height ratio of announcement determines the corresponding Dimension Types of the advertisement to be generated, also include:
Judge whether the length to height ratio of the source advertisement and advertisement to be generated is similar;
If it is determined that similar, then according to length to height ratio and the source advertisement generation advertisement to be generated of the advertisement to be generated; And
If it is determined that dissimilar, then determine that the advertisement to be generated is corresponding according to the length to height ratio of the advertisement to be generated further Dimension Types.
4. in webpage as claimed in claim 1 advertisement generation method, it is characterised in that described according to the advertisement to be generated Length to height ratio determine that the corresponding Dimension Types of the advertisement to be generated are specifically included:
If the length to height ratio of the advertisement to be generated is less than the first ratio, the corresponding Dimension Types of the advertisement to be generated are judged For super-high;
If the length to height ratio of the advertisement to be generated more than or equal to first ratio and is less than the second ratio, judge described The corresponding Dimension Types of advertisement to be generated are high type;
If the length to height ratio of the advertisement to be generated more than or equal to second ratio and is less than the 3rd ratio, judge described The corresponding Dimension Types of advertisement to be generated are square;
If the length to height ratio of the advertisement to be generated more than or equal to the 4th ratio and is less than or equal to the 5th ratio, sentence The corresponding Dimension Types of the advertisement to be generated that break are elongated;And
If the length to height ratio of the advertisement to be generated is more than the 5th ratio, the corresponding size of the advertisement to be generated is judged Type is super long type.
5. in webpage as claimed in claim 2 advertisement generation method, it is characterised in that the create-rule includes that word is filled out Region, picture filling region, word fill rule and picture fill rule is filled, wherein, the word filling region is used for filling The character layer, the picture filling region are used for filling the picture layer, and the word fill rule is used for limiting the text The setting rule of word filling region Chinese word, the picture fill rule are used for limiting the setting of picture in picture filling region Put rule.
6. in webpage as claimed in claim 5 advertisement generation method, it is characterised in that the create-rule also includes picture Mapping ruler, the picture mapping ruler is used for the length to height ratio of the when described advertisement to be generated of growing tall according to the source advertisement will The picture layer of the source advertisement maps to picture filling region.
7. in webpage as claimed in claim 6 advertisement generation method, it is characterised in that the picture mapping ruler include inhale One or more in side mapping ruler, scaling mapping ruler and displacement mapping ruler.
8. in a kind of webpage advertisement generating means, it is characterised in that include:
First acquisition module, for obtaining ad elements;
Second acquisition module, for obtaining the length to height ratio of advertisement to be generated;
Determining module, for determining the corresponding Dimension Types of the advertisement to be generated according to the length to height ratio of the advertisement to be generated;
3rd acquisition module, for obtaining corresponding create-rule according to the Dimension Types;
Generation module, for generating the advertisement to be generated according to the ad elements and the create-rule.
9. in webpage as claimed in claim 8 advertisement generating means, it is characterised in that first acquisition module, specifically For:
Carry out layering to split to extract the ad elements from the source advertisement to source advertisement, wherein, the ad elements bag Include character layer, picture layer and background layer.
10. in webpage as claimed in claim 9 advertisement generating means, it is characterised in that also include:
Pretreatment module, for determining the advertisement to be generated in the determining module according to the length to height ratio of the advertisement to be generated Before corresponding Dimension Types, judge whether the length to height ratio of the source advertisement and advertisement to be generated is similar, if it is determined that similar, then Length to height ratio and the source advertisement generation advertisement to be generated according to the advertisement to be generated;And if it is determined that dissimilar, Then further the corresponding Dimension Types of the advertisement to be generated are determined according to the length to height ratio of the advertisement to be generated.
The generating means of advertisement in 11. webpages as claimed in claim 8, it is characterised in that the determining module, concrete use In:
If the length to height ratio of the advertisement to be generated is less than the first ratio, the corresponding Dimension Types of the advertisement to be generated are judged For super-high;
If the length to height ratio of the advertisement to be generated more than or equal to first ratio and is less than the second ratio, judge described The corresponding Dimension Types of advertisement to be generated are high type;
If the length to height ratio of the advertisement to be generated more than or equal to second ratio and is less than the 3rd ratio, judge described The corresponding Dimension Types of advertisement to be generated are square;
If the length to height ratio of the advertisement to be generated more than or equal to the 4th ratio and is less than or equal to the 5th ratio, sentence The corresponding Dimension Types of the advertisement to be generated that break are elongated;And
If the length to height ratio of the advertisement to be generated is more than the 5th ratio, the corresponding size of the advertisement to be generated is judged Type is super long type.
The generating means of advertisement in 12. webpages as claimed in claim 9, it is characterised in that the create-rule includes word Filling region, picture filling region, word fill rule and picture fill rule, wherein, the word filling region is used for filling out The character layer is filled, the picture filling region is used for the picture layer to be filled, and the word fill rule is described for limiting The setting rule of word filling region Chinese word, the picture fill rule are used for limiting picture in picture filling region Rule is set.
The generating means of advertisement in 13. webpages as claimed in claim 12, it is characterised in that the create-rule also includes figure Piece mapping ruler, the picture mapping ruler are used for the length to height ratio of the when described advertisement to be generated of growing tall according to the source advertisement The picture layer of the source advertisement is mapped to the picture and fills region.
The generating means of advertisement in 14. webpages as claimed in claim 13, it is characterised in that the picture mapping ruler includes Inhale one or more in side mapping ruler, scaling mapping ruler and displacement mapping ruler.
The generation method of advertisement in a kind of 15. webpages, it is characterised in that include:
Obtain and there are the ad elements for presetting layout;
Obtain the characteristic feature of targeted advertisements position;
When the characteristic feature of the targeted advertisements position is in the default sign domain of the ad elements, by the ad elements The advertisement of the targeted advertisements position is generated with the default layout.
The generation method of advertisement in 16. webpages as claimed in claim 15, it is characterised in that the characteristic feature includes:Institute State length to height ratio, length and height, the specified layout information of targeted advertisements position.
The generation method of advertisement in 17. webpages as claimed in claim 16, it is characterised in that the characteristic feature of targeted advertisements position Include in the default sign domain:
In the case of the length to height ratio that the characteristic feature is the targeted advertisements position, the length to height ratio of the targeted advertisements position is in In the scope area of the default length to height ratio of the ad elements;
In the case of the length that the characteristic feature is the targeted advertisements position and height, the length of the targeted advertisements position and Highly it is in the preset length of the ad elements and the scope area of height;
In the case of the specified layout information that the characteristic feature is the targeted advertisements position, the targeted advertisements position specify In scope area of the layout information in the default specified layout information of the ad elements.
The generation method of advertisement in a kind of 18. webpages, it is characterised in that include:
Obtain and there are the first ad elements for presetting layout;
Obtain the characteristic feature of targeted advertisements position;
Determine the second default layout of the characteristic feature coupling of the targeted advertisements position;Described second presets layout and described first Default layout is different;
The ad elements are preset, based on described second, the advertisement that layout generates the targeted advertisements position.
The generation method of advertisement in 19. webpages as claimed in claim 18, it is characterised in that the sign of the targeted advertisements position Feature includes:The length to height ratio of the targeted advertisements position, length and height, specified layout information.
The generation method of advertisement in 20. webpages as claimed in claim 19, it is characterised in that determine the targeted advertisements position The second of characteristic feature coupling presets layout, including:
In the case of the length to height ratio that the characteristic feature is the targeted advertisements position, determine that the scope area for presetting length to height ratio includes The default layout of the length to height ratio of the targeted advertisements position is the second default layout;
In the case of the length that the characteristic feature is the targeted advertisements position and height, the model of preset length and height is determined The default layout for enclosing length of the area comprising the targeted advertisements position and height is the second default layout;
In the case of the specified layout information that the characteristic feature is the targeted advertisements position, determine and preset specified layout information Scope area comprising the targeted advertisements position specified layout information default layout be second preset layout.
CN201610719529.8A 2015-08-25 2016-08-24 The generation method of advertisement and device in webpage Pending CN106485534A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2015105261106 2015-08-25
CN201510526110 2015-08-25

Publications (1)

Publication Number Publication Date
CN106485534A true CN106485534A (en) 2017-03-08

Family

ID=58273910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610719529.8A Pending CN106485534A (en) 2015-08-25 2016-08-24 The generation method of advertisement and device in webpage

Country Status (1)

Country Link
CN (1) CN106485534A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690087A (en) * 2017-07-04 2018-02-13 北京奇艺世纪科技有限公司 A kind of advertising display area determination method and device
CN108897826A (en) * 2018-06-22 2018-11-27 上海哔哩哔哩科技有限公司 Banner picture rapid generation, system and storage medium
CN109271604A (en) * 2018-09-27 2019-01-25 北京奇虎科技有限公司 A kind of layout method, apparatus and computer equipment
CN109389440A (en) * 2017-08-02 2019-02-26 阿里巴巴集团控股有限公司 The method, apparatus and electronic equipment of data object information are provided
CN110008450A (en) * 2018-01-05 2019-07-12 阿里巴巴集团控股有限公司 Generation method, device, equipment and the medium of picture
CN110490951A (en) * 2019-08-21 2019-11-22 腾讯科技(深圳)有限公司 A kind of image drawing method and device
CN110827373A (en) * 2018-08-13 2020-02-21 北京京东尚科信息技术有限公司 Advertisement picture generation method and device and storage medium
CN111339465A (en) * 2020-03-04 2020-06-26 北京字节跳动网络技术有限公司 Picture processing method and device, computer equipment and storage medium
CN112651780A (en) * 2020-12-25 2021-04-13 上海硬通网络科技有限公司 Advertisement file generation method and device and electronic equipment
CN112837081A (en) * 2019-11-25 2021-05-25 上海哔哩哔哩科技有限公司 Automatic generation method and device of advertisement picture and storage medium
CN113052619A (en) * 2019-12-27 2021-06-29 北京搜狗科技发展有限公司 Advertisement making method and device
CN114119070A (en) * 2021-10-29 2022-03-01 深圳市豪斯莱科技有限公司 Advertisement generation method, device and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130006759A1 (en) * 2011-07-01 2013-01-03 Yahoo! Inc. Monetizing user generated content with embedded advertisements
CN103578016A (en) * 2012-08-02 2014-02-12 北京千橡网景科技发展有限公司 Advertisement publishing method and system
CN104063380A (en) * 2013-03-18 2014-09-24 北京百度网讯科技有限公司 Method and device for converting picture files into webpage files
CN104217354A (en) * 2014-09-02 2014-12-17 天津云辰科技有限公司 Advertisement placement method based on pictures in webpage browsed by user
CN104504649A (en) * 2014-12-30 2015-04-08 百度在线网络技术(北京)有限公司 Picture cutting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130006759A1 (en) * 2011-07-01 2013-01-03 Yahoo! Inc. Monetizing user generated content with embedded advertisements
CN103578016A (en) * 2012-08-02 2014-02-12 北京千橡网景科技发展有限公司 Advertisement publishing method and system
CN104063380A (en) * 2013-03-18 2014-09-24 北京百度网讯科技有限公司 Method and device for converting picture files into webpage files
CN104217354A (en) * 2014-09-02 2014-12-17 天津云辰科技有限公司 Advertisement placement method based on pictures in webpage browsed by user
CN104504649A (en) * 2014-12-30 2015-04-08 百度在线网络技术(北京)有限公司 Picture cutting method and device

Cited By (20)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107690087B (en) * 2017-07-04 2019-10-29 北京奇艺世纪科技有限公司 A kind of advertising display area determination method and device
CN107690087A (en) * 2017-07-04 2018-02-13 北京奇艺世纪科技有限公司 A kind of advertising display area determination method and device
CN109389440B (en) * 2017-08-02 2022-05-24 阿里巴巴集团控股有限公司 Method and device for providing data object information and electronic equipment
CN109389440A (en) * 2017-08-02 2019-02-26 阿里巴巴集团控股有限公司 The method, apparatus and electronic equipment of data object information are provided
CN110008450A (en) * 2018-01-05 2019-07-12 阿里巴巴集团控股有限公司 Generation method, device, equipment and the medium of picture
CN110008450B (en) * 2018-01-05 2023-02-28 阿里巴巴集团控股有限公司 Picture generation method, device, equipment and medium
US10783685B2 (en) 2018-06-22 2020-09-22 Shanghai Bilibili Technology Co., Ltd. Banner image generation
CN108897826A (en) * 2018-06-22 2018-11-27 上海哔哩哔哩科技有限公司 Banner picture rapid generation, system and storage medium
CN108897826B (en) * 2018-06-22 2021-09-14 上海哔哩哔哩科技有限公司 Method, system and storage medium for quickly generating banner picture
CN110827373A (en) * 2018-08-13 2020-02-21 北京京东尚科信息技术有限公司 Advertisement picture generation method and device and storage medium
CN110827373B (en) * 2018-08-13 2024-09-20 北京京东尚科信息技术有限公司 Advertisement picture generation method, device and storage medium
CN109271604A (en) * 2018-09-27 2019-01-25 北京奇虎科技有限公司 A kind of layout method, apparatus and computer equipment
CN109271604B (en) * 2018-09-27 2023-05-23 三六零科技集团有限公司 Advertisement layout method and device and computer equipment
CN110490951A (en) * 2019-08-21 2019-11-22 腾讯科技(深圳)有限公司 A kind of image drawing method and device
CN112837081A (en) * 2019-11-25 2021-05-25 上海哔哩哔哩科技有限公司 Automatic generation method and device of advertisement picture and storage medium
CN113052619A (en) * 2019-12-27 2021-06-29 北京搜狗科技发展有限公司 Advertisement making method and device
CN113052619B (en) * 2019-12-27 2024-05-24 北京搜狗科技发展有限公司 Advertisement making method and device
CN111339465A (en) * 2020-03-04 2020-06-26 北京字节跳动网络技术有限公司 Picture processing method and device, computer equipment and storage medium
CN112651780A (en) * 2020-12-25 2021-04-13 上海硬通网络科技有限公司 Advertisement file generation method and device and electronic equipment
CN114119070A (en) * 2021-10-29 2022-03-01 深圳市豪斯莱科技有限公司 Advertisement generation method, device and storage medium

Similar Documents

Publication Publication Date Title
CN106485534A (en) The generation method of advertisement and device in webpage
JP6768695B2 (en) Methods and devices for generating composite pictures
Odsæter et al. A simple embedded discrete fracture–matrix model for a coupled flow and transport problem in porous media
US20060179405A1 (en) Constraining layout variations for accommodating variable content in electronic documents
CN103761397A (en) Three-dimensional model slice for surface exposure additive forming and projection plane generating method
JP2004534960A (en) Elastic display space
CN107393459A (en) Method for displaying image and device
CN103208225A (en) Tile map manufacturing method and system
CN106873925A (en) The display methods and device of label text
US20070160290A1 (en) Text flow in and around irregular containers
CN107945248A (en) A kind of bubble diagram word methods of exhibiting and device
US20170090723A1 (en) Widgets in digital dashboards
US10169317B2 (en) Rendering common cell formatting for adjacent cells
CN106557458A (en) Electronic composition method and apparatus
CN110008450A (en) Generation method, device, equipment and the medium of picture
US10559061B2 (en) Computerized generation of ornamental designs by placing instances of simple shapes in accordance with a direction guide
CN109710258A (en) WeChat applet interface generation method and device
US11144717B2 (en) Automatic generation of document layouts
CN113222874A (en) Data enhancement method, device and equipment applied to target detection and storage medium
CN105955599A (en) Realization method for simulating document reading mode in electronic device
CN104978169B (en) The SDK processing method and processing devices of Periodical Reading application
CN106610824A (en) Page height self-adaptation method and apparatus
CN106599175B (en) Webpage element display processing method and device
US11929049B2 (en) Output content generation apparatus, output content generation method and program
JPWO2014020801A1 (en) Image processing apparatus and image processing method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20170308