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.Advertisers.Get

Contents

Description

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

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

Synopsis

REST Resource

type AdvertisersGetResource = "gan" :> ("v1beta1" :> (Capture "role" AdvertisersGetRole :> (Capture "roleId" Text :> ("advertiser" :> (QueryParam "advertiserId" Text :> (QueryParam "alt" AltJSON :> Get `[JSON]` Advertiser)))))) Source

A resource alias for gan.advertisers.get method which the AdvertisersGet request conforms to.

Creating a Request

advertisersGet Source

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

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

data AdvertisersGet Source

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

See: advertisersGet smart constructor.

Request Lenses

agAdvertiserId :: Lens' AdvertisersGet (Maybe Text) Source

The ID of the advertiser to look up. Optional.

agRoleId :: Lens' AdvertisersGet Text Source

The ID of the requesting advertiser or publisher.

agRole :: Lens' AdvertisersGet AdvertisersGetRole Source

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