CSS API . accounts

Instance Methods

cssProductInputs()

Returns the cssProductInputs Resource.

cssProducts()

Returns the cssProducts Resource.

labels()

Returns the labels Resource.

close()

Close httplib2 connections.

get(name, parent=None, x__xgafv=None)

Retrieves a single CSS/MC account by ID.

listChildAccounts(parent, fullName=None, labelId=None, pageSize=None, pageToken=None, x__xgafv=None)

Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.

listChildAccounts_next()

Retrieves the next page of results.

updateLabels(name, body=None, x__xgafv=None)

Updates labels assigned to CSS/MC accounts by a CSS domain.

Method Details

close()
Close httplib2 connections.
get(name, parent=None, x__xgafv=None)
Retrieves a single CSS/MC account by ID.

Args:
  name: string, Required. The name of the managed CSS/MC account. Format: accounts/{account} (required)
  parent: string, Optional. Only required when retrieving MC account information. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Information about CSS/MC account.
  "accountType": "A String", # Output only. The type of this account.
  "automaticLabelIds": [ # Automatically created label IDs assigned to the MC account by CSS Center.
    "A String",
  ],
  "displayName": "A String", # The CSS/MC account's short display name.
  "fullName": "A String", # Output only. Immutable. The CSS/MC account's full name.
  "homepageUri": "A String", # Output only. Immutable. The CSS/MC account's homepage.
  "labelIds": [ # Manually created label IDs assigned to the CSS/MC account by a CSS parent account.
    "A String",
  ],
  "name": "A String", # The label resource name. Format: accounts/{account}
  "parent": "A String", # The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.
}
listChildAccounts(parent, fullName=None, labelId=None, pageSize=None, pageToken=None, x__xgafv=None)
Lists all the accounts under the specified CSS account ID, and optionally filters by label ID and account name.

Args:
  parent: string, Required. The parent account. Must be a CSS group or domain. Format: accounts/{account} (required)
  fullName: string, If set, only the MC accounts with the given name (case sensitive) will be returned.
  labelId: string, If set, only the MC accounts with the given label ID will be returned.
  pageSize: integer, Optional. The maximum number of accounts to return. The service may return fewer than this value. If unspecified, at most 50 accounts will be returned. The maximum value is 100; values above 100 will be coerced to 100.
  pageToken: string, Optional. A page token, received from a previous `ListChildAccounts` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListChildAccounts` must match the call that provided the page token.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Response message for the `ListChildAccounts` method.
  "accounts": [ # The CSS/MC accounts returned for the specified CSS parent account.
    { # Information about CSS/MC account.
      "accountType": "A String", # Output only. The type of this account.
      "automaticLabelIds": [ # Automatically created label IDs assigned to the MC account by CSS Center.
        "A String",
      ],
      "displayName": "A String", # The CSS/MC account's short display name.
      "fullName": "A String", # Output only. Immutable. The CSS/MC account's full name.
      "homepageUri": "A String", # Output only. Immutable. The CSS/MC account's homepage.
      "labelIds": [ # Manually created label IDs assigned to the CSS/MC account by a CSS parent account.
        "A String",
      ],
      "name": "A String", # The label resource name. Format: accounts/{account}
      "parent": "A String", # The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.
    },
  ],
  "nextPageToken": "A String", # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
}
listChildAccounts_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.
        
updateLabels(name, body=None, x__xgafv=None)
Updates labels assigned to CSS/MC accounts by a CSS domain.

Args:
  name: string, Required. The label resource name. Format: accounts/{account} (required)
  body: object, The request body.
    The object takes the form of:

{ # The request message for the `UpdateLabels` method.
  "labelIds": [ # The list of label IDs to overwrite the existing account label IDs. If the list is empty, all currently assigned label IDs will be deleted.
    "A String",
  ],
  "parent": "A String", # Optional. Only required when updating MC account labels. The CSS domain that is the parent resource of the MC account. Format: accounts/{account}
}

  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # Information about CSS/MC account.
  "accountType": "A String", # Output only. The type of this account.
  "automaticLabelIds": [ # Automatically created label IDs assigned to the MC account by CSS Center.
    "A String",
  ],
  "displayName": "A String", # The CSS/MC account's short display name.
  "fullName": "A String", # Output only. Immutable. The CSS/MC account's full name.
  "homepageUri": "A String", # Output only. Immutable. The CSS/MC account's homepage.
  "labelIds": [ # Manually created label IDs assigned to the CSS/MC account by a CSS parent account.
    "A String",
  ],
  "name": "A String", # The label resource name. Format: accounts/{account}
  "parent": "A String", # The CSS/MC account's parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.
}