0

How to Remove Website Title in Matched Content Ads

How to Remove Website Titles in Matched Content Ads - You may be experiencing this, namely the site title appears on the matched content ad widget so that the content title doesn't stand out or only partially appears, actually this is a simple problem, the matched content widget is designed to have the ability to customize/ following the structure of the website template. This is similar to what I explained in my previous article, which discussed meta tags to set/remove site titles that start the page title when shared on social media. If you haven't read it, I will explain it again here, specifically to overcome or eliminate site titles in adsense matched content ads.

The problem is in the meta tag as follows;

<meta expr:content='data:blog.pageTitle' property='og:title'/>

<meta expr:content='data:blog.pageTitle' name='twitter:title'/>

<meta expr:content='data:blog.pageTitle' itemprop='name'/>

When viewed from the page source, the browser will render the conditional tag data:blog.pageTitle

the matched content widget also displays your content or articles in the same way, to change the rendering method you only need to change the conditional tag data:blog.pageTitle to data:blog.pageName so that the site title will move to the right and not be displayed in matched content ads .

Notes:Not all meta tags must be changed, if the three meta tags above are in your blog template, just replace one of them,

The conditional data:blog.pageName tag is only intended for post pages, on the home page it won't work at all. If you want to change it, you should separate the meta tags from the home page and the posts page. Now I will give an example of how to separate the home page meta tag and post page meta tag, see the complete example below;

 

<b:if cond='data:blog.pageType == &quot;index&quot;'>

<meta expr:content='data:blog.pageTitle' property='og:title'/>

<meta expr:content='data:blog.pageTitle' name='twitter:title'/>

<b:else/>

<b:if cond='data:blog.pageType != &quot;error_page&quot;'>

<meta expr:content='data:blog.pageName' property='og:title'/>

<meta expr:content='data:blog.pageName' name='twitter:title'/>

</b:if>

</b:if>

Meta tags that are in the conditional 

<b:if cond='data:blog.pageType == &quot;index"'> tag are intended for the homepage url or homepage, while


The meta tag inside the conditional <b:if cond='data:blog.pageType != &quot;error_page&quot;'> tag is intended for all posts except 404 (errorpage) pages. Thus the matched content adsense robot will immediately understand how your page should be rendered and displayed.

Post a Comment Blogger

 
Top