Ad Networks
The plugin supports two primary ad networks for automated story ads:Google AdSense
Google AdSense automatically places ads within your stories using<amp-story-auto-ads>.
Setup Instructions
- Navigate to Stories > Settings > Monetization
- Select Google AdSense as your ad network
- Enter your AdSense Publisher ID (format:
ca-pub-XXXXXXXXXXXXXXXX) - Enter your AdSense Ad Slot ID
- Save your settings
You must have an active AdSense account and be approved for AMP Stories ads before enabling this feature.
Configuration Example
The plugin generates the following markup (fromincludes/AdSense.php:92-103):
Google Ad Manager
Google Ad Manager (formerly DoubleClick for Publishers) provides more control over ad inventory and targeting.Setup Instructions
- Navigate to Stories > Settings > Monetization
- Select Google Ad Manager as your ad network
- Enter your Ad Manager Slot ID (format:
/XXXXXX/slot-name) - Save your settings
Configuration Example
The plugin generates the following markup (fromincludes/Ad_Manager.php:91-114):
Custom Ad Configuration
You can customize the Ad Manager configuration using the WordPress filter:$config- The ad configuration array$slot- The Ad Manager slot ID
includes/Ad_Manager.php:99-106 for implementation details.
Affiliate Links
While the plugin doesn’t provide dedicated affiliate link functionality, you can easily add affiliate links to your stories:Using Link Elements
Using Link Elements
- In the story editor, select any text or image element
- Click the link icon in the toolbar
- Enter your affiliate URL
- The link will be tracked as a
story_click_throughevent in Analytics
Using Page Attachments
Using Page Attachments
Page attachments are perfect for affiliate content:
- Add a page attachment to your story page
- Include your affiliate link in the attachment content
- Add a call-to-action button that opens the attachment
- Track engagement through
story_page_attachment_enterevents
Using Outbound Links
Using Outbound Links
For direct product links:
- Add a button or text element to your story page
- Link directly to the affiliate URL
- Use UTM parameters to track conversions
- Monitor clicks through Analytics integration
Ad Placement Best Practices
Frequency
Ads are automatically placed every 3-7 pages depending on story length. The algorithm ensures ads don’t disrupt the user experience.
Design
Story ads use the “Auto” format that matches your story’s design. The ad system automatically adapts colors and fonts to maintain visual consistency.
Performance
Monitor ad performance in your AdSense or Ad Manager dashboard. Stories typically see higher viewability rates compared to traditional display ads.
Requirements
AdSense Requirements
- Active AdSense account
- Site approved for AdSense
- Site approved for AMP Stories ads (may require separate application)
- Minimum content requirements met
Ad Manager Requirements
- Active Google Ad Manager account
- Configured ad units for AMP Stories
- Line items targeting AMP Stories inventory
- Creative assets optimized for 9:16 vertical format
Testing Ads
Before going live, test your ad implementation:- Use AdSense/Ad Manager test mode to preview ads
- Check that ads appear at appropriate intervals
- Verify ads don’t break story navigation
- Test on multiple devices and screen sizes
- Validate AMP markup using the AMP Validator
In test mode, you may see placeholder ads or public service announcements. This is normal and won’t affect production ad delivery.
Disabling Ads
To disable ads on all stories:- Navigate to Stories > Settings > Monetization
- Select None as your ad network
- Save your settings
Troubleshooting
Ads not appearing
Ads not appearing
- Verify your Publisher ID and Slot ID are correct
- Check that your account is approved for AMP Stories ads
- Ensure ad network is set to AdSense or Ad Manager (not “None”)
- Allow 24-48 hours for ad serving to begin
- Check browser console for AMP validation errors
Ads appearing too frequently
Ads appearing too frequently
Ad frequency is controlled by the
<amp-story-auto-ads> algorithm and cannot be directly configured. However, shorter stories will naturally have fewer ads.Revenue is lower than expected
Revenue is lower than expected
- Monitor viewability metrics in your ad dashboard
- Ensure stories meet Google’s quality guidelines
- Increase story publication frequency for better ad performance
- Check that ads are properly sized for mobile devices
- Consider using Ad Manager for better targeting and fill rates