Documentation ¶
Overview ¶
Package adexchangebuyer2 provides access to the Ad Exchange Buyer API II.
See https://developers.google.com/ad-exchange/buyer-rest/guides/client-access/
Usage example:
import "google.golang.org/api/adexchangebuyer2/v2beta1" ... adexchangebuyer2Service, err := adexchangebuyer2.New(oauthHttpClient)
Index ¶
- Constants
- type AccountsClientsCreateCall
- func (c *AccountsClientsCreateCall) Context(ctx context.Context) *AccountsClientsCreateCall
- func (c *AccountsClientsCreateCall) Do(opts ...googleapi.CallOption) (*Client, error)
- func (c *AccountsClientsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsCreateCall
- func (c *AccountsClientsCreateCall) Header() http.Header
- type AccountsClientsGetCall
- func (c *AccountsClientsGetCall) Context(ctx context.Context) *AccountsClientsGetCall
- func (c *AccountsClientsGetCall) Do(opts ...googleapi.CallOption) (*Client, error)
- func (c *AccountsClientsGetCall) Fields(s ...googleapi.Field) *AccountsClientsGetCall
- func (c *AccountsClientsGetCall) Header() http.Header
- func (c *AccountsClientsGetCall) IfNoneMatch(entityTag string) *AccountsClientsGetCall
- type AccountsClientsInvitationsCreateCall
- func (c *AccountsClientsInvitationsCreateCall) Context(ctx context.Context) *AccountsClientsInvitationsCreateCall
- func (c *AccountsClientsInvitationsCreateCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error)
- func (c *AccountsClientsInvitationsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsCreateCall
- func (c *AccountsClientsInvitationsCreateCall) Header() http.Header
- type AccountsClientsInvitationsGetCall
- func (c *AccountsClientsInvitationsGetCall) Context(ctx context.Context) *AccountsClientsInvitationsGetCall
- func (c *AccountsClientsInvitationsGetCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error)
- func (c *AccountsClientsInvitationsGetCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsGetCall
- func (c *AccountsClientsInvitationsGetCall) Header() http.Header
- func (c *AccountsClientsInvitationsGetCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsGetCall
- type AccountsClientsInvitationsListCall
- func (c *AccountsClientsInvitationsListCall) Context(ctx context.Context) *AccountsClientsInvitationsListCall
- func (c *AccountsClientsInvitationsListCall) Do(opts ...googleapi.CallOption) (*ListClientUserInvitationsResponse, error)
- func (c *AccountsClientsInvitationsListCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsListCall
- func (c *AccountsClientsInvitationsListCall) Header() http.Header
- func (c *AccountsClientsInvitationsListCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsListCall
- func (c *AccountsClientsInvitationsListCall) PageSize(pageSize int64) *AccountsClientsInvitationsListCall
- func (c *AccountsClientsInvitationsListCall) PageToken(pageToken string) *AccountsClientsInvitationsListCall
- func (c *AccountsClientsInvitationsListCall) Pages(ctx context.Context, f func(*ListClientUserInvitationsResponse) error) error
- type AccountsClientsInvitationsService
- func (r *AccountsClientsInvitationsService) Create(accountId int64, clientAccountId int64, ...) *AccountsClientsInvitationsCreateCall
- func (r *AccountsClientsInvitationsService) Get(accountId int64, clientAccountId int64, invitationId int64) *AccountsClientsInvitationsGetCall
- func (r *AccountsClientsInvitationsService) List(accountId int64, clientAccountId string) *AccountsClientsInvitationsListCall
- type AccountsClientsListCall
- func (c *AccountsClientsListCall) Context(ctx context.Context) *AccountsClientsListCall
- func (c *AccountsClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsResponse, error)
- func (c *AccountsClientsListCall) Fields(s ...googleapi.Field) *AccountsClientsListCall
- func (c *AccountsClientsListCall) Header() http.Header
- func (c *AccountsClientsListCall) IfNoneMatch(entityTag string) *AccountsClientsListCall
- func (c *AccountsClientsListCall) PageSize(pageSize int64) *AccountsClientsListCall
- func (c *AccountsClientsListCall) PageToken(pageToken string) *AccountsClientsListCall
- func (c *AccountsClientsListCall) Pages(ctx context.Context, f func(*ListClientsResponse) error) error
- type AccountsClientsService
- func (r *AccountsClientsService) Create(accountId int64, client *Client) *AccountsClientsCreateCall
- func (r *AccountsClientsService) Get(accountId int64, clientAccountId int64) *AccountsClientsGetCall
- func (r *AccountsClientsService) List(accountId int64) *AccountsClientsListCall
- func (r *AccountsClientsService) Update(accountId int64, clientAccountId int64, client *Client) *AccountsClientsUpdateCall
- type AccountsClientsUpdateCall
- func (c *AccountsClientsUpdateCall) Context(ctx context.Context) *AccountsClientsUpdateCall
- func (c *AccountsClientsUpdateCall) Do(opts ...googleapi.CallOption) (*Client, error)
- func (c *AccountsClientsUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUpdateCall
- func (c *AccountsClientsUpdateCall) Header() http.Header
- type AccountsClientsUsersGetCall
- func (c *AccountsClientsUsersGetCall) Context(ctx context.Context) *AccountsClientsUsersGetCall
- func (c *AccountsClientsUsersGetCall) Do(opts ...googleapi.CallOption) (*ClientUser, error)
- func (c *AccountsClientsUsersGetCall) Fields(s ...googleapi.Field) *AccountsClientsUsersGetCall
- func (c *AccountsClientsUsersGetCall) Header() http.Header
- func (c *AccountsClientsUsersGetCall) IfNoneMatch(entityTag string) *AccountsClientsUsersGetCall
- type AccountsClientsUsersListCall
- func (c *AccountsClientsUsersListCall) Context(ctx context.Context) *AccountsClientsUsersListCall
- func (c *AccountsClientsUsersListCall) Do(opts ...googleapi.CallOption) (*ListClientUsersResponse, error)
- func (c *AccountsClientsUsersListCall) Fields(s ...googleapi.Field) *AccountsClientsUsersListCall
- func (c *AccountsClientsUsersListCall) Header() http.Header
- func (c *AccountsClientsUsersListCall) IfNoneMatch(entityTag string) *AccountsClientsUsersListCall
- func (c *AccountsClientsUsersListCall) PageSize(pageSize int64) *AccountsClientsUsersListCall
- func (c *AccountsClientsUsersListCall) PageToken(pageToken string) *AccountsClientsUsersListCall
- func (c *AccountsClientsUsersListCall) Pages(ctx context.Context, f func(*ListClientUsersResponse) error) error
- type AccountsClientsUsersService
- func (r *AccountsClientsUsersService) Get(accountId int64, clientAccountId int64, userId int64) *AccountsClientsUsersGetCall
- func (r *AccountsClientsUsersService) List(accountId int64, clientAccountId string) *AccountsClientsUsersListCall
- func (r *AccountsClientsUsersService) Update(accountId int64, clientAccountId int64, userId int64, clientuser *ClientUser) *AccountsClientsUsersUpdateCall
- type AccountsClientsUsersUpdateCall
- func (c *AccountsClientsUsersUpdateCall) Context(ctx context.Context) *AccountsClientsUsersUpdateCall
- func (c *AccountsClientsUsersUpdateCall) Do(opts ...googleapi.CallOption) (*ClientUser, error)
- func (c *AccountsClientsUsersUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUsersUpdateCall
- func (c *AccountsClientsUsersUpdateCall) Header() http.Header
- type AccountsCreativesCreateCall
- func (c *AccountsCreativesCreateCall) Context(ctx context.Context) *AccountsCreativesCreateCall
- func (c *AccountsCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creative, error)
- func (c *AccountsCreativesCreateCall) DuplicateIdMode(duplicateIdMode string) *AccountsCreativesCreateCall
- func (c *AccountsCreativesCreateCall) Fields(s ...googleapi.Field) *AccountsCreativesCreateCall
- func (c *AccountsCreativesCreateCall) Header() http.Header
- type AccountsCreativesDealAssociationsAddCall
- func (c *AccountsCreativesDealAssociationsAddCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsAddCall
- func (c *AccountsCreativesDealAssociationsAddCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *AccountsCreativesDealAssociationsAddCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsAddCall
- func (c *AccountsCreativesDealAssociationsAddCall) Header() http.Header
- type AccountsCreativesDealAssociationsListCall
- func (c *AccountsCreativesDealAssociationsListCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsListCall
- func (c *AccountsCreativesDealAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListDealAssociationsResponse, error)
- func (c *AccountsCreativesDealAssociationsListCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsListCall
- func (c *AccountsCreativesDealAssociationsListCall) Header() http.Header
- func (c *AccountsCreativesDealAssociationsListCall) IfNoneMatch(entityTag string) *AccountsCreativesDealAssociationsListCall
- func (c *AccountsCreativesDealAssociationsListCall) PageSize(pageSize int64) *AccountsCreativesDealAssociationsListCall
- func (c *AccountsCreativesDealAssociationsListCall) PageToken(pageToken string) *AccountsCreativesDealAssociationsListCall
- func (c *AccountsCreativesDealAssociationsListCall) Pages(ctx context.Context, f func(*ListDealAssociationsResponse) error) error
- func (c *AccountsCreativesDealAssociationsListCall) Query(query string) *AccountsCreativesDealAssociationsListCall
- type AccountsCreativesDealAssociationsRemoveCall
- func (c *AccountsCreativesDealAssociationsRemoveCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsRemoveCall
- func (c *AccountsCreativesDealAssociationsRemoveCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *AccountsCreativesDealAssociationsRemoveCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsRemoveCall
- func (c *AccountsCreativesDealAssociationsRemoveCall) Header() http.Header
- type AccountsCreativesDealAssociationsService
- func (r *AccountsCreativesDealAssociationsService) Add(accountId string, creativeId string, ...) *AccountsCreativesDealAssociationsAddCall
- func (r *AccountsCreativesDealAssociationsService) List(accountId string, creativeId string) *AccountsCreativesDealAssociationsListCall
- func (r *AccountsCreativesDealAssociationsService) Remove(accountId string, creativeId string, ...) *AccountsCreativesDealAssociationsRemoveCall
- type AccountsCreativesGetCall
- func (c *AccountsCreativesGetCall) Context(ctx context.Context) *AccountsCreativesGetCall
- func (c *AccountsCreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error)
- func (c *AccountsCreativesGetCall) Fields(s ...googleapi.Field) *AccountsCreativesGetCall
- func (c *AccountsCreativesGetCall) Header() http.Header
- func (c *AccountsCreativesGetCall) IfNoneMatch(entityTag string) *AccountsCreativesGetCall
- type AccountsCreativesListCall
- func (c *AccountsCreativesListCall) Context(ctx context.Context) *AccountsCreativesListCall
- func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativesResponse, error)
- func (c *AccountsCreativesListCall) Fields(s ...googleapi.Field) *AccountsCreativesListCall
- func (c *AccountsCreativesListCall) Header() http.Header
- func (c *AccountsCreativesListCall) IfNoneMatch(entityTag string) *AccountsCreativesListCall
- func (c *AccountsCreativesListCall) PageSize(pageSize int64) *AccountsCreativesListCall
- func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativesListCall
- func (c *AccountsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativesResponse) error) error
- func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall
- type AccountsCreativesService
- func (r *AccountsCreativesService) Create(accountId string, creative *Creative) *AccountsCreativesCreateCall
- func (r *AccountsCreativesService) Get(accountId string, creativeId string) *AccountsCreativesGetCall
- func (r *AccountsCreativesService) List(accountId string) *AccountsCreativesListCall
- func (r *AccountsCreativesService) StopWatching(accountId string, creativeId string, ...) *AccountsCreativesStopWatchingCall
- func (r *AccountsCreativesService) Update(accountId string, creativeId string, creative *Creative) *AccountsCreativesUpdateCall
- func (r *AccountsCreativesService) Watch(accountId string, creativeId string, ...) *AccountsCreativesWatchCall
- type AccountsCreativesStopWatchingCall
- func (c *AccountsCreativesStopWatchingCall) Context(ctx context.Context) *AccountsCreativesStopWatchingCall
- func (c *AccountsCreativesStopWatchingCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *AccountsCreativesStopWatchingCall) Fields(s ...googleapi.Field) *AccountsCreativesStopWatchingCall
- func (c *AccountsCreativesStopWatchingCall) Header() http.Header
- type AccountsCreativesUpdateCall
- func (c *AccountsCreativesUpdateCall) Context(ctx context.Context) *AccountsCreativesUpdateCall
- func (c *AccountsCreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error)
- func (c *AccountsCreativesUpdateCall) Fields(s ...googleapi.Field) *AccountsCreativesUpdateCall
- func (c *AccountsCreativesUpdateCall) Header() http.Header
- type AccountsCreativesWatchCall
- func (c *AccountsCreativesWatchCall) Context(ctx context.Context) *AccountsCreativesWatchCall
- func (c *AccountsCreativesWatchCall) Do(opts ...googleapi.CallOption) (*Empty, error)
- func (c *AccountsCreativesWatchCall) Fields(s ...googleapi.Field) *AccountsCreativesWatchCall
- func (c *AccountsCreativesWatchCall) Header() http.Header
- type AccountsService
- type AddDealAssociationRequest
- type AppContext
- type AuctionContext
- type Client
- type ClientUser
- type ClientUserInvitation
- type Correction
- type Creative
- type CreativeDealAssociation
- type Date
- type Disapproval
- type Empty
- type FilteringStats
- type HtmlContent
- type Image
- type ListClientUserInvitationsResponse
- type ListClientUsersResponse
- type ListClientsResponse
- type ListCreativesResponse
- type ListDealAssociationsResponse
- type LocationContext
- type NativeContent
- type PlatformContext
- type Reason
- type RemoveDealAssociationRequest
- type SecurityContext
- type Service
- type ServingContext
- type ServingRestriction
- type StopWatchingCreativeRequest
- type VideoContent
- type WatchCreativeRequest
Constants ¶
const (
// Manage your Ad Exchange buyer account configuration
AdexchangeBuyerScope = "https://www.googleapis.com/auth/adexchange.buyer"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountsClientsCreateCall ¶
type AccountsClientsCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsCreateCall) Context ¶
func (c *AccountsClientsCreateCall) Context(ctx context.Context) *AccountsClientsCreateCall
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 (*AccountsClientsCreateCall) Do ¶
func (c *AccountsClientsCreateCall) Do(opts ...googleapi.CallOption) (*Client, error)
Do executes the "adexchangebuyer2.accounts.clients.create" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.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 (*AccountsClientsCreateCall) Fields ¶
func (c *AccountsClientsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsCreateCall) Header ¶
func (c *AccountsClientsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsClientsGetCall ¶
type AccountsClientsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsGetCall) Context ¶
func (c *AccountsClientsGetCall) Context(ctx context.Context) *AccountsClientsGetCall
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 (*AccountsClientsGetCall) Do ¶
func (c *AccountsClientsGetCall) Do(opts ...googleapi.CallOption) (*Client, error)
Do executes the "adexchangebuyer2.accounts.clients.get" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.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 (*AccountsClientsGetCall) Fields ¶
func (c *AccountsClientsGetCall) Fields(s ...googleapi.Field) *AccountsClientsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsGetCall) Header ¶
func (c *AccountsClientsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsClientsGetCall) IfNoneMatch ¶
func (c *AccountsClientsGetCall) IfNoneMatch(entityTag string) *AccountsClientsGetCall
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 AccountsClientsInvitationsCreateCall ¶
type AccountsClientsInvitationsCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsInvitationsCreateCall) Context ¶
func (c *AccountsClientsInvitationsCreateCall) Context(ctx context.Context) *AccountsClientsInvitationsCreateCall
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 (*AccountsClientsInvitationsCreateCall) Do ¶
func (c *AccountsClientsInvitationsCreateCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error)
Do executes the "adexchangebuyer2.accounts.clients.invitations.create" call. Exactly one of *ClientUserInvitation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUserInvitation.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 (*AccountsClientsInvitationsCreateCall) Fields ¶
func (c *AccountsClientsInvitationsCreateCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsInvitationsCreateCall) Header ¶
func (c *AccountsClientsInvitationsCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsClientsInvitationsGetCall ¶
type AccountsClientsInvitationsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsInvitationsGetCall) Context ¶
func (c *AccountsClientsInvitationsGetCall) Context(ctx context.Context) *AccountsClientsInvitationsGetCall
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 (*AccountsClientsInvitationsGetCall) Do ¶
func (c *AccountsClientsInvitationsGetCall) Do(opts ...googleapi.CallOption) (*ClientUserInvitation, error)
Do executes the "adexchangebuyer2.accounts.clients.invitations.get" call. Exactly one of *ClientUserInvitation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUserInvitation.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 (*AccountsClientsInvitationsGetCall) Fields ¶
func (c *AccountsClientsInvitationsGetCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsInvitationsGetCall) Header ¶
func (c *AccountsClientsInvitationsGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsClientsInvitationsGetCall) IfNoneMatch ¶
func (c *AccountsClientsInvitationsGetCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsGetCall
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 AccountsClientsInvitationsListCall ¶
type AccountsClientsInvitationsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsInvitationsListCall) Context ¶
func (c *AccountsClientsInvitationsListCall) Context(ctx context.Context) *AccountsClientsInvitationsListCall
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 (*AccountsClientsInvitationsListCall) Do ¶
func (c *AccountsClientsInvitationsListCall) Do(opts ...googleapi.CallOption) (*ListClientUserInvitationsResponse, error)
Do executes the "adexchangebuyer2.accounts.clients.invitations.list" call. Exactly one of *ListClientUserInvitationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClientUserInvitationsResponse.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 (*AccountsClientsInvitationsListCall) Fields ¶
func (c *AccountsClientsInvitationsListCall) Fields(s ...googleapi.Field) *AccountsClientsInvitationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsInvitationsListCall) Header ¶
func (c *AccountsClientsInvitationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsClientsInvitationsListCall) IfNoneMatch ¶
func (c *AccountsClientsInvitationsListCall) IfNoneMatch(entityTag string) *AccountsClientsInvitationsListCall
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 (*AccountsClientsInvitationsListCall) PageSize ¶
func (c *AccountsClientsInvitationsListCall) PageSize(pageSize int64) *AccountsClientsInvitationsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer clients than requested. If unspecified, server will pick an appropriate default.
func (*AccountsClientsInvitationsListCall) PageToken ¶
func (c *AccountsClientsInvitationsListCall) PageToken(pageToken string) *AccountsClientsInvitationsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListClientUserInvitationsResponse.nextPageToken returned from the previous call to the clients.invitations.list method.
func (*AccountsClientsInvitationsListCall) Pages ¶
func (c *AccountsClientsInvitationsListCall) Pages(ctx context.Context, f func(*ListClientUserInvitationsResponse) 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.
type AccountsClientsInvitationsService ¶
type AccountsClientsInvitationsService struct {
// contains filtered or unexported fields
}
func NewAccountsClientsInvitationsService ¶
func NewAccountsClientsInvitationsService(s *Service) *AccountsClientsInvitationsService
func (*AccountsClientsInvitationsService) Create ¶
func (r *AccountsClientsInvitationsService) Create(accountId int64, clientAccountId int64, clientuserinvitation *ClientUserInvitation) *AccountsClientsInvitationsCreateCall
Create: Creates and sends out an email invitation to access an Ad Exchange client buyer account.
func (*AccountsClientsInvitationsService) Get ¶
func (r *AccountsClientsInvitationsService) Get(accountId int64, clientAccountId int64, invitationId int64) *AccountsClientsInvitationsGetCall
Get: Retrieves an existing client user invitation.
func (*AccountsClientsInvitationsService) List ¶
func (r *AccountsClientsInvitationsService) List(accountId int64, clientAccountId string) *AccountsClientsInvitationsListCall
List: Lists all the client users invitations for a client with a given account ID.
type AccountsClientsListCall ¶
type AccountsClientsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsListCall) Context ¶
func (c *AccountsClientsListCall) Context(ctx context.Context) *AccountsClientsListCall
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 (*AccountsClientsListCall) Do ¶
func (c *AccountsClientsListCall) Do(opts ...googleapi.CallOption) (*ListClientsResponse, error)
Do executes the "adexchangebuyer2.accounts.clients.list" call. Exactly one of *ListClientsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClientsResponse.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 (*AccountsClientsListCall) Fields ¶
func (c *AccountsClientsListCall) Fields(s ...googleapi.Field) *AccountsClientsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsListCall) Header ¶
func (c *AccountsClientsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsClientsListCall) IfNoneMatch ¶
func (c *AccountsClientsListCall) IfNoneMatch(entityTag string) *AccountsClientsListCall
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 (*AccountsClientsListCall) PageSize ¶
func (c *AccountsClientsListCall) PageSize(pageSize int64) *AccountsClientsListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer clients than requested. If unspecified, the server will pick an appropriate default.
func (*AccountsClientsListCall) PageToken ¶
func (c *AccountsClientsListCall) PageToken(pageToken string) *AccountsClientsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListClientsResponse.nextPageToken returned from the previous call to the accounts.clients.list method.
func (*AccountsClientsListCall) Pages ¶
func (c *AccountsClientsListCall) Pages(ctx context.Context, f func(*ListClientsResponse) 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.
type AccountsClientsService ¶
type AccountsClientsService struct { Invitations *AccountsClientsInvitationsService Users *AccountsClientsUsersService // contains filtered or unexported fields }
func NewAccountsClientsService ¶
func NewAccountsClientsService(s *Service) *AccountsClientsService
func (*AccountsClientsService) Create ¶
func (r *AccountsClientsService) Create(accountId int64, client *Client) *AccountsClientsCreateCall
Create: Creates a new client buyer.
func (*AccountsClientsService) Get ¶
func (r *AccountsClientsService) Get(accountId int64, clientAccountId int64) *AccountsClientsGetCall
Get: Gets a client buyer with a given client account ID.
func (*AccountsClientsService) List ¶
func (r *AccountsClientsService) List(accountId int64) *AccountsClientsListCall
List: Lists all the clients for the current sponsor buyer.
func (*AccountsClientsService) Update ¶
func (r *AccountsClientsService) Update(accountId int64, clientAccountId int64, client *Client) *AccountsClientsUpdateCall
Update: Updates an existing client buyer.
type AccountsClientsUpdateCall ¶
type AccountsClientsUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsUpdateCall) Context ¶
func (c *AccountsClientsUpdateCall) Context(ctx context.Context) *AccountsClientsUpdateCall
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 (*AccountsClientsUpdateCall) Do ¶
func (c *AccountsClientsUpdateCall) Do(opts ...googleapi.CallOption) (*Client, error)
Do executes the "adexchangebuyer2.accounts.clients.update" call. Exactly one of *Client or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Client.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 (*AccountsClientsUpdateCall) Fields ¶
func (c *AccountsClientsUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsUpdateCall) Header ¶
func (c *AccountsClientsUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsClientsUsersGetCall ¶
type AccountsClientsUsersGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsUsersGetCall) Context ¶
func (c *AccountsClientsUsersGetCall) Context(ctx context.Context) *AccountsClientsUsersGetCall
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 (*AccountsClientsUsersGetCall) Do ¶
func (c *AccountsClientsUsersGetCall) Do(opts ...googleapi.CallOption) (*ClientUser, error)
Do executes the "adexchangebuyer2.accounts.clients.users.get" call. Exactly one of *ClientUser or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUser.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 (*AccountsClientsUsersGetCall) Fields ¶
func (c *AccountsClientsUsersGetCall) Fields(s ...googleapi.Field) *AccountsClientsUsersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsUsersGetCall) Header ¶
func (c *AccountsClientsUsersGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsClientsUsersGetCall) IfNoneMatch ¶
func (c *AccountsClientsUsersGetCall) IfNoneMatch(entityTag string) *AccountsClientsUsersGetCall
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 AccountsClientsUsersListCall ¶
type AccountsClientsUsersListCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsUsersListCall) Context ¶
func (c *AccountsClientsUsersListCall) Context(ctx context.Context) *AccountsClientsUsersListCall
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 (*AccountsClientsUsersListCall) Do ¶
func (c *AccountsClientsUsersListCall) Do(opts ...googleapi.CallOption) (*ListClientUsersResponse, error)
Do executes the "adexchangebuyer2.accounts.clients.users.list" call. Exactly one of *ListClientUsersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListClientUsersResponse.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 (*AccountsClientsUsersListCall) Fields ¶
func (c *AccountsClientsUsersListCall) Fields(s ...googleapi.Field) *AccountsClientsUsersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsUsersListCall) Header ¶
func (c *AccountsClientsUsersListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsClientsUsersListCall) IfNoneMatch ¶
func (c *AccountsClientsUsersListCall) IfNoneMatch(entityTag string) *AccountsClientsUsersListCall
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 (*AccountsClientsUsersListCall) PageSize ¶
func (c *AccountsClientsUsersListCall) PageSize(pageSize int64) *AccountsClientsUsersListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer clients than requested. If unspecified, the server will pick an appropriate default.
func (*AccountsClientsUsersListCall) PageToken ¶
func (c *AccountsClientsUsersListCall) PageToken(pageToken string) *AccountsClientsUsersListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListClientUsersResponse.nextPageToken returned from the previous call to the accounts.clients.users.list method.
func (*AccountsClientsUsersListCall) Pages ¶
func (c *AccountsClientsUsersListCall) Pages(ctx context.Context, f func(*ListClientUsersResponse) 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.
type AccountsClientsUsersService ¶
type AccountsClientsUsersService struct {
// contains filtered or unexported fields
}
func NewAccountsClientsUsersService ¶
func NewAccountsClientsUsersService(s *Service) *AccountsClientsUsersService
func (*AccountsClientsUsersService) Get ¶
func (r *AccountsClientsUsersService) Get(accountId int64, clientAccountId int64, userId int64) *AccountsClientsUsersGetCall
Get: Retrieves an existing client user.
func (*AccountsClientsUsersService) List ¶
func (r *AccountsClientsUsersService) List(accountId int64, clientAccountId string) *AccountsClientsUsersListCall
List: Lists all the known client users for a specified sponsor buyer account ID.
func (*AccountsClientsUsersService) Update ¶
func (r *AccountsClientsUsersService) Update(accountId int64, clientAccountId int64, userId int64, clientuser *ClientUser) *AccountsClientsUsersUpdateCall
Update: Updates an existing client user. Only the user status can be changed on update.
type AccountsClientsUsersUpdateCall ¶
type AccountsClientsUsersUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccountsClientsUsersUpdateCall) Context ¶
func (c *AccountsClientsUsersUpdateCall) Context(ctx context.Context) *AccountsClientsUsersUpdateCall
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 (*AccountsClientsUsersUpdateCall) Do ¶
func (c *AccountsClientsUsersUpdateCall) Do(opts ...googleapi.CallOption) (*ClientUser, error)
Do executes the "adexchangebuyer2.accounts.clients.users.update" call. Exactly one of *ClientUser or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ClientUser.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 (*AccountsClientsUsersUpdateCall) Fields ¶
func (c *AccountsClientsUsersUpdateCall) Fields(s ...googleapi.Field) *AccountsClientsUsersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsClientsUsersUpdateCall) Header ¶
func (c *AccountsClientsUsersUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCreativesCreateCall ¶
type AccountsCreativesCreateCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesCreateCall) Context ¶
func (c *AccountsCreativesCreateCall) Context(ctx context.Context) *AccountsCreativesCreateCall
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 (*AccountsCreativesCreateCall) Do ¶
func (c *AccountsCreativesCreateCall) Do(opts ...googleapi.CallOption) (*Creative, error)
Do executes the "adexchangebuyer2.accounts.creatives.create" 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 (*AccountsCreativesCreateCall) DuplicateIdMode ¶
func (c *AccountsCreativesCreateCall) DuplicateIdMode(duplicateIdMode string) *AccountsCreativesCreateCall
DuplicateIdMode sets the optional parameter "duplicateIdMode": Indicates if multiple creatives can share an ID or not. Default is NO_DUPLICATES (one ID per creative).
Possible values:
"NO_DUPLICATES" "FORCE_ENABLE_DUPLICATE_IDS"
func (*AccountsCreativesCreateCall) Fields ¶
func (c *AccountsCreativesCreateCall) Fields(s ...googleapi.Field) *AccountsCreativesCreateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesCreateCall) Header ¶
func (c *AccountsCreativesCreateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCreativesDealAssociationsAddCall ¶
type AccountsCreativesDealAssociationsAddCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesDealAssociationsAddCall) Context ¶
func (c *AccountsCreativesDealAssociationsAddCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsAddCall
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 (*AccountsCreativesDealAssociationsAddCall) Do ¶
func (c *AccountsCreativesDealAssociationsAddCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.add" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsCreativesDealAssociationsAddCall) Fields ¶
func (c *AccountsCreativesDealAssociationsAddCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsAddCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesDealAssociationsAddCall) Header ¶
func (c *AccountsCreativesDealAssociationsAddCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCreativesDealAssociationsListCall ¶
type AccountsCreativesDealAssociationsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesDealAssociationsListCall) Context ¶
func (c *AccountsCreativesDealAssociationsListCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsListCall
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 (*AccountsCreativesDealAssociationsListCall) Do ¶
func (c *AccountsCreativesDealAssociationsListCall) Do(opts ...googleapi.CallOption) (*ListDealAssociationsResponse, error)
Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.list" call. Exactly one of *ListDealAssociationsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListDealAssociationsResponse.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 (*AccountsCreativesDealAssociationsListCall) Fields ¶
func (c *AccountsCreativesDealAssociationsListCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesDealAssociationsListCall) Header ¶
func (c *AccountsCreativesDealAssociationsListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCreativesDealAssociationsListCall) IfNoneMatch ¶
func (c *AccountsCreativesDealAssociationsListCall) IfNoneMatch(entityTag string) *AccountsCreativesDealAssociationsListCall
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 (*AccountsCreativesDealAssociationsListCall) PageSize ¶
func (c *AccountsCreativesDealAssociationsListCall) PageSize(pageSize int64) *AccountsCreativesDealAssociationsListCall
PageSize sets the optional parameter "pageSize": Requested page size. Server may return fewer associations than requested. If unspecified, server will pick an appropriate default.
func (*AccountsCreativesDealAssociationsListCall) PageToken ¶
func (c *AccountsCreativesDealAssociationsListCall) PageToken(pageToken string) *AccountsCreativesDealAssociationsListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListDealAssociationsResponse.next_page_token returned from the previous call to 'ListDealAssociations' method.
func (*AccountsCreativesDealAssociationsListCall) Pages ¶
func (c *AccountsCreativesDealAssociationsListCall) Pages(ctx context.Context, f func(*ListDealAssociationsResponse) 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 (*AccountsCreativesDealAssociationsListCall) Query ¶
func (c *AccountsCreativesDealAssociationsListCall) Query(query string) *AccountsCreativesDealAssociationsListCall
Query sets the optional parameter "query": An optional query string to filter deal associations. If no filter is specified, all associations will be returned. Supported queries are: <ul> <li>accountId=<i>account_id_string</i> <li>creativeId=<i>cre ative_id_string</i> <li>dealsId=<i>deals_id_string</i> <li>dealsStatus :{approved, conditionally_approved, disapproved,
not_checked}
<li>openAuctionStatus:{approved, conditionally_approved, disapproved,
not_checked}
</ul> Example: 'dealsId=12345 AND dealsStatus:disapproved'
type AccountsCreativesDealAssociationsRemoveCall ¶
type AccountsCreativesDealAssociationsRemoveCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesDealAssociationsRemoveCall) Context ¶
func (c *AccountsCreativesDealAssociationsRemoveCall) Context(ctx context.Context) *AccountsCreativesDealAssociationsRemoveCall
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 (*AccountsCreativesDealAssociationsRemoveCall) Do ¶
func (c *AccountsCreativesDealAssociationsRemoveCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "adexchangebuyer2.accounts.creatives.dealAssociations.remove" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsCreativesDealAssociationsRemoveCall) Fields ¶
func (c *AccountsCreativesDealAssociationsRemoveCall) Fields(s ...googleapi.Field) *AccountsCreativesDealAssociationsRemoveCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesDealAssociationsRemoveCall) Header ¶
func (c *AccountsCreativesDealAssociationsRemoveCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCreativesDealAssociationsService ¶
type AccountsCreativesDealAssociationsService struct {
// contains filtered or unexported fields
}
func NewAccountsCreativesDealAssociationsService ¶
func NewAccountsCreativesDealAssociationsService(s *Service) *AccountsCreativesDealAssociationsService
func (*AccountsCreativesDealAssociationsService) Add ¶
func (r *AccountsCreativesDealAssociationsService) Add(accountId string, creativeId string, adddealassociationrequest *AddDealAssociationRequest) *AccountsCreativesDealAssociationsAddCall
Add: Associate an existing deal with a creative.
func (*AccountsCreativesDealAssociationsService) List ¶
func (r *AccountsCreativesDealAssociationsService) List(accountId string, creativeId string) *AccountsCreativesDealAssociationsListCall
List: List all creative-deal associations.
func (*AccountsCreativesDealAssociationsService) Remove ¶
func (r *AccountsCreativesDealAssociationsService) Remove(accountId string, creativeId string, removedealassociationrequest *RemoveDealAssociationRequest) *AccountsCreativesDealAssociationsRemoveCall
Remove: Remove the association between a deal and a creative.
type AccountsCreativesGetCall ¶
type AccountsCreativesGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesGetCall) Context ¶
func (c *AccountsCreativesGetCall) Context(ctx context.Context) *AccountsCreativesGetCall
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 (*AccountsCreativesGetCall) Do ¶
func (c *AccountsCreativesGetCall) Do(opts ...googleapi.CallOption) (*Creative, error)
Do executes the "adexchangebuyer2.accounts.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 (*AccountsCreativesGetCall) Fields ¶
func (c *AccountsCreativesGetCall) Fields(s ...googleapi.Field) *AccountsCreativesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesGetCall) Header ¶
func (c *AccountsCreativesGetCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCreativesGetCall) IfNoneMatch ¶
func (c *AccountsCreativesGetCall) IfNoneMatch(entityTag string) *AccountsCreativesGetCall
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 AccountsCreativesListCall ¶
type AccountsCreativesListCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesListCall) Context ¶
func (c *AccountsCreativesListCall) Context(ctx context.Context) *AccountsCreativesListCall
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 (*AccountsCreativesListCall) Do ¶
func (c *AccountsCreativesListCall) Do(opts ...googleapi.CallOption) (*ListCreativesResponse, error)
Do executes the "adexchangebuyer2.accounts.creatives.list" call. Exactly one of *ListCreativesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListCreativesResponse.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 (*AccountsCreativesListCall) Fields ¶
func (c *AccountsCreativesListCall) Fields(s ...googleapi.Field) *AccountsCreativesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesListCall) Header ¶
func (c *AccountsCreativesListCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
func (*AccountsCreativesListCall) IfNoneMatch ¶
func (c *AccountsCreativesListCall) IfNoneMatch(entityTag string) *AccountsCreativesListCall
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 (*AccountsCreativesListCall) PageSize ¶
func (c *AccountsCreativesListCall) PageSize(pageSize int64) *AccountsCreativesListCall
PageSize sets the optional parameter "pageSize": Requested page size. The server may return fewer creatives than requested (due to timeout constraint) even if more are available via another call. If unspecified, server will pick an appropriate default. Acceptable values are 1 to 1000, inclusive.
func (*AccountsCreativesListCall) PageToken ¶
func (c *AccountsCreativesListCall) PageToken(pageToken string) *AccountsCreativesListCall
PageToken sets the optional parameter "pageToken": A token identifying a page of results the server should return. Typically, this is the value of ListCreativesResponse.next_page_token returned from the previous call to 'ListCreatives' method.
func (*AccountsCreativesListCall) Pages ¶
func (c *AccountsCreativesListCall) Pages(ctx context.Context, f func(*ListCreativesResponse) 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 (*AccountsCreativesListCall) Query ¶
func (c *AccountsCreativesListCall) Query(query string) *AccountsCreativesListCall
Query sets the optional parameter "query": An optional query string to filter creatives. If no filter is specified, all active creatives will be returned. Supported queries are: <ul> <li>accountId=<i>account_id_string</i> <li>creativeId=<i>cre ative_id_string</i> <li>dealsStatus: {approved, conditionally_approved, disapproved,
not_checked}
<li>openAuctionStatus: {approved, conditionally_approved, disapproved,
not_checked}
<li>attribute: {a numeric attribute from the list of attributes} <li>disapprovalReason: {a reason from DisapprovalReason </ul> Example: 'accountId=12345 AND (dealsStatus:disapproved AND disapprovalReason:unacceptable_content) OR attribute:47'
type AccountsCreativesService ¶
type AccountsCreativesService struct { DealAssociations *AccountsCreativesDealAssociationsService // contains filtered or unexported fields }
func NewAccountsCreativesService ¶
func NewAccountsCreativesService(s *Service) *AccountsCreativesService
func (*AccountsCreativesService) Create ¶
func (r *AccountsCreativesService) Create(accountId string, creative *Creative) *AccountsCreativesCreateCall
Create: Creates a creative.
func (*AccountsCreativesService) Get ¶
func (r *AccountsCreativesService) Get(accountId string, creativeId string) *AccountsCreativesGetCall
Get: Gets a creative.
func (*AccountsCreativesService) List ¶
func (r *AccountsCreativesService) List(accountId string) *AccountsCreativesListCall
List: Lists creatives.
func (*AccountsCreativesService) StopWatching ¶
func (r *AccountsCreativesService) StopWatching(accountId string, creativeId string, stopwatchingcreativerequest *StopWatchingCreativeRequest) *AccountsCreativesStopWatchingCall
StopWatching: Stops watching a creative. Will stop push notifications being sent to the topics when the creative changes status.
func (*AccountsCreativesService) Update ¶
func (r *AccountsCreativesService) Update(accountId string, creativeId string, creative *Creative) *AccountsCreativesUpdateCall
Update: Updates a creative.
func (*AccountsCreativesService) Watch ¶
func (r *AccountsCreativesService) Watch(accountId string, creativeId string, watchcreativerequest *WatchCreativeRequest) *AccountsCreativesWatchCall
Watch: Watches a creative. Will result in push notifications being sent to the topic when the creative changes status.
type AccountsCreativesStopWatchingCall ¶
type AccountsCreativesStopWatchingCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesStopWatchingCall) Context ¶
func (c *AccountsCreativesStopWatchingCall) Context(ctx context.Context) *AccountsCreativesStopWatchingCall
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 (*AccountsCreativesStopWatchingCall) Do ¶
func (c *AccountsCreativesStopWatchingCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "adexchangebuyer2.accounts.creatives.stopWatching" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsCreativesStopWatchingCall) Fields ¶
func (c *AccountsCreativesStopWatchingCall) Fields(s ...googleapi.Field) *AccountsCreativesStopWatchingCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesStopWatchingCall) Header ¶
func (c *AccountsCreativesStopWatchingCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCreativesUpdateCall ¶
type AccountsCreativesUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesUpdateCall) Context ¶
func (c *AccountsCreativesUpdateCall) Context(ctx context.Context) *AccountsCreativesUpdateCall
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 (*AccountsCreativesUpdateCall) Do ¶
func (c *AccountsCreativesUpdateCall) Do(opts ...googleapi.CallOption) (*Creative, error)
Do executes the "adexchangebuyer2.accounts.creatives.update" 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 (*AccountsCreativesUpdateCall) Fields ¶
func (c *AccountsCreativesUpdateCall) Fields(s ...googleapi.Field) *AccountsCreativesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesUpdateCall) Header ¶
func (c *AccountsCreativesUpdateCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsCreativesWatchCall ¶
type AccountsCreativesWatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsCreativesWatchCall) Context ¶
func (c *AccountsCreativesWatchCall) Context(ctx context.Context) *AccountsCreativesWatchCall
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 (*AccountsCreativesWatchCall) Do ¶
func (c *AccountsCreativesWatchCall) Do(opts ...googleapi.CallOption) (*Empty, error)
Do executes the "adexchangebuyer2.accounts.creatives.watch" call. Exactly one of *Empty or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Empty.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 (*AccountsCreativesWatchCall) Fields ¶
func (c *AccountsCreativesWatchCall) Fields(s ...googleapi.Field) *AccountsCreativesWatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsCreativesWatchCall) Header ¶
func (c *AccountsCreativesWatchCall) Header() http.Header
Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.
type AccountsService ¶
type AccountsService struct { Clients *AccountsClientsService Creatives *AccountsCreativesService // contains filtered or unexported fields }
func NewAccountsService ¶
func NewAccountsService(s *Service) *AccountsService
type AddDealAssociationRequest ¶
type AddDealAssociationRequest struct { // Association: The association between a creative and a deal that // should be added. Association *CreativeDealAssociation `json:"association,omitempty"` // ForceSendFields is a list of field names (e.g. "Association") 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. "Association") 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:"-"` }
AddDealAssociationRequest: A request for associating a deal and a creative.
func (*AddDealAssociationRequest) MarshalJSON ¶
func (s *AddDealAssociationRequest) MarshalJSON() ([]byte, error)
type AppContext ¶
type AppContext struct { // AppTypes: The app types this restriction applies to. // // Possible values: // "NATIVE" - Native app context. // "WEB" - Mobile web app context. AppTypes []string `json:"appTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "AppTypes") 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. "AppTypes") 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:"-"` }
AppContext: @OutputOnly The app type the restriction applies to for mobile device.
func (*AppContext) MarshalJSON ¶
func (s *AppContext) MarshalJSON() ([]byte, error)
type AuctionContext ¶
type AuctionContext struct { // AuctionTypes: The auction types this restriction applies to. // // Possible values: // "OPEN_AUCTION" - The restriction applies to open auction. // "DIRECT_DEALS" - The restriction applies to direct deals. AuctionTypes []string `json:"auctionTypes,omitempty"` // ForceSendFields is a list of field names (e.g. "AuctionTypes") 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. "AuctionTypes") 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:"-"` }
AuctionContext: @OutputOnly The auction type the restriction applies to.
func (*AuctionContext) MarshalJSON ¶
func (s *AuctionContext) MarshalJSON() ([]byte, error)
type Client ¶
type Client struct { // ClientAccountId: The globally-unique numerical ID of the client. // The value of this field is ignored in create and update operations. ClientAccountId int64 `json:"clientAccountId,omitempty,string"` // ClientName: Name used to represent this client to publishers. // You may have multiple clients that map to the same entity, // but for each client the combination of `clientName` and entity // must be unique. // You can specify this field as empty. ClientName string `json:"clientName,omitempty"` // EntityId: Numerical identifier of the client entity. // The entity can be an advertiser, a brand, or an agency. // This identifier is unique among all the entities with the same // type. // // A list of all known advertisers with their identifiers is available // in // the // [advertisers.txt](https://storage.googleapis.com/adx-rtb-dictionar // ies/advertisers.txt) // file. // // A list of all known brands with their identifiers is available in // the // [brands.txt](https://storage.googleapis.com/adx-rtb-dictionaries/b // rands.txt) // file. // // A list of all known agencies with their identifiers is available in // the // [agencies.txt](https://storage.googleapis.com/adx-rtb-dictionaries // /agencies.txt) // file. EntityId int64 `json:"entityId,omitempty,string"` // EntityName: The name of the entity. This field is automatically // fetched based on // the type and ID. // The value of this field is ignored in create and update operations. EntityName string `json:"entityName,omitempty"` // EntityType: The type of the client entity: `ADVERTISER`, `BRAND`, or // `AGENCY`. // // Possible values: // "ENTITY_TYPE_UNSPECIFIED" - A placeholder for an undefined client // entity type. Should not be used. // "ADVERTISER" - An advertiser. // "BRAND" - A brand. // "AGENCY" - An advertising agency. EntityType string `json:"entityType,omitempty"` // Role: The role which is assigned to the client buyer. Each role // implies a set of // permissions granted to the client. Must be one of // `CLIENT_DEAL_VIEWER`, // `CLIENT_DEAL_NEGOTIATOR` or `CLIENT_DEAL_APPROVER`. // // Possible values: // "CLIENT_ROLE_UNSPECIFIED" - A placeholder for an undefined client // role. // "CLIENT_DEAL_VIEWER" - Users associated with this client can see // publisher deal offers // in the Marketplace. // They can neither negotiate proposals nor approve deals. // If this client is visible to publishers, they can send deal // proposals // to this client. // "CLIENT_DEAL_NEGOTIATOR" - Users associated with this client can // respond to deal proposals // sent to them by publishers. They can also initiate deal proposals // of their own. // "CLIENT_DEAL_APPROVER" - Users associated with this client can // approve eligible deals // on your behalf. Some deals may still explicitly require // publisher // finalization. If this role is not selected, the sponsor buyer // will need to manually approve each of their deals. Role string `json:"role,omitempty"` // Status: The status of the client buyer. // // Possible values: // "CLIENT_STATUS_UNSPECIFIED" - A placeholder for an undefined client // status. // "DISABLED" - A client that is currently disabled. // "ACTIVE" - A client that is currently active. Status string `json:"status,omitempty"` // VisibleToSeller: Whether the client buyer will be visible to sellers. VisibleToSeller bool `json:"visibleToSeller,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ClientAccountId") 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. "ClientAccountId") 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:"-"` }
Client: A client resource represents a client buyer—an agency, a brand, or an advertiser customer of the sponsor buyer. Users associated with the client buyer have restricted access to the Ad Exchange Marketplace and certain other sections of the Ad Exchange Buyer UI based on the role granted to the client buyer. All fields are required unless otherwise specified.
func (*Client) MarshalJSON ¶
type ClientUser ¶
type ClientUser struct { // ClientAccountId: Numerical account ID of the client buyer // with which the user is associated; the // buyer must be a client of the current sponsor buyer. // The value of this field is ignored in an update operation. ClientAccountId int64 `json:"clientAccountId,omitempty,string"` // Email: User's email address. The value of this field // is ignored in an update operation. Email string `json:"email,omitempty"` // Status: The status of the client user. // // Possible values: // "USER_STATUS_UNSPECIFIED" - A placeholder for an undefined user // status. // "PENDING" - A user who was already created but hasn't accepted the // invitation yet. // "ACTIVE" - A user that is currently active. // "DISABLED" - A user that is currently disabled. Status string `json:"status,omitempty"` // UserId: The unique numerical ID of the client user // that has accepted an invitation. // The value of this field is ignored in an update operation. UserId int64 `json:"userId,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. "ClientAccountId") 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. "ClientAccountId") 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:"-"` }
ClientUser: A client user is created under a client buyer and has restricted access to the Ad Exchange Marketplace and certain other sections of the Ad Exchange Buyer UI based on the role granted to the associated client buyer.
The only way a new client user can be created is via accepting an email invitation (see the accounts.clients.invitations.create method).
All fields are required unless otherwise specified.
func (*ClientUser) MarshalJSON ¶
func (s *ClientUser) MarshalJSON() ([]byte, error)
type ClientUserInvitation ¶
type ClientUserInvitation struct { // ClientAccountId: Numerical account ID of the client buyer // that the invited user is associated with. // The value of this field is ignored in create operations. ClientAccountId int64 `json:"clientAccountId,omitempty,string"` // Email: The email address to which the invitation is sent. // Email // addresses should be unique among all client users under each // sponsor // buyer. Email string `json:"email,omitempty"` // InvitationId: The unique numerical ID of the invitation that is sent // to the user. // The value of this field is ignored in create operations. InvitationId int64 `json:"invitationId,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. "ClientAccountId") 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. "ClientAccountId") 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:"-"` }
ClientUserInvitation: An invitation for a new client user to get access to the Ad Exchange Buyer UI. All fields are required unless otherwise specified.
func (*ClientUserInvitation) MarshalJSON ¶
func (s *ClientUserInvitation) MarshalJSON() ([]byte, error)
type Correction ¶
type Correction struct { // Contexts: The contexts for the correction. Contexts []*ServingContext `json:"contexts,omitempty"` // Details: Additional details about what was corrected. Details []string `json:"details,omitempty"` // Type: The type of correction that was applied to the creative. // // Possible values: // "CORRECTION_TYPE_UNSPECIFIED" - The correction type is unknown. // Refer to the details for more information. // "VENDOR_IDS_ADDED" - The ad's declared vendors did not match the // vendors that were detected. // The detected vendors were added. // "SSL_ATTRIBUTE_REMOVED" - The ad had the SSL attribute declared but // was not SSL-compliant. // The SSL attribute was removed. // "FLASH_FREE_ATTRIBUTE_REMOVED" - The ad was declared as Flash-free // but contained Flash, so the Flash-free // attribute was removed. // "FLASH_FREE_ATTRIBUTE_ADDED" - The ad was not declared as // Flash-free but it did not reference any flash // content, so the Flash-free attribute was added. // "REQUIRED_ATTRIBUTE_ADDED" - The ad did not declare a required // creative attribute. // The attribute was added. // "REQUIRED_VENDOR_ADDED" - The ad did not declare a required // technology vendor. // The technology vendor was added. // "SSL_ATTRIBUTE_ADDED" - The ad did not declare the SSL attribute // but was SSL-compliant, so the // SSL attribute was added. // "IN_BANNER_VIDEO_ATTRIBUTE_ADDED" - Properties consistent with // In-banner video were found, so an // In-Banner Video attribute was added. // "MRAID_ATTRIBUTE_ADDED" - The ad makes calls to the MRAID API so // the MRAID attribute was added. // "FLASH_ATTRIBUTE_REMOVED" - The ad unnecessarily declared the Flash // attribute, so the Flash attribute // was removed. // "VIDEO_IN_SNIPPET_ATTRIBUTE_ADDED" - The ad contains video content. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Contexts") 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. "Contexts") 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:"-"` }
Correction: @OutputOnly Shows any corrections that were applied to this creative.
func (*Correction) MarshalJSON ¶
func (s *Correction) MarshalJSON() ([]byte, error)
type Creative ¶
type Creative struct { // AccountId: The account that this creative belongs to. // Can be used to filter the response of the // creatives.list // method. AccountId string `json:"accountId,omitempty"` // AdChoicesDestinationUrl: The link to AdChoices destination page. AdChoicesDestinationUrl string `json:"adChoicesDestinationUrl,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"` // ApiUpdateTime: @OutputOnly The last update timestamp of the creative // via API. ApiUpdateTime string `json:"apiUpdateTime,omitempty"` // Attributes: All attributes for the ads that may be shown from this // creative. // Can be used to filter the response of the // creatives.list // method. // // Possible values: // "ATTRIBUTE_UNSPECIFIED" - Do not use. This is a placeholder value // only. // "IS_TAGGED" - The creative is tagged. // "IS_COOKIE_TARGETED" - The creative is cookie targeted. // "IS_USER_INTEREST_TARGETED" - The creative is user interest // targeted. // "EXPANDING_DIRECTION_NONE" - The creative does not expand. // "EXPANDING_DIRECTION_UP" - The creative expands up. // "EXPANDING_DIRECTION_DOWN" - The creative expands down. // "EXPANDING_DIRECTION_LEFT" - The creative expands left. // "EXPANDING_DIRECTION_RIGHT" - The creative expands right. // "EXPANDING_DIRECTION_UP_LEFT" - The creative expands up and left. // "EXPANDING_DIRECTION_UP_RIGHT" - The creative expands up and right. // "EXPANDING_DIRECTION_DOWN_LEFT" - The creative expands down and // left. // "EXPANDING_DIRECTION_DOWN_RIGHT" - The creative expands down and // right. // "EXPANDING_DIRECTION_UP_OR_DOWN" - The creative expands up or down. // "EXPANDING_DIRECTION_LEFT_OR_RIGHT" - The creative expands left or // right. // "EXPANDING_DIRECTION_ANY_DIAGONAL" - The creative expands on any // diagonal. // "EXPANDING_ACTION_ROLLOVER_TO_EXPAND" - The creative expands when // rolled over. // "INSTREAM_VAST_VIDEO_TYPE_VPAID_FLASH" - The instream vast video // type is vpaid flash. // "RICH_MEDIA_CAPABILITY_TYPE_MRAID" - The creative is MRAID // "RICH_MEDIA_CAPABILITY_TYPE_SSL" - The creative is SSL. // "RICH_MEDIA_CAPABILITY_TYPE_INTERSTITIAL" - The creative is an // interstitial. // "NATIVE_ELIGIBILITY_ELIGIBLE" - The creative is eligible for // native. // "NATIVE_ELIGIBILITY_NOT_ELIGIBLE" - The creative is not eligible // for native. // "RENDERING_SIZELESS_ADX" - The creative can dynamically resize to // fill a variety of slot sizes. Attributes []string `json:"attributes,omitempty"` // ClickThroughUrls: The set of destination URLs for the creative. ClickThroughUrls []string `json:"clickThroughUrls,omitempty"` // Corrections: @OutputOnly Shows any corrections that were applied to // this creative. Corrections []*Correction `json:"corrections,omitempty"` // CreativeId: The buyer-defined creative ID of this creative. // Can be used to filter the response of the // creatives.list // method. CreativeId string `json:"creativeId,omitempty"` // DealsStatus: @OutputOnly The top-level deals status of this // creative. // If disapproved, an entry for 'auctionType=DIRECT_DEALS' (or 'ALL') // in // serving_restrictions will also exist. Note // that this may be nuanced with other contextual restrictions, in which // case, // it may be preferable to read from serving_restrictions directly. // Can be used to filter the response of the // creatives.list // method. // // Possible values: // "STATUS_UNSPECIFIED" - The status is unknown. // "NOT_CHECKED" - The creative has not been checked. // "CONDITIONALLY_APPROVED" - The creative has been conditionally // approved. // See serving_restrictions for details. // "APPROVED" - The creative has been approved. // "DISAPPROVED" - The creative has been disapproved. DealsStatus string `json:"dealsStatus,omitempty"` // DetectedAdvertiserIds: @OutputOnly Detected advertiser IDs, if any. DetectedAdvertiserIds googleapi.Int64s `json:"detectedAdvertiserIds,omitempty"` // DetectedDomains: @OutputOnly // The detected domains for this creative. DetectedDomains []string `json:"detectedDomains,omitempty"` // DetectedLanguages: @OutputOnly // The detected languages for this creative. The order is arbitrary. The // codes // are 2 or 5 characters and are documented // at // https://developers.google.com/adwords/api/docs/appendix/languagecod // es. DetectedLanguages []string `json:"detectedLanguages,omitempty"` // DetectedProductCategories: @OutputOnly Detected product categories, // if any. // See the ad-product-categories.txt file in the technical // documentation // for a list of IDs. DetectedProductCategories []int64 `json:"detectedProductCategories,omitempty"` // DetectedSensitiveCategories: @OutputOnly Detected sensitive // categories, if any. // See the ad-sensitive-categories.txt file in the technical // documentation for // a list of IDs. You should use these IDs along with // the // excluded-sensitive-category field in the bid request to filter your // bids. DetectedSensitiveCategories []int64 `json:"detectedSensitiveCategories,omitempty"` // FilteringStats: @OutputOnly The filtering stats for this creative. FilteringStats *FilteringStats `json:"filteringStats,omitempty"` // Html: An HTML creative. Html *HtmlContent `json:"html,omitempty"` // ImpressionTrackingUrls: The set of URLs to be called to record an // impression. ImpressionTrackingUrls []string `json:"impressionTrackingUrls,omitempty"` // Native: A native creative. Native *NativeContent `json:"native,omitempty"` // OpenAuctionStatus: @OutputOnly The top-level open auction status of // this creative. // If disapproved, an entry for 'auctionType = OPEN_AUCTION' (or 'ALL') // in // serving_restrictions will also exist. Note // that this may be nuanced with other contextual restrictions, in which // case, // it may be preferable to read from serving_restrictions directly. // Can be used to filter the response of the // creatives.list // method. // // Possible values: // "STATUS_UNSPECIFIED" - The status is unknown. // "NOT_CHECKED" - The creative has not been checked. // "CONDITIONALLY_APPROVED" - The creative has been conditionally // approved. // See serving_restrictions for details. // "APPROVED" - The creative has been approved. // "DISAPPROVED" - The creative has been disapproved. OpenAuctionStatus string `json:"openAuctionStatus,omitempty"` // RestrictedCategories: All restricted categories for the ads that may // be shown from this creative. // // Possible values: // "NO_RESTRICTED_CATEGORIES" - The ad has no restricted categories // "ALCOHOL" - The alcohol restricted category. RestrictedCategories []string `json:"restrictedCategories,omitempty"` // ServingRestrictions: @OutputOnly The granular status of this ad in // specific contexts. // A context here relates to where something ultimately serves (for // example, // a physical location, a platform, an HTTPS vs HTTP request, or the // type // of auction). ServingRestrictions []*ServingRestriction `json:"servingRestrictions,omitempty"` // VendorIds: All vendor IDs for the ads that may be shown from this // creative. // See // https://storage.googleapis.com/adx-rtb-dictionaries/vendors.txt // for possible values. VendorIds []int64 `json:"vendorIds,omitempty"` // Version: @OutputOnly The version of this creative. Version int64 `json:"version,omitempty"` // Video: A video creative. Video *VideoContent `json:"video,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:"-"` }
Creative: A creative and its classification data.
func (*Creative) MarshalJSON ¶
type CreativeDealAssociation ¶
type CreativeDealAssociation struct { // AccountId: The account the creative belongs to. AccountId string `json:"accountId,omitempty"` // CreativeId: The ID of the creative associated with the deal. CreativeId string `json:"creativeId,omitempty"` // DealsId: The externalDealId for the deal associated with the // creative. DealsId string `json:"dealsId,omitempty"` // 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:"-"` }
CreativeDealAssociation: The association between a creative and a deal.
func (*CreativeDealAssociation) MarshalJSON ¶
func (s *CreativeDealAssociation) MarshalJSON() ([]byte, error)
type Date ¶
type Date struct { // Day: Day of month. Must be from 1 to 31 and valid for the year and // month, or 0 // if specifying a year/month where the day is not significant. Day int64 `json:"day,omitempty"` // Month: Month of year. Must be from 1 to 12. Month int64 `json:"month,omitempty"` // Year: Year of date. Must be from 1 to 9999, or 0 if specifying a date // without // a year. Year int64 `json:"year,omitempty"` // ForceSendFields is a list of field names (e.g. "Day") 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. "Day") 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:"-"` }
Date: Represents a whole calendar date, e.g. date of birth. The time of day and time zone are either specified elsewhere or are not significant. The date is relative to the Proleptic Gregorian Calendar. The day may be 0 to represent a year and month where the day is not significant, e.g. credit card expiration date. The year may be 0 to represent a month and day independent of year, e.g. anniversary date. Related types are google.type.TimeOfDay and `google.protobuf.Timestamp`.
func (*Date) MarshalJSON ¶
type Disapproval ¶
type Disapproval struct { // Details: Additional details about the reason for disapproval. Details []string `json:"details,omitempty"` // Reason: The categorized reason for disapproval. // // Possible values: // "LENGTH_OF_IMAGE_ANIMATION" - The length of the image animation is // longer than allowed. // "BROKEN_URL" - The click through URL doesn't work properly. // "MEDIA_NOT_FUNCTIONAL" - Something is wrong with the creative // itself. // "INVALID_FOURTH_PARTY_CALL" - The ad makes a fourth party call to // an unapproved vendor. // "INCORRECT_REMARKETING_DECLARATION" - The ad targets consumers // using remarketing lists and/or collects // data for subsequent use in retargeting, but does not correctly // declare // that use. // "LANDING_PAGE_ERROR" - Clicking on the ad leads to an error page. // "AD_SIZE_DOES_NOT_MATCH_AD_SLOT" - The ad size when rendered does // not match the declaration. // "NO_BORDER" - Ads with a white background require a border, which // was missing. // "FOURTH_PARTY_BROWSER_COOKIES" - The creative attempts to set // cookies from a fourth party that is not // certified. // "LSO_OBJECTS" - The creative sets an LSO object. // "BLANK_CREATIVE" - The ad serves a blank. // "DESTINATION_URLS_UNDECLARED" - The ad uses rotation, but not all // destination URLs were declared. // "PROBLEM_WITH_CLICK_MACRO" - There is a problem with the way the // click macro is used. // "INCORRECT_AD_TECHNOLOGY_DECLARATION" - The ad technology // declaration is not accurate. // "INCORRECT_DESTINATION_URL_DECLARATION" - The actual destination // URL does not match the declared destination URL. // "EXPANDABLE_INCORRECT_DIRECTION" - The declared expanding direction // does not match the actual direction. // "EXPANDABLE_DIRECTION_NOT_SUPPORTED" - The ad does not expand in a // supported direction. // "EXPANDABLE_INVALID_VENDOR" - The ad uses an expandable vendor that // is not supported. // "EXPANDABLE_FUNCTIONALITY" - There was an issue with the expandable // ad. // "VIDEO_INVALID_VENDOR" - The ad uses a video vendor that is not // supported. // "VIDEO_UNSUPPORTED_LENGTH" - The length of the video ad is not // supported. // "VIDEO_UNSUPPORTED_FORMAT" - The format of the video ad is not // supported. // "VIDEO_FUNCTIONALITY" - There was an issue with the video ad. // "LANDING_PAGE_DISABLED" - The landing page does not conform to Ad // Exchange policy. // "MALWARE_SUSPECTED" - The ad or the landing page may contain // malware. // "ADULT_IMAGE_OR_VIDEO" - The ad contains adult images or video // content. // "INACCURATE_AD_TEXT" - The ad contains text that is unclear or // inaccurate. // "COUNTERFEIT_DESIGNER_GOODS" - The ad promotes counterfeit designer // goods. // "POP_UP" - The ad causes a popup window to appear. // "INVALID_RTB_PROTOCOL_USAGE" - The creative does not follow // policies set for the RTB protocol. // "RAW_IP_ADDRESS_IN_SNIPPET" - The ad contains a URL that uses a // numeric IP address for the domain. // "UNACCEPTABLE_CONTENT_SOFTWARE" - The ad or landing page contains // unacceptable content because it initiated // a software or executable download. // "UNAUTHORIZED_COOKIE_ON_GOOGLE_DOMAIN" - The ad set an unauthorized // cookie on a Google domain. // "UNDECLARED_FLASH_OBJECTS" - Flash content found when no flash was // declared. // "INVALID_SSL_DECLARATION" - SSL support declared but not working // correctly. // "DIRECT_DOWNLOAD_IN_AD" - Rich Media - Direct Download in Ad (ex. // PDF download). // "MAXIMUM_DOWNLOAD_SIZE_EXCEEDED" - Maximum download size exceeded. // "DESTINATION_URL_SITE_NOT_CRAWLABLE" - Bad Destination URL: Site // Not Crawlable. // "BAD_URL_LEGAL_DISAPPROVAL" - Bad URL: Legal disapproval. // "PHARMA_GAMBLING_ALCOHOL_NOT_ALLOWED" - Pharmaceuticals, Gambling, // Alcohol not allowed and at least one was // detected. // "DYNAMIC_DNS_AT_DESTINATION_URL" - Dynamic DNS at Destination URL. // "POOR_IMAGE_OR_VIDEO_QUALITY" - Poor Image / Video Quality. // "UNACCEPTABLE_IMAGE_CONTENT" - For example, Image Trick to Click. // "INCORRECT_IMAGE_LAYOUT" - Incorrect Image Layout. // "IRRELEVANT_IMAGE_OR_VIDEO" - Irrelevant Image / Video. // "DESTINATION_SITE_DOES_NOT_ALLOW_GOING_BACK" - Broken back button. // "MISLEADING_CLAIMS_IN_AD" - Misleading/Inaccurate claims in ads. // "RESTRICTED_PRODUCTS" - Restricted Products. // "UNACCEPTABLE_CONTENT" - Unacceptable content. For example, // malware. // "AUTOMATED_AD_CLICKING" - The ad automatically redirects to the // destination site without a click, // or reports a click when none were made. // "INVALID_URL_PROTOCOL" - The ad uses URL protocols that do not // exist or are not allowed on AdX. // "UNDECLARED_RESTRICTED_CONTENT" - Restricted content (for example, // alcohol) was found in the ad but not // declared. // "INVALID_REMARKETING_LIST_USAGE" - Violation of the remarketing // list policy. // "DESTINATION_SITE_NOT_CRAWLABLE_ROBOTS_TXT" - The destination // site's robot.txt file prevents it from being crawled. // "CLICK_TO_DOWNLOAD_NOT_AN_APP" - Click to download must link to an // app. // "INACCURATE_REVIEW_EXTENSION" - A review extension must be an // accurate review. // "SEXUALLY_EXPLICIT_CONTENT" - Sexually explicit content. // "GAINING_AN_UNFAIR_ADVANTAGE" - The ad tries to gain an unfair // traffic advantage. // "GAMING_THE_GOOGLE_NETWORK" - The ad tries to circumvent Google's // advertising systems. // "DANGEROUS_PRODUCTS_KNIVES" - The ad promotes dangerous knives. // "DANGEROUS_PRODUCTS_EXPLOSIVES" - The ad promotes explosives. // "DANGEROUS_PRODUCTS_GUNS" - The ad promotes guns & parts. // "DANGEROUS_PRODUCTS_DRUGS" - The ad promotes recreational // drugs/services & related equipment. // "DANGEROUS_PRODUCTS_TOBACCO" - The ad promotes tobacco // products/services & related equipment. // "DANGEROUS_PRODUCTS_WEAPONS" - The ad promotes weapons. // "UNCLEAR_OR_IRRELEVANT_AD" - The ad is unclear or irrelevant to the // destination site. // "PROFESSIONAL_STANDARDS" - The ad does not meet professional // standards. // "DYSFUNCTIONAL_PROMOTION" - The promotion is unnecessarily // difficult to navigate. // "INVALID_INTEREST_BASED_AD" - Violation of Google's policy for // interest-based ads. // "MISUSE_OF_PERSONAL_INFORMATION" - Misuse of personal information. // "OMISSION_OF_RELEVANT_INFORMATION" - Omission of relevant // information. // "UNAVAILABLE_PROMOTIONS" - Unavailable promotions. // "MISLEADING_PROMOTIONS" - Misleading or unrealistic promotions. // "INAPPROPRIATE_CONTENT" - Offensive or inappropriate content. // "SENSITIVE_EVENTS" - Capitalizing on sensitive events. // "SHOCKING_CONTENT" - Shocking content. // "ENABLING_DISHONEST_BEHAVIOR" - Products & Services that enable // dishonest behavior. // "TECHNICAL_REQUIREMENTS" - The ad does not meet technical // requirements. // "RESTRICTED_POLITICAL_CONTENT" - Restricted political content. // "UNSUPPORTED_CONTENT" - Unsupported content. // "INVALID_BIDDING_METHOD" - Invalid bidding method. // "VIDEO_TOO_LONG" - Video length exceeds limits. // "VIOLATES_JAPANESE_PHARMACY_LAW" - Unacceptable content: Japanese // healthcare. // "UNACCREDITED_PET_PHARMACY" - Online pharmacy ID required. // "ABORTION" - Unacceptable content: Abortion. // "CONTRACEPTIVES" - Unacceptable content: Birth control. // "NEED_CERTIFICATES_TO_ADVERTISE_IN_CHINA" - Restricted in China. // "KCDSP_REGISTRATION" - Unacceptable content: Korean healthcare. // "NOT_FAMILY_SAFE" - Non-family safe or adult content. // "CLINICAL_TRIAL_RECRUITMENT" - Clinical trial recruitment. // "MAXIMUM_NUMBER_OF_HTTP_CALLS_EXCEEDED" - Maximum number of HTTP // calls exceeded. // "MAXIMUM_NUMBER_OF_COOKIES_EXCEEDED" - Maximum number of cookies // exceeded. // "PERSONAL_LOANS" - Financial service ad does not adhere to // specifications. // "UNSUPPORTED_FLASH_CONTENT" - Flash content was found in an // unsupported context. 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:"-"` }
Disapproval: @OutputOnly The reason and details for a disapproval.
func (*Disapproval) MarshalJSON ¶
func (s *Disapproval) MarshalJSON() ([]byte, error)
type Empty ¶
type Empty struct { // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` }
Empty: A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:
service Foo { rpc Bar(google.protobuf.Empty) returns
(google.protobuf.Empty);
}
The JSON representation for `Empty` is empty JSON object `{}`.
type FilteringStats ¶
type FilteringStats struct { // Date: The day during which the data was collected. // The data is collected from 00:00:00 to 23:59:59 PT. // During switches from PST to PDT and back, the day may // contain 23 or 25 hours of data instead of the usual 24. Date *Date `json:"date,omitempty"` // Reasons: The set of filtering reasons for this date. Reasons []*Reason `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:"-"` }
FilteringStats: @OutputOnly Filtering reasons for this creative during a period of a single day (from midnight to midnight Pacific).
func (*FilteringStats) MarshalJSON ¶
func (s *FilteringStats) MarshalJSON() ([]byte, error)
type HtmlContent ¶
type HtmlContent struct { // Height: The height of the HTML snippet in pixels. Height int64 `json:"height,omitempty"` // Snippet: The HTML snippet that displays the ad when inserted in the // web page. Snippet string `json:"snippet,omitempty"` // Width: The width of the HTML snippet in pixels. 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:"-"` }
HtmlContent: HTML content for a creative.
func (*HtmlContent) MarshalJSON ¶
func (s *HtmlContent) MarshalJSON() ([]byte, error)
type Image ¶
type Image struct { // Height: Image height in pixels. Height int64 `json:"height,omitempty"` // Url: The URL of the image. Url string `json:"url,omitempty"` // Width: Image width in pixels. 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:"-"` }
Image: An image resource. You may provide a larger image than was requested, so long as the aspect ratio is preserved.
func (*Image) MarshalJSON ¶
type ListClientUserInvitationsResponse ¶
type ListClientUserInvitationsResponse struct { // Invitations: The returned list of client users. Invitations []*ClientUserInvitation `json:"invitations,omitempty"` // NextPageToken: A token to retrieve the next page of results. // Pass this value in // the // ListClientUserInvitationsRequest.pageToken // field in the subsequent call to the // clients.invitations.list // method to retrieve the next // page of results. 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. "Invitations") 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. "Invitations") 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 (*ListClientUserInvitationsResponse) MarshalJSON ¶
func (s *ListClientUserInvitationsResponse) MarshalJSON() ([]byte, error)
type ListClientUsersResponse ¶
type ListClientUsersResponse struct { // NextPageToken: A token to retrieve the next page of results. // Pass this value in the // ListClientUsersRequest.pageToken // field in the subsequent call to the // clients.invitations.list // method to retrieve the next // page of results. NextPageToken string `json:"nextPageToken,omitempty"` // Users: The returned list of client users. Users []*ClientUser `json:"users,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 (*ListClientUsersResponse) MarshalJSON ¶
func (s *ListClientUsersResponse) MarshalJSON() ([]byte, error)
type ListClientsResponse ¶
type ListClientsResponse struct { // Clients: The returned list of clients. Clients []*Client `json:"clients,omitempty"` // NextPageToken: A token to retrieve the next page of results. // Pass this value in the // ListClientsRequest.pageToken // field in the subsequent call to the // accounts.clients.list method // to retrieve the next page of results. 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. "Clients") 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. "Clients") 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 (*ListClientsResponse) MarshalJSON ¶
func (s *ListClientsResponse) MarshalJSON() ([]byte, error)
type ListCreativesResponse ¶
type ListCreativesResponse struct { // Creatives: The list of creatives. Creatives []*Creative `json:"creatives,omitempty"` // NextPageToken: A token to retrieve the next page of results. // Pass this value in the // ListCreativesRequest.page_token // field in the subsequent call to `ListCreatives` method to retrieve // the next // page of results. 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. "Creatives") 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. "Creatives") 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:"-"` }
ListCreativesResponse: A response for listing creatives.
func (*ListCreativesResponse) MarshalJSON ¶
func (s *ListCreativesResponse) MarshalJSON() ([]byte, error)
type ListDealAssociationsResponse ¶
type ListDealAssociationsResponse struct { // Associations: The list of associations. Associations []*CreativeDealAssociation `json:"associations,omitempty"` // NextPageToken: A token to retrieve the next page of results. // Pass this value in the // ListDealAssociationsRequest.page_token // field in the subsequent call to 'ListDealAssociation' method to // retrieve // the next page of results. 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. "Associations") 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. "Associations") 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:"-"` }
ListDealAssociationsResponse: A response for listing creative and deal associations
func (*ListDealAssociationsResponse) MarshalJSON ¶
func (s *ListDealAssociationsResponse) MarshalJSON() ([]byte, error)
type LocationContext ¶
type LocationContext struct { // GeoCriteriaIds: IDs representing the geo location for this // context. // Please refer to // the // [geo-table.csv](https://storage.googleapis.com/adx-rtb-dictionarie // s/geo-table.csv) // file for different geo criteria IDs. GeoCriteriaIds []int64 `json:"geoCriteriaIds,omitempty"` // ForceSendFields is a list of field names (e.g. "GeoCriteriaIds") 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. "GeoCriteriaIds") 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:"-"` }
LocationContext: @OutputOnly The Geo criteria the restriction applies to.
func (*LocationContext) MarshalJSON ¶
func (s *LocationContext) MarshalJSON() ([]byte, error)
type NativeContent ¶
type NativeContent struct { // AdvertiserName: The name of the advertiser or sponsor, to be // displayed in the ad creative. AdvertiserName string `json:"advertiserName,omitempty"` // AppIcon: The app icon, for app download ads. AppIcon *Image `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"` // ClickLinkUrl: The URL that the browser/SDK will load when the user // clicks the ad. ClickLinkUrl string `json:"clickLinkUrl,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 *Image `json:"image,omitempty"` // Logo: A smaller image, for the advertiser's logo. Logo *Image `json:"logo,omitempty"` // PriceDisplayText: The price of the promoted app including currency // info. PriceDisplayText string `json:"priceDisplayText,omitempty"` // StarRating: The app rating in the app store. Must be in the range // [0-5]. StarRating float64 `json:"starRating,omitempty"` // StoreUrl: The URL to the app store to purchase/download the promoted // app. StoreUrl string `json:"storeUrl,omitempty"` // VideoUrl: The URL to fetch a native video ad. VideoUrl string `json:"videoUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "AdvertiserName") 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. "AdvertiserName") 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:"-"` }
NativeContent: Native content for a creative.
func (*NativeContent) MarshalJSON ¶
func (s *NativeContent) MarshalJSON() ([]byte, error)
func (*NativeContent) UnmarshalJSON ¶
func (s *NativeContent) UnmarshalJSON(data []byte) error
type PlatformContext ¶
type PlatformContext struct { // Platforms: The platforms this restriction applies to. // // Possible values: // "DESKTOP" - Desktop platform. // "ANDROID" - Android platform. // "IOS" - iOS platform. Platforms []string `json:"platforms,omitempty"` // ForceSendFields is a list of field names (e.g. "Platforms") 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. "Platforms") 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:"-"` }
PlatformContext: @OutputOnly The type of platform the restriction applies to.
func (*PlatformContext) MarshalJSON ¶
func (s *PlatformContext) MarshalJSON() ([]byte, error)
type Reason ¶
type Reason struct { // Count: The number of times the creative was filtered for the status. // The // count is aggregated across all publishers on the exchange. Count int64 `json:"count,omitempty,string"` // Status: The filtering status code. Please refer to // the // [creative-status-codes.txt](https://storage.googleapis.com/adx-rtb // -dictionaries/creative-status-codes.txt) // file for different statuses. Status int64 `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Count") 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. "Count") 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:"-"` }
Reason: A specific filtering status and how many times it occurred.
func (*Reason) MarshalJSON ¶
type RemoveDealAssociationRequest ¶
type RemoveDealAssociationRequest struct { // Association: The association between a creative and a deal that // should be removed. Association *CreativeDealAssociation `json:"association,omitempty"` // ForceSendFields is a list of field names (e.g. "Association") 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. "Association") 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:"-"` }
RemoveDealAssociationRequest: A request for removing the association between a deal and a creative.
func (*RemoveDealAssociationRequest) MarshalJSON ¶
func (s *RemoveDealAssociationRequest) MarshalJSON() ([]byte, error)
type SecurityContext ¶
type SecurityContext struct { // Securities: The security types in this context. // // Possible values: // "INSECURE" - Matches impressions that require insecure // compatibility. // "SSL" - Matches impressions that require SSL compatibility. Securities []string `json:"securities,omitempty"` // ForceSendFields is a list of field names (e.g. "Securities") 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. "Securities") 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:"-"` }
SecurityContext: @OutputOnly A security context.
func (*SecurityContext) MarshalJSON ¶
func (s *SecurityContext) MarshalJSON() ([]byte, error)
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment GoogleClientHeaderElement string // client header fragment, for Google use only Accounts *AccountsService // contains filtered or unexported fields }
type ServingContext ¶
type ServingContext struct { // All: Matches all contexts. // // Possible values: // "SIMPLE_CONTEXT" - A simple context. All string `json:"all,omitempty"` // AppType: Matches impressions for a particular app type. AppType *AppContext `json:"appType,omitempty"` // AuctionType: Matches impressions for a particular auction type. AuctionType *AuctionContext `json:"auctionType,omitempty"` // Location: Matches impressions coming from users *or* publishers in a // specific // location. Location *LocationContext `json:"location,omitempty"` // Platform: Matches impressions coming from a particular platform. Platform *PlatformContext `json:"platform,omitempty"` // SecurityType: Matches impressions for a particular security type. SecurityType *SecurityContext `json:"securityType,omitempty"` // ForceSendFields is a list of field names (e.g. "All") 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. "All") 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:"-"` }
ServingContext: The serving context for this restriction.
func (*ServingContext) MarshalJSON ¶
func (s *ServingContext) MarshalJSON() ([]byte, error)
type ServingRestriction ¶
type ServingRestriction struct { // Contexts: The contexts for the restriction. Contexts []*ServingContext `json:"contexts,omitempty"` // DisapprovalReasons: Any disapprovals bound to this restriction. // Only present if status=DISAPPROVED. // Can be used to filter the response of the // creatives.list // method. DisapprovalReasons []*Disapproval `json:"disapprovalReasons,omitempty"` // Status: The status of the creative in this context (for example, it // has been // explicitly disapproved or is pending review). // // Possible values: // "STATUS_UNSPECIFIED" - The status is not known. // "DISAPPROVAL" - The ad was disapproved in this context. // "PENDING_REVIEW" - The ad is pending review in this context. Status string `json:"status,omitempty"` // ForceSendFields is a list of field names (e.g. "Contexts") 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. "Contexts") 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:"-"` }
ServingRestriction: @OutputOnly A representation of the status of an ad in a specific context. A context here relates to where something ultimately serves (for example, a user or publisher geo, a platform, an HTTPS vs HTTP request, or the type of auction).
func (*ServingRestriction) MarshalJSON ¶
func (s *ServingRestriction) MarshalJSON() ([]byte, error)
type StopWatchingCreativeRequest ¶
type StopWatchingCreativeRequest struct { }
StopWatchingCreativeRequest: A request for stopping notifications for changes to creative Status.
type VideoContent ¶
type VideoContent struct { // VideoUrl: The URL to fetch a video ad. VideoUrl string `json:"videoUrl,omitempty"` // ForceSendFields is a list of field names (e.g. "VideoUrl") 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. "VideoUrl") 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:"-"` }
VideoContent: Video content for a creative.
func (*VideoContent) MarshalJSON ¶
func (s *VideoContent) MarshalJSON() ([]byte, error)
type WatchCreativeRequest ¶
type WatchCreativeRequest struct { // Topic: The Pub/Sub topic to publish notifications to. // This topic must already exist and must give permission // to // ad-exchange-buyside-reports@google.com to write to the topic. // This should be the full resource name // in // "projects/{project_id}/topics/{topic_id}" format. Topic string `json:"topic,omitempty"` // ForceSendFields is a list of field names (e.g. "Topic") 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. "Topic") 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:"-"` }
WatchCreativeRequest: A request for watching changes to creative Status.
func (*WatchCreativeRequest) MarshalJSON ¶
func (s *WatchCreativeRequest) MarshalJSON() ([]byte, error)