XF 2.1 Xenforo 2 ads not displaying

Xyphien

Well-known member
I've copied my adsense code and pasted it in the Admin > Advertising options. I've even tried every position yet I do not see any ads. At first I thought maybe it was the theme so I changed back to the default style and it still doesn't show anything.
202725
I've tried using it with all checked on display criteria, and when they both are unchecked however it still doesn't show anything. I've used incognito to see if it was my cache messing up, as well as using different browsers yet nothing seems to want to display. I even tried different ad codes that I had.

Any idea on why this is?
 
AdSense takes a while to display after you add the code and I believe after you edit it. How long have you been waiting between changes?
I've been using the same code for about 3+ years now, and I've had the xenforo 2 update for about 5 months now. I've only just now realized there are no ads being displayed :( Which means I've lost over $500 in adsense </3
 
Go to your AdSense account and check for new code.

Also check for messages there: have you been "banned" for content?

Also what's the URL to your forum?
Used a new code already, and a code that's newer. It's being desplayed on all other websites that's still using xenforo 1.x

The domain is rpgmakermv.co
 
If I had to guess it's due to your style. Try the default style does it load? This is how the HTML looks in the source code when you place an ad in the default style:

Screenshot_5.webp


This is what yours looks like:

Screenshot_6.webp
 
I suppose my next move if I were you, edit page_container and find:

Code:
<xf:ad position="container_header" />

Place some text below/above that to make sure it'll output on the front end. You could even try placing your ad code above/below that.
 
Also try the same ad code in a different location.
I've even tried every position yet I do not see any ads.
All things I've tried and stated in the original post.

I suppose my next move if I were you, edit page_container and find:

Code:
<xf:ad position="container_header" />

Place some text below/above that to make sure it'll output on the front end. You could even try placing your ad code above/below that.
Code:
<xf:ad position="container_header" />
this wasn't in page_container I've tried adding it throughout the code and it still hasn't fixed anything either.
 
I have a strong feeling this is strictly a style related issue. Are you sure you tried on the default style without the usergroup conditionals checked? That snippet I posted above is how the ad is placed, if your style removed it then... it won't load :).

I'd suggest reaching out to the style author. This is something I'd gladly login to a clients site and debug for them if it was my style.
 
I find that the best way to test ads if there is an issue is just add a single piece of text, e.g. just put the word TEST in the ad position with no display criteria.

If this doesn't show then you know to check something very basic (e.g.your style) before you waste time not knowing whether or not Google is actually serving an ad or not.

Another test you can try is to display your Adsense in a notice or on a page instead of an ad position.
 
I have a strong feeling this is strictly a style related issue. Are you sure you tried on the default style without the usergroup conditionals checked? That snippet I posted above is how the ad is placed, if your style removed it then... it won't load :).

I'd suggest reaching out to the style author. This is something I'd gladly login to a clients site and debug for them if it was my style.
I've tried this, but moved the location to header and then tried the TEST thing that @Mr Lucky said and found that the test worked. I added the link and checked back on the default. So yeah, it was the theme, but some of the things are being displayed on the default either. Buuuut now that I know it's the theme I can try and contact the theme dev. Thanks to you both for the help :D
 
Back
Top Bottom