An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# The Drum DFP Bundle

[![SensioLabsInsight](https://insight.sensiolabs.com/projects/ad468b2f-affb-49cb-9b50-01d4fe231194/mini.png)](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