Directory

← Back

google-ads

Polymer elements to show Google ads

Author

Rating

Popularity

<100

[ This description is mirrored from README.md at github.com/CaptainCodeman/google-ads on 2019-05-22 ]

Published on webcomponents.org

Demo and API docs

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>

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

<dfp-lite-ad ad-unit-path="/559809888/polymer" style="width:300px;height:250px;"></dfp-lite-ad>

Options

  • adUnitPath
  • clickUrl
  • pageUrl
  • cookieOptOut
  • targeting
  • categoryExclusions
  • tagForChildDirectedTreatment

<adsense-ad>

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

(not yet implemented)

Compatibility

(Loading compatibility data...)

Was this helpful? Need more help?
Leave a comment or a question below. You can also join the chat on Discord or ask questions on StackOverflow.

Version

Dependencies

  • polymer#Polymer/polymer#^2.0.0-rc.2
  • iron-resizable-behavior#PolymerElements/iron-resizable-behavior#2.0-preview
  • deepmerge#^1.3.2
Released
2017-03-31
Maturity
IMPORTED
License
MIT License

Compatibility

Framework
Polymer 2.0+
Browser
Browser Independent

google-ads - Vaadin Add-on Directory

Polymer elements to show Google ads google-ads - Vaadin Add-on Directory
**[ This description is mirrored from README.md at [github.com/CaptainCodeman/google-ads](https://github.com//CaptainCodeman/google-ads/blob/v0.0.1/README.md) on 2019-05-22 ]** [![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)
View on GitHub
GitHub Homepage
Issue tracker

google-ads version 0.0.1
### Dependencies * polymer#Polymer/polymer#^2.0.0-rc.2 * iron-resizable-behavior#PolymerElements/iron-resizable-behavior#2.0-preview * deepmerge#^1.3.2

Online