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}"); } } }
![]() |
Google Ads API Team |