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
- Host: GitHub
- URL: https://github.com/captaincodeman/google-ads
- Owner: CaptainCodeman
- Created: 2017-03-30T20:37:33.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2018-09-12T15:59:52.000Z (over 7 years ago)
- Last Synced: 2025-06-04T14:06:04.467Z (8 months ago)
- Language: HTML
- Size: 9.05 MB
- Stars: 4
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](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)