[go: up one dir, main page]

CN111724179A - A method and device for processing an advertisement placement request - Google Patents

A method and device for processing an advertisement placement request Download PDF

Info

Publication number
CN111724179A
CN111724179A CN201910209405.9A CN201910209405A CN111724179A CN 111724179 A CN111724179 A CN 111724179A CN 201910209405 A CN201910209405 A CN 201910209405A CN 111724179 A CN111724179 A CN 111724179A
Authority
CN
China
Prior art keywords
advertisement
requests
advertisement placement
request
message queue
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.)
Pending
Application number
CN201910209405.9A
Other languages
Chinese (zh)
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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology 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 Beijing Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201910209405.9A priority Critical patent/CN111724179A/en
Publication of CN111724179A publication Critical patent/CN111724179A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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
    • G06Q30/0251Targeted advertisements
    • G06Q30/0257User requested

Landscapes

  • Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Engineering & Computer Science (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Finance (AREA)
  • Economics (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Marketing (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明提供了一种广告投放请求的处理方法及装置,所述方法包括:接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;基于所述消息队列中的多个广告投放请求访问指定存储位置,从所述指定存储位置获取与所述多个广告投放请求分别对应的广告投放文件;将与所述多个广告投放请求分别对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。本发明实施例提供的方案通过消息队列对大量的广告投放请求进行处理,进一步提升广告投放请求的处理效率,在减少请求响应时间的同时提升广告业务的投放质量。

Figure 201910209405

The present invention provides a method and device for processing an advertisement placement request, the method includes: receiving multiple advertisement placement requests from multiple terminal programs, and storing the received multiple advertisement placement requests in a preset message queue; Access a specified storage location based on multiple advertisement placement requests in the message queue, and obtain advertisement placement files corresponding to the multiple advertisement placement requests from the specified storage location; respectively correspond to the multiple advertisement placement requests. The advertisement placement files are respectively returned to the corresponding terminal programs, and each terminal program loads and displays the advertisement placement files received by the respective terminal programs. The solution provided by the embodiment of the present invention processes a large number of advertisement placement requests through a message queue, further improves the processing efficiency of the advertisement placement request, and improves the placement quality of the advertisement service while reducing the request response time.

Figure 201910209405

Description

一种广告投放请求的处理方法及装置A method and device for processing an advertisement placement request

技术领域technical field

本发明涉及互联网技术领域,特别是涉及一种广告投放请求的处理方法及装置。The present invention relates to the field of Internet technologies, and in particular, to a method and device for processing an advertisement placement request.

背景技术Background technique

广告作为一种传递信息的宣传手段,是各广告主推广自身产品及相关信息的重要渠道。而且,随着智能终端设备的不断发展,人们多采用智能终端设备进行视频、书籍等的观看,广告主也将更多的数字广告投放到智能终端设备中,各种广告投放服务也应运而生。Advertising, as a means of publicity to transmit information, is an important channel for advertisers to promote their own products and related information. Moreover, with the continuous development of intelligent terminal equipment, people use intelligent terminal equipment to watch videos, books, etc., and advertisers also put more digital advertisements into intelligent terminal equipment, and various advertising services have also emerged as the times require. .

在进行广告投放时,有时会遇到终端程序请求量很大的情况,如几千万,几个亿的请求量,不同请求对应的所请求的广告投放文件可能也不尽相同,因此,在接收到请求后,只能针对每个请求进行相应的处理,在此期间,终端程序只能进行等待响应,采用上述方式不仅效率低下,而且会给广告主带来损失的同时影响用户使用体验。When advertising is placed, sometimes there is a large amount of requests from the terminal program, such as tens of millions, hundreds of millions of requests, and the requested advertisement serving files corresponding to different requests may not be the same. Therefore, in After receiving a request, it can only perform corresponding processing for each request. During this period, the terminal program can only wait for a response. The above method is not only inefficient, but also brings losses to the advertiser and affects the user experience.

发明内容SUMMARY OF THE INVENTION

本发明提供了一种广告投放请求的处理方法及装置以克服上述问题或者至少部分地解决上述问题。The present invention provides a method and apparatus for processing an advertisement placement request to overcome the above problems or at least partially solve the above problems.

根据本发明的一个方面,提供了一种广告投放请求的处理方法,包括:According to an aspect of the present invention, a method for processing an advertisement placement request is provided, including:

接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;Receive multiple advertisement placement requests from multiple terminal programs, and store the received multiple advertisement placement requests into a preset message queue;

依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件;Process the advertisement placement requests in the message queue in sequence, and obtain an advertisement placement file corresponding to each advertisement placement request;

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。The advertisement placement files corresponding to the advertisement placement requests are respectively returned to the corresponding terminal programs, and each terminal program loads and displays the received advertisement placement files.

可选地,所述对所述消息队列中的多个广告投放请求进行处理,获取与所述多个广告投放请求对应的广告投放文件之前,还包括:Optionally, before the processing of the multiple advertisement placement requests in the message queue and the acquisition of the advertisement placement files corresponding to the multiple advertisement placement requests, the method further includes:

对所述消息队列中的所述广告投放请求进行异步处理,向发送各所述广告投放请求的终端程序分别返回请求接收成功的响应信息;Perform asynchronous processing on the advertisement placement request in the message queue, and return response information of successful request reception to the terminal program that sends each advertisement placement request;

其中,所述响应信息中携带有默认投放文件。Wherein, the response information carries a default delivery file.

可选地,所述将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示,包括:Optionally, returning the advertisement delivery files corresponding to the advertisement delivery requests to the corresponding terminal programs respectively, and the terminal programs load and display the respectively received advertisement delivery files, including:

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件加载并替换所述默认投放文件进行显示。The advertisement delivery files corresponding to the advertisement delivery requests are respectively returned to the corresponding terminal programs, and each terminal program loads the received advertisement delivery files and replaces the default delivery files for display.

可选地,所述依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件,包括:Optionally, the step of sequentially processing the advertisement placement requests in the message queue, and obtaining the advertisement placement files corresponding to each advertisement placement request, includes:

依次读取所述消息队列中的广告投放请求;Read the ad serving requests in the message queue in sequence;

从预设广告素材库获取至少一个广告素材,按照预设拼接规则将所述广告素材拼接为所述广告投放请求的广告投放文件。Acquire at least one advertisement material from a preset advertisement material library, and splicing the advertisement material into an advertisement delivery file of the advertisement delivery request according to a preset splicing rule.

可选地,所述依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件,包括:Optionally, the step of sequentially processing the advertisement placement requests in the message queue, and obtaining the advertisement placement files corresponding to each advertisement placement request, includes:

基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件。Based on the request time of the advertisement placement request in the message queue, the specified storage locations are accessed in batches, and the advertisement placement files corresponding to each advertisement placement request are respectively obtained from the specified storage location.

可选地,所述基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件,包括:Optionally, accessing the designated storage locations in batches based on the request time of the advertisement placement requests in the message queue, and respectively obtaining the advertisement placement files corresponding to each advertisement placement request from the designated storage locations, including:

基于所述多个广告投放请求访问预先构建的素材拼接组件的存储目录,从所述素材拼接组件的存储目录中获取与各广告投放请求对应的广告投放文件。Access a pre-built storage directory of the material splicing component based on the plurality of advertisement placing requests, and obtain an advertisement placing file corresponding to each advertisement placing request from the storage directory of the material splicing component.

可选地,所述接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列之前,还包括:Optionally, before the receiving multiple advertisement placement requests from multiple terminal programs and storing the received multiple advertisement placement requests into a preset message queue, the method further includes:

收集与至少一个广告业务的广告素材;其中,所述广告素材包括:文字素材、图片素材和/或音频素材;Collect advertising materials related to at least one advertising business; wherein, the advertising materials include: text materials, picture materials and/or audio materials;

通过预先构建的素材拼接组件基于预设拼接规则将所述广告素材拼接为广告投放文件,并将所述广告投放文件存储至预设的存储目录。Using a pre-built material splicing component based on preset splicing rules, splicing the advertisement material into an advertisement placement file, and storing the advertisement placement file in a preset storage directory.

根据本发明的另一个方面,还提供了一种广告投放请求的处理装置,包括:According to another aspect of the present invention, an apparatus for processing an advertisement placement request is also provided, comprising:

接收模块,配置为接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;a receiving module, configured to receive multiple advertisement placement requests from multiple terminal programs, and store the received multiple advertisement placement requests into a preset message queue;

处理模块,配置为依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件;a processing module, configured to sequentially process the advertisement placement requests in the message queue, and obtain an advertisement placement file corresponding to each advertisement placement request;

返回模块,配置为将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。The returning module is configured to return the advertisement delivery files corresponding to the advertisement delivery requests to the corresponding terminal programs respectively, and each terminal program loads and displays the received advertisement delivery files.

可选地,所述装置还包括:Optionally, the device further includes:

响应模块,配置为对所述消息队列中的所述广告投放请求进行异步处理,向发送各所述广告投放请求的终端程序分别返回请求接收成功的响应信息;a response module, configured to asynchronously process the advertisement placement request in the message queue, and return response information of successful request reception to the terminal program that sends each advertisement placement request;

其中,所述响应信息中携带有默认投放文件。Wherein, the response information carries a default delivery file.

可选地,所述返回模块还配置为:Optionally, the return module is further configured to:

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件加载并替换所述默认投放文件进行显示。The advertisement delivery files corresponding to the advertisement delivery requests are respectively returned to the corresponding terminal programs, and each terminal program loads the received advertisement delivery files and replaces the default delivery files for display.

可选地,所述处理模块还配置为:Optionally, the processing module is further configured to:

依次读取所述消息队列中的广告投放请求;Read the ad serving requests in the message queue in sequence;

从预设广告素材库获取至少一个广告素材,按照预设拼接规则将所述广告素材拼接为所述广告投放请求的广告投放文件。Acquire at least one advertisement material from a preset advertisement material library, and splicing the advertisement material into an advertisement delivery file of the advertisement delivery request according to a preset splicing rule.

可选地,所述处理模块还配置为:Optionally, the processing module is further configured to:

基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件。Based on the request time of the advertisement placement request in the message queue, the specified storage locations are accessed in batches, and the advertisement placement files corresponding to each advertisement placement request are respectively obtained from the specified storage location.

可选地,所述处理模块还配置为:Optionally, the processing module is further configured to:

基于所述多个广告投放请求访问预先构建的素材拼接组件的存储目录,从所述素材拼接组件的存储目录中获取与各广告投放请求对应的广告投放文件。Access a pre-built storage directory of the material splicing component based on the plurality of advertisement placing requests, and obtain an advertisement placing file corresponding to each advertisement placing request from the storage directory of the material splicing component.

可选地,所述装置还包括:Optionally, the device further includes:

拼接模块,配置为收集与至少一个广告业务的广告素材;其中,所述广告素材包括:文字素材、图片素材和/或音频素材;A splicing module, configured to collect advertising materials related to at least one advertisement service; wherein, the advertising materials include: text materials, picture materials and/or audio materials;

通过预先构建的素材拼接组件基于预设拼接规则将所述广告素材拼接为广告投放文件,并将所述广告投放文件存储至预设的存储目录。Using a pre-built material splicing component based on preset splicing rules, splicing the advertisement material into an advertisement placement file, and storing the advertisement placement file in a preset storage directory.

根据本发明的另一个方面,还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行上述任一项所述的广告投放请求的处理方法。According to another aspect of the present invention, there is also provided a computer storage medium, the computer storage medium stores computer program code, when the computer program code is executed on a computing device, causes the computing device to execute any one of the above The method for processing the ad serving request described in item .

根据本发明的另一个方面,还提供了一种计算设备,包括:According to another aspect of the present invention, there is also provided a computing device, comprising:

处理器;processor;

存储有计算机程序代码的存储器;memory in which computer program code is stored;

当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行上述任一项所述的广告投放请求的处理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for processing an advertisement placement request described in any one of the above.

本发明提供了一种效率更高的广告投放请求的处理方法及装置,在本发明实施例提供的方法中,接收到来自多个终端程序的多个广告投放请求后,会先将其存入预设的消息队列中,进而再对消息队列中的多个广告投放请求进行处理,即访问指定存储位置获取对应的广告投放文件,并下发至发送各广告投放请求的终端程序进行加载显示。本发明实施例提供的方法基于本发明提供的方法,通过消息队列对高并发的多个广告文件投放请求进行存储管理,可以实现广告投放请求的可靠性以及不重复的传输,同时还可以基于消息队列的异步处理方式对大量的广告投放请求进行处理,进一步提升广告投放请求的处理效率,在减少请求响应时间的同时提升广告业务的投放质量。The present invention provides a method and device for processing an advertisement placement request with higher efficiency. In the method provided by the embodiment of the present invention, after receiving multiple advertisement placement requests from multiple terminal programs, they will be stored in the In the preset message queue, multiple advertisement placement requests in the message queue are processed, that is, the corresponding advertisement placement file is obtained by accessing the designated storage location, and then sent to the terminal program that sends each advertisement placement request for loading and display. The method provided by the embodiment of the present invention is based on the method provided by the present invention. The message queue is used to store and manage multiple highly concurrent advertisement file delivery requests, so as to realize the reliability and non-repetitive transmission of advertisement delivery requests. The asynchronous processing method of the queue processes a large number of ad serving requests, further improves the processing efficiency of ad serving requests, and improves the serving quality of ad services while reducing the request response time.

上述说明仅是本发明技术方案的概述,为了能够更清楚了解本发明的技术手段,而可依照说明书的内容予以实施,并且为了让本发明的上述和其它目的、特征和优点能够更明显易懂,以下特举本发明的具体实施方式。The above description is only an overview of the technical solutions of the present invention, in order to be able to understand the technical means of the present invention more clearly, it can be implemented according to the content of the description, and in order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand , the following specific embodiments of the present invention are given.

根据下文结合附图对本发明具体实施例的详细描述,本领域技术人员将会更加明了本发明的上述以及其他目的、优点和特征。The above and other objects, advantages and features of the present invention will be more apparent to those skilled in the art from the following detailed description of the specific embodiments of the present invention in conjunction with the accompanying drawings.

附图说明Description of drawings

通过阅读下文优选实施方式的详细描述,各种其他的优点和益处对于本领域普通技术人员将变得清楚明了。附图仅用于示出优选实施方式的目的,而并不认为是对本发明的限制。而且在整个附图中,用相同的参考符号表示相同的部件。在附图中:Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are for the purpose of illustrating preferred embodiments only and are not to be considered limiting of the invention. Also, the same components are denoted by the same reference numerals throughout the drawings. In the attached image:

图1是根据本发明实施例的广告投放请求处理方法流程示意图;1 is a schematic flowchart of a method for processing an advertisement placement request according to an embodiment of the present invention;

图2是根据本发明优选实施例的广告投放请求处理方法流程示意图;2 is a schematic flowchart of a method for processing an advertisement placement request according to a preferred embodiment of the present invention;

图3是根据本发明实施例的广告投放请求处理装置结构示意图;3 is a schematic structural diagram of an apparatus for processing an advertisement placement request according to an embodiment of the present invention;

图4是根据本发明优选实施例的广告投放请求处理装置结构示意图。FIG. 4 is a schematic structural diagram of an apparatus for processing an advertisement placement request according to a preferred embodiment of the present invention.

具体实施方式Detailed ways

下面将参照附图更详细地描述本公开的示例性实施例。虽然附图中显示了本公开的示例性实施例,然而应当理解,可以以各种形式实现本公开而不应被这里阐述的实施例所限制。相反,提供这些实施例是为了能够更透彻地理解本公开,并且能够将本公开的范围完整的传达给本领域的技术人员。Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that the present disclosure will be more thoroughly understood, and will fully convey the scope of the present disclosure to those skilled in the art.

图1是根据本发明实施例提供的广告投放请求的处理方法流程示意图,参见图1可知,本发明实施例提供的广告投放请求的处理方法可以包括:FIG. 1 is a schematic flowchart of a processing method for an advertisement placement request provided according to an embodiment of the present invention. Referring to FIG. 1, it can be seen that the processing method for an advertisement placement request provided by an embodiment of the present invention may include:

步骤S102,接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;Step S102, receiving multiple advertisement placement requests from multiple terminal programs, and storing the received multiple advertisement placement requests into a preset message queue;

步骤S104,依次对消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件;Step S104, processing the advertisement placement requests in the message queue in turn, and acquiring the advertisement placement files corresponding to each advertisement placement request;

步骤S106,将与各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。In step S106, the advertisement placement files corresponding to the advertisement placement requests are returned to the corresponding terminal programs respectively, and each terminal program loads and displays the received advertisement placement files.

本发明实施例提供了一种效率更高的广告投放请求的处理方法,在接收到来自多个终端程序的多个广告投放请求后,会先将其存入预设的消息队列中,进而再对消息队列中的多个广告投放请求进行处理,获取对应的广告投放文件,并下发至发送各广告投放请求的终端程序进行加载显示。本发明实施例提供的方法基于本发明实施例提供的方法,通过消息队列(MQ,message queue)对高并发的多个广告文件投放请求进行存储管理,可以实现广告投放请求的可靠性以及不重复的传输,同时还可以基于消息队列的异步处理方式对大量的广告投放请求进行处理,进一步提升广告投放请求的处理效率,在减少请求响应时间的同时提升广告业务的投放质量。本发明实施例提供的方案可应用于SSP Sell-SidePlatform,供应方平台)广告投放引擎,或是其他平台的广告投放系统。The embodiment of the present invention provides a more efficient processing method for advertisement placement requests. After receiving multiple advertisement placement requests from multiple terminal programs, they will be stored in a preset message queue, and then Process multiple advertisement placement requests in the message queue, obtain corresponding advertisement placement files, and deliver them to the terminal program that sends each advertisement placement request for loading and display. The method provided by the embodiment of the present invention is based on the method provided by the embodiment of the present invention, and uses a message queue (MQ, message queue) to store and manage multiple high-concurrency advertisement file delivery requests, which can realize the reliability and non-repetition of advertisement delivery requests. At the same time, it can process a large number of advertisement delivery requests based on the asynchronous processing method of message queue, which further improves the processing efficiency of advertisement delivery requests, and improves the delivery quality of advertising services while reducing the request response time. The solutions provided by the embodiments of the present invention can be applied to SSP Sell-SidePlatform (supplier platform) advertising delivery engine, or advertising delivery systems of other platforms.

上述实施例提及的终端程序可以是设置于终端设备中的任意一款应用程序。当终端设备的用户触发在终端设备中设置的任意一款应用程序时(点击打开或是点击应用程序中的某项业务功能),即表示发送了广告投放请求。另外,上述广告投放请求可以是基于同一广告业务的广告投放请求或是不同广告业务的广告投放请求,本发明不做限定。The terminal program mentioned in the above embodiment may be any application program set in the terminal device. When the user of the terminal device triggers any application program set in the terminal device (click to open or click a certain business function in the application program), it means that an advertisement placement request is sent. In addition, the above advertisement placement request may be an advertisement placement request based on the same advertisement service or an advertisement placement request of different advertisement services, which is not limited in the present invention.

上述步骤S102提及,在接收到多个广告投放请求后,可先将其存入预设的消息队列,即MQ消息队列,进一步地,可利用消息对列对存储的广告投放文件进行异步处理。可选地,在上述步骤S104之前,还可以包括:对消息队列中的多个广告投放请求进行异步处理,向发送各广告投放请求的终端程序分别返回请求接收成功的响应信息。As mentioned in the above step S102, after multiple advertisement placement requests are received, they may be stored in a preset message queue, that is, an MQ message queue, and further, the stored advertisement placement files may be processed asynchronously by using the message pair column. . Optionally, before the above step S104, the method may further include: asynchronously processing multiple advertisement placement requests in the message queue, and returning response information of successful request reception to the terminal program that sends each advertisement placement request.

一般情况下,在接收到广告投放请求后,会先基于请求进行对应的广告投放文件的拼接,再将拼接好的广告投放文件作为响应信息返回至终端程序。但是对于高并发的广告投放请求来讲,采用上述方案的弊端更加明显,整体进程慢且效率低。基于本发明实施例提供的方法,在接收并将广告投放请求存入消息队列后,可先向终端程序返回请求成功的响应信息,与此同时,还可以在该响应信息中携带默认投放文件,终端程序接收到该默认投放文件后可先进行加载显示,基于此,可减少终端程序对广告投放文件的等待时间,进而提升终端程序的使用者的视觉体验。其中,默认投放文件可以是针对任意一个广告业务的广告投放文件,也可以是公益性的、或基于当前时间所属特殊节日的投放文件,如春节时期投放带有中国结的图片、植树节投放种树的动图等投放文件,其可以设置多个,以针对不同的终端程序或终端程序所属移动终端型号、用户信息等进行选取下发,本发明不做限定。Generally, after receiving an advertisement delivery request, the corresponding advertisement delivery files will be spliced based on the request, and then the spliced advertisement delivery files will be returned to the terminal program as response information. However, for highly concurrent ad serving requests, the disadvantages of using the above solution are more obvious, and the overall process is slow and inefficient. Based on the method provided by the embodiment of the present invention, after receiving and storing the advertisement delivery request in the message queue, the response information of the successful request can be returned to the terminal program first, and at the same time, the default delivery file can also be carried in the response information, After receiving the default delivery file, the terminal program can load and display it first. Based on this, the waiting time of the terminal program for the advertisement delivery file can be reduced, thereby improving the visual experience of the user of the terminal program. Among them, the default delivery file can be an advertisement delivery file for any advertising business, or it can be a public welfare, or a delivery file based on a special festival that belongs to the current time, such as a picture with a Chinese knot during the Spring Festival, and a tree planting during the Arbor Day. There can be multiple delivery files such as moving pictures, etc., which can be set to select and deliver different terminal programs or mobile terminal models to which the terminal programs belong, user information, etc., which is not limited in the present invention.

在上述实施例中,是先向基于广告投放请求下发的默认投放文件,而并非是实际广告投放文件。可选地,在向发送各终端程序分别返回请求接收成功的响应信息之后,可继续执行上述步骤S104,依次对广告投放请求进行处理并获取与各广告投放请求对应的广告投放文件。当获取广告投放文件之后,就可以将与多个广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件加载并替换默认投放文件进行显示。In the above embodiment, the default delivery file issued based on the advertisement delivery request is first sent, rather than the actual advertisement delivery file. Optionally, after returning to each sending terminal program the response information of the successful reception of the request, the above step S104 may be continued to process the advertisement placement requests in sequence and obtain the advertisement placement files corresponding to each advertisement placement request. After the advertisement delivery files are obtained, the advertisement delivery files corresponding to the multiple advertisement delivery requests can be returned to the corresponding terminal programs respectively, and each terminal program loads the received advertisement delivery files and replaces the default delivery files for display.

可选地,对消息队列中的多个广告投放请求进行处理可以包括两种方式:Optionally, the processing of multiple ad serving requests in the message queue may include two ways:

第一种方式,实时拼接广告投放文件,即,依次读取消息队列中的广告投放请求;从预设广告素材库获取至少一个广告素材,按照预设拼接规则将上述广告素材拼接为广告投放请求的广告投放文件。在进行广告投放文件拼接之前,可以先收集到与广告业务相关的广告素材,并构建广告素材库进行存储;广告素材库中的广告素材可以基于广告素材的类型进行存储,如音频、视频、图片、文字等类型进行存储,而在每个类型下面还可以根据广告素材的含义或是特征属性进行进一步分类存储,以供素材拼接组件进行随时调用;还可以根据广告业务的不同进行存储。The first method is to splicing advertisement delivery files in real time, that is, sequentially reading the advertisement delivery requests in the message queue; obtaining at least one advertisement material from a preset advertising material library, and splicing the above advertisement materials into an advertisement delivery request according to the preset splicing rules 's ad serving file. Before splicing the ad serving files, you can first collect the creative materials related to the advertising business, and build a creative material library for storage; the creative materials in the creative material library can be stored based on the type of the creative material, such as audio, video, picture , text and other types of storage, and under each type can be further classified and stored according to the meaning or characteristic attributes of the creative material for the material splicing component to call at any time; it can also be stored according to different advertising services.

上文提及,在广告投放文件的拼接过程中,会根据预设拼接规则将广告素材拼接为终端程序的广告投放文件。也就是说,对于不同的广告投放文件,其最终呈现的形式可能是由多个广告素材按照一定的规则拼接而成。例如,一组广告素材中包括一张大图、一张小图以及一串文本,在进行广告素材拼接时,可根据广告主的需要设置拼接规则,该拼接规则即代表各图片以及文本的相对位置、大小等参数。因此,本发明实施例中的预设拼接规则可根据对应广告主的不同需要、广告的业务类型、或是终端程序所属终端设备的槽位配置进行设置,是对广告素材的组合方式、各广告素材的尺寸比例、相对位置以及显示方式的相关规则,本发明不做明确限定。通过对广告投放请求的实时处理,拼接广告投放文件,可以有效满足终端程序的需求,并且对广告投放文件进行及时更新。As mentioned above, during the splicing process of the advertisement delivery files, the advertisement materials will be spliced into the advertisement delivery files of the terminal program according to the preset splicing rules. That is to say, for different ad serving files, the final presentation form may be formed by splicing multiple creatives according to certain rules. For example, a group of creatives includes a large image, a small image and a string of text. When splicing creatives, splicing rules can be set according to the needs of the advertiser. The splicing rules represent the relative position and size of each image and text. and other parameters. Therefore, the preset splicing rules in this embodiment of the present invention can be set according to the different needs of the corresponding advertisers, the business type of the advertisement, or the slot configuration of the terminal device to which the terminal program belongs. The relevant rules of the size ratio, relative position and display mode of the material are not explicitly limited in the present invention. Through the real-time processing of the advertisement delivery request and the splicing of the advertisement delivery file, the requirements of the terminal program can be effectively met, and the advertisement delivery file can be updated in time.

第二种方式,获取已有广告投放文件。即,基于消息队列中的广告投放请求的请求时间批量访问指定存储位置,从指定存储位置分别获取与各广告投放请求对应的广告投放文件。The second method is to obtain an existing advertisement serving file. That is, the specified storage locations are accessed in batches based on the request time of the advertisement placement requests in the message queue, and the advertisement placement files corresponding to each advertisement placement request are respectively obtained from the specified storage locations.

其中,指定存储位置可以是预先创建的用于存储针对不同广告业务的广告投放文件的存储目录,或是其他存储有广告投放文件的组件,本发明不做限定。实际应用中,可以基于消息队列中的广告投放请求的请求时间批量访问指定存储位置,从指定存储位置分别获取与多个广告投放请求对应的广告投放文件。由于消息队列中所存储的是大量的广告投放请求,本发明实施例采用批量访问的方式,可以进一步节省访问时间,进而提升广告投放请求的整体处理效率。The specified storage location may be a pre-created storage directory for storing advertisement placement files for different advertising services, or other components that store advertisement placement files, which is not limited in the present invention. In practical applications, the specified storage locations can be accessed in batches based on the request time of the advertisement placement requests in the message queue, and the advertisement placement files corresponding to the multiple advertisement placement requests can be obtained from the specified storage locations respectively. Since a large number of advertisement placement requests are stored in the message queue, the embodiment of the present invention adopts a batch access method, which can further save access time, thereby improving the overall processing efficiency of advertisement placement requests.

前文介绍,访问广告投放文件时,可以基于其他存储有广告投放文件的组件处进行获取。在本发明一可选实施例中,可以独立广告投放引擎设置素材拼接组件,以将广告素材拼接为广告投放文件。因此,上述步骤S104可以进一步包括:基于多个广告投放请求访问预先构建的素材拼接组件的存储目录,从该素材拼接组件的存储目录中获取与多个广告投放请求对应的广告投放文件。As mentioned above, when accessing the advertisement delivery file, it can be obtained based on other components that store the advertisement delivery file. In an optional embodiment of the present invention, a material splicing component can be set up independently of the advertisement delivery engine, so as to splicing the advertisement materials into an advertisement delivery file. Therefore, the above step S104 may further include: accessing a pre-built storage directory of the material splicing component based on multiple advertisement placing requests, and obtaining advertisement placing files corresponding to the multiple advertisement placing requests from the storage directory of the material splicing component.

在本实施例中,广告投放文件是从向预先构建的素材拼接组件获取。因此,在上述步骤S104之前,还可以包括:In this embodiment, the advertisement delivery file is obtained from a pre-built material splicing component. Therefore, before the above step S104, it can also include:

S1,收集与至少一个广告业务相关的广告素材;其中,广告素材包括:文字素材、图片素材和/或音频素材;其中,广告业务的广告素材从预设广告素材库中获取,可以由业务人员进行上传,或是基于网络收集多种类型的广告素材,本发明不做限定。S1. Collect advertising materials related to at least one advertising service; wherein, the advertising materials include: text materials, picture materials and/or audio materials; wherein, the advertising materials of the advertising business are obtained from a preset advertising material library, which can be provided by business personnel Uploading or collecting various types of advertising materials based on the network is not limited in the present invention.

S2,通过预先构建的素材拼接组件基于预设拼接规则将上述广告素材拼接为广告投放文件。S2, splicing the above-mentioned advertising materials into an advertisement serving file based on a preset splicing rule by using a pre-built material splicing component.

上文提及,在广告投放文件的拼接过程中,会根据预设拼接规则将广告素材拼接为终端程序的广告投放文件。也就是说,对于不同的广告投放文件,其最终呈现的形式可能是由多个广告素材按照一定的规则拼接而成。例如,一组广告素材中包括一张大图、一张小图以及一串文本,在进行广告素材拼接时,可根据广告主的需要设置拼接规则,该拼接规则即代表各图片以及文本的相对位置、大小等参数。因此,本发明实施例中的预设拼接规则可根据对应广告主的不同需要、广告的业务类型、或是终端程序所属终端设备的槽位配置进行设置,是对广告素材的组合方式、各广告素材的尺寸比例、相对位置以及显示方式的相关规则,本发明不做明确限定。可选地,当素材拼接组件基于预设拼接规则将选取的广告素材拼接为广告投放文件之后,还可以将上述广告投放文件存储至预设的存储目录,以供随时调用。As mentioned above, during the splicing process of the advertisement delivery files, the advertisement materials will be spliced into the advertisement delivery files of the terminal program according to the preset splicing rules. That is to say, for different ad serving files, the final presentation form may be formed by splicing multiple creatives according to certain rules. For example, a group of creatives includes a large image, a small image and a string of text. When splicing creatives, splicing rules can be set according to the needs of the advertiser. The splicing rules represent the relative position and size of each image and text. and other parameters. Therefore, the preset splicing rules in this embodiment of the present invention can be set according to the different needs of the corresponding advertisers, the business type of the advertisement, or the slot configuration of the terminal device to which the terminal program belongs. The relevant rules of the size ratio, relative position and display mode of the material are not explicitly limited in the present invention. Optionally, after the material splicing component splices the selected advertisement material into an advertisement delivery file based on a preset splicing rule, the above-mentioned advertisement delivery file may also be stored in a preset storage directory for calling at any time.

上述实施例中介绍,主要是基于素材拼接组件对广告素材进行拼接,可选地,在上述步骤S2之前,还可以基于第三方控件构建执行广告素材拼接的素材拼接组件,并同时提供API服务。素材拼接组件是基于第三方控件(如Golang、spring框架)编译开发的拼接组件,基于该素材拼接组件可实现对广告素材的获取以及拼接,进而将拼接好的广告投放文件返回至广告投放引擎,由广告投放引擎下发至发送广告投放请求的终端程序进行加载显示。In the above-mentioned embodiments, the splicing of advertising materials is mainly based on the material splicing component. Optionally, before the above step S2, a material splicing component for performing splicing of advertising materials may also be constructed based on a third-party control, and API services are provided at the same time. The material splicing component is a splicing component compiled and developed based on third-party controls (such as Golang, spring framework). Based on this material splicing component, the acquisition and splicing of advertising materials can be realized, and then the spliced ad serving files are returned to the ad serving engine. It is sent by the advertisement delivery engine to the terminal program that sends the advertisement delivery request for loading and display.

图2示出了根据本发明优选实施例的广告投放请求的处理方法流程示意图,可应用于广告投放引擎,假设终端程序1~N同时被不同的用户触发:2 shows a schematic flowchart of a processing method for an advertisement placement request according to a preferred embodiment of the present invention, which can be applied to an advertisement placement engine, assuming that terminal programs 1 to N are triggered by different users at the same time:

1、终端程序1~N在被用户触发时向广告投放引擎发送广告投放请求;1. The terminal programs 1 to N send an advertisement delivery request to the advertisement delivery engine when triggered by the user;

2、广告投放引擎接收终端程序1~N发送的广告投放请求,并向终端程序1~N返回请求接收成功的响应信息,同时在响应信息中携带默认投放文件;在下发默认投放文件时,可以基于各终端程序的版本以及所属移动终端的型号、显示屏的大小等信息进行投放;终端程序1~N各自接收到对应的默认投放文件后进行加载显示;例如可以在儿童节时下发具有儿童玩耍的图像信息、在植树节时下发有树木的图像信息等等,依据当前时间以及环境进行下发;2. The advertisement delivery engine receives the advertisement delivery request sent by the terminal programs 1 to N, and returns the response information of the successful reception of the request to the terminal programs 1 to N, and carries the default delivery file in the response information; when delivering the default delivery file, you can Based on the version of each terminal program, the model of the mobile terminal to which it belongs, the size of the display screen and other information; the terminal programs 1 to N each receive the corresponding default delivery file and then load and display; image information, image information of trees distributed during the Arbor Day, etc., distributed according to the current time and environment;

3、广告投放引擎将来自终端程序1~N的广告投放请求放入消息队列;3. The advertisement delivery engine puts the advertisement delivery requests from terminal programs 1 to N into the message queue;

4、对消息队列中的广告投放请求进行并行处理;4. Parallel processing of advertisement delivery requests in the message queue;

举例来讲,对终端程序1发送的广告投放请求进行处理时,可以先解析发送广告投放请求的终端程序以及相关信息,如版本信息、所属应用终端信息以及用户画像等相关信息,基于上述信息在预设广告素材库获取至少一个广告素材,对所获取到的广告素材进行拼接后得到广告投放文件,将该广告投放文件发送至终端程序1,由终端程序1将该广告投放文件替换默认投放文件后进行加载显示。For example, when processing the advertisement placement request sent by terminal program 1, the terminal program that sent the advertisement placement request and related information, such as version information, application terminal information, user portrait and other related information, can be parsed first. The preset advertising material library acquires at least one advertising material, splices the acquired advertising materials to obtain an advertising delivery file, sends the advertising delivery file to the terminal program 1, and the terminal program 1 replaces the advertising delivery file with the default delivery file After loading display.

除上述介绍的之外,广告投放引擎还可以向独立设置的素材拼接组件直接请求已经拼接好的广告投放文件,进而节省广告拼接时间,提升广告投放请求的处理效率。In addition to the above, the ad serving engine can also directly request the spliced ad serving files from the independently set material splicing component, thereby saving ad splicing time and improving the processing efficiency of ad serving requests.

基于同一发明构思,本发明实施例还提供了一种广告投放请求的处理装置,如图3所示,根据本发明实施例提供的广告投放请求的处理装置可以包括:Based on the same inventive concept, an embodiment of the present invention also provides an apparatus for processing an advertisement placement request. As shown in FIG. 3 , the apparatus for processing an advertisement placement request provided according to the embodiment of the present invention may include:

接收模块310,配置为接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;The receiving module 310 is configured to receive multiple advertisement placement requests from multiple terminal programs, and store the received multiple advertisement placement requests into a preset message queue;

处理模块320,配置为依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件;The processing module 320 is configured to sequentially process the advertisement placement requests in the message queue, and obtain an advertisement placement file corresponding to each advertisement placement request;

返回模块330,配置为将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。The returning module 330 is configured to return the advertisement delivery files corresponding to the advertisement delivery requests to the corresponding terminal programs respectively, and each terminal program loads and displays the received advertisement delivery files.

在本发明一可选实施例中,如图4所示,上述装置还可以包括:In an optional embodiment of the present invention, as shown in FIG. 4 , the above-mentioned apparatus may further include:

响应模块340,配置为对所述消息队列中的所述广告投放请求进行异步处理,向发送各所述广告投放请求的终端程序分别返回请求接收成功的响应信息;The response module 340 is configured to asynchronously process the advertisement placement request in the message queue, and return response information of successful request reception to the terminal program that sends each advertisement placement request;

其中,所述响应信息中携带有默认投放文件。Wherein, the response information carries a default delivery file.

在本发明一可选实施例中,返回模块330还可以配置为:In an optional embodiment of the present invention, the return module 330 may also be configured as:

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件加载并替换所述默认投放文件进行显示。The advertisement delivery files corresponding to the advertisement delivery requests are respectively returned to the corresponding terminal programs, and each terminal program loads the received advertisement delivery files and replaces the default delivery files for display.

在本发明一可选实施例中,处理模块320还可以配置为:In an optional embodiment of the present invention, the processing module 320 may also be configured as:

依次读取所述消息队列中的广告投放请求;Read the ad serving requests in the message queue in sequence;

从预设广告素材库获取至少一个广告素材,按照预设拼接规则将所述广告素材拼接为所述广告投放请求的广告投放文件。Acquire at least one advertisement material from a preset advertisement material library, and splicing the advertisement material into an advertisement delivery file of the advertisement delivery request according to a preset splicing rule.

在本发明一可选实施例中,处理模块320还可以配置为:In an optional embodiment of the present invention, the processing module 320 may also be configured as:

基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件。Based on the request time of the advertisement placement request in the message queue, the specified storage locations are accessed in batches, and the advertisement placement files corresponding to each advertisement placement request are respectively obtained from the specified storage location.

在本发明一可选实施例中,处理模块320还可以配置为:In an optional embodiment of the present invention, the processing module 320 may also be configured as:

基于所述多个广告投放请求访问预先构建的素材拼接组件的存储目录,从所述素材拼接组件的存储目录中获取与各广告投放请求对应的广告投放文件。Access a pre-built storage directory of the material splicing component based on the plurality of advertisement placing requests, and obtain an advertisement placing file corresponding to each advertisement placing request from the storage directory of the material splicing component.

在本发明一可选实施例中,如图4所示,上述装置还可以包括:In an optional embodiment of the present invention, as shown in FIG. 4 , the above-mentioned apparatus may further include:

拼接模块350,配置为收集与至少一个广告业务的广告素材;其中,所述广告素材包括:文字素材、图片素材和/或音频素材;The splicing module 350 is configured to collect advertising materials related to at least one advertisement service; wherein, the advertising materials include: text materials, picture materials and/or audio materials;

通过预先构建的素材拼接组件基于预设拼接规则将所述广告素材拼接为广告投放文件,并将所述广告投放文件存储至预设的存储目录。Using a pre-built material splicing component based on preset splicing rules, splicing the advertisement material into an advertisement placement file, and storing the advertisement placement file in a preset storage directory.

基于同一发明构思,本发明实施例还提供了一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行上述任一实施例所述的广告投放请求的处理方法。Based on the same inventive concept, an embodiment of the present invention further provides a computer storage medium, where computer program codes are stored in the computer storage medium, and when the computer program codes are executed on a computing device, the computing device is caused to perform any of the above-mentioned tasks. A method for processing an advertisement placement request according to an embodiment.

基于同一发明构思,本发明实施例还提供了一种计算设备,包括:Based on the same inventive concept, an embodiment of the present invention also provides a computing device, including:

处理器;processor;

存储有计算机程序代码的存储器;memory in which computer program code is stored;

当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行上述任一实施例所述的广告投放请求的处理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for processing an advertisement placement request described in any of the foregoing embodiments.

本发明实施例提供了一种效率更高的广告投放请求的处理方法及装置,在接收到来自多个终端程序的多个广告投放请求后,会先将其存入预设的消息队列中,进而再对消息队列中的多个广告投放请求进行处理,获取对应的广告投放文件,并下发至发送各广告投放请求的终端程序进行加载显示。本发明实施例提供的方法基于本发明实施例提供的方法,基于消息队列的异步处理方式对大量的广告投放请求进行处理,进一步提升广告投放请求的处理效率,减少请求响应时间。另外,还可以通过两种方式对广告投放请求进行处理,进而在提升广告业务的投放质量的同时提升用户体验。Embodiments of the present invention provide a more efficient processing method and device for advertisement placement requests. After receiving multiple advertisement placement requests from multiple terminal programs, they will be stored in a preset message queue first, Further, multiple advertisement placement requests in the message queue are processed, corresponding advertisement placement files are obtained, and sent to the terminal program that sends each advertisement placement request for loading and display. The method provided by the embodiment of the present invention is based on the method provided by the embodiment of the present invention, and a large number of advertisement placement requests are processed based on the asynchronous processing method of the message queue, which further improves the processing efficiency of the advertisement placement request and reduces the request response time. In addition, the advertisement placement request can be processed in two ways, thereby improving the user experience while improving the placement quality of the advertisement service.

所属领域的技术人员可以清楚地了解到,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,为简洁起见,在此不另赘述。Those skilled in the art can clearly understand that, for the specific working processes of the systems, devices and units described above, reference may be made to the corresponding processes in the foregoing method embodiments, and for the sake of brevity, details are not described herein.

另外,在本发明各个实施例中的各功能单元可以物理上相互独立,也可以两个或两个以上功能单元集成在一起,还可以全部功能单元都集成在一个处理单元中。上述集成的功能单元既可以采用硬件的形式实现,也可以采用软件或者固件的形式实现。In addition, each functional unit in each embodiment of the present invention may be physically independent of each other, or two or more functional units may be integrated together, or all functional units may be integrated into one processing unit. The above-mentioned integrated functional units may be implemented in the form of hardware, and may also be implemented in the form of software or firmware.

本领域普通技术人员可以理解:所述集成的功能单元如果以软件的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,其包括若干指令,用以使得一台计算设备(例如个人计算机,服务器,或者网络设备等)在运行所述指令时执行本发明各实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM)、随机存取存储器(RAM),磁碟或者光盘等各种可以存储程序代码的介质。Those skilled in the art can understand that: if the integrated functional unit is implemented in the form of software and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on such understanding, the technical solution of the present invention or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, which includes several instructions to make a computer A computing device (such as a personal computer, a server, or a network device, etc.) executes all or part of the steps of the methods described in the embodiments of the present invention when running the instructions. The aforementioned storage medium includes: a U disk, a removable hard disk, a read only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk and other media that can store program codes.

或者,实现前述方法实施例的全部或部分步骤可以通过程序指令相关的硬件(诸如个人计算机,服务器,或者网络设备等的计算设备)来完成,所述程序指令可以存储于一计算机可读取存储介质中,当所述程序指令被计算设备的处理器执行时,所述计算设备执行本发明各实施例所述方法的全部或部分步骤。Alternatively, all or part of the steps of implementing the foregoing method embodiments may be accomplished by program instructions related to hardware (such as a personal computer, a server, or a computing device such as a network device), and the program instructions may be stored in a computer-readable storage In the medium, when the program instructions are executed by the processor of the computing device, the computing device executes all or part of the steps of the methods described in the embodiments of the present invention.

最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:在本发明的精神和原则之内,其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案脱离本发明的保护范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: Within the spirit and principle of the present invention, it is still possible to modify the technical solutions recorded in the foregoing embodiments, or to perform equivalent replacements for some or all of the technical features; and these modifications or replacements do not make the corresponding technical solutions deviate protection scope of the present invention.

根据本发明实施例的一个方面,提供了A1.一种广告投放请求的处理方法,包括:According to an aspect of the embodiments of the present invention, A1. A method for processing an advertisement placement request is provided, comprising:

接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;Receive multiple advertisement placement requests from multiple terminal programs, and store the received multiple advertisement placement requests into a preset message queue;

依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件;Process the advertisement placement requests in the message queue in sequence, and obtain an advertisement placement file corresponding to each advertisement placement request;

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。The advertisement placement files corresponding to the advertisement placement requests are respectively returned to the corresponding terminal programs, and each terminal program loads and displays the received advertisement placement files.

A2.根据A1所述的方法,其中,所述对所述消息队列中的多个广告投放请求进行处理,获取与所述多个广告投放请求对应的广告投放文件之前,还包括:A2. The method according to A1, wherein before the processing of multiple advertisement placement requests in the message queue and the acquisition of advertisement placement files corresponding to the multiple advertisement placement requests, the method further comprises:

对所述消息队列中的所述广告投放请求进行异步处理,向发送各所述广告投放请求的终端程序分别返回请求接收成功的响应信息;Perform asynchronous processing on the advertisement placement request in the message queue, and return response information of successful request reception to the terminal program that sends each advertisement placement request;

其中,所述响应信息中携带有默认投放文件。Wherein, the response information carries a default delivery file.

A3.根据A2所述的方法,其中,所述将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示,包括:A3. The method according to A2, wherein the advertisement placement files corresponding to the advertisement placement requests are respectively returned to the corresponding terminal programs, and each terminal program loads and displays the respectively received advertisement placement files, include:

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件加载并替换所述默认投放文件进行显示。The advertisement delivery files corresponding to the advertisement delivery requests are respectively returned to the corresponding terminal programs, and each terminal program loads the received advertisement delivery files and replaces the default delivery files for display.

A4.根据A1-3任一项所述的方法,其中,所述依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件,包括:A4. The method according to any one of A1-3, wherein the step of sequentially processing the advertisement placement requests in the message queue, and obtaining the advertisement placement files corresponding to each advertisement placement request, includes:

依次读取所述消息队列中的广告投放请求;Read the ad serving requests in the message queue in sequence;

从预设广告素材库获取至少一个广告素材,按照预设拼接规则将所述广告素材拼接为所述广告投放请求的广告投放文件。Acquire at least one advertisement material from a preset advertisement material library, and splicing the advertisement material into an advertisement delivery file of the advertisement delivery request according to a preset splicing rule.

A5.根据A1-3任一项所述的方法,其中,所述依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件,包括:A5. The method according to any one of A1-3, wherein the step of sequentially processing the advertisement placement requests in the message queue, and obtaining the advertisement placement files corresponding to each advertisement placement request, includes:

基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件。Based on the request time of the advertisement placement request in the message queue, the specified storage locations are accessed in batches, and the advertisement placement files corresponding to each advertisement placement request are respectively obtained from the specified storage location.

A6.根据A5所述的方法,其中,所述基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件,包括:A6. The method according to A5, wherein the specified storage location is accessed in batches based on the request time of the advertisement placement request in the message queue, and the advertisement placement file corresponding to each advertisement placement request is respectively obtained from the specified storage location ,include:

基于所述多个广告投放请求访问预先构建的素材拼接组件的存储目录,从所述素材拼接组件的存储目录中获取与各广告投放请求对应的广告投放文件。Access a pre-built storage directory of the material splicing component based on the plurality of advertisement placing requests, and obtain an advertisement placing file corresponding to each advertisement placing request from the storage directory of the material splicing component.

A7.根据A6所述的方法,其中,所述接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列之前,还包括:A7. The method according to A6, wherein the receiving multiple advertisement placement requests from multiple terminal programs, before storing the received multiple advertisement placement requests into a preset message queue, further comprises:

收集与至少一个广告业务的广告素材;其中,所述广告素材包括:文字素材、图片素材和/或音频素材;Collect advertising materials related to at least one advertising business; wherein, the advertising materials include: text materials, picture materials and/or audio materials;

通过预先构建的素材拼接组件基于预设拼接规则将所述广告素材拼接为广告投放文件,并将所述广告投放文件存储至预设的存储目录。Using a pre-built material splicing component based on preset splicing rules, splicing the advertisement material into an advertisement placement file, and storing the advertisement placement file in a preset storage directory.

根据本发明实施例的另一个方面,还提供了B8.一种广告投放请求的处理装置,包括:According to another aspect of the embodiments of the present invention, B8. an apparatus for processing an advertisement placement request is also provided, comprising:

接收模块,配置为接收来自多个终端程序的多个广告投放请求,将接收到的多个广告投放请求存入预设的消息队列;a receiving module, configured to receive multiple advertisement placement requests from multiple terminal programs, and store the received multiple advertisement placement requests into a preset message queue;

处理模块,配置为依次对所述消息队列中的广告投放请求进行处理,获取与各广告投放请求对应的广告投放文件;a processing module, configured to sequentially process the advertisement placement requests in the message queue, and obtain an advertisement placement file corresponding to each advertisement placement request;

返回模块,配置为将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件进行加载显示。The returning module is configured to return the advertisement delivery files corresponding to the advertisement delivery requests to the corresponding terminal programs respectively, and each terminal program loads and displays the received advertisement delivery files.

B9.根据B8所述的装置,其中,还包括:B9. The device according to B8, further comprising:

响应模块,配置为对所述消息队列中的所述广告投放请求进行异步处理,向发送各所述广告投放请求的终端程序分别返回请求接收成功的响应信息;a response module, configured to asynchronously process the advertisement placement request in the message queue, and return response information of successful request reception to the terminal program that sends each advertisement placement request;

其中,所述响应信息中携带有默认投放文件。Wherein, the response information carries a default delivery file.

B10.根据B9所述的装置,其中,所述返回模块还配置为:B10. The apparatus according to B9, wherein the return module is further configured to:

将与所述各广告投放请求对应的广告投放文件分别返回至对应的终端程序,由各终端程序对各自接收到的广告投放文件加载并替换所述默认投放文件进行显示。The advertisement delivery files corresponding to the advertisement delivery requests are respectively returned to the corresponding terminal programs, and each terminal program loads the received advertisement delivery files and replaces the default delivery files for display.

B11.根据B8-B10任一项所述的装置,其中,所述处理模块还配置为:B11. The apparatus according to any one of B8-B10, wherein the processing module is further configured to:

依次读取所述消息队列中的广告投放请求;Read the ad serving requests in the message queue in sequence;

从预设广告素材库获取至少一个广告素材,按照预设拼接规则将所述广告素材拼接为所述广告投放请求的广告投放文件。Acquire at least one advertisement material from a preset advertisement material library, and splicing the advertisement material into an advertisement delivery file of the advertisement delivery request according to a preset splicing rule.

B12.根据B8-B10任一项所述的装置,其中,所述处理模块还配置为:B12. The apparatus according to any one of B8-B10, wherein the processing module is further configured to:

基于所述消息队列中的广告投放请求的请求时间批量访问指定存储位置,从所述指定存储位置分别获取与各广告投放请求对应的广告投放文件。Based on the request time of the advertisement placement request in the message queue, the specified storage locations are accessed in batches, and the advertisement placement files corresponding to each advertisement placement request are respectively obtained from the specified storage location.

B13.根据B12所述的装置,其中,所述处理模块还配置为:B13. The apparatus according to B12, wherein the processing module is further configured to:

基于所述多个广告投放请求访问预先构建的素材拼接组件的存储目录,从所述素材拼接组件的存储目录中获取与各广告投放请求对应的广告投放文件。Access a pre-built storage directory of the material splicing component based on the plurality of advertisement placing requests, and obtain an advertisement placing file corresponding to each advertisement placing request from the storage directory of the material splicing component.

B14.根据B13所述的装置,其中,还包括:B14. The device according to B13, further comprising:

拼接模块,配置为收集与至少一个广告业务的广告素材;其中,所述广告素材包括:文字素材、图片素材和/或音频素材;A splicing module, configured to collect advertising materials related to at least one advertisement service; wherein, the advertising materials include: text materials, picture materials and/or audio materials;

通过预先构建的素材拼接组件基于预设拼接规则将所述广告素材拼接为广告投放文件,并将所述广告投放文件存储至预设的存储目录。Using a pre-built material splicing component based on preset splicing rules, splicing the advertisement material into an advertisement placement file, and storing the advertisement placement file in a preset storage directory.

根据本发明实施例的另一个方面,还提供了C15.一种计算机存储介质,所述计算机存储介质存储有计算机程序代码,当所述计算机程序代码在计算设备上运行时,导致所述计算设备执行A1-A7任一项所述的广告投放请求的处理方法。According to another aspect of the embodiments of the present invention, there is also provided C15. A computer storage medium, the computer storage medium stores computer program code, when the computer program code is executed on a computing device, causes the computing device Execute the method for processing an advertisement delivery request described in any one of A1-A7.

根据本发明实施例的另一个方面,还提供了D16.一种计算设备,包括:According to another aspect of the embodiments of the present invention, D16. A computing device is also provided, comprising:

处理器;processor;

存储有计算机程序代码的存储器;memory in which computer program code is stored;

当所述计算机程序代码被所述处理器运行时,导致所述计算设备执行A1-A7任一项所述的广告投放请求的处理方法。When the computer program code is executed by the processor, it causes the computing device to execute the method for processing an advertisement placement request described in any one of A1-A7.

Claims (10)

1. A method for processing an advertisement putting request comprises the following steps:
receiving a plurality of advertisement putting requests from a plurality of terminal programs, and storing the received advertisement putting requests into a preset message queue;
processing the advertisement putting requests in the message queue in sequence to obtain advertisement putting files corresponding to the advertisement putting requests;
and respectively returning the advertisement release files corresponding to the advertisement release requests to the corresponding terminal programs, and loading and displaying the advertisement release files received by the terminal programs.
2. The method of claim 1, wherein before processing the plurality of advertisement placement requests in the message queue and obtaining the advertisement placement files corresponding to the plurality of advertisement placement requests, the method further comprises:
asynchronously processing the advertisement putting requests in the message queue, and respectively returning response information of request receiving success to a terminal program which sends each advertisement putting request;
and the response information carries a default release file.
3. The method of claim 2, wherein the returning the advertisement delivery files corresponding to the advertisement delivery requests to the corresponding terminal programs respectively, and the loading and displaying of the advertisement delivery files received by the terminal programs respectively comprise:
and respectively returning the advertisement release files corresponding to the advertisement release requests to the corresponding terminal programs, and loading the received advertisement release files by the terminal programs and replacing the default release files for displaying.
4. The method according to any one of claims 1 to 3, wherein the sequentially processing the advertisement placement requests in the message queue to obtain the advertisement placement file corresponding to each advertisement placement request comprises:
sequentially reading the advertisement putting requests in the message queue;
and acquiring at least one advertisement material from a preset advertisement material library, and splicing the advertisement material into an advertisement delivery file of the advertisement delivery request according to a preset splicing rule.
5. The method according to any one of claims 1 to 3, wherein the sequentially processing the advertisement placement requests in the message queue to obtain the advertisement placement file corresponding to each advertisement placement request comprises:
and accessing specified storage positions in batch based on the request time of the advertisement putting requests in the message queue, and respectively acquiring the advertisement putting files corresponding to the advertisement putting requests from the specified storage positions.
6. The method of claim 5, wherein the accessing a specified storage location in batch based on the request time of the advertisement placement requests in the message queue, and respectively obtaining the advertisement placement files corresponding to the advertisement placement requests from the specified storage location comprises:
and accessing a pre-constructed storage directory of the material splicing component based on the plurality of advertisement putting requests, and acquiring advertisement putting files corresponding to the advertisement putting requests from the storage directory of the material splicing component.
7. The method of claim 6, wherein before receiving a plurality of advertisement placement requests from a plurality of terminal programs and storing the received plurality of advertisement placement requests in a predetermined message queue, the method further comprises:
collecting advertisement materials related to at least one advertisement service; wherein the advertising material comprises: text material, picture material and/or audio material;
the advertisement materials are spliced into the advertisement delivery files through the pre-constructed material splicing component based on the preset splicing rule, and the advertisement delivery files are stored in the preset storage directory.
8. An apparatus for processing advertisement placement requests, comprising:
the receiving module is configured to receive a plurality of advertisement putting requests from a plurality of terminal programs and store the received advertisement putting requests into a preset message queue;
the processing module is configured to sequentially process the advertisement putting requests in the message queue and acquire advertisement putting files corresponding to the advertisement putting requests;
and the return module is configured to return the advertisement release files corresponding to the advertisement release requests to the corresponding terminal programs respectively, and the terminal programs load and display the received advertisement release files respectively.
9. A computer storage medium having computer program code stored thereon which, when run on a computing device, causes the computing device to perform the method of processing an advertisement placement request of any of claims 1-7.
10. A computing device, comprising:
a processor;
a memory storing computer program code;
the computer program code, when executed by the processor, causes the computing device to perform a method of processing an ad placement request as claimed in any of claims 1-7.
CN201910209405.9A 2019-03-19 2019-03-19 A method and device for processing an advertisement placement request Pending CN111724179A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910209405.9A CN111724179A (en) 2019-03-19 2019-03-19 A method and device for processing an advertisement placement request

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910209405.9A CN111724179A (en) 2019-03-19 2019-03-19 A method and device for processing an advertisement placement request

Publications (1)

Publication Number Publication Date
CN111724179A true CN111724179A (en) 2020-09-29

Family

ID=72562970

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910209405.9A Pending CN111724179A (en) 2019-03-19 2019-03-19 A method and device for processing an advertisement placement request

Country Status (1)

Country Link
CN (1) CN111724179A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114022210A (en) * 2021-11-10 2022-02-08 深圳赛盒科技有限公司 Method and device for automatically delivering advertisements, computer readable medium and electronic equipment
CN114612157A (en) * 2022-03-21 2022-06-10 北京明略昭辉科技有限公司 Advertisement putting rule sending method and device, electronic equipment and storage medium
CN116248734A (en) * 2023-03-09 2023-06-09 深圳软牛科技有限公司 Report acquisition method and device based on google advertisement API and related medium thereof

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002041961A (en) * 2000-07-28 2002-02-08 Nippon Telegr & Teleph Corp <Ntt> Ad distribution system
JP2007041816A (en) * 2005-08-02 2007-02-15 Yasuhisa Marumo Advertisement distribution system
JP2009187383A (en) * 2008-02-07 2009-08-20 Yahoo Japan Corp Advertisement distribution apparatus, advertisement distribution system, and advertisement distribution method
CN101751408A (en) * 2008-11-28 2010-06-23 上海均宜信息科技有限公司 System and method of internet in text advertisements
CN102236867A (en) * 2011-08-15 2011-11-09 悠易互通(北京)广告有限公司 Cloud computing-based audience behavioral analysis advertisement targeting system
WO2012012342A2 (en) * 2010-07-19 2012-01-26 Mediamath, Inc. Systems and methods for determining competitive market values of an ad impression
CN103593791A (en) * 2013-11-07 2014-02-19 广州优蜜信息科技有限公司 Mobile advertisement putting method and system
CN103679498A (en) * 2012-09-21 2014-03-26 亿赞普(北京)科技有限公司 Method and system for pushing the information on network terminal
CN103959721A (en) * 2012-09-20 2014-07-30 华为技术有限公司 Advertisement launching method, device and system
CN104488274A (en) * 2012-04-09 2015-04-01 当代科技公司 Accelerating advertising decision resolution
CN106204150A (en) * 2016-07-15 2016-12-07 无锡天脉聚源传媒科技有限公司 A kind of method and device throwing in advertisement to mobile terminal
US20170091828A1 (en) * 2015-09-24 2017-03-30 Cox Media Group Digital Development, Inc. Optimization of online advertising bid requests and dynamic floor pricing
CN106656951A (en) * 2016-09-14 2017-05-10 乐视控股(北京)有限公司 Advertisement putting method, client, server and system
CN108074137A (en) * 2018-01-04 2018-05-25 北京奇虎科技有限公司 Mobile terminal and advertisement placement method and its control method, device
CN108256886A (en) * 2016-12-29 2018-07-06 北京奇虎科技有限公司 Advertisement placement method and device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002041961A (en) * 2000-07-28 2002-02-08 Nippon Telegr & Teleph Corp <Ntt> Ad distribution system
JP2007041816A (en) * 2005-08-02 2007-02-15 Yasuhisa Marumo Advertisement distribution system
JP2009187383A (en) * 2008-02-07 2009-08-20 Yahoo Japan Corp Advertisement distribution apparatus, advertisement distribution system, and advertisement distribution method
CN101751408A (en) * 2008-11-28 2010-06-23 上海均宜信息科技有限公司 System and method of internet in text advertisements
WO2012012342A2 (en) * 2010-07-19 2012-01-26 Mediamath, Inc. Systems and methods for determining competitive market values of an ad impression
CN102236867A (en) * 2011-08-15 2011-11-09 悠易互通(北京)广告有限公司 Cloud computing-based audience behavioral analysis advertisement targeting system
CN104488274A (en) * 2012-04-09 2015-04-01 当代科技公司 Accelerating advertising decision resolution
CN103959721A (en) * 2012-09-20 2014-07-30 华为技术有限公司 Advertisement launching method, device and system
CN103679498A (en) * 2012-09-21 2014-03-26 亿赞普(北京)科技有限公司 Method and system for pushing the information on network terminal
CN103593791A (en) * 2013-11-07 2014-02-19 广州优蜜信息科技有限公司 Mobile advertisement putting method and system
US20170091828A1 (en) * 2015-09-24 2017-03-30 Cox Media Group Digital Development, Inc. Optimization of online advertising bid requests and dynamic floor pricing
CN106204150A (en) * 2016-07-15 2016-12-07 无锡天脉聚源传媒科技有限公司 A kind of method and device throwing in advertisement to mobile terminal
CN106656951A (en) * 2016-09-14 2017-05-10 乐视控股(北京)有限公司 Advertisement putting method, client, server and system
CN108256886A (en) * 2016-12-29 2018-07-06 北京奇虎科技有限公司 Advertisement placement method and device
CN108074137A (en) * 2018-01-04 2018-05-25 北京奇虎科技有限公司 Mobile terminal and advertisement placement method and its control method, device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
金罗军;邓文雯;潘晶晶;: "广告:你移动了吗?――移动广告业务初探(下篇)", 中国数字电视, no. 08, 15 August 2010 (2010-08-15), pages 69 - 76 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114022210A (en) * 2021-11-10 2022-02-08 深圳赛盒科技有限公司 Method and device for automatically delivering advertisements, computer readable medium and electronic equipment
CN114022210B (en) * 2021-11-10 2025-07-11 深圳赛盒科技有限公司 Method, device, computer-readable medium and electronic device for automatically placing advertisements
CN114612157A (en) * 2022-03-21 2022-06-10 北京明略昭辉科技有限公司 Advertisement putting rule sending method and device, electronic equipment and storage medium
CN116248734A (en) * 2023-03-09 2023-06-09 深圳软牛科技有限公司 Report acquisition method and device based on google advertisement API and related medium thereof
CN116248734B (en) * 2023-03-09 2025-07-22 深圳软牛科技集团股份有限公司 Report acquisition method and device based on google advertisement API and related medium thereof

Similar Documents

Publication Publication Date Title
US8060625B2 (en) Method and system for providing media content over a computer network
CN110276636B (en) Advertisement batch delivery method and device, storage medium and electronic device
CN112231604B (en) A page display method, device, electronic device and storage medium
CN111724180A (en) Method and system for placing advertisements
US20160249085A1 (en) Device, system, and method of advertising for mobile electronic devices
US8126858B1 (en) System and method for delivering content to a communication device in a content delivery system
US20100313129A1 (en) Self-Expanding AD Unit
AU2008261865A1 (en) Systems and processes for presenting informational content
JPWO2002101700A1 (en) Advertisement insertion device, advertisement insertion method, and storage medium
JPWO2002101587A1 (en) ADVERTISEMENT SELECTION DEVICE, ADVERTISEMENT SELECTION METHOD, AND STORAGE MEDIUM
CA2293556A1 (en) Apparatus and method of generating a dynamic image on billboards and poster displays
CN111724179A (en) A method and device for processing an advertisement placement request
CN109087139B (en) Advertisement putting method and device for feed stream
US10290026B2 (en) Advertisement snapshot recorder
US20190104346A1 (en) Service processing method, device, and intelligent terminal
CN111724206B (en) Advertisement processing method, responsibility chain object generating method, apparatus, device and medium
US20240257179A1 (en) User interest detection for content generation
US8028233B1 (en) Interactive graphical interface including a streaming media component and method and system of producing the same
KR101830211B1 (en) Advertisement providing system and method for providing various link option
CN109801104A (en) A kind of advertising information methods of exhibiting of unaware
WO2017206417A1 (en) Page resource loading method, apparatus and system
CN112561549A (en) Advertisement generation method, advertisement delivery method, advertisement generation device and advertisement delivery device
CN114071382B (en) Message sending method and device
KR20150071757A (en) Method of Mobile advertising service and system using the same
CN109547953A (en) For the WebXR service enhancement method and device of short message

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