public class CustomTargetingService extends Object
| Constructor and Description |
|---|
CustomTargetingService() |
| Modifier and Type | Method and Description |
|---|---|
List<Long> |
createCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> customTargetingKeysToCreate)
Creates the specified CustomTargetingKeys.
|
protected com.google.api.ads.admanager.axis.v201902.CustomTargetingServiceInterface |
createCustomTargetingService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<Long> |
createCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> customTargetingValuesToCreate)
Creates the specified CustomTargetingValues.
|
List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> |
getCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of CustomTargetingKeys.
|
List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> |
getCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a filtered list of CustomTargetingValues.
|
Integer |
performCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String customTargetingKeyActionString,
String queryString,
Map<String,Object> queryParams)
Performs the specified CustomTargetingKeys action.
|
Integer |
performCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String customTargetingValueActionString,
String queryString,
Map<String,Object> queryParams)
Performs the specified CustomTargetingValues action.
|
List<Long> |
updateCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> customTargetingKeysToUpdate)
Update the specified CustomTargetingKeys.
|
List<Long> |
updateCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> customTargetingValuesToUpdate)
Updates the specified CustomTargetingValues.
|
protected com.google.api.ads.admanager.axis.v201902.CustomTargetingServiceInterface createCustomTargetingService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<Long> createCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> customTargetingKeysToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessioncustomTargetingKeysToCreate - list of CustomTargetingKeys to createList<Long> list of created CustomTargetingKeys 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> createCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> customTargetingValuesToCreate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessioncustomTargetingValuesToCreate - list of CustomTargetingValues to createList<Long> list of created CustomTargetingValues 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<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> getCustomTargetingKeys(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<CustomTargetingKey> list of retrieved
CustomTargetingKeysAdManagerApiException - 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.CustomTargetingValue> getCustomTargetingValues(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<CustomTargetingValue> list of CustomTargetingValuesAdManagerApiException - 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> updateCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.CustomTargetingKey> customTargetingKeysToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessioncustomTargetingKeysToUpdate - the CustomTargetingKeys to updateList<Long> the updated CustomTargetingKeys 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> updateCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.CustomTargetingValue> customTargetingValuesToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session - the API sessioncustomTargetingValuesToUpdate - the list of CustomTargetingValues to updateList<Long> the updated CustomTargetingValues 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 performCustomTargetingKeys(com.google.api.ads.admanager.lib.client.AdManagerSession session, String customTargetingKeyActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session - the API sessioncustomTargetingKeyActionString - 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 Integer performCustomTargetingValues(com.google.api.ads.admanager.lib.client.AdManagerSession session, String customTargetingValueActionString, String queryString, Map<String,Object> queryParams) throws AdManagerException
session - the sessioncustomTargetingValueActionString - 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.)Copyright © 2010–2019. All rights reserved.