Adsense Widget Shortcode for WordPress

  • Sharebar

Adsense widget allows you to use it in your posts with shortcode. Basic shortcode syntax follows:

All the arguments are optional. By default 

 only displays banner with no slot & channel id, align class to none. Shortcode accepts following values for type:

  • leaderboard : A wide banner with 728×90 pixels in size.
  • banner : Regular banner with 468×60 pixels in size.
  • half-banner : Small banner with 264×60 pixels in size.
  • button : Square banner with 125×125 pixels in size.
  • skyscraper : Vertical banner with 120×600 pixels in size.
  • wide-skyscraper : Vertical banner with 160×600 pixels in size.
  • vertical-banner : Vertical banner, 120×240 pixels in size.
  • small-rectangle : Rectangle ad unit, 180×150 pixels in size.
  • small-square : Square ad unit, 200×200 pizels in size,
  • square : Square ads in 250×250 pixels,
  • medium-rectangle : Rectangle ad unit – 300x250px,
  • large-rectangle : Large Rectangle ad unit – 336x280px,
  • links728 : Link Unit 728x15px,
  • links468 : Link Unit 468x15px,
  • links200 : Link Unit 200x90px,
  • links180 : Link Unit 180x90px,
  • links160 : Link Unit 160x90px,
  • links120 : Link Unit 120x90px.

Align adds a class to the container <div>, if your theme doesn’t support aligncenteralignleft and alignrightclasses then this option won’t work.

credit: shailan.com

You can leave a response, or trackback from your own site.