CN116756227B - System for accessing full-platform advertisement based on general protocol - Google Patents

System for accessing full-platform advertisement based on general protocol Download PDF

Info

Publication number
CN116756227B
CN116756227B CN202311037655.1A CN202311037655A CN116756227B CN 116756227 B CN116756227 B CN 116756227B CN 202311037655 A CN202311037655 A CN 202311037655A CN 116756227 B CN116756227 B CN 116756227B
Authority
CN
China
Prior art keywords
authorization
advertisement
data
universal
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311037655.1A
Other languages
Chinese (zh)
Other versions
CN116756227A (en
Inventor
钟正阳
李一文
李顺
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hunan Yingke Mutual Entertainment Network Information Co ltd
Original Assignee
Hunan Yingke Mutual Entertainment Network Information Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hunan Yingke Mutual Entertainment Network Information Co ltd filed Critical Hunan Yingke Mutual Entertainment Network Information Co ltd
Priority to CN202311037655.1A priority Critical patent/CN116756227B/en
Publication of CN116756227A publication Critical patent/CN116756227A/en
Application granted granted Critical
Publication of CN116756227B publication Critical patent/CN116756227B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • G06F16/258Data format conversion from or to a database
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0241Advertisements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/0807Network architectures or network communication protocols for network security for authentication of entities using tickets, e.g. Kerberos
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/03Protocol definition or specification 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/08Protocols for interworking; Protocol conversion
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application relates to a system for accessing full-platform advertisements based on a general protocol. The system comprises a universal authorization protocol module, a universal request protocol module, a universal response protocol module and a universal interface module; the universal authorization protocol module is used for defining the association relation between application sources and authorization modes of different platforms, authorizing the platforms by utilizing the association relation and advertisement access requests of the different platforms, converting advertisement materials and parameters provided by advertisers into formats required by each advertisement platform, and sending the formats to the advertisement platforms for advertisement delivery; the general response protocol module is used for converting the data returned by the advertisement platform into general data and defining the data structure and format of the response data; the universal interface module is used to support communication and interaction between advertisers and different advertising platforms. The system can be used for accessing the full-platform advertisement.

Description

System for accessing full-platform advertisement based on general protocol
Technical Field
The application relates to the technical field of data processing, in particular to a system for accessing full-platform advertisements based on a general protocol.
Background
In the current advertising marketplace, there are many different advertising platforms and service providers. Each platform has its own interfaces and protocols, resulting in the need for advertisers to integrate and deliver advertisements with each platform separately, which increases the workload and development costs of the advertisers. In addition, advertiser advertising is faced with certain limitations due to differences and limitations between the various platforms.
However, current advertising systems suffer from the following drawbacks: decentralized interfaces and protocols: advertisers need to develop and maintain interfaces and protocols for multiple advertising platforms, increasing the complexity of development and management. Platform limitations and limitations: different advertising platforms may have different advertising formats, parameter requirements, and placement strategies, resulting in limited placement for advertisers.
Disclosure of Invention
In view of the foregoing, it is desirable to provide a system for accessing full-platform advertisements based on a generic protocol that is capable of accessing full-platform advertisements.
A system for accessing full platform advertisement based on a general protocol, the system comprises a general authorization protocol module, a general request protocol module, a general response protocol module and a general interface module;
the universal authorization protocol module is used for defining the association relation between application sources of different platforms and authorization modes, authorizing the platforms by utilizing the association relation and advertisement access requests of different platforms, and initiating an authorization request by using an authorization universal request protocol definition request parameter, wherein an authorization universal response protocol definition authorization response result; the request parameters comprise a media id, a media user id and an authorization code; the authorization response result comprises an authorization token, a token expiration time, a refresh token and an expiration time thereof;
the general request protocol module is used for defining a mapping relation after successful authorization, converting advertisement materials and parameters provided by an advertiser into formats required by each advertisement platform according to the mapping relation, and sending the formats to the advertisement platforms for advertisement delivery;
the universal response protocol module is used for acquiring data feedback returned by the advertisement platform and defining adapters between each field and the universal field defined by the system according to the data formats returned by different advertisement platforms; converting the data returned by the advertisement platform into general data according to the adapter, defining the data structure and format of the response data, and ensuring that the response data is consistent with the data processing and analysis in the system;
the generic interface module is used to define abstract classes and interfaces, create service provider classes, create service containers, and develop generic interface implementation classes to support communication and interaction between advertisers and different advertising platforms.
In one embodiment, the universal authorization protocol module is further configured to obtain media data and media user data of the access advertisement platform according to request protocol parameters of the universal authorization protocol in combination with media application management and media user management table data, obtain an authorization mode of the current access advertisement platform and parameters required by authorization APIs of different advertisement platforms according to application source and application authorization mode specifications, encapsulate authorization interfaces SDKs of different platforms, and obtain authorization types according to the media data and media user data of the access advertisement platform and parameters required by the authorization mode of the current access advertisement platform and the authorization APIs of different advertisement platforms; initiating an authorization request according to the authorization type assembly request parameters, processing the data parameters returned by different platforms into a format defined in a general response protocol, and returning response data to indicate that the authorization is successful; the response data follows the format of the generic response protocol.
In one embodiment, the universal request protocol is used to define a mapping relationship between parameters provided by an advertiser and parameters required by the platform according to requirements of each platform to realize automatic conversion of the parameters and define a data structure and a format of the request parameters to ensure consistency with interface requirements of each platform.
In one embodiment, the mapping relationship is a custom mapping rule table, the custom mapping rule table comprises a plurality of entries, each entry comprises a source parameter, a target parameter and a mapping algorithm, the source parameter represents a parameter name in a general request protocol, the target parameter represents a parameter name required by an advertisement platform, and the mapping algorithm is used for converting the source parameter into the target parameter and comprises a rule set, a dynamic configuration and management module and a mapping matching and conversion module; each rule in the rule set is expressed as a source parameter-target parameter-weight factor; the dynamic configuration and management module is used for dynamically adding, editing or deleting rules through an interface or the interface and assigning a weight factor to each rule; the mapping matching and converting module is used for converting the source parameter into the target parameter and converting the source parameter into the target parameter into the source parameterNormalizing to obtain a mapping value, and performing parameter conversion on the mapping value to obtain a target parameter; normalizing the source parameters to obtain a mapping value ofWherein->Representing the source parameter value, < >>Representing source parameter weights, ++>Representing rule weight factors, ++>Representing a reference value; performing parameter conversion on the mapping value to obtain a target parameter ofWherein->Representing the fourier transform +.>Representing operator modulo +.>Representing division.
In one embodiment, the universal request protocol module further comprises a standardized interface module and an error handling and logging module; the standardized interface module sends an advertisement putting request and acquires response data by using an HTTP request library of PHP or an SDK provided by the advertisement platform according to the API requirement of the advertisement platform; the error processing and logging module is used for capturing and processing errors possibly occurring in the request process, adding a logging function and logging key information into a log file, so that the problems can be conveniently checked and analyzed.
In one embodiment, the generic response protocol module includes a generic response data model; the general response data model comprises a success field, a message field and a data field; the success field indicates whether the request was successfully executed, and the type is boolean; the message field is used for adding information of the message, and the type is a character string; the data field is used for storing specific response data, and the type is an object.
In one embodiment, the universal response protocol module is used for writing an adapter, and mapping the response result field of the advertisement platform into a field common to the system according to the adapter.
In one embodiment, the process of mapping response result fields of an advertising platform to system-generic fields according to an adapter includes:
firstly, defining a result variable to represent a converted result list, defining an origin_key variable to represent a list for storing original fields, defining a common_key variable to represent a list for storing general fields, defining an origin_key_ar variable to represent a conversion of the original field list into an associated array, a key to be an original field name with a value of 0, and defining an origin_key_ar variable to represent an associated array for storing non-existing fields;
traversing a response result field list of the advertising platform, for each data item, performing intersection operation on the data item and an origin_key_ar variable by using an array_inter_key function, eliminating unnecessary fields, merging the origin_key_ar variable and the data item by using an array_replace function, generating a converted association array, merging the converted association array and a common_key variable by using an array_combine function, and obtaining a final conversion result; combining the final conversion result with an empty_key_ar variable by using an array_merge function, and supplementing non-existing fields to obtain a result variable; each data item in the result variable contains data after the advertisement platform response result field is mapped into a general field.
In one embodiment, the universal response protocol module further includes an exception handling module; the exception handling module is used for defining exception types, exception codes and exception messages and providing corresponding exception handling mechanisms for exception handling.
In one embodiment, the universal interface module is further configured to create an abstract class that includes a generic system and specification, define an interface to the generic system that includes the advertisement platform services, and create a specific service provider class to provide the functionality and interface implementation of a specific advertisement platform based on each advertisement platform; designing a service container class for registering and managing service provider objects of different media platforms, wherein specific service providers are registered in the service container by using a mode of dependent injection; a generic interface implementation class is created and the service container is passed to the generic interface implementation class according to the manner of dependency injection so that the generic interface implementation class can invoke specific service provider objects registered in the service container to enable communication and interaction with different advertising platforms.
The system for accessing the full-platform advertisement based on the universal protocol comprises a universal authorization protocol module, a universal request protocol module, a universal response protocol module and a universal interface module, wherein the universal authorization protocol module is used for authorizing the platforms according to the association relation and advertisement access requests of different platforms, the universal authorization protocol is defined, authorization operations of all the platforms are packaged in a unified interface, the maintenance cost of the system is reduced, a mapping relation is defined after the authorization is successful according to the universal request protocol module, advertisement materials and parameters provided by an advertiser are converted into formats required by each advertisement platform according to the mapping relation, the formats are sent to the advertisement platforms for advertisement delivery, the universal response protocol module is used for acquiring data feedback returned by the advertisement platforms after the advertisement delivery is completed, and an adapter is arranged; and finally, designing and defining abstract classes and interfaces, creating service provider classes, creating service containers and developing universal interface implementation classes in a universal interface module to support communication and interaction between advertisers and different advertisement platforms, thereby realizing integration with different advertisement platforms. This design has flexibility and extensibility so that the system can be easily integrated with new advertising platforms without modifying existing code or performing extensive reconfiguration. This greatly reduces the time and effort required to integrate new platforms, improving the flexibility and maintainability of the system.
Drawings
FIG. 1 is a block diagram of a system for accessing full platform advertising based on a generic protocol in one embodiment;
FIG. 2 is an internal block diagram of a computer device in one embodiment.
Detailed Description
The present application will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present application more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In one embodiment, as shown in FIG. 1, a system for accessing full platform advertisements based on a generic protocol is provided, the system comprising a generic authorization protocol module, a generic request protocol module, a generic response protocol module, and a generic interface module;
the universal authorization protocol module is used for defining the association relation between application sources of different platforms and authorization modes, authorizing the platforms by utilizing the association relation and advertisement access requests of different platforms, and initiating an authorization request by using an authorization universal request protocol definition request parameter, wherein an authorization universal response protocol definition authorization response result; the request parameters comprise a media id, a media user id and an authorization code; the authorization response result comprises an authorization token, a token expiration time, a refresh token and an expiration time thereof;
the general request protocol module is used for defining a mapping relation after successful authorization, converting advertisement materials and parameters provided by an advertiser into formats required by each advertisement platform according to the mapping relation, and sending the formats to the advertisement platforms for advertisement delivery;
the universal response protocol module is used for acquiring data feedback returned by the advertisement platform and defining adapters between each field and the universal field defined by the system according to the data formats returned by different advertisement platforms; converting the data returned by the advertisement platform into general data according to the adapter, defining the data structure and format of the response data, and ensuring that the response data is consistent with the data processing and analysis in the system;
the generic interface module is used to define abstract classes and interfaces, create service provider classes, create service containers, and develop generic interface implementation classes to support communication and interaction between advertisers and different advertising platforms.
In the system for accessing the full-platform advertisement based on the universal protocol, the universal authorization protocol module, the universal request protocol module, the universal response protocol module and the universal interface module are arranged, the universal authorization protocol module is utilized to authorize the platforms according to the association relation and advertisement access requests of different platforms, the authorization operations of all the platforms are encapsulated in a unified interface through defining the universal authorization protocol, the maintenance cost of the system is reduced, the mapping relation is defined after the authorization is successful according to the universal request protocol module, advertisement materials and parameters provided by an advertiser are converted into formats required by each advertisement platform according to the mapping relation, the formats are sent to the advertisement platforms for advertisement delivery, the universal response protocol module is utilized to acquire data feedback returned by the advertisement platforms after the advertisement delivery is completed, and the adapter is arranged; and finally, designing and defining abstract classes and interfaces, creating service provider classes, creating service containers and developing universal interface implementation classes in a universal interface module to support communication and interaction between advertisers and different advertisement platforms, thereby realizing integration with different advertisement platforms. This design has flexibility and extensibility so that the system can be easily integrated with new advertising platforms without modifying existing code or performing extensive reconfiguration. This greatly reduces the time and effort required to integrate new platforms, improving the flexibility and maintainability of the system.
In one embodiment, the universal authorization protocol module is further configured to obtain media data and media user data of the access advertisement platform according to request protocol parameters of the universal authorization protocol in combination with media application management and media user management table data, obtain an authorization mode of the current access advertisement platform and parameters required by authorization APIs of different advertisement platforms according to application source and application authorization mode specifications, encapsulate authorization interfaces SDKs of different platforms, and obtain authorization types according to the media data and media user data of the access advertisement platform and parameters required by the authorization mode of the current access advertisement platform and the authorization APIs of different advertisement platforms; initiating an authorization request according to the authorization type assembly request parameters, processing the data parameters returned by different platforms into a format defined in a general response protocol, and returning response data to indicate that the authorization is successful; the response data follows the format of the generic response protocol.
In particular embodiments, media application management includes: id: unique identifier of media application, application name: name of media application, application source: source platform of media application, app_id: unique application identifier of media application, app_secret: key of media application, login account: the login account number and login password of the media application: login password, body of media application: the subject to which the media application belongs, creator: user creating the media application, creation time: creation time, update time of media application: the last update time of the media application, the media application table is used for storing the related information of the platform application of the accessed system, including credentials and login information required by authorization, etc. Through this table, the system can manage and conduct related authorization operations.
Media user management includes id, unique identifier of media user, name: name of media user, media application id: identifier of media application to which media user belongs, login account: the login account number and login password of the media user: media user login password, advertiser id: unique identifier of advertiser account, creator: user and extension information of the media user is created: for storing additional user information, creation time: creation time, update time of media user: the last update time of the media user. The media user table is used for maintaining advertiser account information of platform applications accessed by the system. Each media user is associated with a media application and contains information such as his login and authentication credentials, as well as the unique identifier of the advertiser.
The media application management and placement account management page enables an administrator to manage and authorize accessed platform applications and advertiser accounts. These pages will provide corresponding functionality such as adding new media applications, editing existing media application information, viewing a list of accessed media applications, etc. At the same time, the administrator may also manage media users, including adding new media users, editing user information, assigning advertiser accounts, and so forth. By defining the universal authorization protocol, the authorization operations of all platforms can be encapsulated in a unified interface, so that the complexity of codes and the maintenance cost of the system are reduced. The universal authorization protocol serves as a middle layer to abstract and unify the authorization details of each advertisement platform, so that advertisers and advertisement delivery management systems can conduct authorization operation in a universal mode without paying attention to the differences of different platforms at the bottom layer.
The use of a generic authorization protocol may greatly simplify the authorization process for advertisers and users of advertising management systems. The generic authorization protocol also provides better scalability and flexibility. With the emergence of new advertising platforms or the upgrading of old platforms, the corresponding adaptation and expansion are only needed in the general authorization protocol, and the authorization logic of the whole system is not needed to be modified, so that the workload of development and maintenance is reduced, better expansibility and flexibility are provided, and advertisers and advertising management systems can interact and cooperate with different advertising platforms more efficiently and conveniently.
In one embodiment, the universal request protocol is used to define a mapping relationship between parameters provided by an advertiser and parameters required by the platform according to requirements of each platform to realize automatic conversion of the parameters and define a data structure and a format of the request parameters to ensure consistency with interface requirements of each platform.
In one embodiment, the mapping relationship is a custom mapping rule table, the custom mapping rule table includes a plurality of entries, each entry includes a source parameter, a target parameter, and a mapping algorithm, the source parameter name represents a parameter name in the universal request protocol, and the target parameter name tableThe mapping algorithm is used for converting the source parameters into target parameters, and comprises a rule set, a dynamic configuration and management module and a mapping matching and conversion module; each rule in the rule set is expressed as a source parameter-target parameter-weight factor; the dynamic configuration and management module is used for dynamically adding, editing or deleting rules through an interface or the interface and assigning a weight factor to each rule; the mapping matching and converting module is used for converting the source parameter into the target parameter, normalizing the source parameter to obtain a mapping value, and converting the mapping value to obtain the target parameter; normalizing the source parameters to obtain a mapping value ofWherein->Representing the source parameter value, < >>Representing source parameter weights, ++>Representing rule weight factors, ++>Representing a reference value; performing parameter conversion on the mapping value to obtain a target parameter ofWherein->Representing the fourier transform +.>Representing operator modulo +.>Representing division.
In a specific embodiment, according to the API requirements of the advertisement platform, the parameters in the universal request protocol are mapped to the parameters of the corresponding platform, and format conversion is performed, so that when the advertiser uses the universal interface, the parameters of the universal request protocol can be transmitted, and then the mapping relationship converts the parameters into the format required by the specific platform. The function of the module is to realize automatic conversion of parameters and reduce the workload of an advertiser for converting parameter formats among different platforms.
In the rule set, each rule is represented in the form of a triplet (source parameter, target parameter, weight factor). A weighting factor is introduced here for quantifying the degree of contribution of different rules to the mapping. The weighting factor may be a real number, representing the degree to which the source parameter affects the target parameter, and an administrator may dynamically add, edit, or delete rules via the interface or interfaces and assign a weighting factor to each rule. The system can quickly adjust the parameter mapping strategy according to actual requirements, so as to adapt to the changes of different advertising platforms.
And matching the corresponding relation between the universal request protocol parameter and the source parameter. Once the matching is successful, parameter conversion can be performed according to the weight factors, and parameter weights are introduced, so that the influence of different source parameters on the mapping can be quantified. Before the mapping calculation, the values of the source parameters are normalized and mapped into the range of [0,1], so that the parameter values have similar scales in the calculation, the mapping values can be adjusted by introducing the reference value, and the whole mapping values can be translated by adjusting the reference value, so that the mapping result is better controlled.
In one embodiment, the universal request protocol module further comprises a standardized interface module and an error handling and logging module; the standardized interface module sends an advertisement putting request and acquires response data by using an HTTP request library of PHP or an SDK provided by the advertisement platform according to the API requirement of the advertisement platform; the error processing and logging module is used for capturing and processing errors possibly occurring in the request process, adding a logging function and logging key information into a log file, so that the problems can be conveniently checked and analyzed.
In particular embodiments, an advertisement placement request needs to be sent to both an A advertisement and a B advertisement.
(1) Defining a general request protocol: the generic request protocol contains the fields: the 'campaign_name', 'ad_format', 'target_audio', etc. are used to describe relevant parameters for advertisement delivery.
(2) Automated parameter conversion: an automatic parameter conversion module is developed, and fields of a general request protocol are converted into parameter formats of corresponding platforms according to API requirements of the advertisement A and the advertisement B. For example, 'campaign_name' of the universal request protocol is converted into 'ad_name' of the a advertisement, 'target_audio' is converted into 'audio_id' of the B advertisement, and so on.
(3) Standardized interfaces: designing a standardized interface class and providing methodFor sending an advertisement delivery request. Inside the method, according to ∈>And (5) the parameter judging target advertisement platform calls an automatic parameter conversion module to convert the general request protocol into the request parameter of the specific platform. And sending the HTTP request to the API of the corresponding advertising platform by using the cURL library of the PHP, and acquiring response data.
(4) Error handling and logging: during the process of sending the request, the abnormal situation is captured and processed, such as network connection failure, API return error, etc. Meanwhile, a log recording function is added to record key information of a request, such as a URL (uniform resource locator), parameters, response status codes and the like, so as to facilitate troubleshooting and log analysis.
In one embodiment, the generic response protocol module includes a generic response data model; the general response data model comprises a success field, a message field and a data field; the success field indicates whether the request was successfully executed, and the type is boolean; the message field is used for adding information of the message, and the type is a character string; the data field is used for storing specific response data, and the type is an object.
In a specific embodiment, flexible processing of returned data of different advertisement platforms is realized by introducing a dynamically extensible data structure. A generic response data model was designed, describing the data structure using JSON Schema. The developer can define the attribute, type, constraint and other information of the data model according to the requirement.
A unified error handling mechanism is introduced, including error codes, error messages, error levels, etc. An error handling module is defined which contains a standard set of error codes and error messages. The developer can analyze and process by using the error processing module according to the error information returned by the specific advertisement platform. For example, an error handling module may be defined as follows: error code 0 indicates success, 1 indicates partial failure, 2 indicates total failure, and 3 indicates systematic error. The error messages correspond to different error conditions.
In one embodiment, the universal response protocol module is used for writing an adapter, and mapping the response result field of the advertisement platform into a field common to the system according to the adapter.
In one embodiment, the process of mapping response result fields of an advertising platform to system-generic fields according to an adapter includes:
firstly, defining a result variable to represent a converted result list, defining an origin_key variable to represent a list for storing original fields, defining a common_key variable to represent a list for storing general fields, defining an origin_key_ar variable to represent a conversion of the original field list into an associated array, a key to be an original field name with a value of 0, and defining an origin_key_ar variable to represent an associated array for storing non-existing fields;
traversing a response result field list of the advertising platform, for each data item, performing intersection operation on the data item and an origin_key_ar variable by using an array_inter_key function, eliminating unnecessary fields, merging the origin_key_ar variable and the data item by using an array_replace function, generating a converted association array, merging the converted association array and a common_key variable by using an array_combine function, and obtaining a final conversion result; combining the final conversion result with an empty_key_ar variable by using an array_merge function, and supplementing non-existing fields to obtain a result variable; each data item in the result variable contains data after the advertisement platform response result field is mapped into a general field.
In a specific embodiment, the array_inter_key function compares the keys of the two associated arrays of item and origin_key_ar, returning an intersection of the two arrays, i.e., retaining only the values corresponding to the keys present in origin_key_ar. The array_replace function replaces the value in the origin_key_ar with the value in item, creating a new associative array. The array_combination function uses the value in the common_key as a key name and the value in the item as a key value to generate a new association array. The array_merge function merges the item and empty_key_ar two associated arrays to generate a new associated array, supplementing the non-existing fields. The response result field of the specific platform is converted into the universal field through the adapter, so that the data of different platforms can be managed and displayed in a unified format, the system can conveniently access the advertisement of the whole platform, the data of different platforms can be conveniently compared and analyzed, and the readability and the utilization value of the data are improved.
In one embodiment, the universal response protocol module further includes an exception handling module; the exception handling module is used for defining exception types, exception codes and exception messages and providing corresponding exception handling mechanisms for exception handling.
In a specific embodiment, the response data of the a advertisement platform can be mapped to the data structure of the universal response protocol through the data mapping and conversion function of the universal response protocol design module:
the ret field of the A advertisement platform is mapped to the success field of the universal response protocol, with a value of 0 indicating success.
The msg field of the A advertising platform is mapped to the message field of the universal response protocol with a value of "request successful".
The data field of the A advertisement platform is directly mapped to the data field of the general response protocol, and specific response data is contained.
The data returned by the A advertisement platform can be efficiently processed and converted into a unified response format through the flexible data structure, the unified error processing mechanism, the data mapping and conversion function and the exception processing mechanism of the general response protocol design module, so that the stability and maintainability of the system are improved.
The innovation point of the general response protocol design module is that: and a dynamic expandable data structure is introduced, so that the flexibility and the expandability of the system are improved. And a unified error processing mechanism is designed, so that the error processing flow is simplified. The system can process the difference of returned data of different advertisement platforms, is convenient for quickly accessing the advertisement of the whole platform, introduces an exception handling mechanism and enhances the fault tolerance of the system.
In one embodiment, the universal interface module is further configured to create an abstract class that includes a generic system and specification, define an interface to the generic system that includes the advertisement platform services, and create a specific service provider class to provide the functionality and interface implementation of a specific advertisement platform based on each advertisement platform; designing a service container class for registering and managing service provider objects of different media platforms, wherein specific service providers are registered in the service container by using a mode of dependent injection; a generic interface implementation class is created and the service container is passed to the generic interface implementation class according to the manner of dependency injection so that the generic interface implementation class can invoke specific service provider objects registered in the service container to enable communication and interaction with different advertising platforms.
In particular embodiments, the generic interface is designed by using dependency injection, abstract classes, and service container registration. This design has the following advantages and innovations: flexibility and scalability: by relying on injection and abstract classes, new advertising platform service providers can be easily replaced or added to meet the needs of different platforms. Maintainability: by using abstract classes and interfaces, good code structure and modularization are realized, and the code is easy to maintain and expand. Reducing the coupling: the registration mechanism of the service container can reduce the coupling degree between codes, so that the codes have more flexibility and testability. The innovative design is as follows: the development of the universal interface is realized by combining the modes of the injection, abstract class and service container registration, and unified interface specification and reliable service are provided.
In one embodiment, a computer device is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 2. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a system for accessing full platform advertising based on a generic protocol. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, can also be keys, a track ball or a touch pad arranged on the shell of the computer equipment, and can also be an external keyboard, a touch pad or a mouse and the like.
It will be appreciated by persons skilled in the art that the architecture shown in fig. 2 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting as to the computer device to which the present inventive arrangements are applicable, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
Those skilled in the art will appreciate that implementing all or part of the above described embodiments of the system may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of embodiments of the systems described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples illustrate only a few embodiments of the application, which are described in detail and are not to be construed as limiting the scope of the application. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the application, which are all within the scope of the application. Accordingly, the scope of protection of the present application is to be determined by the appended claims.

Claims (7)

1. The system for accessing the full-platform advertisement based on the universal protocol is characterized by comprising a universal authorization protocol module, a universal request protocol module, a universal response protocol module and a universal interface module;
the universal authorization protocol module is used for defining the association relation between application sources of different platforms and authorization modes, authorizing the platforms by utilizing the association relation and advertisement access requests of different platforms, enabling an authorization request to be initiated by defining request parameters by an authorization universal request protocol, and defining an authorization response result by an authorization universal response protocol; the request parameters comprise a media id, a media user id and an authorization code; the authorization response result comprises an authorization token, token expiration time, refresh token and expiration time thereof;
the general request protocol module is used for defining a mapping relation after successful authorization, converting advertisement materials and parameters provided by an advertiser into formats required by each advertisement platform according to the mapping relation, and sending the formats to the advertisement platforms for advertisement delivery;
the universal response protocol module is used for acquiring data feedback returned by the advertising platform and defining adapters between each field and the universal field defined by the system according to the data formats returned by different advertising platforms; converting the data returned by the advertisement platform into general data according to the adapter, and defining the data structure and format of the response data to ensure that the response data is consistent with the data processing and analysis in the system;
the universal interface module is used for defining abstract classes and interfaces, creating service provider classes, creating service containers and developing universal interface implementation classes to support communication and interaction between advertisers and different advertisement platforms;
the universal authorization protocol module is also used for acquiring media data and media user data of the access advertisement platform according to request protocol parameters of the universal authorization protocol in combination with media application management and media user management table data, acquiring authorization modes of the current access advertisement platform and parameters required by authorization APIs of different advertisement platforms according to application sources and application authorization mode specifications, packaging authorization interfaces SDKs of different platforms, and acquiring authorization types according to the media data and media user data of the access advertisement platform, the authorization modes of the current access advertisement platform and the parameters required by the authorization APIs of the different advertisement platforms; initiating an authorization request according to the authorization type assembly request parameters, processing the data parameters returned by different platforms into a format defined in a general response protocol, and returning response data to indicate that the authorization is successful; the response data follows the format of the generic response protocol;
the general request protocol is used for defining the mapping relation between the parameters provided by the advertiser and the parameters required by the platform according to the requirements of each platform to realize automatic conversion of the parameters and defining the data structure and format of the request parameters to ensure the consistency with the interface requirements of each platform;
the mapping relation is a self-defined mapping rule table, the self-defined mapping rule table comprises a plurality of entries, each entry comprises a source parameter, a target parameter and a mapping algorithm, the source parameter represents a parameter name in a general request protocol, the target parameter represents a parameter name required by an advertisement platform, and the mapping algorithm is used for converting the source parameter into the target parameter and comprises a rule set, a dynamic configuration and management module and a mapping matching and conversion module; each rule in the rule set is expressed as a source parameter-target parameter-weight factor; the dynamic configuration and management module is used for dynamically adding, editing or deleting rules through an interface or an interface and assigning a weight factor to each rule; the mapping matching and converting module is used for converting the source parameter into the target parameter, the conversion of the source parameter into the target parameter is that the normalization processing is carried out on the source parameter to obtain a mapping value, and then the parameter conversion is carried out on the mapping value to obtain the target parameter; normalizing the source parameters to obtain a mapping value ofWherein->Representing the source parameter value, < >>Representing source parameter weights, ++>Representing rule weight factors, ++>Representing a reference value; performing parameter conversion on the mapping value to obtain a target parameter ofWherein->Representing the fourier transform +.>Representing operator modulo +.>Representing division.
2. The system of claim 1, wherein the universal request protocol module further comprises a standardized interface module and an error handling and logging module; the standardized interface module sends an advertisement putting request and acquires response data by using an HTTP request library of PHP or an SDK provided by the advertisement platform according to the API requirement of the advertisement platform; the error processing and logging module is used for capturing and processing errors possibly occurring in the request process, adding a logging function and logging key information into a log file, so that the problems can be conveniently checked and analyzed.
3. The system of claim 1, wherein the generic response protocol module comprises a generic response data model; the general response data model comprises a success field, a message field and a data field; the success field indicates whether the request is successfully executed, and the type is Boolean; the message field is used for additional message information, and the type is a character string; the data field is used for storing specific response data, and the type is an object.
4. The system of claim 1, wherein the generic response protocol module is configured to write an adapter according to which response result fields of the advertising platform are mapped to fields that are generic to the system.
5. The system of claim 4, wherein mapping the response result field of the advertising platform to a system-generic field according to the adapter comprises:
firstly, defining a result variable to represent a converted result list, defining an origin_key variable to represent a list for storing original fields, defining a common_key variable to represent a list for storing general fields, defining an origin_key_ar variable to represent a conversion of the original field list into an associated array, a key to be an original field name with a value of 0, and defining an origin_key_ar variable to represent an associated array for storing non-existing fields;
traversing a response result field list of the advertising platform, for each data item, performing intersection operation on the data item and an origin_key_ar variable by using an array_inter_key function, eliminating unnecessary fields, merging the origin_key_ar variable and the data item by using an array_replace function, generating a converted association array, merging the converted association array and a common_key variable by using an array_combine function, and obtaining a final conversion result; combining the final conversion result with an empty_key_ar variable by using an array_merge function, and supplementing non-existing fields to obtain a result variable; each data item in the result variable contains data after the advertisement platform response result field is mapped into a general field.
6. The system of claim 1, wherein the generic response protocol module further comprises an exception handling module; the exception handling module is used for defining exception types, exception codes and exception messages and providing corresponding exception handling mechanisms for exception handling.
7. The system of claim 1, wherein the universal interface module is further configured to
Creating an abstract class containing a general system and specifications, defining an interface of the general system containing advertisement platform services, and creating a specific service provider class according to each advertisement platform to provide functions and interface implementation of a specific advertisement platform; designing a service container class for registering and managing service provider objects of different media platforms, wherein specific service providers are registered in the service container by using a mode of dependent injection; a generic interface implementation class is created and the service container is passed to the generic interface implementation class according to the manner of dependency injection so that the generic interface implementation class can invoke specific service provider objects registered in the service container to enable communication and interaction with different advertising platforms.
CN202311037655.1A 2023-08-17 2023-08-17 System for accessing full-platform advertisement based on general protocol Active CN116756227B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311037655.1A CN116756227B (en) 2023-08-17 2023-08-17 System for accessing full-platform advertisement based on general protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311037655.1A CN116756227B (en) 2023-08-17 2023-08-17 System for accessing full-platform advertisement based on general protocol

Publications (2)

Publication Number Publication Date
CN116756227A CN116756227A (en) 2023-09-15
CN116756227B true CN116756227B (en) 2023-10-27

Family

ID=87959473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311037655.1A Active CN116756227B (en) 2023-08-17 2023-08-17 System for accessing full-platform advertisement based on general protocol

Country Status (1)

Country Link
CN (1) CN116756227B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117314522A (en) * 2023-09-26 2023-12-29 选房宝(珠海横琴)数字科技有限公司 Advertisement putting effect analysis method, device, equipment and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1371506A (en) * 1999-06-30 2002-09-25 艾伦·G·麦克诺顿 Automated transaction execution system with plurality of user interfaces
CN1601429A (en) * 1995-02-13 2005-03-30 英特特拉斯特技术公司 Systems and methods for secure transaction management and electronic rights protection
WO2006039706A2 (en) * 2004-10-01 2006-04-13 Citibank, N.A. Methods and systems for implementing on-line financial institution services via a single platform
CN101443800A (en) * 2005-03-23 2009-05-27 道格拉斯·阿什博 Distributed content exchange and presentation system
WO2014108762A2 (en) * 2013-01-14 2014-07-17 Yogesh Chunilal Rathod Dynamic products & services card & account and/or global payments & mobile network(s) mediated & managed dynamic e-commerce, advertising & marketing platform(s) and service(s)
WO2019171128A1 (en) * 2018-03-06 2019-09-12 Yogesh Chunilal Rathod In-media and with controls advertisement, ephemeral, actionable and multi page photo filters on photo, automated integration of external contents, automated feed scrolling, template based advertisement post and actions and reaction controls on recognized objects in photo or video
CN111260398A (en) * 2020-01-13 2020-06-09 腾讯科技(深圳)有限公司 Advertisement putting control method and device, electronic equipment and storage medium
CN113316800A (en) * 2017-09-18 2021-08-27 维迪阁工作室有限责任公司 Interoperating digital social logger of multi-threaded intelligent routing media and encrypted asset compliance and payment systems and methods
CN114783577A (en) * 2021-10-27 2022-07-22 恩佐·泽洛奇 Data analytics system, method and program product for healthcare
CN115114285A (en) * 2022-06-09 2022-09-27 华扬联众数字技术股份有限公司 Management method and system for multi-advertisement platform delivery data
CN115699050A (en) * 2019-11-05 2023-02-03 强力价值链网络投资组合2019有限公司 Value chain network control tower and enterprise management platform

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2002242036B2 (en) * 2001-02-02 2008-01-24 Opentv, Inc. Service platform suite management system
BR0202906B1 (en) * 2002-07-18 2011-05-17 non-toxic small-arms ammunition starter mixture.
US8615719B2 (en) * 2005-09-14 2013-12-24 Jumptap, Inc. Managing sponsored content for delivery to mobile communication facilities
US20070061245A1 (en) * 2005-09-14 2007-03-15 Jorey Ramer Location based presentation of mobile content

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1601429A (en) * 1995-02-13 2005-03-30 英特特拉斯特技术公司 Systems and methods for secure transaction management and electronic rights protection
CN1371506A (en) * 1999-06-30 2002-09-25 艾伦·G·麦克诺顿 Automated transaction execution system with plurality of user interfaces
WO2006039706A2 (en) * 2004-10-01 2006-04-13 Citibank, N.A. Methods and systems for implementing on-line financial institution services via a single platform
CN101443800A (en) * 2005-03-23 2009-05-27 道格拉斯·阿什博 Distributed content exchange and presentation system
WO2014108762A2 (en) * 2013-01-14 2014-07-17 Yogesh Chunilal Rathod Dynamic products & services card & account and/or global payments & mobile network(s) mediated & managed dynamic e-commerce, advertising & marketing platform(s) and service(s)
CN113316800A (en) * 2017-09-18 2021-08-27 维迪阁工作室有限责任公司 Interoperating digital social logger of multi-threaded intelligent routing media and encrypted asset compliance and payment systems and methods
WO2019171128A1 (en) * 2018-03-06 2019-09-12 Yogesh Chunilal Rathod In-media and with controls advertisement, ephemeral, actionable and multi page photo filters on photo, automated integration of external contents, automated feed scrolling, template based advertisement post and actions and reaction controls on recognized objects in photo or video
CN115699050A (en) * 2019-11-05 2023-02-03 强力价值链网络投资组合2019有限公司 Value chain network control tower and enterprise management platform
CN111260398A (en) * 2020-01-13 2020-06-09 腾讯科技(深圳)有限公司 Advertisement putting control method and device, electronic equipment and storage medium
CN114783577A (en) * 2021-10-27 2022-07-22 恩佐·泽洛奇 Data analytics system, method and program product for healthcare
CN115114285A (en) * 2022-06-09 2022-09-27 华扬联众数字技术股份有限公司 Management method and system for multi-advertisement platform delivery data

Also Published As

Publication number Publication date
CN116756227A (en) 2023-09-15

Similar Documents

Publication Publication Date Title
US20190188706A1 (en) Transference tracking
US8145653B2 (en) Using schemas to generate application specific business objects for use in an integration broker
US11269694B2 (en) Automated API code generation
US10860549B2 (en) Building and managing data-processing attributes for modeled data sources
US20220292161A1 (en) Content Management Systems and Methods for Utilizing External Content Libraries
CN116756227B (en) System for accessing full-platform advertisement based on general protocol
US10558653B2 (en) Dynamic, variable-data attribute data service
CN104520834A (en) System and method for end-to-end exposure of exported representations of native data types to third-party applications
US10908971B1 (en) Method and system for generating a customizable connector
CN111818175A (en) Enterprise service bus configuration file generation method, device, equipment and storage medium
CN113381866A (en) Service calling method, device, equipment and storage medium based on gateway
US10200455B2 (en) Information processing system and method
US20230267430A1 (en) Data processing method and device, and computer-readable storage medium
CN114995879B (en) Information processing method and system based on low-coding platform
US11803786B2 (en) Enterprise integration platform
US20230188620A1 (en) Method of notifying of business audit, gateway, electronic device, and readable medium
CN114417281A (en) Method and device for responding permission request, computer equipment and storage medium
CN115407992B (en) Configuration method and device of data query menu, electronic equipment and storage medium
CN116991472B (en) Method for managing global resources and computing device
CN117034233B (en) Application management method and device based on permission, computing equipment and storage medium
CN112130935B (en) API aggregation and data processing method and system based on interface description language
US20240036950A1 (en) Standardized interactions across different blockchains
CN115328537A (en) Version management method of configuration management system and configuration version management system
CN117857522A (en) Data sharing method and device, electronic equipment and storage medium
CN116594613A (en) Application development method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant