use of com.google.api.ads.admanager.lib.AdManagerModule in project googleads-java-lib by googleads.
the class AdManagerLibConfigurationIntegrationTest method testPropertyFileIncludedInConfig.
@Test
public void testPropertyFileIncludedInConfig() throws Exception {
File adsPropertiesFile = createPropertiesFile();
System.setProperty("user.home", adsPropertiesFile.getParentFile().getAbsolutePath());
AdManagerLibConfiguration config = Guice.createInjector(new AdManagerModule()).getInstance(AdManagerLibConfiguration.class);
assertFalse(config.isAutoRefreshOAuth2TokenEnabled());
}
use of com.google.api.ads.admanager.lib.AdManagerModule in project googleads-java-lib by googleads.
the class AdManagerAxisModule method configure.
@Override
public void configure() {
bind(new TypeLiteral<HeaderHandler<AdManagerSession, AdManagerServiceDescriptor>>() {
}).to(new TypeLiteral<AdManagerAxisHeaderHandler>() {
});
install(new AxisModule());
install(new AdManagerModule());
install(new AdManagerSoapModule());
configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
}
use of com.google.api.ads.admanager.lib.AdManagerModule in project googleads-java-lib by googleads.
the class AdManagerJaxWsModule method configure.
@Override
public void configure() {
bind(new TypeLiteral<HeaderHandler<AdManagerSession, AdManagerServiceDescriptor>>() {
}).to(new TypeLiteral<AdManagerJaxWsHeaderHandler>() {
});
install(new JaxWsModule());
install(new AdManagerModule());
install(new AdManagerSoapModule());
configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
}
Aggregations