Method and device for managing advertising resources
Generate advertising resources through configuration, use subject attribute description and condition attribute description to dynamic configuration fields, and use main tables and subtables to save advertising resources, solve the problems of universality, maintenance complexity and inefficiency in the existing technology of advertising resource management, which is a problem of inequality, maintenance complexity and query efficiency in the existing technology. , realizes efficient and flexible advertising resource management.
Patent Information
- Application Number
- CN201911185860.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-27
- Publication Date
- 2025-02-21
- Estimated Expiration
- 2039-11-27
AI Technical Summary
In the prior art, advertising resource management has problems such as inability to generalize, fixed number of fields, complex maintenance, and low efficiency in querying large data volumes.
Generate ad inventory through configuration, use subject attribute description and condition attribute description to dynamically configure fields, and use the main table and subtable to save ad inventory to achieve efficient query.
It realizes the universality and flexibility of advertising inventory management, simplifies the maintenance process, and improves the efficiency of large-data query.
Smart Images

Figure CN112862510B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of computer technology, and in particular to a method and device for managing advertising resources. Background Art
[0002] In the prior art, when designing advertisements, a new table structure is generally created based on the project requirements and the number of required fields defined in the page. Then, operators add, delete, modify, and query text and image resources, and enter them into the database to form advertising resources. Each advertising resource requires the creation of objects, definition of fields, and publishing of the system. The client requests the specified advertising resources for display.
[0003] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:
[0004] 1. It cannot be universal. The table structure must be created every time according to the project characteristics, which is labor-intensive and cumbersome;
[0005] 2. The number of fields is fixed. Every time the page floor display content is changed, the table structure needs to be changed, which makes maintenance complicated;
[0006] 3. When querying large amounts of data, the query efficiency is low. Summary of the invention
[0007] In view of this, the embodiments of the present invention provide a method and apparatus for managing advertising resources, which can generate various advertising resources required by configuration and are universal; fields can be dynamically configured for easy maintenance.
[0008] To achieve the above objective, according to one aspect of an embodiment of the present invention, a method for managing advertising resources is provided, comprising:
[0009] parsing a first resource pool identifier and advertisement data from a resource creation request;
[0010] Acquire a first subject attribute description and a first condition attribute description from a resource pool corresponding to the first resource pool identifier;
[0011] The advertisement data is verified based on the first subject attribute description and the first condition attribute description, and an advertisement resource is created when the verification passes.
[0012] Optionally, verifying the advertisement data based on the first subject attribute description and the first condition attribute description, and creating advertisement resources when the verification passes, includes:
[0013] It is determined whether the advertisement data contains the attribute value data of each attribute in the first subject attribute description and the first condition attribute description; if so, the verification is passed, and the advertisement resource is created according to the attribute value data of each attribute.
[0014] Optionally, creating the advertisement resource according to the attribute value data of each attribute includes:
[0015] Using the resource pool identifier as a key and basic attribute value data in the attribute value data of each attribute as a value, the basic attribute value data is saved in a main table;
[0016] The attribute value data of each attribute is saved in a subtable by using the resource pool identifier as a key and the remaining part of the attribute value data of each attribute as a value.
[0017] Optionally, the subtable includes: a general entity attribute field, a general condition attribute field and a dynamic field;
[0018] Taking the remaining part of the attribute value data of each attribute as the value, including: saving the attribute value data of the common entity attribute in the attribute value data of each attribute to the common entity attribute field, saving the attribute value data of the common condition attribute to the common condition attribute field, and saving the remaining attribute value data to the dynamic field.
[0019] Optionally, the method of the embodiment of the present invention further includes:
[0020] Parsing the user ID and the second resource pool ID from the resource query request;
[0021] Acquire a second condition attribute description from a resource pool corresponding to the second resource pool identifier;
[0022] Determining condition attribute data corresponding to the resource query request according to the user identifier and the second condition attribute description;
[0023] The target advertising resource is queried according to the conditional attribute data corresponding to the resource query request, and a response output is performed according to the target advertising resource.
[0024] Optionally, the resource pool further includes: an output attribute description;
[0025] Responding to the output according to the target advertising resources includes: querying a second output attribute description corresponding to a second resource pool identifier; the second output attribute description is used to indicate an attribute for output among various attributes of the target advertising resources; and determining and outputting the advertising resources for output according to the attribute for output and the target advertising resources.
[0026] Optionally, the second output attribute description is further used to indicate a mapping relationship between an attribute for output in the target advertisement resource and an actual output attribute;
[0027] After the advertisement resource for output is determined, the method further includes: replacing the attribute for output in the advertisement resource for output with the actual output attribute according to the mapping relationship.
[0028] According to a second aspect of an embodiment of the present invention, there is provided an apparatus for managing advertising resources, comprising: a resource pool management module and a data management module; wherein:
[0029] The resource pool management module is used to store each resource pool and its resource pool identifier; the resource pool includes: subject attribute description and condition attribute description;
[0030] The data management module is used to: parse the first resource pool identifier and advertisement data from a resource creation request; obtain the first subject attribute description and the first condition attribute description from the resource pool corresponding to the first resource pool identifier; verify the advertisement data based on the first subject attribute description and the first condition attribute description, and create advertisement resources when the verification passes.
[0031] Optionally, the data management module verifies the advertisement data based on the first subject attribute description and the first condition attribute description, and creates advertisement resources when the verification passes, including:
[0032] It is determined whether the advertisement data contains the attribute value data of each attribute in the first subject attribute description and the first condition attribute description; if so, the verification is passed, and the advertisement resource is created according to the attribute value data of each attribute.
[0033] Optionally, creating the advertisement resource according to the attribute value data of each attribute includes:
[0034] Using the resource pool identifier as a key and basic attribute value data in the attribute value data of each attribute as a value, the basic attribute value data is saved in a main table;
[0035] The attribute value data of each attribute is saved in a subtable by using the resource pool identifier as a key and the remaining part of the attribute value data of each attribute as a value.
[0036] Optionally, the subtable includes: a general entity attribute field, a general condition attribute field and a dynamic field;
[0037] The data management module uses the remaining part of the attribute value data of each attribute as the value, including: saving the attribute value data of the general entity attribute in the attribute value data of each attribute to the general entity attribute field, saving the attribute value data of the general condition attribute to the general condition attribute field, and saving the remaining attribute value data to the dynamic field.
[0038] Optionally, the device of the embodiment of the present invention further includes: a data query module and an output management module; wherein,
[0039] The data query module parses the user identifier and the second resource pool identifier from the resource query request; obtains a second condition attribute description from the resource pool corresponding to the second resource pool identifier; determines the condition attribute data corresponding to the resource query request according to the user identifier and the second condition attribute description; and queries the target advertising resource according to the condition attribute data corresponding to the resource query request;
[0040] The output management module is used to: perform response output according to the target advertisement resources.
[0041] Optionally, the resource pool further includes: an output attribute description;
[0042] The output management module performs a response output according to the target advertising resources, including: querying a second output attribute description corresponding to a second resource pool identifier; the second output attribute description is used to indicate an attribute for output among various attributes of the target advertising resources; and determining and outputting the advertising resources for output according to the attribute for output and the target advertising resources.
[0043] Optionally, the second output attribute description is further used to indicate a mapping relationship between an attribute for output in the target advertisement resource and an actual output attribute;
[0044] After the output management module determines the advertisement resource for output, the method further includes: replacing the attribute for output in the advertisement resource for output with the actual output attribute according to the mapping relationship.
[0045] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for managing advertising resources, including:
[0046] one or more processors;
[0047] a storage device for storing one or more programs,
[0048] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0049] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0050] One embodiment of the above invention has the following advantages or beneficial effects:
[0051] (1) By configuring the subject attribute description and condition attribute description of each resource and creating advertising resources according to the subject attribute description and condition attribute description, various advertising resources required can be generated through configuration, which is universal; each attribute field corresponding to the subject attribute description and condition attribute description can be dynamically configured, which is easy to maintain;
[0052] (2) The main table and sub-table method is used to store advertising resources, which can achieve efficient and fast query in the case of large amounts of data, thereby improving query efficiency. The scheme of dynamically saving data in the main table and sub-table facilitates the dynamic addition of entity attribute fields and condition attribute fields, solving the problem of dynamically adding data such as copywriting and pictures;
[0053] (3) The attribute value data of the general attribute is saved in the corresponding general field, and the remaining attribute value data is saved in the dynamic field, so that when a new attribute is added, the attribute value data corresponding to the new attribute is saved in the dynamic field, which facilitates the implementation of attribute expansion;
[0054] (4) Determining the advertising resources for output according to the output attribute description can implement constraints on the output fields; converting the attribute value data for output according to the output attribute description can apply the advertising resources to various business scenarios, which is universal.
[0055] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS
[0056] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.
[0057] Figure 1 is a schematic diagram of the main process of the method for advertising resource management according to an embodiment of the present invention;
[0058] Figure 2 is a schematic diagram of an advertising resource query method in an embodiment of the present invention;
[0059] Figure 3 is a schematic diagram of main modules of an apparatus for advertising resource management according to an embodiment of the present invention;
[0060] Figure 4 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;
[0061] Figure 5 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION
[0062] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0063] According to one aspect of an embodiment of the present invention, a method for managing advertising resources is provided.
[0064] Figure 1 FIG. 1 is a schematic diagram of the main process of the method for managing advertising resources according to an embodiment of the present invention. Figure 1 As shown, the method for managing advertising resources includes: step S101, step S102 and step S103.
[0065] Step S101: Parse a first resource pool identifier and advertisement data from a resource creation request.
[0066] The resource pool identifier is used to uniquely identify a resource pool. Advertisement data refers to the data entered by the user to create advertisement resources, such as pictures, texts, links, etc.
[0067] Step S102: Acquire a first subject attribute description and a first condition attribute description from a resource pool corresponding to a first resource pool identifier.
[0068] The present invention pre-configures resource pools, and each resource pool corresponds to a type of advertising resources. The subject attribute description and condition attribute description are configured in the resource pool to indicate the attributes that the corresponding type of advertising resources should contain. Among them, the subject attribute description is used to indicate the content that needs to be displayed in the advertising page, such as the advertising title, picture, text, etc. The condition attribute description is used to indicate the requirements for the conditions that the advertising object should meet, such as the requirements for the geographical area where the advertising object is located, the points value requirements, etc. The subject attribute description and condition attribute description clearly specify which attributes and query conditions the advertising resources support.
[0069] Step S103: verify the advertisement data based on the first subject attribute description and the first condition attribute description, and create advertisement resources if the verification passes.
[0070] The advertisement data is verified based on the first subject attribute description and the first condition attribute description, mainly for the purpose of verifying whether the advertisement data contains data for creating advertisement resources. If so, the verification passes; otherwise, the verification fails.
[0071] Optionally, verifying the advertisement data based on the first subject attribute description and the first condition attribute description, and creating advertisement resources when the verification passes, includes: determining whether the advertisement data contains attribute value data of each attribute in the first subject attribute description and the first condition attribute description; if so, the verification passes, and creating the advertisement resources according to the attribute value data of each attribute. This step will filter out redundant data in the advertisement data, that is, data other than the entity attribute value data and the condition attribute value data in the advertisement data.
[0072] Exemplarily, the subject attribute description includes three attributes, namely subject attribute 1, subject attribute 2 and subject attribute 3, and the condition attribute description includes two attributes, namely condition attribute 1 and condition attribute 2. When verifying the advertising data, it is necessary to determine whether the advertising data contains the attribute value data of the five attributes of subject attribute 1, subject attribute 2, subject attribute 3, condition attribute 1 and condition attribute 2. If it does, the verification passes; otherwise, the verification fails. When adding, deleting, modifying, and other change operations are performed on existing advertising resources, if the verification fails, the existing advertising resources can be saved through a rollback operation to maintain the atomicity of data operations and data consistency.
[0073] By configuring the subject attribute description and condition attribute description of each advertising resource and creating advertising resources according to the subject attribute description and condition attribute description, various advertising resources required can be generated through configuration, which is universal; each attribute field corresponding to the subject attribute description and condition attribute description can be dynamically configured for easy maintenance.
[0074] After creating advertising resources, you can synchronize and store them in the ES (ElasticSearch, a search server based on Lucene) database for subsequent queries. Based on the powerful query statistics characteristics of ES, you can implement multi-condition combination query, aggregate ranking summary, etc., to solve multi-condition data query and data ranking problems.
[0075] Optionally, the advertising resources are created according to the attribute value data of each attribute, including: using the resource pool identifier as the key and the basic attribute value data in the attribute value data of each attribute as the value, saving the basic attribute value data in the main table; using the resource pool identifier as the key and the remaining part of the attribute value data of each attribute as the value, saving the attribute value data of each attribute in the sub-table.
[0076] Basic attribute value data refers to the basic information of advertising resources. Through basic attribute value data, effective data can be quickly obtained and located. Taking product promotion advertisements as an example, basic attribute value data can be the title, validity period, start time, end time, etc. of the promotion advertisement.
[0077] The main table and sub-table method is used to save advertising resources, which can achieve efficient and fast query in the case of large amounts of data, thereby improving query efficiency. The solution of dynamically saving data in the main table and sub-table facilitates the dynamic addition of entity attribute fields and conditional attribute fields, solving the problem of dynamically adding data such as copywriting and pictures.
[0078] Optionally, the subtable includes: a general entity attribute field, a general condition attribute field and a dynamic field; taking the remaining part of the attribute value data of each attribute as the value, including: saving the attribute value data of the general entity attribute in the attribute value data of each attribute to the general entity attribute field, saving the attribute value data of the general condition attribute to the general condition attribute field, and saving the remaining attribute value data to the dynamic field.
[0079] Universal fields refer to fixed fields, such as fields required for the same type of advertisement in different application scenarios. Universal entity attribute fields refer to fixed entity attribute fields, and universal condition attribute fields refer to fixed condition attribute fields. Dynamic fields refer to fields that can be changed dynamically, such as fields that can be deleted or newly added. Advertising resources can be stored in a relational database, and dynamically stored entity attribute value data and condition attribute value data are stored in one table.
[0080] The attribute value data of the general attributes are saved in the corresponding general fields, and the remaining attribute value data are saved in the dynamic fields. When a new attribute is added, the attribute value data corresponding to the new attribute is saved in the dynamic field, which solves the problem of dynamically adding attributes of advertising resources and facilitates the implementation of attribute expansion.
[0081] After creating advertising resources, you can synchronize and store them in the ES database for subsequent queries. Dynamic fields are stored in ES. For general entity attribute fields and general condition attribute fields, the index type is defined through clear fields; for dynamic fields, they can be saved as object formats through the nest field type in ES. When adding new condition attributes to the resource pool, you can rebuild the index through ES, which supports expansion.
[0082] The advertising resource management method of the embodiment of the present invention may also include an advertising resource query method. Figure 2 is a schematic diagram of an advertising resource query method in an embodiment of the present invention. Figure 2 As shown, including:
[0083] Step S201, parsing a user identifier and a second resource pool identifier from a resource query request;
[0084] Step S202: Obtain a second condition attribute description from a resource pool corresponding to the second resource pool identifier;
[0085] Step S203: determining condition attribute data corresponding to the resource query request according to the user identifier and the second condition attribute description;
[0086] Step S204: query the target advertising resources according to the condition attribute data corresponding to the resource query request, and output a response according to the target advertising resources.
[0087] Exemplarily, a user identification PIN (Personal Identification Number, personal identification password) and a second resource pool identifier poolCode are parsed from a resource query request; a second conditional attribute description, which is a user's Beijing-shared value and a user's geographical area, is obtained from a resource pool corresponding to the second resource pool identifier poolCode; based on the user identification PIN, the user's Beijing-shared value userscore and the user's geographical area userzone, conditional attribute data corresponding to the resource query request is determined, which is: the user's Beijing-shared value userscore is 450, and the user's geographical area userzone is 112 (112 is a code for a geographical area); the advertising resources corresponding to the user's Beijing-shared value userscore of 450 and the user's geographical area userzone of 112 are queried as target advertising resources, and a response output is performed according to the target advertising resources.
[0088] Optionally, the resource pool also includes: an output attribute description; a response output according to the target advertising resources, including: querying a second output attribute description corresponding to a second resource pool identifier; the second output attribute description is used to indicate the attributes used for output among the various attributes of the target advertising resources; and determining and outputting the advertising resources used for output according to the attributes used for output and the target advertising resources.
[0089] The output attribute field controls which fields are output. Exemplarily, the target advertising resource includes five attributes, and the corresponding attribute value data are: userscore is 100-500, userzone is 112, 233, title (i.e., advertising title) is "National Day Promotion", subTitle (subtitle) is "Buy One Get One Free", and linkUrl (link address) is "ABCD". The second output attribute description is: title→showName, subTitle→subTitle, linkUrl→linkUrl. When determining the advertising resources for output, the userscore and userzone fields in the target resources are filtered out. Determining the advertising resources for output based on the output attribute description can implement constraints on the output fields. In this example, there are no constraints on the attribute fields in the resource pool, and users can configure and add, delete, and modify them according to actual conditions, but there are constraints on the output fields, which can solve the problem of unconstrained dynamic fields.
[0090] Optionally, the second output attribute description is also used to indicate the mapping relationship between the attributes for output in the target advertising resource and the actual output attributes; after determining the advertising resource for output, it also includes: according to the mapping relationship, replacing the attributes for output in the advertising resource for output with the actual output attributes.
[0091] Exemplarily, the target advertising resource includes five attributes, and the corresponding attribute value data are: userscore is 100-500, userzone is 112, 233, title is "National Day Promotion", subTitle is "Buy One Get One Free", and linkUrl is "ABCD". The second output attribute description is: title→showName, subTitle→subTitle, linkUrl→linkUrl. When determining the advertising resources for output, the userscore and userzone fields in the target resources are filtered out, and then the title in the target advertising resources is replaced with showName, subTitle is replaced with subTitle, and linkUrl is replaced with linkUrl, and then the advertising resources after such processing are output. By converting the attribute value data for output according to the output attribute description, the advertising resources can be applied to various business scenarios, which is universal.
[0092] The present invention controls query data by describing entity attributes, condition attributes and output attributes, and can control dynamic data in the whole process to ensure the validity of data. In addition, the present invention can realize synchronization and query acquisition of entity attributes and condition attributes of multiple conditions.
[0093] According to a second aspect of an embodiment of the present invention, a device for implementing the above method is provided.
[0094] like Figure 3 As shown, the device 300 for managing advertising resources includes: a resource pool management module 301 and a data management module 302; wherein,
[0095] The resource pool management module 301 is used to store each resource pool and its resource pool identifier; the resource pool includes: subject attribute description and condition attribute description;
[0096] The data management module 302 is used to: parse the first resource pool identifier and advertisement data from the resource creation request; obtain the first subject attribute description and the first condition attribute description from the resource pool corresponding to the first resource pool identifier; verify the advertisement data based on the first subject attribute description and the first condition attribute description, and create advertisement resources when the verification passes.
[0097] Optionally, the data management module verifies the advertisement data based on the first subject attribute description and the first condition attribute description, and creates advertisement resources when the verification passes, including:
[0098] It is determined whether the advertisement data contains the attribute value data of each attribute in the first subject attribute description and the first condition attribute description; if so, the verification is passed, and the advertisement resource is created according to the attribute value data of each attribute.
[0099] Optionally, creating the advertising resource according to the attribute value data of each attribute includes:
[0100] Using the resource pool identifier as a key and basic attribute value data in the attribute value data of each attribute as a value, the basic attribute value data is saved in a main table;
[0101] The attribute value data of each attribute is saved in a subtable by using the resource pool identifier as a key and the remaining part of the attribute value data of each attribute as a value.
[0102] Optionally, the subtable includes: a general entity attribute field, a general condition attribute field and a dynamic field;
[0103] The data management module uses the remaining part of the attribute value data of each attribute as the value, including: saving the attribute value data of the general entity attribute in the attribute value data of each attribute to the general entity attribute field, saving the attribute value data of the general condition attribute to the general condition attribute field, and saving the remaining attribute value data to the dynamic field.
[0104] Optionally, the device of the embodiment of the present invention further includes: a data query module 303 and an output management module 304; wherein,
[0105] The data query module 303 parses the user identifier and the second resource pool identifier from the resource query request; obtains the second condition attribute description from the resource pool corresponding to the second resource pool identifier; determines the condition attribute data corresponding to the resource query request according to the user identifier and the second condition attribute description; queries the target advertising resource according to the condition attribute data corresponding to the resource query request;
[0106] The output management module 304 is used to: perform response output according to the target advertisement resources.
[0107] Optionally, the resource pool further includes: an output attribute description;
[0108] The output management module performs a response output according to the target advertising resources, including: querying a second output attribute description corresponding to a second resource pool identifier; the second output attribute description is used to indicate an attribute for output among various attributes of the target advertising resources; and determining and outputting the advertising resources for output according to the attribute for output and the target advertising resources.
[0109] Optionally, the second output attribute description is further used to indicate a mapping relationship between an attribute for output in the target advertisement resource and an actual output attribute;
[0110] After the output management module determines the advertisement resource for output, the method further includes: replacing the attribute for output in the advertisement resource for output with the actual output attribute according to the mapping relationship.
[0111] According to a third aspect of an embodiment of the present invention, there is provided an electronic device for managing advertising resources, including:
[0112] one or more processors;
[0113] a storage device for storing one or more programs,
[0114] When the one or more programs are executed by the one or more processors, the one or more processors implement the method provided in the first aspect of the embodiment of the present invention.
[0115] According to a fourth aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the method provided by the first aspect of the embodiment of the present invention is implemented.
[0116] Figure 4An exemplary system architecture 400 is shown to which the method or apparatus for advertising resource management according to an embodiment of the present invention may be applied.
[0117] like Figure 4 As shown, system architecture 400 may include terminal devices 401, 402, 403, network 404 and server 405. Network 404 is used to provide a medium for communication links between terminal devices 401, 402, 403 and server 405. Network 404 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0118] Users can use terminal devices 401, 402, 403 to interact with server 405 through network 404 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 401, 402, 403, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only as examples).
[0119] The terminal devices 401 , 402 , and 403 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, and desktop computers.
[0120] The server 405 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 401, 402, and 403. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.
[0121] It should be noted that the method for managing advertising resources provided in the embodiment of the present invention is generally executed by the server 405 , and accordingly, the device for managing advertising resources is generally disposed in the server 405 .
[0122] It should be understood that Figure 4 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.
[0123] Reference below Figure 5 , which shows a schematic diagram of the structure of a computer system 500 of a terminal device suitable for implementing an embodiment of the present invention. Figure 5 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0124] like Figure 5As shown, the computer system 500 includes a central processing unit (CPU) 501, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 502 or a program loaded from a storage part 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the system 500 are also stored. The CPU 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0125] The following components are connected to the I / O interface 505: an input section 506 including a keyboard, a mouse, etc.; an output section 507 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 508 including a hard disk, etc.; and a communication section 509 including a network interface card such as a LAN card, a modem, etc. The communication section 509 performs communication processing via a network such as the Internet. A drive 510 is also connected to the I / O interface 505 as needed. A removable medium 511, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 510 as needed, so that a computer program read therefrom is installed into the storage section 508 as needed.
[0126] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 509, and / or installed from the removable medium 511. When the computer program is executed by the central processing unit (CPU) 501, the above-mentioned functions defined in the system of the present invention are executed.
[0127] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0128] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0129] The modules involved in the embodiments of the present invention may be implemented in software or hardware. The modules described may also be set in a processor, for example, may be described as: a processor including: a resource pool management module and a data management module; wherein the resource pool management module is used to save each resource pool and its resource pool identifier; the resource pool includes: a subject attribute description and a condition attribute description; the data management module is used to: parse the first resource pool identifier and the advertisement data from the resource creation request; obtain the first subject attribute description and the first condition attribute description from the resource pool corresponding to the first resource pool identifier; verify the advertisement data based on the first subject attribute description and the first condition attribute description, and create advertisement resources when the verification passes. The names of these modules do not constitute a limitation on the modules themselves in some cases, for example, the resource pool management module may also be described as "a module for verifying the advertisement data based on the first subject attribute description and the first condition attribute description".
[0130] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: parsing a first resource pool identifier and advertisement data from a resource creation request; obtaining a first subject attribute description and a first condition attribute description from a resource pool corresponding to the first resource pool identifier; verifying the advertisement data based on the first subject attribute description and the first condition attribute description, and creating advertisement resources when the verification passes.
[0131] The technical solution according to the embodiment of the present invention has the following beneficial effects:
[0132] (1) By configuring the subject attribute description and condition attribute description of each resource and creating advertising resources according to the subject attribute description and condition attribute description, various advertising resources required can be generated through configuration, which is universal; each attribute field corresponding to the subject attribute description and condition attribute description can be dynamically configured, which is easy to maintain;
[0133] (2) The main table and sub-table method is used to store advertising resources, which can achieve efficient and fast query in the case of large amounts of data, thereby improving query efficiency. The scheme of dynamically saving data in the main table and sub-table facilitates the dynamic addition of entity attribute fields and condition attribute fields, solving the problem of dynamically adding data such as copywriting and pictures;
[0134] (3) The attribute value data of the general attribute is saved in the corresponding general field, and the remaining attribute value data is saved in the dynamic field, so that when a new attribute is added, the attribute value data corresponding to the new attribute is saved in the dynamic field, which facilitates the implementation of attribute expansion;
[0135] (4) Determining the advertising resources for output according to the output attribute description can implement constraints on the output fields; converting the attribute value data for output according to the output attribute description can apply the advertising resources to various business scenarios, which is universal.
[0136] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A method for advertising resource management, characterized in that: include: parsing a first resource pool identifier and advertisement data from a resource creation request; The advertisement data is data used to create advertisement resources; Acquire a first subject attribute description and a first condition attribute description from a resource pool corresponding to the first resource pool identifier; Determine whether the advertisement data contains the attribute value data of each attribute in the first subject attribute description and the first condition attribute description; if so, the verification is passed, and the basic attribute value data in the attribute value data of each attribute is saved in the main table by using the resource pool identifier as the key and the basic attribute value data in the attribute value data of each attribute as the value; Using the resource pool identifier as a key and the remaining part of the attribute value data of each attribute as a value, the attribute value data of each attribute is saved in a subtable; wherein the subtable includes: a general entity attribute field, a general condition attribute field and a dynamic field; using the remaining part of the attribute value data of each attribute as a value, including: saving the attribute value data of the general entity attribute in the general entity attribute field, saving the attribute value data of the general condition attribute in the general condition attribute field, and saving the remaining attribute value data in the dynamic field, so as to create advertising resources.
2. The method according to claim 1, characterized in that Also includes: Parsing the user ID and the second resource pool ID from the resource query request; Acquire a second condition attribute description from a resource pool corresponding to the second resource pool identifier; Determining condition attribute data corresponding to the resource query request according to the user identifier and the second condition attribute description; The target advertising resource is queried according to the conditional attribute data corresponding to the resource query request, and a response output is performed according to the target advertising resource.
3. The method according to claim 2, characterized in that The resource pool also includes: output attribute description; Responding to the output according to the target advertising resources includes: querying a second output attribute description corresponding to a second resource pool identifier; the second output attribute description is used to indicate an attribute for output among various attributes of the target advertising resources; and determining and outputting the advertising resources for output according to the attribute for output and the target advertising resources.
4. The method according to claim 3, characterized in that The second output attribute description is further used to indicate a mapping relationship between an attribute for output in the target advertisement resource and an actual output attribute; After the advertisement resource for output is determined, the method further includes: replacing the attribute for output in the advertisement resource for output with the actual output attribute according to the mapping relationship.
5. An advertising resource management device, characterized in that: include: Resource pool management module and data management module; wherein, The resource pool management module is used to store each resource pool and its resource pool identifier; the resource pool includes: subject attribute description and condition attribute description; The data management module is used to: parse the first resource pool identifier and advertisement data from the resource creation request; the advertisement data is data used to create advertisement resources; obtain the first main attribute description and the first condition attribute description from the resource pool corresponding to the first resource pool identifier; determine whether the advertisement data contains the attribute value data of each attribute in the first main attribute description and the first condition attribute description; if so, the verification is passed, and the basic attribute value data in the attribute value data of each attribute is saved in the main table with the resource pool identifier as the key and the basic attribute value data in the attribute value data of each attribute as the value; the attribute value data of each attribute is saved in the sub-table with the resource pool identifier as the key and the remaining part of the attribute value data of each attribute as the value; wherein the sub-table includes: a general entity attribute field, a general condition attribute field and a dynamic field; using the remaining part of the attribute value data of each attribute as the value, including: saving the attribute value data of the general entity attribute in the attribute value data of each attribute to the general entity attribute field, saving the attribute value data of the general condition attribute to the general condition attribute field, and saving the remaining attribute value data to the dynamic field, so as to create advertisement resources.
6. An electronic device for advertising resource management, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 4.
7. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 4 is implemented.
Citation Information
Patent Citations
Advertising push method, server and system
CN106326460A
Information synchronization method and device for configuring server
CN110113176A