How to Add MGID Code to Your Blogger

There are two main ways to add code on Blogger: Google tools or editing HTML code. Please note that with both ways, you need to add CDATA code to avoid Blogger XML parsing errors.

Using Google:

  1.  Sign in to Blogger
  2. In the top left, click the Down arrow
  3. Click the blog you want to show ads on
  4. In the left menu, click Layout
  5. Choose the area you want to place ads and click Add a gadget
  6. In the window that appears, under "Basics," find HTML/Javascript and click Add
  7. Do not enter a title!
  8. Copy and paste your MGID code into the content section
  9. Click Save and check your blog

You may shift or shuffle the cards regarding the type of ad code and your preferences.

blogger 1

Editing HTML:

You may also add code in Theme.

  1. Sign in to Blogger and choose the blog you would like to add code to
  2. In the left menu, click Theme
  3. Choose option Edit HTML
  4. Press Ctrl + F to find <!-- Comments --> in your code
    blogger 2
  5. Place the code above this line

  6. Add //<![CDATA[ before the initial script and //]]> before closing one

    blogger 3E.g., so <script>//<![CDATA[ ... //]]></script>
  7. Then click Save Theme and View blog

Browse your dashboard to experiment with the types and sizes of your ads. You may also contact your manager in case you need some unique shapes or sizes specifically for your website.