Is it possible to place ads on a HTML 5 game

Get help using Construct 2

Post » Mon Sep 05, 2016 4:23 pm

Hi so I have my HTML 5 games which are on my website with an iframe, I have adverts on my webpage but I would like adverts in the actual html game. Is this possible anyone
Image
B
29
S
8
G
1
Posts: 120
Reputation: 2,837

Post » Wed Sep 07, 2016 6:21 pm

Yea, you can just load image via URL for the Sprite object.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Sep 23, 2016 8:20 pm

gumshoe2029 wrote:Yea, you can just load image via URL for the Sprite object.


Hi thanks for the reply do you have an example of this?
Image
B
29
S
8
G
1
Posts: 120
Reputation: 2,837

Post » Wed Sep 28, 2016 3:22 pm

https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Wed Oct 05, 2016 8:26 pm

gumshoe2029 wrote:https://drive.google.com/open?id=0B-xiqKTWbBrfOTd6X1NIU1B3dDA


Thanks for the capx, How do you get the url of the ad though?
Image
B
29
S
8
G
1
Posts: 120
Reputation: 2,837

Post » Fri Oct 07, 2016 4:18 pm

right click on the add an choose Copy Link (or image) location? Or you can look into the HTML with a debugger.
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
23
S
6
G
1
Posts: 1,419
Reputation: 4,857

Post » Fri Oct 07, 2016 7:18 pm

In game ads don't work that way.
You need an ad service, some script provided by the service, and a way to display html content within the game, such as the iframe, or div plugs.
Image ImageImage
B
172
S
50
G
182
Posts: 8,439
Reputation: 115,097


Return to How do I....?

Who is online

Users browsing this forum: babymumu, draiza, R0J0hound and 7 guests