https://github.com/peter-szrnka/ngadsense
Angular JS directive for Google AdSense advertisements.
https://github.com/peter-szrnka/ngadsense
angularjs angularjs-directives angularjs1 google-adsense-advertisements javascript
Last synced: 28 days ago
JSON representation
Angular JS directive for Google AdSense advertisements.
- Host: GitHub
- URL: https://github.com/peter-szrnka/ngadsense
- Owner: peter-szrnka
- License: mit
- Created: 2014-09-12T08:25:52.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2020-01-02T15:10:59.000Z (over 5 years ago)
- Last Synced: 2025-03-20T18:11:12.736Z (about 1 month ago)
- Topics: angularjs, angularjs-directives, angularjs1, google-adsense-advertisements, javascript
- Language: JavaScript
- Size: 41 KB
- Stars: 18
- Watchers: 2
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# ngAdsense
Angular JS directive for Google AdSense advertisements. With ngAdsense, you can place your ads onto your website, or an Angular JS template as well.

[](https://codecov.io/gh/szrnka-peter/ngAdsense)[](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7YEPKTQRNK5YA)
## Requirements
- A modern browser
- AngularJS 1.6+
## InstallationThis module contains only one file (ngAdsense.js), so you have to download it from GitHub.
Now you have to do is add the scripts to your application. Just make sure the `ng-adsense.min.js` file is inserted **after** the `angular.min.js` script:
```html
```
### Bower
```
bower install ngAdsense --save
```## Usage
1. Add the `ngAdsense` module as a dependency in your AngularJS app;
2. Add the custom directive `` to your html page or template.
3. Setup all three mandatory fields.
4. Ready!
*Important: This solution cannot be tested on local developer environment!*## Example
```html
var ngAdSenseDemoApp = angular.module('DemoApp', ['ngAdsense']);
```
## License
See the [LICENSE](https://github.com/szrnka-peter/ngAdsense/blob/master/LICENSE) file.
## Changelog
See the [CHANGELOG](https://github.com/szrnka-peter/ngAdsense/blob/master/CHANGELOG.md) file.