public class InventoryService extends Object
| Constructor and Description |
|---|
InventoryService() |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
createAdUnits(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.AdUnit> adUnitsToCreate)
Creates the specified Ad Units.
|
protected com.google.api.ads.admanager.axis.v201902.InventoryServiceInterface |
createInventoryService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.AdUnit> |
getAdUnits(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of Ad Units.
|
List<com.google.api.ads.admanager.axis.v201902.AdUnitSize> |
getAdUnitSizes(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of Ad Unit Sizes.
|
Integer |
performAdUnitsAction(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String adUnitActionString,
String queryString,
Map<String,Object> queryParams)
Perform the specified Ad Unit action.
|
List<String> |
updateAdUnits(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.AdUnit> adUnitsToUpdate)
Updates the specified Ad Units.
|
protected com.google.api.ads.admanager.axis.v201902.InventoryServiceInterface createInventoryService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<String> createAdUnits(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.AdUnit> adUnitsToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionadUnitsToCreate - the Ad Units to createList<String> list of created Ad Units IDsAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)public List<String> updateAdUnits(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.AdUnit> adUnitsToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionadUnitsToUpdate - list of Ad Units to updateList<String> list of updated Ad UnitsAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)public Integer performAdUnitsAction(com.google.api.ads.admanager.lib.client.AdManagerSession session, String adUnitActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session - the API sessionadUnitActionString - the actionqueryString - the queryqueryParams - the query parametersInteger the number of affected recordsAdManagerException - AdManagerApiException if there is a problem with the
request made to the API. AdManagerCommunicationException
if there is a communication problem with the API (such as
timeouts etc.)public List<com.google.api.ads.admanager.axis.v201902.AdUnit> getAdUnits(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryOrder, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionqueryString - the queryqueryParams - the query parametersqueryOrder - the orderqueryOffset - the offsetList<AdUnit> a list of retrieved Ad UnitsAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)public List<com.google.api.ads.admanager.axis.v201902.AdUnitSize> getAdUnitSizes(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryOrder, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionqueryString - the queryqueryParams - the query parametersqueryOrder - the orderqueryOffset - the offsetList<AdUnitSize> list of Ad Unit SizesAdManagerApiException - if there is a problem with the request made to the API.AdManagerCommunicationException - if there is a communication problem with the API (such as
timeouts etc.)Copyright © 2010–2019. All rights reserved.