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

https://github.com/captaincodeman/google-ads

Polymer elements to show Google ads
https://github.com/captaincodeman/google-ads

Last synced: 4 months ago
JSON representation

Polymer elements to show Google ads

Awesome Lists containing this project

README

          

[![Published on webcomponents.org](https://img.shields.io/badge/webcomponents.org-published-blue.svg)](https://www.webcomponents.org/element/CaptainCodeman/google-ads)

_[Demo and API docs](http://captaincodeman.github.io/google-ads/)_

# Google-Ads

Polymer elements to show Google ads.

Normal attempts to insert Adsense or Dfp ads into sites that user Polymer /
WebComponents will often fail due to the ad-scripts being incompatible with
shadow-dom.

These elements work by creating a div in the page root to shadow the ad
element within any view (keeping it positioned correctly etc...)

## \

`dfp-lite-ad` is an element to show Google Dfp lite ads within Polymer apps.

```html

```

### Options

* adUnitPath
* clickUrl
* pageUrl
* cookieOptOut
* targeting
* categoryExclusions
* tagForChildDirectedTreatment

## \

`adsense-ad` is an element to show Google Adsense ads within Polymer apps.

(not yet implemented)