Product Link Error

65 views
Skip to first unread message

Tanish Gupta

unread,
Nov 2, 2023, 12:57:54 PM11/2/23
to Google Ads API and AdWords API Forum
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

Google Ads API Forum Advisor

unread,
Nov 2, 2023, 4:55:13 PM11/2/23
to tanish.gupta....@gmail.com, adwor...@googlegroups.com
Hi Ritika,

Thank you for reaching out to the Google Ads API support team.

Upon checking, I understand you have provided the error logs but kindly note that error logs are not sufficient to investigate the issue so please provide us complete API logs (request and response with request-id and request header) generated at your end.

You may check these guides on how to Link your Merchant Center and Google Ads accounts.

If you are using a client library and haven't enabled the logging yet, I would request you to enable logging for the specific client library that you are using. You can refer to the guides Java.NetPHPPythonRuby or Perl to enable logging at your end. For REST interface requests, you can enable logging via the curl command by using the -i flag.

 ​​​​​​You can send the details via Reply privately to the author option, or direct private reply to this email.
 
This message is in relation to case "ref:!00D1U01174p.!5004Q02qA27j:ref"

Thanks,
 
Google Logo Google Ads API Team

 

Google Ads API Forum Advisor

unread,
Nov 2, 2023, 4:58:51 PM11/2/23
to tanish.gupta....@gmail.com, adwor...@googlegroups.com
Hi Tanish,

Thank you for reaching out to the Google Ads API support team. Please disregard the previous email.
Reply all
Reply to author
Forward
0 new messages