api: google.golang.org/api/adexchangebuyer/v1.3 Index | Files

package adexchangebuyer

import "google.golang.org/api/adexchangebuyer/v1.3"

Package adexchangebuyer provides access to the Ad Exchange Buyer API.

For product documentation, see: https://developers.google.com/ad-exchange/buyer-rest

Creating a client

Usage example:

import "google.golang.org/api/adexchangebuyer/v1.3"
...
ctx := context.Background()
adexchangebuyerService, err := adexchangebuyer.NewService(ctx)

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support API keys), use option.WithAPIKey:

adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuth flow), use option.WithTokenSource:

config := &oauth2.Config{...}
// ...
token, err := config.Exchange(ctx, ...)
adexchangebuyerService, err := adexchangebuyer.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

adexchangebuyer-gen.go

Constants

const (
    // Manage your Ad Exchange buyer account configuration
    AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchange.buyer"
)

OAuth2 scopes used by this API.

type Account Uses

type Account struct {
    // BidderLocation: Your bidder locations that have distinct URLs.
    BidderLocation []*AccountBidderLocation `json:"bidderLocation,omitempty"`

    // CookieMatchingNid: The nid parameter value used in cookie match
    // requests. Please contact your technical account manager if you need
    // to change this.
    CookieMatchingNid string `json:"cookieMatchingNid,omitempty"`

    // CookieMatchingUrl: The base URL used in cookie match requests.
    CookieMatchingUrl string `json:"cookieMatchingUrl,omitempty"`

    // Id: Account id.
    Id  int64 `json:"id,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // MaximumActiveCreatives: The maximum number of active creatives that
    // an account can have, where a creative is active if it was inserted or
    // bid with in the last 30 days. Please contact your technical account
    // manager if you need to change this.
    MaximumActiveCreatives int64 `json:"maximumActiveCreatives,omitempty"`

    // MaximumTotalQps: The sum of all bidderLocation.maximumQps values
    // cannot exceed this. Please contact your technical account manager if
    // you need to change this.
    MaximumTotalQps int64 `json:"maximumTotalQps,omitempty"`

    // NumberActiveCreatives: The number of creatives that this account
    // inserted or bid with in the last 30 days.
    NumberActiveCreatives int64 `json:"numberActiveCreatives,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "BidderLocation") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BidderLocation") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Account: Configuration data for an Ad Exchange buyer account.

func (*Account) MarshalJSON Uses

func (s *Account) MarshalJSON() ([]byte, error)

type AccountBidderLocation Uses

type AccountBidderLocation struct {
    // MaximumQps: The maximum queries per second the Ad Exchange will send.
    MaximumQps int64 `json:"maximumQps,omitempty"`

    // Region: The geographical region the Ad Exchange should send requests
    // from. Only used by some quota systems, but always setting the value
    // is recommended. Allowed values:
    // - ASIA
    // - EUROPE
    // - US_EAST
    // - US_WEST
    Region string `json:"region,omitempty"`

    // Url: The URL to which the Ad Exchange will send bid requests.
    Url string `json:"url,omitempty"`

    // ForceSendFields is a list of field names (e.g. "MaximumQps") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "MaximumQps") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*AccountBidderLocation) MarshalJSON Uses

func (s *AccountBidderLocation) MarshalJSON() ([]byte, error)

type AccountsGetCall Uses

type AccountsGetCall struct {
    // contains filtered or unexported fields
}

func (*AccountsGetCall) Context Uses

func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsGetCall) Do Uses

func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "adexchangebuyer.accounts.get" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsGetCall) Fields Uses

func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsGetCall) Header Uses

func (c *AccountsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsGetCall) IfNoneMatch Uses

func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsList Uses

type AccountsList struct {
    // Items: A list of accounts.
    Items []*Account `json:"items,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AccountsList: An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.

func (*AccountsList) MarshalJSON Uses

func (s *AccountsList) MarshalJSON() ([]byte, error)

type AccountsListCall Uses

type AccountsListCall struct {
    // contains filtered or unexported fields
}

func (*AccountsListCall) Context Uses

func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsListCall) Do Uses

func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsList, error)

Do executes the "adexchangebuyer.accounts.list" call. Exactly one of *AccountsList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsListCall) Fields Uses

func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsListCall) Header Uses

func (c *AccountsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsListCall) IfNoneMatch Uses

func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsPatchCall Uses

type AccountsPatchCall struct {
    // contains filtered or unexported fields
}

func (*AccountsPatchCall) Context Uses

func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPatchCall) Do Uses

func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "adexchangebuyer.accounts.patch" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsPatchCall) Fields Uses

func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsPatchCall) Header Uses

func (c *AccountsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsService Uses

type AccountsService struct {
    // contains filtered or unexported fields
}

func NewAccountsService Uses

func NewAccountsService(s *Service) *AccountsService

func (*AccountsService) Get Uses

func (r *AccountsService) Get(id int64) *AccountsGetCall

Get: Gets one account by ID.

func (*AccountsService) List Uses

func (r *AccountsService) List() *AccountsListCall

List: Retrieves the authenticated user's list of accounts.

func (*AccountsService) Patch Uses

func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall

Patch: Updates an existing account. This method supports patch semantics.

func (*AccountsService) Update Uses

func (r *AccountsService) Update(id int64, account *Account) *AccountsUpdateCall

Update: Updates an existing account.

type AccountsUpdateCall Uses

type AccountsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*AccountsUpdateCall) Context Uses

func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsUpdateCall) Do Uses

func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error)

Do executes the "adexchangebuyer.accounts.update" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsUpdateCall) Fields Uses

func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*AccountsUpdateCall) Header Uses

func (c *AccountsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BillingInfo Uses

type BillingInfo struct {
    // AccountId: Account id.
    AccountId int64 `json:"accountId,omitempty"`

    // AccountName: Account name.
    AccountName string `json:"accountName,omitempty"`

    // BillingId: A list of adgroup IDs associated with this particular
    // account. These IDs may show up as part of a realtime bidding
    // BidRequest, which indicates a bid request for this account.
    BillingId []string `json:"billingId,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

BillingInfo: The configuration data for an Ad Exchange billing info.

func (*BillingInfo) MarshalJSON Uses

func (s *BillingInfo) MarshalJSON() ([]byte, error)

type BillingInfoGetCall Uses

type BillingInfoGetCall struct {
    // contains filtered or unexported fields
}

func (*BillingInfoGetCall) Context Uses

func (c *BillingInfoGetCall) Context(ctx context.Context) *BillingInfoGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingInfoGetCall) Do Uses

func (c *BillingInfoGetCall) Do(opts ...googleapi.CallOption) (*BillingInfo, error)

Do executes the "adexchangebuyer.billingInfo.get" call. Exactly one of *BillingInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BillingInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingInfoGetCall) Fields Uses

func (c *BillingInfoGetCall) Fields(s ...googleapi.Field) *BillingInfoGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingInfoGetCall) Header Uses

func (c *BillingInfoGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingInfoGetCall) IfNoneMatch Uses

func (c *BillingInfoGetCall) IfNoneMatch(entityTag string) *BillingInfoGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BillingInfoList Uses

type BillingInfoList struct {
    // Items: A list of billing info relevant for your account.
    Items []*BillingInfo `json:"items,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

BillingInfoList: A billing info feed lists Billing Info the Ad Exchange buyer account has access to. Each entry in the feed corresponds to a single billing info.

func (*BillingInfoList) MarshalJSON Uses

func (s *BillingInfoList) MarshalJSON() ([]byte, error)

type BillingInfoListCall Uses

type BillingInfoListCall struct {
    // contains filtered or unexported fields
}

func (*BillingInfoListCall) Context Uses

func (c *BillingInfoListCall) Context(ctx context.Context) *BillingInfoListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BillingInfoListCall) Do Uses

func (c *BillingInfoListCall) Do(opts ...googleapi.CallOption) (*BillingInfoList, error)

Do executes the "adexchangebuyer.billingInfo.list" call. Exactly one of *BillingInfoList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BillingInfoList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BillingInfoListCall) Fields Uses

func (c *BillingInfoListCall) Fields(s ...googleapi.Field) *BillingInfoListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BillingInfoListCall) Header Uses

func (c *BillingInfoListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BillingInfoListCall) IfNoneMatch Uses

func (c *BillingInfoListCall) IfNoneMatch(entityTag string) *BillingInfoListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BillingInfoService Uses

type BillingInfoService struct {
    // contains filtered or unexported fields
}

func NewBillingInfoService Uses

func NewBillingInfoService(s *Service) *BillingInfoService

func (*BillingInfoService) Get Uses

func (r *BillingInfoService) Get(accountId int64) *BillingInfoGetCall

Get: Returns the billing information for one account specified by account ID.

func (*BillingInfoService) List Uses

func (r *BillingInfoService) List() *BillingInfoListCall

List: Retrieves a list of billing information for all accounts of the authenticated user.

type Budget Uses

type Budget struct {
    // AccountId: The id of the account. This is required for get and update
    // requests.
    AccountId int64 `json:"accountId,omitempty,string"`

    // BillingId: The billing id to determine which adgroup to provide
    // budget information for. This is required for get and update requests.
    BillingId int64 `json:"billingId,omitempty,string"`

    // BudgetAmount: The daily budget amount in unit amount of the account
    // currency to apply for the billingId provided. This is required for
    // update requests.
    BudgetAmount int64 `json:"budgetAmount,omitempty,string"`

    // CurrencyCode: The currency code for the buyer. This cannot be altered
    // here.
    CurrencyCode string `json:"currencyCode,omitempty"`

    // Id: The unique id that describes this item.
    Id  string `json:"id,omitempty"`

    // Kind: The kind of the resource, i.e. "adexchangebuyer#budget".
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Budget: The configuration data for Ad Exchange RTB - Budget API.

func (*Budget) MarshalJSON Uses

func (s *Budget) MarshalJSON() ([]byte, error)

type BudgetGetCall Uses

type BudgetGetCall struct {
    // contains filtered or unexported fields
}

func (*BudgetGetCall) Context Uses

func (c *BudgetGetCall) Context(ctx context.Context) *BudgetGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BudgetGetCall) Do Uses

func (c *BudgetGetCall) Do(opts ...googleapi.CallOption) (*Budget, error)

Do executes the "adexchangebuyer.budget.get" call. Exactly one of *Budget or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Budget.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BudgetGetCall) Fields Uses

func (c *BudgetGetCall) Fields(s ...googleapi.Field) *BudgetGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BudgetGetCall) Header Uses

func (c *BudgetGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BudgetGetCall) IfNoneMatch Uses

func (c *BudgetGetCall) IfNoneMatch(entityTag string) *BudgetGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BudgetPatchCall Uses

type BudgetPatchCall struct {
    // contains filtered or unexported fields
}

func (*BudgetPatchCall) Context Uses

func (c *BudgetPatchCall) Context(ctx context.Context) *BudgetPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BudgetPatchCall) Do Uses

func (c *BudgetPatchCall) Do(opts ...googleapi.CallOption) (*Budget, error)

Do executes the "adexchangebuyer.budget.patch" call. Exactly one of *Budget or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Budget.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BudgetPatchCall) Fields Uses

func (c *BudgetPatchCall) Fields(s ...googleapi.Field) *BudgetPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BudgetPatchCall) Header Uses

func (c *BudgetPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type BudgetService Uses

type BudgetService struct {
    // contains filtered or unexported fields
}

func NewBudgetService Uses

func NewBudgetService(s *Service) *BudgetService

func (*BudgetService) Get Uses

func (r *BudgetService) Get(accountId int64, billingId int64) *BudgetGetCall

Get: Returns the budget information for the adgroup specified by the accountId and billingId.

func (*BudgetService) Patch Uses

func (r *BudgetService) Patch(accountId int64, billingId int64, budget *Budget) *BudgetPatchCall

Patch: Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.

func (*BudgetService) Update Uses

func (r *BudgetService) Update(accountId int64, billingId int64, budget *Budget) *BudgetUpdateCall

Update: Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.

type BudgetUpdateCall Uses

type BudgetUpdateCall struct {
    // contains filtered or unexported fields
}

func (*BudgetUpdateCall) Context Uses

func (c *BudgetUpdateCall) Context(ctx context.Context) *BudgetUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BudgetUpdateCall) Do Uses

func (c *BudgetUpdateCall) Do(opts ...googleapi.CallOption) (*Budget, error)

Do executes the "adexchangebuyer.budget.update" call. Exactly one of *Budget or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Budget.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BudgetUpdateCall) Fields Uses

func (c *BudgetUpdateCall) Fields(s ...googleapi.Field) *BudgetUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*BudgetUpdateCall) Header Uses

func (c *BudgetUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Creative Uses

type Creative struct {
    // HTMLSnippet: The HTML snippet that displays the ad when inserted in
    // the web page. If set, videoURL should not be set.
    HTMLSnippet string `json:"HTMLSnippet,omitempty"`

    // AccountId: Account id.
    AccountId int64 `json:"accountId,omitempty"`

    AdTechnologyProviders *CreativeAdTechnologyProviders `json:"adTechnologyProviders,omitempty"`

    // AdvertiserId: Detected advertiser id, if any. Read-only. This field
    // should not be set in requests.
    AdvertiserId googleapi.Int64s `json:"advertiserId,omitempty"`

    // AdvertiserName: The name of the company being advertised in the
    // creative.
    AdvertiserName string `json:"advertiserName,omitempty"`

    // AgencyId: The agency id for this creative.
    AgencyId int64 `json:"agencyId,omitempty,string"`

    // ApiUploadTimestamp: The last upload timestamp of this creative if it
    // was uploaded via API. Read-only. The value of this field is
    // generated, and will be ignored for uploads. (formatted RFC 3339
    // timestamp).
    ApiUploadTimestamp string `json:"apiUploadTimestamp,omitempty"`

    // Attribute: All attributes for the ads that may be shown from this
    // snippet.
    Attribute []int64 `json:"attribute,omitempty"`

    // BuyerCreativeId: A buyer-specific id identifying the creative in this
    // ad.
    BuyerCreativeId string `json:"buyerCreativeId,omitempty"`

    // ClickThroughUrl: The set of destination urls for the snippet.
    ClickThroughUrl []string `json:"clickThroughUrl,omitempty"`

    // Corrections: Shows any corrections that were applied to this
    // creative. Read-only. This field should not be set in requests.
    Corrections []*CreativeCorrections `json:"corrections,omitempty"`

    // DisapprovalReasons: The reasons for disapproval, if any. Note that
    // not all disapproval reasons may be categorized, so it is possible for
    // the creative to have a status of DISAPPROVED with an empty list for
    // disapproval_reasons. In this case, please reach out to your TAM to
    // help debug the issue. Read-only. This field should not be set in
    // requests.
    DisapprovalReasons []*CreativeDisapprovalReasons `json:"disapprovalReasons,omitempty"`

    // FilteringReasons: The filtering reasons for the creative. Read-only.
    // This field should not be set in requests.
    FilteringReasons *CreativeFilteringReasons `json:"filteringReasons,omitempty"`

    // Height: Ad height.
    Height int64 `json:"height,omitempty"`

    // ImpressionTrackingUrl: The set of urls to be called to record an
    // impression.
    ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // NativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be
    // set.
    NativeAd *CreativeNativeAd `json:"nativeAd,omitempty"`

    // ProductCategories: Detected product categories, if any. Read-only.
    // This field should not be set in requests.
    ProductCategories []int64 `json:"productCategories,omitempty"`

    // RestrictedCategories: All restricted categories for the ads that may
    // be shown from this snippet.
    RestrictedCategories []int64 `json:"restrictedCategories,omitempty"`

    // SensitiveCategories: Detected sensitive categories, if any.
    // Read-only. This field should not be set in requests.
    SensitiveCategories []int64 `json:"sensitiveCategories,omitempty"`

    // Status: Creative serving status. Read-only. This field should not be
    // set in requests.
    Status string `json:"status,omitempty"`

    // VendorType: All vendor types for the ads that may be shown from this
    // snippet.
    VendorType []int64 `json:"vendorType,omitempty"`

    // Version: The version for this creative. Read-only. This field should
    // not be set in requests.
    Version int64 `json:"version,omitempty"`

    // VideoURL: The URL to fetch a video ad. If set, HTMLSnippet and the
    // nativeAd should not be set.
    VideoURL string `json:"videoURL,omitempty"`

    // Width: Ad width.
    Width int64 `json:"width,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "HTMLSnippet") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HTMLSnippet") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Creative: A creative and its classification data.

func (*Creative) MarshalJSON Uses

func (s *Creative) MarshalJSON() ([]byte, error)

type CreativeAdTechnologyProviders Uses

type CreativeAdTechnologyProviders struct {
    DetectedProviderIds googleapi.Int64s `json:"detectedProviderIds,omitempty"`

    HasUnidentifiedProvider bool `json:"hasUnidentifiedProvider,omitempty"`

    // ForceSendFields is a list of field names (e.g. "DetectedProviderIds")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DetectedProviderIds") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*CreativeAdTechnologyProviders) MarshalJSON Uses

func (s *CreativeAdTechnologyProviders) MarshalJSON() ([]byte, error)

type CreativeCorrections Uses

type CreativeCorrections struct {
    // Details: Additional details about the correction.
    Details []string `json:"details,omitempty"`

    // Reason: The type of correction that was applied to the creative.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Details") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Details") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CreativeCorrections) MarshalJSON Uses

func (s *CreativeCorrections) MarshalJSON() ([]byte, error)

type CreativeDisapprovalReasons Uses

type CreativeDisapprovalReasons struct {
    // Details: Additional details about the reason for disapproval.
    Details []string `json:"details,omitempty"`

    // Reason: The categorized reason for disapproval.
    Reason string `json:"reason,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Details") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Details") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*CreativeDisapprovalReasons) MarshalJSON Uses

func (s *CreativeDisapprovalReasons) MarshalJSON() ([]byte, error)

type CreativeFilteringReasons Uses

type CreativeFilteringReasons struct {
    // Date: The date in ISO 8601 format for the data. The data is collected
    // from 00:00:00 to 23:59:59 in PST.
    Date string `json:"date,omitempty"`

    // Reasons: The filtering reasons.
    Reasons []*CreativeFilteringReasonsReasons `json:"reasons,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Date") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Date") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CreativeFilteringReasons: The filtering reasons for the creative. Read-only. This field should not be set in requests.

func (*CreativeFilteringReasons) MarshalJSON Uses

func (s *CreativeFilteringReasons) MarshalJSON() ([]byte, error)

type CreativeFilteringReasonsReasons Uses

type CreativeFilteringReasonsReasons struct {
    // FilteringCount: The number of times the creative was filtered for the
    // status. The count is aggregated across all publishers on the
    // exchange.
    FilteringCount int64 `json:"filteringCount,omitempty,string"`

    // FilteringStatus: The filtering status code. Please refer to the
    // creative-status-codes.txt file for different statuses.
    FilteringStatus int64 `json:"filteringStatus,omitempty"`

    // ForceSendFields is a list of field names (e.g. "FilteringCount") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "FilteringCount") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

func (*CreativeFilteringReasonsReasons) MarshalJSON Uses

func (s *CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error)

type CreativeNativeAd Uses

type CreativeNativeAd struct {
    Advertiser string `json:"advertiser,omitempty"`

    // AppIcon: The app icon, for app download ads.
    AppIcon *CreativeNativeAdAppIcon `json:"appIcon,omitempty"`

    // Body: A long description of the ad.
    Body string `json:"body,omitempty"`

    // CallToAction: A label for the button that the user is supposed to
    // click.
    CallToAction string `json:"callToAction,omitempty"`

    // ClickTrackingUrl: The URL to use for click tracking.
    ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"`

    // Headline: A short title for the ad.
    Headline string `json:"headline,omitempty"`

    // Image: A large image.
    Image *CreativeNativeAdImage `json:"image,omitempty"`

    // ImpressionTrackingUrl: The URLs are called when the impression is
    // rendered.
    ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"`

    // Logo: A smaller image, for the advertiser logo.
     *CreativeNativeAdLogo `json:"logo,omitempty"`

    // Price: The price of the promoted app including the currency info.
    Price string `json:"price,omitempty"`

    // StarRating: The app rating in the app store. Must be in the range
    // [0-5].
    StarRating float64 `json:"starRating,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Advertiser") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Advertiser") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CreativeNativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be set.

func (*CreativeNativeAd) MarshalJSON Uses

func (s *CreativeNativeAd) MarshalJSON() ([]byte, error)

func (*CreativeNativeAd) UnmarshalJSON Uses

func (s *CreativeNativeAd) UnmarshalJSON(data []byte) error

type CreativeNativeAdAppIcon Uses

type CreativeNativeAdAppIcon struct {
    Height int64 `json:"height,omitempty"`

    Url string `json:"url,omitempty"`

    Width int64 `json:"width,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Height") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Height") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CreativeNativeAdAppIcon: The app icon, for app download ads.

func (*CreativeNativeAdAppIcon) MarshalJSON Uses

func (s *CreativeNativeAdAppIcon) MarshalJSON() ([]byte, error)

type CreativeNativeAdImage Uses

type CreativeNativeAdImage struct {
    Height int64 `json:"height,omitempty"`

    Url string `json:"url,omitempty"`

    Width int64 `json:"width,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Height") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Height") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CreativeNativeAdImage: A large image.

func (*CreativeNativeAdImage) MarshalJSON Uses

func (s *CreativeNativeAdImage) MarshalJSON() ([]byte, error)
type CreativeNativeAdLogo struct {
    Height int64 `json:"height,omitempty"`

    Url string `json:"url,omitempty"`

    Width int64 `json:"width,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Height") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Height") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CreativeNativeAdLogo: A smaller image, for the advertiser logo.

func (*CreativeNativeAdLogo) MarshalJSON Uses

func (s *CreativeNativeAdLogo) MarshalJSON() ([]byte, error)

type CreativesGetCall Uses

type CreativesGetCall struct {
    // contains filtered or unexported fields
}

func (*CreativesGetCall) Context Uses

func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CreativesGetCall) Do Uses

func (c *CreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error)

Do executes the "adexchangebuyer.creatives.get" call. Exactly one of *Creative or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Creative.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CreativesGetCall) Fields Uses

func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CreativesGetCall) Header Uses

func (c *CreativesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CreativesGetCall) IfNoneMatch Uses

func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type CreativesInsertCall Uses

type CreativesInsertCall struct {
    // contains filtered or unexported fields
}

func (*CreativesInsertCall) Context Uses

func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CreativesInsertCall) Do Uses

func (c *CreativesInsertCall) Do(opts ...googleapi.CallOption) (*Creative, error)

Do executes the "adexchangebuyer.creatives.insert" call. Exactly one of *Creative or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Creative.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CreativesInsertCall) Fields Uses

func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CreativesInsertCall) Header Uses

func (c *CreativesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CreativesList Uses

type CreativesList struct {
    // Items: A list of creatives.
    Items []*Creative `json:"items,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // NextPageToken: Continuation token used to page through creatives. To
    // retrieve the next page of results, set the next request's "pageToken"
    // value to this.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CreativesList: The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.

func (*CreativesList) MarshalJSON Uses

func (s *CreativesList) MarshalJSON() ([]byte, error)

type CreativesListCall Uses

type CreativesListCall struct {
    // contains filtered or unexported fields
}

func (*CreativesListCall) AccountId Uses

func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall

AccountId sets the optional parameter "accountId": When specified, only creatives for the given account ids are returned.

func (*CreativesListCall) BuyerCreativeId Uses

func (c *CreativesListCall) BuyerCreativeId(buyerCreativeId ...string) *CreativesListCall

BuyerCreativeId sets the optional parameter "buyerCreativeId": When specified, only creatives for the given buyer creative ids are returned.

func (*CreativesListCall) Context Uses

func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CreativesListCall) Do Uses

func (c *CreativesListCall) Do(opts ...googleapi.CallOption) (*CreativesList, error)

Do executes the "adexchangebuyer.creatives.list" call. Exactly one of *CreativesList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CreativesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CreativesListCall) Fields Uses

func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CreativesListCall) Header Uses

func (c *CreativesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CreativesListCall) IfNoneMatch Uses

func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*CreativesListCall) MaxResults Uses

func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. If not set, the default is 100.

func (*CreativesListCall) PageToken Uses

func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall

PageToken sets the optional parameter "pageToken": A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.

func (*CreativesListCall) Pages Uses

func (c *CreativesListCall) Pages(ctx context.Context, f func(*CreativesList) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*CreativesListCall) StatusFilter Uses

func (c *CreativesListCall) StatusFilter(statusFilter string) *CreativesListCall

StatusFilter sets the optional parameter "statusFilter": When specified, only creatives having the given status are returned.

Possible values:

"approved" - Creatives which have been approved.
"disapproved" - Creatives which have been disapproved.
"not_checked" - Creatives whose status is not yet checked.

type CreativesService Uses

type CreativesService struct {
    // contains filtered or unexported fields
}

func NewCreativesService Uses

func NewCreativesService(s *Service) *CreativesService

func (*CreativesService) Get Uses

func (r *CreativesService) Get(accountId int64, buyerCreativeId string) *CreativesGetCall

Get: Gets the status for a single creative. A creative will be available 30-40 minutes after submission.

func (*CreativesService) Insert Uses

func (r *CreativesService) Insert(creative *Creative) *CreativesInsertCall

Insert: Submit a new creative.

func (*CreativesService) List Uses

func (r *CreativesService) List() *CreativesListCall

List: Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.

type DirectDeal Uses

type DirectDeal struct {
    // AccountId: The account id of the buyer this deal is for.
    AccountId int64 `json:"accountId,omitempty"`

    // Advertiser: The name of the advertiser this deal is for.
    Advertiser string `json:"advertiser,omitempty"`

    // AllowsAlcohol: Whether the publisher for this deal is eligible for
    // alcohol ads.
    AllowsAlcohol bool `json:"allowsAlcohol,omitempty"`

    // BuyerAccountId: The account id that this deal was negotiated for. It
    // is either the buyer or the client that this deal was negotiated on
    // behalf of.
    BuyerAccountId int64 `json:"buyerAccountId,omitempty,string"`

    // CurrencyCode: The currency code that applies to the fixed_cpm value.
    // If not set then assumed to be USD.
    CurrencyCode string `json:"currencyCode,omitempty"`

    // DealTier: The deal type such as programmatic reservation or fixed
    // price and so on.
    DealTier string `json:"dealTier,omitempty"`

    // EndTime: End time for when this deal stops being active. If not set
    // then this deal is valid until manually disabled by the publisher. In
    // seconds since the epoch.
    EndTime int64 `json:"endTime,omitempty,string"`

    // FixedCpm: The fixed price for this direct deal. In cpm micros of
    // currency according to currency_code. If set, then this deal is
    // eligible for the fixed price tier of buying (highest priority, pay
    // exactly the configured fixed price).
    FixedCpm int64 `json:"fixedCpm,omitempty,string"`

    // Id: Deal id.
    Id  int64 `json:"id,omitempty,string"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // Name: Deal name.
    Name string `json:"name,omitempty"`

    // PrivateExchangeMinCpm: The minimum price for this direct deal. In cpm
    // micros of currency according to currency_code. If set, then this deal
    // is eligible for the private exchange tier of buying (below fixed
    // price priority, run as a second price auction).
    PrivateExchangeMinCpm int64 `json:"privateExchangeMinCpm,omitempty,string"`

    // PublisherBlocksOverriden: If true, the publisher has opted to have
    // their blocks ignored when a creative is bid with for this deal.
    PublisherBlocksOverriden bool `json:"publisherBlocksOverriden,omitempty"`

    // SellerNetwork: The name of the publisher offering this direct deal.
    SellerNetwork string `json:"sellerNetwork,omitempty"`

    // StartTime: Start time for when this deal becomes active. If not set
    // then this deal is active immediately upon creation. In seconds since
    // the epoch.
    StartTime int64 `json:"startTime,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DirectDeal: The configuration data for an Ad Exchange direct deal.

func (*DirectDeal) MarshalJSON Uses

func (s *DirectDeal) MarshalJSON() ([]byte, error)

type DirectDealsGetCall Uses

type DirectDealsGetCall struct {
    // contains filtered or unexported fields
}

func (*DirectDealsGetCall) Context Uses

func (c *DirectDealsGetCall) Context(ctx context.Context) *DirectDealsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DirectDealsGetCall) Do Uses

func (c *DirectDealsGetCall) Do(opts ...googleapi.CallOption) (*DirectDeal, error)

Do executes the "adexchangebuyer.directDeals.get" call. Exactly one of *DirectDeal or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DirectDeal.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DirectDealsGetCall) Fields Uses

func (c *DirectDealsGetCall) Fields(s ...googleapi.Field) *DirectDealsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DirectDealsGetCall) Header Uses

func (c *DirectDealsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DirectDealsGetCall) IfNoneMatch Uses

func (c *DirectDealsGetCall) IfNoneMatch(entityTag string) *DirectDealsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type DirectDealsList Uses

type DirectDealsList struct {
    // DirectDeals: A list of direct deals relevant for your account.
    DirectDeals []*DirectDeal `json:"directDeals,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "DirectDeals") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DirectDeals") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

DirectDealsList: A direct deals feed lists Direct Deals the Ad Exchange buyer account has access to. This includes direct deals set up for the buyer account as well as its merged stream seats.

func (*DirectDealsList) MarshalJSON Uses

func (s *DirectDealsList) MarshalJSON() ([]byte, error)

type DirectDealsListCall Uses

type DirectDealsListCall struct {
    // contains filtered or unexported fields
}

func (*DirectDealsListCall) Context Uses

func (c *DirectDealsListCall) Context(ctx context.Context) *DirectDealsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DirectDealsListCall) Do Uses

func (c *DirectDealsListCall) Do(opts ...googleapi.CallOption) (*DirectDealsList, error)

Do executes the "adexchangebuyer.directDeals.list" call. Exactly one of *DirectDealsList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DirectDealsList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DirectDealsListCall) Fields Uses

func (c *DirectDealsListCall) Fields(s ...googleapi.Field) *DirectDealsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DirectDealsListCall) Header Uses

func (c *DirectDealsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DirectDealsListCall) IfNoneMatch Uses

func (c *DirectDealsListCall) IfNoneMatch(entityTag string) *DirectDealsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type DirectDealsService Uses

type DirectDealsService struct {
    // contains filtered or unexported fields
}

func NewDirectDealsService Uses

func NewDirectDealsService(s *Service) *DirectDealsService

func (*DirectDealsService) Get Uses

func (r *DirectDealsService) Get(id int64) *DirectDealsGetCall

Get: Gets one direct deal by ID.

func (*DirectDealsService) List Uses

func (r *DirectDealsService) List() *DirectDealsListCall

List: Retrieves the authenticated user's list of direct deals.

type PerformanceReport Uses

type PerformanceReport struct {
    // BidRate: The number of bid responses with an ad.
    BidRate float64 `json:"bidRate,omitempty"`

    // BidRequestRate: The number of bid requests sent to your bidder.
    BidRequestRate float64 `json:"bidRequestRate,omitempty"`

    // CalloutStatusRate: Rate of various prefiltering statuses per match.
    // Please refer to the callout-status-codes.txt file for different
    // statuses.
    CalloutStatusRate []interface{} `json:"calloutStatusRate,omitempty"`

    // CookieMatcherStatusRate: Average QPS for cookie matcher operations.
    CookieMatcherStatusRate []interface{} `json:"cookieMatcherStatusRate,omitempty"`

    // CreativeStatusRate: Rate of ads with a given status. Please refer to
    // the creative-status-codes.txt file for different statuses.
    CreativeStatusRate []interface{} `json:"creativeStatusRate,omitempty"`

    // FilteredBidRate: The number of bid responses that were filtered due
    // to a policy violation or other errors.
    FilteredBidRate float64 `json:"filteredBidRate,omitempty"`

    // HostedMatchStatusRate: Average QPS for hosted match operations.
    HostedMatchStatusRate []interface{} `json:"hostedMatchStatusRate,omitempty"`

    // InventoryMatchRate: The number of potential queries based on your
    // pretargeting settings.
    InventoryMatchRate float64 `json:"inventoryMatchRate,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // Latency50thPercentile: The 50th percentile round trip latency(ms) as
    // perceived from Google servers for the duration period covered by the
    // report.
    Latency50thPercentile float64 `json:"latency50thPercentile,omitempty"`

    // Latency85thPercentile: The 85th percentile round trip latency(ms) as
    // perceived from Google servers for the duration period covered by the
    // report.
    Latency85thPercentile float64 `json:"latency85thPercentile,omitempty"`

    // Latency95thPercentile: The 95th percentile round trip latency(ms) as
    // perceived from Google servers for the duration period covered by the
    // report.
    Latency95thPercentile float64 `json:"latency95thPercentile,omitempty"`

    // NoQuotaInRegion: Rate of various quota account statuses per quota
    // check.
    NoQuotaInRegion float64 `json:"noQuotaInRegion,omitempty"`

    // OutOfQuota: Rate of various quota account statuses per quota check.
    OutOfQuota float64 `json:"outOfQuota,omitempty"`

    // PixelMatchRequests: Average QPS for pixel match requests from
    // clients.
    PixelMatchRequests float64 `json:"pixelMatchRequests,omitempty"`

    // PixelMatchResponses: Average QPS for pixel match responses from
    // clients.
    PixelMatchResponses float64 `json:"pixelMatchResponses,omitempty"`

    // QuotaConfiguredLimit: The configured quota limits for this account.
    QuotaConfiguredLimit float64 `json:"quotaConfiguredLimit,omitempty"`

    // QuotaThrottledLimit: The throttled quota limits for this account.
    QuotaThrottledLimit float64 `json:"quotaThrottledLimit,omitempty"`

    // Region: The trading location of this data.
    Region string `json:"region,omitempty"`

    // SuccessfulRequestRate: The number of properly formed bid responses
    // received by our servers within the deadline.
    SuccessfulRequestRate float64 `json:"successfulRequestRate,omitempty"`

    // Timestamp: The unix timestamp of the starting time of this
    // performance data.
    Timestamp int64 `json:"timestamp,omitempty,string"`

    // UnsuccessfulRequestRate: The number of bid responses that were
    // unsuccessful due to timeouts, incorrect formatting, etc.
    UnsuccessfulRequestRate float64 `json:"unsuccessfulRequestRate,omitempty"`

    // ForceSendFields is a list of field names (e.g. "BidRate") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BidRate") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PerformanceReport: The configuration data for an Ad Exchange performance report list.

func (*PerformanceReport) MarshalJSON Uses

func (s *PerformanceReport) MarshalJSON() ([]byte, error)

func (*PerformanceReport) UnmarshalJSON Uses

func (s *PerformanceReport) UnmarshalJSON(data []byte) error

type PerformanceReportList Uses

type PerformanceReportList struct {
    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // PerformanceReport: A list of performance reports relevant for the
    // account.
    PerformanceReport []*PerformanceReport `json:"performanceReport,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PerformanceReportList: The configuration data for an Ad Exchange performance report list.

func (*PerformanceReportList) MarshalJSON Uses

func (s *PerformanceReportList) MarshalJSON() ([]byte, error)

type PerformanceReportListCall Uses

type PerformanceReportListCall struct {
    // contains filtered or unexported fields
}

func (*PerformanceReportListCall) Context Uses

func (c *PerformanceReportListCall) Context(ctx context.Context) *PerformanceReportListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PerformanceReportListCall) Do Uses

func (c *PerformanceReportListCall) Do(opts ...googleapi.CallOption) (*PerformanceReportList, error)

Do executes the "adexchangebuyer.performanceReport.list" call. Exactly one of *PerformanceReportList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PerformanceReportList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PerformanceReportListCall) Fields Uses

func (c *PerformanceReportListCall) Fields(s ...googleapi.Field) *PerformanceReportListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PerformanceReportListCall) Header Uses

func (c *PerformanceReportListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*PerformanceReportListCall) IfNoneMatch Uses

func (c *PerformanceReportListCall) IfNoneMatch(entityTag string) *PerformanceReportListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*PerformanceReportListCall) MaxResults Uses

func (c *PerformanceReportListCall) MaxResults(maxResults int64) *PerformanceReportListCall

MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. If not set, the default is 100.

func (*PerformanceReportListCall) PageToken Uses

func (c *PerformanceReportListCall) PageToken(pageToken string) *PerformanceReportListCall

PageToken sets the optional parameter "pageToken": A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.

type PerformanceReportService Uses

type PerformanceReportService struct {
    // contains filtered or unexported fields
}

func NewPerformanceReportService Uses

func NewPerformanceReportService(s *Service) *PerformanceReportService

func (*PerformanceReportService) List Uses

func (r *PerformanceReportService) List(accountId int64, endDateTime string, startDateTime string) *PerformanceReportListCall

List: Retrieves the authenticated user's list of performance metrics.

type PretargetingConfig Uses

type PretargetingConfig struct {
    // BillingId: The id for billing purposes, provided for reference. Leave
    // this field blank for insert requests; the id will be generated
    // automatically.
    BillingId int64 `json:"billingId,omitempty,string"`

    // ConfigId: The config id; generated automatically. Leave this field
    // blank for insert requests.
    ConfigId int64 `json:"configId,omitempty,string"`

    // ConfigName: The name of the config. Must be unique. Required for all
    // requests.
    ConfigName string `json:"configName,omitempty"`

    // CreativeType: List must contain exactly one of
    // PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO.
    CreativeType []string `json:"creativeType,omitempty"`

    // Dimensions: Requests which allow one of these (width, height) pairs
    // will match. All pairs must be supported ad dimensions.
    Dimensions []*PretargetingConfigDimensions `json:"dimensions,omitempty"`

    // ExcludedContentLabels: Requests with any of these content labels will
    // not match. Values are from content-labels.txt in the downloadable
    // files section.
    ExcludedContentLabels googleapi.Int64s `json:"excludedContentLabels,omitempty"`

    // ExcludedGeoCriteriaIds: Requests containing any of these geo criteria
    // ids will not match.
    ExcludedGeoCriteriaIds googleapi.Int64s `json:"excludedGeoCriteriaIds,omitempty"`

    // ExcludedPlacements: Requests containing any of these placements will
    // not match.
    ExcludedPlacements []*PretargetingConfigExcludedPlacements `json:"excludedPlacements,omitempty"`

    // ExcludedUserLists: Requests containing any of these users list ids
    // will not match.
    ExcludedUserLists googleapi.Int64s `json:"excludedUserLists,omitempty"`

    // ExcludedVerticals: Requests containing any of these vertical ids will
    // not match. Values are from the publisher-verticals.txt file in the
    // downloadable files section.
    ExcludedVerticals googleapi.Int64s `json:"excludedVerticals,omitempty"`

    // GeoCriteriaIds: Requests containing any of these geo criteria ids
    // will match.
    GeoCriteriaIds googleapi.Int64s `json:"geoCriteriaIds,omitempty"`

    // IsActive: Whether this config is active. Required for all requests.
    IsActive bool `json:"isActive,omitempty"`

    // Kind: The kind of the resource, i.e.
    // "adexchangebuyer#pretargetingConfig".
    Kind string `json:"kind,omitempty"`

    // Languages: Request containing any of these language codes will match.
    Languages []string `json:"languages,omitempty"`

    // MobileCarriers: Requests containing any of these mobile carrier ids
    // will match. Values are from mobile-carriers.csv in the downloadable
    // files section.
    MobileCarriers googleapi.Int64s `json:"mobileCarriers,omitempty"`

    // MobileDevices: Requests containing any of these mobile device ids
    // will match. Values are from mobile-devices.csv in the downloadable
    // files section.
    MobileDevices googleapi.Int64s `json:"mobileDevices,omitempty"`

    // MobileOperatingSystemVersions: Requests containing any of these
    // mobile operating system version ids will match. Values are from
    // mobile-os.csv in the downloadable files section.
    MobileOperatingSystemVersions googleapi.Int64s `json:"mobileOperatingSystemVersions,omitempty"`

    // Placements: Requests containing any of these placements will match.
    Placements []*PretargetingConfigPlacements `json:"placements,omitempty"`

    // Platforms: Requests matching any of these platforms will match.
    // Possible values are PRETARGETING_PLATFORM_MOBILE,
    // PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET.
    Platforms []string `json:"platforms,omitempty"`

    // SupportedCreativeAttributes: Creative attributes should be declared
    // here if all creatives corresponding to this pretargeting
    // configuration have that creative attribute. Values are from
    // pretargetable-creative-attributes.txt in the downloadable files
    // section.
    SupportedCreativeAttributes googleapi.Int64s `json:"supportedCreativeAttributes,omitempty"`

    // UserLists: Requests containing any of these user list ids will match.
    UserLists googleapi.Int64s `json:"userLists,omitempty"`

    // VendorTypes: Requests that allow any of these vendor ids will match.
    // Values are from vendors.txt in the downloadable files section.
    VendorTypes googleapi.Int64s `json:"vendorTypes,omitempty"`

    // Verticals: Requests containing any of these vertical ids will match.
    Verticals googleapi.Int64s `json:"verticals,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "BillingId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BillingId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PretargetingConfig) MarshalJSON Uses

func (s *PretargetingConfig) MarshalJSON() ([]byte, error)

type PretargetingConfigDeleteCall Uses

type PretargetingConfigDeleteCall struct {
    // contains filtered or unexported fields
}

func (*PretargetingConfigDeleteCall) Context Uses

func (c *PretargetingConfigDeleteCall) Context(ctx context.Context) *PretargetingConfigDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PretargetingConfigDeleteCall) Do Uses

func (c *PretargetingConfigDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "adexchangebuyer.pretargetingConfig.delete" call.

func (*PretargetingConfigDeleteCall) Fields Uses

func (c *PretargetingConfigDeleteCall) Fields(s ...googleapi.Field) *PretargetingConfigDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PretargetingConfigDeleteCall) Header Uses

func (c *PretargetingConfigDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type PretargetingConfigDimensions Uses

type PretargetingConfigDimensions struct {
    // Height: Height in pixels.
    Height int64 `json:"height,omitempty,string"`

    // Width: Width in pixels.
    Width int64 `json:"width,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "Height") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Height") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PretargetingConfigDimensions) MarshalJSON Uses

func (s *PretargetingConfigDimensions) MarshalJSON() ([]byte, error)

type PretargetingConfigExcludedPlacements Uses

type PretargetingConfigExcludedPlacements struct {
    // Token: The value of the placement. Interpretation depends on the
    // placement type, e.g. URL for a site placement, channel name for a
    // channel placement, app id for a mobile app placement.
    Token string `json:"token,omitempty"`

    // Type: The type of the placement.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Token") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Token") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PretargetingConfigExcludedPlacements) MarshalJSON Uses

func (s *PretargetingConfigExcludedPlacements) MarshalJSON() ([]byte, error)

type PretargetingConfigGetCall Uses

type PretargetingConfigGetCall struct {
    // contains filtered or unexported fields
}

func (*PretargetingConfigGetCall) Context Uses

func (c *PretargetingConfigGetCall) Context(ctx context.Context) *PretargetingConfigGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PretargetingConfigGetCall) Do Uses

func (c *PretargetingConfigGetCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error)

Do executes the "adexchangebuyer.pretargetingConfig.get" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PretargetingConfigGetCall) Fields Uses

func (c *PretargetingConfigGetCall) Fields(s ...googleapi.Field) *PretargetingConfigGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PretargetingConfigGetCall) Header Uses

func (c *PretargetingConfigGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*PretargetingConfigGetCall) IfNoneMatch Uses

func (c *PretargetingConfigGetCall) IfNoneMatch(entityTag string) *PretargetingConfigGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type PretargetingConfigInsertCall Uses

type PretargetingConfigInsertCall struct {
    // contains filtered or unexported fields
}

func (*PretargetingConfigInsertCall) Context Uses

func (c *PretargetingConfigInsertCall) Context(ctx context.Context) *PretargetingConfigInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PretargetingConfigInsertCall) Do Uses

func (c *PretargetingConfigInsertCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error)

Do executes the "adexchangebuyer.pretargetingConfig.insert" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PretargetingConfigInsertCall) Fields Uses

func (c *PretargetingConfigInsertCall) Fields(s ...googleapi.Field) *PretargetingConfigInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PretargetingConfigInsertCall) Header Uses

func (c *PretargetingConfigInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type PretargetingConfigList Uses

type PretargetingConfigList struct {
    // Items: A list of pretargeting configs
    Items []*PretargetingConfig `json:"items,omitempty"`

    // Kind: Resource type.
    Kind string `json:"kind,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Items") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Items") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PretargetingConfigList) MarshalJSON Uses

func (s *PretargetingConfigList) MarshalJSON() ([]byte, error)

type PretargetingConfigListCall Uses

type PretargetingConfigListCall struct {
    // contains filtered or unexported fields
}

func (*PretargetingConfigListCall) Context Uses

func (c *PretargetingConfigListCall) Context(ctx context.Context) *PretargetingConfigListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PretargetingConfigListCall) Do Uses

func (c *PretargetingConfigListCall) Do(opts ...googleapi.CallOption) (*PretargetingConfigList, error)

Do executes the "adexchangebuyer.pretargetingConfig.list" call. Exactly one of *PretargetingConfigList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfigList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PretargetingConfigListCall) Fields Uses

func (c *PretargetingConfigListCall) Fields(s ...googleapi.Field) *PretargetingConfigListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PretargetingConfigListCall) Header Uses

func (c *PretargetingConfigListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*PretargetingConfigListCall) IfNoneMatch Uses

func (c *PretargetingConfigListCall) IfNoneMatch(entityTag string) *PretargetingConfigListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type PretargetingConfigPatchCall Uses

type PretargetingConfigPatchCall struct {
    // contains filtered or unexported fields
}

func (*PretargetingConfigPatchCall) Context Uses

func (c *PretargetingConfigPatchCall) Context(ctx context.Context) *PretargetingConfigPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PretargetingConfigPatchCall) Do Uses

func (c *PretargetingConfigPatchCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error)

Do executes the "adexchangebuyer.pretargetingConfig.patch" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PretargetingConfigPatchCall) Fields Uses

func (c *PretargetingConfigPatchCall) Fields(s ...googleapi.Field) *PretargetingConfigPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PretargetingConfigPatchCall) Header Uses

func (c *PretargetingConfigPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type PretargetingConfigPlacements Uses

type PretargetingConfigPlacements struct {
    // Token: The value of the placement. Interpretation depends on the
    // placement type, e.g. URL for a site placement, channel name for a
    // channel placement, app id for a mobile app placement.
    Token string `json:"token,omitempty"`

    // Type: The type of the placement.
    Type string `json:"type,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Token") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Token") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*PretargetingConfigPlacements) MarshalJSON Uses

func (s *PretargetingConfigPlacements) MarshalJSON() ([]byte, error)

type PretargetingConfigService Uses

type PretargetingConfigService struct {
    // contains filtered or unexported fields
}

func NewPretargetingConfigService Uses

func NewPretargetingConfigService(s *Service) *PretargetingConfigService

func (*PretargetingConfigService) Delete Uses

func (r *PretargetingConfigService) Delete(accountId int64, configId int64) *PretargetingConfigDeleteCall

Delete: Deletes an existing pretargeting config.

func (*PretargetingConfigService) Get Uses

func (r *PretargetingConfigService) Get(accountId int64, configId int64) *PretargetingConfigGetCall

Get: Gets a specific pretargeting configuration

func (*PretargetingConfigService) Insert Uses

func (r *PretargetingConfigService) Insert(accountId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigInsertCall

Insert: Inserts a new pretargeting configuration.

func (*PretargetingConfigService) List Uses

func (r *PretargetingConfigService) List(accountId int64) *PretargetingConfigListCall

List: Retrieves a list of the authenticated user's pretargeting configurations.

func (*PretargetingConfigService) Patch Uses

func (r *PretargetingConfigService) Patch(accountId int64, configId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigPatchCall

Patch: Updates an existing pretargeting config. This method supports patch semantics.

func (*PretargetingConfigService) Update Uses

func (r *PretargetingConfigService) Update(accountId int64, configId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigUpdateCall

Update: Updates an existing pretargeting config.

type PretargetingConfigUpdateCall Uses

type PretargetingConfigUpdateCall struct {
    // contains filtered or unexported fields
}

func (*PretargetingConfigUpdateCall) Context Uses

func (c *PretargetingConfigUpdateCall) Context(ctx context.Context) *PretargetingConfigUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PretargetingConfigUpdateCall) Do Uses

func (c *PretargetingConfigUpdateCall) Do(opts ...googleapi.CallOption) (*PretargetingConfig, error)

Do executes the "adexchangebuyer.pretargetingConfig.update" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PretargetingConfigUpdateCall) Fields Uses

func (c *PretargetingConfigUpdateCall) Fields(s ...googleapi.Field) *PretargetingConfigUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PretargetingConfigUpdateCall) Header Uses

func (c *PretargetingConfigUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Accounts *AccountsService

    BillingInfo *BillingInfoService

    Budget *BudgetService

    Creatives *CreativesService

    DirectDeals *DirectDealsService

    PerformanceReport *PerformanceReportService

    PretargetingConfig *PretargetingConfigService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead. To provide a custom HTTP client, use option.WithHTTPClient. If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

func NewService Uses

func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error)

NewService creates a new Service.

Package adexchangebuyer imports 14 packages (graph). Updated 2019-07-20. Refresh now. Tools for package owners.