Internal Error on promotions.get

16 views
Skip to first unread message

Darren Shirley

unread,
Jan 27, 2023, 8:31:26 AMJan 27
to Google Content API for Shopping
Hey,

I am using the .net and the Google.Apis.ShoppingContent.v2_1 api. I can't seem to get the promotions as it is retuning internal error.

var promotionservice = ShoppingContentService.Promotions.Get(MerchantId, promotionId); 
 var promotion = promotionservice.Execute();

Any idea what is wrong?

Thanks,

Darren

Shopping API Forum Advisor

unread,
Jan 27, 2023, 12:26:52 PMJan 27
to darren....@onefeed.co.uk, google-content-...@googlegroups.com
Hi Darren,

The parameters that need to be given for get method are merchantId and id. The id should be in the format -
 
channel:contentLanguage:targetCountry:promotionId

https://developers.google.com/shopping-content/reference/rest/v2.1/promotions/get#path-parameters

If you are giving the right parameters and still seeing the error, then please share the following details using 'Reply privately to author' option:
  1. Merchant Center id
  2. API request and response in JSON format
  3. Date and timestamp of the above API request
  4. Are you able to make a successful request using 'Try this API': https://developers.google.com/shopping-content/reference/rest/v2.1/promotions/get
If you are not seeing the 'Reply privately to author' option, then send the details to email shopping-api-support@google.com using the same subject.

Thanks,

Google Logo
Lakshmi
Content API for Shopping Team
 


ref:_00D1U1174p._5004Q2iOTA6:ref
Reply all
Reply to author
Forward
0 new messages