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"
width="955px" height="205px"></iframe>';

     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!


Tags: Admanager, DFP, Google, ads, advertising

Views: 924

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!





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!



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

Luke Jones replied to Luke Jones's discussion 'Help'
"Ye I am :) I've tried all the options on google webmaster tools to let me verify my site,…"
50 minutes ago
Saurabh replied to Saurabh's discussion 'Title of a group home is not having group name'
"HI Crystal - Just wanted to know - has improved request filed for same.. There has been couple of…"
1 hour ago

NC for Hire
Bernard Lama replied to Luke Jones's discussion 'Help'
"Are you talking about google webmaster tool that you are able to verify your site? "
2 hours ago

NC for Hire
Bernard Lama replied to Jeffrey Haskins's discussion 'Need a Link for page addition on manage pages'
"Yeah why not ...you can add a link next to any links on group pages. Just go to Group Options>…"
2 hours ago
Phillip Brunelle replied to Crystal Coleman's discussion 'Ning 3.0 Progress Update for March and Let's Hear Your Thoughts'
"I'm hoping a video section is included in Ning 3.0 because my network is taking a loss of…"
2 hours ago

NC for Hire
Bernard Lama replied to Dutchlabel's discussion 'Align images horizontally'
"Hi there, Did you try this ever?"
3 hours ago
Troy Marquis replied to Troy Marquis's discussion 'Ning Activity feeds Going CooCoo's'
"its not its the profile pic of the uploader showing instead of the pic"
5 hours ago

NC for Hire
JFarrow replied to Troy Marquis's discussion 'Ning Activity feeds Going CooCoo's'
"this looks more like milicious member...or spam activity by a member uploading the same photos over…"
6 hours ago

© 2014   Created by Ning.

Badges  |  Report an Issue  |  Terms of Service