-
Notifications
You must be signed in to change notification settings - Fork 2
Enabling the Ads Service
levching edited this page Apr 14, 2020
·
3 revisions
Initialize the SDK early in the game’s run-time life cycle, preferably at launch, using the Initialize function. For example, if you want to use Google Admob platform, that is how you init the ads client.
using SA.CrossPlatform.Advertisement;
...
UM_iAdsClient client = UM_AdvertisementService.GetClient(UM_AdPlatform.Google);
client.Initialize((result) => {
if (result.IsSucceeded) {
Debug.Log("Advertesment platfrom is ready to be used.");
} else {
Debug.Log("Failed to init " + result.Error.FullMessage);
}
});
```csharp
As you may notice, we haven't provided any setting. Settings required for the client to function properly can be provided via [Plugin UI](https://unionassets.com/ultimate-mobile-pro/plugin-editor-ui-736) using the [3rd-Party Tab](https://unionassets.com/ultimate-mobile-pro/services-ui-762). Or via Code. How to provide settings via code will be described for every platform explicitly. For example, check the [Google Admob configuration sample](https://unionassets.com/ultimate-mobile-pro/google-admob-784#settings).Reliable and high-quality Unity Development service. Let's Talk!
Website | AssetStore | LinkedIn | Youtube | Scripting Reference
- Application
- Dark Mode
- Native Dialogs
- Native Preloader
- Date Picker Dialog
- Time Picker Dialog
- Rate Us Dialog
- Build Info
- Locale
- Permissions
- Wheel Picker Dialog
- Getting Started
- Connecting to The Service
- Purchase flow
- Transactions Validation
- Test Inside the Editor
- Advanced use cases
- Getting Started
- Enabling the Ads Service
- Banner Ads
- Non-rewarded Ads
- Rewarded Ads
- Unity Ads
- Google AdMob
- Chartboost
- Getting Started
- Analytics API
- Automatic Tracking
- Unity Analytics
- Firebase Analytics
- Facebook Analytics