diTii.com Digital News Hub

Sign up with your email address to be the first to know about latest news and more.

Submit PageMaps Directly to Google Custom Search Engine via Sitemaps or On-Demand Indexing Requests

Sep202011

Submit PageMaps Directly to Google Custom Search Engine via Sitemaps or On-Demand Indexing Requests

Custom Search users have long been able to create Richer Snippets by adding Pagemaps to their webpages.

Today, Google Custom Search team annnounced of enabling direct submission of Pagemaps via either Sitemaps or On-Demand Indexing requests. “This means you no longer have to modify your pages to expose Pagemaps, or wait for Google to crawl your site to process them,” informed Google CSE team blog.

“This saves time when you want to make a quick change to your metadata. If you have data you would like to be displayed on your site, such as reviews snippets, you can submit it directly to Google instead of putting it in publicly visible markup on your pages.”

“For added security, you can even choose to add a private key to your Pagemap and we will only serve it in Custom Search results when that key is provided,” Google added.

Here’s an example of how to add PageMap data directly to your HTML page:


  
   ...
  
  
   ...

Here’s an example of a Sitemap that includes PageMap information for two URLs: http://www.example.com/foo and http://www.example.com/bar.

< ?php xml version="1.0" encoding="UTF-8"?>

 
   http://www.example.com/foo
   
     
       Dragon
       3.5
     
   
 
 
   http://www.example.com/bar
   
     
       Ribs
       4.0
     
   
 

To submit PageMap data using the Custom Search Control API, send an HTTP POST message, using the text/xml content type, to: http://www.google.com/cse/api/default/index/. Include PageMap data in the message body, like this:



  
    
      
        Monkeys
        4.0/5.0
      
      
        1000
        100
      
    
  
  
    
      
        Parrots
        4.5/5.0
      
      
        2000
        200
      
    
  

Here’s an example of an AccessKey in use:


    
      
        myprivate12345
        1000
        100
      
    
  

For more information, please visit this PageMap page.

Share This Story, Choose Your Platform!