crosspromote_flutter 0.0.3
crosspromote_flutter: ^0.0.3 copied to clipboard
Flutter widgets to display CrossPromote ads.
CrossPromote - Flutter #
crosspromote_flutter is a package that allows you to display custom ads, referrals, and sponsored content inside your app, and to manage it through a unified dashboard.
Getting started #
-
Create an account on CrossPromote.
-
Create your first ad, assign it to a an ad set, and create a new app.
-
Copy your app's identifier (it's visible under your app's name in the dashboard).
-
Add this package to your dependencies.
dependencies:
crosspromote_flutter: latest_version
- Get the dependencies.
flutter pub get
- Use
CrossPromotewidget in your app.
CrossPromote(
appId: 'replace-with-your-app-id',
)
Additional information #
- You can use predefined identifiers to test your app during development, and avoid incurring cost during testing. Use
example.image.w320h50as your app id to display an ad that is 320x50,example.image.w468h60for 468x60, etc. - By default ads are picked randomly. To match a specific size, pass
AdSizeassizeparameter toCrossPromote. - To avoid layout shift, you can pass both
AdSize, andAdSizeMatch.exactasmatchparameter. - You can also provide a custom
builderto handle the layouting yourself. Any case that returnsnullwill fallback to using the default implementation. - This package requires at least Flutter 3.32.0 to work.
- If there are any issues feel free to go to GitHub Issues and report a bug.