---
metadata:
  - name: generator
    content: Diplodoc Platform v5.52.0
alternate:
  - https://yandex.com/dev/direct/doc/dg-v4/en/live/EnableSharedAccount.md
  - https://yandex.com/dev/direct/doc/dg-v4/ru/live/EnableSharedAccount.md
  - href: en/live/EnableSharedAccount.md
    type: text/markdown
    title: Markdown version
  - href: ../llms.txt
    type: text/markdown
    title: llms.txt
---
> **Documentation Index:** Fetch the complete configuration index at https://yandex.com/dev/direct/doc/dg-v4/en/llms.txt

# EnableSharedAccount (Live)
Enables the shared account for the client and transfers funds to it from all the campaigns.
This method is only available to advertising agencies.


{% note alert %}

- It can take a long time to enable the shared account.
- The shared account cannot be enabled if the advertiser does not have a single campaign.

{% endnote %}


## Input data

The input data structure in JSON is shown below.

```javascript
{
   "method": "EnableSharedAccount",
   "param": {
      /* EnableSharedAccountRequest */
      "Login": (string)
   }
}
```

Parameters are described below.


#|
||
**<sup >Parameter</sup>**
|
**<sup >Description</sup>**
|
**<sup >Required</sup>**
||

||
**<sub >EnableSharedAccountRequest object</sub>**
||
||
`Login`
|
The username of the client to enable the shared account for.
|
Yes
||
|#

## Output data

The output data structure in JSON is shown below.

```javascript
{
   "data": {
      /* EnableSharedAccountResponse */
      "Login": (string),
      "AccountID": (int),
      "Errors": [
         {  /* Error */
            "FaultCode": (int),
            "FaultString": (string),
            "FaultDetail": (string)
         }
         ...
      ],
   }
}
```

Parameters are described below.


#|
||
**<sup >Parameter</sup>**
|
**<sup >Description</sup>**
||

||
**<sub >EnableSharedAccountResponse object</sub>**
||
||
`Login`
|
Client username.
||
||
`AccountID`
|
ID of the shared account that was created. This parameter is returned if the shared account was enabled successfully.
||
||
`Errors`
|
Array of `Error` objects with errors that occurred while enabling the shared account.
||

||
**<sub >Error object</sub>**
||
||
`FaultCode`
|
Error code.
||
||
`FaultString`
|
Textual message about the error.
||
||
`FaultDetail`
|
Detailed description of the reason for the error.
||
|#

## Examples of input data

# Python

```python
{
   'Login': 'agrom'
}
```

# PHP

```php
array(
   'Login' ='agrom'
)
```

# Perl

```perl
{
   'Login' ='agrom'
}
```

