How to Put Ads on Facebook App

Discussion and feedback on Construct 2

Post » Fri Nov 21, 2014 1:20 am

Based on the title I'm assuming you already know my question. I'm working on app for facebook and I wanted to know how do I add ads on it? Thanks in advance.
B
7
S
1
Posts: 25
Reputation: 523

Post » Fri Nov 21, 2014 1:27 pm

I am also interested in this matter!
B
12
S
2
Posts: 70
Reputation: 1,074

Post » Fri Nov 21, 2014 3:49 pm

Facebook has an ads api but that covers posting ads on facebook itself for your app. What you want is to place ads from a third party in your app? I think there are some nice plugins over in the completed plugins forum to interface an ad program like Adsense. If you have a particular person looking to place an ad though, that's simple. Add the browser plugin to your app first. Then ad a sprite plugin and use the ad image for the sprite. Now inside of an every tick event, add a set opacity to 50 for that particular sprite. Now ad a condition below the on tick event that sets the opacity to 100 when the mouse is over it. Ad a mouse on click event so when the user clicks the sprite the browser plugin will open the advertisers link in a new browser window. I'd offer an example capx but I'm away from my computer so I can't access c2 right now, sorry.
www.h1k3.tech

We are here for you!
B
87
S
23
G
16
Posts: 715
Reputation: 16,835

Post » Sat Nov 22, 2014 11:03 pm

@lanceal thank you so much, I'm still kind of confused so I'll wait for your capx, so that I can use it as an example.
B
7
S
1
Posts: 25
Reputation: 523

Post » Tue Nov 25, 2014 12:09 am

@frenzyace and @clockworkmonster

Here's an example capx for you.
https://www.facebook.com/download/1588930538002322/ad_example.capx
www.h1k3.tech

We are here for you!
B
87
S
23
G
16
Posts: 715
Reputation: 16,835

Post » Tue Nov 25, 2014 12:25 pm

@lanceal

Thanks for the hint! unfortunately, link is broken...
B
12
S
2
Posts: 70
Reputation: 1,074

Post » Tue Nov 25, 2014 5:44 pm

Ohh my goodness, I'm sorry I had posted that in a facebook group so you need to be a member. I'll upload to my own server today and repost the link.
www.h1k3.tech

We are here for you!
B
87
S
23
G
16
Posts: 715
Reputation: 16,835

Post » Wed Nov 26, 2014 12:54 am

@lanceal thanks man
B
7
S
1
Posts: 25
Reputation: 523

Post » Wed Nov 26, 2014 1:34 am

@frenzyace and @clockworkmonster

http://lockegames.com/games/ad_example.capx
www.h1k3.tech

We are here for you!
B
87
S
23
G
16
Posts: 715
Reputation: 16,835

Post » Wed Nov 26, 2014 10:30 am

@lanceal

Thanks!
B
12
S
2
Posts: 70
Reputation: 1,074


Return to Construct 2 General

Who is online

Users browsing this forum: Yahoo [Bot] and 17 guests