I spent lot of time to figure out how to do it and I've been using this since july, so now I´m sharing with you.

I love SSI, I´ve been using this technique for more than a decade on my other projects, so since the beggining I'm was shure that´s the way to do it, even on NING! I just was unnable to figure out how!

Here's the step by step, assuming you already know how to use DFP Admanager and that your ads are already on rotation.
  1. Create your ad spots (top 728, skyscrapper 160x600, middle 468 and so on) on DFP
  2. populate then with ads
  3. create your html containers like top.html, footer.html etc with all the DFP code you need to run the ads on your NING adspots and reserve (like cooking, hehehe)
  4. read the post http://help.ning.com/cgi-bin/ning.cfg/php/enduser/std_adp.php?p_faq... to understand what I have done
  5. create 2 .js files for the top and footer like top.js and  footer.js

Bellow is my top.js


x$("#xg_navigation").after("<div align=center id='custom_ads'></div>");

var ad_html =
'<iframe style="padding-top:2px;" frameborder="0" scrolling="no"
allowtransparency="true" marginheight="0" marginwidth="0"
src="http://api.ning.com/files/B4...........6nJfx15PgWlcapCqGQe/adtop.html"
width="955px" height="205px"></iframe>';

x$("#custom_ads").html(ad_html);
  
     6.  Go to your profile and write a public post, with replys and comments closed of course, on your blog called top and post top.html (your
admanager html code) as a attached file (Jen's tip!) and save it! Repeat operation for footer.html

    7. Go to stats and place the call to your  .js files 

<script type="text/javascript" src="http://yoursite.com/top.js"></script>

in my case I'm running the .js from my own server but it can be also inserted into a blog post to speed load it a little more.

That´s it!

Hope this helps!

Marcelo

Tags: Admanager, DFP, Google, ads, advertising

Views: 923

Reply to This

Replies to This Discussion

Can you show me a link to yoursite where this is running?
Great. I have a site call www.partyzone.us and i really want to get this implemented into my site. I have a dfp account and will set up all my adds and then try to follow your directions. If i am unable to install this can i pay you to install it for me?
This is waaay too much for me, I have no idea what's going on. I think I need to start buying html and css books.lol.
I would LOOOVE to have this feature on my site. I just started it about 3 days ago and I'm placing ads. So far just one member :(

In case you're wondering of the URL it's http://musiikeando.ning.com. Again, I just started this site, so I'm still working on it.

Oh by the way
, Spanish Music is on Autoplay so if you don't want to hear Mexican Music, I suggest turning off your speakers :)

I'm looking for other codes so that my page looks a little bit better. I can't do the codes myself, not now, I don't know how but I'm trying to learn :)

Any suggestions, comments are more then welcome.
I would like to pay you to implement this on my site also at www.project.nsearch.com Let me know if you could do it or point me at somebody that would let me pay them to implement on a site or two. Thanks!

Do you have to use an iframe to make this work?

That's what the code says!

Well, what I'm thinking is that we should be able to get a reference to the head section of the page using $("head")  and then appendChild() to place our script there. I'm trying that on my site now. Just wondering why the choice of an iframe.

Because after I spend a lot of time, as you, breaking my head, that was the only way I was able to made it work, and I'm doing pretty good this way! My ads are running, the stats are working just fine and the adsense is givin me exactly what I was expecting!

 

But you can try do it another way, if you discover an easier way than mine please publish it here so others can take advantage too!

 

Reggards from Rio!

 

Marcelo

 

 

Nice detailed implementation instructions Radialistas Brasilerios!

 

Testing geo-targeting as we have US and UK related book sale ads we want to show.   Have pretty much finished the 'test scenario' in DFP, your post was my first search here on Ning Creators.

 

Assume your code/implementation's still working 100%, no problems/anything to report?

 

Thanks again.

Hi Richard!

Nice you like it!  Yes, it´s working 100% perfect as supposed to be, no problems at all!

Yes, were using some geo-targeting on it and this is really awesome! You can take an advertiser like Groupon, for example, with 100 ads one for each city and it will deliver it! DFP rocks!

Reggards from Rio!

Marcelo

RSS

What's Up With Ning 3.0?

Click here to share your thoughts on what features we should develop next! - Survey will close Friday, 4/25

Projects that the Ning 3.0 Team is currently working on: 

Articles - a new way of organizing longer content pieces. Released 4/16.

Activity Feed Updates - options for more content in the activity feed.

Forum Notifications - ability for members to opt into receiving notifications of new discussions in forums. Released 4/9. 

APIs - The ability to create new members and content programatically.

For more information on what's next, visit the Product Roadmap

Latest Activity

Jeffrey Haskins replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"Sounds about right"
27 minutes ago
Strumelia replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"Well i suppose we could speculate endlessly...."
30 minutes ago
Stelios Karavias replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"For another "vids" already embedded in a 2.0 network are in many ways like pages.…"
33 minutes ago
soaringeagle replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"i could definately see that  for search anyways but also keep in mind complexity  and…"
48 minutes ago
Strumelia replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"I'm wondering about that, Stelios.  But Ning will have to explain if that is really so in…"
53 minutes ago
Strumelia replied to Alexander's discussion 'Goodbye for now.'
"Oh man.   Another bright and creative one leaving.   So sorry to see you…"
57 minutes ago
Stelios Karavias replied to Phil McCluskey's discussion 'Introducing Articles and the Author Bio Box'
"Strumelia, just a thought here. It is not unusual in developing a system, that some things have to…"
1 hour ago
Strumelia replied to Enrrico Torres's discussion 'Want to remove powered by from footer'
"Crystal, here's my problem with this setup, and I admit I'm miffed about it- On my 2.0,…"
1 hour ago

© 2014   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service