|
Multiple ads same page same group
|
|
01-02-2008, 05:26 PM
Post: #1
|
|||
|
|||
|
Multiple ads same page same group
Greetings
say I have a ad level of "3", I have 10 advertisers in that group and I have 4 different areas on a single page I want to place them. Can I have only a single instance of a ad on the page even though They are all in the same group? Regards Jim |
|||
|
01-02-2008, 05:39 PM
Post: #2
|
|||
|
|||
|
RE: Multiple ads same page same group
I followed you up to 'single instance of an ad'. Could you clarify that last sentence.
Thanks. Matt http://www.clippersoft.net ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for. |
|||
|
01-02-2008, 10:54 PM
Post: #3
|
|||
|
|||
RE: Multiple ads same page same group
ClipperSoft Wrote:I followed you up to 'single instance of an ad'. Could you clarify that last sentence. Sorry for the confusion... I want to be able to show any 4 ads out of the 10 at a time. say 4 in a vertical row or horizontal row or maybe not contected at all but all on the same page. similar to: http://www.techcrunch.com/ Thanks Jim |
|||
|
01-08-2008, 11:44 AM
Post: #4
|
|||
|
|||
|
RE: Multiple ads same page same group
You can certainly show as many ads as you would like from the same Ad Group in the same page. The only caveat is that currently there is no guarantee that the same ad may show up more than once on the page then.
Matt http://www.clippersoft.net ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for. |
|||
|
12-23-2008, 11:21 AM
Post: #5
|
|||
|
|||
|
RE: Multiple ads same page same group
i was checking to see if this had been changed and found this post.
I hacked the mysimplads.php myself to return more ads. the original code selects the ads in a randon order, then in a while loop returns the ad-html etc, and 'breaks' so only one is returned. I added another variable ('num_ads') to the function show_ad, then in the while loop, I pushed the ad-html into an array, then I returned when the loop count was = num_ads. (or number ads available wasn't enough). I then sorted out how to display this as I wanted it on the page, making a little adjustment to the ad-html array returned to do this. seems it would be simple for others to do the same, or this idea to be incorporated into the official code. |
|||
|
12-23-2008, 11:33 AM
Post: #6
|
|||
|
|||
RE: Multiple ads same page same group
(12-23-2008 11:21 AM)squirrel Wrote: i was checking to see if this had been changed and found this post.That's a very interesting idea. I think that could certainly be useful to other folks. Maybe have a call at the top of the page, and have 'sub-calls' at the desired locations. Thanks for taking the time to share that. matt http://www.clippersoft.net ClipperSoft's mySimpleAds :: Power your website advertising with the ease and speed you've always looked for. |
|||
|
12-23-2008, 12:03 PM
Post: #7
|
|||
|
|||
|
RE: Multiple ads same page same group
on the web page, I simply have php code like:
<? $ad_array = implode("<p><br>", show_ad(-1,2,3)); echo "$ad_array"; ?> which is for ad group=2, number of ads=3 in this case. in this example i've simply put '<p><br>' between each ad to space them out a little. |
|||
|
02-06-2009, 07:02 PM
Post: #8
|
|||
|
|||
RE: Multiple ads same page same group
(12-23-2008 12:03 PM)squirrel Wrote: on the web page, I simply have php code like: Squirrel, Do you know if your code example would ever show a repeated ad? I mean, if you have three ads in this group, you are telling it to show three ads in a row, is there a chance that ad #1 will be displayed two or three times? Or does it show three unique ads every time? |
|||
|
02-07-2009, 04:48 PM
(This post was last modified: 02-07-2009 04:53 PM by squirrel.)
Post: #9
|
|||
|
|||
|
RE: Multiple ads same page same group
the code selects 'distinct' ads from the database, from the same group.
also, if you have 2 ads in the group, and ask for three, it will only return 2 for display, as there are no more. so nothing is repeated. The original code selects all the ads in the group, in a random order, and puts this into an array. Then it sends back the first item in the array. All I've done is send back more than one ad, either as many as requested, or all of them if there are less in the group than requested. |
|||
|
05-22-2009, 05:47 AM
Post: #10
|
|||
|
|||
|
RE: Multiple ads same page same group
Is this a working way to show a select number of ads from an ad group all on the same page at the same time without duplicates? J ust like http://www.techcrunch.com/ right hand column ads? If so, you you please send me more details on installing this code? where to put it mainly?
Thank you |
|||
|
« Next Oldest | Next Newest »
|

Search
Member List
Calendar
Help



