Thursday 20 April 2017

Making a YouTube channel ad on your own blog or website free


Hey there!You are probably going to YouTube and there you see a rectangular ad on its homepage.This ad is created by YouTube but its quite interesting and give a focus to its viewers.You wish that if your channel ad of that type on your blog or website , will move your visitors to your YouTube channel an get more views.But this is coast money or not?Answer is absolutely no.You can do it for free and here I will show you how.

The ad is created by YouTube specially for its homepage.If you already have a well running blog and you're going to start a new YouTube channel and want to transfer your visitors to YouTube , this is a very good way to do it.

This is a little trick of a URL only.You have to make a iframe tag on your blog or website' HTML like below.



<iframe width="900" height="250" src="" frameborder="0" allowfullscreen></iframe>

But wait! We didn't added value of src attribute.Now what will be inside src that's the great thing.
Now let's get started!

1.1 PREPARING THE SRC 
I have given a little table below in which I have mentioned about some properties and their values.The main URL be like this-https://www.youtube.com/video_masthead? .After question mark ,all there will be the properties and their values both separated by '&'


Property
Value
Video_id
YouTube Video id
(You will get this after the YouTube URL.For eg.www.youtube.com/watch?v=Id)
TextLine1
Text that appear on the top.Any custom text or title.
Separated each word by + sign.For eg.My+first+video
autocrop
Video will be auto cropped in the wide screen. Possible values are 1 or 0.1 stands for true and 0 stands for false.
autoplay_start_time
The numerical value stands for the time for playing the video.Note that the video will auto play in mute mode unless user increase volume.1000 stands for 1second.
autoplay_duration
The numerical value stands for how many seconds the video should play.1000 stands for 1second.
video_wall
Possible value 0 or 1. 0 doesn’t show the other videos on your channel whereas 1 shows the other videos on your channel.
subscribe_button
Shows subscribe button and subscribers count after playing video.0 value for false and 1 for true.
Cta_label
Optional label to show at bottom after video ends.



Video is played for a particular time setted in autoplay_duration , and then minimises.Your profile and cover is visible there.

1.2 CREATING SRC
Make a src like this-
https://www.youtube.com/video_masthead?video_id=P3ksifJUgyY&textline1=subscribe+my+channel+on+youtube&autocrop=1&autoplay_duration=6000&subscribe_button=1

Above, I made a little URL. I inserted it in the iframe and made a JSfiddle. Feel free to hack the fiddle , trying more properties and changing values here.

1.3 SYNTAX FOR MAKING URL
If you didn't know how to make URL'S , I will show it here.Below it is a simple syntax of making url.

https://www.youtube.com/video_masthead?property=value&property=value

You can add many properties you want with their values.

1.4 MAKE A USE OF IT
Huh!?Now you know how to do this simple Ad widget.A live demo I'll be doing below.
Please keep sharing our articles & subscribe for more article updats.

0 Please Share a Your Opinion.:

Comment something useful and creative :)