{"id":37022286,"url":"https://github.com/codenameone/admobfullscreen-codenameone","last_synced_at":"2026-01-14T02:39:34.340Z","repository":{"id":65507541,"uuid":"156187689","full_name":"codenameone/admobfullscreen-codenameone","owner":"codenameone","description":"Automatically exported from code.google.com/p/admobfullscreen-codenameone","archived":false,"fork":true,"pushed_at":"2025-02-08T15:53:48.000Z","size":18515,"stargazers_count":1,"open_issues_count":2,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-11T08:46:16.767Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"chen-fishbein/admobfullscreen-codenameone","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codenameone.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2018-11-05T08:55:21.000Z","updated_at":"2025-06-13T06:28:42.000Z","dependencies_parsed_at":"2023-01-26T15:40:12.905Z","dependency_job_id":null,"html_url":"https://github.com/codenameone/admobfullscreen-codenameone","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/codenameone/admobfullscreen-codenameone","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2Fadmobfullscreen-codenameone","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2Fadmobfullscreen-codenameone/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2Fadmobfullscreen-codenameone/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2Fadmobfullscreen-codenameone/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codenameone","download_url":"https://codeload.github.com/codenameone/admobfullscreen-codenameone/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codenameone%2Fadmobfullscreen-codenameone/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28408711,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"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":[],"created_at":"2026-01-14T02:39:33.695Z","updated_at":"2026-01-14T02:39:34.312Z","avatar_url":"https://github.com/codenameone.png","language":"Java","readme":"# admobfullscreen-codenameone\n\nA Codename One library project that uses Admob Interstitial Ads \nto display full screen ads - https://developers.google.com/mobile-ads-sdk/docs/admob/android/interstitial\n\nThe library is implemented for Android, iOS and the Simulator\n\nThanks for Ram for contributing.(the creator of yhomework)\n\n# Sample Code\n```java\npublic class MyApplication {\n\n    private Form current;\n\n    private AdMobManager admob;\n    \n    public void init(Object context) {\n        try {\n            Resources theme = Resources.openLayered(\"/theme\");\n            UIManager.getInstance().setThemeProps(theme.getTheme(theme.getThemeResourceNames()[0]));\n        } catch(IOException e){\n            e.printStackTrace();\n        }\n        \n        String admobId = \"\u003cyour android adID\u003e\";\n        if(Display.getInstance().getPlatformName().equals(\"ios\")){\n            admobId = \"\u003cyour iphone adID\u003e\";\n        }\n        admob = new AdMobManager(admobId);\n    }\n    \n    public void start() {\n        if(current != null){\n            current.show();\n            return;\n        }\n        \n        Form f = new Form(\"FullScreen Ads\");\n        f.addComponent(new Button(new Command(\"start\"){\n\n            public void actionPerformed(ActionEvent evt) {\n                admob.loadAd();\n            }\n        \n        }));\n        \n        f.addComponent(new Button(new Command(\"show\"){\n\n            public void actionPerformed(ActionEvent evt) {\n                admob.showAdIfLoaded();\n            }\n        \n        }));\n\n        f.addComponent(new Button(new Command(\"load \u0026 show\"){\n\n            public void actionPerformed(ActionEvent evt) {\n                admob.loadAndShow();\n            }\n        \n        }));\n\n        f.show();\n        \n    }\n\n    public void stop() {\n        current = Display.getInstance().getCurrent();\n    }\n    \n    public void destroy() {\n    }\n\n}\n```\n\n# Details\n\n## Adding to Maven App Projects\n\nAdd dependency to your common/pom.xml file:\n\n```xml\n\u003cdependency\u003e\n    \u003cgroupId\u003ecom.codenameone\u003c/groupId\u003e\n    \u003cartifactId\u003eadmob-fullscreen-lib\u003c/artifactId\u003e\n    \u003cversion\u003eLATEST\u003c/version\u003e\n    \u003ctype\u003epom\u003c/type\u003e\n\u003c/dependency\u003e\n```\n\n## Adding to Ant App Projects\n\nAdd the \"admob-fullscreen\" plugin through Codename One extensions (in Codename One Settings)\n\n## iOS Build Hints\n\nOn iOS, you need to add the the following to your `ios.plistInject` build hint:\n\n```xml\n\u003ckey\u003eGADApplicationIdentifier\u003c/key\u003e\n\u003cstring\u003e... your Admob App ID...\u003c/string\u003e\n```\n\ne.g.\n\n```properties\nios.plistInject=\u003ckey\u003eGADApplicationIdentifier\u003c/key\u003e\u003cstring\u003eca-app-pub-394025xxxxxxxx\u003c/string\u003e\n```\n\n## Android Build Hints\n\nAdd the following to your `android.xapplication` build hint:\n\n```\n\u003cmeta-data android:name=\"com.google.android.gms.ads.APPLICATION_ID\" android:value=\"YOUR_APP_ID_HERE\"/\u003e\n```\n\nIf you don't have an Admob App ID, you can create one [here](https://admob.google.com).\n\n## Example Project\n\nSee a basic sample Maven project [here](https://github.com/shannah/fullscreenadstest).\n\n## Build from Source\n\nRequirements:\n\n1. JDK 1.8 or 11\n\nSteps:\n\n1. Clone the repo\n2. `mvn install`\n\nThis will install the lib into your local maven repo.  If you want to use this in your maven project, you may need to adjust the `\u003cversion\u003e` in your app project's dependency to match the `\u003cversion\u003e` in the library pom.xml file.\n\nThis will also build a cn1lib in the common/target directory that you can install into Ant app projects by copying it to the app project's cn1libs directory, and running \"Refresh CN1libs\"","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameone%2Fadmobfullscreen-codenameone","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodenameone%2Fadmobfullscreen-codenameone","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodenameone%2Fadmobfullscreen-codenameone/lists"}