public class PlacementService extends Object
| Constructor and Description |
|---|
PlacementService() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
createPlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Placement> placementsToCreate)
Creates the specified placements.
|
protected com.google.api.ads.admanager.axis.v201902.PlacementServiceInterface |
createPlacementService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.Placement> |
getPlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of Placements.
|
Integer |
performPlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String placementActionString,
String queryString,
Map<String,Object> queryParams)
Perform the selected Placement action.
|
List<Long> |
updatePlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Placement> placementsToUpdate)
Updates the specified placements.
|
protected com.google.api.ads.admanager.axis.v201902.PlacementServiceInterface createPlacementService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<Long> createPlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Placement> placementsToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - an API sessionplacementsToCreate - list of placements to createList<Long> list of created Placement 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<Long> updatePlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Placement> placementsToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessionplacementsToUpdate - list of placements to updateList<Long> list of updated 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 Integer performPlacements(com.google.api.ads.admanager.lib.client.AdManagerSession session, String placementActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session - the API sessionplacementActionString - the actionqueryString - the queryqueryParams - the query parametersInteger the number of affected rowsAdManagerException - 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.Placement> getPlacements(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<Placement> list of placementsAdManagerApiException - 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.