Skip to content

Petvetbook/morrr-angular-google-adsense

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-google-adsense

npm version This module lets you integrate your google adsense advertisements in your AngularJS applications easily.

Installation

bower install morrr-angular-google-adsense

Or alternatively, grab the dist/angular-google-adsense.min.js and include it in your project

In your application, declare the angular-google-analytics module dependency :

angular.module('app', ['morrr-angular-google-adsense']);

There is no need to include to adsense lib, the directive takes care of it and include it (async) only when it is needed.

Use the directive in your html file :

Replace the 'ad-client' and 'ad-slot' attributes with your values

<adsense ad-client="ca-pub-0123" ad-slot="123456789" inline-style="display:inline-block;width:728px;height:90px"></adsense>

About

This module lets you integrate your google adsense advertisements in your AngularJS applications easily.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%