{"id":15818549,"url":"https://github.com/asoftwareworld/asw-google-adsense","last_synced_at":"2025-08-01T20:10:23.644Z","repository":{"id":57099260,"uuid":"287774875","full_name":"asoftwareworld/ASW-Google-Adsense","owner":"asoftwareworld","description":"Show google ads for Angular application with the latest version of Angular.","archived":false,"fork":false,"pushed_at":"2023-03-18T16:48:41.000Z","size":3073,"stargazers_count":3,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-11T21:12:26.824Z","etag":null,"topics":["ads","angular8","asoftwareworld","asw","google-adsense","googleads","ui-components"],"latest_commit_sha":null,"homepage":"https://asoftwareworld.com/#/product/google-adsense","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/asoftwareworld.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-08-15T15:37:07.000Z","updated_at":"2024-12-14T15:36:18.000Z","dependencies_parsed_at":"2024-10-26T11:25:02.865Z","dependency_job_id":"d4ad7c00-0891-493f-ae76-a4456fc2f419","html_url":"https://github.com/asoftwareworld/ASW-Google-Adsense","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/asoftwareworld/ASW-Google-Adsense","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asoftwareworld%2FASW-Google-Adsense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asoftwareworld%2FASW-Google-Adsense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asoftwareworld%2FASW-Google-Adsense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asoftwareworld%2FASW-Google-Adsense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asoftwareworld","download_url":"https://codeload.github.com/asoftwareworld/ASW-Google-Adsense/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asoftwareworld%2FASW-Google-Adsense/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268290738,"owners_count":24226646,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["ads","angular8","asoftwareworld","asw","google-adsense","googleads","ui-components"],"created_at":"2024-10-05T06:03:00.245Z","updated_at":"2025-08-01T20:10:23.596Z","avatar_url":"https://github.com/asoftwareworld.png","language":"TypeScript","funding_links":["https://paypal.me/asoftwaresworld?locale.x=en_GB"],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eASW Google Adsense - show ads in angular app.\u003c/h1\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://user-images.githubusercontent.com/69723522/225834944-8ea6f27d-d02a-4903-91c3-bc97f9209251.svg\" alt=\"asw-logo\" width=\"310px\" height=\"100px\"/\u003e\n  \u003cbr\u003e\n  \u003ci\u003eShow google ads for Angular application with latest version of Angular.\u003c/i\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://asoftwareworld.com/#/product/google-adsense\"\u003e\u003cstrong\u003eASW Google Ads Demo\u003c/strong\u003e\u003c/a\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"CONTRIBUTING.md\"\u003eContributing Guidelines\u003c/a\u003e\n  ·\n  \u003ca href=\"https://github.com/asoftwareworld/ASW-Google-Adsense/issues\"\u003eSubmit an Issue\u003c/a\u003e\n  ·\n  \u003ca href=\"https://asoftwareworld.com/#/product/google-adsense\"\u003eBlog\u003c/a\u003e\n  \u003cbr\u003e\n  \u003cbr\u003e\n\u003c/p\u003e\n\n\u003cp align=\"center\"\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@asoftwareworld/google-adsense\"\u003e\n    \u003cimg src=\"https://badge.fury.io/js/%40asoftwareworld%2Fgoogle-adsense.svg\" alt=\"CI status\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/asoftwareworld/ASW-Google-Adsense/blob/master/LICENSE\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/license-MIT-blue.svg\" alt=\"Discord conversation\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n\u003chr\u003e\n\n# Documentation\n\n## Installation\n\n```html\nnpm install @asoftwareworld/google-adsense\n```\n\n#### Add google adsense code\n\nUse the standard AdSense code in your `index.html` file under `\u003chead\u003e\u003c/head\u003e` as you [normally would](https://support.google.com/adsense/answer/7477845)\n\n```html\n\u003cscript async src=//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js\u003e\u003c/script\u003e\n```\n\n#### Import NgModule\n\nAnd then include it in your module (see [app.module.ts](https://github.com/asoftwareworld/ASW-Google-Adsense/blob/master/src/app/app.module.ts) ):\n```\nimport { AswGoogleAdsenseModule } from '@asoftwareworld/google-adsense';\n// ...\n\n@NgModule({\n  imports: [\n    // shown passing global defaults (optional)\n    AswGoogleAdsenseModule.forRoot({\n      adClient: 'ca-pub-9010581920864857',\n      adSlot: 1795662914,\n    }),\n    ...\n  ]\n  // ...\n})\nexport class AppModule {}\n```\n\n#### Show Ad\n\nUses global defaults which can be overriden via inputs\n\n```html\n\u003casw-google-adsense\n  [adClient]=\"'ca-pub-9010581920864857'\"\n  [adSlot]=\"1795662914\"\n  [display]=\"'inline-block'\"\n  [width]=\"320\"\n  [height]=\"108\"\n\u003e\u003c/asw-google-adsense\u003e\n```\n\n## Inputs\n\n| input        | type          | description                                                           |\n| ------------ | ------------- | --------------------------------------------------------------------- |\n| adClient     | string        | account ca-pub-XXXXXXXXXXXXXXXX                                       |\n| adSlot       | string/number | ad slot/number                                                        |\n| adFormat     | string        | adsense ad format                                                     |\n| adRegion     | string        | older adsense code to make all ads on page the same                   |\n| display      | string        | element display style                                                 |\n| height       | number        | element height in px                                                  |\n| width        | number        | element width in px                                                   |\n| layout       | string        | used for in-feed ads                                                  |\n| layoutKey    | string        | used for in-feed ads                                                  |\n| pageLevelAds | boolean       | enable page-level ads                                                 |\n| timeOutRetry | boolean       | on first load sometimes adsense is not ready. retry's push after x ms |\n| adtest       | string        | sets up some sort of google test ad                                   |\n| className    | string        | add custom class names to the \"asw\" element                           |\n\n## License\nMIT License.\n\n## donate\n\u003ca href=\"https://paypal.me/asoftwaresworld?locale.x=en_GB\"\u003e\u003cimg src=\"blue.svg\" height=\"40\"\u003e\u003c/a\u003e  \nIf you enjoyed this project — or just feeling generous, consider buying me a beer. Cheers! :beers:\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasoftwareworld%2Fasw-google-adsense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasoftwareworld%2Fasw-google-adsense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasoftwareworld%2Fasw-google-adsense/lists"}