[PLUGIN] Clay.io Advertisements & Cross Promotion

0 favourites
From the Asset Store
In this fun game you must try to complete the path for the car to pass before time runs out, agility and reasoning are a
  • austin

    lol, i forgot about adblock. i apologize haha. it works now :)

  • Hi again, I tried the plugin with Windows 8 exporter, and I found that my game crashed. It said this line of code did it:      

    this.advertisement['hide'](); // TODO: Should probably actually remove this element...

    this.advertisement = null;

    When I removed this line of code, it didn't crash. However, no ads are showing :(

    Also I integrated clay.io with Windows 8 Visual Studio before doing all this.

  • MadScientist - it's updated once a day at midnight. It's not completely based on CPC/PPC, we go through CPMStar which is a mix of CPC, CPA (actions) and CPM (impressions)

    SpacialPumpkin I've updated the main Clay.io plugin with what *should* fix this. If it didn't, let me know and email me the console logs in VS - austintfr@clay.io

  • <img src="smileys/smiley29.gif" border="0" align="middle" /> <img src="smileys/smiley29.gif" border="0" align="middle" /> <img src="smileys/smiley29.gif" border="0" align="middle" /> <img src="smileys/smiley29.gif" border="0" align="middle" />

    I was out of all this for a long time and dont understand this words: CPC, CPA, CPM

    Coins per click, coins per action, coins per M???

  • Cost per click, Cost per Action, Cost for Mil (thousand impressions) :)

  • Updated the plugin with scaling, let me know what you think :)

    I re-downloaded it again today and tossed it in to see what happens. Unfortunately, it still isn't placed properly. I realize its done through a modal, but it would be nice to be able to treat it like a sprite--ie, have it in the game world, properly z-ordered and scaled, and have it stay where it should with zooming. Building it into the game world like a billboard (in non-dishonest ways!) would be the holy grail, I believe.

    Current action: it isn't placed correctly for me regardless of zoom level, it moves around when zooming, jumps a little in place during scrolling. In any case, no option puts the ad where I placed it in the editor. This is possibly because my game is largely played at about 80% zoom, but zooming to 100% doesn't fix it, either.

    I'm not even all that worried about the z-ordering, since I would never want the ads obstructed by anything in my case, but the rest is quite important. I really hope to be able to use it some time!

  • I'm not seeing anything at all, either when previewing or when exporting and uploading to Clay.io. In earlier versions, I did see a blank box which said something like 'Ads will not show when previewing', which made sense, but now I see nothing at all.

    I have the Clay.io object added (and working with hi-scores) and have added the ads addon (that's a lot of ad's). I've made sure I have the latest versions of both.

    I assume that all I really need to do is drag the object onto my screen and the ad should show there? I'm not seeing anything. I've tried putting it on it's own layer at the top of the pile just in case it was covered up, but still see nothing.

  • Hi,

    I wanted to test out how this plugin would work so I opened up the Infinite Jumping template and applied the ad object. The ad appears properly when I test the game on a mobile device, but the ad does not appear correctly when testing on the web browser. When I test on the web browser the ad appears around the bottom of the game, but I placed the ad object at the top.

    Please see images below:

    <img src="http://imageshack.us/a/img407/6907/issue1.png" border="0" />

    <img src="http://imageshack.us/a/img607/6372/issue2.png" border="0" />

    Is anyone else experiencing similar issue?

    To recreate the issue simply open the infinite jumping template and apply the ad object.

    Maybe I am doing something wrong?

    Other than this issue, I would like to say thanks for making such a simple ad plugin.


    And here is how it looks like on Newgrounds.com Preview

    <img src="http://img5.imageshack.us/img5/8430/issue3j.png" border="0" />

    I'm not sure why I can't get the ad to be in the right spot regardless of where the game is being played...

  • It's also appearing correctly on my mobile phone, but not at all on PC.

  • Having about the same issues with the positioning here. What I currently do as kind of a workaround is displaying the game in a properly sized iframe (set fullscreen to scale). Then the ad is being displayed at the correct position again.

  • The best I can do for the positioning is be on par with the Construct 2 text-input plugin. The reason being the ads are on a different layer from the game canvas.

    Updated the plugin to fix the positioning issues - they were occurring for games that didn't stretch to full screen. Let me know if that fixes the issues you all were having.

  • Thank you for the update! The problems with the positioning appear to be fixed now. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • I am now seeing it when previewing (with the message that ads don't appear in a preview) and positioning seems fine on mine. Only problem I'm still seeing is that it doesn't work if you upload to Newgrounds, not sure about other places.

  • Would something like this stop the ad moving when you use scale -

    System: Every tick - set position:

    X (ViewportLeft("layer") + ViewportRight("layer"))

    Y (ViewportTop("layer") + ViewportBottom("layer"))

    Obviously you could change the parameters.

    Let me know if this helps, not sure if it will :P

  • The most recent update keeps the ads in the correct place regardless of zoom or movement--I guess it really was the fullscreen thing. It jumps slightly, but that's fine for what it is.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)