@@ -125,17 +125,9 @@ void onInit()
125125 appID = windowsAppID ;
126126#endif
127127
128- string message = "GDPR_message-version-pre-init" ;
129- Vungle . updateConsentStatus ( Vungle . Consent . Denied , message ) ;
130- Vungle . updateCCPAStatus ( Vungle . Consent . Denied ) ;
131-
132- DebugLog ( "onAdFinishedEvent - GDPR " + Vungle . getCCPAStatus ( ) ) ;
133- DebugLog ( "onAdFinishedEvent - CCPA " + Vungle . getConsentStatus ( ) ) ;
134-
135128 // attach event handlers prior to init.
136129 initializeEventHandlers ( ) ;
137-
138- // As of 6.3.0 Vungle Unity Plugin no longer requires placement IDs on startup
130+ // Initialize Vungle SDK
139131 Vungle . init ( appID ) ;
140132 }
141133
@@ -174,12 +166,11 @@ void onPlayPlacement3()
174166 {
175167 // option to customize alert window and send user_id
176168 Dictionary < string , object > options = new Dictionary < string , object > ( ) ;
177- options [ "userTag" ] = "test_user_id" ;
178- options [ "alertTitle" ] = "Title" ;
179- options [ "alertText" ] = "Alert" ;
180- options [ "closeText" ] = "Close" ;
181- options [ "continueText" ] = "Continue" ;
182- options [ "ordinal" ] = "77777" ;
169+ options [ "userTag" ] = "test_user_id" ;
170+ options [ "alertTitle" ] = "Careful!" ;
171+ options [ "alertText" ] = "If the video isn't completed you won't get your reward! Are you sure you want to close early?" ;
172+ options [ "closeText" ] = "Close" ;
173+ options [ "continueText" ] = "Keep Watching" ;
183174
184175 Vungle . playAd ( options , placementIdList [ 2 ] ) ;
185176 }
@@ -233,37 +224,40 @@ void initializeEventHandlers()
233224 //Fired initialize event from sdk
234225 Vungle . onInitializeEvent += ( ) =>
235226 {
236-
237227 adInited = true ;
238228 toBannersCanvas . interactable = true ;
239229 DebugLog ( "onInitializeEvent - SDK initialized" ) ;
240230
241- string message = "GDPR_message-version" ;
242- Vungle . updateConsentStatus ( Vungle . Consent . Denied , message ) ;
243- Vungle . updateCCPAStatus ( Vungle . Consent . Denied ) ;
231+ // GDPR and CCPA Consent API
232+ // string version = "1.0.0";
233+ // Vungle.updateConsentStatus(Vungle.Consent.Denied, version);
234+ // Vungle.updateCCPAStatus(Vungle.Consent.Denied);
244235
245236 } ;
246237
247- // Other events
248- Vungle . onLogEvent += ( log ) =>
249- {
250- DebugLog ( "onLogEvent - Log: " + log ) ;
251- } ;
252-
238+ // Event is trigger when user has click on the ad
253239 Vungle . onAdClickEvent += ( placementID ) =>
254240 {
255241 DebugLog ( "onClick - Log: " + placementID ) ;
256242 } ;
257243
244+ // Event is trigger for rewarded video when the user should be rewarded for completing video ad
258245 Vungle . onAdRewardedEvent += ( placementID ) =>
259246 {
260247 DebugLog ( "onAdRewardedEvent - Log: " + placementID ) ;
261248 } ;
262249
250+ // Event is trigger when the entire ad experience has ended
263251 Vungle . onAdEndEvent += ( placementID ) =>
264252 {
265253 DebugLog ( "onAdEnd - Log: " + placementID ) ;
266254 } ;
255+
256+ // Diagnostic events for debugging
257+ Vungle . onLogEvent += ( log ) =>
258+ {
259+ DebugLog ( "onLogEvent - Log: " + log ) ;
260+ } ;
267261 }
268262
269263 /* Common method for ensuring logging messages have the same format */
0 commit comments