# DCM/DFA Reporting And Trafficking API . userProfiles

## Instance Methods

Gets one user profile by ID.

Retrieves list of user profiles for a user.

### Method Details

`get(profileId)`

    Gets one user profile by ID.

    Args:
      profileId: string, The user profile ID. (required)

    Returns:
      An object of the form:

        { # A UserProfile resource lets you list all DFA user profiles that are associated with a Google user account. The profile_id needs to be specified in other API requests.
        "accountId": "A String", # The account ID to which this profile belongs.
        "accountName": "A String", # The account name this profile belongs to.
        "etag": "A String", # Etag of this resource.
        "kind": "dfareporting#userProfile", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#userProfile".
        "profileId": "A String", # The unique ID of the user profile.
        "subAccountId": "A String", # The sub account ID this profile belongs to if applicable.
        "subAccountName": "A String", # The sub account name this profile belongs to if applicable.
        "userName": "A String", # The user name.
      }

`list()`

    Retrieves list of user profiles for a user.

    Args:

    Returns:
      An object of the form:

        { # Represents the list of user profiles.
        "etag": "A String", # Etag of this resource.
        "items": [ # The user profiles returned in this response.
          { # A UserProfile resource lets you list all DFA user profiles that are associated with a Google user account. The profile_id needs to be specified in other API requests.
            "accountId": "A String", # The account ID to which this profile belongs.
            "accountName": "A String", # The account name this profile belongs to.
            "etag": "A String", # Etag of this resource.
            "kind": "dfareporting#userProfile", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#userProfile".
            "profileId": "A String", # The unique ID of the user profile.
            "subAccountId": "A String", # The sub account ID this profile belongs to if applicable.
            "subAccountName": "A String", # The sub account name this profile belongs to if applicable.
            "userName": "A String", # The user name.
          },
        ],
        "kind": "dfareporting#userProfileList", # Identifies what kind of resource this is. Value: the fixed string "dfareporting#userProfileList".
      }