I am trying to setup XUnit to test my google ad manager api service. When I run the test, I hit this exception.
Google.Api.Ads.AdManager.Lib.AdManagerApiException: 'AdManagerApiException: A valid application name was not found in the request header. Please provide a valid application name by modifying the ApplicationName setting in your application's This is my constructor which has the issue to configure *ApplicationName* I also can't find *NetworkCode *and *AuthorizationMethod* public class GoogleAdManagerServiceTest { private readonly GoogleAdManagerService _googleAdManagerService; private readonly AdManagerUser _user; public GoogleAdManagerServiceTest() { _user = new AdManagerUser(); _user.Config.ApplicationName = "xxx"; // How to configure ApplicationName because it cannot be found. _user.Config.OAuth2ClientId = "xxx"; _user.Config.OAuth2ClientSecret = "xxx"; _user.Config.OAuth2RefreshToken = "xxx"; _googleAdManagerService = new GoogleAdManagerService(_user); } [Fact] public void TestGetCompanies() { try { // Arrange // Act // Assert } catch (Exception ex) { Assert.True(false, $"Test failed with exception: {ex.Message}"); } } } -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog: https://googleadsdeveloper.blogspot.com/ =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API and Google Ads API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en --- You received this message because you are subscribed to the Google Groups "Google Ads API and AdWords API Forum" group. To unsubscribe from this group and stop receiving emails from it, send an email to adwords-api+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/adwords-api/3803a50f-701d-44bc-afdb-2d0f411787ebn%40googlegroups.com.