Ads Management
Ads Management
Overview
The Ads Management module allows you to create, edit, and manage individual advertisements across your application. Support both Google AdSense ad units and custom advertisements (image, text, or HTML). Each ad can be assigned to multiple placements and controlled independently with priority settings and activation status.
Accessing Ads Management
Navigation path: Dashboard > Advertising > Ads
Required permission: manage_ads
Key Features
- Dual Ad Types: Create both AdSense and custom advertisements
- Multiple Custom Formats: Support for image, text, and HTML custom ads
- Priority System: Control which ads display when multiple options exist
- Bulk Operations: Activate, deactivate, or delete multiple ads at once
- Ad Duplication: Quickly create similar ads by duplicating existing ones
- Status Management: Enable or disable ads without deleting them
- Search and Filters: Find ads quickly with advanced filtering options
- Placement Tracking: See how many placements each ad has
Main Interface
List View
The ads list displays all your advertisements with the following information:
Columns:
- Name: Ad name with visual identifier
- Type: AdSense or Custom (with icon)
- Status: Active or Inactive badge
- Priority: Priority level for display order
- Placements: Number of placements using this ad
- Actions: Quick action buttons
Statistics (Header):
- Total ads count
- Active ads count
- AdSense ads count
- Custom ads count
Search and Filters
Available Filters:
- Search: Search by ad name
- Ad Type: Filter by AdSense or Custom
- Status: Filter by Active or Inactive
Bulk Actions
Select multiple ads using checkboxes to perform bulk operations:
- Activate: Enable multiple ads at once
- Deactivate: Disable multiple ads at once
- Delete: Remove multiple ads permanently
Ad Types
AdSense Ads
Google AdSense advertisements that display ads from Google's network.
Configuration Fields:
- Ad Name: Descriptive name for the ad unit
- AdSense Client ID: Your Publisher ID (ca-pub-XXXXXXXXXXXXXXXX)
- AdSense Slot ID: Numeric slot ID from AdSense
- Ad Format: Auto, Rectangle, Vertical, or Horizontal
- Responsive: Toggle for responsive ad behavior
Custom Ads
Self-hosted advertisements with full control over content.
Custom Ad Types:
-
Image Ads
- Image URL (required)
- Link URL (optional)
- Alt Text (optional)
-
Text Ads
- Text Content (required, max 1000 characters)
- Link URL (optional)
-
HTML Ads
- HTML Content (required, max 10,000 characters)
- Full control over ad appearance and behavior
Common Tasks
Creating an AdSense Ad
- Navigate to Dashboard > Advertising > Ads
- Click Create New Ad button
- Enter an Ad Name (e.g., "Homepage Header AdSense")
- Select Google AdSense as the ad type
- Enter your AdSense Client ID (format: ca-pub-XXXXXXXXXXXXXXXX)
- Enter the AdSense Slot ID (numeric ID from your AdSense account)
- Select an Ad Format (Auto, Rectangle, Vertical, or Horizontal)
- Check Responsive Ad if you want the ad to adapt to screen size
- Set Priority (higher numbers display first)
- Check Active to enable the ad immediately
- Click Create Ad
- Create placements to display the ad on your site
Creating a Custom Image Ad
- Go to Dashboard > Advertising > Ads
- Click Create New Ad
- Enter an Ad Name (e.g., "Sidebar Product Banner")
- Select Custom Ad as the ad type
- Choose Image as the custom type
- Enter the Image URL (full URL to your ad image)
- Optionally enter a Link URL (where users go when clicking)
- Optionally enter Alt Text for accessibility
- Set Priority level
- Check Active to enable
- Click Create Ad
- Set up placements for the ad
Creating a Custom Text Ad
- Navigate to Dashboard > Advertising > Ads
- Click Create New Ad
- Enter an Ad Name (e.g., "Newsletter Signup Text")
- Select Custom Ad as the ad type
- Choose Text as the custom type
- Enter your Text Content (max 1000 characters)
- Optionally add a Link URL
- Set Priority and Active status
- Click Create Ad
- Create placements to display the ad
Creating a Custom HTML Ad
- Go to Dashboard > Advertising > Ads
- Click Create New Ad
- Enter an Ad Name (e.g., "Interactive Product Showcase")
- Select Custom Ad as the ad type
- Choose HTML as the custom type
- Enter your HTML Content (max 10,000 characters)
- Ensure your HTML is valid and secure
- Set Priority and Active status
- Click Create Ad
- Test the ad thoroughly before deploying
Editing an Ad
- Navigate to Dashboard > Advertising > Ads
- Find the ad you want to edit
- Click the Edit icon (pencil) in the Actions column
- Modify the ad settings as needed
- Click Update Ad to save changes
- Changes take effect immediately on all placements
Duplicating an Ad
- Go to Dashboard > Advertising > Ads
- Find the ad you want to duplicate
- Click the Duplicate icon in the Actions column
- A copy of the ad is created with "(Copy)" appended to the name
- Edit the duplicated ad to customize it
- Create new placements for the duplicated ad
Activating/Deactivating an Ad
Single Ad:
- Navigate to Dashboard > Advertising > Ads
- Find the ad you want to toggle
- Click the Activate/Deactivate icon (play/pause)
- The ad status changes immediately
- Inactive ads won't display on any placements
Multiple Ads (Bulk):
- Go to Dashboard > Advertising > Ads
- Check the boxes next to ads you want to change
- Click Activate or Deactivate in the bulk actions bar
- Confirm the action
- All selected ads update simultaneously
Deleting an Ad
Single Ad:
- Navigate to Dashboard > Advertising > Ads
- Find the ad you want to delete
- Click the Delete icon (trash can)
- Confirm deletion in the popup
- The ad and all its placements are permanently removed
Multiple Ads (Bulk):
- Go to Dashboard > Advertising > Ads
- Check the boxes next to ads you want to delete
- Click Delete in the bulk actions bar
- Confirm the bulk deletion
- All selected ads are permanently removed
Viewing Ad Details
- Navigate to Dashboard > Advertising > Ads
- Find the ad you want to view
- Click the View icon (eye) in the Actions column
- See detailed information including:
- Full ad configuration
- All placements using this ad
- Creation and update timestamps
- Ad preview (for custom ads)
Ad Configuration Fields
Common Fields (All Ad Types)
Ad Name
- Type: Text Input
- Required: Yes
- Max Length: 255 characters
- Description: Descriptive name for internal identification
- Example: "Homepage Header Banner", "Sidebar AdSense Unit"
Priority
- Type: Number Input
- Default: 0
- Range: 0-100
- Description: Display priority when multiple ads compete for same placement
- Note: Higher numbers display first
Active Status
- Type: Toggle (Checkbox)
- Default: Checked
- Description: Enable or disable the ad
- Impact: Inactive ads won't display anywhere
AdSense-Specific Fields
AdSense Client ID
- Type: Text Input
- Required: Yes
- Format: ca-pub-XXXXXXXXXXXXXXXX
- Description: Your Google AdSense Publisher ID
- Validation: Must start with "ca-pub-"
AdSense Slot ID
- Type: Text Input
- Required: Yes
- Format: Numeric
- Description: Ad unit slot ID from your AdSense account
- Example: "1234567890"
Ad Format
- Type: Select Dropdown
- Options: Auto, Rectangle, Vertical, Horizontal
- Default: Auto
- Description: Ad unit format/shape
Responsive
- Type: Toggle (Checkbox)
- Default: Checked
- Description: Ad automatically adjusts to available space
Custom Ad Fields
Custom Type
- Type: Radio Selection
- Options: Image, Text, HTML
- Required: Yes
- Description: Type of custom advertisement
Image URL (Image Ads)
- Type: Text Input
- Required: Yes (for image ads)
- Format: Full URL
- Description: Direct link to the ad image
- Example: "https://example.com/ads/banner.jpg"
Link URL (Image/Text Ads)
- Type: Text Input
- Required: No
- Format: Full URL
- Description: Destination when ad is clicked
- Example: "https://example.com/product"
Alt Text (Image Ads)
- Type: Text Input
- Required: No
- Max Length: 255 characters
- Description: Accessibility text for screen readers
Text Content (Text Ads)
- Type: Textarea
- Required: Yes (for text ads)
- Max Length: 1000 characters
- Description: The text content of the ad
HTML Content (HTML Ads)
- Type: Textarea (Code Editor)
- Required: Yes (for HTML ads)
- Max Length: 10,000 characters
- Description: Custom HTML code for the ad
- Warning: Ensure HTML is safe and doesn't contain malicious code
Permissions
The following permission is required to access and manage ads:
manage_ads: Full access to create, edit, delete, and manage all advertisements
Users without this permission will see an "Access Denied" message.
Tips and Best Practices
Ad Naming
- Use descriptive names that indicate purpose and location
- Include ad type in the name (e.g., "Header AdSense", "Sidebar Custom")
- Use consistent naming conventions across all ads
- Avoid generic names like "Ad 1", "Ad 2"
Priority Management
- Use priority 100 for most important ads
- Use priority 50 for standard ads
- Use priority 0 for fallback ads
- Leave gaps between priorities for future additions
AdSense Best Practices
- Verify Client ID and Slot ID are correct before saving
- Use responsive ads for better mobile experience
- Choose appropriate ad formats for each placement
- Monitor AdSense dashboard for performance metrics
Custom Image Ads
- Use high-quality images optimized for web
- Ensure images are hosted on reliable servers
- Use appropriate image dimensions for placements
- Include alt text for accessibility
- Test images on different screen sizes
Custom Text Ads
- Keep text concise and compelling
- Include a clear call-to-action
- Test different messaging to find what works
- Ensure text is readable on all backgrounds
Custom HTML Ads
- Validate HTML before saving
- Test thoroughly on different browsers
- Avoid inline scripts that might be blocked
- Keep file size reasonable for performance
- Ensure responsive design for mobile devices
Performance Optimization
- Don't create too many active ads
- Deactivate unused ads instead of deleting
- Use priority system to control display order
- Monitor ad performance and adjust accordingly
Troubleshooting
AdSense Ad Not Displaying
Problem: AdSense ad is created but not showing on site
Solutions:
- Verify the ad is set to Active
- Check that AdSense Client ID is correct
- Confirm AdSense Slot ID matches your AdSense account
- Ensure placements are created and active for this ad
- Check that AdSense is enabled in Advertising Settings
- Verify your AdSense account is approved
- Check browser console for JavaScript errors
Custom Image Ad Not Loading
Problem: Custom image ad shows broken image icon
Solutions:
- Verify the Image URL is correct and accessible
- Check that the image file exists at the specified URL
- Ensure the image URL uses HTTPS (not HTTP)
- Test the image URL in a browser directly
- Check image file permissions on the server
- Verify the image format is supported (JPG, PNG, GIF, WebP)
Ad Priority Not Working
Problem: Lower priority ads are showing instead of higher priority ones
Solutions:
- Verify priority numbers are set correctly (higher = first)
- Check that higher priority ads are Active
- Ensure higher priority ads have valid placements
- Clear application cache
- Check placement rules and targeting
- Verify no JavaScript errors are preventing ad display
Bulk Actions Not Working
Problem: Bulk operations fail or don't affect all selected ads
Solutions:
- Ensure you have selected ads using checkboxes
- Check that you have
manage_adspermission - Verify no browser extensions are blocking the action
- Try with fewer ads selected
- Check browser console for errors
- Refresh the page and try again
HTML Ad Not Rendering Correctly
Problem: Custom HTML ad displays incorrectly or not at all
Solutions:
- Validate your HTML code for syntax errors
- Check for conflicting CSS with site styles
- Ensure all resources (images, scripts) use HTTPS
- Test HTML in isolation before adding to ad
- Check browser console for JavaScript errors
- Verify HTML doesn't exceed 10,000 character limit
Related Modules
- Advertising Settings: Configure global advertising system settings
- Ad Placements: Control where ads appear on your site
- Media Library: Upload and manage images for custom ads
- Adblock Logs: Monitor ad-blocking software usage
Quick Links
Need More Help?
Our comprehensive documentation covers everything from basic setup to advanced configurations. Check out these additional resources: