Hi Jim,
I use your sitemap generator and just noticed this adsense tracker and thought I’d try it out.
I followed the instructions and saved the 2 files as stated.
I ran the adsense.wsf script and got the following error from Windows Script Host:
Script:c:Program Filesadsense trackingadsense.wsf
Line: 200
Char: 53
Error: Expected ‘)’
Code: 800A03EE
Source: Mocrosoft VBScript compilation error
I checked the file and the source seemed ok to me.
Can you help?
Thanks
Rob

Hi Rob,
Has the adsense tracking script been modified from the download? Can you send me line 200?
Note: I don’t think line 200 has any confidential information, but just make sure you’re not sending username or password (had to mention just in case…)
Regards,
Jim.
Hi Jim,
>>Has the adsense tracking script been modified from the download?<<
No I just used copy and paste into a text editor and saved as adsense.wsf
here’s the lines of the script
line
197 ‘ Copy the file to the system directory
198 adSystemFolder = 1
199 objFSO.CopyFile strComponentPath, _
200 objFSO.BuildPath(objFSO.GetSpecialFolder(adSystemF older), "OSSMTP.dll")
201
202 ‘ Register the component
203 strComponentPath = bjFSO.BuildPath(objFSO.GetSpecialFolder(adSystemF older), _
204 "OSSMTP.dll")
205 strCommand = "regsvr32 /s " & Chr(34) & strComponentPath & Chr(34)
Hope this helps
Thanks
Rob
Hello Rob,
Sorry for the delay – I found the error, it was a formatting error on my part.
You’ll notice that in the Adsense.wsf file, there are spaces in some of the variables. These variables:
adSystemF older
PageImpre ssions
obj Stats
Sea rchClicks
SearchMon thlyEarnings
&o bjStats
ad ExecuteNoRecords
Should be replace with:
adSystemFolder
PageImpressions
objStats
SearchClicks
SearchMonthlyEarnings
&objStats
adExecuteNoRecords
Once these are replaced, then jump over to line 79 and change:
InstallSMTPComponentIfNeeded
to
‘InstallSMTPComponentIfNeeded
which will prevent the script from trying to install the SMTP Component.
Everything should be all set now, except that, google changed the layout on me and I need to adjust again, so this will take time.
Sorry for the confusion – I’ll get it all fixed up this week if all goes well.
Best regards,
Jim.
No, it has not. I still need to fix this and it’s on my list and I will get to it.
Regards,
Jim.
I still get an error after applying the changes. I now get:
Error: The end tag does not match the start tag: script
Line: 534
Char: 86
Here is line 532-534
</XMLCDATA>
</script>
<resource id="AdsenseLoginURL"><![CDATA[https://www.google.com/adsense/login.do]]></resource>
I know, I need to work on that script, I just have not had the time. Google changed everything around on me and didn’t check with me first
– Sorry, but unless someone chimes in on the adsense tracking script, this will take awhile.
Regards,
Jim.
Is the adsense.wsf file updated to reflect the current adsense layout?