Method for providing, method for obtaining, device, equipment and storage medium for directional content

By selecting the adaptive template and content material in the client's targeted content rendering component to generate targeted content, the problem of fixed directional content style is solved, the flexibility and adaptability of directional content is achieved, and the display effect is improved.

CN114186546BActive Publication Date: 2025-01-10BIGO TECH PTE LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111537752.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2025-01-10
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

In the prior art, the style of the targeted content generated by the client is fixed and difficult to modify. The style of the targeted targeted content can only be changed by updating the client, which limits the flexibility and adaptability of the targeted content.

Method used

By setting up the target content rendering component on the client, receiving target scene parameters, selecting the appropriate template and rendering the content material, generating target targeted content, and achieving flexible layout and style adjustment of targeted content.

Benefits of technology

It realizes flexibility and change in targeted content, can adapt to the display environment of the target display position, improve display effect, and reduce the frequency of client updates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114186546B_ABST
    Figure CN114186546B_ABST
Patent Text Reader

Abstract

The embodiments of the present application disclose a method for providing, obtaining, device, equipment and storage medium for targeted content, and belong to the field of computer application technology. The method is executed by a targeted content rendering component arranged in a client, and the method includes: receiving a targeted content acquisition request from a client; in the case where the targeted content acquisition request includes a target scene parameter, based on the scene parameters respectively corresponding to at least one candidate template, selecting a template that matches the target scene parameter from the candidate templates as the target template; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameter is used to indicate the display scene corresponding to the target display position; rendering the content material based on the target template to generate the target targeted content for the target display position; and sending the target targeted content to the client. Determining the target template by the target scene parameter helps to improve the display effect of the target targeted content.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer application technology, and in particular to a method for providing, a method for obtaining, an apparatus, a device and a storage medium for directional content. Background Art

[0002] Displaying targeted content in the client can achieve the purpose of promoting the main information in the targeted content to users. Usually, a display position is set in the client, and the display position is used to display the targeted content.

[0003] In the related art, in order to make the targeted content displayed in the client match the tone of the target application, a fixed targeted content display style is set in the client. When there is a target display position in the client, the client requests the server to generate content materials for the target targeted content, and receives the content materials sent by the server. The client adjusts the content materials according to the fixed targeted content display style, generates the target targeted content, and displays the target targeted content on the target display position.

[0004] However, in the related art, the style of the target-oriented content generated by the client is fixed and difficult to modify. The style of the target-oriented content can only be changed by updating the client. Summary of the invention

[0005] The embodiment of the present application provides a method for providing targeted content, a method for obtaining content, an apparatus, a device, and a storage medium. The technical solution is as follows:

[0006] According to one aspect of an embodiment of the present application, a method for providing directional content is provided, the method being executed by a directional content rendering component disposed in a client, the method comprising:

[0007] receiving a targeted content acquisition request from the client, wherein the targeted content acquisition request is used to request display of targeted content at a target display position;

[0008] In the case where the targeted content acquisition request includes a target scene parameter, based on the scene parameters respectively corresponding to at least one candidate template, a template adapted to the target scene parameter is selected from the at least one candidate template as the target template; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameter is used to indicate the display scene corresponding to the target display position;

[0009] Rendering the content material based on the target template to generate target-oriented content for display at the target display position;

[0010] The targeted content is sent to the client.

[0011] According to one aspect of an embodiment of the present application, a method for acquiring targeted content is provided, the method being executed by a client, and the method comprising:

[0012] In response to a directional content display requirement of a target display position, determining a target scene parameter, wherein the target scene parameter is used to indicate a display scene corresponding to the target display position;

[0013] Sending a directional content acquisition request to a directional content rendering component disposed in the client, wherein the directional content acquisition request is used to request display of directional content at a target display position, and the directional content acquisition request includes the target scene parameter;

[0014] Receive target directional content from the directional content rendering component, wherein the target directional content is generated by rendering content material based on the target template after the directional content rendering component selects a template that matches the target scene parameters from the at least one candidate template as a target template based on scene parameters corresponding to the at least one candidate template.

[0015] According to one aspect of an embodiment of the present application, a device for providing targeted content is provided, the device comprising:

[0016] An acquisition module, configured to receive a directional content acquisition request from the client, wherein the directional content acquisition request is used to request to display directional content at a target display position;

[0017] A selection module, configured to select, when the targeted content acquisition request includes a target scene parameter, a template adapted to the target scene parameter from at least one candidate template based on the scene parameters respectively corresponding to the at least one candidate template, as the target template; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameter is used to indicate the display scene corresponding to the target display position;

[0018] A generation module, configured to render the content material based on the target template to generate target-oriented content for display at the target display position;

[0019] A sending module is used to send the target-oriented content to the client.

[0020] According to one aspect of an embodiment of the present application, a device for acquiring targeted content is provided, the device comprising:

[0021] A determination module, configured to determine a target scene parameter in response to a directional content display requirement of a target display position, wherein the target scene parameter is used to indicate a display scene corresponding to the target display position;

[0022] A sending module, configured to send a directional content acquisition request to a directional content rendering component provided in the client, wherein the directional content acquisition request is used to request display of directional content at a target display position, and the directional content acquisition request includes the target scene parameter;

[0023] A receiving module is used to receive target directional content from the directional content rendering component, wherein the target directional content is generated by rendering content material based on the target template after the directional content rendering component selects a template that matches the target scene parameters from at least one candidate template as a target template based on scene parameters corresponding to the at least one candidate template.

[0024] According to one aspect of an embodiment of the present application, a terminal device is provided, which includes a processor and a memory, in which a computer program is stored, and the processor executes the computer program to implement the above-mentioned method of providing content, or to implement the above-mentioned method of acquiring targeted content.

[0025] According to one aspect of an embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. The computer program is used to be executed by a processor to implement the above-mentioned method for providing targeted content, or to implement the above-mentioned method for acquiring targeted content.

[0026] According to one aspect of the present application, a computer program product is provided. When the computer program product is executed on a computer device, the computer device executes the above-mentioned method for providing targeted content or the above-mentioned method for acquiring targeted content.

[0027] The technical solution provided in the embodiments of the present application can bring the following beneficial effects:

[0028] Targeted content is generated through target templates and content materials, wherein the target template is used to control the layout of the targeted content, that is, the layout of the targeted content can be changed by simply changing the target template, making the layout of the targeted content flexible and easy to change. The target template is determined based on the target scene parameters corresponding to the target display position, so that the targeted content generated by the target template can adapt to the display environment around the target display position, which helps to improve the display effect of the target display position. At the same time, the targeted content is generated through the targeted content rendering component, so that the client with the targeted content rendering component can display targeted content of different styles, which is conducive to achieving high cohesion in the qualitative content generation process. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0030] Figure 1 It is a schematic diagram of an implementation environment of a solution provided by an embodiment of the present application;

[0031] Figure 2 is a flow chart of a method for providing targeted content provided by an embodiment of the present application;

[0032] Figure 3 is a schematic diagram of a control layout of a target template provided by an embodiment of the present application;

[0033] Figure 4 is a schematic diagram of a method for providing targeted content provided by an embodiment of the present application;

[0034] Figure 5 is a flow chart of a method for providing targeted content provided by an embodiment of the present application;

[0035] Figure 6 is a schematic diagram of a process for acquiring targeted content provided by an embodiment of the present application;

[0036] Figure 7 is a block diagram of a device for providing targeted content provided by an embodiment of the present application;

[0037] Figure 8 It is a block diagram of a device for acquiring targeted content provided by an embodiment of the present application. DETAILED DESCRIPTION

[0038] Before introducing the technical solution of this application, some background technical knowledge involved in this application is first introduced and explained. The following related technologies can be combined arbitrarily with the technical solution of the embodiment of this application as optional solutions, and they all belong to the protection scope of the embodiment of this application. The embodiment of this application includes at least part of the following contents.

[0039] Please refer to Figure 1 , which shows a schematic diagram of a solution implementation environment provided by an embodiment of the present application. The solution implementation environment may include a terminal device 110 and a server 120.

[0040] The terminal device 110 may be a device such as a computer, a mobile phone, a tablet computer, a smart TV, a camera, a car terminal, etc. The terminal device 110 is equipped with a target application, which may be a social application, a video playback application, and other applications with a targeted content display function. The type of application is not limited here. A client 112 of the target application is running on the terminal device 110. The client 112 has a display position, which is used to display targeted content. A targeted content rendering component 114 is provided on the client 112. The targeted content rendering component 114 can generate target targeted content based on the targeted content acquisition request of the client 112, and send the target targeted content to the client 112; it can also instruct the client 112 to generate the target targeted content by itself based on the targeted content acquisition demand of the client 112.

[0041] The server 120 has at least a transceiver function and a storage function. The server may be a background server of a target application, and is used to provide background services for the client of the target application. The server 120 may be a single server, or a server cluster consisting of multiple servers, or a cloud computing service center. The server 120 may provide content material and at least one template data for the directional content rendering component 114.

[0042] The directional content rendering component is used to generate directional content. The directional content rendering component can be set in different clients so that different clients can obtain the directional content generated by the directional content rendering component through the directional content acquisition request. In some embodiments, the implementation form of the directional content rendering component can be in the form of SDK (Software Development Kit). In some embodiments, the directional content refers to the content displayed in the client for providing recommended information to the user, and optionally, the recommended information is commercial information. For example, the directional content can be an advertisement, and the types of advertisements include but are not limited to picture advertisements, video advertisements, and interactive advertisements. The types of advertisements are determined according to actual needs, and this application is not limited here. Template data is used to obtain templates, and templates are used to indicate the layout information and attributes of the directional content. Content materials and templates can provide all information in the directional content.

[0043] Please refer to Figure 2 , which shows a flowchart of a method for providing targeted content provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 110 in the embodiment, such as the execution subject is the directional content rendering component 114 on the terminal device 110. The method may include at least one of the following steps (210-240):

[0044] Step 210: receiving a targeted content acquisition request from a client, where the targeted content acquisition request is used to request display of targeted content at a target display position.

[0045] In some embodiments, at least one display position is provided in the client. The display position is used to display targeted content. In some embodiments, the targeted content displayed in the display position can be replaced, that is, the targeted content displayed at different times for the same display position can be the same or different. In some embodiments, the target display position can refer to an idle display position that needs targeted content, or a display position that needs to update targeted content.

[0046] In some embodiments, a directional content rendering component provided on a client receives a directional content acquisition request from a client, and determines based on the directional content acquisition request that the client requests to display directional content at a target display position. The directional content rendering component may generate directional content based on the received directional content acquisition request. The directional content is used to be displayed at the target display position. For the specific process of the directional content rendering component generating directional content, please refer to the following embodiments.

[0047] The client of the target application can run on multiple terminal devices. For clients running on different terminal devices, the targeted content displayed on the same target display position may be the same or may not be completely the same. In other words, for targeted content rendering components set on different clients, the targeted content acquisition requests received by the corresponding clients may be completely the same, or the targeted content acquisition requests received by at least two targeted content rendering components may be different. By setting a targeted content rendering component on the client to be able to process targeted content acquisition requests from different clients, personalized display of the targeted content in the target display position is achieved.

[0048] Step 220, when the targeted content acquisition request includes the target scene parameter, based on the scene parameters corresponding to at least one candidate template, a template that matches the target scene parameter is selected from at least one candidate template as the target template; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameter is used to indicate the display scene corresponding to the target display position.

[0049] The directional content rendering component can determine the display scene of the target display position according to the target scene parameters. In some embodiments, the display scene is related to the type of the target application. For example, if the target application corresponding to the client belongs to a social application or an audio-visual media playback application, then the target display position in the client belongs to a feed display position. In some embodiments, the directional content rendering component can directly obtain the target scene parameters from the directional content acquisition request sent by the client; or after receiving the directional content acquisition request sent by the client, it can receive the target scene parameters sent by the client.

[0050] In some embodiments, the template belongs to an xml (Extensible Markup Language) file, and the template has at least one control. Different controls have different functions. The layout and properties of the directional content can be configured through at least one control in the template. The control can be used to display content information with specific attributes, such as a title control, a description control, a large picture control, a video playback control, etc.; it can also be used to respond to user operation behaviors, such as a call to action button, an ad choice button, etc. The template includes layout information of at least one control, and configuration information corresponding to the control, such as the display size, display color, format, border distance, etc. of the control. In some embodiments, the scene parameters corresponding to the template are used to indicate the applicable display scene of the template. The applicable display scene corresponding to the template includes but is not limited to the information flow template. In some embodiments, the scene parameters corresponding to the template are manually configured by the operator after the template is generated. In other embodiments, the scene parameters corresponding to the template are input into the neural network model after the template is generated. The template is obtained after clustering the template through the neural network model. The target template refers to a template that can adapt to the target scene parameters in at least one candidate template. The directional content rendering component can generate directional content based on the target template. For the process of determining the target template by the directional content rendering component, please refer to the following embodiment.

[0051] Step 230: Render the content material based on the target template to generate target-oriented content for display at the target display position.

[0052] In some embodiments, the content material has content information of at least one attribute. The content information includes, but is not limited to, title, description, large picture, video, etc. Rendering refers to the process of filling the content material into the template to generate targeted content that can be displayed. The targeted content rendering component renders the target template and content material to obtain the target targeted content, which is used to be displayed in the target display position. For the specific process of rendering, please refer to the following embodiment.

[0053] Step 240: Send the targeted content to the client.

[0054] After the targeted content rendering component obtains the targeted content through rendering, it sends the targeted content to the client. The client displays the received targeted content on the targeted display position.

[0055] In summary, the targeted content rendering component renders the content material based on the target template to generate targeted targeted content. The template is used to control the layout of the content material, that is, the layout of the targeted targeted content can be changed by simply changing the target template, so that the layout of the targeted targeted content is flexible and easy to change. The target template is determined based on the target scene parameters corresponding to the target display position, so that the targeted targeted content generated by the target template can be adapted to the display environment around the target display position, which helps to improve the display effect of the target display position. At the same time, by generating targeted content through the targeted content rendering component, clients that have set the targeted content rendering component can display targeted content of different styles, which is conducive to achieving high cohesion in the qualitative content generation process.

[0056] The process of determining the target template provided in this application is introduced and explained through several embodiments.

[0057] In some embodiments, after the targeted content rendering component receives the targeted content acquisition request from the client, it also includes: the targeted content rendering component sends a content acquisition request to the server, and the content acquisition request is used to request to obtain the targeted content displayed in the target display position; the targeted content rendering component receives the content material sent by the server and the template data corresponding to at least one candidate template, and the template data includes a template identifier, an acquisition address and scene parameters.

[0058] In some embodiments, the content acquisition request includes relevant information about the target application corresponding to the client of the set targeted content rendering component, such as the name of the target application, attribute tags, etc. In other embodiments, when the client allows the acquisition of user information, the content acquisition request may include, in addition to relevant information about the target application, relevant information about the user account corresponding to the client, such as the region information and preference information of the user account corresponding to the client. Including information related to the user account in the content acquisition request can provide the server with accurate information, making it easier for the server to determine at least one candidate template data from a large amount of template data, and at the same time making at least one candidate template data more consistent with the browsing habits of the user account, which helps to improve the click-through rate of the targeted targeted content displayed in the target display position.

[0059] In some embodiments, the directional content rendering component can request content materials and at least one candidate template from the server through a content acquisition request. For example, when the directional content is not displayed in the target display position, the directional content rendering component needs to request content materials and at least one candidate template from the server; for another example, when the directional content displayed in the target display position needs to be replaced, the directional content rendering component needs to request new content materials and at least one candidate template from the server. In other embodiments, the directional content rendering component may also only request at least one candidate template from the server. For example, when there is content material in the directional content rendering component, or the target display position needs to change the display form of the displayed directional content, the directional content rendering component may request at least one candidate template from the server through a content acquisition request. Through the above method, when content material is not needed, the directional content rendering component requests the server to obtain at least one candidate template through a content acquisition request to reduce the signaling consumption for data transmission with the server.

[0060] After receiving the content acquisition request sent by the targeted content rendering component, the server analyzes the content acquisition request, determines the template data corresponding to the content material and at least one candidate template, and sends the template data corresponding to the above content material and at least one candidate template to the targeted content rendering component.

[0061] The directional content rendering component receives the content material sent by the server and the template data corresponding to at least one candidate template, respectively. The template data includes a template identifier, an acquisition address, and a scene parameter. In some embodiments, the template data is used to obtain the corresponding template, the template identifier is an identity identifier used to identify the template, the acquisition address refers to the address of the storage space where the template is stored, and the scene parameter is used to indicate the applicable display scene of the template. A template can correspond to one scene parameter or multiple scene parameters. For example, the scene parameter in the template data corresponding to template 1 is 3, indicating that the applicable display scene of template 1 is display scene 3, and the scene parameters in the template data corresponding to template 2 are 1 and 3, indicating that the applicable display scenes of template 2 are display scene 1 and display scene 3. As can be seen from the above, the server may not directly store the template, but store the template data corresponding to the template. By storing the template data in the server, the storage space occupied by the server can be reduced compared to directly storing the template.

[0062] In some embodiments, after the template is generated, in order to save the storage space occupied by the template, the template needs to be converted into a binary system to generate a template file corresponding to the template, so as to reduce the redundant information of the xml file and facilitate the storage of the template. Optionally, the template file is a bin (binary) file. In addition, since the amount of data of the template file corresponding to the template is small, the probability of data loss is small during the transmission of the template file corresponding to the template, which helps to improve the success rate of the directional content rendering component in obtaining the template file through the acquisition address in the template data.

[0063] In some embodiments, in order to prevent errors in the template file obtained by obtaining the address, the template data also includes a check value, such as an MD5 (Message-Digest Algorithm 5) check value. After the directional content rendering component obtains the template file by downloading the address, it can calculate the check value of the template file and compare the calculated check value with the check value in the template data to determine whether the downloaded template file is wrong.

[0064] In order to reduce the storage resources occupied by the client and obtain a large number of candidate templates, a small number of templates or no templates may be stored in the directional content rendering component. After the directional content rendering component receives the directional content acquisition request from the client, it sends a content acquisition request to request the server to obtain the directional content displayed on the target display position. The content material and candidate templates are obtained from the server. Since the templates in the server can be updated, the timeliness and diversity of the obtained templates can be guaranteed, making the display style of the directional content more flexible.

[0065] After obtaining at least one candidate template data, the targeted content rendering template may determine a target template according to a targeted content acquisition request sent by the client.

[0066] In some embodiments, the directional content rendering component selects a template that matches the target scene parameters from at least one candidate template as the target template based on the scene parameters corresponding to the at least one candidate template, including: the directional content rendering component determines the applicable display scene corresponding to at least one candidate template based on the scene parameters corresponding to the at least one candidate template; the directional content rendering component selects a template whose applicable display scene includes the display scene indicated by the target scene parameters as the target template.

[0067] In some embodiments, the candidate template corresponds to at least one scene parameter, and the directional content rendering component can directly obtain the scene parameter of the template through the template data corresponding to a certain template. The directional content rendering component can obtain the scene parameters corresponding to all candidate templates through the above method, and compare the scene parameters corresponding to the template with the target scene parameters respectively. If at least one scene parameter corresponding to a certain template is the same as the template scene parameter, the template is determined as the target template. For example, the target scene parameter is "A", and the candidate templates include template 1, template 2 and template 3; the directional content rendering component determines the scene parameters corresponding to each template through the template data corresponding to the three candidate templates, specifically: the scene parameter corresponding to template 1 is "C", that is, the applicable display scene of template 1 is "C", the scene parameter corresponding to template 2 is "A", that is, the applicable display scene of template 2 is "A", and the scene parameters corresponding to template 3 are "B" and "C", that is, the applicable display scenes of template 3 are "B" and "C"; the directional content rendering component determines after comparison that the scene parameters corresponding to template 2 are the same as the target scene parameters, and then template 2 is used as the target template.

[0068] Since at least one of the at least one candidate templates may have a scene parameter corresponding to the same scene parameter as the target scene parameter, in some embodiments, when the number of templates whose applicable display scene includes the display scene indicated by the target scene parameter is one, the directional content rendering component uses the template whose applicable display scene includes the target scene parameter as the target template.

[0069] In other embodiments, when the number of templates for the applicable display scene including the display scene indicated by the target scene parameter is multiple, the directional content rendering component selects one as the target template from the templates for the multiple applicable display scenes including the target scene parameter. In some embodiments, the directional content rendering component selects the template with the least number of applicable display scenes as the target template from the templates for the multiple applicable display scenes including the target scene parameter. For example, the target scene parameter is "A", and the templates for the applicable display scenes including the target scene parameter include: template 2, template 4 and template 5; wherein, the scene parameter corresponding to template 2 is "A", that is, the applicable display scene of template 2 is "A", the scene parameters corresponding to template 4 are "A", "C", that is, the applicable display scene of template 4 is "A" and "C", and the scene parameters corresponding to template 5 are "A", "C", "K", that is, the applicable display scene of template 5 is "A", "C", "K"; the directional content rendering component uses template 2 as the target template. If a template has n applicable display scenes, n is a positive integer greater than 1, it means that the template can meet the different requirements of the above n display scenes, and the universality of the template is good. From another perspective, for any display scene among the n scenes, the template has redundant layout features in addition to the layout features that can satisfy the display scene, that is, the template is only applicable to the display scene, but the targeted content generated based on the template is difficult to obtain a good display effect in the display scene. Therefore, selecting the template with the least number of applicable display scenes as the target template among the templates containing target scene parameters for multiple applicable display scenes is conducive to improving the adaptability of the target-oriented content generated based on the target template in the target display position, which helps to increase the click rate of the target-oriented content in the client; at the same time, it makes the display effect of the target-oriented content in the client not abrupt, which helps to avoid users' aversion to the target-oriented content.

[0070] In other embodiments, in order to improve the speed at which the directional content rendering component responds to the directional content acquisition request sent by the client, the directional content rendering component uses the first determined template that is applicable to the display scene and contains the target scene parameters as the target template. For example, the target scene parameter is "D"; the scene parameter corresponding to template 1 is "B", the scene parameter corresponding to template 2 is "A", the scene parameter corresponding to template 3 is "A", "D", and the scene parameter corresponding to template 4 is "D". The directional content rendering component starts looking for the target template from template 1. The first template that is applicable to the display scene and contains the target scene parameters is template 3, and template 3 is used as the target template. In some embodiments, when computing resources and storage resources are not limited, the directional content rendering component can use all templates with multiple applicable display scenes and target scene parameters as target templates, that is, the directional content rendering component can generate corresponding target directional content based on multiple target templates, and send multiple directional content to the client. The client selects a target directional content from multiple target directional contents to be displayed in the target display position as needed.

[0071] By determining a target template from at least one candidate template and ensuring that the scene to which the target template is applicable includes target scene parameters, the target-oriented content generated based on the target template can adapt to the display environment of the target display position, which helps to improve the click-through rate of the target-oriented content.

[0072] In some embodiments, after the targeted content rendering component receives a targeted content acquisition request from a client, it also includes: if the targeted content acquisition request does not include a target scene parameter, or there is no template that matches the target scene parameter in at least one candidate template, then the targeted content rendering component determines the general template as the target template if there is a general template; wherein the general template is applicable to a variety of display scenarios.

[0073] A general template is a type of template, so the general template includes at least one control, and the layout and configuration parameters of at least one control. In some embodiments, the layout and configuration parameters of the controls in the general template do not exceed the conventional settings. For example, the color and size of the controls in the general template do not exceed the conventional display style, so that the target-oriented content generated based on the general template can be displayed in the target display position with different target scene parameters.

[0074] In some embodiments, the general template is obtained through the corresponding general template data. The general template data includes at least a template identifier and an acquisition address. In some embodiments, the template identifier of the general template is different from the template identifiers of other templates, so that the directional content rendering component distinguishes the general template from the candidate templates through the template identifier, and the other templates include all templates storing the corresponding template data in the server except the general template. For example, the first bit of the template identifier of the general template is "0", and the first bit of the template identifier of other templates is "1". After the directional content rendering component receives the template data sent by the server, the general template and other templates can be distinguished based on the first bit of the template identifier in the template data. In some embodiments, the general template data also includes: a check value. In order to maintain the consistency in the template data format corresponding to the general template data and other templates, the scene parameters of the general template can include the target scene parameters corresponding to all display scenes, respectively, or can be set to a specific value, for example, the scene parameters of the general template are set to -1.

[0075] In some embodiments, the general template data is obtained from the server. The server can send the general template data and the data corresponding to at least one candidate template to the directional content rendering component together, or can send the general template data and the template data corresponding to at least one candidate template to the directional content rendering component separately. For example, the server first sends the template data corresponding to at least one candidate template to the directional content rendering component. When there is no template that matches the target scene parameters in at least one candidate template, the directional content rendering component sends a general template data acquisition request to the server. The server receives the general template data acquisition request from the directional content rendering component and sends the general template data to the directional content rendering component. In the above manner, the total amount of data transmitted by the server at one time can be reduced, which helps to reduce the pressure on the server. In some embodiments, when the directional content rendering component determines that there is no template that matches the target scene parameters in at least one candidate template, the directional content rendering component uses the general template as the target template. For example, the target scene parameter is "E"; the scene parameter corresponding to template 1 is "B", the scene parameter corresponding to template 2 is "A", the scene parameter corresponding to template 3 is "D", and the scene parameter corresponding to template 4 is "C". The directional content rendering component starts looking for the target template from template 1. If it is determined that at least one of the selected templates does not have the target scene parameter, the directional content rendering component will look for a general template. If a general template exists, the general template will be used as the target template.

[0076] By using the universal template as the target advertisement template, when the client does not send the target scene parameters or there is no template matching the target scene parameters, the directional content rendering component can generate target directional content based on the universal template, thereby improving the universality of the solution.

[0077] In some embodiments, in the absence of a universal template, the targeted content rendering component sends a query message to the client, where the query message is used to ask the client whether to take over content rendering; the targeted content rendering component receives a response message from the client; if the response message indicates that the client takes over content rendering, the targeted content rendering component sends content materials to the client, and the client generates target targeted content based on the content materials; if the response message indicates that the client does not take over content rendering, the targeted content rendering component determines the built-in template of the targeted content rendering component as the target template, where the built-in template refers to a template pre-configured in the targeted content rendering component.

[0078] In some embodiments, after the client sends a directed content acquisition request to a directed content rendering component disposed in the client, it also includes: the client receives query information from the directed content rendering component, the query information is used to inquire whether the client takes over content rendering; the client sends response information to the directed content rendering component; if the response information is used to instruct the client to take over content rendering, the client receives content material from the directed content rendering component, and generates target directed content based on the content material rendering; and, in the case where the response information is used to instruct the client not to take over content rendering, the directed content rendering component determines a built-in template as a target template, where the built-in template refers to a template pre-configured in the directed content rendering component.

[0079] The client takes over content rendering means that the client renders the content material based on the built-in template to generate target-oriented content. The built-in template refers to the template stored on the client, and the built-in template can be pre-configured in the client. In some embodiments, the client's built-in template can adapt to the client's display scene, but the built-in template is single in form, which is not conducive to changing the display style of the directional content, and it is difficult to update the built-in template of the client terminal in time. In some embodiments, when the client has its own template, the response information sent by the client to the directional content rendering component is used to instruct the client to take over content rendering. In some embodiments, when the client does not have its own template or the client does not have rendering capabilities, the client sends a response message to the directional content rendering component, and the response information is used to instruct the client not to take over content rendering. When the client does not take over content rendering, the directional content rendering component determines the built-in template as the target template and generates target directional content based on the built-in template and content material.

[0080] Although it may be difficult to obtain good display effects, such as high click-through rates, on the target display position by using the built-in template as the target template for the target-oriented content generated. However, when the target template cannot be determined by the target scene parameters and the client does not take over the content rendering, the built-in template can be used as the target template to at least provide displayable target-oriented content for the target display position, thus avoiding the situation where the target display position cannot display the targeted content.

[0081] The following describes the process of generating target-oriented content through several embodiments.

[0082] In some embodiments, content materials are rendered based on a target template to generate target-oriented content for display in a target display position, including: obtaining a template file of the target template based on an acquisition address of the target template; parsing the template file to obtain configuration information of at least one control, the configuration information including layout information and attribute information; generating at least one control based on the configuration information of at least one control; and filling the content material in at least one control to obtain the target-oriented content.

[0083] In some embodiments, after determining the target template, the directional content rendering component downloads the template file of the target template through the acquisition address in the template data corresponding to the target template. In some embodiments, when the template data corresponding to the target template contains a check value, the directional content rendering component can determine whether an error occurs in the downloaded template file through the check value in the template data. The directional content rendering component parses the template file, and for at least one byte in the template file, generates a control or configuration information of the control corresponding to the at least one byte, that is, the directional content rendering component converts the template file obtained by downloading into an xml file. For example, the configuration information of a certain control is used to indicate the layout position and attribute parameters of the control. For example, the template file contains 01, 010, where 01 represents a description control, and 010 represents that the display position of the description control is the upper left corner. After parsing all bytes in the template file, the directional content rendering component generates a visual target template based on at least one control and the configuration information of at least one control obtained by parsing. The directional content rendering component fills the information in the content material into the corresponding position in the target template to generate target directional content.

[0084] like Figure 3 As shown, it shows a schematic diagram of the control layout of a target template. The directional content rendering component fills the title in the content material into the title control 310 in the target template 300, fills the picture in the content material into the large picture control 320, and fills the description in the content material into the description control 330, and adjusts the display effect of the corresponding information according to the configuration information corresponding to each control.

[0085] The target-oriented content is obtained by rendering through the target template and content material, so that the layout of the target-oriented content is easy to change. The display style of the target-oriented content can be changed by replacing the target template, so that the layout of the oriented content in the target display position can be flexibly changed.

[0086] In some embodiments, the template file is generated through a first stage and a second stage; wherein the first stage is used to configure layout information of at least one control in the template file, and the second stage is used to configure property information of at least one control in the template file.

[0087] In some embodiments, the template generation process is performed on the template generation device. Taking the layout information and configuration information of the control in the template described by XML as an example, the template generation process is introduced. In the first stage of template generation, the control is defined by XML nodes, for example, by <mediaview>< / mediaview> Indicates setting a large image control in the template. In the first stage, set the value range of the control configuration information in the xml node. Optionally, use the "${xxx}" format as a placeholder to replace the specific value, for example <mediaview> Length:${xxx}; width:${xxx}< / mediaview> . The first stage can determine the types and quantity of controls in the template, as well as the layout information of each control. In some embodiments, after the layout information of each control is determined in the first stage, the layout information of the control cannot be changed in the second stage. In the second stage of template generation, the configuration information of at least one control in the template is determined. In some embodiments, the second stage of template generation can be completed manually by operators or through automatic machine search. For example, the template generation device searches for a reference template with similar control layout information in a template collection, and determines the attribute information of the corresponding control in the template based on the attribute information of the control in the reference template. In the second stage, for a placeholder in a control, a target value for replacing the placeholder is determined, and the placeholder is replaced with the target value. For example, for a control <mediaview> Length:${xxx}< / mediaview> , determine that the value of the replacement placeholder is 30, then after the second stage, the above control becomes <mediaview> Length:30< / mediaview> In some embodiments, after the primary stage and the secondary stage, the layout and configuration information of the controls in the template have been determined, and the template generation device compresses the controls to generate a template file.

[0088] The template file is generated through the primary stage and the secondary stage. When the layout of each control in the template has been determined, it is convenient to set and adjust the attribute information of the control. When the display effect of the targeted content generated based on a certain template is poor (such as the click-through rate of the targeted content is reduced), the layout information of a certain control in the template can be adjusted without changing the configuration information of other controls in the template or regenerating the template, making the process of adjusting the template simple.

[0089] Please refer to Figure 4 , which shows a schematic diagram of a method for providing targeted content.

[0090] After the directional content rendering component receives the directional content acquisition request from the client, it determines the target template based on the directional content acquisition request. In some embodiments, after the directional content rendering component receives the directional content acquisition request, it is also necessary to send a content acquisition request to the server to obtain the template data of at least one template. The directional content rendering component determines whether the target template can be matched based on the target scene parameters. In the case where the target template can be matched based on the target scene parameters, for example, there are m templates containing target scene parameters in at least one template that are applicable to the display scene, and m is a positive integer, and the directional content rendering component selects the target template from the m templates. In the case where the target template cannot be matched based on the target scene parameters, for example, the directional content acquisition request sent by the client does not contain the target scene parameters or there is no template that matches the target scene parameters in at least one candidate template, the directional content rendering component needs to further determine whether there is a general template. In the case where there is a general template, for example, the server sends the general template data to the directional content rendering component, and the directional content rendering component uses the general template as the target template. In the case where there is no general template, the directional content rendering component inquires whether the client takes over the rendering. In the case where the client does not take over content rendering, for example, the client sends a response message, if the response message indicates that the client does not render, the directional content rendering component applies the built-in template to render the directional content; if the response message indicates that the client renders, the directional content rendering component sends the content material to the client, and the client performs the rendering process. When the target template is determined, the directional content rendering component renders the content material based on the target template to generate the target directional content.

[0091] Please refer to Figure 5 , which shows a flowchart of a method for providing targeted content provided by an embodiment of the present application. The execution subject of each step of the method may be Figure 1 The terminal device 110 in the example is a client 112 running on the terminal device. The method may include at least one of the following steps (510-530):

[0092] Step 510: In response to the directional content display requirement of the target display position, determine a target scene parameter, where the target scene parameter is used to indicate a display scene corresponding to the target display position.

[0093] When the client starts running or the target display position needs to update the targeted content, the target display position has a targeted content display demand. In some embodiments, the target display position sends the targeted content display demand to the client through the interface. The targeted content display demand may include target scene parameters and may also include the location information of the target display position in the client. The client determines the target display as the corresponding target scene parameter based on the location information of the target display position.

[0094] Step 520: Send a directional content acquisition request to a directional content rendering component disposed in the client. The directional content acquisition request is used to request display of the directional content in the target display position. The directional content acquisition request includes a target scene parameter.

[0095] Step 530, receiving target directional content from the directional content rendering component, the target directional content is generated by rendering the content material based on the target template after the directional content rendering component selects a template that matches the target scene parameters from at least one candidate template as the target template.

[0096] In some embodiments, after receiving the target directional content from the directional content rendering component, the client displays the target directional content on the target display position. The client may also record the click-through rate of the target directional content displayed on the target display position to evaluate the display effect of the target directional content. Within the recorded unit time, if the click-through rate of the target directional content is lower than the threshold, the client may re-initiate a directional content acquisition request to the directional content rendering component to update the display style of the target directional content.

[0097] In some embodiments, when the click-through rate of the target directional content displayed on the target display position is lower than a threshold, the client resends the directional content request including at least one of the following: target scene parameters, preference information of the user account corresponding to the client, regional information, etc. In some embodiments, when the click-through rate of the target directional content is lower than a threshold, after the directional content rendering component receives the directional content acquisition request resent by the client, it may also send a template update request to the server, the template update request including identification information of the target template used to generate the target directional content, such as the template identification of the target template and the acquisition address of the target template. The server determines the template to be updated based on the identification information in the template update request. The configuration information of at least one control in the template to be updated is adjusted.

[0098] In summary, the client can obtain the target directional content for display on the target display by sending a directional content acquisition request to the directional content rendering component. Determining the target template according to the scene parameters of the target display position helps to make the target directional content generated based on the target template adapt to the target display position, helps to make the target directional content merge with other content around the target display position, and helps to improve the click-through rate of the target directional content. At the same time, the layout of the directional content can be changed by replacing different templates, making the display style of the directional content easy to adjust and more flexible.

[0099] Please refer to Figure 6 , which shows a schematic diagram of a process of acquiring targeted content. The process of acquiring targeted content includes at least one of the following steps (610-680):

[0100] Step 610, the client sends a directional content acquisition request to the directional content rendering component. In some embodiments, after the client responds to the directional content display demand of the target display position, it sends a qualitative content acquisition request to the directional content rendering component. In some embodiments, the qualitative content acquisition request includes a target scene parameter. Step 620, the directional content rendering component sends a content acquisition request to the server. 630, the server determines the content material and at least one content template. The server determines at least one content template for the directional content rendering component, which facilitates the directional content rendering component to select a target template suitable for the target display position, which helps to improve the display effect of the target directional content. 640, the server sends the content material and at least one content template to the directional content rendering component. 650, the directional content rendering component determines the target template. The directional content rendering component determines the target template from at least one candidate template according to the target scene parameter. 660, the directional content rendering component generates the target directional content. The directional content rendering component generates the target directional content based on the target template and the content material. 670, the directional content rendering component sends the target directional content to the client. 680, the client displays the target directional content at the target display position. For details not introduced in the above steps, please refer to the above embodiments, which will not be repeated here. By using the target template to generate the target-oriented content through the targeted content rendering component, it is convenient to change the layout of the target-oriented content, making the target-oriented content more flexible. At the same time, the target template is determined by the target scene parameters corresponding to the target display position, so that the layout of the target-oriented content generated based on the target template can adapt to the display environment around the target display position, which helps the target-oriented content to be integrated with the display environment, can avoid causing user disgust, and help to improve the click-through rate of the target-oriented content.

[0101] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.

[0102] Please refer to Figure 7 , which shows a block diagram of a device for providing directional content provided by an embodiment of the present application. The device has the function of implementing the above-mentioned method for providing directional content, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the terminal device introduced above, or it can be set in the terminal device, for example, in the terminal device, a directional content rendering component set on the client. The device 700 may include: a receiving module 710, a selection module 720, a generation module 730 and a sending module 740.

[0103] The receiving module 710 is used to receive a targeted content acquisition request from a client, where the targeted content acquisition request is used to request to display the targeted content at a target display position.

[0104] The selection module 720 is used to select a template that is compatible with the target scene parameters from at least one candidate template as the target template based on the scene parameters corresponding to the at least one candidate template when the targeted content acquisition request includes the target scene parameters; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameters are used to indicate the display scene corresponding to the target display position.

[0105] The generating module 730 is used to render the content material based on the target template to generate target-oriented content for display at the target display position.

[0106] The sending module 740 is used to send the target-oriented content to the client.

[0107] In some embodiments, the selection module 720 is used to: determine the applicable display scenes corresponding to the at least one candidate template based on the scene parameters corresponding to the at least one candidate template; and select the template of the display scene indicated by the target scene parameter as the target template.

[0108] In some embodiments, the device 700 also includes a determination module for determining a general template as the target template if there is a general template when the target scene parameter is not included in the targeted content acquisition request or when there is no template matching the target scene parameter in at least one candidate template; wherein the general template is applicable to a variety of display scenarios.

[0109] In some embodiments, the sending module 740 is also used to send a query message to the client in the absence of the general template, and the query message is used to inquire whether the client takes over the content rendering; the receiving module 710 is also used to receive a response message from the client; the sending module 740 is also used to send the content material to the client in the case where the response message indicates that the client takes over the content rendering, and the client generates the target directional content based on the content material rendering; the determination module is also used to determine the built-in template of the directional content rendering component as the target template in the case where the response message indicates that the client does not take over the content rendering, and the built-in template refers to a template pre-configured in the directional content rendering component.

[0110] In some embodiments, the generation module 730 is used to obtain the template file of the target template based on the acquisition address of the target template; parse the template file to obtain configuration information of at least one control, wherein the configuration information includes layout information and attribute information; generate the at least one control based on the configuration information of the at least one control; fill the content material in the at least one control to obtain the target-oriented content.

[0111] In some embodiments, the template file is generated through a first stage and a second stage; wherein the first stage is used to configure layout information of the at least one control in the template file, and the second stage is used to configure property information of the at least one control in the template file.

[0112] In some embodiments, the device 700 also includes: a transceiver module, used to send a content acquisition request to a server, wherein the content acquisition request is used to request to obtain the targeted content displayed at the target display position; receiving the content material sent by the server and the template data corresponding to the at least one candidate template, wherein the template data includes a template identifier, an acquisition address and scene parameters.

[0113] Please refer to Figure 8 , which shows a block diagram of a device for providing targeted content provided by an embodiment of the present application. The device has the function of implementing the above-mentioned method for obtaining targeted content, and the function can be implemented by hardware, or by hardware executing corresponding software. The device can be the terminal device introduced above, or it can be set in the terminal device, such as a client in the terminal device. The device 800 may include: a determination module 810, a sending module 820 and a receiving module 830.

[0114] The determination module 810 is used to determine a target scene parameter in response to a directional content display requirement of a target display position, wherein the target scene parameter is used to indicate a display scene corresponding to the target display position.

[0115] The sending module 820 is used to send a targeted content acquisition request to a targeted content rendering component set in the client, wherein the targeted content acquisition request is used to request to display the targeted content in the target display position, and the targeted content acquisition request includes the target scene parameter.

[0116] The receiving module 830 is used to receive target-oriented content from the targeted content rendering component, wherein the targeted content is generated by rendering the content material based on the target template after the targeted content rendering component selects a template that matches the target scene parameters from the at least one candidate template as the target template based on the scene parameters corresponding to the at least one candidate template.

[0117] In some embodiments, the receiving module 830 is also used to receive inquiry information from the directional content rendering component, and the inquiry information is used to inquire whether the client takes over content rendering; the sending module 820 is also used to send response information to the directional content rendering component; the device 800 also includes a generating module, which is used to, when the response information is used to instruct the client to take over content rendering, receive the content material from the directional content rendering component, and generate the target directional content based on the content material rendering; and, when the response information is used to instruct the client not to take over content rendering, the directional content rendering component determines a built-in template as the target template, and the built-in template refers to a template pre-configured in the directional content rendering component.

[0118] It should be noted that the device provided in the above embodiment, when implementing its functions, is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the content structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0119] In an exemplary embodiment, a terminal device is also provided, the terminal device comprising a processor and a memory, wherein a computer program is stored in the memory. The computer program is configured to be executed by one or more processors to implement the above-mentioned method for providing targeted content or the above-mentioned method for acquiring targeted content.

[0120] In an exemplary embodiment, a computer-readable storage medium is further provided, wherein a computer program is stored in the storage medium, and when the computer program is executed by a processor of a computer device, the computer program implements the above-mentioned method for providing targeted content or the above-mentioned method for acquiring targeted content.

[0121] Optionally, the computer-readable storage medium may be a storage device such as a ROM (Read-Only Memory) or a RAM (Random Access Memory).

[0122] In an exemplary embodiment, a computer program product is further provided. When the computer program product is executed on a computer device, the computer device executes the above-mentioned method for providing targeted content or the above-mentioned method for acquiring targeted content.

[0123] It should be understood that the "multiple" mentioned in this article refers to two or more. "And / or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. In addition, the step numbers described in this article only illustrate a possible execution sequence between the steps. In some other embodiments, the above steps may not be executed in the order of the numbers, such as two steps with different numbers are executed at the same time, or two steps with different numbers are executed in the opposite order to the diagram. The embodiments of the present application are not limited to this.

[0124] The above description is only an exemplary embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method for providing targeted content, characterized in that: The method is performed by a directional content rendering component arranged in a client, and the method comprises: receiving a targeted content acquisition request from the client, wherein the targeted content acquisition request is used to request display of targeted content at a target display position; In the case where the targeted content acquisition request includes a target scene parameter, determining the applicable display scene corresponding to the at least one candidate template based on the scene parameters corresponding to the at least one candidate template; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameter is used to indicate the display scene corresponding to the target display position; In the case that there are multiple templates whose applicable presentation scenarios include the presentation scenarios indicated by the target scenario parameters, selecting a template with the least number of applicable presentation scenarios as the target template from the multiple templates whose applicable presentation scenarios include the presentation scenarios indicated by the target scenario parameters; Rendering the content material based on the target template to generate target-oriented content for display at the target display position; The targeted content is sent to the client.

2. The method according to claim 1, characterized in that After receiving the directional content acquisition request from the client, the method further includes: If the targeted content acquisition request does not include the target scene parameter, or there is no template that matches the target scene parameter in the at least one candidate template, then if there is a general template, the general template is determined as the target template; The general template is applicable to a variety of display scenarios.

3. The method according to claim 2, characterized in that The method further comprises: In the case where the general template does not exist, sending a query message to the client, wherein the query message is used to inquire whether the client takes over content rendering; Receiving response information from the client; If the response information indicates that the client takes over content rendering, the content material is sent to the client, and the client renders and generates the target-oriented content based on the content material; If the response information indicates that the client does not take over content rendering, a built-in template of the directional content rendering component is determined as the target template, where the built-in template refers to a template pre-configured in the directional content rendering component.

4. The method according to claim 1, characterized in that: The rendering of the content material based on the target template to generate target-oriented content for display at the target display position includes: Based on the acquisition address of the target template, acquiring a template file of the target template; Parsing the template file to obtain configuration information of at least one control, wherein the configuration information includes layout information and attribute information; Based on the configuration information of the at least one control, generating the at least one control; The content material is filled in the at least one control to obtain the target-oriented content.

5. The method according to claim 4, characterized in that The template file is generated through a first stage and a second stage; wherein the first stage is used to configure layout information of the at least one control in the template file, and the second stage is used to configure property information of the at least one control in the template file.

6. The method according to claim 1, characterized in that After receiving the directional content acquisition request from the client, the method further includes: Sending a content acquisition request to a server, wherein the content acquisition request is used to request to acquire the targeted content displayed at the target display position; The content material and the template data corresponding to the at least one candidate template respectively are received from the server, wherein the template data includes a template identifier, an acquisition address and a scene parameter.

7. A method for acquiring targeted content, characterized in that: The method is executed by a client, and includes: In response to a directional content display requirement of a target display position, determining a target scene parameter, wherein the target scene parameter is used to indicate a display scene corresponding to the target display position; Sending a directional content acquisition request to a directional content rendering component disposed in the client, wherein the directional content acquisition request is used to request display of directional content at a target display position, and the directional content acquisition request includes the target scene parameter; Receive target directional content from the directional content rendering component, where the target directional content is generated by rendering content material based on the target template after the directional content rendering component selects a template adapted to the target scene parameter from at least one candidate template as a target template based on scene parameters corresponding to the at least one candidate template; Among them, the scene parameters corresponding to the template are used to determine the applicable display scene corresponding to the template. In the case that there are multiple templates of the applicable display scene including the display scene indicated by the target scene parameters, the target template is the template with the least number of applicable display scenes among the multiple templates of the applicable display scene including the display scene indicated by the target scene parameters.

8. The method according to claim 7, characterized in that After sending the directional content acquisition request to the directional content rendering component set in the client, the method further includes: Receiving a query message from the directional content rendering component, wherein the query message is used to inquire whether the client should take over content rendering; Sending a response message to the directional content rendering component; If the response information is used to instruct the client to take over content rendering, then receiving the content material from the directional content rendering component, and rendering and generating the target directional content based on the content material; And, in a case where the response information is used to instruct the client not to take over content rendering, the directional content rendering component determines a built-in template as the target template, where the built-in template refers to a template pre-configured in the directional content rendering component.

9. A device for providing directional content, characterized in that: The device comprises: A receiving module, configured to receive a directional content acquisition request from a client, wherein the directional content acquisition request is used to request to display the directional content at a target display position; A selection module, configured to determine, when the targeted content acquisition request includes a target scene parameter, based on the scene parameters corresponding to the at least one candidate template, the applicable display scene corresponding to the at least one candidate template; wherein the template is used to configure the layout and attributes of the targeted content, and the target scene parameter is used to indicate the display scene corresponding to the target display position; The selection module is further configured to select, when there are multiple templates whose applicable display scenarios include the display scenario indicated by the target scene parameter, a template with the least number of applicable display scenarios as the target template from the multiple templates whose applicable display scenarios include the display scenario indicated by the target scene parameter; A generation module, configured to render the content material based on the target template to generate target-oriented content for display at the target display position; A sending module is used to send the target-oriented content to the client.

10. A device for acquiring directional content, characterized in that: The device comprises: A determination module, configured to determine a target scene parameter in response to a directional content display requirement of a target display position, wherein the target scene parameter is used to indicate a display scene corresponding to the target display position; A sending module, used for sending a directional content acquisition request to a directional content rendering component arranged in a client, wherein the directional content acquisition request is used for requesting to display the directional content at a target display position, and the directional content acquisition request includes the target scene parameter; A receiving module, configured to receive target directional content from the directional content rendering component, wherein the target directional content is generated by rendering content material based on the target template after the directional content rendering component selects a template adapted to the target scene parameter from at least one candidate template as a target template based on scene parameters corresponding to the at least one candidate template; Among them, the scene parameters corresponding to the template are used to determine the applicable display scene corresponding to the template. In the case that there are multiple templates of the applicable display scene including the display scene indicated by the target scene parameters, the target template is the template with the least number of applicable display scenes among the multiple templates of the applicable display scene including the display scene indicated by the target scene parameters.

11. A terminal device, characterized in that: The terminal device includes a processor and a memory, wherein a computer program is stored in the memory, and the computer program is loaded and executed by the processor to implement the method according to any one of claims 1 to 6, or to implement the method according to any one of claims 7 to 8.

12. A computer-readable storage medium, characterized in that: The storage medium stores a computer program, which is loaded and executed by a processor to implement the method according to any one of claims 1 to 6, or the method according to any one of claims 7 to 8.

13. A computer program product, characterized in that The computer program product includes computer instructions, which are stored in a computer-readable storage medium. A processor reads and executes the computer instructions from the computer-readable storage medium to implement the method according to any one of claims 1 to 6, or the method according to any one of claims 7 to 8.

Citation Information

Patent Citations

  • Rendering method, server, electronic equipment and storage medium

    CN110765251A

  • Advertisement display method, system, equipment and storage medium

    CN113781115A