我正在使用php,我已经使用contentType为“本地产品”的内容API创建了数据Feed。
$apiUrl = "https://www.googleapis.com/content/v2.1/[Merchant_Id]/datafeeds?access_token=".[API_token];
$request = array(
"contentType"=>"local products","fileName"=>"local_datafeedfile","name"=>"Local Datafeed","targets"=>array(
array(
"country"=>"IN","language"=>"EN"
)
)
);
现在,我需要将产品添加到此数据Feed中。 我正在使用此api添加产品
https://www.googleapis.com/content/v2.1/[Merchant_Id]/products?feedId=[Feed_id]&access_token=".[API_token];
问题是[Feed_id]始终显示 [feedId]无效的供稿ID:xxxxxxxx 我在从上述请求添加本地商品数据Feed时生成的feed_id使用了相同的ID