Topic on Extension talk:WimaAdvertising

pagead2.googlesyndication.com

4
Summary by WikiForMen

Issue is solved.

Redundant-decadence (talkcontribs)

I do not want to use the extension for Google Ads, just for my own content. However, there is a call to pagead2.googlesyndication.com. Luckily, this is prevented by my CSP settings:

Refused to load the script 'https://pagead2.googlesyndication.com/pagead/show_ads.js' because it violates the following Content Security Policy directive: "script-src 'unsafe-eval' blob: 'self' 'unsafe-inline'". Note that 'script-src-elem' was not explicitly set, so 'script-src' is used as a fallback.

For privacy reasons, I do not want any calls to Google servers, or any other 3rd-party requests, except those I selected carefully. Can I prevent this with configuration settings? This is my current configuration:

wfLoadExtension( 'WimaAdvertising' );

$wmWimaAdvertising = true; $wmWimaAdvertisingAnonOnly = false; $wmSidebarAd1Type = "advertising"; $wmSidebarAd1Code = '<a href="https://www.7gutegruende.de/planspiel-hvr/"><img src="https://roter-kreis.de/images/f/fd/7GG-e069-2023-12-23-Planspiel-HVR_500.png" alt="Spielst du noch oder lernst du schon? Planspiel zum humanitären Völkerrecht" /></a>';

$wmSidebarAd1Style = ;

$wmGoogleAdSense is false (by default). Setting it to false does not change anything.

Any idea?

WikiForMen (talkcontribs)

The problem is that $wmGoogleAdSenseSrc is set per default to //pagead2.googlesyndication.com/pagead/show_ads.js

Solution: Set $wmGoogleAdSenseSrc to an empty string and the issue should have gone.

Redundant-decadence (talkcontribs)

Great! This solved my problem. Thank you!

WikiForMen (talkcontribs)

I have fixed the issue. Now it is ensured that the variable $wmGoogleAdSense is set to true before the script $wmGoogleAdSenseSrc is included.