I did have to make a change for something I missed in the docs. I added the pause and resume functions to the events required in the configuration and moved the configuration block to the bottom of the page.
All you should need to do is set
var GAMEMONETIZE_GAME_ID = "your_game_id_here";
When you invoke the Banner Ad action, it will show an ad. If you'd like it to work with interstitials as well (or if it doesn't work), let us know!
adent42Key Master, Head Chef, Executive Chef, Member, PROPosts: 3,159
edited December 2021
I've updated the gist with a fix and an enhancement.
First, in a copy/paste error, I repeated the pause function when the ad network wanted the game to unpause, meaning if the ads were shown, the game would be stuck on pause.
Second, I added support for interstitial ads since, despite the API call being showBanner, the ads they show are really interstitials and that's what I think @pinkio75 is expecting in his game as well.
Finally, a testing note. Be sure to disable ad block while testing. Adblock blocks their ads and that threw me off for a little bit during testing.
Comments
Hey anyone have published HTML games on GameMonetize.com
here the docs about SDK integration:
Someone can help me? Thanks in advance.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
Looking here at their HTML5 SDK:
https://github.com/MonetizeGame/GameMonetize.com-SDK
Support looks relatively easy. Inside sample-index.html
Put the config script information just before </head> (filled in with your values, of course).
Just after
and before
add the following function:
Hope that helps!
@uptimistik @adriangomez @adent42
someone in the spare time could make this?
I need just for Advertisement launch.
Thanks in advance.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
@pinkio75
I had some spare time waiting for a meeting this morning, so here's the completed index.html file, though I haven't tested it yet:
https://gist.github.com/tant42/3a3986f7b913dbe170f770e21eb3c874
I did have to make a change for something I missed in the docs. I added the pause and resume functions to the events required in the configuration and moved the configuration block to the bottom of the page.
All you should need to do is set
When you invoke the Banner Ad action, it will show an ad. If you'd like it to work with interstitials as well (or if it doesn't work), let us know!
@adent42 Not working.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
I've updated the gist with a fix and an enhancement.
First, in a copy/paste error, I repeated the pause function when the ad network wanted the game to unpause, meaning if the ads were shown, the game would be stuck on pause.
Second, I added support for interstitial ads since, despite the API call being showBanner, the ads they show are really interstitials and that's what I think @pinkio75 is expecting in his game as well.
Finally, a testing note. Be sure to disable ad block while testing. Adblock blocks their ads and that threw me off for a little bit during testing.
Ok thank you @adent42 the game is in waiting for review now.
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮
Hy GS community, my games are live on Game Monetize with their SDK! thanks for this to @adent42
✮My Web Site✮ ✮My Full Games On Sale✮ ✮Follow Me✮ ✮My Video Channel✮ ✮Contact Me To Buy My GS Games✮