|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.google.api.ads.dfp.lib.factory.DfpServices
public final class DfpServices
Utility class to create DFP service clients. The session is stored as a reference within the client so that the session may be altered to affect the behavior of the client.
Usage example:
DfpSession session = new DfpSession.Builder()...build();
InventoryServiceInterface inventoryService =
new DfpServices().get(session, InventoryServiceInterface.class);
campaignService.makeRequest(...);
...
session.setNetworkCode(...);
campaignService.makeRequest(...);
| Constructor Summary | |
|---|---|
DfpServices()
Default constructor. |
|
DfpServices(FactoryConfiguration factoryConfiguration)
Constructor that takes a factory configuration. |
|
| Method Summary | ||
|---|---|---|
|
get(DfpSession dfpSession,
Class<T> interfaceClass)
Gets a client for the service represented by the interface with a reference to the session. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DfpServices()
public DfpServices(FactoryConfiguration factoryConfiguration)
factoryConfiguration - the factory configuration| Method Detail |
|---|
public <T> T get(DfpSession dfpSession,
Class<T> interfaceClass)
T - the service typedfpSession - the DFP sessioninterfaceClass - the service interface class
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||