use of com.google.api.ads.adwords.lib.AdWordsModule in project googleads-java-lib by googleads.
the class AdWordsJaxWsModule method configure.
@Override
public void configure() {
bind(new TypeLiteral<HeaderHandler<AdWordsSession, AdWordsServiceDescriptor>>() {
}).to(new TypeLiteral<AdWordsJaxWsHeaderHandler>() {
});
install(new JaxWsModule());
install(new AdWordsModule());
install(new AdWordsSoapModule());
configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
}
use of com.google.api.ads.adwords.lib.AdWordsModule in project googleads-java-lib by googleads.
the class AdWordsAxisModule method configure.
@Override
public void configure() {
bind(new TypeLiteral<AxisSoapHeaderFactory<AdWordsServiceDescriptor>>() {
}).to(new TypeLiteral<AdWordsAxisSoapHeaderFactory>() {
});
bind(new TypeLiteral<HeaderHandler<AdWordsSession, AdWordsServiceDescriptor>>() {
}).to(new TypeLiteral<AdWordsAxisHeaderHandler>() {
});
install(new AxisModule());
install(new AdWordsModule());
install(new AdWordsSoapModule());
configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
}
use of com.google.api.ads.adwords.lib.AdWordsModule in project googleads-java-lib by googleads.
the class AdWordsLibConfigurationIntegrationTest method testPropertyFileIncludedInConfig.
@Test
public void testPropertyFileIncludedInConfig() throws Exception {
File adsPropertiesFile = createPropertiesFile();
System.setProperty("user.home", adsPropertiesFile.getParentFile().getAbsolutePath());
AdWordsLibConfiguration config = Guice.createInjector(new AdWordsModule()).getInstance(AdWordsLibConfiguration.class);
assertFalse(config.isAutoRefreshOAuth2TokenEnabled());
}
Aggregations