{"id":19777395,"url":"https://github.com/gstory0404/sigmobad","last_synced_at":"2026-03-15T10:44:03.132Z","repository":{"id":57881083,"uuid":"528797055","full_name":"gstory0404/sigmobad","owner":"gstory0404","description":"sigmob广告Flutter版","archived":false,"fork":false,"pushed_at":"2025-06-05T01:48:34.000Z","size":11513,"stargazers_count":6,"open_issues_count":2,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-15T12:53:04.988Z","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,"zenodo":null}},"created_at":"2022-08-25T10:16:56.000Z","updated_at":"2026-02-06T06:26:14.000Z","dependencies_parsed_at":"2025-04-30T19:37:09.285Z","dependency_job_id":"67ab5c95-36c5-42cd-952d-d92feeaec54b","html_url":"https://github.com/gstory0404/sigmobad","commit_stats":{"total_commits":12,"total_committers":1,"mean_commits":12.0,"dds":0.0,"last_synced_commit":"7a65bae195d3fe9eeed91e627917d77cb50675ab"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gstory0404/sigmobad","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fsigmobad","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fsigmobad/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fsigmobad/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fsigmobad/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gstory0404","download_url":"https://codeload.github.com/gstory0404/sigmobad/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gstory0404%2Fsigmobad/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30540718,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-15T07:17:37.589Z","status":"ssl_error","status_checked_at":"2026-03-15T07:17:31.738Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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.504Z","updated_at":"2026-03-15T10:44:03.096Z","avatar_url":"https://github.com/gstory0404.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sigmob广告 Flutter版本\n\n\u003cp\u003e\n\u003ca href=\"https://pub.flutter-io.cn/packages/sigmobad\"\u003e\u003cimg src=https://img.shields.io/pub/v/sigmobad?color=orange\u003e\u003c/a\u003e\n\u003ca href=\"https://pub.flutter-io.cn/packages/sigmobad\"\u003e\u003cimg src=https://img.shields.io/pub/likes/sigmobad\u003e\u003c/a\u003e\n\u003ca href=\"https://pub.flutter-io.cn/packages/sigmobad\"\u003e\u003cimg src=https://img.shields.io/pub/points/sigmobad\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/gstory0404/sigmobad/commits\"\u003e\u003cimg src=https://img.shields.io/github/last-commit/gstory0404/sigmobad\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/gstory0404/sigmobad\"\u003e\u003cimg src=https://img.shields.io/github/stars/gstory0404/sigmobad\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\u003ca href=\"https://qm.qq.com/q/4MSgZuKimc\"\u003e\u003cimg src=https://img.shields.io/badge/flutter%E6%8F%92%E4%BB%B6%E5%8F%8D%E9%A6%88-662186116-blue\u003e\u003c/a\u003e\n\u003c/p\u003e\n\n## 官方文档\n* [Android](https://doc.sigmob.com/#/Sigmob%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/Android/SDK%E6%8E%A5%E5%85%A5%E9%85%8D%E7%BD%AE/)\n* [IOS](https://doc.sigmob.com/#/Sigmob%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/SDK%E9%9B%86%E6%88%90%E8%AF%B4%E6%98%8E/iOS/SDK%E6%8E%A5%E5%85%A5%E9%85%8D%E7%BD%AE/)\n\n## 版本更新\n\n[更新日志](https://github.com/gstory0404/sigmobad/blob/master/CHANGELOG.md)\n\n## 本地开发环境\n```\n[✓] Flutter (Channel stable, 3.24.5, on macOS 14.6.1 23G93 darwin-x64, locale zh-Hans-CN)\n[✓] Android toolchain - develop for Android devices (Android SDK version 33.0.1)\n[✓] Xcode - develop for iOS and macOS (Xcode 16.1)\n[✓] Chrome - develop for the web\n[✓] Android Studio (version 2022.1)\n[✓] Android Studio (version 2022.3)\n[✓] IntelliJ IDEA Ultimate Edition (version 2023.2.2)\n[✓] VS Code (version 1.95.3)\n[✓] Connected device (4 available)\n[✓] Network resources\n```\n\n## 集成步骤\n#### 1、pubspec.yaml\n```Dart\nsigmobad: ^latest\n```\n引入\n```Dart\nimport 'package:sigmobad/sigmobad.dart';\n```\n\n## 使用\n\n### 1、SDK初始化\n```dart\nawait SigmobAd.register(\n    //androidId\n    androidId: \"6878\",\n    //iosId\n    iosId: \"6877\",\n    //androidAppKey\n    androidAppKey: \"8ebc1fd1c27e650c\",\n    //iosAppKey\n    iosAppKey: \"eccdcdbd9adbd4a7\",\n    //是否显示日志log\n    debug: true,\n    //是否显示个性化推荐广告\n    personalized: true,\n);\n```\n\n### 2、获取SDK版本\n```Dart\nawait SigmobAd.getSDKVersion();\n```\n\n### 3、信息流广告（自渲染）\n```dart\nSigmobAdNativeWidget(\n    //andorid广告位id\n    androidId: \"ed70b4760ff\",\n    //ios广告位id\n    iosId: \"ed70b3615a5\",\n    //广告宽\n    viewWidth: 400,\n    //广告高 加载成功后会自动修改为sdk返回广告高\n    viewHeight: 200,\n    //用户id\n    userId: \"123\",\n    //广告回调\n    callBack: SigmobAdNativeCallBack(\n        onShow: () {\n          print(\"信息流广告显示\");\n        },\n        onClose: () {\n          print(\"信息流广告关闭\");\n        },\n        onFail: (message) {\n          print(\"信息流广告出错 $message\");\n        },\n        onClick: () {\n          print(\"信息流广告点击\");\n        },\n    ),\n),\n```\n\n### 4、激励广告\n预加载广告\n```dart\nawait SigmobAd.loadRewardAd(\n    //android广告id\n    androidId: \"ea1f8ea2d90\",\n    //ios广告id\n    iosId: \"ea1f8f7b662\",\n    //用户id\n    userID: \"123\",\n    //奖励\n    rewardName: \"100金币\",\n    //奖励数\n    rewardAmount: 100,\n    //扩展参数 服务器回调使用\n    customData: \"\",\n);\n```\n显示广告\n\n```dart\nawait SigmobAd.showRewardAd();\n```\n\n广告监听\n```dart\nSigmobAdStream.initAdStream(\n    //激励广告\n    rewardCallBack: SigmobAdRewardCallBack(\n        onShow: () {\n          print(\"激励广告显示\");\n        },\n        onClick: () {\n          print(\"激励广告点击\");\n        },\n        onFail: (message) {\n          print(\"激励广告失败 $message\");\n        },\n        onClose: () {\n          print(\"激励广告关闭\");\n        },\n        onReady: () async {\n          print(\"激励广告预加载准备就绪\");\n          await SigmobAd.showRewardAd();\n        },\n        onUnReady: () {\n          print(\"激励广告预加载未准备就绪\");\n        },\n        onVerify: (hasReward, rewardName, rewardAmount) {\n          print(\"激励广告奖励  $hasReward   $rewardName   $rewardAmount\");\n        },\n    ),\n);\n```\n\n### 5、开屏广告\n```dart\nSigmobAdSplashWidget(\n        //android广告位id\n        androidId: \"ea1f8f21300\",\n        //ios广告位id\n        iosId: \"ea1f8f9bd12\",\n        //宽\n        width: MediaQuery.of(context).size.width,\n        //高\n        height: MediaQuery.of(context).size.height,\n        //超时时间\n        fetchDelay: 5,\n        //用户id\n        userId: \"123\",\n        callBack: SigmobAdSplashCallBack(\n          onShow: () {\n            print(\"开屏广告显示\");\n          },\n          onClose: () {\n            print(\"开屏广告关闭\");\n            Navigator.pop(context);\n          },\n          onFail: (message) {\n            print(\"开屏广告出错 $message\");\n          },\n          onClick: () {\n            print(\"开屏广告点击\");\n          },\n        ),\n      ),\n```\n\n### 6、插屏广告\n预加载广告\n```dart\nawait SigmobAd.loadInterstitialAd(\n    //android广告id\n    androidId: \"ea1f8f45d80\",\n    //ios广告id\n    iosId: \"ea1f8fb93fb\",\n    //用户id\n    userId: \"123\",\n);\n```\n显示广告\n\n```dart\n await SigmobAd.showInterstitialAd();\n```\n\n广告监听\n```dart\nSigmobAdStream.initAdStream(\n    interstitialCallBack: SigmobAdInterstitialCallBack(\n        onShow: () {\n          print(\"插屏广告显示\");\n        },\n        onClick: () {\n          print(\"插屏广告点击\");\n        },\n        onFail: (message) {\n          print(\"插屏广告失败 $message\");\n        },\n        onClose: () {\n          print(\"插屏广告关闭\");\n        },\n        onReady: () async {\n            print(\"插屏广告预加载准备就绪\");\n            await SigmobAd.showInterstitialAd();\n        },\n        onUnReady: () {\n          print(\"插屏广告预加载未准备就绪\");\n        },\n    ),\n);\n```\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|百度-百青藤广告插件|[baiduad](https://github.com/gstory0404/baiduad)|\n|字节-Gromore聚合广告|[gromore](https://github.com/gstory0404/gromore)|\n|Sigmob广告|[sigmobad](https://github.com/gstory0404/sigmobad)|\n|聚合广告插件(迁移至GTAds)|[flutter_universalad](https://github.com/gstory0404/flutter_universalad)|\n|GTAds聚合广告|[GTAds](https://github.com/gstory0404/GTAds)|\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\n### 开源不易，觉得有用的话可以请作者喝杯奶茶🧋\n\u003cimg src=\"https://github.com/gstory0404/flutter_universalad/blob/master/images/weixin.jpg\" width = \"200\" height = \"160\" alt=\"打赏\"/\u003e\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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgstory0404%2Fsigmobad","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgstory0404%2Fsigmobad","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgstory0404%2Fsigmobad/lists"}