Abstract:
A method and device for publishing promotion contents and computer storage medium are described. The compatibility of the promotion content publishing method can be enhanced and an accurate delivery of the promotion content can be achieved. In the method, a description file is issued to the client. The client then downloads promotion content suitable for its own operation system platform and device according to the description file. Thus the method can be used in different platforms and devices including iOS, Android, WinCE, S60v3, S60v5 and etc. The server can identify the platform of the client, the type of the device and the function opened on the client, thus an accurate delivery of promotion content to specific type of client can be achieved.

Description:
CROSS REFERENCE 
       [0001]    This patent application is a continuation of an International application No. PCT/CN2012/086568 filed on Dec. 13, 2012, which claims priority of a Chinese Patent Application No. 201110447849.X filed on Dec. 28, 2011, entitled “Method and Device for Publishing Promotion Contents”, whose applicant is Tencent Technology (Shenzhen) Co., Ltd. The full text of each application is incorporated by reference in its entirety in the present application. 
     
    
     FIELD OF THE TECHNICAL 
       [0002]    The present disclosure relates to Internet technology, particularly to a method, and device for pushing promotion contents to different platforms or devices and computer storage medium. 
       BACKGROUND 
       [0003]    Most of existing processes for pushing promotion contents can only be used in a few specific platforms, which cannot be compatible with some other platforms or devices. For example, the promotion content pushing platform of Apple Inc only supports iOS operating system platform, while the promotion content pushing platform of Google Inc supports Android and iOS operating system platform. 
         [0004]    In addition, the existing processes for pushing the promotion contentscannot achieve a precise delivery according to functions of clients. For example, by using the existing processes, the service provider cannot push promotion contents according to information about whether a client has opened a specific function or not. 
       SUMMARY 
       [0005]    In view of the above, a method and device for publishing promotion content and computer storage medium are provided in the present disclosure. The method and device have a better compatibility and by which accurate deliveries of the promotion contents can be achieved. 
         [0006]    The technical scheme of the present disclosure will be discussed in detail below. 
         [0007]    According to an embodiment of the present disclosure, a method for publishing promotion contents includes: 
         [0008]    setting up, by a server, publishing parameters for a promotion content, the publishing parameters comprising types of platforms and types of devices suitable for the promotion content; 
         [0009]    receiving, by the server, a login request from a client, the login request containing type of platform and type of device of the client; 
         [0010]    selecting, by the server, a promotion content suitable for the client according to the publishing parameters of the promotion content, the type of the platform and the type of the device of the client; 
         [0011]    issuing, by the server, a description file of the promotion content selected to the client; 
         [0012]    receiving, by the server, a resource request from the client; and 
         [0013]    issuing, by the server, at least one resource file of the promotion content selected to the client. 
         [0014]    Another example of the present disclosure also provides a device for publishing promotion content, including: 
         [0015]    a setting module, configured to set up publishing parameters for a promotion content, the publishing parameters comprising types of platforms and types of devices suitable for the promotion content; 
         [0016]    a selecting module, configured to select a promotion content suitable for a client according to the publishing parameters of the promotion content after receiving a login request from the client, the login request containing type of platform and type of device of the client; and 
         [0017]    an issue module, configure to issue a description file of the promotion content to the client, and issue at least one resource file of the promotion content suitable for the client according to a resource request from the client. 
         [0018]    Yet another example of the present disclosure also provides a computer storage medium, which stores computer programs performing the method for publishing promotion contents according to an example of the present disclosure. 
         [0019]    Another example of the present disclosure also provides a computing device for publishing promotion contents, which includes: 
         [0020]    one or more processors; 
         [0021]    a memory; and 
         [0022]    one or more programs stored in the memory and to be executed by the one or more processors, the one or more programs comprise instructions to to direct the one or more processors to perform acts of: 
         [0023]    setting up publishing parameters for a promotion content, the publishing parameters comprising types of platforms and types of devices suitable for the promotion content; 
         [0024]    receiving a login request from a client, the login request containing type of platform and type of device of the client; 
         [0025]    selecting a promotion content suitable for the client according to the publishing parameters of the promotion content, the type of the platform and the type of the device of the client; 
         [0026]    issuing a description file of the promotion content selected to the client; 
         [0027]    receiving a resource request from the client; and 
         [0028]    issuing at least one resource file of the promotion content selected to the client. 
         [0029]    According to the example of the present disclosure, the server issues an information description file to the client. The client then downloads promotion content suitable for its own operation system platform and device according to the information description file. Thus the method can be used in different platforms and devices including iOS, Android, WinCE, S60v3 and etc. The server disclosed in the present disclosure can identify the platform of the client, the type of the device and the function opened on the client, thus an accurate delivery of promotion content to specific type of client can be achieved. 
     
    
     
       BRIEF DESCRIPTION OF THE DRAWINGS 
         [0030]      FIG. 1  is a flowchart illustrating a method for publishing promotion contents according to an example of the present disclosure; 
           [0031]      FIG. 2  is a schematic diagram illustrating architecture of a device for publishing promotion contents according to an example of the present disclosure. 
       
    
    
     DETAILED DESCRIPTION 
       [0032]    To make the objective, technical solutions and advantages of the present invention clearer, examples of the present invention would be described in further detail with reference to the drawings. 
         [0033]      FIG. 1  is a flowchart illustrating a method for publishing promotion contents (namely, promotion content publishing method) according to an example of the present disclosure. According to  FIG. 1 , the method includes the following steps. 
         [0034]    In step  101 , publishing parameters of a promotion content are configured in a server, and resource files of the promotion content are deployed. 
         [0035]    According to the example of the present disclosure, the publishing parameters of the promotion content are configured based on types of platforms and types of devices of clients suitable for the promotion content. 
         [0036]    The promotion content includes at least one of the following: texts, images, animations, videos and contents in other multi-media formats. 
         [0037]    The publishing parameters are used to indicate the types of the platforms and devices suitable for the promotion content, published time information (such as a valid starting and ending time, display duration and etc.), background information (such as a Uniform Resource Locator (URL) of a background image, etc.), a target URL, display policy information (such as whether to allow a user to close and etc.). The publishing parameters may be stored in a publishing parameter list in a database. According to an example of the present disclosure, fields of the publishing parameter list are listed in Table 1: 
         [0000]    
       
         
               
             
               
               
               
             
           
               
                 TABLE 1 
               
             
             
               
                   
               
               
                 publishing parameter list 
               
             
          
           
               
                 FIELD 
                 DESCRIPTION 
                 NOTE 
               
               
                   
               
               
                 ID 
                 An ID of 
                 Globally unique, 
               
               
                   
                 a promotion 
                 used to determine whether the 
               
               
                   
                 content 
                 promotion content has been issued, and 
               
               
                   
                   
                 to report statistical data from the client 
               
               
                 Plat- 
                 Types of compatible 
                 For example, may include iOs, Android, 
               
               
                 form 
                 platforms, i.e. the 
                 S60 and etc 
               
               
                   
                 types of operating 
               
               
                   
                 systems 
               
               
                 Device 
                 Types of compatible 
                 For example, may include iPhone, iPad, 
               
               
                   
                 devices 
                 Android, S60v3, S60v5 and etc 
               
               
                 Version 
                 A range of versions 
                 The server only issues the promotion 
               
               
                   
                 of the compatible 
                 content to a client whose operating 
               
               
                   
                 platforms 
                 system&#39;s version is within this range 
               
               
                 Start 
                 A valid starting time 
                 The promotion content would be valid 
               
               
                 time 
                 of the promotion 
                 and issued only after the start time 
               
               
                   
                 content 
               
               
                 End 
                 A valid ending time 
                 The promotion content would be invalid 
               
               
                 time 
                 of the promotion 
                 and no longer issued after the end time 
               
               
                   
                 content 
               
               
                 Con- 
                 A duration of 
                 Starting from the time that the client 
               
               
                 tinue 
                 time for 
                 receives the promotion content, if the 
               
               
                   
                 displaying the 
                 promotion content has not been clicked 
               
               
                   
                 promotion content 
                 open or closed during this duration, 
               
               
                   
                   
                 automatically close the promotion 
               
               
                   
                   
                 content 
               
               
                 Back- 
                 Name of the 
                 The client may obtain the background 
               
               
                 ground 
                 background image 
                 image of the promotion content from the 
               
               
                 image 
                 of the promotion 
                 server according to this field 
               
               
                   
                 content 
               
               
                 Enable 
                 Whether to allow 
                 If the value of “enable close” is true, after 
               
               
                 close 
                 the user to close 
                 the user click the promotion content, the 
               
               
                   
                 the promotion 
                 displayed window would be closed; 
               
               
                   
                 content 
                 otherwise, the displayed window would 
               
               
                   
                   
                 not be closed until the promotion content 
               
               
                   
                   
                 becomes invalid (refer to the description 
               
               
                   
                   
                 of “continue”) 
               
               
                 URL 
                 A target URL of the 
                 The URL of the link to be jumped to after 
               
               
                   
                 promotion content 
                 a clicking operation 
               
               
                   
               
             
          
         
       
     
         [0038]    In step  102 , the client sends a login request to the server, wherein the request including the type of the platform and the type of the device of the client. 
         [0039]    Further, the login request may further include the version of the platform (such as, iOS 4.3.3, iOS 5 and etc.) of the client. In different versions of operating systems, different system functions can be provided. Therefore, the server can further refine the condition of selecting promotion contents for the clients according to the version of the platform besides the type of the platform and the type of the device of the client. Thus a more accurate delivery of promotion content can be achieved. 
         [0040]    In step  103 , the server selects a promotion content suitable for the client according to the publishing parameters configured and the type of the platform and device of the client contained in the login request. 
         [0041]    The server may select the promotion content suitable for the client based on the following conditions: 
         [0042]    1) whether current time is within the duration between the valid starting time and valid ending time of the promotion content, the result can be obtained based on the valid starting time of the promotion content and the valid ending time of the promotion content in the publishing parameters; 
         [0043]    2) whether the type of the platform and the type of the device matches the publishing parameters of the promotion content; the result can be obtained by comparing the type of the platform and the type of the device of the client contained in the login request and the types of compatible platforms and the types of compatible devices of the promotion content in the publishing parameters. 
         [0044]    In one example of the present disclosure, the selecting conditions can be further refined to achieve a more accurate delivery. In this example, the login request from the client further includes the version of the platform of the client. And the server determines whether the promotion content is suitable for the client based on “version” configured in the publishing parameters, which refers to the range of the versions of compatible platforms. 
         [0045]    In another example of the present disclosure, the selecting conditions can be further refined to achieve a more accurate delivery. In this example, the server may track the state of a specific function on each client. When clients open/close the specific function, the server would record the state of the specific function on the clients. And after receiving a login request from a client, the server may make a decision on whether to issue a promotion content based on the state of the specific function on the client. 
         [0046]    In step  104 , the server issues to the client a description file of the promotion content selected for the client. 
         [0047]    According to an example of the present disclosure, one description file is configured for one promotion content. And the server would issue a same description file to all platforms the server supports (dataflow is small because no background image is attached). The description file includes content information corresponding to each type of platform and device, configuration information of the publishing parameters. The content information may include title, introduction and etc. the configuration information of the publishing parameters may include source information of the background image (URL of the background image), a target URL, publishing time information (such as a valid starting/ending time, a display duration time and etc), display policy information (such as whether to allow the user to close and etc.) and etc. With respect to a same promotion content, the client may only analyze the description information of its own platform and display according to the result of the analyzing. 
         [0048]    In step  105 , after receiving the description file, the client may analyze the description file; obtain the content information corresponding to its own platform and the configuration information of the publishing parameters. 
         [0049]    In the publishing parameter list, the field “platform” is used to indicate the platforms the promotion content can be issued to or the compatible platforms. If the field “platform” includes only one platform, the promotion content can be issued only to this platform. The server may issue the promotion content to the user corresponding to the type of the platform of the user based on the type of the platform contained in the login request. While if the field “platform” includes a plurality of types of platforms, the server may configure different background images, different target URLs to different platforms. And the server may issue a same description file to all the platforms supported. The description file describes configuration information corresponding to each platform. With respect a same promotion content, the client may only analyze the description information of its own platform and display according to the result of the analyzing. 
         [0050]    According to an example of the present disclosure, the description file may be in a format of Extensible Markup Language (XML). 
         [0000]    
       
         
               
             
           
               
                   
               
             
             
               
                  &lt;tips&gt; 
               
               
                  &lt;tip id=″bindphone″ platform=″android″ device′′′′ enableclose=″true″ 
               
               
                 transparentclose=″true″&gt; 
               
               
                   &lt;title x=″60″ y=″0″ width=″120″ color=″#ffffff″&gt;title of promotion content 1&lt;/title&gt; // 
               
               
                 text formats are different 
               
               
                   &lt;description x=″60″ y=″23″ width=″200″ &gt;introduction of promotion 
               
               
                 content1&lt;/description&gt; 
               
               
                   &lt;images&gt; // background image 
               
               
                   &lt;image 
               
               
                 type=″MDPI_P″&gt;weixin://PushSystemMsg/setavatar_mdpi_landscape.jpg&lt;/image&gt; 
               
               
                   &lt;image type=″MDPI_L″&gt;weixin://PushSystemMsg/setavatar_mdpi_potrait.jpg&lt;/image&gt; 
               
               
                   &lt;/images&gt; 
               
               
                   &lt;url&gt;http://misc.3g.qq.com/g/s?aid=template&amp;tid=fast&amp;g_f=2900&lt;/url&gt;// target URL 
               
               
                   &lt;time&gt; 
               
               
                    &lt;start&gt;2011-06-16-17&lt;/start&gt;//valid starting time 
               
               
                    &lt;end&gt;2011-06-17-17&lt;/end&gt; //valid ending time 
               
               
                   &lt;/time&gt; 
               
               
                   &lt;/tip&gt; 
               
               
                   &lt;tip id=″bindphone″ platform=″ios″ device=″iphone″ enableclose=″true″ 
               
               
                 transparentclose=″true″&gt; 
               
               
                   &lt;title x=″60″ y=″0″ width=″120″ &gt;title 2 of promotion content&lt;/title&gt; 
               
               
                   &lt;description x=″60″ y=″23″ width=″200″ &gt;introduction 2 of promotion content 
               
               
                 &lt;/description&gt; 
               
               
                    &lt;images&gt; 
               
               
                     &lt;image 
               
               
                 type=″hd″&gt;weixin://PushSystemMsg/SystemTip_bindphone_hd.png&lt;/image&gt; 
               
               
                     &lt;image 
               
               
                 type=″sd″&gt;weixin://PushSystemMsg/SystemTip_bindphone_sd.png&lt;/image&gt; 
               
               
                    &lt;/images&gt; 
               
               
                    &lt;url&gt;weixin://setting/bindphone&lt;/url&gt;// target URL 
               
               
                    &lt;time&gt; 
               
               
                     &lt;start&gt;2011-06-17-17&lt;/start&gt;//valid starting time 
               
               
                     &lt;end&gt;2011-06-18-17&lt;/end&gt; //valid ending time 
               
               
                     &lt;continue&gt;3&lt;/continue&gt;//display duration time 
               
               
                    &lt;/time&gt; 
               
               
                   &lt;/tip&gt; 
               
               
                   &lt;tip id=″bindphone″ platform=″symbian″ device=″v3″ enableclose=″true″ 
               
               
                 transparentclose=″true″&gt; 
               
               
                    &lt;title x=″60″ y=″0″ width=″120″ color=″#ffffff″&gt;title 3 of promotion content 
               
               
                 &lt;/title&gt; 
               
               
                    &lt;description x=″60″ y=″23″ width=″200″ &gt;introduction 3 of promotion content 
               
               
                 &lt;/description&gt; 
               
               
                    &lt;images&gt; 
               
               
                     &lt;image type=″hd″&gt;weixin://PushSystemMsg/psm_test_hd.png&lt;/image&gt; 
               
               
                     &lt;image type=″sd″&gt;weixin://PushSystemMsg/psm_test_sdpng&lt;/image&gt; 
               
               
                    &lt;/images&gt; 
               
               
                    &lt;url&gt;weixin://setting/bindphone&lt;/url&gt; 
               
               
                    &lt;time&gt; 
               
               
                     &lt;start&gt;2011-06-16-17&lt;/start&gt; 
               
               
                     &lt;end&gt;2011-06-17-17&lt;/end&gt; 
               
               
                    &lt;/time&gt; 
               
               
                   &lt;/tip&gt; 
               
               
                  &lt;/tips&gt; 
               
               
                   
               
             
          
         
       
     
         [0051]    In step  106 , the client sends a resource request to the server according to the configuration information corresponding to the type of the platform and the type of the device in the description file, and obtains at least one resource file of the promotion content designated from the server. The resource file refers to a file which the promotion content relies on, such as a background image and etc. 
         [0052]    According to examples described above, different platforms and different devices use different background images. The client obtains a background image suitable for its own device from the server according to the type attribute of background images. For example, the background image of an iPhone 4 is a high definition (HD) image (image type=“hd”), while the background image of an iPhone 3 or iPod is a standard definition image (image type=“sd”). 
         [0053]    In step  107 , the server issues at least one corresponding resource file of the promotion content according to the request of the client. 
         [0054]    In step  108 , the client displays the promotion content according to configurations in the description file. 
         [0055]    In step  109 , after the client closes the promotion content or after the promotion content becomes invalid, the client reports statistic data corresponding to the promotion content to the server which would help the server to evaluate the publication of the promotion content. 
         [0056]      FIG. 2  is a schematic diagram illustrating architecture of a device for publishing promotion contents (namely, promotion content publishing device) according to an example of the present disclosure. According to  FIG. 2 , the device  200  includes the following modules. 
         [0057]    A setting module  201 , configured to set up publishing parameters for a promotion content. For different types of platforms and devices of the clients, different publication parameters can be set up for a same promotion content. 
         [0058]    A selecting module  202 , configured to select a promotion content suitable for the platform and the device of the client according to the publishing parameters of the promotion content after receiving a login request from a client. 
         [0059]    Preferably, the login request of the client may include: type of the platform of the client, type of the device of the client and version of the platform of the client. The selecting module  202  may select the promotion content suitable for the client according to the type of the platform, the type of the device and the version of the platform of the client. 
         [0060]    An issue module  203 , configured to issue a description file of the promotion content selected to the client, and issue at least one resource file of the promotion content suitable for the platform and device of the client according to a resource request of the client; wherein the description file contains content information corresponding to each type of platform and device and configuration information corresponding to the publishing parameters. 
         [0061]    Preferably, the device may further include a function judging module  204 , configured to judge whether the client has opened a specific function or some specific functions according to a user identity (ID) contained in the login request of the client. 
         [0062]    The selecting module  202  selects the promotion content suitable for the client according to the type of the platform, the type of the device and a judging result from the function judging module  204 . 
         [0063]    Preferably, the description file issued by the issue module  203  contains content information corresponding to each type of platform and device and configuration information corresponding to the publishing parameters. The configuration information corresponding to the publishing parameters contains resource information of a background image, a target URL, published time information and display policy information. 
         [0064]    After receiving the description file, the client obtains the content information and configuration information from the description file according to the type of its own platform and device. 
         [0065]    If modules in the above examples are implemented by software and in the form of a product which can be sold or used independently, the modules can also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the present disclosure or the part contributing to the prior art may be embodied in the form of a software product. The software product may be stored in a storage medium, which includes a plurality of instructions making a computing device (such as a personal computer, a server, or a network equipment) to perform all or part of various examples of the method of the present disclosure. The storage medium may be any kind of non-transitory medium capable of storing program code, which may include any of a U disk, a mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), a disk or an optical disk. Thus, examples of the present disclosure are not limited to any specific combination of hardware and software. 
         [0066]    Yet another example of the present disclosure also provides a computer storage medium, which stores computer programs being executed to perform the method for publishing promotion content according to an example of the present disclosure. 
         [0067]    Still another example of the present disclosure provides a computing device for publishing promotion contents, which includes: one or more processors; a memory; and one or more programs stored in the memory and to be executed by the one or more processors, the one or more programs comprise instructions to direct the one or more processors to perform acts of: 
         [0068]    setting up publishing parameters for a promotion content, the publishing parameters comprising types of platforms and types of devices suitable for the promotion content; 
         [0069]    receiving a login request from a client, the login request containing type of platform and type of device of the client; 
         [0070]    selecting a promotion content suitable for the client according to the publishing parameters of the promotion content, the type of the platform and the type of the device of the client; 
         [0071]    issuing a description file of the promotion content selected to the client; 
         [0072]    receiving a resource request from the client; and 
         [0073]    issuing at least one resource file of the promotion content selected to the client. 
         [0074]    The above are only preferred examples of the present disclosure without any intention to limit the scope of the present invention.