{"id":28614269,"url":"https://github.com/openflutter/flutter_advertising_id","last_synced_at":"2026-03-10T15:03:55.980Z","repository":{"id":294847669,"uuid":"988271702","full_name":"OpenFlutter/flutter_advertising_id","owner":"OpenFlutter","description":"A Flutter plugin to access advertising ID","archived":false,"fork":false,"pushed_at":"2026-01-29T09:25:00.000Z","size":264,"stargazers_count":4,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2026-01-30T00:33:15.872Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","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/OpenFlutter.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-05-22T09:57:06.000Z","updated_at":"2026-01-29T09:24:15.000Z","dependencies_parsed_at":"2025-10-29T06:12:33.075Z","dependency_job_id":"fd0a7f8c-4d44-42ae-99c3-183ecbff743a","html_url":"https://github.com/OpenFlutter/flutter_advertising_id","commit_stats":null,"previous_names":["openflutter/flutter_advertising_id"],"tags_count":8,"template":false,"template_full_name":null,"purl":"pkg:github/OpenFlutter/flutter_advertising_id","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fflutter_advertising_id","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fflutter_advertising_id/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fflutter_advertising_id/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fflutter_advertising_id/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OpenFlutter","download_url":"https://codeload.github.com/OpenFlutter/flutter_advertising_id/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OpenFlutter%2Fflutter_advertising_id/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30338599,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-10T15:02:55.010Z","status":"ssl_error","status_checked_at":"2026-03-10T15:02:36.911Z","response_time":106,"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":[],"created_at":"2025-06-12T01:13:35.956Z","updated_at":"2026-03-10T15:03:55.908Z","avatar_url":"https://github.com/OpenFlutter.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![pub package](https://img.shields.io/pub/v/advertising_id_flutter.svg)](https://pub.dartlang.org/packages/advertising_id_flutter)\n![Build status](https://github.com/OpenFlutter/flutter_advertising_id/actions/workflows/build_test.yml/badge.svg)\n[![GitHub stars](https://img.shields.io/github/stars/OpenFlutter/flutter_advertising_id)](https://github.com/OpenFlutter/fluwx/stargazers)\n[![GitHub forks](https://img.shields.io/github/forks/OpenFlutter/flutter_advertising_id)](https://github.com/OpenFlutter/advertising_id_flutter/network)\n[![GitHub license](https://img.shields.io/github/license/OpenFlutter/flutter_advertising_id)](https://github.com/OpenFlutter/fluwx/blob/master/LICENSE)\n[![GitHub issues](https://img.shields.io/github/issues/OpenFlutter/flutter_advertising_id)](https://github.com/OpenFlutter/flutter_advertising_id/issues)\n\u003ca target=\"_blank\" href=\"https://qm.qq.com/q/TJ29rkzywM\"\u003e\u003cimg border=\"0\" src=\"https://pub.idqqimg.com/wpa/images/group.png\" alt=\"OpenFlutter\" title=\"OpenFlutter\"\u003e\u003c/a\u003e\n\n---\n\n# advertising_id_flutter\n\nA Flutter plugin to access advertising ID.\n\nWraps [ASIdentifierManager.advertisingIdentifier](https://developer.apple.com/documentation/adsupport/asidentifiermanager/1614151-advertisingidentifier) (on iOS) and [advertising ID](https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient) (on Android).\n\n## Getting Started\n\nRun this command\n```\n flutter pub add advertising_id_flutter\n```\nThis will add a line like this to your package's pubspec.yaml\n\n```yaml\ndependencies:\n  ....\n  advertising_id_flutter: ${latestVersion}\n```\n\n## Usage\n\n\n### Get advertising ID.\n\n```dart\nString? advertisingId;\n// Platform messages may fail, so we use a try/catch PlatformException.\ntry {\n  advertisingId = await AdvertisingId().getAdvertisingId(true);\n} on PlatformException {\n  advertisingId = null;\n}\n```\n\n### Get limitAdTrackingEnabled\n\nRetrieves whether the user has limit ad tracking enabled or not.\n\n```dart\nbool? isLimitAdTrackingEnabled;\n// Platform messages may fail, so we use a try/catch PlatformException.\ntry {\n  isLimitAdTrackingEnabled = await AdvertisingId().limitAdTrackingEnabled;\n} on PlatformException {\n  isLimitAdTrackingEnabled = false;\n}\n```\n\n### Get authorizationStatus\n\nRetrieves whether the user has limit ad tracking enabled or not. This is only for iOS. It will always return `AuthorizationStatus.authorized` on Android.\n\n```dart\n\nfinal authorizationStatus = await AdvertisingId().authorizationStatus;\n\n```\n\n## Star history\n\n![stars](https://starchart.cc/OpenFlutter/flutter_advertising_id.svg)\n\n## LICENSE\n\n    Copyright 2025 OpenFlutter Project\n\n    Licensed to the Apache Software Foundation (ASF) under one or more contributor\n    license agreements.  See the NOTICE file distributed with this work for\n    additional information regarding copyright ownership.  The ASF licenses this\n    file to you under the Apache License, Version 2.0 (the \"License\"); you may not\n    use this file except in compliance with the License.  You may obtain a copy of\n    the License at\n\n    http://www.apache.org/licenses/LICENSE-2.0\n\n    Unless required by applicable law or agreed to in writing, software\n    distributed under the License is distributed on an \"AS IS\" BASIS, WITHOUT\n    WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.  See the\n    License for the specific language governing permissions and limitations under\n    the License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflutter%2Fflutter_advertising_id","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopenflutter%2Fflutter_advertising_id","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopenflutter%2Fflutter_advertising_id/lists"}