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

Foliovision

  • 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 9 years, 8 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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 10 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

How to …

    Categories

    • Business
    • Camera Reviews
    • Case Studies
    • Design
    • FV Player
    • Internet Marketing
    • IT
    • Life
    • SEO
    • Slovak
    • Video of the Week
    • WordPress

    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 © 2026 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‬