Advertisement:

Author Topic: Ad Management mod  (Read 1960062 times)

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,165
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ad Management mod
« Reply #7940 on: October 24, 2020, 10:48:22 AM »
Saw your reply... right now, I have the admin ad viewing option turned off, so I can see them. :)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

Offline Aleksi "Lex" Kilpinen

  • A Peculiar Finn
  • Project Manager
  • SMF Super Hero
  • *
  • Posts: 20,364
  • Gender: Male
  • Don't worry, I'm n00b friendly
    • Aleksi.Kilpinen on Facebook
    • LexArma on GitHub
    • aleksi-kilpinen on LinkedIn
    • Aleksi Kilpinen
Re: Ad Management mod
« Reply #7941 on: October 24, 2020, 11:10:46 AM »
Saw your reply... right now, I have the admin ad viewing option turned off, so I can see them. :)
Saw my reply that I almost immediately removed? :P
Yeah, I did (eventually) figure out that it was due to something else.
Thanks though.
A Finnish Project Manager (Support Specialist)
Happily running multiple SMF 2.x installations.
 Fooling around with an i7-10700 @ 2,90GHz-4.80GHz / 16Gb / RTX-2070 Super / 3840x2160 / Win 10 x64


How you can help SMF

"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum.
Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,608
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7942 on: October 24, 2020, 11:22:07 AM »
Quote
"Before the closing </head> tag" (textarea)

"Before the closing </body> tag" (textarea)

Some ad companies (Google Ads and Google DFP are a couple) need to have things situated before the closing head and/or body tags. Yes, it could be manually added in, however, I'm trying to get away from having to manually add anything in, if possible, with the updates I'm doing.

I like that idea. Might just be a spot to enter code in the header/footer area.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,165
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ad Management mod
« Reply #7943 on: October 24, 2020, 11:36:47 AM »
Lex, blame SMF's notification system, haha! (Glad you got it sorted, though).

vbgamer, thank you!  Any luck with the index.template.php file I posted?
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,608
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7944 on: October 25, 2020, 04:33:31 PM »
The index.template.php looks ok.

I checked your site. It seems like the placeholder ad. Is using this setting "Display ads on every page right below the menu"



Make sure the ad is using this setting "Display ads in the welcome user area"
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,165
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ad Management mod
« Reply #7945 on: October 25, 2020, 04:59:21 PM »
* Douglas facepalms himself

I didn't even SEE that setting... but that's EXACTLY what I needed.  Thank you, vbgamer!
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,608
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7946 on: October 25, 2020, 05:26:36 PM »
Glad to help
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,165
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ad Management mod
« Reply #7947 on: October 25, 2020, 05:56:47 PM »
Hopefully, you'll release a version that has the two suggestions I recommended. That's (vitally) important for me to be able to skin the sites effectively without doing a file edit. :)
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

Offline Arantor

  • Resident Overthinker
  • SMF Friend
  • SMF Legend
  • *
  • Posts: 73,189
Re: Ad Management mod
« Reply #7948 on: October 25, 2020, 05:58:52 PM »
You mean "without doing a file edit I would otherwise have to manage" because most mods *are* just bundles of file edits... ;)
No good deed goes unpunished
All helpful urges should be circumvented

Offline Douglas

  • SMF Friend
  • SMF Hero
  • *
  • Posts: 3,165
  • Gender: Male
  • Non sibi sed patriae
    • @BearlyDoug on Twitter
    • TheFan.net
Re: Ad Management mod
« Reply #7949 on: November 16, 2020, 08:18:10 AM »
Just a bit of a heads up:

On mobile devices, you should have the ability to hide ad spots (this needs to be both a setting (for minimum width) and a checkbox ("hide on mobile devices" or "Display if min width is greater than X" or something similar).

I've had to modify the Ads.template.php file to add a CSS ID to the sidebar column, so that I could hide it via CSS if the width was less than X.

Code: [Select]
@media screen and (max-width: 600px) {
#lwosTower {display: none !important;}
}

Also, under Settings, "Ads within posts look like actual posts" isn't quite working the way it should be. It should NEVER copy the poster's profile via the post above it. It should reflect the site's name (no linked bio). :)  Screenshot attached.
Doug Hazard
* Full Stack (Web) Developer for The Catholic Diocese of Richmond
(20+ Diocesan sites, 130+ Church sites & 24 School sites)
* Sports Photographer and Media Personality
* CFB Historian
* Tech Admin for one 1M+ post, one 2M+ post and one 10M+ post sites (last two are powered by multiple servers)
* WordPress Developer (Junkie)

Offline Nodaz

  • Full Member
  • ***
  • Posts: 503
Re: Ad Management mod
« Reply #7950 on: December 23, 2020, 12:41:32 PM »
 running SMF 2.0.17 and SMF Ads 3.5d on two sites, i have issues with each.

ad-sense account is not new, these ads have been active for years though the SMF sites were not updated and i recently did a major overhaul to clean them up , reinstalled all mods after a large upgrade package was installed.
Everything is working except the ads>

I have double checked ad sense, everything is good to go "READY" and but i recopied the updated (https://) ad-sense code into the mod.

settings:
Type    HTML
Help Display ads on every page right below the menu is check marked, everything else is blank or unchecked.

under "settings:
Disable ads for admins                             unchecked
Disable Reports                                        unchecked
Disable all ads                                          unchecked
Ads within posts look like actual posts     checked

Site   "A" ZERO ads appear
Site   "B" the ads appears on the main page most of the time, never anywhere else.

i have checked from multiple devices, multiple browsers( including incognito tabs) and different WiFi and data connections, always the same.

what could be the issue?

   


Offline Matthias

  • Jr. Member
  • **
  • Posts: 164
  • Gender: Male
Re: Ad Management mod
« Reply #7951 on: December 23, 2020, 01:34:29 PM »
You can try to verify, if it is a Ad Management problem or something else:
Put in something like
Code: [Select]
<p>Some text</p>instead of the Google Ad Code and check if it is displayed correctly.
For some time now, the Ad Sense Code is no longer displayed everywhere you want it. I had the same trouble.
Quality first

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,608
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7952 on: December 23, 2020, 02:31:33 PM »
That's what I suggested on the smfads.com site.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Matthias

  • Jr. Member
  • **
  • Posts: 164
  • Gender: Male
Re: Ad Management mod
« Reply #7953 on: December 23, 2020, 02:55:32 PM »
Do you have a link to your suggestion?
Quality first

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,608
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7954 on: December 23, 2020, 02:59:16 PM »
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Matthias

  • Jr. Member
  • **
  • Posts: 164
  • Gender: Male
Re: Ad Management mod
« Reply #7955 on: December 23, 2020, 03:50:10 PM »
ok, i only read that now  :)

Maybe you can build a field for the Google Adsense tags into the mod. For Adsense to work, some tags must be basically inserted in the header.
I did this on some of my sites so that you can control Google advertising with the SMF groups to display or not.
Times change...
Quality first

Offline Nodaz

  • Full Member
  • ***
  • Posts: 503
Re: Ad Management mod
« Reply #7956 on: December 24, 2020, 04:50:44 PM »
You can try to verify, if it is a Ad Management problem or something else:
Put in something like
Code: [Select]
<p>Some text</p>instead of the Google Ad Code and check if it is displayed correctly.
For some time now, the Ad Sense Code is no longer displayed everywhere you want it. I had the same trouble.

alright , going to give that a try.

Offline Nodaz

  • Full Member
  • ***
  • Posts: 503
Re: Ad Management mod
« Reply #7957 on: December 25, 2020, 11:20:31 AM »
EDIT: SO i had been accessing the site through Fire Fox, i happened to just check the sites on Chrome, and all ads are being served correctly.
Opened the sites in Microsoft Edge test site serves fine, Target site , does not serve ads OR show
Code: [Select]
<p>Some text</p> as inserted.


Maybe you can build a field for the Google Adsense tags into the mod. For Adsense to work, some tags must be basically inserted in the header.
I did this on some of my sites so that you can control Google advertising with the SMF groups to display or not.
Times change...
Im not sure i quite understand where to put the adsense code as you explained it.  I ma learning as i go and am not overly experienced

I added
Code: [Select]
<p>Some text</p> to the adsense code on two different ( but virtually identical SMF forums installations)

 Test site shows ads and
Code: [Select]
<p>Some text</p> as inserted.

  Target site  still does not serve ads, but DOES show
Code: [Select]
<p>Some text</p> as inserted.

BUT:
 Test site only shows ads/text on index page and board index, no ads are shown on topic index page but it does show
Code: [Select]
<p>Some text</p> Target site does not show ads on index page and board index, no ads are shown on topic index page but it does show
Code: [Select]
<p>Some text</p> on all three.

Adsense code is was double checked and matches what is inserted in the Mod for each page.
« Last Edit: December 25, 2020, 11:43:07 AM by Nodaz »

Offline vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 23,608
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Ad Management mod
« Reply #7958 on: December 25, 2020, 11:43:17 AM »
The some text test shows that the placements in ad management is working. To confirm your adsense code is there you can do a view source on the page in your browser and check if it is there.

Reasons adsense won't display: site is new, no content yet indexed by adsense bot to show ads, using ad blocker.

In the old days adsense used to show PSA ads if no it couldn't show ads. now adsense just shows a blank space which makes it harder to troubleshoot.
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline Nodaz

  • Full Member
  • ***
  • Posts: 503
Re: Ad Management mod
« Reply #7959 on: December 25, 2020, 02:37:05 PM »
so placement is working then
I did a viewsource and the ad code is there an correct, ad mod and adsense have been on this site for years, though i recently recopied the code supplied by adsense and "reinstalled" it in the mod>
I do keep getting minor policy violations from adsense , the first on was for minimal content on an admin page, it went away after a week or so as i was trying to figuire out how to exclude or remove the code form that page.

It returned again breifly then idssappeared.
The two days ago i got this one:
Code: [Select]
targetsite.com/index.php?PHPSESSID=tbrbnt0d6gt87af789ibc33007&topic=4283.msg9587
Valuable Inventory: No content

Restricted demand

Dec 25th

I am wondering if ad sense is restricting ad serving.
Issue is i cannot figure out how to exclude the pages listed pr delete the ad code form that page.