Assign a Google Ads customer to a company.
The user must be a member of the target company to perform this operation.
Args:
customer_id: The Google Ads customer ID to assign
assign_customer_to_company_data: Request body containing the company_id to which the customer will be assigned
oauth2_token: The OAuth2Token used to verify that the user has the ownership of the GoogleAdsCustomer
current_user: The currently authenticated User
Returns: GoogleAdsCustomerSchema: The updated Google Ads customer with new company assigned.
Raises: HTTPException: 404 if customer or company not found, 403 if user is not a member of target company
The access token received from the authorization server in the OAuth 2.0 flow.
Request schema for assigning a Google Ads customer to a company.
The company ID to assign the customer to
Successful Response
Schema for GoogleAdsCustomer model.
The customer ID
The descriptive name of the customer
The currency code
The time zone
The status of the customer
Whether the customer is a manager account