Steps to reproduce:
- Install module
- Create ad and check this ad is active
- Enable provided example view and place in a region
- Ad should show in the region
- Refresh page and ad no longer appears
- Edit ad and see that the "ad is active" checkbox is now unchecked
- Caching is off
Comments
Comment #1
srlawr commentedI have this exact problem occuring too, in 7.x.1.8, you basically see the ad for one page, and the process of opening that ad, clears this checkbox and then the ad never appears again..? any thoughts/solutions?
Comment #2
juliakoelsch commentedI ran into this problem too. I ended up using a view and removed the status filter as a workaround. I'm not sure I understand why there is an "active" setting in addition to the published setting in the first place, but this seems to work for me until a patch is created. I don't know if this has an impact to reports yet. But at least I can get ads to display.
Comment #3
activelink commentedAre you setting some ad metering, either by time, impressions or clicks? If you don't then the advert will be turned off: you can't presently just display an advert without setting a limitation, as far as I can ascertain. Try setting the advert to display until some future date and see what happens?
It's this code in campaigns.helper.inc, function _simpleads_campaigns_complete that terminates the advert with no metering set:
This causes the campaign to end every time if there is no condition set for ending it.
But I suspect that the above snippet contains an error and that it SHOULD be:
As this code tests if the expiry date has been reached, which seems to be missing from the tests. You could try changing this snippet and see if it fixes your problem?
Comment #4
jhodgdonI was having this problem and I found this issue... The field names for the Campaigns content type are very confusing to me. I didn't realize that the Clicks, Impressions, and Days fields meant "Keep this campaign active until this number of clicks/impressions/days has been reached". There is no help on the screen indicating this.
So my problem is I thought "Oh yes, I want to count clicks and impressions", so I checked those boxes but I didn't put a number in the boxes, so the ads immediately reached/exceeded 0 clicks and 0 impressions, and inactivated themselves.
I suggest making clearer field descriptions to avoid this problem.
I also agree that the change in #3 is necessary.
Comment #5
andrewfn commentedI wasted a long time before I found this issue. Thanks for posting it!
Comment #6
minnur commented