AI-generated Key Takeaways
-
AccountCredentials enable Google to utilize a partner's API on behalf of a merchant, using OAuth tokens for access.
-
These credentials specify a purpose, such as managing Shopify integration, dictating how Google can leverage them.
-
Access tokens associated with AccountCredentials have a defined expiration period, ensuring security and requiring renewal.
-
Google provides methods, like "create," to manage and upload these credentials for Merchant Center accounts.
Resource: AccountCredentials
Credentials allowing Google to call a partner's API on behalf of a merchant.
JSON representation |
---|
{
"purpose": enum ( |
Fields | |
---|---|
purpose |
Indicates to Google how Google should use these OAuth tokens. |
accessToken |
An OAuth access token. |
expiresIn |
The amount of time, in seconds, after which the access token is no longer valid. |
AccountCredentialsPurpose
The purpose of a set of credentials.
Enums | |
---|---|
ACCOUNT_CREDENTIALS_PURPOSE_UNSPECIFIED |
Unknown purpose. |
SHOPIFY_ORDER_MANAGEMENT |
The credentials allow Google to manage Shopify orders on behalf of the merchant (deprecated). |
SHOPIFY_INTEGRATION |
The credentials allow Google to manage Shopify integration on behalf of the merchant. |
Methods |
|
---|---|
|
Uploads credentials for the Merchant Center account. |