2017 © Pedro Peláez
 

symfony-bundle the-drum-dfp-bundle

Symfony DFP Bundle

image

thedrum-developers/the-drum-dfp-bundle

Symfony DFP Bundle

  • Tuesday, December 5, 2017
  • by chrisshennan
  • Repository
  • 3 Watchers
  • 0 Stars
  • 112 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

The Drum DFP Bundle

SensioLabsInsight, (*1)


Adds support for configuring and rendering DFP ad units in a Symfony project, (*2)

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. <div id="DFP_mpu_dh_1"></div>, (*3)

Include the following before the closing

tag , (*4)

{{ the_drum_dfp_render() }}
<script async src="/bundles/thedrumdfp/js/dfp.js"></script>

Activate Ads

Set the_drum_dfp.active is set to true in app/config/parameters.yml, (*5)

License

This bundle is under the MIT license. See the complete license in the bundle:, (*6)

Resources/meta/LICENSE

Reporting an issue or a feature request

Issues and feature requests are tracked in the Github issue tracker., (*7)

When reporting a bug, it may be a good idea to reproduce it in a basic project built using the Symfony Standard Edition to allow developers of the bundle to reproduce the issue by simply cloning it and following some steps., (*8)

The Versions

05/12 2017

dev-master

9999999-dev

Symfony DFP Bundle

  Sources   Download

MIT

The Requires

 

dfp google dfp double click

05/12 2017

dev-lazy_loading_ads

dev-lazy_loading_ads

Symfony DFP Bundle

  Sources   Download

MIT

The Requires

 

dfp google dfp double click