Unit CastleAds

Description

Ads (advertisements) in game (TAds).

Source: services/castleads.pas (line 17).

Uses

Overview

Classes, Interfaces, Objects and Records

Name Description
Class TAds Advertisements in game.

Types

TAdNetwork = (...);
TFullScreenAdType = (...);
TAdWatchStatus = (...);
TAdClosedEvent = procedure (const Sender: TObject; const WatchedStatus: TAdWatchStatus) of object;
TConsentGatheredEvent = procedure (const Sender: TObject; const CanRequestAds, PrivacyOptionsRequired: Boolean) of object;

Constants

TestAdMobBannerUnitId = 'ca-app-pub-3940256099942544/6300978111';
TestAdMobInterstitialUnitId = 'ca-app-pub-3940256099942544/1033173712';
TestAdMobInterstitialVideoUnitId = 'ca-app-pub-3940256099942544/8691691433';
TestAdMobRewardedUnitId = 'ca-app-pub-3940256099942544/5224354917';

Description

Types

TAdNetwork = (...);

This item has no description.

Values
  • anAdMob
  • anChartboost
  • anStartApp

Source: services/castleads.pas (line 51).

TFullScreenAdType = (...);

This item has no description.

Values
  • atInterstitialStatic
  • atInterstitialVideo
  • atReward

Source: services/castleads.pas (line 53).

TAdWatchStatus = (...);

This item has no description.

Values
  • wsWatched
  • wsUnknownError
  • wsNetworkNotAvailable
  • wsNoAdsAvailable
  • wsUserAborted
  • wsAdNotReady
  • wsAdNetworkNotInitialized
  • wsInvalidRequest
  • wsAdTypeUnsupported
  • wsApplicationReinitialized

Source: services/castleads.pas (line 55).

TAdClosedEvent = procedure (const Sender: TObject; const WatchedStatus: TAdWatchStatus) of object;

This item has no description.

TConsentGatheredEvent = procedure (const Sender: TObject; const CanRequestAds, PrivacyOptionsRequired: Boolean) of object;

Announces that the user consent (see TAds.InitializeAdMobWithConsent) has been gathered.

Parameters
CanRequestAds
Whether we may request ads now. It is False when the user refused the consent, and also when the consent could not be gathered at all, e.g. without an Internet connection on the first run.
PrivacyOptionsRequired
Whether your application must show an entry point (e.g. a button in the settings) that calls TAds.ShowConsentPrivacyOptions, to let the user change or withdraw the consent later.

Constants

TestAdMobBannerUnitId = 'ca-app-pub-3940256099942544/6300978111';

Test banner ad "unit id". You can use it with TAds.InitializeAdMob for testing purposes (but eventually you want to create your own, to show non-testing ads!).

From https://developers.google.com/admob/android/test-ads

Source: services/castleads.pas (line 30).

TestAdMobInterstitialUnitId = 'ca-app-pub-3940256099942544/1033173712';

Test interstitial static ad "unit id". You can use it with TAds.InitializeAdMob for testing purposes (but eventually you want to create your own, to show non-testing ads!).

From https://developers.google.com/admob/android/test-ads

Source: services/castleads.pas (line 36).

TestAdMobInterstitialVideoUnitId = 'ca-app-pub-3940256099942544/8691691433';

Test interstitial video ad "unit id". You can use it with TAds.InitializeAdMob for testing purposes (but eventually you want to create your own, to show non-testing ads!).

From https://developers.google.com/admob/android/test-ads

Source: services/castleads.pas (line 42).

TestAdMobRewardedUnitId = 'ca-app-pub-3940256099942544/5224354917';

Test rewarded video ad "unit id". You can use it with TAds.InitializeAdMob for testing purposes (but eventually you want to create your own, to show non-testing ads!).

From https://developers.google.com/admob/android/test-ads

Source: services/castleads.pas (line 48).


Generated by PasDoc 1.0.4.