Hi 

Can you please look when i am linking the merchant center account to 
adwords account then i am getting the following error:
com.google.ads.googleads.v15.errors.GoogleAdsException: errors {
  error_code {
    field_error: REQUIRED
  }
  message: "The required field was not present."
  location {
  }
}
request_id: "SepTt0b-e-akbtnMX6g4uA"

My code for reference 
try (ProductLinkServiceClient service = 
remote.getLatestVersion().createProductLinkServiceClient()) 
{
ProductLink productLink = ProductLink.newBuilder().setResourceName(
ResourceNames.productLink(Long.parseLong(customerId), merchantAccountId
)).build();
CreateProductLinkResponse response = service.createProductLink(customerId, 
productLink);
return null;
}

Thanks
Tanish

-- 
-- 
=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~
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 
"Google Ads API and AdWords 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/c48fe3c9-246d-4e98-8146-f5a317bdcee3n%40googlegroups.com.
  • Pr... Tanish Gupta
    • ... 'Google Ads API Forum Advisor' via Google Ads API and AdWords API Forum

Reply via email to