From 3eae71b275dfe9943faa7239d5c045671bb7eadf Mon Sep 17 00:00:00 2001 From: Jarrod Mosen Date: Fri, 7 Jul 2023 10:34:29 +1200 Subject: [PATCH 1/2] Add CustomAudience Resource Name helper Fixes #527 --- Google.Ads.GoogleAds/src/V14/ResourceNames.cs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Google.Ads.GoogleAds/src/V14/ResourceNames.cs b/Google.Ads.GoogleAds/src/V14/ResourceNames.cs index 0c05e2958..6b8b30eeb 100644 --- a/Google.Ads.GoogleAds/src/V14/ResourceNames.cs +++ b/Google.Ads.GoogleAds/src/V14/ResourceNames.cs @@ -436,6 +436,11 @@ public static string CurrencyConstant(string currencyCode) return $"currencyConstants/{currencyCode}"; } + public static ctring CustomAudience(long customerId, long customAudienceId) + { + return $"customers/{customerId}/customAudiences/{customAudienceId}"; + } + public static string CustomConversionGoal(long customerId, long goalId) { return $"customers/{customerId}/customConversionGoals/{goalId}"; From 1c444a0ceceaa240fc729137df5be2cc189c38cb Mon Sep 17 00:00:00 2001 From: Jarrod Mosen Date: Sat, 8 Jul 2023 14:47:26 +1200 Subject: [PATCH 2/2] Update ResourceNames.cs --- Google.Ads.GoogleAds/src/V14/ResourceNames.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Google.Ads.GoogleAds/src/V14/ResourceNames.cs b/Google.Ads.GoogleAds/src/V14/ResourceNames.cs index 6b8b30eeb..50a2f9b88 100644 --- a/Google.Ads.GoogleAds/src/V14/ResourceNames.cs +++ b/Google.Ads.GoogleAds/src/V14/ResourceNames.cs @@ -436,7 +436,7 @@ public static string CurrencyConstant(string currencyCode) return $"currencyConstants/{currencyCode}"; } - public static ctring CustomAudience(long customerId, long customAudienceId) + public static string CustomAudience(long customerId, long customAudienceId) { return $"customers/{customerId}/customAudiences/{customAudienceId}"; }