-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added support for Disabling Advertising Personalization parameter
- Added parameterless overload for PostAsync and GetAsync from request level - Fixes and improvements
- Loading branch information
Ion Sapoval
committed
Sep 18, 2021
1 parent
e3ed9ca
commit 589d9ec
Showing
12 changed files
with
100 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
22 changes: 22 additions & 0 deletions
22
...MeasurementProtocol_NetStandard/Parameters/General/DisablingAdvertisingPersonalization.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System; | ||
|
||
namespace GoogleMeasurementProtocol.Parameters.General | ||
{ | ||
public class DisablingAdvertisingPersonalization : Parameter | ||
{ | ||
/// <summary> | ||
/// Use this parameter to mark an event as disabled for advertising personalization, | ||
/// including for events from a property with a setting that otherwise permits ads personalization. | ||
/// For example, if a transaction is marked to disable advertising personalization, | ||
/// it won't be used when populating a remarketing audience for "past purchasers". | ||
/// </summary> | ||
public DisablingAdvertisingPersonalization(bool value) : base(value) | ||
{ | ||
} | ||
|
||
public override string Name => "npa"; | ||
|
||
public override Type ValueType => typeof(bool); | ||
} | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 3 additions & 5 deletions
8
src/GoogleMeasurementProtocol_NetStandard/Validators/CompatibilityValidator.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="GoogleMeasurementProtocol" version="2.1.0" targetFramework="net461" /> | ||
<package id="GoogleMeasurementProtocol" version="2.2.0" targetFramework="net461" /> | ||
<package id="Newtonsoft.Json" version="12.0.1" targetFramework="net461" /> | ||
</packages> |
2 changes: 0 additions & 2 deletions
2
src/UnitTests/Test_ParameterDefinitions/ParameterTypeConsistency.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters