RoutineHub Banner Ad
RoutineHub Interstitial Ad
RoutineHub Product Card
RoutineHub Offer Card
RoutineHub Link
Premium
This library requires a Jellycuts Premium subscription ($19.99/mo). Attempting to import RoutineHubAds without Premium will produce a compiler error.
The RoutineHub Ads library lets you monetize your shortcuts by embedding affiliate links. When users tap your link, you earn revenue through the RoutineHub Creator Program.
Before you can use this library, you need to complete two steps:
RoutineHub Ads currently supports affiliate links as its first monetization product. You embed your personalized affiliate URL into one of the available ad actions, and when a user runs your shortcut they see a styled card or page with your link. Additional ad formats (such as display ads) will be available in future updates.
import RoutineHubAds
import Shortcuts
import RoutineHubAds
// Your shortcut logic
var result = "Hello"
showResult(result)
// Insert your affiliate link
routineHubLink(url: "https://wildfire.co/aff/YOUR_KEY", text: "Check this out")
All actions accept your affiliate URL as the url parameter. Use the link you received when you joined the Creator Program.
Each action compiles into two Shortcuts actions at build time: a Get Text action containing a self-contained HTML page, followed by a Show Web Page action that renders it. The HTML is fully embedded in the shortcut — no network requests are made at compile time.