Examples of DfpModule


Examples of com.google.api.ads.dfp.lib.DfpModule

  @SuppressWarnings("rawtypes") /* Guice lacks support for template type literals.*/
  @Override
  public void configure() {
    bind(new TypeLiteral<HeaderHandler>() {}).to(new TypeLiteral<DfpJaxWsHeaderHandler>() {});
    install(new JaxWsModule());
    install(new DfpModule());
    install(new DfpSoapModule());
    configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
  }
View Full Code Here

Examples of com.google.api.ads.dfp.lib.DfpModule

  @SuppressWarnings("rawtypes") /* Guice lacks support for template type literals.*/
  @Override
  public void configure() {
    bind(new TypeLiteral<HeaderHandler>() {}).to(new TypeLiteral<DfpAxisHeaderHandler>() {});
    install(new AxisModule());
    install(new DfpModule());
    install(new DfpSoapModule());
    configureConfigurations(this.getClass().getResource("conf/props/build.properties"));
  }
View Full Code Here

Examples of com.google.api.ads.dfp.lib.DfpModule

public class DfpApiConfigurationIntegrationTest {

  @Test
  public void testJarApiPropertiesFileIncludedInConfig() throws Exception {
    DfpApiConfiguration config = Guice.createInjector(
        new DfpModule()).getInstance(DfpApiConfiguration.class);
    assertEquals("https://www.google.com/apis/ads/publisher", config.getNamespacePrefix());
  }
View Full Code Here

Examples of com.google.api.ads.dfp.lib.DfpModule

  @Test
  public void testPropertyFileIncludedInConfig() throws Exception {
    File adsPropertiesFile = createPropertiesFile();
    System.setProperty("user.home", adsPropertiesFile.getParentFile().getAbsolutePath());
    DfpLibConfiguration config = Guice.createInjector(
        new DfpModule()).getInstance(DfpLibConfiguration.class);
    assertFalse(config.isAutoRefreshOAuth2TokenEnabled());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.