• 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

Ads stopped working

[Solved]

Foliovision › Forums › FV Player › Troubleshooting › Ads stopped working

  • parrjj01 10 years, 8 months ago

    Today I noticed that my video ads were not working. They worked perfectly when I purchased Pro a week or so ago.

    This was the code I’m using to display my sites

    [fvplayer src="VIDEO URL" ad='<!--JuicyAds v2.0-->
    <iframe border=0 frameborder=0 marginheight=0 marginwidth=0 width=616 height=286 scrolling=no allowtransparency=true src=http://adserver.example.com/adshow.php?adzone=333374></iframe>
    <!--JuicyAds END-->' ad_height="250" ad_width="600"]

    Which worked, and I also put the ad script in the ad area in the settings, but for some reason it all of a sudden stopped working.

Viewing 14 replies - 1 through 14 (of 14 total)
  • Martin 11 years ago

    Hello parrjj01,

    normally ads like this only work good in Settings -> FV WordPress Flowplayer -> Ads -> Default Ad Code. If the ad code contains src=”” attribute, then WordPress thinks it’s the shortcode attribute and our player fails. But it seems like you were able to circumvent this by skipping “” altogether.

    In our test, the above ad worked. If you think it’s because of FV Player Pro, please let us know what is your domain and what particular feature of the Pro plugin you use (CloudFront signed URLs, YouTube, Quality Switching etc.).

    Thanks,
    Martin

    rehan007 11 years ago

    Hello Team FV,

    I’ve noticed one thing that adSense code added to the player via post panel to override the default ad doesn’t work. And the video starts giving this error:

    `Warning: Division by zero in /home/test123/public_html/wp-content/plugins/fv-wordpress-flowplayer/models/flowplayer-frontend.php on line 335`

    And at the place of video :

    Admin: Video Issues
    ).push({}); </script></html>’

    It can be added using default ‘FV WordPress Player’ page in the ‘Settings’ but can’t be changed on individual videos using ‘post’ panel (FV icon above toolbar) even though the option is there.

    Martin 11 years ago

    Hello rehan007 and parrjj01,

    this should be fixed in next release, you can try it here: https://foliovision.com/downloads/fv-wordpress-flowplayer.dev.zip

    We fixed how the ads load (the only load once the video start playing, no more loading into hidden div) and same goes for the popup feature.

    We also fixed how it’s entered into shortcode. Just use our shortcode editor and you can include any HTML. No longer there is problem with src= something in the ad code.

    Thanks,
    Martin

    rehan007 11 years ago

    Thanks Martin,

    This update solved this problem. Now adSense code is working fine even if we add it using ‘FV’ icon in post. Superb!

    Jorge 11 years ago

    Hi FV Team,

    I have the FV WordPress plugin installed and after much testing I have not been able to successfully serve Google AdSense ads. I initially was using Google DFP as my ad server and was not successful. I added the AdSense code ( excluding DFP tag ), both asynchronous and synchronous at the global and video/post level and still no luck, except for the same error that was described above. I downloaded and installed the updated plugin that was provided above and it no longer causes an error but still does not serve an ad. If I can get some feedback as to whether I am doing something wrong or if serving an AdSense ad is only available for the Pro version?

    Thanks in advance.

    Martin 11 years ago

    Hello Jorge,

    please have a look at your browser error console or network traffic console to check if the request for the ads is happening or not.

    Thanks,
    Martin

    rehan007 11 years ago

    Hi Martin,

    I’ve also noticed that ads don’t play on mobile devices. On going through the code using ‘inspect element’ tool of chrome, I found that it doesn’t add the ad-specific code i.e. <div id=”wpfp_….” class=”wpfp_custom_ad”>…</div>

    This bug is in the developer version which you shared with us. I hope it’ll be fixed soon.

    Martin 11 years ago

    Hello rehan007,

    could you please check what is your configured ad width? Could you please check your mobile screen size using http://www.whatismyscreenresolution.com/ ?

    We only show the ad code if the player is big enough to fit the ad.

    Also, what mobile device are you using? Not all the devices allow us to fully control the video playback (iPad and Android 4.0 and above does, but not iPhone or older Android).

    Thanks,
    Martin

    rehan007 11 years ago

    I guess it has to do something with the theme my client is using. Something is conflicting. I’ve tried another theme and the player then works fine.

    I’ve set up that theme named ‘Jarida’ on my testing site and the player doesn’t show ads on any smartphone if you browse the site in portrait view.

    here is the link : http://rehan4testing.site90.com/wpvid/?p=86

    The previous version of player used to display ads on mobile in portrait view…

    Checked on almost all famous smartphones… Note 3, S5, iPhone 5s, Moto X, Nexus 5

    Note: It works fine on tablets though…

    Martin 11 years ago

    Hello rehan007,

    it works for us in landscape mode on Sony Xperia P with Android 4.0.4. The reported resolution is 960x540px (could you please check this using http://www.whatismyscreenresolution.com/ ?).

    If it won’t show up in portrait mode, then it’s the desired behavior – as long as the player is too narrow to display the ad in its full dimensions. Otherwise the ad company might complain about that the ad gets cut off to narrower size.

    I’m noticing a different bug though – your theme is putting in a <div> with class background-cover which seems to cover the video content during playback on Android. I’m not sure how to fix this aside from removing the element in the theme right now.

    Thanks,
    Martin

    Thorin S. 11 years ago

    Ads stopped working after installing the latest update. I can see the ad code in the source but ads aren’t being served. I’m using the default ad code.

    Thorin S. 11 years ago

    Ads stopped working after installing the latest update. I can see the ad code in the source but ads aren’t being served. I’m using the default ad code.

    Martin 11 years ago

    Hello Thorin,

    as you are our licensed user, I checked the issue on your site directly. The ad was loading, but it was not visible as it was using max-width and max-height (apparently this causes display issues with your template). We used that to make sure the ad container is only as big as the player.

    However since FV Flowplayer 2.3.3 this is no longer needed as we check the player dimensions before showing the ad and only show the ad if it’s big enough.

    We fixed this to static dimensions in 2.3.4 which was released now.

    Thanks,
    Martin

    Thorin S. 11 years ago

    Thanks Martin. I updated to 2.3.4 and it’s working as you said it would.

Viewing 14 replies - 1 through 14 (of 14 total)
Reply To: Ads stopped working



Please Sign in or Register to upload files.

Related Posts

  1. HTML 5 video player with ads

    HTML 5 video player with ads

  2. YouTube – klasické vložení

  3. YouTube-Classic Embed (English)

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!