Websites, SEO and web management, London UK.

SEO

Google AdSense IE error

Implementing AdSense code, when implementing Google AdSense code, IE6 and IE7 throw an error - "Expected identifier, string or number" on Google AdSense mobile ads. AdSense Expected identifier string or number.

AdSense IE error solution 1

Do not use IE6 or IE7. Not a good solution as you can not dictate the world. Secondly, if your code is invalid, don't blame whistle blowers. Say thanks to IE for pointing out the glitches.

AdSense IE error solution 2

Turn off Internet Explorer JavaScript debugging. Not a good solution, you can't tell your visitors to tweak their browsers. Use valid code on your pages. However this last is impossible when you use third party includes, especially code from big gurus.

AdSense IE error solution 3

Make your heart hard and go against Google policies, change their AdSense code, make it valid, delete the comma!

Defective JavaScript for Google AdSense:

	format: '320x50_mb',
	output: 'html',
	slotname: '3072778467',
};

Corrected JavaScript for Google AdSense. Remove the last comma. AdSense code has to look like this:

	format: '320x50_mb',
	output: 'html',
	slotname: '3072778467'
};

AdSense IE error corrected. Google search engine loves well performing web pages. We all love well performing web pages.

2011

AdSense IE error - Expected identifier, string or number. Search engine optimisation.