flu_vcc_ads

A Flutter plugin for integrating VCCorp Ads SDK into Android and iOS applications.

Features

  • Easy integration of VCC Ads.
  • Support for multiple ad formats (Banner, Popup, In-page, etc.).
  • Native performance with PlatformView.
  • BLoC-ready architecture for ad management.

Installation

Add flu_vcc_ads to your pubspec.yaml:

dependencies:
  flu_vcc_ads: ^1.0.0

Android Setup

1. Add maven repository to android/build.gradle.kts:

allprojects {
    repositories {
        google()
        mavenCentral()
        maven(url = "https://msh-jfrog.sohatv.vn:443/artifactory/sdk-v3-gradle-dev-local/")
    }
}

2. Add packaging options to android/app/build.gradle.kts:

android {
    packaging {
        resources {
            excludes += "META-INF/versions/9/OSGI-INF/MANIFEST.MF"
        }
    }
}

Usage

1. Initialize Ad Control

Create a VccAdControl with a unique tag for your screen or layout:

final control = VccAdControl(tag: 'my_screen_tag');

2. Request Ads

Request ads for specific slot IDs:

control.requestAds('your_ad_slot_id');

3. Display Ad Widget

Use the VccAdWidget to display the ad:

VccAdWidget(
  adId: 'your_ad_slot_id',
  tag: 'my_screen_tag',
  control: control,
)

Documentation

For more detailed information, please refer to the API documentation.

Example

Check out the example folder for a complete demonstration of various ad formats and usage patterns.

License

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