Beautiful macOS app and widgets to monitor your Adsterra earnings in real-time.
β¨ Beautiful Widgets
- 3 widget sizes: Small, Medium, and Large
- Premium blue gradient design with glass morphism
- Real-time balance and earnings display
- 7-day revenue sparkline (Medium widget)
- Detailed stats dashboard (Large widget)
π Real-time Monitoring
- Live Adsterra data
- Today's earnings with visual indicator
- Impressions, clicks, and CPM tracking
- Weekly revenue overview
π¨ Premium Design
- Vibrant blue gradient backgrounds
- Glass effect stat cards with depth
- Glowing indicators and shadows
- White text optimized for contrast
- Responsive layouts for all widget sizes
π Secure & Private
- No data shared with third parties
- Local-only data processing
- Small Widget: Balance and key metrics at a glance
- Medium Widget: Balance with 7-day trend sparkline
- Large Widget: Complete dashboard with all stats
-
Download the installer script:
curl -O https://raw.githubusercontent.com/YOUR_USERNAME/AdMetrics/main/install.sh
-
Run the installer:
chmod +x install.sh ./install.sh
-
Follow the on-screen instructions to:
- Set up Adsterra API credentials
- Configure your account
- Add widgets to your desktop
-
Clone the repository:
git clone https://github.com/YOUR_USERNAME/AdMetrics.git cd AdMetrics -
Open in Xcode:
open AdMetrics.xcodeproj
-
Build and Run:
- Select the AdMetrics scheme
- Press Cmd+R to build and run
- The app will be installed to /Applications/
-
Get Adsterra API:
- Go to Adsterra Publisher Dashboard
- Copy Adsterra API
-
Configure AdMetrics:
- Open AdMetrics app
- Go to Settings
- Enter API Token
-
Add Widgets:
- Click the date/time in menu bar
- Scroll down and click "Edit Widgets"
- Find "AdMetrics" and drag widgets to your desktop
- Choose from Small, Medium, or Large sizes
- Launch AdMetrics to view detailed statistics
- Refresh data with the refresh button
- Access settings to update credentials or preferences
- Small Widget: Quick balance overview with impressions and CPM
- Medium Widget: Balance with 7-day revenue trend line
- Large Widget: Complete dashboard with today's revenue, impressions, clicks, CTR, CPM, and weekly totals
- Tap any widget to open the main app
- Widgets automatically refresh every 15 minutes
- Data is cached for offline viewing
- Stale data indicator appears if refresh fails
- macOS 14.0+ (Sonoma or later)
- Xcode 15.0+ (for building from source)
- Active Adsterra Account
AdMetrics/
βββ AdMetrics/ # Main app target
β βββ Services/ # API and data services
β βββ Views/ # SwiftUI views
β βββ Shared/ # Shared models and utilities
β βββ Assets.xcassets/ # App icon and assets
βββ AdMetricsWidget/ # Widget extension
β βββ SmallWidgetView.swift
β βββ MediumWidgetView.swift
β βββ LargeWidgetView.swift
β βββ WidgetAPIService.swift
βββ Shared/ # Shared code between app and widgets
βββ Models/ # Data models
# Install Xcode from the App Store
xcode-select --install# Clone the repository
git clone https://github.com/YOUR_USERNAME/AdMetrics.git
cd AdMetrics
# Build for release
xcodebuild -scheme AdMetrics -configuration Release clean build
# The app will be in: build/Build/Products/Release/AdMetrics.app
# Install to Applications
cp -R build/Build/Products/Release/AdMetrics.app /Applications/- Remove old widgets from desktop (right-click β Remove Widget)
- Kill widget service:
killall chronod - Re-add fresh widgets from Widget Gallery
- Verify OAuth credentials in Settings
- Check Google Cloud Console for API quota
- Re-authenticate if needed
# Clear icon cache
sudo rm -rf /Library/Caches/com.apple.iconservices.store
killall Dock FinderAdMetrics respects your privacy:
- β All data stored locally on your Mac
- β Credentials secured in macOS Keychain
- β No analytics or tracking
- β No data sent to third-party servers
- β Open source - audit the code yourself
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Built with SwiftUI and WidgetKit
- Uses Adsterra API
- Inspired by the need for beautiful macOS widgets
- π§ Email: support@admetrics.app
- π Issues: GitHub Issues
- π¬ Discussions: GitHub Discussions
- Support for multiple Adsterra accounts
- Customizable widget themes
- Export data to CSV
- Monthly/yearly reports
- Menu bar quick stats
- Notifications for revenue milestones
Made with β€οΈ for macOS