Creating a Video Sitemap
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:video="http://www.google.com/schemas/sitemap-video/1.1"><url><loc>YOUR VIDEO LANDING PAGE URL</loc><video:video><video:thumbnail_loc>VIDEO THUMBNAIL URL</video:thumbnail_loc><video:title>VIDEO TITLE</video:title><video:description>VIDEO DESCRIPTION</video:description><video:content_loc>DIRECT URL TO VIDEO</video:content_loc><video:player_loc allow_embed="yes" autoplay="ap=1">URL TO VIDEO ON A PLAYER</video:player_loc></video:video></url></urlset>
This is the bare minimum amount of code you need to add in a video sitemap. The Bold text indicates things you can change, for example Video title, URL, description etc. Given below is an image of the same code in a text editor to give you a better understanding through proper indentation. It is a snapshot of a complete XML file that has two entries, one which is the same as the code given above, and the next demonstrating an example.
- <urlset> - Just like an <html> tag encloses an HTML document, similarly, the <urlset> tag encloses such a sitemap. It includes to links with the sitemap protocol markup. You can copy it as it is.
- <url>- For each new video entry, there must be a separate <url> tag. You can see two url tags in the image above.
- <loc> - In every URL tag, there must be a <loc> tag and a <video:video> tag. The <loc> tag specifies the URL of a landing page the video is displayed upon. This could be a post, or a separate page as well (see the example).
- <video:video> - The <video:video> tag encapsulates some video attributes such as Title, URL, Description etc.
- The <video:thumbnail_loc>, <video:title>, and <video:description> tags are pretty straightforward. You just need to tweak those according to your Video.
- The next bit is a bit tricky. You can either specify the raw URL of the video file, or you can provide the URL of the video on a video player. So you have a choice between line 9 and 10. You can use one of these options, but not both. However, the raw URL is usually preferred.
Things to rememberFollowing are a few guidelines and things to remember when creating and submitting a Video Sitemap.
- Make sure the video link you provide is public, and is working properly. Google won't guarantee your video's inclusion in search results, but they definitely won't be included if the link doesn't work properly.
- You can include a maximum of 50,000 videos in one sitemap. For more videos, you will need to split your sitemap into different parts.
- Google only recognizes the following formats; mpg, .mpeg, .mp4, .m4v, .mov, .wmv, .asf, .avi, .ra, .ram, .rm, .flv, and .swf. The videos must be accessible via HTTP.
If you have any issues, please let us know in the comments section below. Cheers :)
Need Quick Help within 24 Hours? ASK NOW
If you don't want to get yourself into Serious Technical Trouble while editing your Blog Template then just sit back and relax and let us do the Job for you at a fairly reasonable cost. Submit your order details by Clicking Here »