target.apidocs.com.google.api.services.content.model.Account.html Maven / Gradle / Ivy
Account (Content API for Shopping v2.1-rev20190513-1.28.0)
com.google.api.services.content.model
Class Account
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.content.model.Account
-
public final class Account
extends com.google.api.client.json.GenericJson
Account data. After the creation of a new account it may take a few minutes before it is fully
operational. The methods delete, insert, patch, and update require the admin role.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Content API for Shopping. For a detailed explanation
see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
Account()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Account
clone()
List<AccountAdsLink>
getAdsLinks()
List of linked Ads accounts that are active or pending approval.
Boolean
getAdultContent()
Indicates whether the merchant sells adult content.
AccountBusinessInformation
getBusinessInformation()
The business information of the account.
AccountGoogleMyBusinessLink
getGoogleMyBusinessLink()
The GMB account which is linked or in the process of being linked with the Merchant Center
account.
BigInteger
getId()
Merchant Center account ID.
String
getKind()
Identifies what kind of resource this is.
String
getName()
Display name for the account.
String
getSellerId()
Client-specific, locally-unique, internal ID for the child account.
List<AccountUser>
getUsers()
Users with access to the account.
String
getWebsiteUrl()
The merchant's website.
List<AccountYouTubeChannelLink>
getYoutubeChannelLinks()
List of linked YouTube channels that are active or pending approval.
Account
set(String fieldName,
Object value)
Account
setAdsLinks(List<AccountAdsLink> adsLinks)
List of linked Ads accounts that are active or pending approval.
Account
setAdultContent(Boolean adultContent)
Indicates whether the merchant sells adult content.
Account
setBusinessInformation(AccountBusinessInformation businessInformation)
The business information of the account.
Account
setGoogleMyBusinessLink(AccountGoogleMyBusinessLink googleMyBusinessLink)
The GMB account which is linked or in the process of being linked with the Merchant Center
account.
Account
setId(BigInteger id)
Merchant Center account ID.
Account
setKind(String kind)
Identifies what kind of resource this is.
Account
setName(String name)
Display name for the account.
Account
setSellerId(String sellerId)
Client-specific, locally-unique, internal ID for the child account.
Account
setUsers(List<AccountUser> users)
Users with access to the account.
Account
setWebsiteUrl(String websiteUrl)
The merchant's website.
Account
setYoutubeChannelLinks(List<AccountYouTubeChannelLink> youtubeChannelLinks)
List of linked YouTube channels that are active or pending approval.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getAdsLinks
public List<AccountAdsLink> getAdsLinks()
List of linked Ads accounts that are active or pending approval. To create a new link request,
add a new link with status active to the list. It will remain in a pending state until approved
or rejected either in the Ads interface or through the AdWords API. To delete an active link,
or to cancel a link request, remove it from the list.
- Returns:
- value or
null
for none
-
setAdsLinks
public Account setAdsLinks(List<AccountAdsLink> adsLinks)
List of linked Ads accounts that are active or pending approval. To create a new link request,
add a new link with status active to the list. It will remain in a pending state until approved
or rejected either in the Ads interface or through the AdWords API. To delete an active link,
or to cancel a link request, remove it from the list.
- Parameters:
adsLinks
- adsLinks or null
for none
-
getAdultContent
public Boolean getAdultContent()
Indicates whether the merchant sells adult content.
- Returns:
- value or
null
for none
-
setAdultContent
public Account setAdultContent(Boolean adultContent)
Indicates whether the merchant sells adult content.
- Parameters:
adultContent
- adultContent or null
for none
-
getBusinessInformation
public AccountBusinessInformation getBusinessInformation()
The business information of the account.
- Returns:
- value or
null
for none
-
setBusinessInformation
public Account setBusinessInformation(AccountBusinessInformation businessInformation)
The business information of the account.
- Parameters:
businessInformation
- businessInformation or null
for none
-
getGoogleMyBusinessLink
public AccountGoogleMyBusinessLink getGoogleMyBusinessLink()
The GMB account which is linked or in the process of being linked with the Merchant Center
account.
- Returns:
- value or
null
for none
-
setGoogleMyBusinessLink
public Account setGoogleMyBusinessLink(AccountGoogleMyBusinessLink googleMyBusinessLink)
The GMB account which is linked or in the process of being linked with the Merchant Center
account.
- Parameters:
googleMyBusinessLink
- googleMyBusinessLink or null
for none
-
getId
public BigInteger getId()
Merchant Center account ID.
- Returns:
- value or
null
for none
-
setId
public Account setId(BigInteger id)
Merchant Center account ID.
- Parameters:
id
- id or null
for none
-
getKind
public String getKind()
Identifies what kind of resource this is. Value: the fixed string "content#account".
- Returns:
- value or
null
for none
-
setKind
public Account setKind(String kind)
Identifies what kind of resource this is. Value: the fixed string "content#account".
- Parameters:
kind
- kind or null
for none
-
getName
public String getName()
Display name for the account.
- Returns:
- value or
null
for none
-
setName
public Account setName(String name)
Display name for the account.
- Parameters:
name
- name or null
for none
-
getSellerId
public String getSellerId()
Client-specific, locally-unique, internal ID for the child account.
- Returns:
- value or
null
for none
-
setSellerId
public Account setSellerId(String sellerId)
Client-specific, locally-unique, internal ID for the child account.
- Parameters:
sellerId
- sellerId or null
for none
-
getUsers
public List<AccountUser> getUsers()
Users with access to the account. Every account (except for subaccounts) must have at least one
admin user.
- Returns:
- value or
null
for none
-
setUsers
public Account setUsers(List<AccountUser> users)
Users with access to the account. Every account (except for subaccounts) must have at least one
admin user.
- Parameters:
users
- users or null
for none
-
getWebsiteUrl
public String getWebsiteUrl()
The merchant's website.
- Returns:
- value or
null
for none
-
setWebsiteUrl
public Account setWebsiteUrl(String websiteUrl)
The merchant's website.
- Parameters:
websiteUrl
- websiteUrl or null
for none
-
getYoutubeChannelLinks
public List<AccountYouTubeChannelLink> getYoutubeChannelLinks()
List of linked YouTube channels that are active or pending approval. To create a new link
request, add a new link with status active to the list. It will remain in a pending state until
approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel
a link request, remove it from the list.
- Returns:
- value or
null
for none
-
setYoutubeChannelLinks
public Account setYoutubeChannelLinks(List<AccountYouTubeChannelLink> youtubeChannelLinks)
List of linked YouTube channels that are active or pending approval. To create a new link
request, add a new link with status active to the list. It will remain in a pending state until
approved or rejected in the YT Creator Studio interface. To delete an active link, or to cancel
a link request, remove it from the list.
- Parameters:
youtubeChannelLinks
- youtubeChannelLinks or null
for none
-
set
public Account set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public Account clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2019 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy