{"id":15366738,"url":"https://github.com/scttcper/react-adsense","last_synced_at":"2025-05-16T13:05:25.127Z","repository":{"id":37985105,"uuid":"270071009","full_name":"scttcper/react-adsense","owner":"scttcper","description":"Adsense component for react","archived":false,"fork":false,"pushed_at":"2024-12-06T05:34:11.000Z","size":1139,"stargazers_count":101,"open_issues_count":3,"forks_count":18,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-03T10:12:17.395Z","etag":null,"topics":["adsense","react"],"latest_commit_sha":null,"homepage":"https://react-adsense.xmplaylist.com","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scttcper.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2020-06-06T18:40:27.000Z","updated_at":"2025-02-19T17:10:09.000Z","dependencies_parsed_at":"2024-06-18T19:45:17.462Z","dependency_job_id":"f339a38d-24b3-44a2-8b0e-b351a07bb420","html_url":"https://github.com/scttcper/react-adsense","commit_stats":{"total_commits":62,"total_committers":9,"mean_commits":6.888888888888889,"dds":0.4032258064516129,"last_synced_commit":"31d506683062406115c45d5176f66bb6544ad671"},"previous_names":[],"tags_count":19,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scttcper%2Freact-adsense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scttcper%2Freact-adsense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scttcper%2Freact-adsense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scttcper%2Freact-adsense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scttcper","download_url":"https://codeload.github.com/scttcper/react-adsense/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248545218,"owners_count":21122096,"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":["adsense","react"],"created_at":"2024-10-01T13:19:36.881Z","updated_at":"2025-04-12T09:25:39.470Z","avatar_url":"https://github.com/scttcper.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @ctrl/react-adsense [![npm](https://badgen.net/npm/v/@ctrl/react-adsense)](https://www.npmjs.com/package/@ctrl/react-adsense) [![coverage status](https://badgen.net/codecov/c/github/scttcper/react-adsense)](https://codecov.io/gh/scttcper/react-adsense)\n\nDEMO: https://react-adsense.xmplaylist.com\n\n### Install\n\n```console\nnpm install @ctrl/react-adsense\n```\n\n### Use\n\nUse the standard AdSense code somewhere in your `\u003chead\u003e\u003c/head\u003e` as you [normally would](https://support.google.com/adsense/answer/7477845)\n\n```html\n\u003cscript async src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"\u003e\u003c/script\u003e\n```\n\n```tsx\nimport React from 'react';\nimport {Adsense} from '@ctrl/react-adsense';\n\n// ads with no set-up\n\u003cAdsense\n  client=\"ca-pub-7640562161899788\"\n  slot=\"7259870550\"\n/\u003e\n\n// ads with custom format\n\u003cAdsense\n  client=\"ca-pub-7640562161899788\"\n  slot=\"7259870550\"\n  style={{ width: 500, height: 300 }}\n  format=\"\"\n/\u003e\n\n// responsive and native ads\n\u003cAdsense\n  client=\"ca-pub-7640562161899788\"\n  slot=\"7259870550\"\n  style={{ display: 'block' }}\n  layout=\"in-article\"\n  format=\"fluid\"\n/\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscttcper%2Freact-adsense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscttcper%2Freact-adsense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscttcper%2Freact-adsense/lists"}