Hi Wei,

Instead of using the customer_client_link resource, what you can do is
download the sample GAQL below in your client account to retrieve the
manager_link_id. You will be able to retrieve the manager_link_id and the
manager account id the account is connected to. Can you give this a try a
let me know if this resolves your question?

GAQL: SELECT customer_manager_link.manager_customer,
customer_manager_link.manager_link_id FROM customer_manager_link

Regards,
Dannison
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

On 05/16/19 22:01:26 [email protected] wrote:

Hi Dannison,

Gotcha, the case is I am creating the client account from root MCC with the
below example code:

try (CustomerServiceClient client =
googleAdsClient.getLatestVersion().createCustomerServiceClient()) {
    CreateCustomerClientResponse response =
            client.createCustomerClient(rootMcc, customer);


So the only thing I can get out of the response is the client resource name.

Or in another word, is there a way to get either manager_link_id or CustomerClientLink with this approach?



Thank you!


Regards,



Wei



On Thursday, May 16, 2019 at 3:11:34 AM UTC-4, googleadsapi-forumadvisor
wrote:

Hi Wei,

To retrieve the account linked to the root MCC along with the
manager_link_id. Query the GoogleAdsService in the root manager account
level to find the manager_link_id of the CustomerClientLink you created.
You may refer to the sample GAQL below.

GAQL: SELECT customer_client_link.manager_link_id, customer_client_link.client_customer
FROM customer_client_link

Regards,
Dannison
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=1-7069000026255&hl=en&ctx=1>

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
On 05/15/19 22:00:30 [email protected] wrote:

Hi Dannison,


Thank you for the explanation.
My further question will be we have the client account directly linked to
the root MCC account. How do we retrieve the manager_link_id from the root
MCC account that linked to this client account?


Thank you!

Regards,


Wei

On Tuesday, May 14, 2019 at 10:41:52 PM UTC-4, googleadsapi-forumadvisor
wrote:

Hi Jason,

Thank you for clarifying your concern. If your client account is not
directly linked to the root MCC account, there will be no manager_link_id.
The manager_link_id can only be retrieved with MCC accounts that are
directly linked to their child accounts.

Hope this answers your concern.

Regards,
Dannison
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=1-7069000026255&hl=en&ctx=1>

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
On 05/14/19 21:16:15 [email protected] wrote:

Hi Dannison,

I am totally agree with you.
I think my question should be more specific.
I understand that we can get the retrieve the CustomerManagerLink
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.resources#google.ads.googleads.v1.resources.CustomerManagerLink>
 object with CustomerManagerLinkService.GetCustomerManagerLink
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#customermanagerlinkservice>,
but the issue is the how do we get the manager_link_id for the link between
the client account and root mcc. I think this link was initialized between
them while creating the client account from root mcc.
Is there way to retrieve the manager_link_id for this kind of link?


Thank you!

Regards,


Jason

On Tuesday, May 14, 2019 at 3:49:12 AM UTC-4, googleadsapi-forumadvisor
wrote:

Hi Jason,

I am a colleague of Dave, allow me to provide support for your concern.
Getting the ManagerLink will not matter if you used the Google Ads UI or
the Google Ads API services to link the accounts. You can use the
CustomerManagerLinkService.GetCustomerManagerLink
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#customermanagerlinkservice>
method to retrieve the CustomerManagerLink
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.resources#google.ads.googleads.v1.resources.CustomerManagerLink>
object. Specifically, you would need the manager_link_id to change the
status of your link.

If I misunderstood your concern, kindly let me know by further elaborating
your concern.

Thanks and Regards,
Dannison
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=1-7069000026255&hl=en&ctx=1>

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
On 05/14/19 06:41:00 [email protected] wrote:

Hi Dave,

That makes sense.
I understand once we get the ManagerLink of them then we can use either
methods to mark the existing link as INACTIVE.
The only question is how can we get the ManagerLink between the client
account and root MCC, since they are linked together while creating the
client account from our root MCC instead of using the
CustomerManagerLinkService
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#google.ads.googleads.v1.services.CustomerManagerLinkService>
 or  CustomerClientLinkService
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#google.ads.googleads.v1.services.CustomerManagerLinkService>
.


Thank you!


Regards,



On Friday, May 10, 2019 at 1:17:15 AM UTC-4, googleadsapi-forumadvisor
wrote:

Hi,

Upon checking with the team, to be able to move the client account from
your root MCC to your sub MCC, you first need to mark the existing link as
INACTIVE. To mark the existing link as INACTIVE, you could use the
CustomerManagerLinkService.MutateCustomerManagerLink
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.services#google.ads.googleads.v1.services.CustomerManagerLinkService>
 method if you are using the MCC account, or you could use the
CustomerClientLinkService.MutateCustomerClientLink
<http://www.google.com/url?q=http%3A%2F%2FCustomerClientLinkService.MutateCustomerClientLink&sa=D&sntz=1&usg=AFQjCNH9ZKwY-p_o6wNsUAGlQPlnYLhMMw>
 method if you are using the client account. After successfully marking the
existing link as INACTIVE, you can now create the new link for your new
manager.

I hope this helps.

Regards,
Dave
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If not -- reply to this email and tell us what else we can do to help.

Take Survey
<https://support.google.com/google-ads/contact/survey_transactional?caseid=1-7069000026255&hl=en&ctx=1>

Also find us on our blog and discussion group:
http://googleadsdeveloper.blogspot.com/search/label/adwords_api
https://developers.google.com/adwords/api/community/
On 05/08/19 21:25:57 [email protected] wrote:

Hi Dave,

Got it.
But what should we do if we want to move the client account from root mcc
to a sub mcc?
I have tried to initialize a new link between the client account and sub
mcc, but it's giving me the error that client account has been managed
under the same mcc hierarchy.
I guess we need to  terminate the relationship between root mcc and client
account first.
So is there a way to update the managerLink to INACTIVE for the client
account that created by root mcc?

Thank you!


Regards,

On Wednesday, May 8, 2019 at 3:23:35 AM UTC-4, googleadsapi-forumadvisor
wrote:

Hi,

For the old manager account, you should update the managerLink
<https://developers.google.com/google-ads/api/reference/rpc/google.ads.googleads.v1.enums#google.ads.googleads.v1.enums.ManagerLinkStatusEnum.ManagerLinkStatus>
 to *INACTIVE* to indicate that the relationship is terminated. Take note
that you should only update the old manager account's managerLink once you
have accepted the invitation to your new manager account.

Let me know if this helps. Should you have further clarifications, feel
free to write back.

Regards,
Dave
Google Ads API Team


=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
Also find us on our blog and discussion group:
    https://ads-developers.googleblog.com/search/label/google_ads_api
    https://developers.google.com/adwords/api/community/
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~

Was your question answered? Please rate your experience with us by taking a
short survey.
If n

--
--
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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].
Visit this group at https://groups.google.com/group/adwords-api.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/adwords-api/ug1g8n68q00000008juus0000ugj28x64mjec1m74o30c1g68r34d9l%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
      • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
        • ... Jason f
          • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
            • ... Jason f
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... Jason f
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... Jason f
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... Jason f
              • ... googleadsapi-forumadvisor via AdWords API and Google Ads API Forum
              • ... Jason f
              • ... Jason f
  • RE: How... Google Ads API Forum Advisor Prod
  • RE: How... Google Ads API Forum Advisor Prod

Reply via email to