{"_id":"@ad4game/phaser-a4g","_rev":"5-e7ee32cf5c480587c9c54d29cff8bfa4","name":"@ad4game/phaser-a4g","description":"This is a Phaser HTML5 framework plugin to integrate both Google Adx and A4G video pre-roll ads into your HTML5 games.","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@ad4game/phaser-a4g","author":{"name":"Ad4Game"},"version":"1.0.0","description":"This is a Phaser HTML5 framework plugin to integrate both Google Adx and A4G video pre-roll ads into your HTML5 games.","contributors":[{"name":"Radek Maciaszek","email":"radek@a4g.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/ad4game/phaser-a4g.git"},"licenses":[{"type":"MIT","url":"https://github.com/ad4game/phaser-a4g/raw/master/LICENSE"}],"config":{"name":"phaser-a4g"},"devDependencies":{"grunt":"1.0.x","grunt-banner":"^0.6.0","grunt-contrib-clean":"1.0.x","grunt-contrib-connect":"1.0.x","grunt-contrib-uglify":"2.0.x","phaser":"2.6.2"},"gitHead":"9acdbd0e40a73439a816841c5fbeb373199ca6eb","homepage":"https://github.com/ad4game/phaser-a4g#readme","_id":"@ad4game/phaser-a4g@1.0.0","scripts":{},"_shasum":"7dac557cfde93fbd6ec5f3839601fe31323b9170","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"ad4game","email":"adilet@a4g.com"},"dist":{"shasum":"7dac557cfde93fbd6ec5f3839601fe31323b9170","tarball":"https://registry.npmjs.org/@ad4game/phaser-a4g/-/phaser-a4g-1.0.0.tgz","integrity":"sha512-QFGLQXU0XxqhBuUqUV7I4aqpnL8IvLdx6SXsBW+lXMdaE4tTn1ayugt0JGg9hgU3/BRN6nawV0QukUuHg86Onw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDEipaOFgHMn6uvTc1LA0nVjILb7xDKfNnk5q5BAPqUkAiA8UST97wT4D3+YWOKlmlhm0cElAtY4QgkSHSc69B0sdg=="}]},"maintainers":[{"name":"ad4game","email":"adilet@a4g.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/phaser-a4g-1.0.0.tgz_1493889619352_0.5341021178755909"}},"1.0.1":{"name":"@ad4game/phaser-a4g","author":{"name":"Ad4Game"},"version":"1.0.1","description":"This is a Phaser HTML5 framework plugin to integrate both Google Adx and A4G video pre-roll ads into your HTML5 games.","contributors":[{"name":"Radek Maciaszek","email":"radek@a4g.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/ad4game/phaser-a4g.git"},"licenses":[{"type":"MIT","url":"https://github.com/ad4game/phaser-a4g/raw/master/LICENSE"}],"config":{"name":"phaser-a4g"},"devDependencies":{"phaser":"2.6.2"},"gitHead":"17516f82d8f7d9fdb1f5ec8782740f0e52d4533c","homepage":"https://github.com/ad4game/phaser-a4g#readme","_id":"@ad4game/phaser-a4g@1.0.1","scripts":{},"_shasum":"1bb8224b1c760ffa936903d5d50fa920acd1e119","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"ad4game","email":"devops@a4g.com"},"dist":{"shasum":"1bb8224b1c760ffa936903d5d50fa920acd1e119","tarball":"https://registry.npmjs.org/@ad4game/phaser-a4g/-/phaser-a4g-1.0.1.tgz","integrity":"sha512-aWRDn0xb82bcHgWE9kBNgMTkNY4616vxtltFcr7LJKreDjBwjFibbkzywCdAte/fcLWWhY98g3/rCcfj72FrmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGUPP1MtPxTZFssxUScGCzijfD3d7Dlw1Z45oRdy8hvgAiEA/sTv33ABLefbu4u5EV2a2i5Dff+OBpj9klOpWjXfZac="}]},"maintainers":[{"name":"ad4game","email":"adilet@a4g.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/phaser-a4g-1.0.1.tgz_1493921103354_0.9967114273458719"}},"1.0.2":{"name":"@ad4game/phaser-a4g","author":{"name":"Ad4Game"},"version":"1.0.2","description":"This is a Phaser HTML5 framework plugin to integrate both Google Adx and A4G video pre-roll ads into your HTML5 games.","contributors":[{"name":"Radek Maciaszek","email":"radek@a4g.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/ad4game/phaser-a4g.git"},"licenses":[{"type":"MIT","url":"https://github.com/ad4game/phaser-a4g/raw/master/LICENSE"}],"config":{"name":"phaser-a4g"},"devDependencies":{"phaser":"2.6.2"},"gitHead":"116eccab83e095d3eebfc0442c828b0f7fc6bf5c","homepage":"https://github.com/ad4game/phaser-a4g#readme","_id":"@ad4game/phaser-a4g@1.0.2","scripts":{},"_shasum":"5dc86e03f624a049756d7c6f55216715a147f8df","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"ad4game","email":"devops@a4g.com"},"dist":{"shasum":"5dc86e03f624a049756d7c6f55216715a147f8df","tarball":"https://registry.npmjs.org/@ad4game/phaser-a4g/-/phaser-a4g-1.0.2.tgz","integrity":"sha512-ZyBjBv51c3/MERH0N++dUWFf730X6eXmgafxUz3DXjZ8yxDws/m9RirdvuXB4JQaPKwf76bVtjaxMhdBrV0JsA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBv14Y40ac5L9Y0ihkQNA+e0nhndgISuUoX81PjkXgq5AiAt4Ra7n4j7RgYjJ2ssVUEo8dT1/mXK9A2Zc5Pe4i/xew=="}]},"maintainers":[{"name":"ad4game","email":"adilet@a4g.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/phaser-a4g-1.0.2.tgz_1493921484056_0.7948056922759861"}},"1.0.3":{"name":"@ad4game/phaser-a4g","author":{"name":"Ad4Game"},"version":"1.0.3","description":"This is a Phaser HTML5 framework plugin to integrate both Google Adx and A4G video pre-roll ads into your HTML5 games.","main":"index.js","contributors":[{"name":"Radek Maciaszek","email":"radek@a4g.com"}],"repository":{"type":"git","url":"git+ssh://git@github.com/ad4game/phaser-a4g.git"},"keywords":["phaser","a4g","ad"],"licenses":[{"type":"MIT","url":"https://github.com/ad4game/phaser-a4g/raw/master/LICENSE"}],"homepage":"https://github.com/ad4game/phaser-a4g#readme","config":{"name":"phaser-a4g"},"devDependencies":{"phaser":"^2.6.2"},"gitHead":"80ccf19329eec6aaa0fe0131972013327f930aab","_id":"@ad4game/phaser-a4g@1.0.3","scripts":{},"_shasum":"4ef83c45c524638bd44858d66dec640148b166c5","_from":".","_npmVersion":"3.10.6","_nodeVersion":"6.3.0","_npmUser":{"name":"ad4game","email":"devops@a4g.com"},"dist":{"shasum":"4ef83c45c524638bd44858d66dec640148b166c5","tarball":"https://registry.npmjs.org/@ad4game/phaser-a4g/-/phaser-a4g-1.0.3.tgz","integrity":"sha512-q74lRN3jE+VtyGU1/Jv2ufn/oQSh1pbOL5zsJ6XXvSFQgfVPqkJUOdad6IRbH49L1mAcadfUj1ePnkGJX2wnpw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFH9dqGKICqmaRcPHNJgTP6IIBIh4YtH4EBj7pca92Q1AiB77rJreLEV46iyA8rI38N/v3DpdrxQa4obTnBpYjP4KQ=="}]},"maintainers":[{"name":"ad4game","email":"adilet@a4g.com"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/phaser-a4g-1.0.3.tgz_1493978189460_0.38501753681339324"}}},"readme":"This is a Phaser HTML5 framework plugin to integrate both Google Adx and A4G video pre-roll ads into your HTML5 games.\n\nWhy we've created it and the target audience:\n* We love games, especially the HTML5 flavour.\n* We have created this plugin to help our existing and future customers monetise their Phaser games.\n* All of our HTML5 publishers, who tried video pre-roll, generated higher revenues.\n* Why AdX and not Adsense? Adx is paid by CPM and should generate better profits.\n\nA4G Demo usage\n================\n\nThe game from this github repository shows how a video pre-roll ad can be integrated into HTML5 framework Phaser game. \nSee a working demo showing a video pre-roll: http://xmmorpg.com/phaser-a4g/\n\nIntegration steps:\n* First include `a4g-ad-plugin.js` into your codebase.\n* Then create the A4gPlugin:\n\n```\ngame.a4gPlugin = game.plugins.add(A4gPlugin.configure({\n        zone: YOUR_ZONE_ID\n    }));\n```\n* Whenever you want to show an ad within your game just call `showAd()` function. \nTypically game developers call this function on the beginning of the game and between the levels. \n\n```\ngame.a4gPlugin.showAd();\n```\n\nIn order to integrate this plugin you will need `YOUR_ZONE_ID`. Unless you are an existing customer, please sign-up as a publisher / website at: http://www.a4g.com/#get-contacted and add a message saying that you are signing up for a Phaser HTML5 game.\n\nNote: Adx has rigorous requirements to join. We will help you with the set-up process to make it as smooth as possible.\n\nNPM\n=====================\n\nYou can get the lates NPM from here: https://www.npmjs.com/package/@ad4game/phaser-a4g\n```\nnpm install @ad4game/phaser-a4g --save-dev\n```\n\nA4g Phaser Plugin API\n=====================\n\n* `A4gPlugin.configure(config)` creates preconfigured A4gPhaser plugin. It takes 1 parameter, configuration.\nConfiguration is a regular JavaScript object, which can take following settings:\n  * `zone` zone id from A4g (required)\n  * `adTypes` array of ad types that can be displayed. Available values are `['video', 'skippablevideo', 'standardvideo', 'text', 'image']`, default value is `['video']` which is equivalent to `standardvideo_skippablevideo`, see required params / ad_type for more info: https://support.google.com/adsense/answer/3112148\n  * `skipOffset` number of seconds when ad can be skipped, default value is `10`\n  * `fallbackZone` zone id which could be used in case the video cannot be loaded, by default not set. In case the Adx ad will not be loaded we will load a replacement ad (usually with a lower CPM). This could be useful if Adx fills a very small percentage of requests.\n  * `timeout` number of milliseconds which indicate ad timeout. It serve for cases if something would go wrong, default value is 35000\n  * `pauseGame` boolean indicates if game should be paused while ad is shown, default value is true\n  * `unpauseGameDelay` number of milliseconds to wait for unpausing game after ad is hidden (will be used only if `pauseGame` set to true), default value is 500 \n* `A4gPlugin.prototype.showAd()` shows an ad\n* `A4gPlugin.prototype.onAdShown` `Phaser.Signal` would be triggered when ad shown\n* `A4gPlugin.prototype.onAdComplete` `Phaser.Signal` would be triggered when ad showing is completed\n* You can fully control the styling of the div showing the ad. Our publishers often display games in an iframe, which autoscales to 100%.\n\nReferences:\n* http://phaser.io/\n* https://github.com/photonstorm/phaser\n","maintainers":[{"name":"ad4game","email":"adilet@a4g.com"}],"time":{"modified":"2022-06-12T14:16:57.625Z","created":"2017-05-04T09:20:20.878Z","1.0.0":"2017-05-04T09:20:20.878Z","1.0.1":"2017-05-04T18:05:05.806Z","1.0.2":"2017-05-04T18:11:26.366Z","1.0.3":"2017-05-05T09:56:30.709Z"},"homepage":"https://github.com/ad4game/phaser-a4g#readme","repository":{"type":"git","url":"git+ssh://git@github.com/ad4game/phaser-a4g.git"},"contributors":[{"name":"Radek Maciaszek","email":"radek@a4g.com"}],"author":{"name":"Ad4Game"},"readmeFilename":"README.md","keywords":["phaser","a4g","ad"]}