Hello to all, the past one week, I have been
reading some of the top blogs on the internet that write about AdSense.
I read so many comments which really needed attention. Unfortunately, I
cannot write to all this people who really seem disappointed or
frustrated as their attempt to follow instructions in a tutorial seem
to be a ‘’mess’’. This is why I decided to write this post. I believe
it will clear the doubts of so many and also help them improve their
earnings with AdSense.
The reason why you always get error is simply because some tags
according to W3Schools are considered invalid. Many people are still in
the process of updating to the new standards set by w3Schools.
W3Schools is a web developer information
website, with tutorials and references relating to web development
topics such as HTML, CSS, JavaScript, PHP, SQL, and JQuery. The site
provides a reference manual covering many aspects of web
programming. It is necessary for every developer to be part of
this site so as to be aware of the recent updates in the world of
coding.
Let us take a sample of an AdSense code for the
asynchronous type.
The most common thing we will do is to parse the code in a converter to
obtain a code like this
Originally like
<!--HOME PAGE 1
<ins
class="adsbygoogle"
style="display:inline-block;width:728px;height:90px"
data-ad-client="ca-pub-xxxxxxx"
data-ad-slot="YYYYY"></ins>
<script>
(adsbygoogle = window.adsbygoogle ||
[]).push({});
</script>
It is good . We have replaced ‘’< ‘’with
< and ‘’> ‘’ with > very fast.
So why do I get error when I want to save?
Response: Your code still contain an string not permitted in comments
‘’—‘’
To get rid of this , you will have to do a minification and
proceed with code implementation of the ad code as follows
1. Get code from your adsense account
2. Paste code on HMTL editor such as
notepad,notepad++,dreamweaver, kompozer or just any
3. Remove
the line highlighted in red. above,
4. Paste the code to your converter
5. Copy code
6. Paste it in your desired position. You won’t get
an error message again.
Start earning peacefully
Some common Errors and solutions
Error parsing XML, line 3719,
column 15: Attribute name "async" associated with an element type
"script" must be followed by the ' = ' character.
Solution
replace ‘’sync’ ’ with the XML equivalent async='async'
Error parsing XML, line 3719,
column 15: Open quote is expected for attribute "{1}" associated with
an element type "async" (when you try to modify the async tag)
This means you wrote the second async tag without the quotation .
See error one
Error parsing XML, line 3490,
column 9: The string "--" is not permitted within comment
Solution. Wipe out this line containing you ad title . For
example
Still facing difficulties ? Leave a comment
-->
add this, async="async" ,inplace of the the full async.
ReplyDeleteThank you for the contribution.
Delete