{"id":14988472,"url":"https://github.com/floatinghotpot/cordova-plugin-admob","last_synced_at":"2025-04-05T02:12:39.553Z","repository":{"id":9687947,"uuid":"11634483","full_name":"floatinghotpot/cordova-plugin-admob","owner":"floatinghotpot","description":"Basic Cordova Plugin for AdMob","archived":false,"fork":false,"pushed_at":"2019-03-01T03:00:29.000Z","size":14263,"stargazers_count":265,"open_issues_count":35,"forks_count":148,"subscribers_count":31,"default_branch":"master","last_synced_at":"2025-03-29T01:14:42.556Z","etag":null,"topics":["admob","cordova","monetization","plugin"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"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/floatinghotpot.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}},"created_at":"2013-07-24T12:42:13.000Z","updated_at":"2023-12-22T00:50:09.000Z","dependencies_parsed_at":"2022-08-25T23:21:09.059Z","dependency_job_id":null,"html_url":"https://github.com/floatinghotpot/cordova-plugin-admob","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatinghotpot%2Fcordova-plugin-admob","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatinghotpot%2Fcordova-plugin-admob/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatinghotpot%2Fcordova-plugin-admob/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/floatinghotpot%2Fcordova-plugin-admob/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/floatinghotpot","download_url":"https://codeload.github.com/floatinghotpot/cordova-plugin-admob/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247276189,"owners_count":20912288,"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":["admob","cordova","monetization","plugin"],"created_at":"2024-09-24T14:16:46.809Z","updated_at":"2025-04-05T02:12:39.531Z","avatar_url":"https://github.com/floatinghotpot.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Cordova Plugin for AdMob, Open Source Project\n\nThe FASTEST and EASIEST TO USE Cordova Admob plugin for Android, iOS and Windows phone.\n\nSimple and easy plugin to monetize your HTML5 hybrid apps and games.\n\nUsage:\n- Create your app\n\n```bash\ncordova create hallo com.example.hello HelloWorld\ncd hallo\ncordova platform add android\n```\n\n- Add the plugin\n```bash\ncordova plugin add cordova-plugin-admob\n```\n\nOR\n```bash\ncordova plugin add https://github.com/floatinghotpot/cordova-plugin-admob\n```\n\nExample Code:\n```javascript\n        window.plugins.AdMob.setOptions( {\n          publisherId: admobid.banner,\n          interstitialAdId: admobid.interstitial,\n          bannerAtTop: false, // set to true, to put banner at top\n          overlap: false, // set to true, to allow banner overlap webview\n          offsetTopBar: false, // set to true to avoid ios7 status bar overlap\n          isTesting: false, // receiving test ad\n          autoShow: true // auto show interstitial ad when loaded\n        });\n        // display the banner at startup\n        window.plugins.AdMob.createBannerView();\n        \n        // create interstitial ad\n        window.plugins.AdMob.createInterstitialView();\n        window.plugins.AdMob.showInterstitialAd(\n          true, \n          function(){},\n          function(e){alert(JSON.stringify(e));}\n        );\n```\n\nSee full index.html: https://github.com/floatinghotpot/cordova-plugin-admob/blob/master/test/index.html\n\nNote: This plugin is quite stable, and will not be evolved any more, except upgrade AdMob SDK.\n\n### Additional Android Manifest Configuration\n\nRecent versions of the Android Google Mobile Ads SDK [require to add the AdMob app ID into the Android manifest file.](https://ads-developers.googleblog.com/2018/10/announcing-v1700-of-android-google.html)\n\nThis can be accomplished by [extending your Cordova `config.xml` as follows:](https://cordova.apache.org/docs/en/latest/plugin_ref/spec.html#config-file)\n\n```xml\n\u003cwidget ...\u003e\n    [...]\n    \u003cplatform name=\"android\"\u003e\n        [...]\n        \u003cconfig-file parent=\"/manifest/application\" target=\"AndroidManifest.xml\"\u003e\n            \u003c!-- TODO: Replace with your real AdMob app ID --\u003e\n            \u003cmeta-data\n                android:name=\"com.google.android.gms.ads.APPLICATION_ID\"\n                android:value=\"ca-app-pub-################~##########\"/\u003e\n        \u003c/config-file\u003e\n    \u003c/platform\u003e\n    [...]\n\u003c/widget\u003e\n```\n\nWhen using Google Ad Manager, use instead:\n\n```xml\n            \u003cmeta-data\n                android:name=\"com.google.android.gms.ads.AD_MANAGER_APP\"\n                android:value=\"true\" /\u003e\n```\n\n## AdMob Basic vs Pro\n\nIf you want to use more powerful and new features, please use the pro version instead. The totoally re-designed **[AdMob PluginPro](https://github.com/floatinghotpot/cordova-admob-pro)** is proved much better and more than welcome by Cordova APP/game developers. \n\nAs announced by Cordova team, the plugins registry is being migrated to npm, you can find [all plugins by Raymond here](https://www.npmjs.com/~floatinghotpot).\n\n![ScreenShot](https://github.com/floatinghotpot/cordova-plugin-admob/raw/master/docs/pro_vs_basic.png)\n\n## Credits\n\nThis plugin was mainly maintained by Raymond Xie, and also thanks to following contributors:\n\n* @jumin-zhu, added interstitial support for Android.\n* @fersingb, added interstitial support for iOS.\n* @ihshim523, added initial WP8 support.\n* @AlexB71, improved WP8 support.\n* And, bugfix patches from @chrisschaub, @jmelvin, @mbektchiev, @grahamkennery, @bastaware, @EddyVerbruggen, @codebykevin, @codebykevin, @zahhak.\n\nThis project is fully open source, and no ad traffic sharing any more.\n\n## More\n\nMore free projects by Raymond Xie, find them on npm: \nhttps://www.npmjs.com/~floatinghotpot\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatinghotpot%2Fcordova-plugin-admob","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffloatinghotpot%2Fcordova-plugin-admob","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffloatinghotpot%2Fcordova-plugin-admob/lists"}