Skip to content

Commit

Permalink
Update the DTExchange mediation plugin to use inclusive language.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 655624050
  • Loading branch information
Mobile Ads Developer Relations authored and maddevrelgithubbot committed Jul 24, 2024
1 parent 0a0d89e commit b420da6
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions mediation/DTExchange/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
## DT Exchange Unity Mediation Plugin Changelog

#### Version Next
- Renamed `DummyClient` to `PlaceholderClient`.

#### [Version 3.2.1](https://dl.google.com/googleadmobadssdk/mediation/unity/dtexchange/DTExchangeUnityAdapter-3.2.1.zip)
- Supports [DT Exchange Android adapter version 8.2.7.0](https://github.com/googleads/googleads-mobile-android-mediation/blob/main/ThirdPartyAdapters/dtexchange/CHANGELOG.md#version-8270).
- Supports [DT Exchange iOS adapter version 8.3.1.0](https://github.com/googleads/googleads-mobile-ios-mediation/blob/main/adapters/DTExchange/CHANGELOG.md#version-8310).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -17,36 +17,36 @@

namespace GoogleMobileAds.Mediation.DTExchange.Common
{
public class DummyClient : IDTExchangeClient
public class PlaceholderClient : IDTExchangeClient
{
public DummyClient()
public PlaceholderClient()
{
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name);
Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name);
}

public void SetGDPRConsent(bool consent)
{
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name);
Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name);
}

public void SetGDPRConsentString(string consentString)
{
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name);
Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name);
}

public void ClearGDPRConsentData()
{
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name);
Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name);
}

public void SetCCPAString(string ccpaString)
{
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name);
Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name);
}

public void ClearCCPAString()
{
Debug.Log("Dummy " + MethodBase.GetCurrentMethod().Name);
Debug.Log("Placeholder " + MethodBase.GetCurrentMethod().Name);
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Google LLC
// Copyright 2019 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -21,13 +21,13 @@ public class DTExchangeClientFactory
public static IDTExchangeClient CreateDTExchangeClient()
{
#if UNITY_EDITOR
return new GoogleMobileAds.Mediation.DTExchange.Common.DummyClient();
return new GoogleMobileAds.Mediation.DTExchange.Common.PlaceholderClient();
#elif UNITY_ANDROID
return GoogleMobileAds.Mediation.DTExchange.Android.DTExchangeClient.Instance;
#elif UNITY_IOS
return GoogleMobileAds.Mediation.DTExchange.iOS.DTExchangeClient.Instance;
#else
return new GoogleMobileAds.Mediation.DTExchange.Common.DummyClient();
return new GoogleMobileAds.Mediation.DTExchange.Common.PlaceholderClient();
#endif
}
}
Expand Down

0 comments on commit b420da6

Please sign in to comment.