• Skip to content
  • Skip to primary sidebar
  • Skip to footer

Foliovision

Main navigation

  • Weblog
    • FV Player
    • WordPress
    • Video of the Week
    • Case Studies
    • Business
  • About
    • Testimonials
    • Meet the Team
    • We Support
    • Careers
    • Contact
    • Pricing
  • Products
  • Support
    • FV Player Docs
    • Pro Support
  • Login
  • Basket is empty

Google DFP integration

[Solved]

Foliovision › Forums › FV Player › How to … › Google DFP integration

  • Kobus 8 years, 11 months ago

    Hi guys
    I have installed the FV Player and FV Player Pro plugins on WordPress. I also created an ad-unit in DFP. How do I integrate the ad-unit with FV Player?

Viewing 9 replies - 1 through 9 (of 9 total)
  • Kobus 9 years ago

    I’m specifically struggling with the video container div which ID changes for each player. Normally banners are initialized in the <head> with the javascript:
    210237261957879f5d433eb_000000

    gptAdSlots[0] = googletag.defineSlot('/path/to/video-ad-unit', [640, 480], 'ad-unit-container-id').
    		defineSizeMapping(video_640x480_mapping).
    		addService(googletag.pubads());

    but FV Player keeps generating random IDs like wpfp_257d93a48edfd1afa6842bb357e50582:

    <div id="wpfp_257d93a48edfd1afa6842bb357e50582" class="flowplayer no-brand is-splash play-button is-youtube" data-embed="false" style="max-width: 640px; max-height: 480px; " data-analytics="UA-00000000-0" data-rtmp="" data-ratio="0.75" data-ad_show_after="0" data-engine="fvyoutube">
    	<video poster="https://i.ytimg.com/vi/DGVlee80dCk/maxresdefault.jpg" preload="none">
    <source src="https://youtu.be/DGVlee80dCk" type="video/youtube" />
    	</video>
    </div></div>

    Any help would be appreciated.

    Kobus 9 years ago

    Where in the FV Player configuration must the DFP ad-unit URL be specified? DFP’s tag generator generates die URL for the ad-unit and looks like this example:

    https://pubads.g.doubleclick.net/gampad/ads?slotname=/124319096/external/ad_rule_samples&sz=640x480&ciu_szs=300x250&unviewed_position_start=1&output=xml_vast3&impl=s&env=vp&gdfp_req=1&ad_rule=0&vad_type=linear&vpos=preroll&pod=1&ppos=1&lip=true&min_ad_duration=0&max_ad_duration=30000&cust_params=deployment%3Ddevsite%26sample_ar%3Dpreonly&url=https://developers.google.com/interactive-media-ads/docs/sdks/html5/tags&video_doc_id=short_onecue&cmsid=496&kfa=0&tfcd=0

    When that URL is input as a video URL on the Settings page in the Video Ads (Pro) (Beta) block, an error is displayed in the player that the video doesn’t exist.

    video-5-minute-met-dirk-hermann-maroela-media-mozilla-firefox_2016-06-21_13-12-28
    Video-5-minute-met-Dirk-Hermann-Maroela-Media-Mozilla-Firefox_2016-06-21_13-12-28
    fv-player-maroela-media-wordpress-mozilla-firefox_2016-06-21_13-12-07
    FV-Player-‹-Maroela-Media-—-WordPress-Mozilla-Firefox_2016-06-21_13-12-07
    Martin 9 years ago

    Hello Kobus,

    1) please check our Google Ads guide here: https://foliovision.com/player/ads/incorporating-google-adsense

    See step 5. where the ad code gets inserted. That’s where you can put in a div with your desired ID.

    However such div only becomes visible once the video starts playing so I’m not sure if your ad code in header will be effective. So please use a different kind of ad embed code, like we do in our guide.

    2) Your ad URL looks like a VAST video ad tag. To use that you would have to buy our FV Player VAST: https://foliovision.com/player/vast

    You can actually test your VAST ad tag here: https://foliovision.com/player/vast/tester

    Video Ads block of FV Player Pro expects a video file.

    Thanks,
    Martin

    Alec Kinnear 9 years ago
    Avatar photo

    Hi Kobus,

    Are you sure you don’t want some of the other pro features beside just the VAST/VPAID feature? There’s a list on our home page and a more detailed list here of what’s done and what’s going to be done soon: https://trello.com/b/nMI1nPFC/fv-player

    Thanks.

    Making the web work for you, Alec

    Alec Kinnear 9 years ago
    Avatar photo

    Hi Kobus,

    Thanks for the additional details.

    1. To be able to embed YouTube videos, you need FV Player Pro.
    2. To be able to add VAST/VPAID to those videos, you need FV VAST/VPAID.

    In your use case – YouTube videos with ads – you need both FV Player Pro and FV VAST/VPAID.

    Thanks for being part of Foliovision!

    Making the web work for you, Alec

    Alec Kinnear 9 years ago
    Avatar photo

    Kobus, FV Player Pro has so many features we don’t expect anyone to use them all or even more than a third of them.

    FV Player Pro works with intelligent defaults so we make only a small core set of features available by default and you can enable whatever extras you need so that in the posting workflow, you or your client can work quickly and clearly.

    This is different than most video plugins which have a muddled and overly complex interface. We keep the interface as lean as possible and the possibilities as wide as possible.

    I hope these tips help.

    Alec Kinnear 9 years ago
    Avatar photo

    Hi Kobus,

    You’re welcome. You can use FV VAST/VPAID on conventionally hosted videos without FV Player Pro (which in your case helps with the pro YouTube and/or Vimeo integration).

    Please let us know if you have any other questions.

    Thanks for being part of Foliovision!

    Making the web work for you, Alec

    Kobus 9 years ago

    Hi guys

    I purchased the VAST extension for FV Player and the pre-rolls are working well on embedded YouTube videos. It wasn’t even necessary to define the ad-unit in the HTML <head>.

    Thank you for the help.
    Kobus

    Alec Kinnear 9 years ago
    Avatar photo

    Hi Kobus,

    Thanks for the field report. I’m delighted to hear ads are working well for you. Don’t hesitate to contact us with any other questions.

    Thanks for being part of Foliovision!

Viewing 9 replies - 1 through 9 (of 9 total)
Reply To: Google DFP integration



Please Sign in or Register to upload files.

Related Posts

  1. YouTube Playlist Integration and Other New Features

  2. 37signals suite review: Is it worth upgrading? First fix the suite integration and syncing guys…

    37signals suite review: Is it worth upgrading? First fix the suite integration and syncing guys…

  3. Detailed Video Stats in Google Analytics

Primary Sidebar

Sign in Register
FV Player Docs Post New Topic

Welcome

to Foliovision support forums! We'll be happy to provide free support to resolve all the reported bugs. You always can start by specifying your OS and browser and steps to reproduce the bug.

If you need help with the installation on your site, please submit a request for a Pro Support Incident. We'll have you up and running in no time, with detailed instructions on how to resolve your issue yourself in the future.

Facing a hard to solve WordPress problem? On a tight deadline?

Let us take care of it for you
right now.

Pro Support Buy FV Player

Footer

Our Plugins

  • FV WordPress Flowplayer
  • FV Thoughtful Comments
  • FV Simpler SEO
  • FV Antispam
  • FV Gravatar Cache
  • FV Testimonials

Free Tools

  • Pandoc Online
  • Article spinner
  • WordPress Password Finder
  • Delete LinkedIn Account
  • Responsive Design Calculator
Foliovision logo
All materials © 2025 Foliovision s.r.o. | Panská 12 - 81101 Bratislava - Slovakia | info@foliovision.com
  • This Site Uses Cookies
  • Privacy Policy
  • Terms of Service
  • Site Map
  • Contact
  • Tel. ‭+421 2/5292 0086‬

We are using cookies to give you the best experience on our website.

You can find out more about which cookies we are using or switch them off in .

Powered by  GDPR Cookie Compliance
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

Necessary Cookies

Strictly Necessary Cookie allow you to log in and download your software or post to forums.

We use the WordPress login cookie and the session cookie.

If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.

Support Cookies

Foliovision.com uses self-hosted Rocket.chat and self-hosted Freescout support desk to provide support for FV Player users. These cookies allow our visitors to chat with us and/or submit support tickets.

We are delighted to recommend self-hosted Rocket.chat and especially Freescout to other privacy-conscious independent publishers who would prefer to self-host support.

Please enable Strictly Necessary Cookies first so that we can save your preferences!

3rd Party Cookies

This website uses Google Analytics and Statcounter to collect anonymous information such as the number of visitors to the site, and the most popular pages.

Keeping this cookie enabled helps us to improve our website.

We reluctantly use Google Analytics as it helps us to test FV Player against popular Google Analytics features. Feel free to turn off these cookies if they make you feel uncomfortable.

Statcounter is an independent Irish stats service which we have been using since the beginning of recorded time, sixteen years ago.

Please enable Strictly Necessary Cookies first so that we can save your preferences!