{"id":18885660,"url":"https://github.com/nstudio/nativescript-smart-adserver","last_synced_at":"2026-02-23T08:30:26.922Z","repository":{"id":57132271,"uuid":"123317828","full_name":"nstudio/nativescript-smart-adserver","owner":"nstudio","description":"SmartAdserver SDK implementation for NativeScript. Monetize your app with the power of smart ads from SmartAdserver! :money_with_wings: :moneybag:","archived":false,"fork":false,"pushed_at":"2018-08-02T09:56:26.000Z","size":19224,"stargazers_count":0,"open_issues_count":1,"forks_count":1,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-01-31T13:04:09.088Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nstudio.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":"2018-02-28T17:24:11.000Z","updated_at":"2018-08-02T09:56:27.000Z","dependencies_parsed_at":"2022-08-24T23:00:54.934Z","dependency_job_id":null,"html_url":"https://github.com/nstudio/nativescript-smart-adserver","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/nstudio%2Fnativescript-smart-adserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-smart-adserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-smart-adserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nstudio%2Fnativescript-smart-adserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nstudio","download_url":"https://codeload.github.com/nstudio/nativescript-smart-adserver/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239858993,"owners_count":19708857,"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":[],"created_at":"2024-11-08T07:20:40.784Z","updated_at":"2026-02-23T08:30:26.242Z","avatar_url":"https://github.com/nstudio.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nativescript-smart-adserver\n\nNote: Only the Banner module is currently available in this plugin.\n\nWorks on Android and iOS\n\n## Screenshots\n\n### Android\n\n\u003cimg src=\"https://github.com/nstudio/nativescript-smart-adserver/blob/master/assets/android-ss.jpeg?raw=true\" height=\"640\" \u003e\n\n### iOS\n\n\u003cimg src=\"https://github.com/nstudio/nativescript-smart-adserver/blob/master/assets/ios-ss.png?raw=true\" height=\"640\" \u003e\n\n## Installation\n\n```javascript\ntns plugin add @nstudio/nativescript-smart-adserver\n```\n\n## Usage\n\nTo use this plugin, you will need Site ID, Base URL of your site, Page ID and Format ID from SmartAdServer.\n\n### TypeScript\n\nIn app.ts you have to initialize the plugin\n\n```js\nimport { SmartAdBanner } from \"@nstudio/nativescript-smart-adserver\";\n\nSmartAdBanner.init(104808, \"https://mobile.smartadserver.com\");\n```\n\nThen in the xml file, include this namespace on the parent component of where you\nwant to place the AdView.\n\n```xml\nxmlns:sas=\"@nstudio/nativescript-smart-adserver\"\n```\n\nNow you can create smart ad banner like this,\n\n```xml\n\u003csas:SmartAdBanner height=\"150\"\n        pageId=\"663262\"\n        formatId=\"15140\"\n        autoRefresh=\"true\" /\u003e\n```\n\n### JavaScript\n\nSame as Typescript, but the import statement will be\n\n```js\nconst SmartAdBanner = require(\"@nstudio/nativescript-smart-adserver\").SmartAdBanner;\n```\n\n### Angular\n\nIn main.ts you have to initialize the plugin\n\n```js\nimport { SmartAdBanner } from \"@nstudio/nativescript-smart-adserver\";\n\nSmartAdBanner.init(104808, \"https://mobile.smartadserver.com\");\n```\n\nIn the module where you want to add Ads (eg, app.module.ts), import it like this\\\n\n```js\nimport { NativescriptSmartAdBannerModule } from \"@nstudio/nativescript-smart-adserver/angular\";\n```\n\nNow add `NativescriptSmartAdBannerModule` to the imports array of that module\n\nYou can now use the banner using this markup\n\n```xml\n\u003cSmartAdBanner height=\"150\"\n        pageId=\"663262\"\n        formatId=\"15140\"\n        autoRefresh=\"true\"\u003e\u003c/SmartAdBanner\u003e\n```\n\n## API\n\nBanner Module API (XML/HTML element Properties)\n\n* pageId - the page id assigned by smart ad server\n* formatId - format id given by smart ad server\n* autoRefresh - specific if the ad should change over time\n\n## License\n\nApache License Version 2.0, January 2004\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstudio%2Fnativescript-smart-adserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnstudio%2Fnativescript-smart-adserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnstudio%2Fnativescript-smart-adserver/lists"}