We have a mobile app wherein customer registers and they can link their adwords account under our Mcc and they can view their performance data.
However, on Friday i.e 17th April 2020 we received ManagedCustomerServiceError.UNKNOWN error in our logs.
This customer tried the linking process twice. First time he got the ManagedCustomerServiceError.UNKNOWN. And the second time he was linked successfully under our mcc.
We checked the SOAP logs and "linkStatus" "INACTIVE" request was initiated but in our .NET Code we are initiating only two types of mutate link requests. One is we set the LinkStatus.PENDING and another is LinkStatus.ACTIVE;
Here is the .NET code sample.
1.) Link Status :- Pending
Log(Convert.ToString(DateTime.Now + " mutatelinkpart one start"));
((AdWordsAppConfig)usermanager.Config).ClientCustomerId = "managermcc";// manager mcc id
LinkOperation linkOp = new LinkOperation();
ManagedCustomerLink link = new ManagedCustomerLink();
link.clientCustomerId = cst[0].customerId;
link.linkStatus = LinkStatus.PENDING;
link.managerCustomerId = managermcc;
linkOp.operand = link;
linkOp.@operator = Operator.ADD;
linkOp.operatorSpecified = true;
2.) Link Status Active
// Accepts the account link request on behalf of customer
Log(Convert.ToString(DateTime.Now + " mutatelinkpart two start"));
((AdWordsAppConfig)user.Config).ClientCustomerId = client.customerId.ToString();
LinkOperation linkOp1 = new LinkOperation();
ManagedCustomerLink link1 = new ManagedCustomerLink();
link1.clientCustomerId = client .customerId;
link1.linkStatus = LinkStatus.ACTIVE;
link1.managerCustomerId = managermcc;
linkOp1.operand = link1;
linkOp1.@operator = Operator.SET;
Hi Team,
We have a mobile app wherein customer registers and they can link their adwords account under our Mcc and they can view their performance data.
However, on Friday i.e 17th April 2020 we received ManagedCustomerServiceError.UNKNOWN error in our logs.
This customer tried the linking process twice. First time he got the ManagedCustomerServiceError.UNKNOWN. And the second time he was linked successfully under our mcc.
We checked the SOAP logs and "linkStatus" "INACTIVE" request was initiated but in our .NET Code we are initiating only two types of mutate link requests. One is we set the LinkStatus.PENDING and another is LinkStatus.ACTIVE;
Here is the .NET code sample.
1.) Link Status :- Pending Log(Convert.ToString(DateTime.Now + " mutatelinkpart one start")); ((AdWordsAppConfig)usermanager.Config).ClientCustomerId = "managermcc";// manager mcc id LinkOperation linkOp = new LinkOperation(); ManagedCustomerLink link = new ManagedCustomerLink(); link.clientCustomerId = cst[0].customerId; link.linkStatus = LinkStatus.PENDING; link.managerCustomerId = managermcc; linkOp.operand = link; linkOp.@operator = Operator.ADD; linkOp.operatorSpecified = true;
mcservice.mutateLink(new LinkOperation[] { linkOp }); Log(Convert.ToString(DateTime.Now + " mutatelinkpart one End"));
2.) Link Status Active // Accepts the account link request on behalf of customer Log(Convert.ToString(DateTime.Now + " mutatelinkpart two start")); ((AdWordsAppConfig)user.Config).ClientCustomerId = client.customerId.ToString(); LinkOperation linkOp1 = new LinkOperation(); ManagedCustomerLink link1 = new ManagedCustomerLink(); link1.clientCustomerId = client .customerId; link1.linkStatus = LinkStatus.ACTIVE; link1.managerCustomerId = managermcc; linkOp1.operand = link1; linkOp1.@operator = Operator.SET;
So what could be the reason for the LinkStatus INACTIVE request to be initiated in the SOAP logs.