Using Custom Fields to Control Adsense Ad Placement
Have you found it difficult to control the placement of Adsense ads on your site? Would you like to be able to turn one or more Adsense ads on or off for a specific page/post?
Following is a method that can provide more flexibility and control over where Adsense ads are placed on your website.
Defining Custom Fields
So what is a custom field? According to WordPress (http://www.wpbeginner.com/wp-tutorials/wordpress-custom-fields-101-tips-tricks-and-hacks/):
Custom Fields are a form of meta-data that allows you to store arbitrary information with each WordPress post. While this does not sound so powerful, it is the single most powerful component of WordPress posts and content types (aka post types). This meta-data is handled with key/value pairs. The key is a 'name' which identifies the specific field thus it is a constant and should stay the same for all posts however you can use the same key multiple times within one post. The value is the information that will be displayed for the field when you call it in your WordPress theme thus it can change with each post.
To get more detail about custom fields, search for "custom fields wordpress" in any search engine.
Adsense Keywords and Values
There are at least six custom field keywords associated with Adsense ads. These are:
Values associated with these keywords include no, left, right, and center.
The "no" value, combined with any of the location related keywords, will restrict Adsense ads from being located in that area of your post or page (top, middle, bottom, or sidebar/widget).
The "adsense" keyword with a "no" value will restrict all Adsense ads from that particular post/page.