gogol-affiliates-0.0.1: Google Affiliate Network SDK.

Copyright(c) 2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.Resource.GAN.Publishers.Get

Contents

Description

Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.

See: Google Affiliate Network API Reference for gan.publishers.get.

Synopsis

REST Resource

type PublishersGetResource = "gan" :> ("v1beta1" :> (Capture "role" PublishersGetRole :> (Capture "roleId" Text :> ("publisher" :> (QueryParam "publisherId" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Publisher)))))) Source

A resource alias for gan.publishers.get method which the PublishersGet request conforms to.

Creating a Request

publishersGet Source

Creates a value of PublishersGet with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PublishersGet Source

Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.

See: publishersGet smart constructor.

Request Lenses

pgRoleId :: Lens' PublishersGet Text Source

The ID of the requesting advertiser or publisher.

pgRole :: Lens' PublishersGet PublishersGetRole Source

The role of the requester. Valid values: 'advertisers' or 'publishers'.

pgPublisherId :: Lens' PublishersGet (Maybe Text) Source

The ID of the publisher to look up. Optional.