Advertising

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Advertising

Harvey
I had an advertiser approach me about putting animated ads on my site (728 x 90) but he's not comfortable using adsense.

Is there some way I could create a way to put not adsense ads into the rotation with ad sense?  Give him maybe 15% of impressions?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Pedro
Take a look here:
http://support.google.com/adsense/bin/answer.py?hl=en&answer=48182 at "Competitive ads and services". Do you think it might be an issue?
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Harvey
I've got an advertiser that just wants to send me an ad (728x90) and just have it run.

I can't really eliminate adsense and only run one ad on my site.  So I was wondering if there was a way to add unit in, in rotation in the same spot.

On another point I see that adsense doesn't want ads in iframes. I wonder why. Hope I'm not in violation. Or the rest of nabble.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Pedro
I've made a solution that shows randomly your ads or his ads. You have to put this piece of code in your show_custom_ads macro:
<n.if.equal value1="[n.random max='2'/]" value2="1">
	<then>your code</then>
	<else>his code</else>
</n.if.equal>
It probably shows 50% each ad. Let me know what do you think.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Harvey
Pedro <Nabble> wrote
I've made a solution that shows randomly your ads or his ads. You have to put this piece of code in your show_custom_ads macro:
<n.if.equal value1="[n.random max='2'/]" value2="1">
	<then>your code</then>
	<else>his code</else>
</n.if.equal>
It probably shows 50% each ad. Let me know what do you think.
If I don't put his code in or remove it, adsense will run 100%?

Anyway to give him a set percent like 10%?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Pedro
If you keep your code like the way it is now, it shows 100% your ads. If you replace it with his ads, it would show 100% his ads.

To set him 10%, you could do like this:
    <n.if.equal value1="[n.random max='10'/]" value2="1">  
        <then>his code</then>  
        <else>your code</else>  
    </n.if.equal>  
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Harvey
that is cool.

Can i show an animated gif ad?

what is the name of the macro?

On Tue, Dec 18, 2012 at 10:54 PM, Pedro <Nabble> [via Nabble Support]
<[hidden email]> wrote:

> If you keep your code like the way it is now, it shows 100% your ads. If you
> replace it with his ads, it would show 100% his ads.
>
> To set him 10%, you could do like this:
>
>     <n.if.equal value1="[n.random max='10'/]" value2="1">
>         <then>his code</then>
>         <else>your code</else>
>     </n.if.equal>
>
>
>
> ________________________________
> If you reply to this email, your message will be added to the discussion
> below:
> http://support.nabble.com/Advertising-tp7582401p7582436.html
> To unsubscribe from Advertising, click here.
> NAML



--
"Like" us on Facebook: www.facebook.com/NYSkiBlog
Follow us on Twitter: http://twitter.com/nyskiblog
----------
Harvey Road: NYSkiBlog.com
NY Ski Forum: forum.NYSkiBlog.com
NY Ski Magazine: mag.NYSkiBlog.com
NY Ski Directory: directory.NYSkiBlog.com
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Pedro
Harvey44 wrote
Can i show an animated gif ad?
Yes. Just upload it somewhere and use an img html tag.
Harvey44 wrote
what is the name of the macro?
"show_custom_ads".
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Harvey
Pedro - if I upload it in my private forum will it display publicly?
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Harvey
 <override_macro name ="show_custom_ads" parameters="location" requires="servlet" >
    <n.if.equal value1="[n.location/]" value2="widget">  
        <then>  
            <div class="ad">
                <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-XXXXXXXXX";
                    /* Small-Square */
                    google_ad_slot = "XXXXXXX";
                    google_ad_width = 200;
                    google_ad_height = 200;
                    //-->
                </script>
                <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script> 
            </div>
        </then>  
        <else>  
            <n.if.regex_matches text="[n.location/]" pattern="(first_classic_message|last_classic_message)">  
                <then>  
                </then>  
                <else>  
                    <div class="ad shaded-bg-color rounded" style="padding:.5em 0">
                        <script type="text/javascript"><!--
                            google_ad_client = "ca-pub-XXXXXXXXXXXX";
                            /* Leaderboard */
                            google_ad_slot = "XXXXXXXXXX";
                            google_ad_width = 728;
                            google_ad_height = 90;
                            //-->
                        </script>
                        <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                        </script>
                    </div>
                </else>  
            </n.if.regex_matches>             
        </else>  
    </n.if.equal> 
</override_macro> 

This is what  I see in there. Do I remove the code for the small square?  It doesn't run in my forum any way.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Pedro
Could I see his Ad, I'll test it in my own forum first. You can upload his image or gif in a post inside your forum.
My test forum.
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Harvey
Hope to have it tomorrow.
HTTPS Please!
Reply | Threaded
Open this post in threaded view
|

Re: Advertising

Pedro
The code would be like this below, but I would like to see it working on a test forum before.
<override_macro name ="show_custom_ads" parameters="location" requires="servlet" >
    <n.if.equal value1="[n.location/]" value2="widget">  
        <then>  
            <div class="ad">
                <script type="text/javascript"><!--
                    google_ad_client = "ca-pub-XXXXXXXXX";
                    /* Small-Square */
                    google_ad_slot = "XXXXXXX";
                    google_ad_width = 200;
                    google_ad_height = 200;
                    //-->
                </script>
                <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
                </script> 
            </div>
        </then>  
        <else>  
            <n.if.regex_matches text="[n.location/]" pattern="(first_classic_message|last_classic_message)">  
                <then>  
                </then>  
                <else>
					<n.if.equal value1="[n.random max='10'/]" value2="1">    
						<then>
							<img alt='' src='his_ad.gif' />
						</then>    
						<else>
							<div class="ad shaded-bg-color rounded" style="padding:.5em 0">
								<script type="text/javascript"><!--
									google_ad_client = "ca-pub-XXXXXXXXXXXX";
									/* Leaderboard */
									google_ad_slot = "XXXXXXXXXX";
									google_ad_width = 728;
									google_ad_height = 90;
									//-->
								</script>
								<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
								</script>
							</div>
						</else>    
					</n.if.equal>    				

                </else>  
            </n.if.regex_matches>             
        </else>  
    </n.if.equal> 
</override_macro> 
My test forum.