Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/digineo/google_dfp
Ruby On Rails helpers and assets for Google DFP
https://github.com/digineo/google_dfp
Last synced: 6 days ago
JSON representation
Ruby On Rails helpers and assets for Google DFP
- Host: GitHub
- URL: https://github.com/digineo/google_dfp
- Owner: digineo
- License: mit
- Created: 2012-04-06T16:40:32.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2017-09-18T21:12:36.000Z (about 7 years ago)
- Last Synced: 2023-04-10T15:07:28.361Z (over 1 year ago)
- Language: Ruby
- Homepage:
- Size: 16.6 KB
- Stars: 11
- Watchers: 11
- Forks: 14
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: MIT-LICENSE
Awesome Lists containing this project
README
Google DFP
==========Ruby On Rails helpers and assets for [Google DFP](http://www.google.com/dfp/).
Installation
------------Gemfile:
gem 'google_dfp', :git => 'git://github.com/digineo/google_dfp.git'
Create a `/config/google_dfp.yml` in your rails project containing all configured creatives:
# creative with fixed size
skyscraper:
size: 120x600
unit: /123456/bigsize
# two possible creatives
bigsize_billboard:
size: 728x90 900x250
unit: /123456/billboard# out of page slot (no size)
oop:
unit: /123456/oopAdd the supplied javascript to your asset pipeline (e. g. `/app/assets/javascripts/application.js`)
//= require google_dfp
Please ensure the `google_dfp.js` is inserted at the bottom of your `` element and jQuery is loaded before.
Usage
-----Just call the `dfp_tag` helper in any view to include insert a DFP tag.
<%= dfp_tag :leaderboard %>
You can optionally specify a targeting hash:
<%= dfp_tag :leaderboard, { :country => 'US', :customer_job => 'teacher' } %>
Copyright
---------Copyright © 2012-2014 [Digineo GmbH](http://www.digineo.de/), released under the MIT license.