I am using php, I have created datafeed using content API which is of contentType "local products".
$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"
)
)
);
Now I need to add products to this datafeed. I am using this api to add product
https://www.googleapis.com/content/v2.1/[Merchant_Id]/products?feedId=[Feed_id]&access_token=".[API_token];
The problem is the [Feed_id] which always show [feedId] Invalid feed id: xxxxxxxx I am using the same id for feed_id generated on adding local product datafeed from above request