Skip to content

gwhigs/google-ads

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Polymer elements to show Google ads

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • HTML 100.0%