Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
HTML::Adsense(3)      User Contributed Perl Documentation     HTML::Adsense(3)

NAME
       HTML::Adsense - Create adsense widgets easily

SYNOPSIS
       This module wraps Google	Adsense	ad creation in OO perl code.

	 use HTML::Adsense;

	 my $myad = HTML::Adsense->new(
	   'client' => 'pub-4763368282156432',
	 ); # OR
	 $myad->client('pub-4763368282156432');
	 print $myadd->render();

METHODS
   new
       Creates the HTML::Adsense object.

   render
       Returns a the adsense code.

   set_defaults
       Sets several defaults, used in object creation.

   set_format
       Sets the	height,	width, type and	format variables based on a format
       name and	a list of preset values.

ACCESSOR METHODS
       client
	   The client ID.

       width
	   The ad width.

       height
	   The ad height.

       format
	   The ad format.

       type
	   The ad type.

       channel
	   The ad channel.

       border
	   The ad border color.

       bg  The ad background color.

       link
	   The ad link color.

       text
	   The ad text color.

       url The ad url color.

SUPPORTED AD FORMATS
       This module has several height/width/type formats to select from. See
       the adsense formats page	for more information on	available adsense
       formats.

	 https://www.google.com/adsense/adformats

       This doesn't prevent you	from using your	own formats and	colors.	See
       the accessor methods for	more information.

       text 468x60
       text 728x90

AUTHOR
       Nick Gerakines, "<nick at gerakines.net>"

CAVEATS
       [A] There is a default client ID	set. You Must either pass the client
       ID when creating	the object or set it via an accessor or	you will NOT
       get paid.

       [B] The current list of supported ad preset formats is very limited.

BUGS
       Please report any bugs or feature requests to "bug-html-adsense at
       rt.cpan.org", or	through	the web	interface at
       <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=HTML-Adsense>.  I will
       be notified, and	then you'll automatically be notified of progress on
       your bug	as I make changes.

SUPPORT
       You can find documentation for this module with the perldoc command.

	   perldoc HTML::Adsense

       You can also look for information at:

       o   AnnoCPAN: Annotated CPAN documentation

	   <http://annocpan.org/dist/HTML-Adsense>

       o   CPAN	Ratings

	   <http://cpanratings.perl.org/d/HTML-Adsense>

       o   RT: CPAN's request tracker

	   <http://rt.cpan.org/NoAuth/Bugs.html?Dist=HTML-Adsense>

       o   Search CPAN

	   <http://search.cpan.org/dist/HTML-Adsense>

       o   Google Adsense Home Page

	   <https://www.google.com/adsense/>

       o   Google Adsense Blog

	   <http://adsense.blogspot.com/>

       o   Google Adsense Supported Formats

	   <https://www.google.com/adsense/adformats>

COPYRIGHT & LICENSE
       Copyright 2006 Nick Gerakines, all rights reserved.

       This program is free software; you can redistribute it and/or modify it
       under the same terms as Perl itself.

perl v5.24.1			  2007-04-30		      HTML::Adsense(3)

NAME | SYNOPSIS | METHODS | ACCESSOR METHODS | SUPPORTED AD FORMATS | AUTHOR | CAVEATS | BUGS | SUPPORT | COPYRIGHT & LICENSE

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=HTML::Adsense&sektion=3&manpath=FreeBSD+12.0-RELEASE+and+Ports>

home | help