CN109240660A - A kind of cut-in method of ad data, storage medium, electronic equipment and system - Google Patents
A kind of cut-in method of ad data, storage medium, electronic equipment and system Download PDFInfo
- Publication number
- CN109240660A CN109240660A CN201710515495.5A CN201710515495A CN109240660A CN 109240660 A CN109240660 A CN 109240660A CN 201710515495 A CN201710515495 A CN 201710515495A CN 109240660 A CN109240660 A CN 109240660A
- Authority
- CN
- China
- Prior art keywords
- data
- advertising platform
- advertisement
- advertising
- 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.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/31—Programming languages or programming paradigms
- G06F8/315—Object-oriented languages
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Commerce
- G06Q30/02—Marketing; Price estimation or determination; Fundraising
- G06Q30/0241—Advertisements
- G06Q30/0277—Online advertisement
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Development Economics (AREA)
- Strategic Management (AREA)
- Computing Systems (AREA)
- Game Theory and Decision Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Economics (AREA)
- Marketing (AREA)
- General Business, Economics & Management (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of cut-in method of ad data, storage medium, electronic equipment and systems, are related to ad data access field.The step of this method includes: to define unified ad interface;Abstract class libraries is created, abstract class method is defined;Advertisement bit address and the corresponding advertising platform title used are stored in buffer area by the advertising platform that setting advertisement position uses;Loading classes are created, the corresponding advertising platform title of received advertisement bit address is obtained from buffer area;Dynamic creation advertising platform class calls abstract class method, and the method for obtaining advertising platform is added in abstract class method, accesses advertising platform, obtains the ad data of advertising platform, and ad data is returned to client by unified ad interface.The present invention is the ad data that can access multiple advertising platforms by unified ad interface, and compatibility is strong, and programmed logic is simple, and need to only safeguard that this unifies ad interface, maintainable good.
Description
Technical field
The present invention relates to ad data access fields, and in particular to a kind of cut-in method of ad data, storage medium, electricity
Sub- equipment and system.
Background technique
With the development of internet communication, more and more advertising platforms can be believed advertisement by internet releasing advertisements
Breath is shown on the advertisement position of internet site, so that internet site needs to access the ad data of multiple advertising platforms.
Currently, the method that internet site accesses the ad data of multiple advertising platforms are as follows: distinguish each advertising platform
Define a dedicated ad interface, advertisement letter of the internet site from the dedicated ad interface access respective advertisement platform
Breath, then shown on advertisement position.
However, in above process, internet site needs to develop a socket joining procedure for each ad interface,
With increasing for advertising platform, interface also can be more and more, and interface joining procedure also can be more and more, lead to the strong of program code
Strong property and maintainability are poor.
Summary of the invention
In view of the deficiencies in the prior art, the purpose of the present invention is to provide a kind of cut-in method of ad data,
Storage medium, electronic equipment and system are the ad data that can access multiple advertising platforms by unified ad interface, compatible
Property it is strong, programmed logic is simple, and need to only safeguard that this unifies ad interface, maintainable good.
To achieve the above objectives, the technical solution adopted by the present invention is that:
The present invention provides a kind of cut-in methods of ad data, comprising the following steps:
S1: a unified ad interface is defined;
S2: one abstract class libraries of creation defines an abstract class method in the abstract classes;
S3: setting the advertising platform that at least one advertisement position uses, establish buffer area, by advertisement bit address and corresponding use
Advertising platform title be stored in the buffer area;
S4: creation loading classes, the loading classes receive advertisement bit address, and from buffer area with obtaining received advertisement position
The corresponding advertising platform title in location;
S5: according to advertising platform title, dynamic creation corresponding advertising platform class is taken out described in the advertising platform Similar integral
As class, the abstract class method is called, the method for obtaining the advertising platform is added in the abstract class method, uses acquisition
Advertising platform described in the way access of the advertising platform, obtains the ad data of the advertising platform, and by the advertisement number
Client is returned to according to by the unified ad interface.
Based on the above technical solution, multiple advertisement positions are set in step S3 using different advertising platforms, and will
Each advertisement bit address and the corresponding advertising platform title used are stored in the buffer area.
Based on the above technical solution, ad interface unified described in step S5 returns to the advertisement number of client
It is identical according to field format.
Based on the above technical solution, the ad data field for client being returned in step S5 includes advertising resource
Address, the advertisement page jumped and display text.
Present invention provides a kind of storage mediums, are stored thereon with computer program, and the computer program is processed
The step of device realizes the cut-in method of above-mentioned ad data when executing.
Present invention provides a kind of electronic equipment, including memory, processor and be stored on the memory and
The computer program run on the processor, the processor realize above-mentioned ad data when executing the computer program
The step of cut-in method.
Present invention provides a kind of ad data access system, including it is interface definition module, abstract class creation module, aobvious
Show setup module, platform loading module and data AM access module;
The interface definition module is used for: defining a unified ad interface;
The abstract class creation module is used for: one abstract class libraries of creation defines an abstract class method in the abstract classes;
The display setup module is used for: the advertising platform that at least one advertisement position uses set, buffer area is established, it will be wide
It accuses bit address and the corresponding advertising platform title used is stored in the buffer area;
The platform loading module is used for: creation loading classes, the loading classes receive advertisement bit address, and from buffer area
Obtain the corresponding advertising platform title of received advertisement bit address;
The data access module is used for: according to advertising platform title, the corresponding advertising platform class of dynamic creation is described wide
Abstract class described in platform Similar integral is accused, the abstract class method is called, is added in the abstract class method and obtains the advertisement
The method of platform obtains the advertisement of the advertising platform using advertising platform described in the way access for obtaining the advertising platform
Data, and the ad data is returned into client by the unified ad interface.
Based on the above technical solution, the display setup module be used to set multiple advertisement positions use it is different wide
Platform is accused, and each advertisement bit address and the corresponding advertising platform title used are stored in the buffer area.
Based on the above technical solution, the data access module returns to the ad data field format of client
It is identical.
Based on the above technical solution, the data access module returns to the ad data field of client and includes
The address of advertising resource, the advertisement page jumped and display text.
Compared with the prior art, the advantages of the present invention are as follows:
(1) cut-in method of ad data of the invention can access multiple advertising platforms by unified ad interface
Ad data, so as to have good scalability and versatility so that advertisement position accesses the ad data of different advertising platforms,
Compatible strong, programmed logic is simple, moreover, the front end developer of client need to only handle unified ad interface data,
Maintenance get up it is very convenient, it is maintainable good;
(2) cut-in method of ad data of the invention need to only change the advertisement that advertisement bit address uses in buffer area
Platform names, loading classes obtain new advertising platform title from buffer area automatically, and the operation for carrying out step S5 can access
The ad data of new advertising platform, the mode for not only switching advertising platform is simple, convenient for operation, and can be when shorter
Interior completion switching, switching efficiency are high.
(3) position of usually each advertisement position is different, it will directly affects exposure rate, audient's degree and the concern of advertising information
Degree, advertising platform can select corresponding advertisement position can using the cut-in method of ad data of the invention according to self-demand
To set multiple advertisement positions using different advertising platforms, meets the needs of different advertising platforms, can choose advertising platform
The advertisement position of access improves user experience.
Detailed description of the invention
Fig. 1 is the flow chart of the cut-in method of ad data in the embodiment of the present invention;
Fig. 2 is the connection block diagram of electronic equipment in the embodiment of the present invention.
Specific embodiment
Invention is further described in detail with reference to the accompanying drawings and embodiments.
Shown in Figure 1, the embodiment of the present invention provides a kind of cut-in method of ad data, comprising the following steps:
S1: a unified ad interface is defined, is named as GetAdInfo, the ad interface is by ad data according to system
One data field format returns to client, and client herein is browser or APP;
S2: one abstract class libraries AdFactory of creation defines an abstract class method GetAd in the abstract classes, uses
The abstract class technology of PHP need to only inherit AdFactory and internal realization GetAd method i.e. when accessing an advertising platform
It can;
S3: setting the advertising platform that at least one advertisement position uses, and using REDIS cache database technology, establishes caching
Advertisement position address ID and the corresponding advertising platform title used are stored in buffer area by area;
S4: creation loading classes AdLoader, loading classes receive advertisement bit address, and received advertisement is obtained from buffer area
The corresponding advertising platform title of bit address;
S5: according to advertising platform title, the corresponding advertising platform class of dynamic creation, advertising platform Similar integral abstract class is adjusted
With abstract class method, the method for obtaining advertising platform is added in abstract class method, uses the way access for obtaining advertising platform
Advertising platform obtains the ad data of advertising platform, and ad data is returned to client by unified ad interface.
By taking Alibaba as an example, when needing to access this advertising platform of Alibaba, an AlibabaAd need to be only created
Class, then the Similar integral of AlibabaAd AdFactory class defines according to the interface that Alibaba exports ad data,
The method for obtaining Alibaba's advertising platform is added in abstract class method GetAd, calls directly GetAd method, accesses Ali
Bar bar advertising platform obtains ad data.
On the one hand, the cut-in method of the ad data in the embodiment of the present invention uses unification by way of abstract class
Ad interface accesses the data of multiple advertising platforms, there is good scalability and versatility, and compatibility is strong, and programmed logic is simple,
Moreover, the front end developer of client need to only handle unified ad interface data, maintenance is got up very convenient, can be safeguarded
Property is good.
On the other hand, the cut-in method of the ad data in the embodiment of the present invention need to only change advertisement position in buffer area
The advertising platform title that address uses, loading classes obtain new advertising platform title from buffer area automatically, and carry out step S5
Operation can access the ad data of new advertising platform, the mode for not only switching advertising platform is simple, convenient for operation, and
It can be completed in a relatively short time switching, switching efficiency is high.
In step S5 unified ad interface return to client ad data field format it is identical, and return to visitor
The ad data field at family end includes the text of the address of advertising resource, the advertisement page jumped and display.
In embodiments of the present invention, the actual needs that content is issued according to advertising platform, returns to the advertisement number of client
The address of advertising resource can be only included according to field, client user can check on advertisement position and replicate the address, clear
It lookes in device and opens the address, can see the advertising information of advertising platform publication in open webpage;Return to the wide of client
The advertisement page jumped can also be only included by accusing data field, and client user can click the advertisement page on advertisement position,
Client can automatic jump on advertisement page, it can be seen that the advertising information of advertising platform publication on advertisement page;It returns
The text of display can also be only included to the ad data field of client, client user can be immediately seen on advertisement position
The text advertising information of advertising platform publication, to achieve the purpose that advertising platform releasing advertisements.
The position of usual each advertisement position is different, it will exposure rate, audient's degree and the attention rate of advertising information are directly affected,
Advertising platform can select corresponding advertisement position according to self-demand, can be with using the cut-in method of ad data of the invention
Multiple advertisement positions are set using different advertising platforms, meets the needs of different advertising platforms, can choose advertising platform and connect
The advertisement position entered improves user experience.
According to the actual situation, when there are multiple advertisement positions, multiple advertisement positions can be set and use identical advertising platform,
Different advertising platforms can be used, and each advertisement bit address and the corresponding advertising platform title used are stored in caching
Qu Zhong.
The embodiment of the invention also provides a kind of storage mediums, are stored thereon with computer program, and computer program is located
Reason device realizes the cut-in method of above-mentioned ad data when executing.The storage medium includes USB flash disk, mobile hard disk, ROM (Read-Only
Memory, read-only memory), RAM (Random Access Memory, random access memory), magnetic or disk etc. it is each
Kind can store the medium of program code.
Shown in Figure 2, the embodiment of the present invention also provides a kind of electronic equipment, including memory, processor and is stored in
The computer program run on memory and on a processor, processor realize above-mentioned ad data when executing computer program
The step of cut-in method.
The embodiment of the present invention also provides a kind of ad data access system, including the creation of interface definition module, abstract class
Module, display setup module, platform loading module and data AM access module.
Interface definition module is used for: defining a unified ad interface.
Abstract class creation module is used for: one abstract class libraries of creation defines an abstract class method in the abstract classes.
Display setup module is used for: setting multiple advertisement positions using different advertising platforms, and by each advertisement bit address
It is stored in buffer area with the corresponding advertising platform title used.
Platform loading module is used for: creation loading classes, loading classes receive advertisement bit address, and obtain and receive from buffer area
The corresponding advertising platform title of advertisement bit address.
Data access module is used for: according to advertising platform title, the corresponding advertising platform class of dynamic creation, and advertising platform class
Abstract class is inherited, abstract class method is called, the method for obtaining advertising platform is added in abstract class method, it is flat using advertisement is obtained
The way access advertising platform of platform obtains the ad data of advertising platform, and ad data is returned by unified ad interface
Back to client.
The ad data field format that data access module returns to client is identical, and the ad data field includes wide
Accuse the text of the address of resource, the advertisement page jumped and display, can according to the advertisement message extraction that advertising platform is issued its
In one or more ad data fields.
It should be understood that system provided in an embodiment of the present invention is when carrying out intermodule communication, only with above-mentioned each function
The division progress of module can according to need and for example, in practical application by above-mentioned function distribution by different function moulds
Block is completed, i.e., the internal structure of system is divided into different functional modules, to complete all or part of function described above
Energy.
The present invention is not limited to the above-described embodiments, for those skilled in the art, is not departing from
Under the premise of the principle of the invention, several improvements and modifications can also be made, these improvements and modifications are also considered as protection of the invention
Within the scope of.The content being not described in detail in this specification belongs to the prior art well known to professional and technical personnel in the field.
Claims (10)
1. a kind of cut-in method of ad data, which comprises the following steps:
S1: a unified ad interface is defined;
S2: one abstract class libraries of creation defines an abstract class method in the abstract classes;
S3: setting the advertising platform that at least one advertisement position uses, establish buffer area, advertisement bit address and correspondence is used wide
Platform names are accused to be stored in the buffer area;
S4: creation loading classes, the loading classes receive advertisement bit address, and received advertisement bit address pair is obtained from buffer area
The advertising platform title answered;
S5: according to advertising platform title, dynamic creation corresponding advertising platform class is abstracted described in the advertising platform Similar integral
Class calls the abstract class method, and the method for obtaining the advertising platform is added in the abstract class method, uses acquisition institute
Advertising platform described in the way access of advertising platform is stated, obtains the ad data of the advertising platform, and by the ad data
Client is returned to by the unified ad interface.
2. the cut-in method of ad data as described in claim 1, it is characterised in that: setting multiple advertisement positions in step S3 makes
The buffer area is stored in different advertising platforms, and by each advertisement bit address and the corresponding advertising platform title used
In.
3. the cut-in method of ad data as described in claim 1, it is characterised in that: unified advertisement described in step S5 connects
The ad data field format that mouth returns to client is identical.
4. the cut-in method of ad data as described in claim 1, it is characterised in that: return to the wide of client in step S5
Accuse the text that data field includes the address of advertising resource, the advertisement page jumped and display.
5. a kind of storage medium, is stored thereon with computer program, it is characterised in that: the computer program is executed by processor
The step of any one of Shi Shixian the claims 1 to 4 the method.
6. a kind of electronic equipment, including memory, processor and it is stored on the memory and runs on the processor
Computer program, it is characterised in that: the processor is realized in the claims 1 to 4 when executing the computer program
The step of any one the method.
7. a kind of ad data access system, it is characterised in that: the system comprises interface definition module, abstract class to create mould
Block, display setup module, platform loading module and data AM access module;
The interface definition module is used for: defining a unified ad interface;
The abstract class creation module is used for: one abstract class libraries of creation defines an abstract class method in the abstract classes;
The display setup module is used for: being set the advertising platform that at least one advertisement position uses, is established buffer area, by advertisement position
Address and the corresponding advertising platform title used are stored in the buffer area;
The platform loading module is used for: creation loading classes, the loading classes receive advertisement bit address, and obtain from buffer area
The corresponding advertising platform title of received advertisement bit address;
The data access module is used for: according to advertising platform title, the corresponding advertising platform class of dynamic creation, the advertisement is put down
Abstract class described in platform Similar integral calls the abstract class method, is added in the abstract class method and obtains the advertising platform
Method obtain the ad data of the advertising platform using advertising platform described in the way access for obtaining the advertising platform,
And the ad data is returned into client by the unified ad interface.
8. ad data access system as claimed in claim 7, it is characterised in that: the display setup module is more for setting
A advertisement position uses different advertising platforms, and each advertisement bit address and the corresponding advertising platform title used are stored in
In the buffer area.
9. ad data access system as claimed in claim 7, it is characterised in that: the data access module returns to client
The ad data field format at end is identical.
10. ad data access system as claimed in claim 7, it is characterised in that: the data access module returns to visitor
The ad data field at family end includes the text of the address of advertising resource, the advertisement page jumped and display.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710515495.5A CN109240660B (en) | 2017-06-29 | 2017-06-29 | Access method of advertisement data, storage medium, electronic device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710515495.5A CN109240660B (en) | 2017-06-29 | 2017-06-29 | Access method of advertisement data, storage medium, electronic device and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109240660A true CN109240660A (en) | 2019-01-18 |
CN109240660B CN109240660B (en) | 2022-06-17 |
Family
ID=65083160
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710515495.5A Active CN109240660B (en) | 2017-06-29 | 2017-06-29 | Access method of advertisement data, storage medium, electronic device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109240660B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031358A (en) * | 2019-12-13 | 2020-04-17 | 北京奇艺世纪科技有限公司 | Data playing method and device, electronic equipment and storage medium |
CN113347469A (en) * | 2021-06-01 | 2021-09-03 | 广州欢网科技有限责任公司 | Television APP advertisement playing method, device and system |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6144944A (en) * | 1997-04-24 | 2000-11-07 | Imgis, Inc. | Computer system for efficiently selecting and providing information |
CN102520967A (en) * | 2011-12-28 | 2012-06-27 | 深圳市融创天下科技股份有限公司 | Method, system and mobile terminal for creating and using mobile platform plug-in component |
CN103051932A (en) * | 2012-12-19 | 2013-04-17 | 深圳市九洲电器有限公司 | Method and system for acquiring advertising information of interactive digital television |
-
2017
- 2017-06-29 CN CN201710515495.5A patent/CN109240660B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6144944A (en) * | 1997-04-24 | 2000-11-07 | Imgis, Inc. | Computer system for efficiently selecting and providing information |
CN102520967A (en) * | 2011-12-28 | 2012-06-27 | 深圳市融创天下科技股份有限公司 | Method, system and mobile terminal for creating and using mobile platform plug-in component |
CN103051932A (en) * | 2012-12-19 | 2013-04-17 | 深圳市九洲电器有限公司 | Method and system for acquiring advertising information of interactive digital television |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111031358A (en) * | 2019-12-13 | 2020-04-17 | 北京奇艺世纪科技有限公司 | Data playing method and device, electronic equipment and storage medium |
CN111031358B (en) * | 2019-12-13 | 2022-07-12 | 北京奇艺世纪科技有限公司 | Data playing method and device, electronic equipment and storage medium |
CN113347469A (en) * | 2021-06-01 | 2021-09-03 | 广州欢网科技有限责任公司 | Television APP advertisement playing method, device and system |
Also Published As
Publication number | Publication date |
---|---|
CN109240660B (en) | 2022-06-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104281827B (en) | Identify the method and device of Quick Response Code | |
WO2016082311A1 (en) | System and method for generating machining control data of numerical control machine tool | |
CN106201890B (en) | The performance optimization method and server of a kind of application | |
CN107122398B (en) | Data display chart generation method and system | |
CN110795697B (en) | Method and device for acquiring logic expression, storage medium and electronic device | |
CN104267972B (en) | Browser local interface extended method and device | |
CN103246606B (en) | The performance test methods of ESB platform and system | |
CN102184101B (en) | Software application frame and development system thereof for smartphones | |
CN104731606B (en) | The system and method for Enterprise information integration management is realized based on identification crawl technology | |
CN107577622A (en) | Back end interface analogy method, equipment and storage medium | |
CN106951254B (en) | Method and device for multiplexing similar service function modules in payment system | |
CN102262684A (en) | Method and device for generating webpage page of mobile terminal | |
CN103530338A (en) | Frame for carrying out page rendering on calculation equipment and page generation method | |
CN107342910A (en) | Simulate automated testing method and instrument that multi-user carries out network access | |
CN106919406A (en) | A kind of desktop application component issue, update method and device | |
CN110162299A (en) | Web program and its Quick Development Framework, development approach and relevant device | |
CN109240660A (en) | A kind of cut-in method of ad data, storage medium, electronic equipment and system | |
CN105550179A (en) | Webpage collection method and browser plug-in | |
CN102253986A (en) | Method and device for improving webpage displaying effect in multiple terminals | |
CN107423291A (en) | A kind of data translating method and client device | |
CN104834715A (en) | Website generating method and system based on components and container | |
CN105988814A (en) | Interface generation method and apparatus | |
CN106293679B (en) | A kind of element term conflict processing method and device | |
CN110135814A (en) | The correlating method of BIM and project data, system and terminal device | |
CN111858521A (en) | Distribution network engineering design data sharing cloud platform and application method |
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 | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20230811 Address after: 102600 D033, 1st floor, building 2, No.18 Keyuan Road, economic development zone, Daxing District, Beijing Patentee after: Two bit (Beijing) Technology Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |