Skip to main content
PATCH
/
api
/
v1
/
google-ads-database-data
/
customers
/
{customer_id}
/
company
Assign Customer To Company
curl --request PATCH \
  --url http://localhost:8000/api/v1/google-ads-database-data/customers/{customer_id}/company \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "company_id": 123
}
'
{
  "id": 123,
  "date_added": "2023-11-07T05:31:56Z",
  "date_updated": "2023-11-07T05:31:56Z",
  "descriptive_name": "<string>",
  "currency_code": "<string>",
  "time_zone": "<string>",
  "status": "<string>",
  "manager": true,
  "is_active": true,
  "is_deleted": false
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

customer_id
integer
required

Query Parameters

token_id
integer | null

Body

application/json

Request schema for assigning a Google Ads customer to a company.

company_id
integer
required

The company ID to assign the customer to

Response

Successful Response

Schema for GoogleAdsCustomer model.

id
integer
required

The customer ID

date_added
string<date-time>
required
date_updated
string<date-time>
required
descriptive_name
string
required

The descriptive name of the customer

currency_code
string
required

The currency code

time_zone
string
required

The time zone

status
string
required

The status of the customer

manager
boolean
required

Whether the customer is a manager account

is_active
boolean
default:true
is_deleted
boolean
default:false