AccountService class
The AccountService
message represents a specific service that a provider
account offers to a Merchant Center account.
AccountService
defines the permissions and capabilities granted to the
provider, allowing for operations such as product management or campaign
management. The lifecycle of an AccountService
involves a proposal phase,
where one party suggests the service, and an approval phase, where the other
party accepts or rejects it. This handshake mechanism ensures mutual consent
before any access is granted. This mechanism safeguards both parties by
ensuring that access rights are granted appropriately and that both the
business and provider are aware of the services enabled. In scenarios where
a user is an admin of both accounts, the approval can happen automatically.
The mutability of a service is also managed through AccountService
. Some
services might be immutable, for example, if they were established through
other systems or APIs, and you cannot alter them through this API.
Constructors
- AccountService.new({AccountAggregation? accountAggregation, AccountManagement? accountManagement, CampaignsManagement? campaignsManagement, String? externalAccountId, Handshake? handshake, LocalListingManagement? localListingManagement, String? mutability, String? name, ProductsManagement? productsManagement, String? provider, String? providerDisplayName})
- AccountService.fromJson(Map json_)
Properties
- accountAggregation ↔ AccountAggregation?
-
Service type for account aggregation.
getter/setter pair
- accountManagement ↔ AccountManagement?
-
Service type for account management.
getter/setter pair
- campaignsManagement ↔ CampaignsManagement?
-
Service type for managing advertising campaigns.
getter/setter pair
- externalAccountId ↔ String?
-
An optional, immutable identifier that Google uses to refer to this
account when communicating with the provider.
getter/setter pair
- handshake ↔ Handshake?
-
Information about the state of the service in terms of establishing it
(e.g. is it pending approval or approved).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- localListingManagement ↔ LocalListingManagement?
-
Service type for local listings management.
getter/setter pair
- mutability ↔ String?
-
Whether the service is mutable (e.g. through Approve / Reject RPCs).
getter/setter pair
- name ↔ String?
-
Identifier.
getter/setter pair
- productsManagement ↔ ProductsManagement?
-
Service type for managing products.
getter/setter pair
- provider ↔ String?
-
The provider of the service.
getter/setter pair
- providerDisplayName ↔ String?
-
The human-readable display name of the provider account.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited