public class ShoppingContent.Promotions.List extends ShoppingContentRequest<ListPromotionResponse>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
List(Long merchantId)
List all promotions from your Merchant Center account.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getCountryCode()
[ CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (for example,
[ "US"), used as a filter on promotions target country.
|
String |
getLanguageCode()
The two-letter ISO 639-1 language code associated with the promotions, used as a filter.
|
Long |
getMerchantId()
Required.
|
Integer |
getPageSize()
The maximum number of promotions to return.
|
String |
getPageToken()
A page token, received from a previous `ListPromotion` call.
|
ShoppingContent.Promotions.List |
set(String parameterName,
Object value) |
ShoppingContent.Promotions.List |
set$Xgafv(String $Xgafv)
V1 error format.
|
ShoppingContent.Promotions.List |
setAccessToken(String accessToken)
OAuth access token.
|
ShoppingContent.Promotions.List |
setAlt(String alt)
Data format for response.
|
ShoppingContent.Promotions.List |
setCallback(String callback)
JSONP
|
ShoppingContent.Promotions.List |
setCountryCode(String countryCode)
[CLDR country code](http://www.unicode.org/repos/cldr/tags/latest/common/main/en.xml) (for
example, "US"), used as a filter on promotions target country.
|
ShoppingContent.Promotions.List |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
ShoppingContent.Promotions.List |
setKey(String key)
API key.
|
ShoppingContent.Promotions.List |
setLanguageCode(String languageCode)
The two-letter ISO 639-1 language code associated with the promotions, used as a filter.
|
ShoppingContent.Promotions.List |
setMerchantId(Long merchantId)
Required.
|
ShoppingContent.Promotions.List |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
ShoppingContent.Promotions.List |
setPageSize(Integer pageSize)
The maximum number of promotions to return.
|
ShoppingContent.Promotions.List |
setPageToken(String pageToken)
A page token, received from a previous `ListPromotion` call.
|
ShoppingContent.Promotions.List |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
ShoppingContent.Promotions.List |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
ShoppingContent.Promotions.List |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
ShoppingContent.Promotions.List |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected List(Long merchantId)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. ShoppingContent.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
merchantId - Required. The ID of the account that contains the collection.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ListPromotionResponse>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ListPromotionResponse>IOExceptionpublic ShoppingContent.Promotions.List set$Xgafv(String $Xgafv)
ShoppingContentRequestset$Xgafv in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setAccessToken(String accessToken)
ShoppingContentRequestsetAccessToken in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setAlt(String alt)
ShoppingContentRequestsetAlt in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setCallback(String callback)
ShoppingContentRequestsetCallback in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setFields(String fields)
ShoppingContentRequestsetFields in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setKey(String key)
ShoppingContentRequestsetKey in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setOauthToken(String oauthToken)
ShoppingContentRequestsetOauthToken in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setPrettyPrint(Boolean prettyPrint)
ShoppingContentRequestsetPrettyPrint in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setQuotaUser(String quotaUser)
ShoppingContentRequestsetQuotaUser in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setUploadType(String uploadType)
ShoppingContentRequestsetUploadType in class ShoppingContentRequest<ListPromotionResponse>public ShoppingContent.Promotions.List setUploadProtocol(String uploadProtocol)
ShoppingContentRequestsetUploadProtocol in class ShoppingContentRequest<ListPromotionResponse>public Long getMerchantId()
public ShoppingContent.Promotions.List setMerchantId(Long merchantId)
public String getCountryCode()
public ShoppingContent.Promotions.List setCountryCode(String countryCode)
public String getLanguageCode()
public ShoppingContent.Promotions.List setLanguageCode(String languageCode)
public Integer getPageSize()
public ShoppingContent.Promotions.List setPageSize(Integer pageSize)
public String getPageToken()
public ShoppingContent.Promotions.List setPageToken(String pageToken)
public ShoppingContent.Promotions.List set(String parameterName, Object value)
set in class ShoppingContentRequest<ListPromotionResponse>Copyright © 2011–2024 Google. All rights reserved.