public class CompanyService extends Object
Constructor and Description |
---|
CompanyService() |
Modifier and Type | Method and Description |
---|---|
List<Long> |
createCompanies(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Company> companiesToCreate)
Creates the specified companies.
|
protected com.google.api.ads.admanager.axis.v201902.CompanyServiceInterface |
createCompanyService(com.google.api.ads.admanager.lib.client.AdManagerSession session) |
List<com.google.api.ads.admanager.axis.v201902.Company> |
getCompanies(com.google.api.ads.admanager.lib.client.AdManagerSession session,
String queryString,
Map<String,Object> queryParams,
String queryOrder,
Integer queryOffset)
Retrieves a list of companies.
|
List<Long> |
updateCompanies(com.google.api.ads.admanager.lib.client.AdManagerSession session,
List<com.google.api.ads.admanager.axis.v201902.Company> companiesToUpdate)
Update the specified companies.
|
protected com.google.api.ads.admanager.axis.v201902.CompanyServiceInterface createCompanyService(com.google.api.ads.admanager.lib.client.AdManagerSession session)
public List<com.google.api.ads.admanager.axis.v201902.Company> getCompanies(com.google.api.ads.admanager.lib.client.AdManagerSession session, String queryString, Map<String,Object> queryParams, String queryOrder, Integer queryOffset) throws AdManagerApiException, AdManagerCommunicationException
session
- the Google API sessionqueryString
- the queryqueryParams
- the query parametersqueryOrder
- the orderqueryOffset
- the offsetList<Company>
the filtered list of companiesAdManagerApiException
- 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> createCompanies(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Company> companiesToCreate) throws AdManagerApiException, AdManagerCommunicationException
session
- the Google API sessioncompaniesToCreate
- list of companies to createList<Long>
list of created company 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> updateCompanies(com.google.api.ads.admanager.lib.client.AdManagerSession session, List<com.google.api.ads.admanager.axis.v201902.Company> companiesToUpdate) throws AdManagerApiException, AdManagerCommunicationException
session
- the Google API sessioncompaniesToUpdate
- the companies to updateList<Long>
list of updated companies 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.)Copyright © 2010–2019. All rights reserved.