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.

Attention.
  • 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.

Input data

The input data structure in JSON is shown below.

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

Parameters are described below.

Parameter Description Required
EnableSharedAccountRequest object
Login The username of the client to enable the shared account for. Yes

Output data

The output data structure in JSON is shown below.

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

Parameters are described below.

Parameter Description
EnableSharedAccountResponse object
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.
Error object
FaultCode Error code.
FaultString Textual message about the error.
FaultDetail Detailed description of the reason for the error.

Examples of input data

Python

{
   'Login': 'agrom'
}

PHP

array(
   'Login' => 'agrom'
)

Perl

{
   'Login' => 'agrom'
}