{"id":18263115,"url":"https://github.com/peter-szrnka/ngadsense","last_synced_at":"2026-03-14T02:39:37.231Z","repository":{"id":20670059,"uuid":"23952775","full_name":"peter-szrnka/ngAdsense","owner":"peter-szrnka","description":"Angular JS directive for Google AdSense advertisements.","archived":false,"fork":false,"pushed_at":"2020-01-02T15:10:59.000Z","size":42,"stargazers_count":18,"open_issues_count":0,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-02-15T00:21:44.822Z","etag":null,"topics":["angularjs","angularjs-directives","angularjs1","google-adsense-advertisements","javascript"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/peter-szrnka.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-09-12T08:25:52.000Z","updated_at":"2020-03-01T10:45:08.000Z","dependencies_parsed_at":"2022-08-21T17:40:59.332Z","dependency_job_id":null,"html_url":"https://github.com/peter-szrnka/ngAdsense","commit_stats":null,"previous_names":["szrnka-peter/ngadsense"],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/peter-szrnka/ngAdsense","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-szrnka%2FngAdsense","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-szrnka%2FngAdsense/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-szrnka%2FngAdsense/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-szrnka%2FngAdsense/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peter-szrnka","download_url":"https://codeload.github.com/peter-szrnka/ngAdsense/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peter-szrnka%2FngAdsense/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30486275,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-14T01:54:10.014Z","status":"online","status_checked_at":"2026-03-14T02:00:06.612Z","response_time":57,"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":["angularjs","angularjs-directives","angularjs1","google-adsense-advertisements","javascript"],"created_at":"2024-11-05T11:09:55.046Z","updated_at":"2026-03-14T02:39:37.205Z","avatar_url":"https://github.com/peter-szrnka.png","language":"JavaScript","funding_links":["https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=7YEPKTQRNK5YA"],"categories":[],"sub_categories":[],"readme":"# ngAdsense\n\nAngular JS directive for Google AdSense advertisements. With ngAdsense, you can place your ads onto your website, or an Angular JS template as well.\n\n![Build status](https://travis-ci.org/szrnka-peter/ngAdsense.svg?branch=master)\n[![codecov](https://codecov.io/gh/szrnka-peter/ngAdsense/branch/master/graph/badge.svg)](https://codecov.io/gh/szrnka-peter/ngAdsense)\n\n\n[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick\u0026hosted_button_id=7YEPKTQRNK5YA)\n\n## Requirements\n\n - A modern browser\n - AngularJS 1.6+\n \n## Installation\n\nThis module contains only one file (ngAdsense.js), so you have to download it from GitHub.\n\nNow you have to do is add the scripts to your application. Just make sure the `ng-adsense.min.js` file is inserted **after** the `angular.min.js` script:\n\n```html\n\u003cscript src=\"angular.min.js\"\u003e\u003c/script\u003e\n\u003cscript src=\"ng-adsense.min.js\"\u003e\u003c/script\u003e\n```\n\n### Bower\n```\nbower install ngAdsense --save\n```\n\n## Usage\n\n 1. Add the `ngAdsense` module as a dependency in your AngularJS app;\n 2. Add the custom directive `\u003cadsense-directive\u003e` to your html page or template.\n 3. Setup all three mandatory fields.\n 4. Ready!\n \n *Important: This solution cannot be tested on local developer environment!*\n\n## Example\n\n```html\n\u003chtml\u003e\n\t\u003chead\u003e\n\t  \u003cmeta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"\u003e\n\t  \u003cmeta name=\"viewport\" content=\"width=device-width, initial-scale=1\"\u003e\n\t  \u003cscript src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular.min.js\"\u003e\u003c/script\u003e\n\t  \u003cscript type=\"text/javascript\" src=\"ng-adsense.min.js\"\u003e\u003c/script\u003e\n\t  \u003cscript type=\"text/javascript\"\u003e\n\t    var ngAdSenseDemoApp = angular.module('DemoApp', ['ngAdsense']);\n\t  \u003c/script\u003e\n\t\u003c/head\u003e\n\t\u003cbody ng-app=\"DemoApp\"\u003e\n\t  \u003cadsense-directive \n\t    ad-client=\"YOUR_CLIENT_ID\"\n\t    ad-slot=\"YOUR_SLOT_ID\" \n\t    ad-format=\"auto\"\n\t    css-style=\"display:inline-block;width:320px;height:50px;\"\u003e\n\t  \u003c/adsense-directive\u003e\n\t\u003c/body\u003e\n\u003c/html\u003e\n```\n\n## License\n\nSee the [LICENSE](https://github.com/szrnka-peter/ngAdsense/blob/master/LICENSE) file.\n\n## Changelog\n\nSee the [CHANGELOG](https://github.com/szrnka-peter/ngAdsense/blob/master/CHANGELOG.md) file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-szrnka%2Fngadsense","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeter-szrnka%2Fngadsense","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeter-szrnka%2Fngadsense/lists"}