Advertisement data acquisition method, device, equipment and storage medium
By using dynamic libraries in user devices to connect to third-party advertising platforms, the problem of low interface reusability when the Internet advertising system is connected to third-party advertising platforms is solved, achieving seamless connection and reducing the risk of failure.
Patent Information
- Application Number
- CN202110722316.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-28
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-06-28
AI Technical Summary
When existing Internet advertising systems are connected to third-party advertising platforms, data interfaces need to be frequently developed and updated, resulting in low reusability of the interfaces, increased consumption of manpower and material resources, and increased risk of online failures.
By using the preset configuration table in the user device to call the dynamic library and data interface of the third-party advertising platform, the format of the advertising request data is converted, and the data interface of the third-party advertising platform is seamlessly connected, and the interface of other advertising platforms is avoided. cause impact.
It achieves the reusability of the advertising data interface, reduces the number of development and releases, reduces the risk of failure, and improves the docking efficiency and stability.
Smart Images

Figure CN113469740B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing, and in particular to an advertisement data acquisition method, device, equipment and storage medium. Background Art
[0002] When the existing Internet advertising system is connected to a third-party advertising platform, the interface for connecting to the third-party advertising platform is newly developed. This is because the interface between the Internet advertising system and each third-party advertising platform is different, resulting in different interface protocols between systems. Therefore, each time a new third-party advertising platform is connected, a new data interface must be redeveloped according to the interface protocol of the third-party advertising platform.
[0003] In this way, data connection is performed, and the Internet advertising system needs to be developed and released as many times as it connects with the third-party advertising platform. If the version update of a third-party advertising platform affects the data interface, the data interface must also be developed, updated, and released accordingly. Every time an interface is developed or updated, it will have an impact on the historical interface, and sometimes it will cause the previous interface to be abnormal and cause failures. Every time the interface is updated, the tester needs to perform regression testing. The previous interface, the current interface, and the affected areas need regression testing, which not only consumes a lot of manpower and material resources, but also increases the risk of online failures. Summary of the invention
[0004] The main purpose of the present invention is to solve the technical problem of low reusability of the data interface for docking the existing Internet advertising system to obtain advertisements from the third-party advertising platform.
[0005] A first aspect of the present invention provides an advertising data acquisition method, comprising: receiving an advertising acquisition request issued by a user device, wherein the advertising acquisition request includes advertising request data; calling a dynamic library and a data interface corresponding to a currently connected third-party advertising platform from a preset configuration table according to the advertising acquisition request; performing format conversion on the advertising request data through the dynamic library to obtain third-party advertising platform data that can be recognized by the third-party advertising platform; sending the third-party advertising platform data to the third-party advertising platform through the data interface; receiving response data returned by the third-party advertising platform through the data interface and performing format conversion on the response data through the dynamic library to obtain unified advertising data; sending the unified advertising data to the user device, and controlling the user device to play the corresponding advertisement according to the unified advertising data.
[0006] Optionally, in a first implementation method of the first aspect of the present invention, the format conversion of the advertisement request data through the dynamic library to obtain third-party advertisement platform data recognizable by the third-party advertisement platform includes: generating a function call request according to the request type of the advertisement acquisition request, wherein the function call request includes function call parameters; calling the function corresponding to the advertisement acquisition request in the dynamic library according to the function call parameters; and executing the function to convert the advertisement request data into third-party advertisement platform data.
[0007] Optionally, in a second implementation method of the first aspect of the present invention, the function includes a conversion function, and the function calling parameters include a function name; calling the function corresponding to the advertisement acquisition request in the dynamic library according to the function calling parameters includes: obtaining a function type pointer corresponding to the conversion function from a preset function name mapping table according to the function name; determining an address of the conversion function in the dynamic library according to the function type pointer; and calling the conversion function in the dynamic library according to the address.
[0008] Optionally, in a third implementation method of the first aspect of the present invention, executing the function to convert the advertising request data into third-party advertising platform data includes: determining a first data format corresponding to a currently connected third-party advertising platform; parsing the advertising request data to obtain a second data format corresponding to the advertising request data; determining a corresponding converter based on the first data format and the second data format; and inputting the advertising request data into the converter to obtain third-party advertising platform data.
[0009] Optionally, in a fourth implementation method of the first aspect of the present invention, before executing the function to convert the advertising request data into third-party advertising platform data, it also includes: determining the data format of the advertising request data and the data format of the third advertising platform data; if the data format of the advertising request data is the same as the data format of the third advertising platform data, the function is not executed.
[0010] Optionally, in the fifth implementation method of the first aspect of the present invention, before the receiving of the advertising request issued by the user device, it also includes: obtaining an advertising platform configuration request, and parsing the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform; if the request category is adding a docking platform, obtaining a description file of the third-party advertising platform to be added, and generating a dynamic library to be added according to the description file; storing the dynamic library to be added and the dynamic library to be added and the third-party advertising platform to be added in a preset configuration table; if the request category is deleting the docking platform, determining the third-party advertising platform to be deleted and the corresponding dynamic library, and deleting the third-party advertising platform to be deleted and the corresponding dynamic library from the configuration table.
[0011] Optionally, in a sixth implementation method of the first aspect of the present invention, it is characterized in that obtaining the description file of the third-party advertising platform to be added, and generating the dynamic library of the third-party advertising platform to be added according to the description file includes: obtaining the description file of the third-party advertising platform to be added; performing syntax parsing on the description file to obtain the source code file of the rule file; and compiling the source code file into a corresponding dynamic library through a preset compilation engine.
[0012] The second aspect of the present invention provides an advertising data acquisition device, comprising: a receiving module, used to receive an advertising acquisition request issued by a user device, wherein the advertising acquisition request includes advertising request data; a calling module, used to call the dynamic library and data interface corresponding to the currently connected third-party advertising platform from a preset configuration table according to the advertising acquisition request; a first conversion module, used to convert the format of the advertising request data through the dynamic library to obtain third-party advertising platform data that can be recognized by the third-party advertising platform; a sending module, used to send the third-party advertising platform data to the third-party advertising platform through the data interface; a second conversion module, used to receive the response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data; a control playback module, used to send the unified advertising data to the user device, and control the user device to play the corresponding advertisement according to the unified advertising data.
[0013] Optionally, in a first implementation method of the second aspect of the present invention, the first conversion module specifically includes: a request generation unit, used to generate a function call request according to the request type of the advertising acquisition request, wherein the function call request includes function call parameters; a function call unit, used to call the function corresponding to the advertising acquisition request in the dynamic library according to the function call parameters; and a function execution unit, used to execute the function and convert the advertising request data into third-party advertising platform data.
[0014] Optionally, in a second implementation method of the second aspect of the present invention, the function includes a conversion function, the function calling parameter includes a function name, and the function calling unit is specifically used to: obtain a function type pointer corresponding to the conversion function from a preset function name mapping table according to the function name; determine an address of the conversion function in the dynamic library according to the function type pointer; and call the conversion function in the dynamic library according to the address.
[0015] Optionally, in a third implementation method of the second aspect of the present invention, the function execution unit is specifically used to: determine a first data format corresponding to a currently connected third-party advertising platform; parse the advertising request data to obtain a second data format corresponding to the advertising request data; determine a corresponding converter based on the first data format and the second data format; input the advertising request data into the converter to obtain third-party advertising platform data.
[0016] Optionally, in a fourth implementation method of the second aspect of the present invention, the advertising data acquisition device also includes a function non-execution module, and the conversion unit is specifically used to: determine the data format of the advertising request data and the data format of the third advertising platform data; if the data format of the advertising request data is the same as the data format of the third advertising platform data, then the function is not executed.
[0017] Optionally, in a fifth implementation of the second aspect of the present invention, the advertising data acquisition device also includes a configuration module, which is specifically used to: obtain an advertising platform configuration request, and parse the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform; if the request category is adding a docking platform, obtain a description file of the third-party advertising platform to be added, and generate a dynamic library to be added according to the description file; store the dynamic library to be added and the third-party advertising platform to be added in a preset configuration table; if the request category is deleting the docking platform, determine the third-party advertising platform to be deleted and the corresponding dynamic library, and delete the third-party advertising platform to be deleted and the corresponding dynamic library from the configuration table.
[0018] Optionally, in the sixth implementation method of the second aspect of the present invention, the configuration module is specifically used to: obtain a description file of the third-party advertising platform to be added; perform syntax parsing on the description file to obtain a source code file of the rule file; and compile the source code file into a corresponding dynamic library through a preset compilation engine.
[0019] The third aspect of the present invention provides an advertising data acquisition device, comprising: a memory and at least one processor, wherein instructions are stored in the memory, and the memory and the at least one processor are interconnected via lines; the at least one processor calls the instructions in the memory so that the advertising data acquisition device executes the steps of the above-mentioned advertising data acquisition method.
[0020] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the steps of the above-mentioned method for acquiring advertising data.
[0021] In the technical solution of the present invention, an advertisement acquisition request sent by a user device is received, wherein the advertisement acquisition request includes advertisement request data; according to the advertisement acquisition request, a dynamic library and a data interface corresponding to the currently connected third-party advertising platform are called from a preset configuration table; the advertisement request data is formatted through the dynamic library to obtain third-party advertising platform data that can be recognized by the third-party advertising platform; the third-party advertising platform data is sent to the third-party advertising platform through the data interface; the response data returned by the third-party advertising platform is received through the data interface and the response data is formatted through the dynamic library to obtain unified advertising data; the unified advertising data is sent to the user device, and the user device is controlled to play the corresponding advertisement according to the unified advertising data. The present invention develops a dynamic library for a newly added third-party advertising platform, and in the process of the user device acquiring advertisements, the format conversion can be performed through the dynamic library. At the same time, the development of the dynamic library can avoid affecting the data interfaces of other advertising platforms when connecting to a new third-party advertising platform, and does not need to be released online, seamlessly docking, reducing failures and risks. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] Figure 1 This is a schematic diagram of a first embodiment of a method for acquiring advertisement data in an embodiment of the present invention;
[0023] Figure 2 It is a schematic diagram of a second embodiment of the method for acquiring advertisement data in an embodiment of the present invention;
[0024] Figure 3 Schematic diagram of a third embodiment of the method for acquiring advertisement data in an embodiment of the present invention;
[0025] Figure 4 Schematic diagram of a fourth embodiment of the method for acquiring advertisement data in an embodiment of the present invention;
[0026] Figure 5 Schematic diagram of a fifth embodiment of the method for acquiring advertisement data in an embodiment of the present invention;
[0027] Figure 6 A schematic diagram of an embodiment of an advertisement data acquisition device in an embodiment of the present invention;
[0028] Figure 7 It is a schematic diagram of another embodiment of the device for acquiring advertisement data in an embodiment of the present invention;
[0029] Figure 8 It is a schematic diagram of an embodiment of an advertisement data acquisition device in an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In the technical solution of the present invention, an advertisement acquisition request sent by a user device is received, wherein the advertisement acquisition request includes advertisement request data; according to the advertisement acquisition request, a dynamic library and a data interface corresponding to the currently connected third-party advertising platform are called from a preset configuration table; the advertisement request data is formatted through the dynamic library to obtain third-party advertising platform data that can be recognized by the third-party advertising platform; the third-party advertising platform data is sent to the third-party advertising platform through the data interface; the response data returned by the third-party advertising platform is received through the data interface and the response data is formatted through the dynamic library to obtain unified advertising data; the unified advertising data is sent to the user device, and the user device is controlled to play the corresponding advertisement according to the unified advertising data. The present invention develops a dynamic library for a newly added third-party advertising platform, and in the process of the user device acquiring advertisements, the format conversion can be performed through the dynamic library. At the same time, the development of the dynamic library can avoid affecting the data interfaces of other advertising platforms when connecting to a new third-party advertising platform, and does not need to be released online, seamlessly docking, reducing failures and risks.
[0031] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 The first embodiment of the method for acquiring advertisement data in the embodiment of the present invention includes:
[0033] 101. Receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0034] It is understandable that the execution subject of the present invention may be an advertisement data acquisition device, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject.
[0035] It should be emphasized that in order to ensure the privacy and security of data, the above-mentioned dynamic library can be stored in a node of a blockchain.
[0036] In actual applications, the Internet advertising system is connected to a third-party advertising platform, and the advertisements of the third-party advertising platform are delivered on multiple platforms, and the advertisements are delivered to the connected user devices. The user device can be a smart phone, a TV, or a computer. The user device sends an advertisement acquisition request to the Internet advertising system according to different device types and application scenarios. For example, when the user device is a smart phone, when the user uses the smart phone to access a video website connected to the Internet advertising system, or when the user watches a video on the video website for a certain period of time, an advertisement acquisition request is sent to the Internet advertising system. If the user device is a TV, the trigger condition for sending the advertisement acquisition request can be set to when the TV is turned on, the Internet advertising system user device's advertisement acquisition request obtains the advertisement from the connected third-party advertising platform and delivers it.
[0037] In this embodiment, the advertising request data mainly includes user device information, request ID, advertising slot code, advertising slot type, advertising display conditions, user regional information, etc., wherein the user device information includes the device type, device ID, device width, device height, device longitude and latitude of the user device, etc., the user device types include smart phones, TVs, and computers, the request ID is mainly the user device ID, the Internet system locates the device according to the user device ID and delivers advertisements, the advertising slot types mainly include banner ads, text link ads, native information streams, interstitial ads, short video ads, etc., the advertising slot code, the advertising slot code includes five types of advertising slot code methods: one-stage, two-stage, two-stage-batch, asynchronous, and iframe, the advertising display conditions are mainly to screen the advertisements of the third-party advertising platform, and the advertisements that meet the conditions can be displayed, the user regional information is mainly the user's geographical information, the advertisements required to be delivered to users in different locations are different, and the third-party advertising platform is screened according to the user's regional information.
[0038] 102. According to the advertisement acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from the preset configuration table;
[0039] In this embodiment, before the Internet advertising system connects with the third-party advertising system, it determines the interface standard of the data interface. After generating the data interface, it makes the data interface with each third-party advertising platform into a dynamic library, wherein the interface standard mainly includes the interface standard for sending advertising request data and the interface standard for receiving advertising response data. The dynamic library refers to the dynamic link library. The dynamic links in the dynamic library can enable the process to call functions that do not belong to its executable code. The executable files of these codes are located in a DLL file, which contains one or more functions that have been compiled, linked and stored separately from the processes that use them. These functions can meet various functions on the data interface. In this embodiment, they are mainly format conversion functions.
[0040] In this embodiment, after the staff of the Internet advertising system learns the functions of the functions in the data interface, they design the code, input the code into the compiler for compilation, generate a dynamic library file, store the dynamic library and the data interface, and obtain it when needed.
[0041] 103. Convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform;
[0042] In actual applications, a dynamic library includes multiple dynamic links. The dynamic links in the dynamic library can enable a process to call functions that do not belong to its executable code. In this embodiment, the functions that can be called by the dynamic links of the dynamic library include conversion functions. In actual applications, different interfaces can have different interface specifications. When a target interface needs to be called, the call parameters in the interface call request need to be converted to the corresponding format according to the target data format corresponding to the target interface, that is, converted into data that conforms to the target interface specification. In this embodiment, the conversion function includes two types, one for converting the data field of the Internet advertising system into a data field format that can be recognized by the third-party advertising platform, and the other for converting the advertising data returned by the third-party advertising platform into a unified standard data format that can be recognized by the Internet advertising system.
[0043] In this embodiment, the conversion function in the dynamic library obtains the interface code with the third-party advertising platform, determines the corresponding data format according to the interface code, and converts the data format of the current advertising request data into the data format corresponding to the interface code of the third-party advertising platform.
[0044] 104. Send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0045] In this embodiment, after determining the data interface for data transmission, the data interface is called and interface routing addressing is performed on the third-party advertising platform, mainly by pre-setting a mapping relationship between the data interface and the interface address, determining the data interface and then determining the interface address, and sending the third-party advertising platform data to the interface address of the third-party advertising platform through the data interface.
[0046] In this embodiment, the interface address can also record interface call log information through interface routing. The recorded interface call log information includes the call log information of any interface in the Internet advertising system, including interface call time information, requested interface information, and returned called data information, etc. When a data interface call is needed, the interface address of the previous third-party advertising platform can be determined by querying the interface call log information, and the third-party advertising platform data can be sent to the interface address of the third-party advertising platform through the data interface.
[0047] 105. Receive response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data;
[0048] In this embodiment, the third-party advertising platform selects advertisements to be placed based on the received third-party advertising platform data, including user device information, request ID, ad slot code, ad slot type, ad display conditions, and user region information, and returns response data, including ad request ID, ad slot code, third-party platform ID, advertising material, landing page, monitoring address, etc., where the landing page is the web page that opens to the user when a potential user clicks on the advertisement or searches using a search engine, and the monitoring address is used to monitor information such as the number of clicks on the data.
[0049] In actual applications, the dynamic library includes multiple dynamic links. The dynamic links in the dynamic library can enable the process to call functions that do not belong to its executable code. In this embodiment, the data format of the response data returned by the third-party advertising platform may not be directly used for the user device to play advertisements. The response data needs to be converted into a unified data format of the Internet advertising system. The corresponding conversion function is called through the dynamic link in the dynamic library to perform format conversion to obtain unified advertising data.
[0050] 106. Send the unified advertisement data to the user device, and control the user device to play the corresponding advertisement according to the unified advertisement data.
[0051] In this embodiment, the unified advertising data includes an advertising request id, an advertising slot code, a third-party platform id, an advertising material object, a landing page, a third-party monitoring address, and a third-party advertising identifier. After the unified advertising data is sent to the user device, the user device is controlled to play the advertisement according to the advertising material object and the advertising slot code. When the user clicks on the advertisement, the user enters the web page corresponding to the landing page. The third-party monitoring address monitors the user's behavior data on viewing the advertisement. The advertising request id, the third-party platform id, and the third-party advertising identifier are used to identify and record the played advertisements and the third-party advertising platform.
[0052] In this embodiment, an advertisement acquisition request sent by a user device is received, wherein the advertisement acquisition request includes advertisement request data; according to the advertisement acquisition request, a dynamic library and a data interface corresponding to the currently connected third-party advertisement platform are called from a preset configuration table; the advertisement request data is formatted through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform; the third-party advertisement platform data is sent to the third-party advertisement platform through the data interface; the response data returned by the third-party advertisement platform is received through the data interface and the response data is formatted through the dynamic library to obtain unified advertisement data; the unified advertisement data is sent to the user device, and the user device is controlled to play the corresponding advertisement according to the unified advertisement data. The present invention develops a dynamic library for a newly added third-party advertisement platform, and in the process of advertisement acquisition by the user device, format conversion can be performed through the dynamic library. At the same time, the development of the dynamic library can avoid affecting the data interface of other advertisement platforms when connecting to a new third-party advertisement platform, and does not need to be released online, seamlessly connects, reduces failures, and reduces risks.
[0053] See also Figure 2 The second embodiment of the method for acquiring advertisement data in the embodiment of the present invention includes:
[0054] 201. Receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0055] 202. According to the advertisement acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from the preset configuration table;
[0056] 203. Generate a function call request according to the request type of the advertisement acquisition request, wherein the function call request includes function call parameters;
[0057] 204. Obtain a function type pointer corresponding to the conversion function from a preset function name mapping table according to the function name in the function call parameter;
[0058] In this embodiment, the staff performs dynamic library description, function type definition and parameter description in advance, including the name and path of the loaded dynamic library, and the type of each function in the dynamic library. Since different functions are compiled according to different functions in the dynamic library, it is necessary to determine the request type when making a function call. In this embodiment, the function to be called is a conversion function. In response to the function call request sent by the client, a new thread is created in the server, and the function parameters are parsed in the thread. The address in the library, the function type, and the processing function of this type of function are obtained according to the function name.
[0059] 205. According to the function type pointer, determine the address of the conversion function in the dynamic library;
[0060] 206. Call the conversion function in the dynamic library according to the address;
[0061] In this embodiment, the function call parameters include multiple data. The corresponding function type pointer can be queried based on the function call parameters and the corresponding mapping table. The function call parameters include the function name. The corresponding pointer is obtained from the mapping table through the function name. In actual applications, each function occupies a memory unit. They have a starting address. The pointer pointing to the function entry address is called a function pointer. In C / C++ language, pointers are generally considered to be pointer variables. The content of the pointer variable stores the starting address of the object it points to. Through the pointer, the address of the corresponding function can be obtained and called.
[0062] 207. Execute the conversion function to convert the advertisement request data into third-party advertisement platform data;
[0063] In this embodiment, the parameter map is passed to the processing function, the local function is called in the processing function, the function is executed, and the return value of the function is converted into a json format string and sent back to the Internet advertising platform as third-party advertising data for subsequent processing.
[0064] 208. Send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0065] 209. Receive response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data;
[0066] 210. Send the unified advertisement data to the user equipment, and control the user equipment to play the corresponding advertisement according to the unified advertisement data.
[0067] Based on the previous embodiment, this embodiment describes in detail the process of converting the format of the advertisement request data through the dynamic library to obtain the third-party advertisement platform data that can be recognized by the third-party advertisement platform, and generates a function call request through the request type of the advertisement acquisition request, wherein the function call request includes function call parameters; according to the function call parameters, the function corresponding to the advertisement acquisition request in the dynamic library is called; the function is executed to convert the advertisement request data into the third-party advertisement platform data. In this embodiment, the format conversion of the data is performed through the dynamic link scheduling function in the dynamic library, which can avoid affecting the data interface of other advertisement platforms.
[0068] See also Figure 3 The third embodiment of the method for acquiring advertisement data in the embodiment of the present invention includes:
[0069] 301. Receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0070] 302. According to the advertisement acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from the preset configuration table;
[0071] 303. Generate a function call request according to the request type of the advertisement acquisition request, wherein the function call request includes function call parameters;
[0072] 304. Call the function corresponding to the advertisement acquisition request in the dynamic library according to the function call parameters;
[0073] 305. Determine the data format of the advertisement request data and the data format of the third advertisement platform data;
[0074] 306. If the data format of the advertisement request data is the same as the data format of the third advertisement platform data, the function is not executed;
[0075] In this embodiment, the data format of the advertisement request data may be the same as the data format that can be recognized by the third-party advertisement platform, which means that there is no need to convert the data format, and the advertisement request data can be directly sent to the third-party advertisement platform according to the original data format for advertisement acquisition.
[0076] 307. If the data format of the advertisement request data is different from the data format of the third advertisement platform data, determine a corresponding converter according to the function;
[0077] 308. Input the advertisement request data into the converter to obtain the third-party advertisement platform data;
[0078] In this embodiment, since the third-party advertising platforms to be connected are different, the data formats that can be recognized by the third-party advertising platforms are also different. It is necessary to convert data in different formats into data formats that can be recognized by the third-party advertising platforms to obtain data objects in a preset format. For example, the data format that can be recognized by the third-party advertising platform is JSON format, and the format conversion converts the advertising request data in other formats into third-party advertising platform data in JSON format. In this embodiment, the conversion function determines the data format of the current advertising request data and the data format of the third-party advertising platform data, and calls a preset format converter to perform format conversion.
[0079] 309. Send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0080] 310. Receive response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data;
[0081] 311. Send unified advertisement data to a user device, and control the user device to play corresponding advertisements according to the unified advertisement data.
[0082] Based on the previous embodiment, this embodiment describes in detail the process of executing a function to convert advertising request data into third-party advertising platform data, by determining the first data format corresponding to the currently connected third-party advertising platform; parsing the advertising request data to obtain the second data format corresponding to the advertising request data; determining the corresponding converter according to the first data format and the second data format; inputting the advertising request data into the converter to obtain the third-party advertising platform data. By calling a function through a dynamic library to confirm the data format, and calling the corresponding converter and converting the data format through a function, it is possible to avoid affecting the data interface of other advertising platforms.
[0083] See also Figure 4 The fourth embodiment of the method for acquiring advertisement data in the embodiment of the present invention includes:
[0084] 401. Obtain an advertising platform configuration request and parse the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform;
[0085] In this embodiment, in order to dynamically add or remove third-party advertising platform systems, an operation entry for configuring third-party advertising can be added to the advertising configuration background. The operation entry can add and delete third-party advertising systems. When the staff needs to add or delete a third-party advertising platform connected to the Internet advertising system, they can generate a corresponding advertising platform configuration request by clicking the corresponding button on the operation entry.
[0086] 402. If the request type is to add a docking platform, obtain a description file of the third-party advertising platform to be added, and generate a dynamic library to be added according to the description file;
[0087] In this embodiment, when the request type of the advertising platform configuration request is to add a docking platform, the advertising platform configuration request also includes a description file of the third-party advertising platform to be added, and the description file includes the dynamic library name xxxAdInterface.DLL (Windows) or xxxAdInterface.so (Linux, Unix) that defines the third-party advertising platform interface, and defines the same interface name for sending advertising request data: sendAdRequest, unified parameter type: AdRequestData, defines the unified interface name for receiving advertising response data recvAdResponse, unified parameter type: AdResponseData, and the language for dynamic library development, including C language or C++, and corresponding functions and codes developed by the development language. The code in the description file can be compiled to obtain the dynamic library file.
[0088] 403. Store the dynamic library to be added and the correspondence between the dynamic library to be added and the third-party advertising platform to be added in a preset configuration table;
[0089] In this embodiment, after the dynamic library is generated and loaded, it is connected to the third-party advertising system, and the dynamic library to be added and the correspondence between the dynamic library to be added and the third-party advertising platform to be added are stored in a preset configuration table. When an advertisement acquisition request is received, the currently connected third-party advertising platform can be parsed from the configuration table and the corresponding dynamic library can be obtained for subsequent work.
[0090] 404. If the request type is to delete the docking platform, determine the third-party advertising platform and the corresponding dynamic library to be deleted, and delete the third-party advertising platform and the corresponding dynamic library to be deleted from the configuration table;
[0091] In this embodiment, when the advertising platform configuration request is to delete the docking platform, the advertising platform configuration request includes the identifier of the third-party advertising platform to be deleted. After obtaining the identifier by parsing the advertising platform configuration request, the third-party advertising platform and the corresponding dynamic library are deleted from the configuration table.
[0092] 405. Receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0093] 406. According to the advertisement acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from the preset configuration table;
[0094] 407. Convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform;
[0095] 408. Send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0096] 409. Receive response data returned by the third-party advertising platform through the data interface and convert the response data into a format through the dynamic library to obtain unified advertising data;
[0097] 410. Send unified advertisement data to the user equipment, and control the user equipment to play corresponding advertisements according to the unified advertisement data.
[0098] Based on the previous embodiment, this embodiment adds a process of configuring the third-party platform, by obtaining the advertising platform configuration request and parsing the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform; if the request category is adding a docking platform, then the description file of the third-party advertising platform to be added is obtained, and the dynamic library to be added is generated according to the description file; the dynamic library to be added and the dynamic library to be added and the third-party advertising platform to be added are stored in a preset configuration table; if the request category is deleting the docking platform, the third-party advertising platform to be deleted and the corresponding dynamic library are determined, and the third-party advertising platform to be deleted and the corresponding dynamic library are deleted from the configuration table. Through this method, the third-party advertising platform docked with the Internet advertising system can be flexibly configured to avoid affecting the interfaces of other third-party advertising platforms.
[0099] See also Figure 5 The fifth embodiment of the method for acquiring advertisement data in the embodiment of the present invention includes:
[0100] 501. Obtain an advertising platform configuration request, and parse the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform;
[0101] 502. If the request type is to add a docking platform, obtain a description file of the third-party advertising platform to be added;
[0102] In this embodiment, the staff develops the code in advance according to the functions that need to be performed, and writes the dynamic library name of the third-party advertising platform interface xxxAdInterface.DLL (Windows) or xxxAdInterface.so (Linux, Unix), defines the same interface name for sending advertising request data: sendAdRequest, unified parameter type: AdRequestData, defines the unified interface name for receiving advertising response data recvAdResponse, unified parameter type: AdResponseData, and the language for dynamic library development, including C language or C++, as well as the corresponding functions and codes developed by the development language into the description file.
[0103] 503. Parse the description file to obtain a source code file of the rule file;
[0104] In this embodiment, the description file is mapped into a syntax tree by means of the syntax tree parsing method. The syntax tree includes declaration nodes, sub-declaration nodes, and sub-expression nodes. The declaration nodes, sub-declaration nodes, and sub-expression nodes are converted in sequence according to a preset data abstraction paradigm, and the converted content is saved as a source code file.
[0105] 504. Compile the source code file into a corresponding dynamic library through a preset compilation engine;
[0106] In this embodiment, the compiler of the target language is called by the compilation engine, and the source code file is compiled into a dynamic library by the compiler. The compiler can be GCC or G++, where GCC is a programming language translator developed by GNU (GNU Compiler Collection, GNU compiler suite), and the original intention of GCC is a compiler specially written for the GNU operating system, and G++ is a C++ compiler under GCC.
[0107] 505. Store the dynamic library to be added and the correspondence between the dynamic library to be added and the third-party advertising platform to be added in a preset configuration table;
[0108] 506. If the request type is to delete the docking platform, determine the third-party advertising platform and the corresponding dynamic library to be deleted, and delete the third-party advertising platform and the corresponding dynamic library to be deleted from the configuration table;
[0109] 507. Receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0110] 508. According to the advertisement acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from the preset configuration table;
[0111] 509. Convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform;
[0112] 510. Send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0113] 511. Receive response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data;
[0114] 512. Send the unified advertisement data to the user equipment, and control the user equipment to play the corresponding advertisement according to the unified advertisement data.
[0115] Based on the previous embodiment, this embodiment describes in detail the process of configuring the dynamic library, by obtaining the description file of the third-party advertising platform to be added; parsing the description file to obtain the source code file of the rule file; and compiling the source code file into the corresponding dynamic library through a preset compilation engine. By compiling the source code file of the description file with a specific function to generate a dynamic library, the method can avoid affecting the data interface of other advertising platforms.
[0116] The above describes the method for acquiring advertisement data in the embodiment of the present invention. The following describes the device for acquiring advertisement data in the embodiment of the present invention. Figure 6 In one embodiment of the present invention, an advertisement data acquisition device includes:
[0117] The receiving module 601 is configured to receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0118] The calling module 602 is used to call the dynamic library and data interface corresponding to the currently connected third-party advertising platform from a preset configuration table according to the advertisement acquisition request;
[0119] A first conversion module 603, configured to convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform;
[0120] A sending module 604, configured to send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0121] The second conversion module 605 is used to receive the response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data;
[0122] The playing control module 606 is used to send the unified advertisement data to the user equipment and control the user equipment to play the corresponding advertisement according to the unified advertisement data.
[0123] It should be emphasized that in order to ensure the privacy and security of data, the above-mentioned dynamic library can be stored in a node of a blockchain.
[0124] In an embodiment of the present invention, the advertising data acquisition device runs the above advertising data acquisition method, and the advertising data acquisition device receives an advertising acquisition request issued by a user device, wherein the advertising acquisition request includes advertising request data; according to the advertising acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from a preset configuration table; the advertising request data is formatted through the dynamic library to obtain third-party advertising platform data that can be recognized by the third-party advertising platform; the third-party advertising platform data is sent to the third-party advertising platform through the data interface; the response data returned by the third-party advertising platform is received through the data interface and the response data is formatted through the dynamic library to obtain unified advertising data; the unified advertising data is sent to the user device, and the user device is controlled to play the corresponding advertisement according to the unified advertising data. The present invention develops a dynamic library for a newly added third-party advertising platform, and in the process of the user device acquiring advertisements, the format conversion can be performed through the dynamic library. At the same time, the development of the dynamic library can avoid affecting the data interfaces of other advertising platforms when connecting to a new third-party advertising platform, and does not need to be released online, seamlessly docking, reducing failures and reducing risks.
[0125] See also Figure 7 The second embodiment of the advertisement data acquisition device in the embodiment of the present invention includes:
[0126] The receiving module 601 is configured to receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data;
[0127] The calling module 602 is used to call the dynamic library and data interface corresponding to the currently connected third-party advertising platform from a preset configuration table according to the advertisement acquisition request;
[0128] A first conversion module 603, configured to convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform;
[0129] A sending module 604, configured to send the third-party advertising platform data to the third-party advertising platform through the data interface;
[0130] The second conversion module 605 is used to receive the response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data;
[0131] The playing control module 606 is used to send the unified advertisement data to the user equipment and control the user equipment to play the corresponding advertisement according to the unified advertisement data.
[0132] Among them, the first conversion module 603 specifically includes: a request generation unit 6031, used to generate a function call request according to the request type of the advertisement acquisition request, wherein the function call request includes function call parameters; a function call unit 6032, used to call the function corresponding to the advertisement acquisition request in the dynamic library according to the function call parameters; a function execution unit 6033, used to execute the function and convert the advertisement request data into third-party advertising platform data.
[0133] Optionally, the function includes a conversion function, the function call parameter includes a function name, and the function calling unit 6032 is specifically used to: obtain a function type pointer corresponding to the conversion function from a preset function name mapping table according to the function name; determine an address of the conversion function in the dynamic library according to the function type pointer; and call the conversion function in the dynamic library according to the address.
[0134] Optionally, the function execution unit 6033 is specifically used to: determine a first data format corresponding to a currently connected third-party advertising platform; parse the advertising request data to obtain a second data format corresponding to the advertising request data; determine a corresponding converter based on the first data format and the second data format; input the advertising request data into the converter to obtain third-party advertising platform data.
[0135] Among them, the advertising data acquisition device also includes a function non-execution module 607, and the function non-execution module 607 is specifically used to: determine the data format of the advertising request data and the data format of the third advertising platform data; if the data format of the advertising request data is the same as the data format of the third advertising platform data, then the function is not executed.
[0136] Among them, the advertising data acquisition device also includes a configuration module 608, and the configuration module 608 is specifically used to: obtain an advertising platform configuration request, and parse the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform; if the request category is adding a docking platform, then obtain the description file of the third-party advertising platform to be added, and generate a dynamic library to be added according to the description file; store the dynamic library to be added and the dynamic library to be added and the third-party advertising platform to be added in a preset configuration table; if the request category is deleting the docking platform, determine the third-party advertising platform to be deleted and the corresponding dynamic library, and delete the third-party advertising platform to be deleted and the corresponding dynamic library from the configuration table.
[0137] Optionally, the configuration module 608 is further specifically used to: obtain a description file of the third-party advertising platform to be added; perform syntax analysis on the description file to obtain a source code file of the rule file; and compile the source code file into a corresponding dynamic library through a preset compilation engine.
[0138] Based on the previous embodiment, this embodiment describes in detail the specific functions of each module and the unit structure of some modules. Through the newly added modules and the development of dynamic libraries for newly added third-party advertising platforms, format conversion can be performed through the dynamic library during the process of advertisement acquisition by user devices. At the same time, the development of the dynamic library can avoid affecting the data interfaces of other advertising platforms when connecting to a new third-party advertising platform. There is no need to release it online, and seamless connection is achieved, which reduces failures and risks.
[0139] above Figure 6 and Figure 7 The advertisement data acquisition device in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The advertisement data acquisition device in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0140] Figure 8 8 is a schematic diagram of the structure of an advertising data acquisition device provided by an embodiment of the present invention. The advertising data acquisition device 800 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 810 (for example, one or more processors) and a memory 820, and one or more storage media 830 (for example, one or more mass storage devices) storing application programs 833 or data 832. Among them, the memory 820 and the storage medium 830 can be short-term storage or permanent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the advertising data acquisition device 800. Furthermore, the processor 810 can be configured to communicate with the storage medium 830, and execute a series of instruction operations in the storage medium 830 on the advertising data acquisition device 800 to implement the steps of the above-mentioned advertising data acquisition method.
[0141] The advertisement data acquisition device 800 may also include one or more power supplies 840, one or more wired or wireless network interfaces 850, one or more input and output interfaces 860, and / or one or more operating systems 831, such as Windows Serve, Mac OS X, Unix, Linux, FreeBSD, etc. It will be appreciated by those skilled in the art that Figure 8The structure of the advertising data acquisition device shown does not constitute a limitation on the advertising data acquisition device provided by the present application, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.
[0142] The blockchain referred to in this invention is a new application mode of computer technologies such as distributed data storage, peer-to-peer transmission, consensus mechanism, encryption algorithm, etc. Blockchain is essentially a decentralized database, a string of data blocks generated by cryptographic methods. Each data block contains a batch of network transaction information, which is used to verify the validity of its information (anti-counterfeiting) and generate the next block. Blockchain can include the underlying blockchain platform, platform product service layer, and application service layer.
[0143] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the advertising data acquisition method.
[0144] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the above-described system, device, or unit can refer to the corresponding process in the aforementioned method embodiment and will not be repeated here.
[0145] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0146] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for obtaining advertising data, It is characterized in that The advertisement data acquisition method comprises: Receiving an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data; According to the advertisement acquisition request, the dynamic library and data interface corresponding to the currently connected third-party advertising platform are called from a preset configuration table; Convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform; Sending the third-party advertising platform data to the third-party advertising platform through the data interface; Receiving response data returned by the third-party advertising platform through the data interface and converting the format of the response data through the dynamic library to obtain unified advertising data; The dynamic library includes a plurality of dynamic links, and the functions used to call the dynamic links include conversion functions; Sending the unified advertisement data to the user equipment, and controlling the user equipment to play the corresponding advertisement according to the unified advertisement data; The step of converting the format of the advertisement request data through the dynamic library to obtain the third-party advertisement platform data that can be recognized by the third-party advertisement platform includes: Generate a function call request according to the request type of the advertisement acquisition request, wherein the function call request includes function call parameters; Calling the function corresponding to the advertisement acquisition request in the dynamic library according to the function calling parameter; Executing the function to convert the advertisement request data into third-party advertisement platform data; Before receiving the advertisement request sent by the user equipment, the method further includes: Obtaining an advertising platform configuration request, and parsing a request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform; If the request type is to add a docking platform, obtain a description file of the third-party advertising platform to be added, and generate a dynamic library to be added according to the description file; The dynamic library to be added, the dynamic library to be added, and the third-party advertising platform to be added are stored in a preset configuration table; If the request category is to delete the docking platform, determine the third-party advertising platform to be deleted and the corresponding dynamic library, and delete the third-party advertising platform to be deleted and the corresponding dynamic library from the configuration table; The step of obtaining a description file of the third-party advertising platform to be added, and generating a dynamic library of the third-party advertising platform to be added according to the description file includes: Obtaining a description file of the third-party advertising platform to be added; Performing syntax analysis on the description file to obtain a source code file of the rule file; The source code file is compiled into a corresponding dynamic library through a preset compilation engine.
2. The method for acquiring advertisement data according to claim 1, It is characterized in that The function includes a conversion function, and the function call parameter includes a function name; The calling of the function corresponding to the advertisement acquisition request in the dynamic library according to the function calling parameter comprises: Obtaining a function type pointer corresponding to the conversion function from a preset function name mapping table according to the function name; Determine the address of the conversion function in the dynamic library according to the function type pointer; The conversion function in the dynamic library is called according to the address.
3. The method for acquiring advertisement data according to claim 1, It is characterized in that The executing the function to convert the advertisement request data into third-party advertisement platform data comprises: Determine a first data format corresponding to the currently connected third-party advertising platform; Parsing the advertisement request data to obtain a second data format corresponding to the advertisement request data; Determining a corresponding converter according to the first data format and the second data format; The advertisement request data is input into the converter to obtain third-party advertisement platform data.
4. The method for acquiring advertisement data according to claim 1, It is characterized in that Before executing the function to convert the advertisement request data into third-party advertisement platform data, the method further includes: Determining a data format of the advertisement request data and a data format of the third advertisement platform data; If the data format of the advertisement request data is the same as the data format of the third advertisement platform data, the function is not executed.
5. An advertisement data acquisition device, It is characterized in that The advertising data acquisition device comprises: A receiving module, configured to receive an advertisement acquisition request sent by a user device, wherein the advertisement acquisition request includes advertisement request data; A calling module, used to call the dynamic library and data interface corresponding to the currently connected third-party advertising platform from a preset configuration table according to the advertisement acquisition request; A first conversion module, configured to convert the format of the advertisement request data through the dynamic library to obtain third-party advertisement platform data that can be recognized by the third-party advertisement platform; A sending module, used for sending the third-party advertising platform data to the third-party advertising platform through the data interface; A second conversion module is used to receive the response data returned by the third-party advertising platform through the data interface and convert the format of the response data through the dynamic library to obtain unified advertising data; The dynamic library includes a plurality of dynamic links, and the functions used to call the dynamic links include conversion functions; a control playing module is used to send the unified advertisement data to the user equipment and control the user equipment to play the corresponding advertisement according to the unified advertisement data; The first conversion module is further used to generate a function call request according to the request type of the advertisement acquisition request, wherein the function call request includes function call parameters; call the function corresponding to the advertisement acquisition request in the dynamic library according to the function call parameters; execute the function to convert the advertisement request data into third-party advertisement platform data; The device also includes a configuration module, which is used to obtain an advertising platform configuration request and parse the request category of the advertising platform configuration request, wherein the request category includes adding a docking platform or deleting a docking platform; if the request category is adding a docking platform, a description file of the third-party advertising platform to be added is obtained, and a dynamic library to be added is generated according to the description file; the dynamic library to be added and the dynamic library to be added and the third-party advertising platform to be added are stored in a preset configuration table; if the request category is deleting a docking platform, the third-party advertising platform to be deleted and the corresponding dynamic library are determined, and the third-party advertising platform to be deleted and the corresponding dynamic library are deleted from the configuration table; The configuration module is also specifically used to obtain the description file of the third-party advertising platform to be added; perform syntax analysis on the description file to obtain a source code file of the rule file; and compile the source code file into a corresponding dynamic library through a preset compilation engine.
6. An advertisement data acquisition device, It is characterized in that The advertising data acquisition device comprises: a memory and at least one processor, the memory stores instructions, and the memory and the at least one processor are interconnected via a line; The at least one processor calls the instructions in the memory to enable the advertisement data acquisition device to perform the steps of the advertisement data acquisition method according to any one of claims 1 to 4.
7. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method for acquiring advertisement data according to any one of claims 1 to 4 are implemented.
Citation Information
Patent Citations
Systems and methods for providing advertisements to user devices using an advertisement gateway
US20120059696A1
