You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current GoogleAdsConfig implementation is tied to ConfigurationManager, which is only used by .NET Framework for desktop programs. .NET Web applications, and specifically .NET Core applications use WebConfigurationManager which the current implementation of GoogleAdsConfig ignores, and so it doesn't pick up configuration from it. It's not a big deal because there is LoadConfigRoot(IConfigurationRoot configurationRoot) mentioned above, which allows loading configuration from anywhere - but it requires a bit of custom coding. Perhaps having a public constructor which takes a Dictionary or similar would be nice for cases when IConfiguration is not available.
The text was updated successfully, but these errors were encountered:
I can add a check to support WebConfigurationManager in hosted environments, but I couldn't find this in .NET Core, only in .NET SDK. Which Nuget package am I missing for .NET Core?
Current GoogleAdsConfig implementation is tied to ConfigurationManager, which is only used by .NET Framework for desktop programs. .NET Web applications, and specifically .NET Core applications use WebConfigurationManager which the current implementation of GoogleAdsConfig ignores, and so it doesn't pick up configuration from it. It's not a big deal because there is LoadConfigRoot(IConfigurationRoot configurationRoot) mentioned above, which allows loading configuration from anywhere - but it requires a bit of custom coding. Perhaps having a public constructor which takes a Dictionary or similar would be nice for cases when IConfiguration is not available.
The text was updated successfully, but these errors were encountered: