Hello,
I am running the test locally (localhost), and have also tried to create a New API key in Content API page inside Google Merchant Center directly, and it doesn't work neither. Both ended up creating a service account respectively. (Account access page in Google Merchant Center show those service accounts as Pending)
Here is the code snippet.
string[] scopes = new string[] { ShoppingContentService.Scope.Content };
var credential = GoogleCredential.FromFile("content-api-key.json").CreateScoped(scopes);
var service = new ShoppingContentService(new BaseClientService.Initializer
{
ApplicationName = "Test App Name",
HttpClientInitializer = credential
});
var authinfo = service.Accounts.Authinfo().Execute();
And AccountIdentifiers is always null. I could see content-api-key.json loaded just fine while debugging. I am the sole owner and user of the Account. The API Key json file was downloaded directly as I was creating the New API key.
I know this looks simple, but I cannot see where an error could come from.
Thanks in advance!