Foliovision › Forums › FV Player › Troubleshooting › Ads stopped working
-
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.
-
-
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,
MartinHello 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.
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,
MartinHi 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.
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,
MartinHi 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.
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,
MartinI 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…
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,
MartinHello 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