Closed jeffdahl closed 1 week ago
Hi @jeffdahl, thanks for looking into this and sending the PR out, and sorry for the late review!
I'd like to merge this: would you be able to rebase your branch on top of the current main
?
This was implemented in #573
With minimal impact to the
Google.Ads.GoogleAds.Core
project (only adding two interfaces), this PR introduces theGoogle.Ads.GoogleAds.Extensions.DependencyInjection
project. This new project can be packaged independently providing flexibility to include it only when needed. If using dependency injection, GoogleAds can now be configured and injected into the DI container with one line:Once called, the DI container has a configured
IGoogleAdsClient
that can be injected like any other dependency.The test project,
Google.Ads.GoogleAds.Extensions.DependencyInjection.Tests
, shows this in action.Closes #483