Description
A simple AdSense plugin for manual ad placements with shortcodes and built-in ads.txt support.
Read the setup guide:
Read the Adslastica Setup Guide
The plugin helps users manually control homepage ad placement and keep layouts cleaner compared to automatic ads.
It also includes simple Publisher ID cleanup and built-in ads.txt tools to help new AdSense users complete their setup more easily.
Features:
- Add your Google AdSense Publisher ID
- Automatically clean common Publisher ID formatting mistakes
- Accept ca-pub, pub, or a 16-digit Publisher ID
- Manually place ads using shortcodes
- Generate a virtual ads.txt entry
- Detect an existing physical ads.txt file
- Check whether your ads.txt is publicly accessible
- Display the current ads.txt status
- Copy a manual ads.txt line with one click when needed
- Keep homepage layouts cleaner
- Simple and beginner-friendly interface
- Lightweight and easy to use
- Works with most modern WordPress themes and page builders
For best results, you can exclude your homepage from Auto Ads inside your Google AdSense account and manually place ads where you want using shortcodes.
Shortcodes:
- Ad 1:
[adslastica_ad_1] - Ad 2:
[adslastica_ad_2]
External Services
This plugin connects to Google AdSense to load and display ads on your website.
It uses your Google AdSense Publisher ID to request ads from Google.
The following information may be sent to Google AdSense:
- Google AdSense Publisher ID
- Website URL and standard ad request information required by Google AdSense
This plugin does not collect or transmit personal user data.
Google AdSense:
https://www.google.com/adsense/
Google Privacy Policy:
https://policies.google.com/privacy
Google AdSense Terms:
https://www.google.com/adsense/terms/
Installation
- Upload the plugin to the
/wp-content/plugins/directory. - Activate the plugin through the Plugins menu in WordPress.
- Open Settings Adslastica.
- Enter your Google AdSense Publisher ID.
- Verify that ads.txt is active.
- Paste your AdSense ad code into Ad 1 or Ad 2.
- Place the shortcode where you want the ad to appear.
FAQ
-
How do I display ads?
-
Use either of these shortcodes:
[adslastica_ad_1][adslastica_ad_2]
They work in posts, pages, widgets, and most page builders that support shortcodes.
-
Does this plugin support homepage manual ads?
-
Yes. Adslastica is designed to help you manually control ad placement, especially on your homepage.
-
Does it work with Astra or other themes?
-
Yes. Adslastica works with most modern WordPress themes and page builders that support shortcodes.
-
Does Adslastica support ads.txt?
-
Yes. Adslastica can generate a virtual ads.txt entry, detect an existing physical ads.txt file, check whether your ads.txt is publicly accessible, and provide a manual ads.txt line when automatic delivery is unavailable.
-
What Publisher ID formats are supported?
-
Adslastica accepts ca-pub, pub, or a 16-digit Publisher ID. It automatically removes common formatting mistakes such as extra spaces, quotation marks, and copied dash characters.
Reviews
There are no reviews for this plugin.
Contributors & Developers
“Adslastica” is open source software. The following people have contributed to this plugin.
ContributorsTranslate “Adslastica” into your language.
Interested in development?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Changelog
1.6.4
- Added automatic virtual ads.txt support from the saved Publisher ID
- Added detection of existing physical ads.txt files
- Added public ads.txt availability checking
- Added ads.txt status display
- Added one-click copy for the manual ads.txt line
- Improved Publisher ID input handling for pasted values
- Accepts ca-pub, pub, or a 16-digit Publisher ID
- Automatically removes accidental spaces, quotation marks, and copied dash characters
1.6.3
- Added setup guide link to the plugin description
- Updated documentation
1.6.2
- Improved admin panel design
- Added shortcode support for Ad 2
- Improved manual ad placement workflow
- General plugin cleanup and improvements