com.google.api.ads.dfp.axis.factory.DfpServices or
com.google.api.ads.dfp.jaxws.factory.DfpServices instead.@Deprecated public final class DfpServices extends Object
Usage example:
DfpSession session = new DfpSession.Builder()...build();
InventoryServiceInterface inventoryService =
new DfpServices().get(session, InventoryServiceInterface.class);
campaignService.makeRequest(...);
...
session.setNetworkCode(...);
campaignService.makeRequest(...);
Implementation is thread-safe.
| Constructor and Description |
|---|
DfpServices()
Deprecated.
Default constructor.
|
DfpServices(FactoryConfiguration factoryConfiguration)
Deprecated.
Constructor that takes a factory configuration.
|
| Modifier and Type | Method and Description |
|---|---|
<T> T |
get(DfpSession dfpSession,
Class<T> interfaceClass)
Deprecated.
Gets a client for the service represented by the interface with a reference
to the session.
|
public DfpServices()
public DfpServices(@Nullable
FactoryConfiguration factoryConfiguration)
factoryConfiguration - the factory configurationpublic <T> T get(DfpSession dfpSession, Class<T> interfaceClass)
T - the service typedfpSession - the DFP sessioninterfaceClass - the service interface classCopyright © 2012. All Rights Reserved.