{"id":20597891,"url":"https://github.com/pkasila/reactadsense","last_synced_at":"2026-04-25T03:13:37.831Z","repository":{"id":57711032,"uuid":"512467902","full_name":"pkasila/ReactAdsense","owner":"pkasila","description":"ReactAdsense is a component which allows you to use Google Adsense in React","archived":false,"fork":false,"pushed_at":"2022-07-20T13:14:55.000Z","size":185,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-18T00:43:10.003Z","etag":null,"topics":["ads","react"],"latest_commit_sha":null,"homepage":"","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/pkasila.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"patreon":"pkasila"}},"created_at":"2022-07-10T15:18:10.000Z","updated_at":"2023-03-20T04:51:57.000Z","dependencies_parsed_at":"2022-09-26T21:21:48.386Z","dependency_job_id":null,"html_url":"https://github.com/pkasila/ReactAdsense","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkasila%2FReactAdsense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkasila%2FReactAdsense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkasila%2FReactAdsense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pkasila%2FReactAdsense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pkasila","download_url":"https://codeload.github.com/pkasila/ReactAdsense/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242231677,"owners_count":20093687,"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":["ads","react"],"created_at":"2024-11-16T08:24:18.319Z","updated_at":"2026-04-25T03:13:37.776Z","avatar_url":"https://github.com/pkasila.png","language":"TypeScript","readme":"# @pkasila/react-adsense\n\n[![npm package][npm-img]][npm-url]\n[![Build Status][build-img]][build-url]\n[![Downloads][downloads-img]][downloads-url]\n[![Issues][issues-img]][issues-url]\n[![Code Coverage][codecov-img]][codecov-url]\n[![Commitizen Friendly][commitizen-img]][commitizen-url]\n[![Semantic Release][semantic-release-img]][semantic-release-url]\n\n\u003e ReactAdsense is a component which allows you to use Google Adsense in React\n\n## Install\n\n```bash\nnpm install @pkasila/react-adsense\n```\n\n### Ads by Google script\n\n**Remember** to include `adsbygoogle.js`:\n\n```html\n\u003cscript async src=\"https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\"\u003e\u003c/script\u003e\n```\n\n## Usage\n\n```tsx\nimport React from 'react';\nimport ReactAdsense from '@pkasila/react-katex';\n\nfunction SimpleAd() {\n  return \u003cReactAdsense client={'ca-pub-XXXXXXXXXXXXXXX'}\n                       slot={'YYYYYYYYY'} /\u003e;\n}\n\nfunction CustomStyles() {\n  return \u003cReactAdsense client={'ca-pub-XXXXXXXXXXXXXXX'}\n                       slot={'YYYYYYYYY'}\n                       format={''}\n                       style={{width: 960, height: 64}} /\u003e;\n}\n\nfunction ResponsiveNativeAds() {\n  return \u003cReactAdsense client={'ca-pub-XXXXXXXXXXXXXXX'}\n                       slot={'YYYYYYYYY'}\n                       layout={'in-article'}\n                       format={'fluid'} /\u003e;\n}\n```\n\n[build-img]:https://github.com/pkasila/ReactAdsense/actions/workflows/release.yml/badge.svg\n[build-url]:https://github.com/pkasila/ReactAdsense/actions/workflows/release.yml\n[downloads-img]:https://img.shields.io/npm/dt/@pkasila/react-adsense\n[downloads-url]:https://www.npmtrends.com/@pkasila/react-adsense\n[npm-img]:https://img.shields.io/npm/v/@pkasila/react-adsense\n[npm-url]:https://www.npmjs.com/package/@pkasila/react-adsense\n[issues-img]:https://img.shields.io/github/issues/pkasila/ReactAdsense\n[issues-url]:https://github.com/pkasila/ReactAdsense/issues\n[codecov-img]:https://codecov.io/gh/pkasila/ReactAdsense/branch/main/graph/badge.svg\n[codecov-url]:https://codecov.io/gh/pkasila/ReactAdsense\n[semantic-release-img]:https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg\n[semantic-release-url]:https://github.com/semantic-release/semantic-release\n[commitizen-img]:https://img.shields.io/badge/commitizen-friendly-brightgreen.svg\n[commitizen-url]:http://commitizen.github.io/cz-cli/\n","funding_links":["https://patreon.com/pkasila"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkasila%2Freactadsense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpkasila%2Freactadsense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpkasila%2Freactadsense/lists"}