# Ajax and Adsense

**URL:** <https://www.ruby-forum.com/t/ajax-and-adsense/117657>\
**Category:** Rails\
**Created:** [October 19, 2007, 12:07am UTC](https://www.ruby-forum.com/t/ajax-and-adsense/117657 "2007-10-19T00:07:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mahadewa](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/m/9e8a1a/32.png) [@mahadewa](https://www.ruby-forum.com/u/mahadewa)\
**Post date:** [October 19, 2007, 12:07am UTC](https://www.ruby-forum.com/t/ajax-and-adsense/117657/1 "2007-10-19T00:07:42Z")

</div>

Guys,

I’ve got a question on implementing Adsense with a dynamic content  
which uses ajax to change the content.  
So, let’s say I have two DIVs that I put on the same page, the first  
DIV contains the dynamic content which is updated using Ajax, the  
second DIV is where I put my Adsense code.

My question is, how can I tell or maybe more precisely, how can the  
Adsense code knows that the content has changed, hence adjusting the  
ads accordingly ?  
Anybody got some tips and tricks on this subject ?

Thanks a lot !
