RE: CustomerClientLink failure

2019-12-18 Thread Google Ads API Forum Advisor Prod
Hi Andy,

Thank you for writing to us regarding your concern. I understand you are 
looking to use CustomerClientLinkService to extend an invitation to a client 
account to link it to the manager account. Please find below the code snippet 
in Java to extend the invitation to the client account. Since the examples are 
not available in our client libraries I can provide samples in Java only at 
this point of time. Please try the similar steps in the client libraries of 
your requirement to extend the invitation. If you are still facing any issue, 
please share the complete request and response logs along with the client 
customer id against which you are making the API call in private message for me 
to investigate this further on my end.

private void runExample(
GoogleAdsClient googleAdsClient, long customerId) {
try (CustomerClientLinkServiceClient customerClientLinkServiceClient = 
googleAdsClient.getCustomerClientLinkServiceClient())
{

//Creating resource name for customer
String customerResourceName = ResourceNames.customer(123456789L);//the client 
account to which you are expanding the invitation.

//Creating customerClientLink object
CustomerClientLink customerClientLink = CustomerClientLink.newBuilder()
.setClientCustomer(StringValue.of(customerResourceName))
.setStatus(ManagerLinkStatus.PENDING)
.build();

//Creating operation for the mutate request
CustomerClientLinkOperation operation = CustomerClientLinkOperation.newBuilder()
.setCreate(customerClientLink)
.build();

// Send the operation in a mutate request.
MutateCustomerClientLinkResponse response =
customerClientLinkServiceClient.mutateCustomerClientLink("18xx17", 
operation); // Your manager account Id should be placed in the mutate call.
// Print the resource name of each updated object.
System.out.println(response.getResult());
}
}

P.S. Please use Reply privately to author option while sharing the details.

Regards,
Nikisha Patel, Google Ads API Team
ref:_00D1U1174p._5001UOEmgh: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 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 
"AdWords API and Google Ads 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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/aHHdm0Q2PYOS00PZEzDnj3SO2unc_onFqg9Q%40sfdc.net.


CustomerClientLink failure

2019-12-17 Thread Andy Kim

Hi there,
I'm trying to create "CustomerClientLink" operation.
It fails.

The request id and the error details are:

  "request-id": [
"Mp8NzB5L5wQw0Ulti4D5Ig"
  ],

details: 'The error code is not in this version.'

Could you help?

Thanks

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"AdWords API and Google Ads 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 on the web visit 
https://groups.google.com/d/msgid/adwords-api/f710472c-a9eb-4886-960a-6804f6a8d404%40googlegroups.com.