Ad Exchange Seller REST API and API Key

38 views
Skip to first unread message

ALTAY KARAKUŞ

unread,
May 26, 2015, 9:39:15 AM5/26/15
to google-api-d...@googlegroups.com
Hi,
I am trying to access Ad Exchange Seller REST API with API key with C#, using Google.Apis.AdExchangeSeller.v2_0.

But getting following error;

Google.GoogleApiException: Google.Apis.Requests.RequestError
Login Required [401]

Is there way that I can access to Ad Exchange Seller REST API without needing user interaction.

My code is as simple as following:

var service = new AdExchangeSellerService(
new BaseClientService.Initializer
{
ApplicationName = "Advoly Client",
ApiKey ="[MY API KEY]",
}
);

var accounts = service.Accounts.List().Execute();
Reply all
Reply to author
Forward
0 new messages