WWBN / AVideo

Create Your Own Broadcast Network With AVideo Platform Open-Source. OAVP OVP
https://avideo.tube/AVideo_OpenSource
Other
1.88k stars 969 forks source link

[Plugin GoogleAds_IMA] Not displayed ad #9165

Open gbrn opened 2 months ago

gbrn commented 2 months ago

@DanielnetoDotCom I'm running tests with the GoogleAds_IMA Plugin. But I haven't been successful. The ad is not displayed at the beginning of the videos.

The plugin configuration is as follows: image

I'm using the following URL for testing: https://basil79.github.io/vast-sample-tags/pg/vast.xml

Any additional configuration that needs to be done?

mankota commented 2 months ago

I have similar issue. I have not been able to make the ads display at all.

DanielnetoDotCom commented 2 months ago

Please check this https://github.com/WWBN/AVideo/wiki/GoogleAds_IMA---Videos-Ads-on-your-page#troubleshooting

gbrn commented 2 months ago

@DanielnetoDotCom The problem is not the URL or the server. This URL I'm using is functional for testing, I checked it and it's working: (https://basil79.github.io/vast-sample-tags/pg/vast.xml). I also tested the URL you sent and it doesn't work: (https://vast.forjesus.tv/vast.xml).

The problem is with the plugin or its configuration.

I checked the LOG: [27-Jun-2024 11:17:52 America/Sao_Paulo] AVideoLog::DEBUG: showAds: CustomizeAdvanced said NOT to show ads on 78 SCRIPT_NAME: /view/videoEmbeded.php

In the CustomizeAdvanced Plugin, there is nothing related to ADS as the log says. But when accessing the video edit, the option to not display advertising in the video appears activated, which I did not activate. All videos look like this:

image

I ask... how do you disable this function of not displaying by default? I did not find it.

It is necessary to check this BUG as even disabling advertising does not work.

DanielnetoDotCom commented 2 months ago

So do you mean you cannot uncheck this?

the default is always unchecked

gbrn commented 2 months ago

I can uncheck it. The default is unchecked. I've already unchecked it and still the URL you sent doesn't work (https://vast.forjesus.tv/vast.xml)

Any settings I should check?

DanielnetoDotCom commented 2 months ago

Make sure it is unckecked, and try again. check your avideo logs, use the https://vast.forjesus.tv/vast.xml for testing and if you can share a video page where the ads should appear

gbrn commented 2 months ago

Is there anything in this configuration that should be changed? image

Using the following tool I tested that your URL is functional: https://adplayer.pro/developer/vast_inspector The URL I used previously is also working. So the problem is not the AD server used. image

LOG:

 [27-Jun-2024 17:42:07 UTC] AVideoLog::DEBUG: getUserDbFromUser advancedCustomUser is empty  SCRIPT_NAME: /objects/videoAddViewCount.json.php
 [27-Jun-2024 17:42:07 UTC] AVideoLog::DEBUG: user::recreateLoginFromCookie: user cookie found: myemail@mydomain.com result:  SCRIPT_NAME: /objects/videoAddViewCount.json.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: user::recreateLoginFromCookie: do cookie-login: myemail@mydomain.com id: 119 SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: user::recreateLoginFromCookie: resp=0 SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: User:login finish with success users_id= 119 Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/126.0.0.0 Safari/537.36 IP=45.173.144.187 SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: setUserCookieCredentials there is already a cookie and is the same user SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: setUserCookieCredentials there is already a cookie SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: User::find line= 1647 SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: myemail@mydomain.com user found myemail@mydomain.com SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: getUserDbFromUser SELECT * FROM users WHERE user = ?  OR email = ?  LIMIT 1 myemail@mydomain.com SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: getUserDbFromUser will also check the email myemail@mydomain.com  SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
 [27-Jun-2024 17:41:23 UTC] AVideoLog::DEBUG: user::recreateLoginFromCookie: user cookie found: myemail@mydomain.com result:  SCRIPT_NAME: /plugin/GoogleAds_IMA/VMAP.php
DanielnetoDotCom commented 2 months ago

share the video page where it supposed to have an ad

gbrn commented 2 months ago

Danny, it's been resolved... I was forgetting to do a simple test... I just noticed that there is a problem with my browser. I opened an incognito tab without extensions and the ad was displayed.

I use 1 adblock and a Privacy Badger. Even though both are disabled for my domain, there is an AD block. It's very strange that this is happening

It is important to put this detail on WIKI, as it is very simple and goes unnoticed.

image image

DanielnetoDotCom commented 2 months ago

You may want to use our free plugin AdBlockerDetector

gbrn commented 2 months ago

Yes, I checked the AdBlockerDetector plugin, I will be deploying this after the GoogleAds_IMA Plugin.

I'm having trouble finding a VAST ad provider. Google's requirements are very high. Could you recommend me a Brazilian VAST supplier that has ads in Portuguese?

DanielnetoDotCom commented 2 months ago

Hi

Sorry, currently I do not have any one to recommend.

gbrn commented 1 month ago

@DanielnetoDotCom Danny, I was able to obtain the VAST URL for video advertising, but it's showing this error. I can't understand this problem... is the AD player different from the video player? Could you detail this incompatibility so I can discuss it with my supplier?

image

DanielnetoDotCom commented 1 month ago

this looks like you are using out Ad_Server, and you must have a mp4 format for video ads

gbrn commented 1 month ago

@DanielnetoDotCom Danny, there really was a wrong configuration in Ad_Server. I'm running new tests. Thanks.

gbrn commented 1 week ago

@DanielnetoDotCom Danny, getting back to testing GoogleAds_IMA. I can't view VAST videos from the following URL: https://pubads.g.doubleclick.net/gampad/ads?iu=/211182487,22738971863/www.cnetv.com.br_Video&description_url=[placeholder]&tfcd=0&npa=0&sz=480x320&gdfp_req=1&unviewed_position_start=1&output=vast&env=vp&impl=s&correlator=

Can you test it for me?

DanielnetoDotCom commented 1 week ago

to use doubleclick URLs you need the GoogleAds_IMA plugin

gbrn commented 1 week ago

@DanielnetoDotCom Yes, I'm using it... but for me the ads don't load. Could you test this URL on your system?

image image

DanielnetoDotCom commented 1 week ago

I cannot test your tag, if you want to make sure it is working properly you can try with this tag

https://vast.forjesus.tv/vast.xml

this will always return ads.

I cannot guarantee google will provide you with ads