Hi Mitchell,

I forgot to mention that I'm using the new google ads api, apologies about 
that. However, I follow the exact process and it works great with new 
accounts. My scenario is as follows

1) The manager unlinks a client by setting the state of the Customer Client 
Link to 'INACTIVE'
2) The manager wants to re-link the same client, checks if there is already 
a customer client  link and finds the inactive one

- Trying to mutate the existing CustomerClientLink to 'PENDING' fails with
{
  "StatusCode": 3,
  "Details": "Request contains an invalid argument.",
  "RequestId": "NBFq6ewcP6qm-F0wW2m0yg",
  "Failure": {
    "errors": [
      {
        "errorCode": {
          "fieldError": "INVALID_VALUE"
        },
        "message": "The field's value is invalid.",
        "trigger": {
          "int64Value": "3"
        },
        "location": {
          "fieldPathElements": [
            {
              "fieldName": "operation"
            },
            {
              "fieldName": "update"
            },
            {
              "fieldName": "status"
            }
          ]
        }
      }
    ]
  }
}


- Trying to create a new CustomerClientLink with "PENDING" state fails with
{
  "StatusCode": 3,
  "Details": "Request contains an invalid argument.",
  "RequestId": "GnFZoIlG0fNNCg3FaGkD4g",
  "Failure": {
    "errors": [
      {
        "errorCode": {
          "customerClientLinkError": "CLIENT_ALREADY_MANAGED_IN_HIERARCHY"
        },
        "message": "The client sending the invitation already has a 
manager.",
        "trigger": {
          "stringValue": ""
        },
        "location": {
          "fieldPathElements": [
            {
              "fieldName": "operation"
            }
          ]
        }
      }
    ]
  }
}


 

On Wednesday, April 1, 2020 at 10:46:20 PM UTC+2, adsapiforumadvisor wrote:
>
> Hi Alex,
>
> I will be responding on behalf of my colleague Nikisha as she is not 
> currently available. As explained here 
> <https://developers.google.com/adwords/api/docs/guides/accounts-overview#get_pending_invitations>,
>  
> only pending invitations will be received from the ManagedCustomerService 
> call. In your situation, you should send a new invitation from the manager 
> account by following the instructions here 
> <https://developers.google.com/adwords/api/docs/guides/accounts-overview#extending_invitations>
>  
> and accept that request from the client account.
>
> Regards,
> Mitchell
> Google Ads API Team
>
> ref:_00D1U1174p._5001UXUBSu:ref
>

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
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 
"AdWords API and Google Ads API Forum" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ea11bf49-2406-44e7-b516-c905d89291d1%40googlegroups.com.

Reply via email to