adtogether_sdk 0.1.0 copy "adtogether_sdk: ^0.1.0" to clipboard
adtogether_sdk: ^0.1.0 copied to clipboard

The official AdTogether Flutter SDK for monetizing your app with native advertising.

AdTogether SDK #

Pub Version

AdTogether is a community-driven ad exchange platform built on the principle: "Show an ad, get an ad shown."

This SDK allows Flutter developers to easily integrate AdTogether ads into their applications. By displaying ads from other community members, you earn "Ad Credits" that allow your own app's ads to be shown across the AdTogether network.

Features #

  • Banner Ads: Easy-to-use widgets for displaying standard-sized banners.
  • Fair Exchange: Automated tracking of impressions to ensure fair distribution of ad credits.
  • Easy Integration: Minimal setup required to start showing ads.
  • Community Focused: Help other developers while getting exposure for your own project.

Getting started #

In your pubspec.yaml file, add the dependency:

dependencies:
  adtogether_sdk: ^0.1.0

Run flutter pub get to install the package.

Configuration #

Initialize the SDK with your App ID (obtained from the AdTogether Dashboard):

import 'package:adtogether_sdk/adtogether_sdk.dart';

void main() {
  AdTogether.initialize(appId: 'YOUR_APP_ID');
  runApp(MyApp());
}

Usage #

Displaying a Banner Ad #

Simply use the AdTogetherBanner widget anywhere in your widget tree:

import 'package:adtogether_sdk/adtogether_sdk.dart';

// ... inside your build method
AdTogetherBanner(
  adSize: AdSize.banner, // Standard 320x50 banner
)

Supported Ad Sizes #

  • AdSize.banner (320x50)
  • AdSize.largeBanner (320x100)
  • AdSize.mediumRectangle (300x250)

Additional information #

  • Documentation: For full documentation, visit docs.adtogether.dev.
  • Issues: Found a bug? File an issue on our GitHub repository.
  • Support: Join our Discord community for real-time support and discussion.

License #

This project is licensed under the MIT License - see the LICENSE file for details.

1
likes
0
points
668
downloads

Publisher

unverified uploader

Weekly Downloads

The official AdTogether Flutter SDK for monetizing your app with native advertising.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, url_launcher, visibility_detector

More

Packages that depend on adtogether_sdk