Search in sources :

Example 1 with AxisModule

use of com.google.api.ads.common.lib.soap.axis.AxisModule 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"));
}
Also used : AdManagerServiceDescriptor(com.google.api.ads.admanager.lib.client.AdManagerServiceDescriptor) TypeLiteral(com.google.inject.TypeLiteral) AdManagerModule(com.google.api.ads.admanager.lib.AdManagerModule) AdManagerSoapModule(com.google.api.ads.admanager.lib.AdManagerSoapModule) AdManagerSession(com.google.api.ads.admanager.lib.client.AdManagerSession) AxisModule(com.google.api.ads.common.lib.soap.axis.AxisModule)

Example 2 with AxisModule

use of com.google.api.ads.common.lib.soap.axis.AxisModule 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"));
}
Also used : TypeLiteral(com.google.inject.TypeLiteral) AdWordsModule(com.google.api.ads.adwords.lib.AdWordsModule) AdWordsSoapModule(com.google.api.ads.adwords.lib.AdWordsSoapModule) AdWordsSession(com.google.api.ads.adwords.lib.client.AdWordsSession) AdWordsServiceDescriptor(com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor) AxisModule(com.google.api.ads.common.lib.soap.axis.AxisModule)

Aggregations

AxisModule (com.google.api.ads.common.lib.soap.axis.AxisModule)2 TypeLiteral (com.google.inject.TypeLiteral)2 AdManagerModule (com.google.api.ads.admanager.lib.AdManagerModule)1 AdManagerSoapModule (com.google.api.ads.admanager.lib.AdManagerSoapModule)1 AdManagerServiceDescriptor (com.google.api.ads.admanager.lib.client.AdManagerServiceDescriptor)1 AdManagerSession (com.google.api.ads.admanager.lib.client.AdManagerSession)1 AdWordsModule (com.google.api.ads.adwords.lib.AdWordsModule)1 AdWordsSoapModule (com.google.api.ads.adwords.lib.AdWordsSoapModule)1 AdWordsServiceDescriptor (com.google.api.ads.adwords.lib.client.AdWordsServiceDescriptor)1 AdWordsSession (com.google.api.ads.adwords.lib.client.AdWordsSession)1