{"id":19777398,"url":"https://github.com/gstory0404/gromore","last_synced_at":"2025-04-30T19:32:23.528Z","repository":{"id":57747413,"uuid":"522870673","full_name":"gstory0404/gromore","owner":"gstory0404","description":"穿山甲gromore聚合广告插件flutter版","archived":false,"fork":false,"pushed_at":"2024-05-29T02:04:41.000Z","size":18635,"stargazers_count":11,"open_issues_count":2,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-05-29T15:48:49.501Z","etag":null,"topics":["flutter","flutter-ads","flutter-plugin","flutter-widget"],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gstory0404.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-08-09T08:46:21.000Z","updated_at":"2024-05-29T02:04:45.000Z","dependencies_parsed_at":"2024-06-04T09:02:31.002Z","dependency_job_id":null,"html_url":"https://github.com/gstory0404/gromore","commit_stats":{"total_commits":22,"total_committers":1,"mean_commits":22.0,"dds":0.0,"last_synced_commit":"ab51443c1ebf9b7f928e81d325dfd1117c27bf9a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fgromore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fgromore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fgromore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fgromore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gstory0404","download_url":"https://codeload.github.com/gstory0404/gromore/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224222139,"owners_count":17275974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flutter","flutter-ads","flutter-plugin","flutter-widget"],"created_at":"2024-11-12T05:24:44.862Z","updated_at":"2024-11-12T05:24:45.492Z","avatar_url":"https://github.com/gstory0404.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 穿山甲gromore聚合广告插件flutter版\n\n\u003cp\u003e\n\u003ca href=\"https://pub.flutter-io.cn/packages/gromore\"\u003e\u003cimg src=https://img.shields.io/pub/v/gromore?color=orange\u003e\u003c/a\u003e\n\u003ca href=\"https://pub.flutter-io.cn/packages/gromore\"\u003e\u003cimg src=https://img.shields.io/pub/likes/gromore\u003e\u003c/a\u003e\n\u003ca href=\"https://pub.flutter-io.cn/packages/gromore\"\u003e\u003cimg src=https://img.shields.io/pub/points/gromore\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/gstory0404/gromore/commits\"\u003e\u003cimg src=https://img.shields.io/github/last-commit/gstory0404/gromore\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/gstory0404/gromore\"\u003e\u003cimg src=https://img.shields.io/github/stars/gstory0404/gromore\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cp\u003e\n\u003ca href=\"http://qm.qq.com/cgi-bin/qm/qr?_wv=1027\u0026k=VhD0AZSmzvsD3fu7CeQFkzpBQHMHANb1\u0026authKey=W7JGJ0HKklyhP1jyBvbTF2Dkw0cq4UmhVSx2zXVdIm6n48Xrto%2B7%2B1n9jbkAadyF\u0026noverify=0\u0026group_code=649574038\"\u003e\u003cimg src=https://img.shields.io/badge/flutter%E4%BA%A4%E6%B5%81%E7%BE%A4-649574038-blue\u003e\u003c/a\u003e\n\u003ca href=\"http://qm.qq.com/cgi-bin/qm/qr?_wv=1027\u0026k=9I9lyXewEsEnx0f00EOF_9hEcFmG5Bmg\u0026authKey=AJfQ8%2FhOLcoJ0p5B16EITjFav1IIs3UAerZSUsWZfa0evuklgxibHti51AYlZgI3\u0026noverify=0\u0026group_code=769626410\"\u003e\u003cimg src=https://img.shields.io/badge/flutter%E4%BA%A4%E6%B5%81%E7%BE%A42-769626410-blue\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n# ⚠️ SDK已合并，请使用[flutter_unionad](https://github.com/gstory0404/flutter_unionad)，gromore不再维护\n\n## 官方文档\n* [Android](https://www.csjplatform.com/union/media/union/download/detail?id=75\u0026osType=android\u0026locale=zh-CN)\n* [IOS](https://www.csjplatform.com/union/media/union/download/detail?id=79\u0026osType=ios\u0026locale=zh-CN)\n\n## 版本更新\n\n[更新日志](https://github.com/gstory0404/gromore/blob/master/CHANGELOG.md)\n\n## 本地开发环境\n```\n[✓] Flutter (Channel stable, 3.10.6, on macOS 13.5 22G74 darwin-x64, locale\n    zh-Hans-CN)\n[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)\n[✓] Xcode - develop for iOS and macOS (Xcode 14.3.1)\n[✓] Chrome - develop for the web\n[✓] Android Studio (version 2022.1)\n[✓] IntelliJ IDEA Ultimate Edition (version 2023.2)\n[✓] VS Code (version 1.80.2)\n[✓] Connected device (4 available)\n[✓] Network resources\n```\n\n## 说明\n\n### iOS\n运行环境配置 \n支持系统iOS 10.X 及以上; \nSDK编译环境 Xcode 13.1及以上版本; \n\n### 插件\n当前使用gromore基础库Ads-Mediation-CN_4.3.0.1， 穿山甲ABUAdCsjAdapter_5.3.0.4.0已内置，其他的广告adapter根据文档导入到podfile中\n\n## 集成步骤\n#### pubspec.yaml\n```Dart\ngromore: ^0.0.3\n```\n#### 引入\n```Dart\nimport 'package:gromore/gromore.dart';\n```\n\n## 使用\n\n### SDK初始化\n```Dart\nawait Gromore.register(\n    //gromore广告 Android appid 必填\n    androidAppId: \"5205916\",\n    //gromore广告 ios appid 必填\n    iosAppId: \"5205916\",\n    //是否debug  上线改为false\n    debug: false,\n);\n```\n\n### 获取SDK版本\n```Dart\nawait Gromore.sdkVersion();\n```\n\n### 激励视频广告\n预加载激励视频广告\n```Dart\nawait Gromore.loadRewardAd(\n    //android广告ID\n    androidId: \"102110738\",\n    //ios广告ID\n    iosId: \"102110738\",\n    //奖励名称\n    rewardName: \"奖励100金币\",\n    //奖励金额\n    rewardAmount: 100,\n    //扩展参数，服务器回调使用\n    extra: \"111111\",\n    //用户id\n    userID: \"10000\");\n```\n显示激励视频广告\n```dart\n  await Gromore.showRewardAd();\n```\n监听激励视频结果\n\n```Dart\nGromoreStream.initAdStream(\n//激励广告\n    gromoreRewardCallBack: GromoreRewardCallBack(\n        onShow: () {\n          print(\"激励广告显示\");\n        },\n        onClick: () {\n          print(\"激励广告点击\");\n        },\n        onFail: (code, message) {\n          print(\"激励广告失败 $code $message\");\n        },\n        onClose: () {\n          print(\"激励广告关闭\");\n        },\n        onReady: () async {\n          print(\"激励广告预加载准备就绪\");\n          await Gromore.showRewardAd();\n        },\n        onUnReady: () {\n          print(\"激励广告预加载未准备就绪\");\n        },\n        onVerify: (verify, transId, rewardName, rewardAmount) {\n          print(\"激励广告奖励 $verify $transId   $rewardName   $rewardAmount\");\n        }, onAdInfo: (GromoreAdInfo info) {\n          print(\"激励相关信息 ${info.toJson()}\");\n      }));\n```\n\n### 信息流广告\n\u003e 配置广告时请使用模板广告\n```dart\nGroMoreNativeAd(\n     //android广告id\n     androidId: \"102110836\",\n     //ios广告id\n     iosId: \"102110836\",\n     //宽\n     width: 300,\n     //高\n     height: 200,\n     callBack: GromoreNativeCallBack(\n          onShow: () {\n             print(\"信息流广告显示\");\n          },\n          onFail: (code,error) {\n             print(\"信息流广告失败 $error\");\n          },\n          onClose: () {\n             print(\"信息流广告关闭\");\n          },\n          onClick: () {\n             print(\"信息流广告点击\");\n       \n          }, \n          onAdInfo: (GromoreAdInfo info) {\n            print(\"信息流广告相关信息 ${info.toJson()}\");\n          }),\n),\n```\n\n### Banner(横幅)广告\n\u003e 配置广告时请使用模板广告\n```dart\nGromoreBannerAd(\n     //android广告id\n     androidId: \"\",\n     //ios广告id\n     iosId: \"102110739\",\n     //宽\n     width: 300,\n     //高\n     height: 200,\n     callBack: GromoreBannerCallBack(\n       onShow: () {\n          print(\"banner广告显示\");\n       },\n       onFail: (code,error) {\n          print(\"banner广告失败 $error\");\n       },\n       onClose: () {\n          print(\"banner广告关闭\");\n       },\n       onClick: () {\n          print(\"banner广告点击\");\n       },\n        onAdInfo: (GromoreAdInfo info) {\n          print(\"信息流广告相关信息 ${info.toJson()}\");\n       }),\n   ),\n```\n\n### 回调说明\n\n#### GromoreAdInfo\n广告加载相关信息\n```dart\n/// @Description: 广告加载相关信息\n/// [adnName] ADN的名称，与平台配置一致，自定义ADN时为ADN唯一标识\n/// [customAdnName] 自定义ADN的名称，与平台配置一致，非自定义ADN为nil\n/// [slotID]  代码位\n/// [levelTag] 价格标签，多阶底价下有效\n/// [ecpm] 返回价格，nil为无权限\n/// [biddingType] 广告类型\n/// [errorMsg] 额外错误信息,一般为空(扩展字段)\n/// [requestID]  adn提供的真实广告加载ID，可为空\nGromoreAdInfo(\n      {this.adnName,\n        this.customAdnName,\n        this.slotID,\n        this.levelTag,\n        this.ecpm,\n        this.biddingType,\n        this.errorMsg,\n        this.requestID});\n```\n\n#### GromoreError\n广告加载错误信息\n```dart\n/// [code] 错误码\n/// [message] 错误信息\nGromoreError(\n    {this.code,\n  this.message});\n```\n\n#### GromoreError\n激励广告奖励信息\n```dart\n/// [verify] 是否有效\n/// [transId] 验证id\n/// [rewardName] 奖励名称\n/// [rewardAmount] 奖励数量\nGromoreVerify(\n    {this.verify,\n      this.transId,\n      this.rewardName,\n      this.rewardAmount});\n```\n\n## 插件链接\n\n|插件|地址|\n|:----|:----|\n|字节穿山甲广告插件|[flutter_unionad](https://github.com/gstory0404/flutter_unionad)|\n|腾讯优量汇广告插件|[flutter_tencentad](https://github.com/gstory0404/flutter_tencentad)|\n|聚合广告插件|[flutter_universalad](https://github.com/gstory0404/flutter_universalad)|\n|百度百青藤广告插件|[flutter_baiduad](https://github.com/gstory0404/flutter_baiduad)|\n|字节穿山甲内容合作插件|[flutter_pangrowth](https://github.com/gstory0404/flutter_pangrowth)|\n|文档预览插件|[file_preview](https://github.com/gstory0404/file_preview)|\n|滤镜|[gpu_image](https://github.com/gstory0404/gpu_image)|\n|Gromore聚合广告|[gromore](https://github.com/gstory0404/gromore)|\n\n## 联系方式\n* Email: gstory0404@gmail.com\n* Blog：https://www.gstory.cn/\n\n* QQ群: \u003ca target=\"_blank\" href=\"https://qm.qq.com/cgi-bin/qm/qr?k=4j2_yF1-pMl58y16zvLCFFT2HEmLf6vQ\u0026jump_from=webapi\"\u003e\u003cimg border=\"0\" src=\"//pub.idqqimg.com/wpa/images/group.png\" alt=\"649574038\" title=\"flutter交流\"\u003e\u003c/a\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgstory0404%2Fgromore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgstory0404%2Fgromore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgstory0404%2Fgromore/lists"}