Advertisement file generation method and device, and electronic device
By receiving level configuration operations and using decision trees and Naive Bayes models to filter resource information groups and perform proportional scaling, the problem of low efficiency in generating advertising files is solved, and advertising files that meet target requirements are generated efficiently.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHANGHAI INGOT NETWORK TECH CO LTD
- Filing Date
- 2020-12-25
- Publication Date
- 2026-07-24
AI Technical Summary
In existing technologies, the generation efficiency of advertising files is low, and configuration adjustments can easily affect other configuration requirements, resulting in advertising files failing to meet target needs.
By receiving the level configuration operation, the level configuration information is determined. Resource information groups associated with the level configuration information are selected from the resource information database, and advertising files are generated. Resource information is obtained in parallel using decision trees and Naive Bayes models. The files are scaled proportionally according to the material tags and ad placement tags to generate advertising files that meet the target requirements.
It improves the efficiency of ad file generation, ensures that the generated ad files meet the target requirements, reduces the complexity and time of configuration adjustments, and improves the display quality of creative materials and the accuracy of ad files.
Smart Images

Figure CN112651780B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of computer technology, and in particular to a method, apparatus and electronic device for generating advertising documents. Background Technology
[0002] With the development of the Internet, more and more merchants are choosing to generate advertising files through online media platforms, and display images or videos of new products in the form of banner ads to attract users to click on the corresponding advertising page to enter the product introduction or purchase page.
[0003] Page ad files are typically generated from resource information listed in a template. Current methods for delivering page ad files involve creating a template by configuring various resource information selected by staff. This includes filling in or copying and pasting media ad space addresses, creative material addresses, and product detail page links into a table. The template is then used to retrieve the corresponding page resources and generate the page ad file for delivery. However, this method requires selecting multiple configurations. If the ad file generated based on the selected configurations does not meet the target requirements, adjustments to multiple configurations are necessary to make it suitable. Furthermore, because these configurations are interrelated, adjustments can sometimes affect the perceived proportion of other configurations within the target requirements, leading to situations where the adjusted ad file consistently fails to meet the target needs. This significantly impacts the efficiency of ad file generation. Summary of the Invention
[0004] The purpose of this application is to at least solve one of the technical problems existing in the prior art, and to provide an advertising document generation method, apparatus and electronic device to improve the efficiency of advertising document generation.
[0005] This application provides a method for generating advertising files, including:
[0006] Receive level configuration operations for advertising files;
[0007] Based on the aforementioned level configuration operation, determine the level configuration information;
[0008] Based on the level configuration information, resource information groups associated with the level configuration information are filtered from the resource information database, wherein the information types of the resource information in the resource information groups are different from each other;
[0009] An advertising file is generated based on the resource information group.
[0010] Furthermore, determining the level configuration information based on the level configuration operation includes:
[0011] Based on the level configuration operation, obtain the level configuration information from the configuration form in the level configuration field of the page; or,
[0012] The configuration value input by the level configuration operation is obtained from the level configuration bit, and the level configuration information that is closest to the configuration value is obtained from the configuration form based on the configuration value.
[0013] Furthermore, before filtering the resource information group associated with the level configuration information based on the level configuration information, the method further includes:
[0014] Receive a target user selection operation, and select a target user group according to the selection operation;
[0015] Based on the target user group, obtain the resource information database associated with the target user group.
[0016] Furthermore, the step of filtering resource information groups associated with the level configuration information from the resource information database according to the level configuration information includes:
[0017] The grade configuration information is input into the trained decision tree model to determine each first resource associated with the grade configuration information;
[0018] And in parallel, the level configuration information is input into the trained Naive Bayes model to determine each second resource associated with the level configuration information;
[0019] Based on each of the first resources and each of the second resources, multiple resource information items associated with each of the first resources or each of the second resources are selected from the resource information database to form the resource information group.
[0020] Furthermore, the resource information group includes material tags and target ad placement tags;
[0021] The process of generating advertising files based on resource information groups includes:
[0022] Based on the material tags, obtain the corresponding material source, and each material source is associated with a unique target material;
[0023] The ad file is generated based on the source material and the target ad placement tag, so that when an ad delivery request is received, the ad file is sent to the target ad placement corresponding to the target ad placement tag.
[0024] Furthermore, after obtaining the corresponding source material, the process also includes:
[0025] Based on the source material, obtain the target material;
[0026] Extract a preset image region from the target material image;
[0027] Based on the target ad slot determined by the target ad slot label, the preset image area is scaled proportionally to update the target material.
[0028] Furthermore, the step of extracting a preset image region from the target material includes:
[0029] Obtain multiple aspect ratios of multiple preset regions of the source image, wherein the aspect ratios are formed by the length and width pixels of the preset regions;
[0030] The preset region corresponding to the aspect ratio closest to the region among the plurality of aspect ratios is marked as the preset image region, wherein the aspect ratio of the region is formed according to the length and width attributes of the target advertisement position.
[0031] Furthermore, the step of scaling the preset image area proportionally according to the target ad position and updating the target material includes:
[0032] Image attributes that satisfy a preset marking strategy are marked in the long pixels and wide pixels of the preset image region, wherein the preset marking strategy includes marking the image attribute with the larger pixel value in the long pixels and wide pixels of the preset image region;
[0033] Based on the labeled image attributes, the corresponding target basic attributes are obtained from multiple basic attributes of the target ad space, wherein the multiple basic attributes include the length attribute and the width attribute of the ad space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel;
[0034] Based on the attribute ratio between the marked image attributes and the target basic attributes, the preset image area is scaled proportionally to update the target material.
[0035] Furthermore, after filtering resource information groups associated with the level configuration information from the resource information database, the process also includes:
[0036] Each resource information in the resource information group is displayed in its respective resource configuration slot on the page, wherein each resource information corresponds one-to-one with the resource configuration slot.
[0037] Furthermore, in this embodiment of the application, an advertising document generation apparatus is also provided, comprising:
[0038] The operation receiving module is used to receive level configuration operations for advertising files;
[0039] The level determination module is used to determine the level configuration information based on the level configuration operation.
[0040] A configuration filtering module is configured to filter resource information groups associated with the level configuration information from the resource information database according to the level configuration information, wherein the information types of the resource information in the resource information group are different from each other;
[0041] The file generation module is used to generate advertising files based on the resource information group.
[0042] Furthermore, this application provides an electronic device, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the advertising file generation method as described in the above embodiments.
[0043] Furthermore, embodiments of this application provide a computer-readable storage medium storing computer-executable instructions for causing a computer to perform the advertising file generation method as described in the above embodiments.
[0044] Compared to existing technologies, the above embodiments receive a level configuration operation for an advertising file and determine the level configuration information based on the level configuration operation. Then, they select resource information groups associated with the level configuration information from the resource information database to generate the advertising file. This associates the resource information group that forms the advertising file with the level configuration operation of the advertising file. When the corresponding resource information group is selected, it can be automatically imported and the advertising file can be generated without having to select multiple configurations. Furthermore, the generated advertising file meets the target requirements, greatly improving the efficiency of advertising file generation.
[0045] The above embodiments obtain level configuration information from the configuration table of the page or from the input configuration value from the level configuration position according to the level configuration operation, and then obtain the level configuration information that is closest to the configuration value from the configuration form. This makes it more convenient to obtain the level configuration information corresponding to each level configuration position on the page, and the obtained level configuration information is closer to the target requirements.
[0046] In the above embodiments, a target user group is selected based on the target user selection operation, and then the resource information database is associated with the target user group, so that the selected resource information group is also associated with the target user group, making the final generated advertising file more in line with the target user group's target needs.
[0047] In the above embodiments, the acquisition of each first resource and each second resource are carried out in parallel, which can reduce the time consumption without affecting the accuracy of the acquired first resources and each second resource.
[0048] The above embodiments obtain the material source associated with the target material based on the material tag, and generate the ad file based on the material source and the target ad position tag. This can obtain the corresponding target material and generate the ad file more quickly and accurately, and reduce the required storage space.
[0049] The above embodiments obtain a preset area image of the material image and scale the preset area image proportionally according to the target ad position determined by the target ad position label, which can avoid the distortion caused by the material image being placed on the target ad position.
[0050] The above embodiments obtain multiple aspect ratios of multiple preset regions of the material image, and select the aspect ratio closest to that of the region as the preset image region. This allows for the selection of a preset image region that is more suitable for the advertisement and performs proportional scaling, thereby better and more completely displaying the core content of the material and improving the display quality of the material.
[0051] In the process of acquiring target materials, the above embodiments mark the image attribute with the larger pixel among the long and wide pixels in the preset image area. The attribute ratio is obtained based on the marked image attribute and the basic attributes of the corresponding target ad position. The preset image area is scaled proportionally according to the attribute ratio to update the target material. This ensures that the scaling ratio of the long and wide pixels of the target material is consistent, making it less prone to deformation and distortion. It also ensures that the content of the available material is displayed completely, avoiding any impact on the display quality of the available material.
[0052] The above embodiments, by displaying each resource information on a corresponding resource configuration location, can generate more accurate and aesthetically pleasing advertising files for delivery. Attached Figure Description
[0053] The present application will be further described below with reference to the accompanying drawings and embodiments;
[0054] Figure 1 This is an application environment diagram of an advertising file generation method in one embodiment;
[0055] Figure 2 This is a flowchart illustrating an advertising file generation method in one embodiment;
[0056] Figure 3 This is a schematic diagram illustrating the process of obtaining level configuration information from a configuration form in the level configuration field of a page, as shown in one embodiment.
[0057] Figure 4 This is a schematic diagram illustrating how, in one embodiment, the level configuration information closest to the input configuration value is obtained from the configuration form.
[0058] Figure 5This is a structural block diagram of an advertising file generation device in one embodiment;
[0059] Figure 6 This is a structural block diagram of a computer device in one embodiment. Detailed Implementation
[0060] This section will describe in detail the specific embodiments of this application. Preferred embodiments of this application are shown in the accompanying drawings. The purpose of the drawings is to supplement the textual description with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of this application, but they should not be construed as limiting the scope of protection of this application.
[0061] Page ad files are typically generated from resource information listed in a template. Current page ad file delivery methods involve creating a template by configuring various resource information selected by staff. For example, media ad placement addresses, creative material addresses, and product detail page links are filled in or copied and pasted into a table to form a template. The corresponding page resources are then retrieved based on the template to generate the page ad file before delivery. However, this method requires multiple configuration selections. If the ad file generated based on the selected configurations does not meet the target requirements, multiple configuration adjustments are needed to make it meet the target requirements. Furthermore, because these configurations are interrelated, adjustments can affect the required proportion of other configurations within the target requirements, resulting in ad files that consistently fail to meet the target requirements, significantly impacting ad file generation efficiency. The template can be understood as the framework of the ad file, a semi-finished product that can be edited. It typically includes background images, specified frame color schemes, agreed-upon text fonts, agreed-upon text color schemes, or agreed-upon layouts of background images and advertising materials, etc. The resource information refers to the advertising materials (including product images or promotional text). Configuration refers to resource information and its format within the template, such as the location and size of image assets within the template.
[0062] To solve the above technical problems, such as Figure 1 The diagram shown illustrates the application environment of an advertising file generation method in one embodiment. (Refer to...) Figure 1The advertising file generation system includes a user terminal 110 and a server 120. The user terminal 110 and server 120 are connected via a network. The user terminal 110 can be a desktop user terminal. The user terminal 110 can be implemented using a standalone user terminal or a cluster of multiple user terminals. The server 120 can be implemented using a standalone server or a cluster of multiple servers. The server receives level configuration operations for the advertising file and determines the level configuration information based on these operations. It then selects resource information groups associated with the level configuration information from a resource information database to generate the advertising file.
[0063] The following will provide a detailed description and explanation of the advertising file generation method provided in this application through several specific embodiments.
[0064] like Figure 2 As shown, in one embodiment, an advertising file generation method is provided. This embodiment mainly illustrates the application of this method to a computer device. Specifically, the computer device may be the one described above. Figure 1 Server 120 in the middle.
[0065] Reference Figure 2 The method for generating this advertising file specifically includes the following steps:
[0066] S11, Receive the level configuration operation for the advertising file.
[0067] In this embodiment, the server receives a level configuration operation for an advertising file. This level configuration operation can be input by the user through clicking, dragging, or entering codes; it can also be automatically generated and sent to the server by the user terminal or other servers. The level configuration operation is the process of selecting the level configuration information needed to generate the advertising file. For an advertising file, the level configuration operation can specifically be an operation where the user selects one of the configuration forms in an interface with different configuration forms by clicking or dragging. For example, if a user sends a level configuration operation to the server through user terminal 1, and this level configuration operation is for an advertising file promoting the "Cloud City Song" event, the user specifically selects the corresponding configuration form from three configuration forms on the server's interface by clicking. These three configuration forms are configuration form 1, configuration form 2, and configuration form 3.
[0068] S12. Based on the level configuration operation, determine the level configuration information.
[0069] In this embodiment, the server determines the level configuration information based on the level configuration operation. Specifically, it determines the level configuration information based on the configuration form selected by clicking or dragging during the level configuration operation. The server can set a time period, and determine the level configuration information based on the last configuration form clicked or dragged during that time period. For example, if the user selects configuration form 2 by clicking, the information corresponding to that configuration form is the level configuration information.
[0070] In one embodiment, determining the level configuration information based on the level configuration operation includes:
[0071] Based on the level configuration operation, retrieve the level configuration information from the configuration form in the level configuration section of the page; or,
[0072] Retrieve the configuration value input by the level configuration operation from the level configuration bit, and retrieve the level configuration information that is closest to the configuration value from the configuration form based on the configuration value.
[0073] In this embodiment, the user can input level configuration operations on the server by clicking, dragging, or entering parameters. The server can then select the corresponding configuration form from the level configuration field on the page containing level configuration information, based on the level configuration operation, and obtain the corresponding level configuration information from the configuration form. The level configuration field refers to the location on the page where the level configuration operation selects the corresponding configuration form through clicking, dragging, or entering codes. For example, such as... Figure 3 As shown, the user inputs level configuration information into the server by clicking. The server then opens the level configuration section for the "Cloud City Song" promotional event. This section contains three configuration forms: Form 1, Form 2, and Form 3, corresponding to 100 points, 90 points, and 80 points respectively. The server then selects Form 2 based on the clicked configuration, and the 90 points corresponding to Form 2 become the level configuration information.
[0074] In this embodiment, the user can also input level configuration operations into the level configuration field by inputting parameters. The server retrieves the configuration value input by the level configuration operation from the level configuration field and, based on the configuration value, retrieves the level configuration information that is closest to the configuration value from the configuration form. For example, such as... Figure 4As shown, the user inputs the parameter ysczg-92 into the level configuration field in the promotional materials for "Cloud City Song" and sends it to the server. The server, based on the input parameter value of 92, retrieves the most recently configured level configuration information from the configuration forms. This level configuration field contains three configuration forms: Form 1, Form 2, and Form 3, corresponding to 100 points, 90 points, and 80 points respectively. Therefore, 90 points is selected as the level configuration information.
[0075] In this embodiment, based on the level configuration operation, level configuration information is obtained from the configuration table of the level configuration on the page, or the input configuration value is obtained from the level configuration position. Then, the level configuration information that is closest to the configuration value is obtained from the configuration form. This makes it more convenient to obtain the level configuration information corresponding to each level configuration position on the page, and the obtained level configuration information is closer to the target requirements.
[0076] S13. Based on the level configuration information, filter the resource information groups associated with the level configuration information from the resource information database, wherein the information types of the resource information in the resource information groups are different from each other.
[0077] In this embodiment, the server filters resource information groups associated with the level configuration information from the resource information database. The resource information database is a database storing resource information. The resource information groups are associated with the level configuration information in such a way that different levels of configuration information contain different types of information. The resource information can be image materials, web link materials, and text materials, corresponding to image type, link type, and text type, respectively. For example, when the level configuration information is 100 points, the resource information group contains image type, web link type, and text type; when the level configuration information is 90 points, the resource information group contains image type and web link type; and when the level configuration information is 80 points, the resource information group contains image type and text type. The information categories of the resource information within a resource information group are all different; that is, in a resource information group, there is at most one resource information of each category.
[0078] In one embodiment, before filtering the resource information group associated with the level configuration information based on the level configuration information, the method further includes:
[0079] Receive the target user selection operation and select the target user group based on the selection operation.
[0080] Based on the target user group, obtain a resource information database associated with the target user group.
[0081] In this embodiment, before filtering resource information groups based on the level configuration information, the server first selects a target user group based on the received target user selection operation, and then obtains the resource information database associated with the target user group. The target user selection operation can be entered into the server by the user or server administrator through clicking, dragging, or typing code; alternatively, it can be automatically generated and sent to the server by the user terminal or other servers. To associate resource information databases with target user groups, resource information groups can be set up based on the most frequently installed applications in the target user group's client cluster. Alternatively, they can be set up based on the services frequently run by the target user group's client cluster. For example, if the target user group's client cluster frequently runs big data statistics services, then resource information groups can be set up with web links to big data statistics software or algorithms, along with images of those algorithms. Furthermore, resource information groups can be set up based on the web content frequently accessed by the target user group's client cluster. For instance, if the target user group's client cluster frequently visits the 37Games official website, then resource information groups can be set up with web links recommending new 37Games games and game images.
[0082] In this embodiment, a target user group is selected based on the target user selection operation, and then the resource information database is associated with the target user group. This makes the selected resource information group also associated with the target user group, so that the final generated advertising file is more in line with the target user group's target needs.
[0083] In one embodiment, filtering resource information groups associated with the level configuration information from the resource information database based on the level configuration information includes:
[0084] The rank configuration information is input into the trained decision tree model to determine the first resources associated with the rank configuration information.
[0085] In addition, the hierarchical configuration information is input into the trained Naive Bayes model in parallel to determine the second resources associated with the hierarchical configuration information.
[0086] Based on each primary resource and each secondary resource, multiple resource information related to each primary resource or each secondary resource are selected from the resource information database to form a resource information group.
[0087] In this embodiment, the server uses a trained decision tree model to obtain each first resource and each second resource associated with the level configuration information based on the level configuration information. The acquisition of each first resource associated with the level configuration information and the acquisition of each second resource associated with the level configuration information are carried out in parallel.
[0088] In this embodiment, the first resource is the score calculated by the server using a decision tree model based on the level configuration information, and the second resource is the score calculated by the server using a Naive Bayes model based on the level configuration information. To filter out multiple resource information associated with each first resource or each second resource, the calculated scores for each first resource and each second resource can be sorted from highest to lowest, and then the resource information of different information types with the highest scores can be selected to form a resource information group. For example, if the scores for each first resource are 5, 8, and 4, and the corresponding information types are all images, and the scores for each second resource are 3, 6, and 9, and the corresponding information types are all text, then the server can select the image resource information corresponding to the first resource score of 8 and the text resource information corresponding to the second resource score of 9 to form a resource information group based on the first resource scores of 8, 5, and 4, and the second resource scores of 9, 6, and 3.
[0089] In this embodiment, the acquisition of each first resource and the acquisition of each second resource are carried out in parallel, which can reduce the time consumption without affecting the accuracy of the acquired first resources and second resources.
[0090] S14. Generate advertising files based on resource information groups.
[0091] In this embodiment, the server combines each resource information in the resource information group with the frame of the advertising file, i.e., the template, to generate the advertising file. The template may include a background image, a specified frame color scheme, a text font agreed upon for text materials, a text color scheme agreed upon for text materials, and the layout of each resource information in the target advertising position.
[0092] In one embodiment, the resource information group includes material tags and target ad placement tags.
[0093] The advertising file is generated based on the resource information group, including:
[0094] Based on the material tags, obtain the corresponding material source, and each material source is associated with a unique target material.
[0095] The ad file is generated based on the source material and the target ad placement tag, so that when an ad delivery request is received, the ad file is sent to the target ad placement corresponding to the target ad placement tag.
[0096] In this embodiment, the server obtains the corresponding material source based on the material tag in the resource information group. This material source is uniquely associated with the target material. The material source is the address information where the target material is stored, and the material tag is the identifier for obtaining the material source. For example, the server obtains the address where the promotional image material for "Cloud City Song" is stored through material tag 1. Based on this address, the server can uniquely obtain the corresponding "Cloud City Song" promotional image material. The server combines the obtained material source and the target ad slot tag with a template to generate an ad file. When the server receives an ad delivery request, it then sends the ad file to the target ad slot corresponding to the target ad slot tag. The server can uniquely find the corresponding target ad slot based on the target ad slot tag. For example, target ad slot tag 1 can find the 37Games official website in client 1, and the server then sends the ad file to the official website for delivery.
[0097] In this embodiment, the source material associated with the target material is obtained based on the material tag, and the ad file is generated based on the material source and the target ad slot tag. This allows for faster and more accurate acquisition of the corresponding target material and generation of the ad file, while reducing the required storage space.
[0098] In one embodiment, after obtaining the corresponding source material, the method further includes:
[0099] Obtain the target material based on the source material.
[0100] Extract a preset image region from the target material.
[0101] Based on the target ad placement determined by the target ad placement tag, the preset image area is scaled proportionally and the target material is updated.
[0102] In this embodiment, the source material refers to the address information where the target material is stored. The server obtains a preset image area of the material image in the target material. The target material can be an object that needs to be advertised, such as an item, animal, or person. The material image is the image corresponding to the object to be advertised, and this image can be a bitmap or a vector image.
[0103] In this embodiment, the server can obtain a preset image region by cropping, or by inputting the coordinates of each corner of the desired preset image region. The preset image region refers to the image region within the image corresponding to the object to which the advertisement is to be placed. Since image region acquisition is existing technology, the method for obtaining the preset image region from the source image is not specifically limited.
[0104] After obtaining the preset image area, the server scales the preset image area proportionally according to the target ad position determined by the target ad position tag, and updates the target material. Proportional scaling means that the image's length and width pixels are scaled according to a uniform ratio.
[0105] For example, if the target ad placement is a rectangular area with a length of 500 pixels and a width of 1000 pixels, the server will proportionally scale a preset rectangular image area with a length of 800 pixels and a width of 1000 pixels to obtain target creative material suitable for placement in the target ad placement. This proportional scaling based on attribute ratios can reduce the length and width of the target creative material to half, a quarter, an eighth, or so on. Since the target creative material needs to be suitable for placement in the target ad placement, proportional scaling can result in target creative material with a length of 400 pixels and a width of 500 pixels, or 200 pixels with a length of 250 pixels and a width of 250 pixels, or even 100 pixels with a length of 125 pixels and a width of 125 pixels. The server will then update the original target creative material with the target creative material suitable for placement in the target ad placement.
[0106] In this embodiment, by acquiring a preset area image of the source image and scaling the preset area image proportionally according to the target ad position determined by the target ad position label, distortion caused by the source image being projected onto the target ad position can be avoided.
[0107] In one embodiment, extracting a preset image region from the target material includes:
[0108] Obtain multiple aspect ratios of multiple preset regions of the source image, wherein the aspect ratio is formed by the length and width pixels of the preset regions.
[0109] Among multiple aspect ratios, the preset region corresponding to the aspect ratio closest to the target ad space is marked as the preset image region. The aspect ratio of the region is formed based on the length and width attributes of the target ad space.
[0110] In this embodiment, the server can crop multiple preset regions from the source image, and the aspect ratios of these preset regions are all different. The aspect ratio is the ratio of the length pixels to the width pixels of the preset region. For example, from a source image with a length of 1000 pixels and a width of 1000 pixels, two preset regions can be obtained: one with a length of 1000 pixels and a width of 800 pixels, and the other with a length of 800 pixels and a width of 1000 pixels. The aspect ratios of these two preset regions are 5:4 and 4:5, respectively. When there is only one source image, the preset regions can be cropped by copying the source image.
[0111] In this embodiment, the server selects a preset region with a pixel ratio closest to the target ad space's aspect ratio and marks the selected preset region as a preset image region. The aspect ratio is the ratio of the ad space's length to its width. For example, consider two preset regions with aspect ratios of 5:4 and 4:5: 1000 pixels long and 800 pixels wide, and 800 pixels long and 1000 pixels wide. If the ad space's length is 500 pixels and its width is 300 pixels, then the aspect ratio is 5:3. Therefore, the closest preset region is 5:4, and this region is marked as the preset image region.
[0112] In this embodiment, multiple aspect ratios of multiple preset regions of the material image are obtained, and the aspect ratio closest to that of the region is selected and marked as the preset image region. This allows for the selection of a preset image region that is more suitable for the advertisement and proportional scaling, thereby better and more completely displaying the core content of the material and improving the display quality of the material.
[0113] In one embodiment, scaling a preset image area proportionally according to the target ad placement and updating the target material includes:
[0114] Image attributes that satisfy a preset marking strategy are marked in the long and wide pixels of a preset image region. The preset marking strategy includes marking the image attribute with the larger pixel value in the long and wide pixels of the preset image region.
[0115] Based on the tagged image attributes, the corresponding target basic attributes are obtained from multiple basic attributes of the target ad space. These multiple basic attributes include the length attribute and width attribute of the ad space. The length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel.
[0116] Based on the attribute ratio between the tagged image attributes and the target base attributes, the preset image area is scaled proportionally to update the target material.
[0117] In this embodiment, for a preset image region, the server selects one of the long pixels and wide pixels for marking according to a preset marking strategy. The preset marking strategy refers to the basis for selecting one of the long pixels and wide pixels of the preset image region for marking. Image attributes include long pixels and wide pixels.
[0118] The server selects the larger of the long and wide pixel values of a preset image region for marking. For example, the preset image region for the promotional image material of the game "Cloud Song" is a rectangular area with a long pixel value of 800 and a wide pixel value of 1000. The server selects the wide pixel value for marking according to a preset marking strategy. The marking method is not specifically limited. Based on the marked image attributes in the preset image region, the server obtains the corresponding target basic attributes from multiple basic attributes of the target ad slot. The basic attributes refer to the length and width attributes of the target ad slot, representing the maximum length and maximum width of the initial material that can be placed in the target ad slot, respectively. The basic attribute corresponding to the marked image attributes in the preset image region is the target basic attribute. The correspondence between image attributes and basic attributes is that the length attribute corresponds to the long pixel value, and the width attribute corresponds to the wide pixel value. For example, if the wide pixel value in the preset image region is selected for marking, then the target basic attribute obtained by the server from the target ad slot is the width attribute.
[0119] The server obtains the attribute ratio between the tagged image attributes and the corresponding target base attributes. For example, the preset image area for the promotional image material of the game "Cloud Song" is a rectangular area with a length of 800 pixels and a width of 1000 pixels. The width in pixels is the tagged image attribute, and the width attribute of the target ad slot is the corresponding target base attribute. The length attribute of the target ad slot is 800, and the width attribute is 500. In this case, the attribute ratio between the width in pixels and the width attribute is 2:1.
[0120] The server scales a preset image area proportionally according to attribute ratios. Proportional scaling means that the image's length and width pixels are scaled at a uniform ratio. After proportional scaling, the server uses the scaled preset image area as the target material.
[0121] For example, the server scales a preset image area with a width of 800 pixels and a width of 1000 pixels proportionally, based on a 2:1 width-to-width ratio. This proportional scaling can reduce the width and height of the preset image area to half, a quarter, an eighth, or so on. After scaling, the initial material can be 400 pixels long and 500 pixels wide, 200 pixels long and 250 pixels wide, 100 pixels long and 125 pixels wide, and so on. The server then uses this proportionally scaled preset image area as the target material.
[0122] In this embodiment, during the acquisition of target material, the image attribute with the larger pixel among the long and wide pixels in the preset image area is marked. The attribute ratio is obtained based on the marked image attribute and the basic attributes of the corresponding target ad position. The preset image area is then scaled proportionally according to this attribute ratio to update the target material. This ensures that the scaling ratio of the long and wide pixels of the target material is consistent, making it less prone to deformation and distortion. Furthermore, it enables the complete display of the content of the available material, avoiding any impact on the display quality of the available material.
[0123] In one embodiment, after filtering resource information groups associated with tier configuration information from the resource information repository, the method further includes:
[0124] Each resource information in the resource information group is displayed in its respective resource configuration slot on the page, with each resource information corresponding to a resource configuration slot.
[0125] In this embodiment, the server displays each resource information in the resource information group on its respective resource configuration slot on the page. That is, each resource information has a corresponding resource configuration slot on the page, where each resource configuration slot is its location on the page, and there is a one-to-one correspondence between the resource configuration slot and the resource information. For example, image materials are located at the top of the page, text materials are located in the lower left corner, and web link materials are located in the lower right corner. These resource configuration slots can be set by the user or the resource information itself contains configuration information for those slots.
[0126] In this embodiment, by displaying each resource information on a corresponding resource configuration slot, more accurate and aesthetically pleasing advertising files can be generated for delivery.
[0127] In one embodiment, such as Figure 5 As shown, an advertising document generation apparatus is provided, comprising:
[0128] The operation receiving module 101 is used to receive level configuration operations for advertising files.
[0129] The level determination module 102 is used to determine the level configuration information based on the level configuration operation.
[0130] The configuration filtering module 103 is used to filter resource information groups associated with the level configuration information from the resource information database based on the level configuration information, wherein the information types of the resource information in the resource information group are different from each other.
[0131] The file generation module 104 is used to generate advertising files based on the resource information group.
[0132] In one embodiment, the level determination module 102 is further configured to:
[0133] Based on the level configuration operation, retrieve the level configuration information from the configuration form in the level configuration section of the page; or,
[0134] Retrieve the configuration value input by the level configuration operation from the level configuration bit, and retrieve the level configuration information that is closest to the configuration value from the configuration form based on the configuration value.
[0135] In one embodiment, the configuration filtering module 103 is further configured to:
[0136] Before filtering resource information groups associated with the level configuration information, the system receives a target user selection operation and selects the target user group based on the selection operation.
[0137] Based on the target user group, obtain a resource information database associated with the target user group.
[0138] In one embodiment, the configuration filtering module 103 is further configured to:
[0139] The rank configuration information is input into the trained decision tree model to determine the first resources associated with the rank configuration information.
[0140] In addition, the hierarchical configuration information is input into the trained Naive Bayes model in parallel to determine the second resources associated with the hierarchical configuration information.
[0141] Based on each primary resource and each secondary resource, multiple resource information related to each primary resource or each secondary resource are selected from the resource information database to form a resource information group.
[0142] In one embodiment, the configuration filtering module 103 is further configured to:
[0143] After filtering resource information groups associated with the level configuration information from the resource information database, each resource information in the resource information group is displayed in each resource configuration position on the page, with each resource information corresponding to a resource configuration position.
[0144] In one embodiment, the resource information group includes material tags and target ad placement tags.
[0145] The file generation module 104 is also used for:
[0146] Based on the material tags, obtain the corresponding material source, and each material source is associated with a unique target material.
[0147] The ad file is generated based on the source material and the target ad placement tag, so that when an ad delivery request is received, the ad file is sent to the target ad placement corresponding to the target ad placement tag.
[0148] In one embodiment, the file generation module 104 is further configured to:
[0149] After obtaining the corresponding source material, the target material is obtained based on the source material.
[0150] Extract a preset image region from the target material.
[0151] Based on the target ad placement determined by the target ad placement tag, the preset image area is scaled proportionally and the target material is updated.
[0152] In one embodiment, the file generation module 104 is further configured to:
[0153] Obtain multiple aspect ratios of multiple preset regions of the source image, wherein the aspect ratio is formed by the length and width pixels of the preset regions.
[0154] Among multiple aspect ratios, the preset region corresponding to the aspect ratio closest to the target ad space is marked as the preset image region. The aspect ratio of the region is formed based on the length and width attributes of the target ad space.
[0155] In one embodiment, the file generation module 104 is further configured to:
[0156] Image attributes that satisfy a preset marking strategy are marked in the long and wide pixels of a preset image region. The preset marking strategy includes marking the image attribute with the larger pixel value in the long and wide pixels of the preset image region.
[0157] Based on the tagged image attributes, the corresponding target basic attributes are obtained from multiple basic attributes of the target ad space. These multiple basic attributes include the length attribute and width attribute of the ad space. The length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel.
[0158] Based on the attribute ratio between the tagged image attributes and the target base attributes, the preset image area is scaled proportionally to update the target material.
[0159] In one embodiment, a computer device is provided, such as Figure 6 As shown, the computer device includes a processor, memory, network interface, input device, and display screen connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement an advertising file generation method. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the advertising file generation method. Those skilled in the art will understand that... Figure 6The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0160] In one embodiment, the advertising document generation apparatus provided in this application can be implemented as a computer program, which can be used in various ways, such as... Figure 6 The device operates on the computer device shown. The computer device's memory can store various program modules that make up the advertising file generation apparatus. The computer program, composed of the various program modules, causes the processor to execute the steps in the advertising file generation methods of the various embodiments of this application described in this specification.
[0161] In one embodiment, an electronic device is provided, including: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to perform the steps of the above-described advertising file generation method. The steps of the advertising file generation method here may be steps from the advertising file generation methods of the various embodiments described above.
[0162] In one embodiment, a computer-readable storage medium is provided storing computer-executable instructions for causing a computer to perform the steps of the advertising file generation method described above. The steps of the advertising file generation method here can be the steps in the advertising file generation methods of the various embodiments described above.
[0163] The above description is the preferred embodiment of this application. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of this application, and these improvements and modifications are also considered to be within the scope of protection of this application.
[0164] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.
Claims
1. A method for generating an advertising document, characterized in that, include: Receive level configuration operations for advertising files; Based on the level configuration operation, level configuration information is determined, where the level configuration information is a score value; The step of determining the level configuration information based on the level configuration operation includes: Based on the level configuration operation, obtain the level configuration information from the configuration form in the level configuration field of the page; or, Obtain the configuration value input by the level configuration operation from the level configuration bit, and obtain the level configuration information that is closest to the configuration value from the configuration form based on the configuration value; Based on the level configuration information, resource information groups associated with the level configuration information are filtered from the resource information database. The information types of the resource information in the resource information groups are different from each other. The information types contained in the resource information groups corresponding to different level configuration information are different. The information types include image type, network link type and text type. An advertising file is generated based on the resource information group; The step of filtering resource information groups associated with the level configuration information from the resource information database according to the level configuration information includes: The grade configuration information is input into the trained decision tree model to determine each first resource associated with the grade configuration information. The first resource is the score calculated by the decision tree model based on the grade configuration information. And in parallel, the level configuration information is input into the trained Naive Bayes model to determine each second resource associated with the level configuration information, wherein the second resource is the score calculated by the Naive Bayes model based on the level configuration information; Based on each of the first resources and each of the second resources, multiple resource information items associated with each of the first resources or each of the second resources are selected from the resource information database to form the resource information group; The step of selecting multiple resource information items associated with each of the first resources or each of the second resources from the resource information database to form the resource information group includes: Sort the first and second resources from highest to lowest, and select the resource information of different information types with the highest scores to form a resource information group.
2. The advertising document generation method according to claim 1, characterized in that, Before filtering resource information groups associated with the level configuration information based on the level configuration information, the method further includes: Receive a target user selection operation, and select a target user group according to the selection operation; Based on the target user group, obtain the resource information database associated with the target user group.
3. The advertising document generation method according to claim 1, characterized in that, The resource information group includes material tags and target ad placement tags; The advertising file is generated based on the resource information group, including: Based on the material tags, obtain the corresponding material source, and each material source is associated with a unique target material; The ad file is generated based on the source material and the target ad placement tag, so that when an ad delivery request is received, the ad file is sent to the target ad placement corresponding to the target ad placement tag.
4. The advertising document generation method according to claim 3, characterized in that, After obtaining the corresponding source material, it also includes: Based on the source material, obtain the target material; Extract a preset image region from the target material image; Based on the target ad slot determined by the target ad slot label, the preset image area is scaled proportionally to update the target material.
5. The advertising document generation method according to claim 4, characterized in that, The step of extracting a preset image region from the target material includes: Obtain multiple aspect ratios of multiple preset regions of the source image, wherein the aspect ratios are formed by the length and width pixels of the preset regions; The preset region corresponding to the aspect ratio closest to the region among the plurality of aspect ratios is marked as the preset image region, wherein the aspect ratio of the region is formed according to the length and width attributes of the target advertisement position.
6. The advertising document generation method according to claim 4 or 5, characterized in that, The step of scaling the preset image area proportionally according to the target ad position and updating the target material includes: Image attributes that satisfy a preset marking strategy are marked in the long pixels and wide pixels of the preset image region, wherein the preset marking strategy includes marking the image attribute with the larger pixel value in the long pixels and wide pixels of the preset image region; Based on the labeled image attributes, the corresponding target basic attributes are obtained from multiple basic attributes of the target ad space, wherein the multiple basic attributes include the length attribute and the width attribute of the ad space, the length attribute corresponds to the long pixel, and the width attribute corresponds to the wide pixel; Based on the attribute ratio between the marked image attributes and the target basic attributes, the preset image area is scaled proportionally to update the target material.
7. The advertising document generation method according to claim 1, characterized in that, After filtering resource information groups associated with the level configuration information from the resource information database, the process further includes: Each resource information in the resource information group is displayed in its respective resource configuration slot on the page, wherein each resource information corresponds one-to-one with the resource configuration slot.
8. An advertising document generation device, characterized in that, include: The operation receiving module is used to receive level configuration operations for advertising files; A level determination module is used to determine level configuration information based on the level configuration operation, wherein the level configuration information is a score value; the step of determining the level configuration information based on the level configuration operation includes: obtaining the level configuration information from the configuration form of the level configuration position on the page based on the level configuration operation; or, obtaining the configuration value input by the level configuration operation from the level configuration position, and obtaining the level configuration information closest to the configuration value from the configuration form based on the configuration value; The configuration filtering module is used to filter resource information groups associated with the level configuration information from the resource information database according to the level configuration information. The information types of the resource information in the resource information group are different from each other. The information types contained in the resource information groups corresponding to different level configuration information are different. The information types include image type, network link type and text type. The file generation module is used to generate an advertising file based on the resource information group; The step of filtering resource information groups associated with the level configuration information from the resource information database according to the level configuration information includes: The grade configuration information is input into the trained decision tree model to determine each first resource associated with the grade configuration information. The first resource is the score calculated by the decision tree model based on the grade configuration information. And in parallel, the level configuration information is input into the trained Naive Bayes model to determine each second resource associated with the level configuration information, wherein the second resource is the score calculated by the Naive Bayes model based on the level configuration information; Based on each of the first resources and each of the second resources, multiple resource information items associated with each of the first resources or each of the second resources are selected from the resource information database to form the resource information group; The step of selecting multiple resource information items associated with each of the first resources or each of the second resources from the resource information database to form the resource information group includes: Sort the first and second resources from highest to lowest, and select the resource information of different information types with the highest scores to form a resource information group.
9. An electronic device, comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, when the processor executes the program, it implements the advertising file generation method as described in any one of claims 1 to 7.