How to Add MGID Code to Your Blogger or WordPress Website

So, you’ve just received an email confirming that you are registered in the MGID system, meanwhile your account manager is already sending you a customized unit. We’ve created this quick and simple manual so that you can start monetizing immediately. We’ll walk you through the steps to successfully add your codes to your Blogger or WordPress website.

WordPress

Depending on your WordPress theme, the file that correlates for your article template may be one of the following: single.php, content.php, content-single.php
To add the code under the article, sign in to WP admin and:
1) Open Appearance settings
2) Click Editor
3) Choose the file that correlates with the article template
4) For better CTR, insert the code between </div><! – –  .entry-content – – > and <footer class=“entry-footer”> code lines
5) Click Update 
Sidebar ads can be inserted the same way under the article with files named “sidebar.php” or via WordPress admin panel:
1) Open Appearance settings
2) Widgets
3) Drag “text” block to sidebar area
4) Insert text block where you want to see ads
5) Insert ad code into newly added text block
6) Click Save

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.

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
5) Place the code above this line
6) Add //<![CDATA[ before the initial script and //]]> before closing one
E.g., so  <script>//<![CDATA[ …   //]]></script>
7) Then click Save Theme and View blog
Browse your dashboard to experiment with types and sizes of your ads. You may also contact your account manager in case you need some unique shapes or sizes specifically for your website.
Stay with us! More useful updates coming soon.

No comments:

Post a Comment