Error in API when Sending invitation to client from manager's account

4 views
Skip to first unread message

Subhasis Padhy

unread,
Oct 21, 2025, 10:41:19 PM (8 hours ago) Oct 21
to Google Ads API and AdWords API Forum
Hi, 
Getting following error when sending invitation from Manager's account through python API. 

Fault: errors {
  error_code {
    manager_link_error: INVALID_CHANGE
  }
  message: "The change for mutate link is invalid."
  location {
    field_path_elements {
      field_name: "operation"
    }
  }
}

Tried with multiple client ids, still the same error. If i invite them through UI, it works.
I am using the same code provided as a sample. It's not working. Seems to be a problem with the API. Got stuck with issue. Tried multiple ways. Will appreciate your help. 
Below is the code to invite. 

def main(
client: GoogleAdsClient,
customer_id: str,
manager_customer_id: str,
delete_existing: bool = False,
) -> None:

# file located in the $HOME dir.
customer_client_link_service: CustomerClientLinkServiceClient = client.get_service(
"CustomerClientLinkService"
)

# Extend an invitation to the client while authenticating as the manager.
client_link_operation: CustomerClientLinkOperation = client.get_type(
"CustomerClientLinkOperation"
)
client_link: CustomerClientLink = client_link_operation.create
client_link.client_customer = customer_client_link_service.customer_path(
customer_id
)
# client_link.status expects an enum value (int)
client_link.status = client.enums.ManagerLinkStatusEnum.PENDING.value

try:
response: MutateCustomerClientLinkResponse = (
customer_client_link_service.mutate_customer_client_link(
customer_id=manager_customer_id, operation=client_link_operation
)
)
resource_name: str = response.results[0].resource_name

print(
f'Extended an invitation from customer "{manager_customer_id}" to '
f'customer "{customer_id}" with client link resource_name '
f'"{resource_name}"'
)

print(
"✅ Invitation sent successfully! Client should see the invitation in their Google Ads interface."
)
except GoogleAdsException as ex:
print(f"❌ Failed to create invitation:")
print(f" Request ID: {ex.request_id}")
print(f" Status: {ex.error.code().name}")
for error in ex.failure.errors:
print(f" Error: {error.message}")
if error.location:
for field_path_element in error.location.field_path_elements:
print(f" On field: {field_path_element.field_name}")
raise 


Google Ads API Forum Advisor

unread,
2:33 AM (4 hours ago) 2:33 AM
to speeds...@gmail.com, adwor...@googlegroups.com

Hi,

Thank you for reaching out to the Google Ads API support team.

As per the provided information, I understand that you are encountering an INVALID_CHANGE error. This error indicates that the change for the mutate link is invalid. I would recommend you refer to this  CustomerManagerLinkService documentation to learn more about it and to know the valid request body for this service. Additionally, I would suggest Linking to Manager Accounts documentation for more detailed information.

In order to assist you further, kindly share the complete updated API logs (request and response logs with request-id and request header) generated at your end to assist you better. As you are using the Python client library, you can enable the logging by following this guide

You can send the details via Reply privately to the author option, or direct private reply to this email.


Thanks,
 
Google Logo Google Ads API Team

Feedback
How was our support today?

rating1    rating2    rating3    rating4    rating5
[2025-10-22 06:32:24Z GMT] This message is in relation to case "ref:!00D1U01174p.!500Ht01vRTFh:ref" (ADR-00336177)



Reply all
Reply to author
Forward
0 new messages