prebid_mobile_flutter 0.0.1 copy "prebid_mobile_flutter: ^0.0.1" to clipboard
prebid_mobile_flutter: ^0.0.1 copied to clipboard

Plugin for showing ads from Prebid Mobile SDK

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:prebid_mobile_flutter/prebid_mobile_flutter.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {
  @override
  void initState() {
    super.initState();
  }

  // Platform messages are asynchronous, so we initialize in an async method.

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: ListView(children: [
            Column(children: [
              ListTile(title: Text("THIS IS AN ARTICLE")),
              PrebidBanner(
                backgroundColor: Colors.green,
                adSize: PrebidAdSize(320, 320),
                publisherId: "xxx",
                adUnitId: "xxx",
                configId: "xxx",
                serverHost: "xxx",
                onDemandFetched: (String status) {
                  print("Prebid status: " + status);
                },
              ),
              ListTile(title: Text("THIS IS AN ARTICLE")),
              ListTile(title: Text("THIS IS AN ARTICLE")),
              ListTile(title: Text("THIS IS AN ARTICLE")),
              ListTile(title: Text("THIS IS AN ARTICLE")),
            ])
          ])),
    );
  }
}
2
likes
30
pub points
0%
popularity

Publisher

unverified uploader

Plugin for showing ads from Prebid Mobile SDK

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on prebid_mobile_flutter