https://github.com/thedrum-developers/the-drum-dfp-bundle
Adds support for configuring and rendering DFP ad units in a Symfony project
https://github.com/thedrum-developers/the-drum-dfp-bundle
dfp doubleclick-for-publishers symfony
Last synced: 5 months ago
JSON representation
Adds support for configuring and rendering DFP ad units in a Symfony project
- Host: GitHub
- URL: https://github.com/thedrum-developers/the-drum-dfp-bundle
- Owner: thedrum-developers
- Created: 2016-05-06T16:22:22.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2022-08-10T12:17:36.000Z (almost 4 years ago)
- Last Synced: 2024-11-24T16:22:39.454Z (over 1 year ago)
- Topics: dfp, doubleclick-for-publishers, symfony
- Language: PHP
- Size: 1.34 MB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# The Drum DFP Bundle
[](https://insight.sensiolabs.com/projects/ad468b2f-affb-49cb-9b50-01d4fe231194)
---
Adds support for configuring and rendering DFP ad units in a Symfony project
## Installation
#### Install the bundle
```
composer require thedrum-developers/the-drum-dfp-bundle dev-master
```
#### Install the assets
```
bin/console assets:install --symlink
```
## Configuration
#### Add the appropriate configuration for your ads i.e.
```
the_drum_dfp:
network_id: **NETWORK_ID**
domain: **DOMAIN NAME**
positions:
mpu_dh_1:
screen_sizes: []
ad_sizes: [[300, 600], [300,250]]
dom_name: DFP_mpu_dh_1
slot_name: **DFP_AD_MPU_SLOTNAME**
position_name: mpu_dh_1
leaderboard_header:
screen_sizes: [[0,0], [728,90]]
ad_sizes: [[], [728, 90]]
dom_name: **DFP_AD_LEADERBOARD_SLOT_NAME**
slot_name: CAMPAIGN1_728x90
position_name: leaderboard_header
```
#### Add ad placeholder divs into the markup
i.e. `
`
#### Include the following before the closing