Hi , All
in my recent website i have to check whether a google adsense is present on a perticular given page or not. if present then how many are present and waht the size of each is present there . i dont know how to do this i have a sample code like this below
<script type='text/javascript'> googletag.cmd.push(function() { googletag.defineSlot('/1055389/SEJ_160x600', [160, 600], 'div-gpt-ad-1323321126443-0').addService(googletag.pubads()); googletag.defineSlot('/1055389/SEJ_300x250_Sidebar', [300, 250], 'div-gpt-ad-1323321126443-1').addService(googletag.pubads()); googletag.defineSlot('/1055389/SEJ_300x250_Sidebar2', [300, 250], 'div-gpt-ad-1323321126443-2').addService(googletag.pubads()); googletag.defineSlot('/1055389/SEJ_300x250_UnderPost', [300, 250], 'div-gpt-ad-1323321126443-3').addService(googletag.pubads()); googletag.defineSlot('/1055389/SEJ_336x280_InPost', [300, 250], 'div-gpt-ad-1323321126443-4').addService(googletag.pubads()); googletag.defineSlot('/1055389/SEJ_728x90', [728, 90], 'div-gpt-ad-1323321126443-5').addService(googletag.pubads()); googletag.defineSlot('/1055389/SEJ_728x90_Footer', [728, 90], 'div-gpt-ad-1323321126443-6').addService(googletag.pubads()); googletag.pubads().enableSingleRequest(); googletag.enableServices(); });</script>
in the above example it is clearly stated that the google adsense is present at 7 places and the size is also mentioned there
i want this to be extracted by code in c#. while reading the source code of a particular URL.
is there any api to detect that or any other way to do this
its urgent for me and i have no clue
any help/adwise to resolve this