{"id":16085127,"url":"https://github.com/MrZak-dev/defold-facebook-ads","last_synced_at":"2025-10-23T01:31:33.055Z","repository":{"id":174461771,"uuid":"277099963","full_name":"MrZak-dev/defold-facebook-ads","owner":"MrZak-dev","description":"Defold extension for Facebook ads (Android)","archived":false,"fork":false,"pushed_at":"2022-03-19T12:01:02.000Z","size":3247,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-09T20:53:13.395Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MrZak-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.txt","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},"funding":{"github":null,"patreon":null,"open_collective":null,"ko_fi":"mrzak","tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2020-07-04T11:50:56.000Z","updated_at":"2024-08-29T12:58:01.000Z","dependencies_parsed_at":"2023-07-27T05:30:56.234Z","dependency_job_id":null,"html_url":"https://github.com/MrZak-dev/defold-facebook-ads","commit_stats":null,"previous_names":["mrzak-dev/defold-facebook-ads"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/MrZak-dev/defold-facebook-ads","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrZak-dev%2Fdefold-facebook-ads","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrZak-dev%2Fdefold-facebook-ads/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrZak-dev%2Fdefold-facebook-ads/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrZak-dev%2Fdefold-facebook-ads/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MrZak-dev","download_url":"https://codeload.github.com/MrZak-dev/defold-facebook-ads/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MrZak-dev%2Fdefold-facebook-ads/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280546390,"owners_count":26348719,"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","status":"online","status_checked_at":"2025-10-22T02:00:06.515Z","response_time":63,"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":"2024-10-09T13:01:51.212Z","updated_at":"2025-10-23T01:31:32.584Z","avatar_url":"https://github.com/MrZak-dev.png","language":"C++","funding_links":["https://ko-fi.com/mrzak"],"categories":["Libraries"],"sub_categories":["Programming Language"],"readme":"# Defold Facebook Ads (Audience Network) extension (Android)\n\n![demo](example.png)\n\n## Installation\nTo use this library in your Defold project, add the following URL to your `game.project` dependencies:\n\nhttps://github.com/MrZak-dev/defold-facebook-ads/archive/master.zip\n\n\n## API reference\n\n```lua\n\nFacebookAds.initialize() --Initialize the extension\n\nFacebookAds.load_interstitial(placememnt_id) -- load Interstitial Ad,  string : placememnt_id\nFacebookAds.load_rewarded_video(placememnt_id) -- load Rewarded Video Ad,  string : placememnt_id\nFacebookAds.load_banner(placememnt_id) -- load Banner Ad,  string : placememnt_id\n\nFacebookAds.show_interstitial() -- Display loaded Interstitial Ad\nFacebookAds.show_rewarded_video() -- Display loaded Rewarded Video Ad\n\nFacebookAds.show_banner() -- Display loaded Banner Ad\nFacebookAds.hide_banner() -- Hide loaded Banner Ad\n\nFacebookAds.is_interstitial_loaded() -- Returns boolean , indicates if interstitial ad is loaded , returns True if Interstitial ad is LOADED and READY\nFacebookAds.is_rewarded_loaded() -- Returns boolean , indicates if Rewarded video ad is loaded\nFacebookAds.is_banner_loaded() -- Returns boolean , indicates if Banner ad is loaded\n\nFacebookAds.is_interstitial_dismissed() -- Returns true if The Interstitial is dismissed by the user , This will be set to false after each show_interstitial() call\nFacebookAds.is_rewarded_dismissed() -- Returns true if The Rewarded Video is dismissed (NOT COMPLETED) by the user , This will be set to false after each show_rewarded_video() call\nFacebookAds.is_rewarded_completed() -- Returns true if The Rewarded Video is dismissed (COMPLETED/REWARD) by the user , This will be set to false after each show_rewarded_video() call\n\n```\n\n## Example\n\n```lua\nfunction init(self)\n\n\tif FacebookAds ~= nil then\n\t\tFacebookAds.initialize()\n\t\tFacebookAds.load_interstitial(\"your_placement_id\")\n        FacebookAds.load_rewarded_video(\"your_placement_id\")\n        FacebookAds.load_banner(\"your_placement_id\")\n    end\nend\n\nfunction on_message(self, message_id, message)\n\t\n\tif message_id == hash(\"show_interstitial\") then\n\t\tif FacebookAds ~= nil then\n\t\t\tFacebookAds.show_interstitial()\n\t\tend\n\tend\n\n\tif message_id == hash(\"show_rewarded\") then\n\t\tif FacebookAds ~= nil then\n\t\t\tFacebookAds.show_rewarded_video()\n\t\tend\n    end\nend\n\n```\n\n## Debugging\n\nIn order to make it easier to debug this extension, use `adb logcat` command-line tool, The extension messages are under `defold` Tag.\n\n\n```bash\n    adb logcat -v color defold *:S\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMrZak-dev%2Fdefold-facebook-ads","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FMrZak-dev%2Fdefold-facebook-ads","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FMrZak-dev%2Fdefold-facebook-ads/lists"}