Git Product home page Git Product logo

gstory0404 / gtads Goto Github PK

View Code? Open in Web Editor NEW
34.0 4.0 12.0 459 KB

Flutter聚合广告插件GTAds,支持自定义广告插入,支持按需动态集成多个广告,目前支持字节穿山甲、百度百青藤、腾讯优量汇、sigmob、快手

License: Apache License 2.0

Kotlin 4.84% Ruby 7.30% Objective-C 4.58% Dart 82.78% Swift 0.50%
ad csj bqt flutter gdt juhe kuaishou ksad sigmob ylh flutter-plugin flutter-widget

gtads's Introduction

GTAds聚合广告插件

GTAds是一款Flutter聚合广告管理插件,支持android、ios,提供一套广告管理调度方案、本身不提供任何广告,可通过支持插件或者自定义扩展方法快速集成市面任何一款广告。 示例

相关插件

自定义广告

通过自定义文档,可快速将自己的广告接入到聚合插件中

使用

插件链接

Flutter插件 地址
字节-穿山甲广告插件 flutter_unionad
腾讯-优量汇广告插件 flutter_tencentad
百度-百青藤广告插件 baiduad
字节-Gromore聚合广告 gromore
Sigmob广告 sigmobad
信天翁广告 quakerbirdad
快手广告 ksad
聚合广告插件(迁移至GTAds) flutter_universalad
GTAds聚合广告 GTAds
字节穿山甲内容合作插件 flutter_pangrowth
文档预览插件 file_preview
滤镜 gpu_image

开源不易,觉得有用的话可以请作者喝杯奶茶🧋

打赏

联系方式

gtads's People

Contributors

gstory0404 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

gtads's Issues

Banner广告ios正常,android不显示

描述

Banner广告ios正常,android不显示

代码

GTAdsBannerWidget(
          //需要的广告位组
          codes: [
            GTAdsCode(alias: "ylh", probability: 5,androidId: "9055941703623169",iosId: "3015049793632342"),
          ],
          width: MediaQuery.of(context).size.width,
          height: MediaQuery.of(context).size.width/6.4,
          //超时时间 当广告失败后会依次重试其他广告 直至所有广告均加载失败 设置超时时间可提前取消
          timeout: 5,
          //默认随机模式
          model: GTAdsModel.RANDOM,
          callBack: GTAdsCallBack(
            onShow: (code) {
              print("横幅显示 ${code.toJson()}");
            },
            onClick: (code) {
              print("横幅点击 ${code.toJson()}");
            },
            onFail: (code,message) {
              print("横幅错误 $message");
            },
            onClose: (code) {
              print("横幅关闭 ${code.toJson()}");
            },
            onTimeout: () {
              print("横幅加载超时");
            },
            onEnd: () {
              print("横幅所有广告位都加载失败");
            },
          ),
        )

设备版本

Flutter (Channel stable, 3.7.7, on Microsoft Windows [版本 10.0.19045.2728], locale zh-CN)

插件版本

gtads_csj: ^1.2.2 #穿山甲广告
gtads_ylh: ^1.2.1 #优量汇

日志

详细的log日志或者截图录屏

E/flutter_tencentad_BannerAdView(18267): ---onADReceive---BannerAdView  Banner广告加载成功回调
I/flutter (18267): onShow ====  {width: 373.2272644042969, height: 0.8636363744735718}
I/flutter (18267): 横幅显示 {alias: ylh, androidId: 9055941703623169, iosId: 3015049793632342, probability: 5}
E/FrameEvents(18267): updateAcquireFence: Did not find frame.
E/gdt_ad_mob(18267): ADEvent 参数为空,type:109
E/FrameEvents(18267): updateAcquireFence: Did not find frame.
E/flutter_tencentad_BannerAdView(18267): ---onADExposure---BannerAdView  Banner广告曝光

信息流广告

描述

列表创建多个信息流广告,广告内容都是重复

设备版本

Flutter (Channel stable, 3.7.7, on Microsoft Windows [版本 10.0.19045.2728], locale zh-CN)

插件版本

gtads_csj: ^1.2.2 #穿山甲广告
gtads_ylh: ^1.2.1 #优量汇

日志

详细的log日志或者截图录屏

列表创建多个信息流广告,广告内容都是重复

Unresolved reference: TTAdManagerHolder

描述

今天升级最新版本后运行时候报错 Unresolved reference: TTAdManagerHolder 这个怎么解决捏?

设备版本

本地flutter版本、设备型号版本

插件版本

gtads_csj: ^1.3.4

日志

详细的log日志或者截图录屏

Flutter assets will be downloaded from https://storage.flutter-io.cn. Make sure you trust this source!
e: file:///C:/Users/yund/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/flutter_unionad-1.3.27/android/src/main/kotlin/com/gstory/flutter_unionad/splashad/SplashAdView.kt:10:35 Unresolved reference: TTAdManagerHolder
e: file:///C:/Users/yund/AppData/Local/Pub/Cache/hosted/pub.flutter-io.cn/flutter_unionad-1.3.27/android/src/main/kotlin/com/gstory/flutter_unionad/splashad/SplashAdView.kt:60:28 Unresolved reference: TTAdManagerHolder
         *********************************************************
WARNING: This version of flutter_webview_plugin will break your Android build if it or its dependencies aren't compatible with AndroidX.
         See https://goo.gl/CP92wY for more information on the problem and how to fix it.
         This warning prints for all Android build failures. The real root cause of the error may be unrelated.
         *********************************************************

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':flutter_unionad:compileDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.compilerRunner.GradleCompilerRunnerWithWorkers$GradleKotlinCompilerWorkAction
   > Compilation error. See log for more details

编译失败

你好,很棒的插件,但是在安卓上编译遇到如下报错信息,应该是kotlin版本问题,我其他插件可能有版本的要求,我考虑降级Gradle,但是怕影响别的插件,这个flutter-tencent的kotlin依赖,能否提高一些,如1.5x/1.6x?谢谢

FAILURE: Build failed with an exception.

* What went wrong:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':flutter_tencentad' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.50

信息流广告拉取失败

信息流广告拉取失败,返回如下:

信息流广告拉去失败 40029   reason: 0  message: 两种情况:1. SDK版本低;使用的sdk版本过低,还不支持个性化模板渲染功能。解决办法:升级到平台最新版本sdk。2. 接口使用错误;创建的代码位类型是模板渲染/非模板渲染,但是请求方法是非模板渲染/模板渲染的方法。解决办法:使用模板渲染的方法去请求模板渲染类型或者使用非模板渲染的方法去请求非模板类型的广告,如果代码位在平台上是模板渲染,可以参考文档中个性化模板XX广告的部分,demo中参考带有express部分的代码。如果代码位不是模板渲染,则不要调用含有express字样的接口。

尝试加载 Pangle 插件,但是插件状态是 UN_INSTALLED。插件安装超时

尝试加载 Pangle 插件,但是插件状态是 UN_INSTALLED。插件安装超时

设备版本

flutter3,夜神模拟器 build:gradle:7.2.0

插件版本

广告基础库 必须引入
gtads: ^1.3.0
需要使用的广告按需引入,以下可选
字节穿山甲广告
gtads_csj: ^1.3.5
腾讯优量汇广告
gtads_ylh: ^1.3.4
sigmob广告
gtads_sigmob: ^1.3.0
百度百青藤广告
gtads_bqt: ^1.3.1
快手广告
gtads_ks: ^1.3.0

日志

A Dart VM Service on SM N976N is available at: http://127.0.0.1:13839/O1-IjccyUzw=/
E/libEGL ( 7883): called unimplemented OpenGL ES API
The Flutter DevTools debugger and profiler on SM N976N is available at:
http://127.0.0.1:13842?uri=http://127.0.0.1:13839/O1-IjccyUzw=/
D/ProfileInstaller( 7883): Installing profile for com.deepindo.doxiaomimall
W/Zeus/load_pangle( 7883): PluginLoader loadPlugin, UN_INSTALLED, com.byted.pangle
W/TTPluginManager( 7883): Install wait time out
W/System.err( 7883): com.bytedance.sdk.openadsdk.api.plugin.r: (8, install wait timeout)
W/System.err( 7883): at com.bytedance.sdk.openadsdk.api.plugin.yh.ws(Unknown Source)
W/System.err( 7883): at com.bytedance.sdk.openadsdk.api.plugin.yh.r(Unknown Source)
W/System.err( 7883): at com.bytedance.sdk.openadsdk.api.plugin.yh.ws(Unknown Source)
W/System.err( 7883): at com.bytedance.sdk.openadsdk.api.r$1.run(Unknown Source)
W/System.err( 7883): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
W/System.err( 7883): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
W/System.err( 7883): at java.lang.Thread.run(Thread.java:761)
E/tt_ad_sdk( 7883): int sdk failed, code: 4205, message: (8, install wait timeout)
E/初始化( 7883): 失败 4205 (8, install wait timeout)
I/flutter ( 7883): 广告加载结果 [{csj: false}]
I/Zeus/init_pangle( 7883): ZeusScanRunnable listPluginDownloadDir, dir = /data/user/0/com.deepindo.doxiaomimall/app_tt_pangle_bykv_file/pangle_com.byted.pangle/next
D/NetworkSecurityConfig( 7883): No Network Security Config specified, using platform default
I/Zeus/init_pangle( 7883): ZeusScanRunnable listPluginDownloadDir, dir = /storage/emulated/0/Android/data/com.deepindo.doxiaomimall/files/.pangle_d
Application finished.

已做的尝试

  1. 重装依赖 ==> 还是这个报错
  2. 升级了 gtads_csj (之前是1.3.4 目前是 1.3.5)

[gtads_ylh] 这个插件是否也能够支持 竞价模式 呢?

优量汇的插件默认没有支持竞价模式,是否能够支持 竞价模式 呢?比如给个配置的选项?

如果能正常运行的话,那么会非常灵活。不仅支持多个provider,而且优量汇自己又可以竞价。

没认真研究过,不知道是否可行?

希望支持gromore

描述

异常/需求具体描述

我们想接入穿山甲gromore
然后发现

需求

  • 请问什么时候可以支持gromore

设备版本

本地flutter版本、设备型号版本

插件版本

插件版本号

日志

详细的log日志或者截图录屏


Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.