While sending invitation manager account to client account getting 
following error

The change for mutate link is invalid
Request  failed with status "INVALID_ARGUMENT" and includes the following 
errors:
        Error with message "The change for mutate link is invalid.".
                On field: operation

Code is same as the official documentation. 

I have also tried to send invitation manually between accounts. It is 
sending. 
Its just google Ads api failing. 

def main(
client: GoogleAdsClient, customer_id: str, manager_customer_id: str
) -> None:
# This example assumes that the same credentials will work for both
# customers, but that may not be the case. If you need to use different
# credentials for each customer, then you may either update the client
# configuration or instantiate two clients, where at least one points to
# a specific configuration file so that both clients don't read the same
# 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

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.")
# [END link_manager_to_client]

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog:
https://googleadsdeveloper.blogspot.com/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

You received this message because you are subscribed to the Google
Groups "AdWords API and Google Ads API Forum" group.
To post to this group, send email to adwords-api@googlegroups.com
To unsubscribe from this group, send email to
adwords-api+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/adwords-api?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Google Ads API and AdWords API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to adwords-api+unsubscr...@googlegroups.com.
To view this discussion visit 
https://groups.google.com/d/msgid/adwords-api/b8472b8d-cfcd-4ff8-a958-16b8009d3e50n%40googlegroups.com.
  • IN... Subhasis Padhy
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to