{"id":23784948,"url":"https://github.com/samyak2403/nativeads-recyclerview","last_synced_at":"2025-07-03T03:05:34.759Z","repository":{"id":252563668,"uuid":"840801804","full_name":"samyak2403/NativeAds-Recyclerview","owner":"samyak2403","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-12T10:07:45.000Z","size":443,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-21T10:24:29.757Z","etag":null,"topics":["admob-adapter","admob-ads","admob-demo","admob-native-ads","admob-plugin","admob-sdk"],"latest_commit_sha":null,"homepage":"","language":"Kotlin","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/samyak2403.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":"2024-08-10T18:14:58.000Z","updated_at":"2024-11-18T18:49:14.000Z","dependencies_parsed_at":"2024-08-10T19:59:22.280Z","dependency_job_id":null,"html_url":"https://github.com/samyak2403/NativeAds-Recyclerview","commit_stats":null,"previous_names":["samyak2403/nativeads-recyclerview"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/samyak2403/NativeAds-Recyclerview","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyak2403%2FNativeAds-Recyclerview","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyak2403%2FNativeAds-Recyclerview/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyak2403%2FNativeAds-Recyclerview/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyak2403%2FNativeAds-Recyclerview/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/samyak2403","download_url":"https://codeload.github.com/samyak2403/NativeAds-Recyclerview/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/samyak2403%2FNativeAds-Recyclerview/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263250603,"owners_count":23437288,"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-adapter","admob-ads","admob-demo","admob-native-ads","admob-plugin","admob-sdk"],"created_at":"2025-01-01T13:13:29.380Z","updated_at":"2025-07-03T03:05:34.741Z","avatar_url":"https://github.com/samyak2403.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"## NativeAds RecyclerView Library\n\u003eAndroid library for add Naive Ads into RecyclerView list items.\n\n![pv](https://pageview.vercel.app/?github_user=NativeAds-Recyclerview)\n\n## Update\n- Updated to the latest version of Admob SDK\n- Supported on Android SDK 30, 31, 32, 33, 34\n- Updated RVAdapter to Kotlin\n\n## For developer\nTo make your app can earn more revengue ` by Showing Native Ads into RecyclerView list items `. Please check more details from below.\n\n## How to use NaiveAds RecyclerView Library\nStep 1. Add the JitPack repository to your build file \n  ```\n  allprojects {\n\t\trepositories {\n\t\t\t...\n\t\t\tmaven { url 'https://jitpack.io' }\n\t\t}\n\t}\n  ```\n  If you are using Android Studio Bumble bee or latest version, add JitPack repository to `settings.gradle` file.\n  ```\n  dependencyResolutionManagement {\n    repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)\n    repositories {\n        google()\n        mavenCentral()\n        maven { url 'https://jitpack.io' } // add this line\n    }\n}\n```\n  \n  \nStep 2. Add the dependency\n  \n\n\tdependencies {\n\t       implementation 'com.github.samyak2403:NativeAds-Recyclerview:1.0'\n\t}\n\n\nStep 3. Add below code to setup your Adapter by Kotlin.\n  \n\n        recyclerView.layoutManager = LinearLayoutManager(this@MainActivity)\n            val admobNativeAdAdapter: AdmobNativeAdAdapter = AdmobNativeAdAdapter.Builder\n                .with(\n                    \"ca-app-pub-3940256099942544/2247696110\",  //Create a native ad id from admob console\n                    myAdapter,  //The adapter you would normally set to your recyClerView\n                    \"medium\" //Set it with \"small\",\"medium\" or \"custom\"\n                )\n                .adItemIterval(2) //native ad repeating interval in the recyclerview\n                .build()\n            recyclerView.adapter = admobNativeAdAdapter\n           \n Add below code to setup your Adapter by Java.\n  \n\n      AdmobNativeAdAdapter admobNativeAdAdapter=AdmobNativeAdAdapter.Builder\n\t      .with(\n\t\t      \"ca-app-pub-3940256099942544/2247696110\",//Create a native ad id from admob console\n\t\t      myAdapter,//The adapter you would normally set to your recyClerView\n\t\t      \"medium\"//Set it with \"small\",\"medium\" or \"custom\"\n\t\t      )\n\t    .adItemIterval(2)//native ad repeating interval in the recyclerview\n\t    .build();\n    recyclerView.setAdapter(admobNativeAdAdapter);//set your RecyclerView adapter with the admobNativeAdAdapter\n\n## Demo\nNative ads Small Layout |  Native ads Medium Layout\n:-------------------------:|:-------------------------:\n\u003cimg src=\"1.png\" width=\"250px\"/\u003e  |  \u003cimg src=\"2.png\" width=\"250px\"/\u003e \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyak2403%2Fnativeads-recyclerview","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsamyak2403%2Fnativeads-recyclerview","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsamyak2403%2Fnativeads-recyclerview/lists"}