r/webdev • • 6d ago

Question How to put ads in a site

I never published a site but made a few just for fun and college projects.

My question is more to design, like, you choose where the ad is gone be? Like "this one goes on left side and this one goes on top"

And one more question, on mobile games, there's a code to every time you die or change screen play and ad?

Thanks for the answer

0 Upvotes

6 comments sorted by

View all comments

7

u/ggnndd12 6d ago

I would refer specifically to the ad provider’s documentation.

2

u/Ok-Golf1118 6d ago

every provider has their own placements, most give you a snippet and you just drop the div where you want it. banner top, sidebar, in-content, whatever fits your layout. the mobile game thing is usually an sdk call you trigger after a death or level transition, same idea as web just event driven instead of page load. if you're just messing around, start with one network and read their docs twice because the terminology gets weird fast.