Can I add ads to my Unity game?

Yes, Unity provides an ad network which you can read more details about here: https://unity3d.com/services/ads

1293

Unity Ads network

Instructions for Installing ads

You can follow the detailed instructions on the Unity documentation page here:
https://docs.unity3d.com/Manual/UnityAdsHowTo.html

1342

Can I also sell ad unlocks as an In-App Purchase?

Yes, you can sell pay for an ad-free game experience options. A good example to look at is the fill resource options in the In-App Purchase store and the Store.cs script.

The easiest way to do this is to setup ads in your application that display only if a new Stats variable like AdFree boolean is set to false.

Add the Pay to Unlock item into the In-App Purchase store menu with a crystal price like how the refill resources use crystals to change the resource stats. Then when the button is triggered, deduct the crystal currency and update the Stats AdFree boolean to true. The Stats are carried between save and loads so your players will never see the ads again.

675

Screenshot example of IAP unlocks from other iPhone games

Before starting to add new features like this - please get comfortable with the scripting first. Read the functions in the Store.cs script and use Ctrl+F in the Scripts folder to locate how functions work between scripts. The kit is a huge package of interconnected features and scripts, so it's better to get comfortable first with the scripting before adding new features that might affect other gameplay elements.