Show an ad,
get an ad shown
AdTogether brings reciprocal marketing via ad exchange to independent creators. By embedding our lightweight, open-source SDK into your Android, iOS, Web, React, or Flutter app, you instantly join a completely moneyless ecosystem. Serve ads to your users to automatically earn credits, and spend those credits to promote your own projects globally — helping you increase conversions without spending a dime.
"use client";
import { useState } from 'react';
import { AdTogether } from '@adtogether/web-sdk';
import { AdTogetherBanner, AdTogetherInterstitial } from '@adtogether/web-sdk/react';
// Initialize the SDK with your App ID
if (typeof window !== 'undefined') {
AdTogether.initialize({ appId: 'at_f57425e89a9545eda1162baeedb78636' });
}
export default function MyComponent() {
const [showInterstitial, setShowInterstitial] = useState(false);
return (
<div className="p-4">
<h1>My Awesome App</h1>
{/* Earn 1 credit by displaying a banner ad */}
<AdTogetherBanner
adUnitId="YOUR_AD_UNIT_ID"
showCloseButton={true}
onAdLoaded={() => console.log('Banner loaded!')}
onAdFailedToLoad={(e) => console.error(e)}
onAdClosed={() => console.log('User closed the ad')}
/>
{/* Earn 5 credits by displaying an interstitial ad */}
<button onClick={() => setShowInterstitial(true)}>
Show Interstitial Ad
</button>
<AdTogetherInterstitial
adUnitId="YOUR_AD_UNIT_ID"
isOpen={showInterstitial}
onClose={() => setShowInterstitial(false)}
closeDelay={3}
/>
</div>
);
}Key Capabilities
Mutual Growth
Stop paying for user acquisition. Display ads from other creators to generate credits, and use them to put your app in front of a worldwide audience. Increase conversions by reaching users who are already engaged with similar products.
Frictionless Integration
Our drop-in SDKs make it effortless to join the exchange. With native support for Android, iOS, Web, React, and Flutter, you'll be up and running in minutes.
Fair-Trade Economy
A transparent value exchange. Earn credits by showing ads and spend them to promote your own. Different ad formats have different weights, ensuring a level playing field and fair value for apps of all sizes.
SDK Repositories & Downloads
Use our open-source SDKs for seamless native integration on any device.