Skip to content

Commit 70e584a

Browse files
6.10.5.0
Unity plugin 6.10.5.0 update
2 parents b147943 + 9687dce commit 70e584a

File tree

4 files changed

+29
-25
lines changed

4 files changed

+29
-25
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
## Changelog
22

3+
#### VERSION 6.10.5.0 (December 9, 2021)
4+
* Integrated iOS Publisher SDK v6.10.5
5+
* Integrated Android Publisher SDK v6.10.3
6+
* Integrated Windows Publisher SDK v6.10.1
7+
38
#### VERSION 6.10.4.0 (November 16, 2021)
49
* Integrated iOS Publisher SDK v6.10.4
510
* Integrated Android Publisher SDK v6.10.2

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ In the Build Settings window click on Player Settings. In Inspector, make sure C
2323

2424
## Release Notes
2525

26+
#### VERSION 6.10.5.0 (December 9, 2021)
27+
* Integrated iOS Publisher SDK v6.10.5
28+
* Integrated Android Publisher SDK v6.10.3
29+
* Integrated Windows Publisher SDK v6.10.1
30+
2631
#### VERSION 6.10.4.0 (November 16, 2021)
2732
* Integrated iOS Publisher SDK v6.10.4
2833
* Integrated Android Publisher SDK v6.10.2

Sample/Unity Sample Application/Assets/TitleGUI.cs

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)