An open API service indexing awesome lists of open source software.

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.

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.

![Build status](https://travis-ci.org/szrnka-peter/ngAdsense.svg?branch=master)
[![codecov](https://codecov.io/gh/szrnka-peter/ngAdsense/branch/master/graph/badge.svg)](https://codecov.io/gh/szrnka-peter/ngAdsense)

[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7YEPKTQRNK5YA)

## Requirements

- A modern browser
- AngularJS 1.6+

## Installation

This 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.