{"id":17982618,"url":"https://github.com/parksanggwon/tedadmobdialog","last_synced_at":"2025-03-25T19:31:30.322Z","repository":{"id":94901973,"uuid":"131327931","full_name":"ParkSangGwon/TedAdmobDialog","owner":"ParkSangGwon","description":"[Android]BackPress Ad Dialog for Admob","archived":false,"fork":false,"pushed_at":"2020-12-28T16:06:02.000Z","size":142,"stargazers_count":37,"open_issues_count":3,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T17:38:13.371Z","etag":null,"topics":["admob","android"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ParkSangGwon.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-27T17:48:04.000Z","updated_at":"2023-01-25T00:38:27.000Z","dependencies_parsed_at":"2023-05-07T00:06:23.836Z","dependency_job_id":null,"html_url":"https://github.com/ParkSangGwon/TedAdmobDialog","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/ParkSangGwon%2FTedAdmobDialog","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParkSangGwon%2FTedAdmobDialog/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParkSangGwon%2FTedAdmobDialog/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ParkSangGwon%2FTedAdmobDialog/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ParkSangGwon","download_url":"https://codeload.github.com/ParkSangGwon/TedAdmobDialog/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245530233,"owners_count":20630513,"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","android"],"created_at":"2024-10-29T18:14:39.292Z","updated_at":"2025-03-25T19:31:30.312Z","avatar_url":"https://github.com/ParkSangGwon.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# What is TedAdmobDialog?\u003cbr/\u003e\u003cbr/\u003e\n\n## English\n**TedAdmobDialog** come from [TedAdHelper](https://github.com/ParkSangGwon/TedAdHelper)\u003cbr/\u003e\nUntil then, we could only do [Mediation](https://www.facebook.com/help/audiencenetwork/1744424245771424?helpref=hc_fnav) through [TedAdHelper](https://github.com/ParkSangGwon/TedAdHelper).\u003cbr/\u003e\nBecoz Admob did not support Native ad type.\u003cbr/\u003e\nBut nowdays Admob support Native ad type.\u003cbr/\u003e\n\nBut we still need back press dialog like this.\u003cbr/\u003e\n![Screenshot](https://github.com/ParkSangGwon/TedAdHelper/blob/master/Screenshot_backpress_en_1.jpeg?raw=true) \u003cbr/\u003e\u003cbr/\u003e\n\nWhen you use TedAdHelper's back press dialog, you have need request and loading advertise time.\u003cbr/\u003e\nBecause the request is made at the same time the dialog is shown.\u003cbr/\u003e\n\n**TedAdmobDialog** support pre advertise request.\u003cbr/\u003e\nSo you can see the dialog and show ads at the same time.\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Korean\n**TedAdmobDialog**는 [TedAdHelper](https://github.com/ParkSangGwon/TedAdHelper)에서부터 태어난 라이브러리입니다.\u003cbr/\u003e\n이전까지는 [TedAdHelper](https://github.com/ParkSangGwon/TedAdHelper)를 통해 [미디에이션](https://www.facebook.com/help/audiencenetwork/1744424245771424?helpref=hc_fnav)을 해주었습니다.\u003cbr/\u003e\n왜냐하면 이전까지 Admob에서는 Native 광고에 대해서는 미디에이션을 지원하지 않았었기 때문입니다.\u003cbr/\u003e\n하지만 지금은 Admob에서 Native 광고에 대해서도 미디에이션을 지원합니다.\u003cbr/\u003e\u003cbr/\u003e\n\n하지만 뒤로가기를 눌렀을때 팝업형식의 Dialog로 나오게 하는것은 여전히 필요합니다.\u003cbr/\u003e\n![Screenshot](https://github.com/ParkSangGwon/TedAdHelper/blob/master/Screenshot_backpress_ko_1.jpeg?raw=true)\u003cbr/\u003e\n\nTedAdHelper에서는 다이어로그가 보여짐과 동시에 광고를 요청하기때문에 광고가 표시되기까지는 시차가 발생했었습니다.\u003cbr/\u003e\n**TedAdmobDialog**는 미리 광고를 로딩해두고 Dialog가 실행될때 바로 광고를 보여줄 수 있도록 지원합니다.\u003cbr/\u003e\n\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Mediation\n![Screenshot](https://enhanceco.files.wordpress.com/2018/01/mediate.png?w=656)\u003cbr/\u003e\n\nI recommend you have to use mediation.\u003cbr/\u003e\nIf you use mediation, you can earn more money using highest eCPM network.\u003cbr/\u003e\nSee this document.\u003cbr/\u003e\nhttps://developers.google.com/admob/android/mediation\u003cbr/\u003e\nI use admob, facebook audience network network.\u003cbr/\u003e\n\n\n\n\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\u003cbr/\u003e\n\n## Setup\n\n\n### Gradle\n[ ![Download](https://api.bintray.com/packages/tkdrnjs0912/maven/tedadmobdialog/images/download.svg) ](https://bintray.com/tkdrnjs0912/maven/tedadmobdialog/_latestVersion)\n```javascript\ndependencies {\n    implementation 'gun0912.ted:tedadmobdialog:x.y.z'\n}\n\n```\n\n\u003cbr/\u003e\u003cbr/\u003e\n\n\n\n\n## How to use\n\n\n### 0. Type\nYou can use 2 type advertise\n- TedAdmobDialog.AdType.NATIVE: [Advanced Native](https://developers.google.com/admob/android/native-advanced)\n- TedAdmobDialog.AdType.BANNER: [MEDIUM_RECTANGLE Banner](https://developers.google.com/admob/android/banner)\u003cbr/\u003e\n\n\n### 1. Pre loading\n- Make your TedAdmobDialog instance.\n- And pre load advertise using `TedAdmobDialog::loadAd()`\n```java\n nativeTedAdmobDialog = new TedAdmobDialog.Builder(this, TedAdmobDialog.AdType.NATIVE, AD_TEST_KEY_NATIVE)\n         .setOnBackPressListener(new OnBackPressListener() {\n             @Override\n             public void onReviewClick() {\n\n             }\n\n             @Override\n             public void onFinish() {\n                 finish();\n             }\n\n             @Override\n             public void onAdShow() {\n                 nativeTedAdmobDialog.loadAd();\n             }\n         })\n         .create();\n\n nativeTedAdmobDialog.loadAd();\n\n```\n- When advertise shown, pre load again in `onAdShow()`\n\n\n### 2. Show TedAdmobDialog\n- When you need to show advertise, call `TedAdmobDialog::show()`\n\n```java\nindViewById(R.id.btn_native).setOnClickListener(new View.OnClickListener() {\n   @Override\n   public void onClick(View v) {\n       nativeTedAdmobDialog.show();\n   }\n});\n```\n\n## Customize\n- `setStartMute()`: If you want muted advertise, call this function in builder.\n- `showReviewButton()`: Dialog include `review` button. you can control review button's visibility.\n\n\n## License \n ```code\nCopyright 2018 Ted Park\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparksanggwon%2Ftedadmobdialog","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fparksanggwon%2Ftedadmobdialog","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fparksanggwon%2Ftedadmobdialog/lists"}