Content display method, apparatus, and computer-readable storage medium
By pre-configuring the display parameters of the content area and processing content display requests according to business needs, the problem of cumbersome display processes in existing technologies is solved, and efficient content display is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN TCL NEW-TECH CO LTD
- Filing Date
- 2022-04-27
- Publication Date
- 2026-04-14
AI Technical Summary
Existing content display methods require processing on the business side separately according to business needs, resulting in a cumbersome display process, low efficiency, and difficulty in optimization and expansion.
By acquiring the business requirements information of each content area in the current application, configuring display parameters, receiving content display requests, obtaining target content information based on the target content area identifier, and displaying the content based on the configured display parameters, the process is simplified and efficiency is improved.
It simplifies the content display process, improves the display speed, and the unified configuration method facilitates subsequent optimization and expansion, thereby improving the efficiency of content display.
Smart Images

Figure CN117009684B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of Internet technology, specifically to a content display method, apparatus, and computer-readable storage medium. Background Technology
[0002] In recent years, with the rapid development of internet technology, content promotion via the internet has become a new and widely used form of information dissemination. Among these, internet advertising (hereinafter referred to as advertising), as a common method of content promotion on the internet, has become an important channel for users to obtain information and for advertisers to enhance brand awareness and promote products. Currently, most advertising business lines have a need to handle third-party advertising, using third-party advertising development kits (SDKs) to obtain and display advertising content. When the content display business has special business requirements, such as limiting the number of times a certain piece of advertising content can be displayed or limiting the number of times different accounts can display it, existing content display methods generally address the business needs of each content display business by processing the corresponding business end according to the specific requirements of the content display business.
[0003] Research and practice on existing technologies have revealed that existing content display methods require separate processing on the business side according to business needs, which is not conducive to the optimization of subsequent content display business, making the content display process cumbersome and resulting in low efficiency of content display. Summary of the Invention
[0004] This application provides a content display method, apparatus, and computer-readable storage medium, which can simplify the content display process and thus improve the efficiency of content display.
[0005] This application provides a content display method, including:
[0006] Obtain business requirement information for each content area in the current application;
[0007] Based on the aforementioned business requirements information, the display parameters of the content area are configured to obtain the configured display parameters;
[0008] Receive a content display request, wherein the content display request includes a target content area identifier;
[0009] Based on the target content area identifier, obtain the target content information corresponding to the content display request;
[0010] Based on the configured display parameters, the target content information is displayed.
[0011] Accordingly, embodiments of this application provide a content display device, including:
[0012] The business requirement information acquisition unit is used to acquire business requirement information for each content area in the current application.
[0013] The display parameter configuration unit is used to configure the display parameters of the content area based on the business requirement information, so as to obtain the configured display parameters;
[0014] A request receiving unit is configured to receive a content display request, wherein the content display request includes a target content area identifier;
[0015] The content information acquisition unit is used to acquire the target content information corresponding to the content display request based on the target content area identifier;
[0016] The content display unit is used to display the target content information based on the configured display parameters.
[0017] In one embodiment, the content display unit includes:
[0018] The target content region determination subunit is used to determine the target content region in the content region set of the current application based on the target content region identifier.
[0019] The target display parameter identification subunit is used to identify the target display parameters corresponding to the target content area from the configured display parameters.
[0020] The display subunit is used to display the target content information through the target content area according to the target display parameters.
[0021] In one embodiment, the display subunit includes:
[0022] The determination module is used to determine the display permissions corresponding to the target content area based on the target display parameters.
[0023] The authentication module is used to obtain the authentication processing of the target content area based on the display permissions;
[0024] The display module is used to display the target content information through the target content area when authentication is successful.
[0025] In one embodiment, the content information acquisition unit includes:
[0026] Based on the target content area identifier, the configuration content data table and the basic content data table corresponding to the content display request are searched in the resource database. The configuration content data table is used to store configuration content information based on business permission configuration, and the basic content data table is used to store basic content information with default configuration.
[0027] When the configuration content information corresponding to the target content area identifier is obtained from the configuration content data table, the configuration content information will be identified as the target content information.
[0028] When the configuration content information is not found in the configuration content data table, the basic content information corresponding to the target content area identifier is obtained from the basic content data table, and the basic content information is determined as the target content information.
[0029] In one embodiment, the content display device further includes:
[0030] The content region identifier acquisition unit is used to acquire the content region identifier of each content region in the current application.
[0031] The content data acquisition unit is used to acquire the content data corresponding to the content region based on the content region identifier;
[0032] The storage unit is used to parse the content data, obtain the content information corresponding to each content area, and store the content information in the resource database.
[0033] In one embodiment, the content data acquisition unit is configured to:
[0034] Obtain the current version information of the application;
[0035] Based on the content region identifier and the current version information, the content data corresponding to the content region is obtained from the cloud using the content development toolkit corresponding to the current application.
[0036] In one embodiment, the content display device further includes:
[0037] The routing jump link acquisition unit is used to acquire the routing jump link corresponding to the target content information when a routing jump request for the target content information is received.
[0038] The parsing unit is used to parse the routing link using the content development kit corresponding to the current application to obtain routing information, which includes the destination page address.
[0039] The redirection unit is used to redirect the current page to the destination page corresponding to the destination page address based on the routing redirection information.
[0040] Furthermore, embodiments of this application also provide a computer-readable storage medium storing a plurality of instructions adapted for loading by a processor to execute steps in any of the content display methods provided in embodiments of this application.
[0041] Furthermore, this application also provides a computer device, including a processor and a memory, wherein the memory stores an application program, and the processor is used to run the application program in the memory to implement the content display method provided in this application.
[0042] This application also provides a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps in the content display method provided in this application.
[0043] This application embodiment obtains business requirement information for each content area in the current application; configures the display parameters of the content area based on the business requirement information to obtain the configured display parameters; receives a content display request; obtains the target content information corresponding to the content display request according to the target content area identifier; and displays the target content information based on the configured display parameters. Thus, by configuring the display parameters of each content area in advance based on the business requirement information of each content area in the current application, upon receiving a content display request, the corresponding target content information is directly obtained based on the target content area identifier included in the content display request, and the target content information is displayed according to the configured display parameters. This simplifies the content display process, improves the content display speed, and, more importantly, the unified method of configuring the display parameters of each content area based on the business requirement information of each content area in the current application facilitates subsequent optimization of the content display business and expansion of tracking requirements, thereby improving the efficiency of content display. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic diagram illustrating an implementation scenario of a content display method provided in this application embodiment;
[0046] Figure 2 This is a flowchart illustrating a content display method provided in an embodiment of this application;
[0047] Figure 3 This is another flowchart illustrating a content display method provided in an embodiment of this application;
[0048] Figure 4 This is a timing diagram illustrating a content display method provided in an embodiment of this application;
[0049] Figure 5 This is another timing diagram of a content display method provided in an embodiment of this application;
[0050] Figure 6 This is a schematic diagram of the structure of the content display device provided in the embodiments of this application;
[0051] Figure 7 This is a schematic diagram of the structure of the computer device provided in the embodiments of this application. Detailed Implementation
[0052] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0053] This application provides a content display method, apparatus, and computer-readable storage medium. The content display apparatus can be integrated into a computer device, which may be a server or a terminal, etc.
[0054] The server can be a standalone physical server, a server cluster or distributed system composed of multiple physical servers, or a cloud server providing basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communication, middleware services, domain name services, security services, content delivery network (CDN) acceleration services, and big data and artificial intelligence platforms. The terminal can be a smartphone, tablet, laptop, desktop computer, smart speaker, smartwatch, or other device capable of page rendering, but is not limited to these. The terminal and server can be directly or indirectly connected via wired or wireless communication, which is not limited herein.
[0055] Please see Figure 1 Taking the integration of content display devices into computer equipment as an example, Figure 1This is a schematic diagram illustrating an implementation scenario of the content display method provided in this application. The computer device can be a terminal, such as a smartphone, tablet, laptop, desktop computer, smartwatch, or any other computer device capable of parameter settings, but is not limited to these. The computer device can obtain business requirement information for each content area in the current application; configure the display parameters of the content area based on the business requirement information to obtain the configured display parameters; receive a content display request; obtain the target content information corresponding to the content display request based on the target content area identifier; and display the target content information based on the configured display parameters.
[0056] It should be noted that, Figure 1 The illustrated implementation environment scenario of the content display method is merely an example. The implementation environment scenario of the content display method described in this application embodiment is to more clearly illustrate the technical solution of this application embodiment and does not constitute a limitation on the technical solution provided in this application embodiment. Those skilled in the art will understand that with the evolution of page rendering and the emergence of new business scenarios, the technical solution provided in this application is also applicable to similar technical problems.
[0057] The following sections provide detailed descriptions of each example. It should be noted that the order in which the embodiments are described is not intended to limit the preferred order of the embodiments.
[0058] This embodiment will be described from the perspective of a content display device, which can be integrated into a computer device, which can be a terminal, and this application does not limit it.
[0059] Please see Figure 2 , Figure 2 This is a flowchart illustrating the content display method provided in an embodiment of this application. The content display method includes:
[0060] In step 101, the business requirements information for each content area in the current application is obtained.
[0061] The application can be an application (APP), and the content area can be a region that carries content, used to place content information on the page. The content can be a carrier for transmitting relevant information for a specific purpose, such as internet advertising (advertisement). The content information can be resource information corresponding to the content, or data that constructs the content, such as images, text, videos, links, etc. Taking an advertisement as an example, the content information can be advertising resources, and the content area can be an ad slot used to place advertisements on the page. The business requirement information can include information on the business requirements corresponding to the content area, used to characterize the business requirements corresponding to each content area. These business requirements can be requirements proposed for each business, representing high-level goals of the organization or client, such as limiting the number of times an ad slot can be displayed in the current application, or limiting the number of times an ad slot can be displayed across different accounts.
[0062] There are several ways to obtain the business requirement information for each content area in the current application. For example, developers can configure the business requirement information according to the business requirements of each content area, thereby obtaining the business requirement information for each content area.
[0063] In step 102, the display parameters of the content area are configured based on business requirements information to obtain the configured display parameters.
[0064] These display parameters can be parameters that control the display behavior of content information within a content area. For example, they can control the number of times content information is displayed, the number of times it is displayed to the same user, or the endpoint for redirection within the content area. For instance, the endpoint can be set to a native page in the app, an H5 page, or a page in a mini-program. These configured display parameters can be the parameters for displaying content information within a content area based on business requirements.
[0065] There are several ways to configure the display parameters of the content area based on business requirement information. For example, information matching each display parameter can be extracted from the business requirement information and configured accordingly. For display parameters for which no matching information is found, no configuration is required. Optionally, for business requirement information for which no matching display parameter is found, new display parameters can be created for the content area based on that business requirement information.
[0066] In step 103, a content display request is received.
[0067] The content display request can be a request to retrieve and display content information, such as an advertisement display request. This request can include a target content area identifier, which can be the content area identifier corresponding to the content area triggered by the business unit. This content area identifier can be information that identifies a content area; for example, it can be a unique code (Identity Document, or id) for each content area, allowing identification of the corresponding content area. For instance, for a splash screen ad in the current application, its content area identifier can be set to PAGE_START; for a pop-up ad in the current application's online store, its content area identifier can be set to POP_MALL; and for a banner ad on the current application's homepage, its content area identifier can be set to BANNER_MAIN, etc.
[0068] In step 104, the target content information corresponding to the content display request is obtained based on the target content area identifier.
[0069] The target content information can be the content information corresponding to the target content area identifier. The content information corresponding to the target content area identifier can be determined based on the relationship between the content area identifier and the content area, as well as the relationship between the content area and the content information.
[0070] Optionally, content information corresponding to each content area can be retrieved from the cloud in advance based on the content area identifier corresponding to each content area in the current application. This content information can then be stored in a resource database. This resource database can be a pre-defined database for storing content information corresponding to content areas, and may include the database corresponding to the current application and caches. Therefore, when a content display request is received, the target content information corresponding to the content display request can be quickly retrieved from the resource database based on the target content area identifier, thus improving the content display speed and efficiency.
[0071] Optionally, taking the content area as an ad placement as an example, an ad development kit (SDK) can be used to retrieve the content information corresponding to each ad placement from the cloud based on the content area identifier of each ad placement in the current application. This allows the ad resources (i.e., content information) corresponding to each ad placement to be stored in a resource database. The ad development kit (i.e., ad SDK) can refer to a software development kit provided by a third-party service provider that enables functions such as accessing internet advertising and ad placement.
[0072] In step 105, the target content information is displayed based on the configured display parameters.
[0073] This allows for the control of the display behavior of target content information in the content area after obtaining the target content information, based on the configuration parameters corresponding to the target content area. This enables the fulfillment of business requirements corresponding to the target content area and improves content display efficiency.
[0074] In one embodiment, most current advertising business lines have a need to handle third-party advertisements. This involves using third-party advertising development kits to obtain and display ad content. When the ad content display business has special business requirements, such as limiting the number of times a particular ad can be displayed or limiting the number of times different accounts can display it, the existing technology typically addresses these requirements by processing them separately on the corresponding business side. However, this method of processing each requirement separately on the business side is not conducive to subsequent optimization of the content display business, making the content display process cumbersome and resulting in low efficiency. To address this, this application provides a content display method. By using an advertising SDK to pre-configure the display parameters of each ad slot based on the business requirements of each ad slot in the current application, and then, upon receiving a content display request, obtaining the target ad resource (i.e., target content information) based on the target content area identifier included in the content display request, the display behavior of the target ad resource in the corresponding ad slot can be controlled according to the configured display parameters corresponding to the target content area. This achieves the business requirements corresponding to the target ad slot. Furthermore, this method of uniformly configuring the display parameters of each ad slot based on the business requirements of each ad slot in the current application facilitates subsequent optimization of content display services and expansion of tracking requirements, thereby improving content display efficiency.
[0075] As described above, this application obtains business requirement information for each content area in the current application; configures the display parameters of the content area based on the business requirement information to obtain the configured display parameters; receives a content display request; obtains the target content information corresponding to the content display request based on the target content area identifier; and displays the target content information based on the configured display parameters. Therefore, by configuring the display parameters of each content area in advance based on the business requirement information of each content area in the current application, upon receiving a content display request, the corresponding target content information is directly obtained based on the target content area identifier included in the content display request, and the target content information is displayed according to the configured display parameters. This simplifies the content display process, improves the content display speed, and, more importantly, the unified method of configuring the display parameters of each content area based on the business requirement information of each content area in the current application facilitates subsequent optimization of the content display business and expansion of tracking requirements, thereby improving the efficiency of content display.
[0076] Based on the method described in the above embodiments, the following examples will provide further detailed explanations.
[0077] In this embodiment, the specific description will be based on the example of the content display device being integrated into the terminal.
[0078] For a better description of the embodiments of this application, please refer to Figure 3 , Figure 3 Another flowchart illustrating the content display method provided in this application embodiment. The specific process is as follows:
[0079] In step 201, the terminal obtains the content region identifier of each content region in the current application, obtains the current version information of the current application, and obtains the content data corresponding to the content region from the cloud through the content development toolkit corresponding to the current application based on the content region identifier and the current version information.
[0080] The current version information can be the version of the current application. The content development kit (SDK) can be a software development kit integrated into the current application, or it can be an SSD provided by a third-party service provider to implement functions such as content access, content delivery, and display; for example, it could be an advertising SDK. The content data can be the content resource data corresponding to the content area obtained from the cloud.
[0081] Optionally, each time the current application is launched, the content area identifier and current version information of the current application can be obtained, and the content data corresponding to the content area can be retrieved from the cloud based on the content area identifier and current version information to update the existing content data. At the same time, during the operation of the current application, the content data can be retrieved from the cloud at regular intervals (e.g., 30-60 minutes) to update the content data, so as to ensure the accuracy of the content data. Random updates can also reduce the load on the server.
[0082] For example, using content as the advertisement, the content area as the advertisement space, and the content information as the advertisement resource, please refer to the following example. Figure 4 , Figure 4 This is a timing diagram illustrating a content display method provided in this application embodiment. It includes the process of a terminal obtaining and updating advertising data from the cloud via an advertising SDK. The business side can be the location where the APP calls the advertising SDK to obtain ad group resources and implement specific business processing. The ad group resource can be the advertising resources of an ad group, and an ad group can be a whole consisting of at least one ad slot in a designated ad placement location on the APP page. When the terminal requests advertising data via the advertising SDK, it can request advertising data in units of ad groups. Correspondingly, the ad group code can be the content area identifier corresponding to the ad slot in an ad group. The data download interface (DownloadApi) can be the advertising data download framework on the APP side. Thus, the terminal can obtain the ad group code corresponding to each ad slot in the current application, and simultaneously obtain the current version information of the current application. Based on the ad group code and the current version information, the terminal obtains the advertising data corresponding to each ad slot in the APP from the cloud via the advertising SDK corresponding to the current application.
[0083] In step 202, the terminal parses the content data to obtain the content information corresponding to each content area, and stores the content information in the resource database.
[0084] The terminal can parse the content data obtained from the cloud to obtain the content information corresponding to each content area. Optionally, an ID can be configured for the content information corresponding to each content area, so that the content information can be stored in the resource database according to the content information ID. When updating the resource database, the content information corresponding to the content information ID can be updated according to the newly obtained content information.
[0085] To further meet business needs, two types of content information can be configured for each content area based on actual business requirements. These can include configuration content information and basic content information. The configuration content information is the content information configured for the content area according to business needs. This configuration content information may be subject to business permission restrictions, such as restrictions on display time, number of displays, and payment renewal. The basic content information is the default content information to be displayed for the content area. For example, assuming the display time of the configuration content information for a certain content area is seven days, the configuration content information for that content area can be retrieved and displayed for the first seven days. After seven days, the terminal can no longer retrieve the configuration content information for the content area, and can instead retrieve the basic content information for the content area for display. After the advertiser renews the payment for the configuration content information for the content area, the terminal can retrieve the configuration content information for the content area for content display again.
[0086] The terminal parses the content data to obtain the content information corresponding to each content area and stores this information in the resource database. There are several ways to do this, such as downloading and updating the content information to the resource database beforehand. Pre-downloading the content information to the resource database allows the terminal to directly retrieve and display the content information locally when it receives a content display request, improving display speed. Optionally, when updating the resource database, if the content information identifiers are the same, only updating the jump link and delivery time of the content information is supported; changing the resource link and delivery party information is not supported. This ensures the integrity of the content display business and facilitates business requirements such as controlling the number of content displays and the extended processing of subsequent data tracking tasks.
[0087] There are several ways to download content information. For example, a second-level cache of content information can be implemented using disk caching (DiskLruCache), or a third-party framework, such as the Android image loading library (Glide), can be used. Optionally, when updating content information resources, deleted content information can be temporarily cached to handle situations where content information is taken down and then re-uploaded.
[0088] Optionally, after downloading the content information, the message digest value (MD5 value) of each piece of content can be verified to ensure the completeness and accuracy of the content information to be displayed. The resource database is then updated only after successful verification.
[0089] In one embodiment, please continue to refer to Figure 4After retrieving advertising data from the cloud and parsing it into advertising resources, the system can update the content information stored in the resource database based on the advertising resource ID (i.e., content information identifier). After obtaining the advertising data, the system can download the advertising resources using the resource links within the data. It can then receive local links returned by the data download interface, download the advertising resource files via these local links, and perform resource verification based on the MD5 value of the advertising resource files to ensure the integrity and accuracy of the content information. After successful verification, the resource database is updated.
[0090] In step 203, the terminal obtains the business requirement information for each content area in the current application, and configures the display parameters for the content area based on the business requirement information to obtain the configured display parameters.
[0091] There are several ways for a terminal to obtain business requirement information for each content area in the current application. For example, developers can configure business requirement information according to the business requirements of each content area, so that the terminal can obtain the business requirement information for each content area.
[0092] After obtaining the business requirement information for each content area in the current application, the display parameters for that content area can be configured based on this information. There are several ways for the terminal to configure these parameters. For example, the terminal can extract information matching each display parameter from the business requirement information and configure that parameter. Display parameters for which no matching information is found can be left unconfigured. Optionally, for business requirement information where no matching display parameter is found, new display parameters can be created for the content area based on that information.
[0093] For example, since the ad slots in each version of the application are fixed and the business requirements are also fixed, the relevant display parameters of each ad slot can be configured in advance according to the business requirements corresponding to each ad slot. In this way, the business side can directly obtain the final required ad resources for display through the content area identifier.
[0094] In step 204, the terminal receives a content display request and searches the resource database for the configuration content data table and basic content data table corresponding to the content display request based on the target content area identifier.
[0095] The content display request may include a target content area identifier. The configuration content data table (configTable) can be used to store configuration content information based on business permission configurations, and the default content data table (defaultTable) can be used to store default configuration basic content information. When retrieving content information from the resource database, configuration content information can be retrieved first from the configuration content data table. If the configuration content information is not found in the configuration content data table, data can be retrieved from the default content data table.
[0096] In one embodiment, please refer to Figure 5 , Figure 5 This is another timing diagram illustrating a content display method provided in an embodiment of this application, which may include the process of the business side obtaining advertising resources from the advertising SDK. It should be noted that... Figure 4 The process by which the terminal provided in the middle retrieves and updates advertising data from the cloud through the advertising SDK is the same as... Figure 5 The process of the business side obtaining advertising resources from the advertising SDK can be asynchronous. Specifically, the business side can request advertising resources from the advertising SDK for content display based on the ad group code (groupCode). Upon receiving the content display request, the advertising SDK can first perform a restriction verification on the request. This verification can be based on information such as the user's account ID and the number of times the ad is displayed (showTime) to determine if the content display request complies with the restriction rules (limit). After successful verification, the advertising resource can be requested from the resource database using the ad group code and the current time. After receiving the advertising resource from the resource database, its MD5 value can be verified to ensure its integrity and accuracy. After successful verification, the advertising resource corresponding to the content display request can be returned to the business side for content display. After the app displays the advertising resource, it can call the advertising SDK's interface to update the display time and number of times the ad slot is displayed, facilitating subsequent statistics on ad display performance.
[0097] In the process of requesting ad resources from the resource database using ad group codes and obtaining the ad resource data returned by the resource database, there can be several scenarios:
[0098] 1. If no data is requested or all ad resources in the current ad group have not been processed after the data is requested, an empty array will be returned and the ad resources will not be displayed on the business side.
[0099] 2. The data has been requested. Some of the ad resources in the current ad group have been processed and returned.
[0100] 3. Once the data has been requested, all ad resources in the current ad group have been processed, and all ad resources are returned.
[0101] In step 205, when the configuration content information corresponding to the target content area identifier is obtained from the configuration content data table, the terminal will determine the configuration content information as the target content information. When the configuration content information is not obtained from the configuration content data table, the terminal will obtain the basic content information corresponding to the target content area identifier from the basic content data table and determine the basic content information as the target content information.
[0102] Specifically, the content information corresponding to the content area can be configured uniformly according to the business permissions determined by business needs, thus obtaining the configuration content information. When a content display request is received, the configuration content information can be retrieved first for display to prioritize meeting business needs. In this case, no further processing of the content information is required. If the configuration content information corresponding to the target content area does not exist in the configuration content data table, the basic content information corresponding to the target content area identifier can be retrieved from the basic content data table and identified as the target content information. Content display is then performed based on this basic content information, ensuring the normal operation of the content display process.
[0103] In step 206, the terminal determines the target content region in the current application's content region set based on the target content region identifier, and identifies the target display parameters corresponding to the target content region in the configured display parameters.
[0104] The target content area can be the content area corresponding to the target content area identifier, and the target display parameter can be the configured display parameter corresponding to the target content area.
[0105] Optionally, when configuring the display parameters for each content area based on business requirements, the configured display parameters for each content area can be associated with its corresponding content area. In this way, after obtaining the target content information, the content can be displayed directly based on the configured display parameters for that target content area.
[0106] In step 207, the terminal determines the display permission corresponding to the target content area based on the target display parameters, performs authentication processing on the target content area based on the display permission, and displays the target content information through the target content area when the authentication is successful.
[0107] The display permission can be the permission to display the target content area, such as the number of times to display, the display time, and the permission to control the number of times the displayed object is displayed.
[0108] There are several ways to authenticate the target content area based on the display permission. For example, suppose the display permission includes the permission to control the maximum number of times the target content area is displayed in the current application, which is 10 times. In this case, the number of times the target content area is displayed in the current application can be obtained. If the number of times is greater than the maximum number of times, it means that the authentication fails and the content of the target content area is not displayed. If the number of times is not greater than the maximum number of times, it means that the authentication passes and the target content information can be displayed through the target content area.
[0109] In step 208, when the terminal receives a routing request for the target content information, it obtains the routing link corresponding to the target content information, parses the routing link using the content development kit corresponding to the current application to obtain routing information, and redirects the current page to the destination page corresponding to the destination page address based on the routing information.
[0110] The routing request can be a request to redirect the user by touching the target content information. The routing link can be a Uniform Resource Locator (URL) carried in the routing request. The routing information can be information about the routing process corresponding to the routing request, which may include the destination page address and routing parameters.
[0111] Optionally, you can pre-configure the routing links for each content area according to the routing table provided by the app (which may include the address of each page in the app and the required parameters, supporting native app pages, H5 pages, and mini-program pages) and the pre-defined protocol header. Simultaneously, you can provide a corresponding utility class in the advertising SDK to parse the routes and parameters, and then perform route redirection through the routing middleware (ARouter). Each page in the app has a unique address link and parameters. When configuring routes according to the routing table provided by the app, it is possible to redirect to any interface such as the native app page, H5 page, and mini-program page, improving content display efficiency. The protocol header is the beginning of the URL, such as https: / / .
[0112] As described above, this embodiment of the application obtains the content area identifier of each content area in the current application through the terminal, obtains the current version information of the current application, and, based on the content area identifier and the current version information, obtains the content data corresponding to the content area from the cloud through the content development toolkit corresponding to the current application; the terminal parses the content data to obtain the content information corresponding to each content area, and stores the content information in the resource database; the terminal obtains the business requirement information of each content area in the current application, configures the display parameters of the content area based on the business requirement information, and obtains the configured display parameters; the terminal receives a content display request, and searches for the configuration content data table and basic content data table corresponding to the content display request in the resource database according to the target content area identifier; when the configuration content information corresponding to the target content area identifier is obtained in the configuration content data table, the terminal determines the configuration content information as the target content information, and when the configuration content data table is obtained, the terminal determines the configuration content information as the target content information. When the configuration content information is not found in the table, the terminal retrieves the basic content information corresponding to the target content area identifier from the basic content data table and identifies this basic content information as the target content information. Based on the target content area identifier, the terminal determines the target content area in the content area set of the current application and identifies the target display parameters corresponding to the target content area in the configured display parameters. Based on the target display parameters, the terminal determines the display permissions corresponding to the target content area and performs authentication processing on the target content area. When authentication is successful, the target content information is displayed through the target content area. When the terminal receives a routing request for the target content information, it retrieves the routing link corresponding to the target content information, parses the routing link using the content development kit corresponding to the current application to obtain the routing information, and redirects the current page to the destination page corresponding to the destination page address based on the routing information. In this way, by using a content development toolkit, content data corresponding to each content area in the current application is uniformly obtained and stored in a resource database. Simultaneously, the display parameters for each content area are pre-configured based on the business requirements of that area within the application. Upon receiving a content display request, the corresponding target content information is directly obtained based on the target content area identifier included in the request, and the target content information is displayed according to the target display parameters corresponding to that area. This simplifies the content display process and improves the display speed. Furthermore, the method of uniformly configuring the display parameters for each content area based on its business requirements facilitates subsequent optimization of content display operations and expansion of tracking requirements, effectively reducing the development cost of new content areas and thus improving content display efficiency.
[0113] To better implement the above methods, embodiments of the present invention also provide a content display device that can be integrated into a terminal.
[0114] For example, such as Figure 6 The diagram shown is a structural schematic of a content display device provided in an embodiment of this application. The content display device may include a business requirement information acquisition unit 301, a display parameter configuration unit 302, a request receiving unit 303, a content information acquisition unit 304, and a content display unit 305, as follows:
[0115] The business requirement information acquisition unit 301 is used to acquire the business requirement information of each content area in the current application.
[0116] The display parameter configuration unit 302 is used to configure the display parameters of the content area based on the business requirement information, and obtain the configured display parameters.
[0117] The request receiving unit 303 is used to receive a content display request, which includes a target content area identifier.
[0118] The content information acquisition unit 304 is used to acquire the target content information corresponding to the content display request based on the target content area identifier;
[0119] The content display unit 305 is used to display the target content information based on the configured display parameters.
[0120] In one embodiment, the content display unit 305 includes:
[0121] The target content region determination subunit is used to determine the target content region in the current application's content region set based on the target content region identifier.
[0122] The target display parameter identification subunit is used to identify the target display parameters corresponding to the target content area in the display parameters after configuration;
[0123] The display sub-unit is used to display the target content information through the target content area according to the target display parameters.
[0124] In one embodiment, the display subunit includes:
[0125] The determination module is used to determine the display permissions corresponding to the target content area based on the target display parameters;
[0126] The authentication module is used to authenticate the target content area based on the display permissions.
[0127] The display module is used to display the target content information through the target content area when authentication is successful.
[0128] In one embodiment, the content information acquisition unit 304 includes:
[0129] Based on the target content area identifier, the configuration content data table and basic content data table corresponding to the content display request are searched in the resource database. The configuration content data table is used to store configuration content information based on business permissions, and the basic content data table is used to store basic content information of the default configuration.
[0130] When the configuration content information corresponding to the target content area identifier is obtained in the configuration content data table, the configuration content information will be identified as the target content information.
[0131] If the configuration content information is not found in the configuration content data table, the basic content information corresponding to the target content area identifier is obtained from the basic content data table, and the basic content information is determined as the target content information.
[0132] In one embodiment, the content display device further includes:
[0133] The content region identifier acquisition unit is used to acquire the content region identifier of each content region in the current application.
[0134] The content data acquisition unit is used to acquire the content data corresponding to the content area based on the content area identifier;
[0135] The storage unit is used to parse the content data, obtain the content information corresponding to each content area, and store the content information in the resource database.
[0136] In one embodiment, the content data acquisition unit is configured to:
[0137] Get the current version information of the current application;
[0138] Based on the content region identifier and the current version information, the content data corresponding to the content region is obtained from the cloud using the content development kit corresponding to the current application.
[0139] In one embodiment, the content display device further includes:
[0140] The route redirection link acquisition unit is used to acquire the route redirection link corresponding to the target content information when a route redirection request for the target content information is received.
[0141] The parsing unit is used to parse the route jump link using the content development kit corresponding to the current application to obtain the route jump information, which includes the destination page address;
[0142] The redirection unit is used to redirect the current page to the destination page corresponding to the destination page address based on the routing redirection information.
[0143] In practice, each of the above units can be implemented as an independent entity or can be arbitrarily combined to be implemented as the same or several entities. For the specific implementation of each of the above units, please refer to the previous method embodiments, which will not be repeated here.
[0144] As described above, this embodiment of the application obtains business requirement information for each content area in the current application through a business requirement information acquisition unit 301; a display parameter configuration unit 302 configures the display parameters of the content area based on the business requirement information to obtain the configured display parameters; a request receiving unit 303 receives a content display request; a content information acquisition unit 304 obtains the target content information corresponding to the content display request based on the target content area identifier; and a content display unit 305 displays the target content information based on the configured display parameters. Thus, by configuring the display parameters of each content area in advance based on the business requirement information of each content area in the current application, when a content display request is received, the corresponding target content information is directly obtained based on the target content area identifier included in the content display request, and the target content information is displayed based on the configured display parameters. This simplifies the content display process, improves the content display speed, and simplifies the process by uniformly configuring the display parameters of each content area based on the business requirement information of each content area in the current application. Furthermore, the unified method of configuring the display parameters of each content area based on the business requirement information of each content area in the current application facilitates subsequent optimization of the content display business and expansion of the tracking requirements, thereby improving the efficiency of content display.
[0145] This application also provides a computer device, such as... Figure 7 As shown, it illustrates a structural schematic diagram of a computer device involved in an embodiment of this application. This computer device can be a terminal, specifically:
[0146] The computer device may include components such as a processor 401 with one or more processing cores, a memory 402 with one or more computer-readable storage media, a power supply 403, and an input unit 404. Those skilled in the art will understand that... Figure 7 The computer device structure shown does not constitute a limitation on the computer device and may include more or fewer components than shown, or combine certain components, or have different component arrangements. Wherein:
[0147] Processor 401 is the control center of the computer device, connecting various parts of the computer device through various interfaces and lines. It performs various functions and processes data by running or executing software programs and / or modules stored in memory 402, and by calling data stored in memory 402. Optionally, processor 401 may include one or more processing cores; preferably, processor 401 may integrate an application processor and a modem processor, wherein the application processor mainly handles the operating system, user interface, and applications, and the modem processor mainly handles wireless communication. It is understood that the modem processor may not be integrated into processor 401.
[0148] The memory 402 can be used to store software programs and modules. The processor 401 executes various functional applications and page rendering by running the software programs and modules stored in the memory 402. The memory 402 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the computer device, etc. In addition, the memory 402 may include high-speed random access memory, and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other volatile solid-state storage device. Accordingly, the memory 402 may also include a memory controller to provide the processor 401 with access to the memory 402.
[0149] The computer device also includes a power supply 403 that supplies power to the various components. Preferably, the power supply 403 can be logically connected to the processor 401 through a power management system, thereby enabling functions such as charging, discharging, and power consumption management through the power management system. The power supply 403 may also include one or more DC or AC power supplies, recharging systems, power fault detection circuits, power converters or inverters, power status indicators, and other arbitrary components.
[0150] The computer device may also include an input unit 404, which can be used to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.
[0151] Although not shown, the computer device may also include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 401 in the computer device loads the executable files corresponding to the processes of one or more applications into the memory 402 according to the following instructions, and the processor 401 runs the applications stored in the memory 402 to realize various functions, as follows:
[0152] Obtain business requirement information for each content area in the current application; configure the display parameters of the content area based on the business requirement information to obtain the configured display parameters; receive content display requests; obtain the target content information corresponding to the content display request based on the target content area identifier; and display the target content information based on the configured display parameters.
[0153] The specific implementation of each of the above operations can be found in the preceding embodiments, and will not be repeated here. It should be noted that the computer device provided in this application embodiment and the content display method in the above embodiments belong to the same concept, and its specific implementation process can be found in the above method embodiments, and will not be repeated here.
[0154] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be performed by instructions, or by instructions controlling related hardware. These instructions can be stored in a computer-readable storage medium and loaded and executed by a processor.
[0155] Therefore, embodiments of this application provide a computer-readable storage medium storing a plurality of instructions that can be loaded by a processor to execute steps in any of the content display methods provided in embodiments of this application. For example, the instructions can execute the following steps:
[0156] Obtain business requirement information for each content area in the current application; configure the display parameters of the content area based on the business requirement information to obtain the configured display parameters; receive content display requests; obtain the target content information corresponding to the content display request based on the target content area identifier; and display the target content information based on the configured display parameters.
[0157] The computer-readable storage medium may include: read-only memory (ROM), random access memory (RAM), disk or optical disk, etc.
[0158] Since the instructions stored in the computer-readable storage medium can execute the steps of any of the content display methods provided in the embodiments of this application, the beneficial effects that any of the content display methods provided in the embodiments of this application can achieve can be realized. For details, please refer to the previous embodiments, which will not be repeated here.
[0159] According to one aspect of this application, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in the various optional implementations of the above embodiments.
[0160] The foregoing has provided a detailed description of a content display method, apparatus, and computer-readable storage medium provided in the embodiments of this application. Specific examples have been used to illustrate the principles and implementation methods of this application. The descriptions of the above embodiments are only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A content display method, characterized in that, include: Obtain business requirement information for each content area in the current application. The business requirement information includes information on the business requirements corresponding to the content area, which is used to characterize the business requirements corresponding to each content area. The business requirements are requirements proposed for each business and are used to represent the high-level goals of the organization or customer. Based on the aforementioned business requirements information, the display parameters of the content area are configured to obtain the configured display parameters; Receive a content display request, the content display request including a target content area identifier, the target content area identifier being the content area identifier of the content area corresponding to the business terminal that triggered the content display request, used to identify information of a content area; Based on the target content area identifier, obtain the target content information corresponding to the content display request; Based on the configured display parameters, the target content information is displayed.
2. The content display method as described in claim 1, characterized in that, The display of the target content information based on the configured display parameters includes: Based on the target content region identifier, the target content region is determined in the current application's content region set; In the configured display parameters, the target display parameters corresponding to the target content area are identified; Based on the target display parameters, the target content information is displayed through the target content area.
3. The content display method as described in claim 2, characterized in that, The step of displaying the target content information through the target content area according to the target display parameters includes: Based on the target display parameters, determine the display permissions corresponding to the target content area; Based on the aforementioned display permissions, the target content area is subject to authentication processing. When authentication is successful, the target content information is displayed through the target content area.
4. The content display method as described in claim 1, characterized in that, The step of obtaining the target content information corresponding to the content display request based on the target content region identifier includes: Based on the target content area identifier, the configuration content data table and the basic content data table corresponding to the content display request are searched in the resource database. The configuration content data table is used to store configuration content information based on business permission configuration, and the basic content data table is used to store basic content information with default configuration. When the configuration content information corresponding to the target content area identifier is obtained from the configuration content data table, the configuration content information will be identified as the target content information. When the configuration content information is not found in the configuration content data table, the basic content information corresponding to the target content area identifier is obtained from the basic content data table, and the basic content information is determined as the target content information.
5. The content display method as described in claim 4, characterized in that, Before obtaining the target content information corresponding to the content display request based on the target content region identifier, the method further includes: Get the content region identifier for each content region in the current application; Based on the content region identifier, obtain the content data corresponding to the content region; The content data is parsed to obtain the content information corresponding to each content area, and the content information is stored in the resource database.
6. The content display method as described in claim 5, characterized in that, The step of obtaining the content data corresponding to the content region based on the content region identifier includes: Obtain the current version information of the application; Based on the content region identifier and the current version information, the content data corresponding to the content region is obtained from the cloud using the content development toolkit corresponding to the current application.
7. The content display method as described in claim 1, characterized in that, After displaying the target content information based on the configured display parameters, the process further includes: When a routing request for the target content information is received, the routing link corresponding to the target content information is obtained; Using the content development kit corresponding to the current application, the routing link is parsed to obtain routing information, which includes the destination page address. Based on the routing information, the current page is redirected to the destination page corresponding to the destination page address.
8. A content display device, characterized in that, include: The business requirement information acquisition unit is used to acquire business requirement information for each content area in the current application. The business requirement information includes information on the business requirements corresponding to the content area, which is used to characterize the business requirements corresponding to each content area. The business requirements are requirements put forward for each business, which are used to represent the high-level goals of the organization or customer. The display parameter configuration unit is used to configure the display parameters of the content area based on the business requirement information, so as to obtain the configured display parameters; A request receiving unit is used to receive a content display request, the content display request including a target content area identifier, the target content area identifier being a content area identifier of the content area corresponding to the business terminal that triggered the content display request, used to identify information of a content area; The content information acquisition unit is used to acquire the target content information corresponding to the content display request based on the target content area identifier; The content display unit is used to display the target content information based on the configured display parameters.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a plurality of instructions adapted for loading by a processor to perform the steps of the content display method according to any one of claims 1 to 7.
10. A computer device, characterized in that, It includes a memory and a processor; the memory stores an application program, and the processor is used to run the application program within the memory to perform the steps of the content display method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Information display method, terminal and storage medium
CN113778444A
Content display method and device, computer equipment and storage medium
CN114374853A