Documentation ¶
Overview ¶
Package adexchangebuyer provides access to the Ad Exchange Buyer API.
See https://developers.google.com/ad-exchange/buyer-rest
Usage example:
import "github.com/zippoxer/google-api-go-client/adexchangebuyer/v1.4" ... adexchangebuyerService, err := adexchangebuyer.New(oauthHttpClient)
Index ¶
- Constants
- type Account
- type AccountBidderLocation
- type AccountsGetCall
- func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall
- func (c *AccountsGetCall) Do() (*Account, error)
- func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall
- func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall
- func (c *AccountsGetCall) QuotaUser(quotaUser string) *AccountsGetCall
- func (c *AccountsGetCall) UserIP(userIP string) *AccountsGetCall
- type AccountsList
- type AccountsListCall
- func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall
- func (c *AccountsListCall) Do() (*AccountsList, error)
- func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall
- func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall
- func (c *AccountsListCall) QuotaUser(quotaUser string) *AccountsListCall
- func (c *AccountsListCall) UserIP(userIP string) *AccountsListCall
- type AccountsPatchCall
- func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall
- func (c *AccountsPatchCall) Do() (*Account, error)
- func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall
- func (c *AccountsPatchCall) QuotaUser(quotaUser string) *AccountsPatchCall
- func (c *AccountsPatchCall) UserIP(userIP string) *AccountsPatchCall
- type AccountsService
- type AccountsUpdateCall
- func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall
- func (c *AccountsUpdateCall) Do() (*Account, error)
- func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall
- func (c *AccountsUpdateCall) QuotaUser(quotaUser string) *AccountsUpdateCall
- func (c *AccountsUpdateCall) UserIP(userIP string) *AccountsUpdateCall
- type AddOrderDealsRequest
- type AddOrderDealsResponse
- type AddOrderNotesRequest
- type AddOrderNotesResponse
- type BillingInfo
- type BillingInfoGetCall
- func (c *BillingInfoGetCall) Context(ctx context.Context) *BillingInfoGetCall
- func (c *BillingInfoGetCall) Do() (*BillingInfo, error)
- func (c *BillingInfoGetCall) Fields(s ...googleapi.Field) *BillingInfoGetCall
- func (c *BillingInfoGetCall) IfNoneMatch(entityTag string) *BillingInfoGetCall
- func (c *BillingInfoGetCall) QuotaUser(quotaUser string) *BillingInfoGetCall
- func (c *BillingInfoGetCall) UserIP(userIP string) *BillingInfoGetCall
- type BillingInfoList
- type BillingInfoListCall
- func (c *BillingInfoListCall) Context(ctx context.Context) *BillingInfoListCall
- func (c *BillingInfoListCall) Do() (*BillingInfoList, error)
- func (c *BillingInfoListCall) Fields(s ...googleapi.Field) *BillingInfoListCall
- func (c *BillingInfoListCall) IfNoneMatch(entityTag string) *BillingInfoListCall
- func (c *BillingInfoListCall) QuotaUser(quotaUser string) *BillingInfoListCall
- func (c *BillingInfoListCall) UserIP(userIP string) *BillingInfoListCall
- type BillingInfoService
- type Budget
- type BudgetGetCall
- func (c *BudgetGetCall) Context(ctx context.Context) *BudgetGetCall
- func (c *BudgetGetCall) Do() (*Budget, error)
- func (c *BudgetGetCall) Fields(s ...googleapi.Field) *BudgetGetCall
- func (c *BudgetGetCall) IfNoneMatch(entityTag string) *BudgetGetCall
- func (c *BudgetGetCall) QuotaUser(quotaUser string) *BudgetGetCall
- func (c *BudgetGetCall) UserIP(userIP string) *BudgetGetCall
- type BudgetPatchCall
- func (c *BudgetPatchCall) Context(ctx context.Context) *BudgetPatchCall
- func (c *BudgetPatchCall) Do() (*Budget, error)
- func (c *BudgetPatchCall) Fields(s ...googleapi.Field) *BudgetPatchCall
- func (c *BudgetPatchCall) QuotaUser(quotaUser string) *BudgetPatchCall
- func (c *BudgetPatchCall) UserIP(userIP string) *BudgetPatchCall
- type BudgetService
- type BudgetUpdateCall
- func (c *BudgetUpdateCall) Context(ctx context.Context) *BudgetUpdateCall
- func (c *BudgetUpdateCall) Do() (*Budget, error)
- func (c *BudgetUpdateCall) Fields(s ...googleapi.Field) *BudgetUpdateCall
- func (c *BudgetUpdateCall) QuotaUser(quotaUser string) *BudgetUpdateCall
- func (c *BudgetUpdateCall) UserIP(userIP string) *BudgetUpdateCall
- type Buyer
- type ContactInformation
- type CreateOrdersRequest
- type CreateOrdersResponse
- type Creative
- type CreativeCorrections
- type CreativeFilteringReasons
- type CreativeFilteringReasonsReasons
- type CreativeNativeAd
- type CreativeNativeAdAppIcon
- type CreativeNativeAdImage
- type CreativeNativeAdLogo
- type CreativeServingRestrictions
- type CreativeServingRestrictionsContexts
- type CreativeServingRestrictionsDisapprovalReasons
- type CreativesAddDealCall
- func (c *CreativesAddDealCall) Context(ctx context.Context) *CreativesAddDealCall
- func (c *CreativesAddDealCall) Do() error
- func (c *CreativesAddDealCall) Fields(s ...googleapi.Field) *CreativesAddDealCall
- func (c *CreativesAddDealCall) QuotaUser(quotaUser string) *CreativesAddDealCall
- func (c *CreativesAddDealCall) UserIP(userIP string) *CreativesAddDealCall
- type CreativesGetCall
- func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall
- func (c *CreativesGetCall) Do() (*Creative, error)
- func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall
- func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall
- func (c *CreativesGetCall) QuotaUser(quotaUser string) *CreativesGetCall
- func (c *CreativesGetCall) UserIP(userIP string) *CreativesGetCall
- type CreativesInsertCall
- func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall
- func (c *CreativesInsertCall) Do() (*Creative, error)
- func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall
- func (c *CreativesInsertCall) QuotaUser(quotaUser string) *CreativesInsertCall
- func (c *CreativesInsertCall) UserIP(userIP string) *CreativesInsertCall
- type CreativesList
- type CreativesListCall
- func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall
- func (c *CreativesListCall) BuyerCreativeId(buyerCreativeId ...string) *CreativesListCall
- func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall
- func (c *CreativesListCall) DealsStatusFilter(dealsStatusFilter string) *CreativesListCall
- func (c *CreativesListCall) Do() (*CreativesList, error)
- func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall
- func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall
- func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall
- func (c *CreativesListCall) OpenAuctionStatusFilter(openAuctionStatusFilter string) *CreativesListCall
- func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall
- func (c *CreativesListCall) QuotaUser(quotaUser string) *CreativesListCall
- func (c *CreativesListCall) UserIP(userIP string) *CreativesListCall
- type CreativesRemoveDealCall
- func (c *CreativesRemoveDealCall) Context(ctx context.Context) *CreativesRemoveDealCall
- func (c *CreativesRemoveDealCall) Do() error
- func (c *CreativesRemoveDealCall) Fields(s ...googleapi.Field) *CreativesRemoveDealCall
- func (c *CreativesRemoveDealCall) QuotaUser(quotaUser string) *CreativesRemoveDealCall
- func (c *CreativesRemoveDealCall) UserIP(userIP string) *CreativesRemoveDealCall
- type CreativesService
- func (r *CreativesService) AddDeal(accountId int64, buyerCreativeId string, dealId int64) *CreativesAddDealCall
- func (r *CreativesService) Get(accountId int64, buyerCreativeId string) *CreativesGetCall
- func (r *CreativesService) Insert(creative *Creative) *CreativesInsertCall
- func (r *CreativesService) List() *CreativesListCall
- func (r *CreativesService) RemoveDeal(accountId int64, buyerCreativeId string, dealId int64) *CreativesRemoveDealCall
- type DealTerms
- type DealTermsGuaranteedFixedPriceTerms
- type DealTermsNonGuaranteedAuctionTerms
- type DealTermsNonGuaranteedFixedPriceTerms
- type DeleteOrderDealsRequest
- type DeleteOrderDealsResponse
- type DeliveryControl
- type DeliveryControlFrequencyCap
- type EditAllOrderDealsRequest
- type EditAllOrderDealsResponse
- type GetOffersResponse
- type GetOrderDealsResponse
- type GetOrderNotesResponse
- type GetOrdersResponse
- type MarketplaceDeal
- type MarketplaceDealParty
- type MarketplaceLabel
- type MarketplaceNote
- type MarketplaceOffer
- type MarketplaceOrder
- type MarketplacedealsDeleteCall
- func (c *MarketplacedealsDeleteCall) Context(ctx context.Context) *MarketplacedealsDeleteCall
- func (c *MarketplacedealsDeleteCall) Do() (*DeleteOrderDealsResponse, error)
- func (c *MarketplacedealsDeleteCall) Fields(s ...googleapi.Field) *MarketplacedealsDeleteCall
- func (c *MarketplacedealsDeleteCall) QuotaUser(quotaUser string) *MarketplacedealsDeleteCall
- func (c *MarketplacedealsDeleteCall) UserIP(userIP string) *MarketplacedealsDeleteCall
- type MarketplacedealsInsertCall
- func (c *MarketplacedealsInsertCall) Context(ctx context.Context) *MarketplacedealsInsertCall
- func (c *MarketplacedealsInsertCall) Do() (*AddOrderDealsResponse, error)
- func (c *MarketplacedealsInsertCall) Fields(s ...googleapi.Field) *MarketplacedealsInsertCall
- func (c *MarketplacedealsInsertCall) QuotaUser(quotaUser string) *MarketplacedealsInsertCall
- func (c *MarketplacedealsInsertCall) UserIP(userIP string) *MarketplacedealsInsertCall
- type MarketplacedealsListCall
- func (c *MarketplacedealsListCall) Context(ctx context.Context) *MarketplacedealsListCall
- func (c *MarketplacedealsListCall) Do() (*GetOrderDealsResponse, error)
- func (c *MarketplacedealsListCall) Fields(s ...googleapi.Field) *MarketplacedealsListCall
- func (c *MarketplacedealsListCall) IfNoneMatch(entityTag string) *MarketplacedealsListCall
- func (c *MarketplacedealsListCall) QuotaUser(quotaUser string) *MarketplacedealsListCall
- func (c *MarketplacedealsListCall) UserIP(userIP string) *MarketplacedealsListCall
- type MarketplacedealsService
- func (r *MarketplacedealsService) Delete(orderId string, deleteorderdealsrequest *DeleteOrderDealsRequest) *MarketplacedealsDeleteCall
- func (r *MarketplacedealsService) Insert(orderId string, addorderdealsrequest *AddOrderDealsRequest) *MarketplacedealsInsertCall
- func (r *MarketplacedealsService) List(orderId string) *MarketplacedealsListCall
- func (r *MarketplacedealsService) Update(orderId string, editallorderdealsrequest *EditAllOrderDealsRequest) *MarketplacedealsUpdateCall
- type MarketplacedealsUpdateCall
- func (c *MarketplacedealsUpdateCall) Context(ctx context.Context) *MarketplacedealsUpdateCall
- func (c *MarketplacedealsUpdateCall) Do() (*EditAllOrderDealsResponse, error)
- func (c *MarketplacedealsUpdateCall) Fields(s ...googleapi.Field) *MarketplacedealsUpdateCall
- func (c *MarketplacedealsUpdateCall) QuotaUser(quotaUser string) *MarketplacedealsUpdateCall
- func (c *MarketplacedealsUpdateCall) UserIP(userIP string) *MarketplacedealsUpdateCall
- type MarketplacenotesInsertCall
- func (c *MarketplacenotesInsertCall) Context(ctx context.Context) *MarketplacenotesInsertCall
- func (c *MarketplacenotesInsertCall) Do() (*AddOrderNotesResponse, error)
- func (c *MarketplacenotesInsertCall) Fields(s ...googleapi.Field) *MarketplacenotesInsertCall
- func (c *MarketplacenotesInsertCall) QuotaUser(quotaUser string) *MarketplacenotesInsertCall
- func (c *MarketplacenotesInsertCall) UserIP(userIP string) *MarketplacenotesInsertCall
- type MarketplacenotesListCall
- func (c *MarketplacenotesListCall) Context(ctx context.Context) *MarketplacenotesListCall
- func (c *MarketplacenotesListCall) Do() (*GetOrderNotesResponse, error)
- func (c *MarketplacenotesListCall) Fields(s ...googleapi.Field) *MarketplacenotesListCall
- func (c *MarketplacenotesListCall) IfNoneMatch(entityTag string) *MarketplacenotesListCall
- func (c *MarketplacenotesListCall) QuotaUser(quotaUser string) *MarketplacenotesListCall
- func (c *MarketplacenotesListCall) UserIP(userIP string) *MarketplacenotesListCall
- type MarketplacenotesService
- type MarketplaceoffersGetCall
- func (c *MarketplaceoffersGetCall) Context(ctx context.Context) *MarketplaceoffersGetCall
- func (c *MarketplaceoffersGetCall) Do() (*MarketplaceOffer, error)
- func (c *MarketplaceoffersGetCall) Fields(s ...googleapi.Field) *MarketplaceoffersGetCall
- func (c *MarketplaceoffersGetCall) IfNoneMatch(entityTag string) *MarketplaceoffersGetCall
- func (c *MarketplaceoffersGetCall) QuotaUser(quotaUser string) *MarketplaceoffersGetCall
- func (c *MarketplaceoffersGetCall) UserIP(userIP string) *MarketplaceoffersGetCall
- type MarketplaceoffersSearchCall
- func (c *MarketplaceoffersSearchCall) Context(ctx context.Context) *MarketplaceoffersSearchCall
- func (c *MarketplaceoffersSearchCall) Do() (*GetOffersResponse, error)
- func (c *MarketplaceoffersSearchCall) Fields(s ...googleapi.Field) *MarketplaceoffersSearchCall
- func (c *MarketplaceoffersSearchCall) IfNoneMatch(entityTag string) *MarketplaceoffersSearchCall
- func (c *MarketplaceoffersSearchCall) PqlQuery(pqlQuery string) *MarketplaceoffersSearchCall
- func (c *MarketplaceoffersSearchCall) QuotaUser(quotaUser string) *MarketplaceoffersSearchCall
- func (c *MarketplaceoffersSearchCall) UserIP(userIP string) *MarketplaceoffersSearchCall
- type MarketplaceoffersService
- type MarketplaceordersGetCall
- func (c *MarketplaceordersGetCall) Context(ctx context.Context) *MarketplaceordersGetCall
- func (c *MarketplaceordersGetCall) Do() (*MarketplaceOrder, error)
- func (c *MarketplaceordersGetCall) Fields(s ...googleapi.Field) *MarketplaceordersGetCall
- func (c *MarketplaceordersGetCall) IfNoneMatch(entityTag string) *MarketplaceordersGetCall
- func (c *MarketplaceordersGetCall) QuotaUser(quotaUser string) *MarketplaceordersGetCall
- func (c *MarketplaceordersGetCall) UserIP(userIP string) *MarketplaceordersGetCall
- type MarketplaceordersInsertCall
- func (c *MarketplaceordersInsertCall) Context(ctx context.Context) *MarketplaceordersInsertCall
- func (c *MarketplaceordersInsertCall) Do() (*CreateOrdersResponse, error)
- func (c *MarketplaceordersInsertCall) Fields(s ...googleapi.Field) *MarketplaceordersInsertCall
- func (c *MarketplaceordersInsertCall) QuotaUser(quotaUser string) *MarketplaceordersInsertCall
- func (c *MarketplaceordersInsertCall) UserIP(userIP string) *MarketplaceordersInsertCall
- type MarketplaceordersPatchCall
- func (c *MarketplaceordersPatchCall) Context(ctx context.Context) *MarketplaceordersPatchCall
- func (c *MarketplaceordersPatchCall) Do() (*MarketplaceOrder, error)
- func (c *MarketplaceordersPatchCall) Fields(s ...googleapi.Field) *MarketplaceordersPatchCall
- func (c *MarketplaceordersPatchCall) QuotaUser(quotaUser string) *MarketplaceordersPatchCall
- func (c *MarketplaceordersPatchCall) UserIP(userIP string) *MarketplaceordersPatchCall
- type MarketplaceordersSearchCall
- func (c *MarketplaceordersSearchCall) Context(ctx context.Context) *MarketplaceordersSearchCall
- func (c *MarketplaceordersSearchCall) Do() (*GetOrdersResponse, error)
- func (c *MarketplaceordersSearchCall) Fields(s ...googleapi.Field) *MarketplaceordersSearchCall
- func (c *MarketplaceordersSearchCall) IfNoneMatch(entityTag string) *MarketplaceordersSearchCall
- func (c *MarketplaceordersSearchCall) PqlQuery(pqlQuery string) *MarketplaceordersSearchCall
- func (c *MarketplaceordersSearchCall) QuotaUser(quotaUser string) *MarketplaceordersSearchCall
- func (c *MarketplaceordersSearchCall) UserIP(userIP string) *MarketplaceordersSearchCall
- type MarketplaceordersService
- func (r *MarketplaceordersService) Get(orderId string) *MarketplaceordersGetCall
- func (r *MarketplaceordersService) Insert(createordersrequest *CreateOrdersRequest) *MarketplaceordersInsertCall
- func (r *MarketplaceordersService) Patch(orderId string, revisionNumber int64, updateAction string, ...) *MarketplaceordersPatchCall
- func (r *MarketplaceordersService) Search() *MarketplaceordersSearchCall
- func (r *MarketplaceordersService) Update(orderId string, revisionNumber int64, updateAction string, ...) *MarketplaceordersUpdateCall
- type MarketplaceordersUpdateCall
- func (c *MarketplaceordersUpdateCall) Context(ctx context.Context) *MarketplaceordersUpdateCall
- func (c *MarketplaceordersUpdateCall) Do() (*MarketplaceOrder, error)
- func (c *MarketplaceordersUpdateCall) Fields(s ...googleapi.Field) *MarketplaceordersUpdateCall
- func (c *MarketplaceordersUpdateCall) QuotaUser(quotaUser string) *MarketplaceordersUpdateCall
- func (c *MarketplaceordersUpdateCall) UserIP(userIP string) *MarketplaceordersUpdateCall
- type PerformanceReport
- type PerformanceReportList
- type PerformanceReportListCall
- func (c *PerformanceReportListCall) Context(ctx context.Context) *PerformanceReportListCall
- func (c *PerformanceReportListCall) Do() (*PerformanceReportList, error)
- func (c *PerformanceReportListCall) Fields(s ...googleapi.Field) *PerformanceReportListCall
- func (c *PerformanceReportListCall) IfNoneMatch(entityTag string) *PerformanceReportListCall
- func (c *PerformanceReportListCall) MaxResults(maxResults int64) *PerformanceReportListCall
- func (c *PerformanceReportListCall) PageToken(pageToken string) *PerformanceReportListCall
- func (c *PerformanceReportListCall) QuotaUser(quotaUser string) *PerformanceReportListCall
- func (c *PerformanceReportListCall) UserIP(userIP string) *PerformanceReportListCall
- type PerformanceReportService
- type PretargetingConfig
- type PretargetingConfigDeleteCall
- func (c *PretargetingConfigDeleteCall) Context(ctx context.Context) *PretargetingConfigDeleteCall
- func (c *PretargetingConfigDeleteCall) Do() error
- func (c *PretargetingConfigDeleteCall) Fields(s ...googleapi.Field) *PretargetingConfigDeleteCall
- func (c *PretargetingConfigDeleteCall) QuotaUser(quotaUser string) *PretargetingConfigDeleteCall
- func (c *PretargetingConfigDeleteCall) UserIP(userIP string) *PretargetingConfigDeleteCall
- type PretargetingConfigDimensions
- type PretargetingConfigExcludedPlacements
- type PretargetingConfigGetCall
- func (c *PretargetingConfigGetCall) Context(ctx context.Context) *PretargetingConfigGetCall
- func (c *PretargetingConfigGetCall) Do() (*PretargetingConfig, error)
- func (c *PretargetingConfigGetCall) Fields(s ...googleapi.Field) *PretargetingConfigGetCall
- func (c *PretargetingConfigGetCall) IfNoneMatch(entityTag string) *PretargetingConfigGetCall
- func (c *PretargetingConfigGetCall) QuotaUser(quotaUser string) *PretargetingConfigGetCall
- func (c *PretargetingConfigGetCall) UserIP(userIP string) *PretargetingConfigGetCall
- type PretargetingConfigInsertCall
- func (c *PretargetingConfigInsertCall) Context(ctx context.Context) *PretargetingConfigInsertCall
- func (c *PretargetingConfigInsertCall) Do() (*PretargetingConfig, error)
- func (c *PretargetingConfigInsertCall) Fields(s ...googleapi.Field) *PretargetingConfigInsertCall
- func (c *PretargetingConfigInsertCall) QuotaUser(quotaUser string) *PretargetingConfigInsertCall
- func (c *PretargetingConfigInsertCall) UserIP(userIP string) *PretargetingConfigInsertCall
- type PretargetingConfigList
- type PretargetingConfigListCall
- func (c *PretargetingConfigListCall) Context(ctx context.Context) *PretargetingConfigListCall
- func (c *PretargetingConfigListCall) Do() (*PretargetingConfigList, error)
- func (c *PretargetingConfigListCall) Fields(s ...googleapi.Field) *PretargetingConfigListCall
- func (c *PretargetingConfigListCall) IfNoneMatch(entityTag string) *PretargetingConfigListCall
- func (c *PretargetingConfigListCall) QuotaUser(quotaUser string) *PretargetingConfigListCall
- func (c *PretargetingConfigListCall) UserIP(userIP string) *PretargetingConfigListCall
- type PretargetingConfigPatchCall
- func (c *PretargetingConfigPatchCall) Context(ctx context.Context) *PretargetingConfigPatchCall
- func (c *PretargetingConfigPatchCall) Do() (*PretargetingConfig, error)
- func (c *PretargetingConfigPatchCall) Fields(s ...googleapi.Field) *PretargetingConfigPatchCall
- func (c *PretargetingConfigPatchCall) QuotaUser(quotaUser string) *PretargetingConfigPatchCall
- func (c *PretargetingConfigPatchCall) UserIP(userIP string) *PretargetingConfigPatchCall
- type PretargetingConfigPlacements
- type PretargetingConfigService
- func (r *PretargetingConfigService) Delete(accountId int64, configId int64) *PretargetingConfigDeleteCall
- func (r *PretargetingConfigService) Get(accountId int64, configId int64) *PretargetingConfigGetCall
- func (r *PretargetingConfigService) Insert(accountId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigInsertCall
- func (r *PretargetingConfigService) List(accountId int64) *PretargetingConfigListCall
- func (r *PretargetingConfigService) Patch(accountId int64, configId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigPatchCall
- func (r *PretargetingConfigService) Update(accountId int64, configId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigUpdateCall
- type PretargetingConfigUpdateCall
- func (c *PretargetingConfigUpdateCall) Context(ctx context.Context) *PretargetingConfigUpdateCall
- func (c *PretargetingConfigUpdateCall) Do() (*PretargetingConfig, error)
- func (c *PretargetingConfigUpdateCall) Fields(s ...googleapi.Field) *PretargetingConfigUpdateCall
- func (c *PretargetingConfigUpdateCall) QuotaUser(quotaUser string) *PretargetingConfigUpdateCall
- func (c *PretargetingConfigUpdateCall) UserIP(userIP string) *PretargetingConfigUpdateCall
- type PretargetingConfigVideoPlayerSizes
- type Price
- type PricePerBuyer
- type PrivateData
- type Seller
- type Service
- type SharedTargeting
- type TargetingValue
- type TargetingValueCreativeSize
- type TargetingValueDayPartTargeting
- type TargetingValueDayPartTargetingDayPart
- type TargetingValueSize
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 Account ¶
type Account struct { // BidderLocation: Your bidder locations that have distinct URLs. BidderLocation []*AccountBidderLocation `json:"bidderLocation,omitempty"` // CookieMatchingNid: The nid parameter value used in cookie match // requests. Please contact your technical account manager if you need // to change this. CookieMatchingNid string `json:"cookieMatchingNid,omitempty"` // CookieMatchingUrl: The base URL used in cookie match requests. CookieMatchingUrl string `json:"cookieMatchingUrl,omitempty"` // Id: Account id. Id int64 `json:"id,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // MaximumActiveCreatives: The maximum number of active creatives that // an account can have, where a creative is active if it was inserted or // bid with in the last 30 days. Please contact your technical account // manager if you need to change this. MaximumActiveCreatives int64 `json:"maximumActiveCreatives,omitempty"` // MaximumTotalQps: The sum of all bidderLocation.maximumQps values // cannot exceed this. Please contact your technical account manager if // you need to change this. MaximumTotalQps int64 `json:"maximumTotalQps,omitempty"` // NumberActiveCreatives: The number of creatives that this account // inserted or bid with in the last 30 days. NumberActiveCreatives int64 `json:"numberActiveCreatives,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BidderLocation") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Account: Configuration data for an Ad Exchange buyer account.
func (*Account) MarshalJSON ¶
type AccountBidderLocation ¶
type AccountBidderLocation struct { // MaximumQps: The maximum queries per second the Ad Exchange will send. MaximumQps int64 `json:"maximumQps,omitempty"` // Region: The geographical region the Ad Exchange should send requests // from. Only used by some quota systems, but always setting the value // is recommended. Allowed values: // - ASIA // - EUROPE // - US_EAST // - US_WEST Region string `json:"region,omitempty"` // Url: The URL to which the Ad Exchange will send bid requests. Url string `json:"url,omitempty"` // ForceSendFields is a list of field names (e.g. "MaximumQps") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*AccountBidderLocation) MarshalJSON ¶
func (s *AccountBidderLocation) MarshalJSON() ([]byte, error)
type AccountsGetCall ¶
type AccountsGetCall struct {
// contains filtered or unexported fields
}
func (*AccountsGetCall) Context ¶
func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AccountsGetCall) Do ¶
func (c *AccountsGetCall) Do() (*Account, error)
Do executes the "adexchangebuyer.accounts.get" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsGetCall) Fields ¶
func (c *AccountsGetCall) Fields(s ...googleapi.Field) *AccountsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsGetCall) IfNoneMatch ¶
func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*AccountsGetCall) QuotaUser ¶
func (c *AccountsGetCall) QuotaUser(quotaUser string) *AccountsGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AccountsGetCall) UserIP ¶
func (c *AccountsGetCall) UserIP(userIP string) *AccountsGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AccountsList ¶
type AccountsList struct { // Items: A list of accounts. Items []*Account `json:"items,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
AccountsList: An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.
func (*AccountsList) MarshalJSON ¶
func (s *AccountsList) MarshalJSON() ([]byte, error)
type AccountsListCall ¶
type AccountsListCall struct {
// contains filtered or unexported fields
}
func (*AccountsListCall) Context ¶
func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AccountsListCall) Do ¶
func (c *AccountsListCall) Do() (*AccountsList, error)
Do executes the "adexchangebuyer.accounts.list" call. Exactly one of *AccountsList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsListCall) Fields ¶
func (c *AccountsListCall) Fields(s ...googleapi.Field) *AccountsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsListCall) IfNoneMatch ¶
func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*AccountsListCall) QuotaUser ¶
func (c *AccountsListCall) QuotaUser(quotaUser string) *AccountsListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AccountsListCall) UserIP ¶
func (c *AccountsListCall) UserIP(userIP string) *AccountsListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AccountsPatchCall ¶
type AccountsPatchCall struct {
// contains filtered or unexported fields
}
func (*AccountsPatchCall) Context ¶
func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AccountsPatchCall) Do ¶
func (c *AccountsPatchCall) Do() (*Account, error)
Do executes the "adexchangebuyer.accounts.patch" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsPatchCall) Fields ¶
func (c *AccountsPatchCall) Fields(s ...googleapi.Field) *AccountsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsPatchCall) QuotaUser ¶
func (c *AccountsPatchCall) QuotaUser(quotaUser string) *AccountsPatchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AccountsPatchCall) UserIP ¶
func (c *AccountsPatchCall) UserIP(userIP string) *AccountsPatchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AccountsService ¶
type AccountsService struct {
// contains filtered or unexported fields
}
func NewAccountsService ¶
func NewAccountsService(s *Service) *AccountsService
func (*AccountsService) Get ¶
func (r *AccountsService) Get(id int64) *AccountsGetCall
Get: Gets one account by ID.
func (*AccountsService) List ¶
func (r *AccountsService) List() *AccountsListCall
List: Retrieves the authenticated user's list of accounts.
func (*AccountsService) Patch ¶
func (r *AccountsService) Patch(id int64, account *Account) *AccountsPatchCall
Patch: Updates an existing account. This method supports patch semantics.
func (*AccountsService) Update ¶
func (r *AccountsService) Update(id int64, account *Account) *AccountsUpdateCall
Update: Updates an existing account.
type AccountsUpdateCall ¶
type AccountsUpdateCall struct {
// contains filtered or unexported fields
}
func (*AccountsUpdateCall) Context ¶
func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*AccountsUpdateCall) Do ¶
func (c *AccountsUpdateCall) Do() (*Account, error)
Do executes the "adexchangebuyer.accounts.update" call. Exactly one of *Account or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Account.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*AccountsUpdateCall) Fields ¶
func (c *AccountsUpdateCall) Fields(s ...googleapi.Field) *AccountsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*AccountsUpdateCall) QuotaUser ¶
func (c *AccountsUpdateCall) QuotaUser(quotaUser string) *AccountsUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*AccountsUpdateCall) UserIP ¶
func (c *AccountsUpdateCall) UserIP(userIP string) *AccountsUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type AddOrderDealsRequest ¶
type AddOrderDealsRequest struct { // Deals: The list of deals to add Deals []*MarketplaceDeal `json:"deals,omitempty"` // OrderRevisionNumber: The last known order revision number. OrderRevisionNumber int64 `json:"orderRevisionNumber,omitempty,string"` // UpdateAction: Indicates an optional action to take on the order UpdateAction string `json:"updateAction,omitempty"` // ForceSendFields is a list of field names (e.g. "Deals") 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:"-"` }
func (*AddOrderDealsRequest) MarshalJSON ¶
func (s *AddOrderDealsRequest) MarshalJSON() ([]byte, error)
type AddOrderDealsResponse ¶
type AddOrderDealsResponse struct { // Deals: List of deals added (in the same order as passed in the // request) Deals []*MarketplaceDeal `json:"deals,omitempty"` // OrderRevisionNumber: The updated revision number for the order. OrderRevisionNumber int64 `json:"orderRevisionNumber,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. "Deals") 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:"-"` }
func (*AddOrderDealsResponse) MarshalJSON ¶
func (s *AddOrderDealsResponse) MarshalJSON() ([]byte, error)
type AddOrderNotesRequest ¶
type AddOrderNotesRequest struct { // Notes: The list of notes to add. Notes []*MarketplaceNote `json:"notes,omitempty"` // ForceSendFields is a list of field names (e.g. "Notes") 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:"-"` }
func (*AddOrderNotesRequest) MarshalJSON ¶
func (s *AddOrderNotesRequest) MarshalJSON() ([]byte, error)
type AddOrderNotesResponse ¶
type AddOrderNotesResponse struct { Notes []*MarketplaceNote `json:"notes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Notes") 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:"-"` }
func (*AddOrderNotesResponse) MarshalJSON ¶
func (s *AddOrderNotesResponse) MarshalJSON() ([]byte, error)
type BillingInfo ¶
type BillingInfo struct { // AccountId: Account id. AccountId int64 `json:"accountId,omitempty"` // AccountName: Account name. AccountName string `json:"accountName,omitempty"` // BillingId: A list of adgroup IDs associated with this particular // account. These IDs may show up as part of a realtime bidding // BidRequest, which indicates a bid request for this account. BillingId []string `json:"billingId,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
BillingInfo: The configuration data for an Ad Exchange billing info.
func (*BillingInfo) MarshalJSON ¶
func (s *BillingInfo) MarshalJSON() ([]byte, error)
type BillingInfoGetCall ¶
type BillingInfoGetCall struct {
// contains filtered or unexported fields
}
func (*BillingInfoGetCall) Context ¶
func (c *BillingInfoGetCall) Context(ctx context.Context) *BillingInfoGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingInfoGetCall) Do ¶
func (c *BillingInfoGetCall) Do() (*BillingInfo, error)
Do executes the "adexchangebuyer.billingInfo.get" call. Exactly one of *BillingInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BillingInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingInfoGetCall) Fields ¶
func (c *BillingInfoGetCall) Fields(s ...googleapi.Field) *BillingInfoGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingInfoGetCall) IfNoneMatch ¶
func (c *BillingInfoGetCall) IfNoneMatch(entityTag string) *BillingInfoGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingInfoGetCall) QuotaUser ¶
func (c *BillingInfoGetCall) QuotaUser(quotaUser string) *BillingInfoGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*BillingInfoGetCall) UserIP ¶
func (c *BillingInfoGetCall) UserIP(userIP string) *BillingInfoGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type BillingInfoList ¶
type BillingInfoList struct { // Items: A list of billing info relevant for your account. Items []*BillingInfo `json:"items,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
BillingInfoList: A billing info feed lists Billing Info the Ad Exchange buyer account has access to. Each entry in the feed corresponds to a single billing info.
func (*BillingInfoList) MarshalJSON ¶
func (s *BillingInfoList) MarshalJSON() ([]byte, error)
type BillingInfoListCall ¶
type BillingInfoListCall struct {
// contains filtered or unexported fields
}
func (*BillingInfoListCall) Context ¶
func (c *BillingInfoListCall) Context(ctx context.Context) *BillingInfoListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BillingInfoListCall) Do ¶
func (c *BillingInfoListCall) Do() (*BillingInfoList, error)
Do executes the "adexchangebuyer.billingInfo.list" call. Exactly one of *BillingInfoList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BillingInfoList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BillingInfoListCall) Fields ¶
func (c *BillingInfoListCall) Fields(s ...googleapi.Field) *BillingInfoListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BillingInfoListCall) IfNoneMatch ¶
func (c *BillingInfoListCall) IfNoneMatch(entityTag string) *BillingInfoListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BillingInfoListCall) QuotaUser ¶
func (c *BillingInfoListCall) QuotaUser(quotaUser string) *BillingInfoListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*BillingInfoListCall) UserIP ¶
func (c *BillingInfoListCall) UserIP(userIP string) *BillingInfoListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type BillingInfoService ¶
type BillingInfoService struct {
// contains filtered or unexported fields
}
func NewBillingInfoService ¶
func NewBillingInfoService(s *Service) *BillingInfoService
func (*BillingInfoService) Get ¶
func (r *BillingInfoService) Get(accountId int64) *BillingInfoGetCall
Get: Returns the billing information for one account specified by account ID.
func (*BillingInfoService) List ¶
func (r *BillingInfoService) List() *BillingInfoListCall
List: Retrieves a list of billing information for all accounts of the authenticated user.
type Budget ¶
type Budget struct { // AccountId: The id of the account. This is required for get and update // requests. AccountId int64 `json:"accountId,omitempty,string"` // BillingId: The billing id to determine which adgroup to provide // budget information for. This is required for get and update requests. BillingId int64 `json:"billingId,omitempty,string"` // BudgetAmount: The daily budget amount in unit amount of the account // currency to apply for the billingId provided. This is required for // update requests. BudgetAmount int64 `json:"budgetAmount,omitempty,string"` // CurrencyCode: The currency code for the buyer. This cannot be altered // here. CurrencyCode string `json:"currencyCode,omitempty"` // Id: The unique id that describes this item. Id string `json:"id,omitempty"` // Kind: The kind of the resource, i.e. "adexchangebuyer#budget". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Budget: The configuration data for Ad Exchange RTB - Budget API.
func (*Budget) MarshalJSON ¶
type BudgetGetCall ¶
type BudgetGetCall struct {
// contains filtered or unexported fields
}
func (*BudgetGetCall) Context ¶
func (c *BudgetGetCall) Context(ctx context.Context) *BudgetGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BudgetGetCall) Do ¶
func (c *BudgetGetCall) Do() (*Budget, error)
Do executes the "adexchangebuyer.budget.get" call. Exactly one of *Budget or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Budget.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BudgetGetCall) Fields ¶
func (c *BudgetGetCall) Fields(s ...googleapi.Field) *BudgetGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BudgetGetCall) IfNoneMatch ¶
func (c *BudgetGetCall) IfNoneMatch(entityTag string) *BudgetGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*BudgetGetCall) QuotaUser ¶
func (c *BudgetGetCall) QuotaUser(quotaUser string) *BudgetGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*BudgetGetCall) UserIP ¶
func (c *BudgetGetCall) UserIP(userIP string) *BudgetGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type BudgetPatchCall ¶
type BudgetPatchCall struct {
// contains filtered or unexported fields
}
func (*BudgetPatchCall) Context ¶
func (c *BudgetPatchCall) Context(ctx context.Context) *BudgetPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BudgetPatchCall) Do ¶
func (c *BudgetPatchCall) Do() (*Budget, error)
Do executes the "adexchangebuyer.budget.patch" call. Exactly one of *Budget or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Budget.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BudgetPatchCall) Fields ¶
func (c *BudgetPatchCall) Fields(s ...googleapi.Field) *BudgetPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BudgetPatchCall) QuotaUser ¶
func (c *BudgetPatchCall) QuotaUser(quotaUser string) *BudgetPatchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*BudgetPatchCall) UserIP ¶
func (c *BudgetPatchCall) UserIP(userIP string) *BudgetPatchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type BudgetService ¶
type BudgetService struct {
// contains filtered or unexported fields
}
func NewBudgetService ¶
func NewBudgetService(s *Service) *BudgetService
func (*BudgetService) Get ¶
func (r *BudgetService) Get(accountId int64, billingId int64) *BudgetGetCall
Get: Returns the budget information for the adgroup specified by the accountId and billingId.
func (*BudgetService) Patch ¶
func (r *BudgetService) Patch(accountId int64, billingId int64, budget *Budget) *BudgetPatchCall
Patch: Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request. This method supports patch semantics.
func (*BudgetService) Update ¶
func (r *BudgetService) Update(accountId int64, billingId int64, budget *Budget) *BudgetUpdateCall
Update: Updates the budget amount for the budget of the adgroup specified by the accountId and billingId, with the budget amount in the request.
type BudgetUpdateCall ¶
type BudgetUpdateCall struct {
// contains filtered or unexported fields
}
func (*BudgetUpdateCall) Context ¶
func (c *BudgetUpdateCall) Context(ctx context.Context) *BudgetUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*BudgetUpdateCall) Do ¶
func (c *BudgetUpdateCall) Do() (*Budget, error)
Do executes the "adexchangebuyer.budget.update" call. Exactly one of *Budget or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Budget.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*BudgetUpdateCall) Fields ¶
func (c *BudgetUpdateCall) Fields(s ...googleapi.Field) *BudgetUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*BudgetUpdateCall) QuotaUser ¶
func (c *BudgetUpdateCall) QuotaUser(quotaUser string) *BudgetUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*BudgetUpdateCall) UserIP ¶
func (c *BudgetUpdateCall) UserIP(userIP string) *BudgetUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type Buyer ¶
type Buyer struct { // AccountId: Adx account id of the buyer. AccountId string `json:"accountId,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:"-"` }
func (*Buyer) MarshalJSON ¶
type ContactInformation ¶
type ContactInformation struct { // Email: Email address of the contact. Email string `json:"email,omitempty"` // Name: The name of the contact. Name string `json:"name,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") 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:"-"` }
func (*ContactInformation) MarshalJSON ¶
func (s *ContactInformation) MarshalJSON() ([]byte, error)
type CreateOrdersRequest ¶
type CreateOrdersRequest struct { // Orders: The list of orders to create. Orders []*MarketplaceOrder `json:"orders,omitempty"` WebPropertyCode string `json:"webPropertyCode,omitempty"` // ForceSendFields is a list of field names (e.g. "Orders") 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:"-"` }
func (*CreateOrdersRequest) MarshalJSON ¶
func (s *CreateOrdersRequest) MarshalJSON() ([]byte, error)
type CreateOrdersResponse ¶
type CreateOrdersResponse struct { // Orders: The list of orders successfully created. Orders []*MarketplaceOrder `json:"orders,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Orders") 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:"-"` }
func (*CreateOrdersResponse) MarshalJSON ¶
func (s *CreateOrdersResponse) MarshalJSON() ([]byte, error)
type Creative ¶
type Creative struct { // HTMLSnippet: The HTML snippet that displays the ad when inserted in // the web page. If set, videoURL should not be set. HTMLSnippet string `json:"HTMLSnippet,omitempty"` // AccountId: Account id. AccountId int64 `json:"accountId,omitempty"` // AdvertiserId: Detected advertiser id, if any. Read-only. This field // should not be set in requests. AdvertiserId googleapi.Int64s `json:"advertiserId,omitempty"` // AdvertiserName: The name of the company being advertised in the // creative. AdvertiserName string `json:"advertiserName,omitempty"` // AgencyId: The agency id for this creative. AgencyId int64 `json:"agencyId,omitempty,string"` // ApiUploadTimestamp: The last upload timestamp of this creative if it // was uploaded via API. Read-only. The value of this field is // generated, and will be ignored for uploads. (formatted RFC 3339 // timestamp). ApiUploadTimestamp string `json:"apiUploadTimestamp,omitempty"` // Attribute: All attributes for the ads that may be shown from this // snippet. Attribute []int64 `json:"attribute,omitempty"` // BuyerCreativeId: A buyer-specific id identifying the creative in this // ad. BuyerCreativeId string `json:"buyerCreativeId,omitempty"` // ClickThroughUrl: The set of destination urls for the snippet. ClickThroughUrl []string `json:"clickThroughUrl,omitempty"` // Corrections: Shows any corrections that were applied to this // creative. Read-only. This field should not be set in requests. Corrections []*CreativeCorrections `json:"corrections,omitempty"` // DealsStatus: Top-level deals status. Read-only. This field should not // be set in requests. If disapproved, an entry for // auctionType=DIRECT_DEALS (or ALL) in servingRestrictions will also // exist. Note that this may be nuanced with other contextual // restrictions, in which case it may be preferable to read from // servingRestrictions directly. DealsStatus string `json:"dealsStatus,omitempty"` // FilteringReasons: The filtering reasons for the creative. Read-only. // This field should not be set in requests. FilteringReasons *CreativeFilteringReasons `json:"filteringReasons,omitempty"` // Height: Ad height. Height int64 `json:"height,omitempty"` // ImpressionTrackingUrl: The set of urls to be called to record an // impression. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // NativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be // set. NativeAd *CreativeNativeAd `json:"nativeAd,omitempty"` // OpenAuctionStatus: Top-level open auction status. Read-only. This // field should not be set in requests. If disapproved, an entry for // auctionType=OPEN_AUCTION (or ALL) in servingRestrictions will also // exist. Note that this may be nuanced with other contextual // restrictions, in which case it may be preferable to read from // ServingRestrictions directly. OpenAuctionStatus string `json:"openAuctionStatus,omitempty"` // ProductCategories: Detected product categories, if any. Read-only. // This field should not be set in requests. ProductCategories []int64 `json:"productCategories,omitempty"` // RestrictedCategories: All restricted categories for the ads that may // be shown from this snippet. RestrictedCategories []int64 `json:"restrictedCategories,omitempty"` // SensitiveCategories: Detected sensitive categories, if any. // Read-only. This field should not be set in requests. SensitiveCategories []int64 `json:"sensitiveCategories,omitempty"` // ServingRestrictions: 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). Read-only. This field should not be // set in requests. ServingRestrictions []*CreativeServingRestrictions `json:"servingRestrictions,omitempty"` // VendorType: All vendor types for the ads that may be shown from this // snippet. VendorType []int64 `json:"vendorType,omitempty"` // Version: The version for this creative. Read-only. This field should // not be set in requests. Version int64 `json:"version,omitempty"` // VideoURL: The url to fetch a video ad. If set, HTMLSnippet should not // be set. VideoURL string `json:"videoURL,omitempty"` // Width: Ad width. Width int64 `json:"width,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "HTMLSnippet") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
Creative: A creative and its classification data.
func (*Creative) MarshalJSON ¶
type CreativeCorrections ¶
type CreativeCorrections struct { // Details: Additional details about the correction. Details []string `json:"details,omitempty"` // Reason: The type of correction that was applied to the creative. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Details") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*CreativeCorrections) MarshalJSON ¶
func (s *CreativeCorrections) MarshalJSON() ([]byte, error)
type CreativeFilteringReasons ¶
type CreativeFilteringReasons struct { // Date: The date in ISO 8601 format for the data. The data is collected // from 00:00:00 to 23:59:59 in PST. Date string `json:"date,omitempty"` // Reasons: The filtering reasons. Reasons []*CreativeFilteringReasonsReasons `json:"reasons,omitempty"` // ForceSendFields is a list of field names (e.g. "Date") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreativeFilteringReasons: The filtering reasons for the creative. Read-only. This field should not be set in requests.
func (*CreativeFilteringReasons) MarshalJSON ¶
func (s *CreativeFilteringReasons) MarshalJSON() ([]byte, error)
type CreativeFilteringReasonsReasons ¶
type CreativeFilteringReasonsReasons struct { // FilteringCount: The number of times the creative was filtered for the // status. The count is aggregated across all publishers on the // exchange. FilteringCount int64 `json:"filteringCount,omitempty,string"` // FilteringStatus: The filtering status code. Please refer to the // creative-status-codes.txt file for different statuses. FilteringStatus int64 `json:"filteringStatus,omitempty"` // ForceSendFields is a list of field names (e.g. "FilteringCount") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*CreativeFilteringReasonsReasons) MarshalJSON ¶
func (s *CreativeFilteringReasonsReasons) MarshalJSON() ([]byte, error)
type CreativeNativeAd ¶
type CreativeNativeAd struct { Advertiser string `json:"advertiser,omitempty"` // AppIcon: The app icon, for app download ads. AppIcon *CreativeNativeAdAppIcon `json:"appIcon,omitempty"` // Body: A long description of the ad. Body string `json:"body,omitempty"` // CallToAction: A label for the button that the user is supposed to // click. CallToAction string `json:"callToAction,omitempty"` // ClickTrackingUrl: The URL to use for click tracking. ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"` // Headline: A short title for the ad. Headline string `json:"headline,omitempty"` // Image: A large image. Image *CreativeNativeAdImage `json:"image,omitempty"` // ImpressionTrackingUrl: The URLs are called when the impression is // rendered. ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"` // Logo: A smaller image, for the advertiser logo. Logo *CreativeNativeAdLogo `json:"logo,omitempty"` // Price: The price of the promoted app including the currency info. Price string `json:"price,omitempty"` // StarRating: The app rating in the app store. Must be in the range // [0-5]. StarRating float64 `json:"starRating,omitempty"` // Store: The URL to the app store to purchase/download the promoted // app. Store string `json:"store,omitempty"` // ForceSendFields is a list of field names (e.g. "Advertiser") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreativeNativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be set.
func (*CreativeNativeAd) MarshalJSON ¶
func (s *CreativeNativeAd) MarshalJSON() ([]byte, error)
type CreativeNativeAdAppIcon ¶
type CreativeNativeAdAppIcon struct { Height int64 `json:"height,omitempty"` Url string `json:"url,omitempty"` Width int64 `json:"width,omitempty"` // ForceSendFields is a list of field names (e.g. "Height") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreativeNativeAdAppIcon: The app icon, for app download ads.
func (*CreativeNativeAdAppIcon) MarshalJSON ¶
func (s *CreativeNativeAdAppIcon) MarshalJSON() ([]byte, error)
type CreativeNativeAdImage ¶
type CreativeNativeAdImage struct { Height int64 `json:"height,omitempty"` Url string `json:"url,omitempty"` Width int64 `json:"width,omitempty"` // ForceSendFields is a list of field names (e.g. "Height") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreativeNativeAdImage: A large image.
func (*CreativeNativeAdImage) MarshalJSON ¶
func (s *CreativeNativeAdImage) MarshalJSON() ([]byte, error)
type CreativeNativeAdLogo ¶
type CreativeNativeAdLogo struct { Height int64 `json:"height,omitempty"` Url string `json:"url,omitempty"` Width int64 `json:"width,omitempty"` // ForceSendFields is a list of field names (e.g. "Height") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreativeNativeAdLogo: A smaller image, for the advertiser logo.
func (*CreativeNativeAdLogo) MarshalJSON ¶
func (s *CreativeNativeAdLogo) MarshalJSON() ([]byte, error)
type CreativeServingRestrictions ¶
type CreativeServingRestrictions struct { // Contexts: All known contexts/restrictions. Contexts []*CreativeServingRestrictionsContexts `json:"contexts,omitempty"` // DisapprovalReasons: The reasons for disapproval within this // restriction, if any. Note that not all disapproval reasons may be // categorized, so it is possible for the creative to have a status of // DISAPPROVED or CONDITIONALLY_APPROVED with an empty list for // disapproval_reasons. In this case, please reach out to your TAM to // help debug the issue. DisapprovalReasons []*CreativeServingRestrictionsDisapprovalReasons `json:"disapprovalReasons,omitempty"` // Reason: Why the creative is ineligible to serve in this context // (e.g., it has been explicitly disapproved or is pending review). Reason string `json:"reason,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:"-"` }
func (*CreativeServingRestrictions) MarshalJSON ¶
func (s *CreativeServingRestrictions) MarshalJSON() ([]byte, error)
type CreativeServingRestrictionsContexts ¶
type CreativeServingRestrictionsContexts struct { // AuctionType: Only set when contextType=AUCTION_TYPE. Represents the // auction types this restriction applies to. AuctionType []string `json:"auctionType,omitempty"` // ContextType: The type of context (e.g., location, platform, auction // type, SSL-ness). ContextType string `json:"contextType,omitempty"` // GeoCriteriaId: Only set when contextType=LOCATION. Represents the geo // criterias this restriction applies to. GeoCriteriaId []int64 `json:"geoCriteriaId,omitempty"` // Platform: Only set when contextType=PLATFORM. Represents the // platforms this restriction applies to. Platform []string `json:"platform,omitempty"` // ForceSendFields is a list of field names (e.g. "AuctionType") 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:"-"` }
func (*CreativeServingRestrictionsContexts) MarshalJSON ¶
func (s *CreativeServingRestrictionsContexts) MarshalJSON() ([]byte, error)
type CreativeServingRestrictionsDisapprovalReasons ¶
type CreativeServingRestrictionsDisapprovalReasons struct { // Details: Additional details about the reason for disapproval. Details []string `json:"details,omitempty"` // Reason: The categorized reason for disapproval. Reason string `json:"reason,omitempty"` // ForceSendFields is a list of field names (e.g. "Details") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*CreativeServingRestrictionsDisapprovalReasons) MarshalJSON ¶
func (s *CreativeServingRestrictionsDisapprovalReasons) MarshalJSON() ([]byte, error)
type CreativesAddDealCall ¶
type CreativesAddDealCall struct {
// contains filtered or unexported fields
}
func (*CreativesAddDealCall) Context ¶
func (c *CreativesAddDealCall) Context(ctx context.Context) *CreativesAddDealCall
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 (*CreativesAddDealCall) Do ¶
func (c *CreativesAddDealCall) Do() error
Do executes the "adexchangebuyer.creatives.addDeal" call.
func (*CreativesAddDealCall) Fields ¶
func (c *CreativesAddDealCall) Fields(s ...googleapi.Field) *CreativesAddDealCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CreativesAddDealCall) QuotaUser ¶
func (c *CreativesAddDealCall) QuotaUser(quotaUser string) *CreativesAddDealCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*CreativesAddDealCall) UserIP ¶
func (c *CreativesAddDealCall) UserIP(userIP string) *CreativesAddDealCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type CreativesGetCall ¶
type CreativesGetCall struct {
// contains filtered or unexported fields
}
func (*CreativesGetCall) Context ¶
func (c *CreativesGetCall) Context(ctx context.Context) *CreativesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CreativesGetCall) Do ¶
func (c *CreativesGetCall) Do() (*Creative, error)
Do executes the "adexchangebuyer.creatives.get" call. Exactly one of *Creative or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Creative.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CreativesGetCall) Fields ¶
func (c *CreativesGetCall) Fields(s ...googleapi.Field) *CreativesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CreativesGetCall) IfNoneMatch ¶
func (c *CreativesGetCall) IfNoneMatch(entityTag string) *CreativesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CreativesGetCall) QuotaUser ¶
func (c *CreativesGetCall) QuotaUser(quotaUser string) *CreativesGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*CreativesGetCall) UserIP ¶
func (c *CreativesGetCall) UserIP(userIP string) *CreativesGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type CreativesInsertCall ¶
type CreativesInsertCall struct {
// contains filtered or unexported fields
}
func (*CreativesInsertCall) Context ¶
func (c *CreativesInsertCall) Context(ctx context.Context) *CreativesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CreativesInsertCall) Do ¶
func (c *CreativesInsertCall) Do() (*Creative, error)
Do executes the "adexchangebuyer.creatives.insert" call. Exactly one of *Creative or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Creative.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CreativesInsertCall) Fields ¶
func (c *CreativesInsertCall) Fields(s ...googleapi.Field) *CreativesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CreativesInsertCall) QuotaUser ¶
func (c *CreativesInsertCall) QuotaUser(quotaUser string) *CreativesInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*CreativesInsertCall) UserIP ¶
func (c *CreativesInsertCall) UserIP(userIP string) *CreativesInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type CreativesList ¶
type CreativesList struct { // Items: A list of creatives. Items []*Creative `json:"items,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // NextPageToken: Continuation token used to page through creatives. To // retrieve the next page of results, set the next request's "pageToken" // value to this. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
CreativesList: The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.
func (*CreativesList) MarshalJSON ¶
func (s *CreativesList) MarshalJSON() ([]byte, error)
type CreativesListCall ¶
type CreativesListCall struct {
// contains filtered or unexported fields
}
func (*CreativesListCall) AccountId ¶
func (c *CreativesListCall) AccountId(accountId ...int64) *CreativesListCall
AccountId sets the optional parameter "accountId": When specified, only creatives for the given account ids are returned.
func (*CreativesListCall) BuyerCreativeId ¶
func (c *CreativesListCall) BuyerCreativeId(buyerCreativeId ...string) *CreativesListCall
BuyerCreativeId sets the optional parameter "buyerCreativeId": When specified, only creatives for the given buyer creative ids are returned.
func (*CreativesListCall) Context ¶
func (c *CreativesListCall) Context(ctx context.Context) *CreativesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CreativesListCall) DealsStatusFilter ¶
func (c *CreativesListCall) DealsStatusFilter(dealsStatusFilter string) *CreativesListCall
DealsStatusFilter sets the optional parameter "dealsStatusFilter": When specified, only creatives having the given deals status are returned.
Possible values:
"approved" - Creatives which have been approved for serving on
deals.
"conditionally_approved" - Creatives which have been conditionally
approved for serving on deals.
"disapproved" - Creatives which have been disapproved for serving
on deals.
"not_checked" - Creatives whose deals status is not yet checked.
func (*CreativesListCall) Do ¶
func (c *CreativesListCall) Do() (*CreativesList, error)
Do executes the "adexchangebuyer.creatives.list" call. Exactly one of *CreativesList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CreativesList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CreativesListCall) Fields ¶
func (c *CreativesListCall) Fields(s ...googleapi.Field) *CreativesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CreativesListCall) IfNoneMatch ¶
func (c *CreativesListCall) IfNoneMatch(entityTag string) *CreativesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*CreativesListCall) MaxResults ¶
func (c *CreativesListCall) MaxResults(maxResults int64) *CreativesListCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. If not set, the default is 100.
func (*CreativesListCall) OpenAuctionStatusFilter ¶
func (c *CreativesListCall) OpenAuctionStatusFilter(openAuctionStatusFilter string) *CreativesListCall
OpenAuctionStatusFilter sets the optional parameter "openAuctionStatusFilter": When specified, only creatives having the given open auction status are returned.
Possible values:
"approved" - Creatives which have been approved for serving on the
open auction.
"conditionally_approved" - Creatives which have been conditionally
approved for serving on the open auction.
"disapproved" - Creatives which have been disapproved for serving
on the open auction.
"not_checked" - Creatives whose open auction status is not yet
checked.
func (*CreativesListCall) PageToken ¶
func (c *CreativesListCall) PageToken(pageToken string) *CreativesListCall
PageToken sets the optional parameter "pageToken": A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
func (*CreativesListCall) QuotaUser ¶
func (c *CreativesListCall) QuotaUser(quotaUser string) *CreativesListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*CreativesListCall) UserIP ¶
func (c *CreativesListCall) UserIP(userIP string) *CreativesListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type CreativesRemoveDealCall ¶
type CreativesRemoveDealCall struct {
// contains filtered or unexported fields
}
func (*CreativesRemoveDealCall) Context ¶
func (c *CreativesRemoveDealCall) Context(ctx context.Context) *CreativesRemoveDealCall
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 (*CreativesRemoveDealCall) Do ¶
func (c *CreativesRemoveDealCall) Do() error
Do executes the "adexchangebuyer.creatives.removeDeal" call.
func (*CreativesRemoveDealCall) Fields ¶
func (c *CreativesRemoveDealCall) Fields(s ...googleapi.Field) *CreativesRemoveDealCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CreativesRemoveDealCall) QuotaUser ¶
func (c *CreativesRemoveDealCall) QuotaUser(quotaUser string) *CreativesRemoveDealCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*CreativesRemoveDealCall) UserIP ¶
func (c *CreativesRemoveDealCall) UserIP(userIP string) *CreativesRemoveDealCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type CreativesService ¶
type CreativesService struct {
// contains filtered or unexported fields
}
func NewCreativesService ¶
func NewCreativesService(s *Service) *CreativesService
func (*CreativesService) AddDeal ¶
func (r *CreativesService) AddDeal(accountId int64, buyerCreativeId string, dealId int64) *CreativesAddDealCall
AddDeal: Add a deal id association for the creative.
func (*CreativesService) Get ¶
func (r *CreativesService) Get(accountId int64, buyerCreativeId string) *CreativesGetCall
Get: Gets the status for a single creative. A creative will be available 30-40 minutes after submission.
func (*CreativesService) Insert ¶
func (r *CreativesService) Insert(creative *Creative) *CreativesInsertCall
Insert: Submit a new creative.
func (*CreativesService) List ¶
func (r *CreativesService) List() *CreativesListCall
List: Retrieves a list of the authenticated user's active creatives. A creative will be available 30-40 minutes after submission.
func (*CreativesService) RemoveDeal ¶
func (r *CreativesService) RemoveDeal(accountId int64, buyerCreativeId string, dealId int64) *CreativesRemoveDealCall
RemoveDeal: Remove a deal id associated with the creative.
type DealTerms ¶
type DealTerms struct { // BrandingType: Visibilty of the URL in bid requests. BrandingType string `json:"brandingType,omitempty"` // Description: Description for the proposed terms of the deal. Description string `json:"description,omitempty"` // EstimatedGrossSpend: Non-binding estimate of the estimated gross // spend for this deal Can be set by buyer or seller. EstimatedGrossSpend *Price `json:"estimatedGrossSpend,omitempty"` // EstimatedImpressionsPerDay: Non-binding estimate of the impressions // served per day Can be set by buyer or seller. EstimatedImpressionsPerDay int64 `json:"estimatedImpressionsPerDay,omitempty,string"` // GuaranteedFixedPriceTerms: The terms for guaranteed fixed price // deals. GuaranteedFixedPriceTerms *DealTermsGuaranteedFixedPriceTerms `json:"guaranteedFixedPriceTerms,omitempty"` // NonGuaranteedAuctionTerms: The terms for non-guaranteed auction // deals. NonGuaranteedAuctionTerms *DealTermsNonGuaranteedAuctionTerms `json:"nonGuaranteedAuctionTerms,omitempty"` // NonGuaranteedFixedPriceTerms: The terms for non-guaranteed fixed // price deals. NonGuaranteedFixedPriceTerms *DealTermsNonGuaranteedFixedPriceTerms `json:"nonGuaranteedFixedPriceTerms,omitempty"` // ForceSendFields is a list of field names (e.g. "BrandingType") 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:"-"` }
func (*DealTerms) MarshalJSON ¶
type DealTermsGuaranteedFixedPriceTerms ¶
type DealTermsGuaranteedFixedPriceTerms struct { // FixedPrices: Fixed price for the specified buyer. FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"` // GuaranteedImpressions: Guaranteed impressions as a percentage. This // is the percentage of guaranteed looks that the buyer is guaranteeing // to buy. GuaranteedImpressions int64 `json:"guaranteedImpressions,omitempty,string"` // GuaranteedLooks: Count of guaranteed looks. Required for deal, // optional for offer. GuaranteedLooks int64 `json:"guaranteedLooks,omitempty,string"` // ForceSendFields is a list of field names (e.g. "FixedPrices") 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:"-"` }
func (*DealTermsGuaranteedFixedPriceTerms) MarshalJSON ¶
func (s *DealTermsGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error)
type DealTermsNonGuaranteedAuctionTerms ¶
type DealTermsNonGuaranteedAuctionTerms struct { // PrivateAuctionId: Id of the corresponding private auction. PrivateAuctionId string `json:"privateAuctionId,omitempty"` // ReservePricePerBuyers: Reserve price for the specified buyer. ReservePricePerBuyers []*PricePerBuyer `json:"reservePricePerBuyers,omitempty"` // ForceSendFields is a list of field names (e.g. "PrivateAuctionId") 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:"-"` }
func (*DealTermsNonGuaranteedAuctionTerms) MarshalJSON ¶
func (s *DealTermsNonGuaranteedAuctionTerms) MarshalJSON() ([]byte, error)
type DealTermsNonGuaranteedFixedPriceTerms ¶
type DealTermsNonGuaranteedFixedPriceTerms struct { // FixedPrices: Fixed price for the specified buyer. FixedPrices []*PricePerBuyer `json:"fixedPrices,omitempty"` // ForceSendFields is a list of field names (e.g. "FixedPrices") 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:"-"` }
func (*DealTermsNonGuaranteedFixedPriceTerms) MarshalJSON ¶
func (s *DealTermsNonGuaranteedFixedPriceTerms) MarshalJSON() ([]byte, error)
type DeleteOrderDealsRequest ¶
type DeleteOrderDealsRequest struct { // DealIds: List of deals to delete for a given order DealIds []string `json:"dealIds,omitempty"` // OrderRevisionNumber: The last known order revision number. OrderRevisionNumber int64 `json:"orderRevisionNumber,omitempty,string"` UpdateAction string `json:"updateAction,omitempty"` // ForceSendFields is a list of field names (e.g. "DealIds") 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:"-"` }
func (*DeleteOrderDealsRequest) MarshalJSON ¶
func (s *DeleteOrderDealsRequest) MarshalJSON() ([]byte, error)
type DeleteOrderDealsResponse ¶
type DeleteOrderDealsResponse struct { // Deals: List of deals deleted (in the same order as passed in the // request) Deals []*MarketplaceDeal `json:"deals,omitempty"` // OrderRevisionNumber: The updated revision number for the order. OrderRevisionNumber int64 `json:"orderRevisionNumber,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. "Deals") 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:"-"` }
func (*DeleteOrderDealsResponse) MarshalJSON ¶
func (s *DeleteOrderDealsResponse) MarshalJSON() ([]byte, error)
type DeliveryControl ¶
type DeliveryControl struct { CreativeBlockingLevel string `json:"creativeBlockingLevel,omitempty"` DeliveryRateType string `json:"deliveryRateType,omitempty"` FrequencyCaps []*DeliveryControlFrequencyCap `json:"frequencyCaps,omitempty"` // ForceSendFields is a list of field names (e.g. // "CreativeBlockingLevel") 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:"-"` }
func (*DeliveryControl) MarshalJSON ¶
func (s *DeliveryControl) MarshalJSON() ([]byte, error)
type DeliveryControlFrequencyCap ¶
type DeliveryControlFrequencyCap struct { MaxImpressions int64 `json:"maxImpressions,omitempty"` NumTimeUnits int64 `json:"numTimeUnits,omitempty"` TimeUnitType string `json:"timeUnitType,omitempty"` // ForceSendFields is a list of field names (e.g. "MaxImpressions") 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:"-"` }
func (*DeliveryControlFrequencyCap) MarshalJSON ¶
func (s *DeliveryControlFrequencyCap) MarshalJSON() ([]byte, error)
type EditAllOrderDealsRequest ¶
type EditAllOrderDealsRequest struct { // Deals: List of deals to edit. Service may perform 3 different // operations based on comparison of deals in this list vs deals already // persisted in database: 1. Add new deal to order If a deal in this // list does not exist in the order, the service will create a new deal // and add it to the order. Validation will follow AddOrderDealsRequest. // 2. Update existing deal in the order If a deal in this list already // exist in the order, the service will update that existing deal to // this new deal in the request. Validation will follow // UpdateOrderDealsRequest. 3. Delete deals from the order (just need // the id) If a existing deal in the order is not present in this list, // the service will delete that deal from the order. Validation will // follow DeleteOrderDealsRequest. Deals []*MarketplaceDeal `json:"deals,omitempty"` // Order: If specified, also updates the order in the batch transaction. // This is useful when the order and the deals need to be updated in one // transaction. Order *MarketplaceOrder `json:"order,omitempty"` // OrderRevisionNumber: The last known revision number for the order. OrderRevisionNumber int64 `json:"orderRevisionNumber,omitempty,string"` // UpdateAction: Indicates an optional action to take on the order UpdateAction string `json:"updateAction,omitempty"` // ForceSendFields is a list of field names (e.g. "Deals") 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:"-"` }
func (*EditAllOrderDealsRequest) MarshalJSON ¶
func (s *EditAllOrderDealsRequest) MarshalJSON() ([]byte, error)
type EditAllOrderDealsResponse ¶
type EditAllOrderDealsResponse struct { // Deals: List of all deals in the order after edit. Deals []*MarketplaceDeal `json:"deals,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Deals") 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:"-"` }
func (*EditAllOrderDealsResponse) MarshalJSON ¶
func (s *EditAllOrderDealsResponse) MarshalJSON() ([]byte, error)
type GetOffersResponse ¶
type GetOffersResponse struct { // Offers: The returned list of offers. Offers []*MarketplaceOffer `json:"offers,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Offers") 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:"-"` }
func (*GetOffersResponse) MarshalJSON ¶
func (s *GetOffersResponse) MarshalJSON() ([]byte, error)
type GetOrderDealsResponse ¶
type GetOrderDealsResponse struct { // Deals: List of deals for the order Deals []*MarketplaceDeal `json:"deals,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Deals") 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:"-"` }
func (*GetOrderDealsResponse) MarshalJSON ¶
func (s *GetOrderDealsResponse) MarshalJSON() ([]byte, error)
type GetOrderNotesResponse ¶
type GetOrderNotesResponse struct { // Notes: The list of matching notes. Notes []*MarketplaceNote `json:"notes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Notes") 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:"-"` }
func (*GetOrderNotesResponse) MarshalJSON ¶
func (s *GetOrderNotesResponse) MarshalJSON() ([]byte, error)
type GetOrdersResponse ¶
type GetOrdersResponse struct { // Orders: The list of matching orders. Orders []*MarketplaceOrder `json:"orders,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Orders") 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:"-"` }
func (*GetOrdersResponse) MarshalJSON ¶
func (s *GetOrdersResponse) MarshalJSON() ([]byte, error)
type MarketplaceDeal ¶
type MarketplaceDeal struct { // BuyerPrivateData: Buyer private data (hidden from seller). BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"` // CreationTimeMs: The time (ms since epoch) of the deal creation. // (readonly) CreationTimeMs int64 `json:"creationTimeMs,omitempty,string"` // CreativePreApprovalPolicy: Specifies the creative pre-approval policy // (buyer-readonly) CreativePreApprovalPolicy string `json:"creativePreApprovalPolicy,omitempty"` // DealId: A unique deal=id for the deal (readonly). DealId string `json:"dealId,omitempty"` // DeliveryControl: The set of fields around delivery control that are // interesting for a buyer to see but are non-negotiable. These are set // by the publisher. This message is assigned an id of 100 since some // day we would want to model this as a protobuf extension. DeliveryControl *DeliveryControl `json:"deliveryControl,omitempty"` // ExternalDealId: The external deal id assigned to this deal once the // deal is finalized. This is the deal-id that shows up in // serving/reporting etc. (readonly) ExternalDealId string `json:"externalDealId,omitempty"` // FlightEndTimeMs: Proposed flight end time of the deal (ms since // epoch) This will generally be stored in a granularity of a second. // (updatable) FlightEndTimeMs int64 `json:"flightEndTimeMs,omitempty,string"` // FlightStartTimeMs: Proposed flight start time of the deal (ms since // epoch) This will generally be stored in a granularity of a second. // (updatable) FlightStartTimeMs int64 `json:"flightStartTimeMs,omitempty,string"` // InventoryDescription: Description for the deal terms. (updatable) InventoryDescription string `json:"inventoryDescription,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "adexchangebuyer#marketplaceDeal". Kind string `json:"kind,omitempty"` // LastUpdateTimeMs: The time (ms since epoch) when the deal was last // updated. (readonly) LastUpdateTimeMs int64 `json:"lastUpdateTimeMs,omitempty,string"` // Name: The name of the deal. (updatable) Name string `json:"name,omitempty"` // OfferId: The offer-id from which this deal was created. (readonly, // except on create) OfferId string `json:"offerId,omitempty"` // OfferRevisionNumber: The revision number of the offer that the deal // was created from (readonly, except on create) OfferRevisionNumber int64 `json:"offerRevisionNumber,omitempty,string"` OrderId string `json:"orderId,omitempty"` // SellerContacts: Optional Seller contact information for the deal // (buyer-readonly) SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"` // (updatable) SharedTargetings []*SharedTargeting `json:"sharedTargetings,omitempty"` // SyndicationProduct: The syndication product associated with the deal. // (readonly, except on create) SyndicationProduct string `json:"syndicationProduct,omitempty"` // Terms: The negotiable terms of the deal. (updatable) Terms *DealTerms `json:"terms,omitempty"` WebPropertyCode string `json:"webPropertyCode,omitempty"` // ForceSendFields is a list of field names (e.g. "BuyerPrivateData") 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:"-"` }
MarketplaceDeal: An order can contain multiple deals. A deal contains the terms and targeting information that is used for serving.
func (*MarketplaceDeal) MarshalJSON ¶
func (s *MarketplaceDeal) MarshalJSON() ([]byte, error)
type MarketplaceDealParty ¶
type MarketplaceDealParty struct { // Buyer: The buyer/seller associated with the deal. One of buyer/seller // is specified for a deal-party. Buyer *Buyer `json:"buyer,omitempty"` // Seller: The buyer/seller associated with the deal. One of // buyer/seller is specified for a deal party. Seller *Seller `json:"seller,omitempty"` // ForceSendFields is a list of field names (e.g. "Buyer") 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:"-"` }
func (*MarketplaceDealParty) MarshalJSON ¶
func (s *MarketplaceDealParty) MarshalJSON() ([]byte, error)
type MarketplaceLabel ¶
type MarketplaceLabel struct { // AccountId: The accountId of the party that created the label. AccountId string `json:"accountId,omitempty"` // CreateTimeMs: The creation time (in ms since epoch) for the label. CreateTimeMs int64 `json:"createTimeMs,omitempty,string"` // DeprecatedMarketplaceDealParty: Information about the party that // created the label. DeprecatedMarketplaceDealParty *MarketplaceDealParty `json:"deprecatedMarketplaceDealParty,omitempty"` // Label: The label to use. Label string `json:"label,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:"-"` }
func (*MarketplaceLabel) MarshalJSON ¶
func (s *MarketplaceLabel) MarshalJSON() ([]byte, error)
type MarketplaceNote ¶
type MarketplaceNote struct { // CreatorRole: The role of the person (buyer/seller) creating the note. // (readonly) CreatorRole string `json:"creatorRole,omitempty"` // DealId: Notes can optionally be associated with a deal. (readonly, // except on create) DealId string `json:"dealId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "adexchangebuyer#marketplaceNote". Kind string `json:"kind,omitempty"` // Note: The actual note to attach. (readonly, except on create) Note string `json:"note,omitempty"` // NoteId: The unique id for the note. (readonly) NoteId string `json:"noteId,omitempty"` // OrderId: The order_id that a note is attached to. (readonly) OrderId string `json:"orderId,omitempty"` // OrderRevisionNumber: If the note is associated with an order revision // number, then store that here. (readonly, except on create) OrderRevisionNumber int64 `json:"orderRevisionNumber,omitempty,string"` // TimestampMs: The timestamp (ms since epoch) that this note was // created. (readonly) TimestampMs int64 `json:"timestampMs,omitempty,string"` // ForceSendFields is a list of field names (e.g. "CreatorRole") 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:"-"` }
MarketplaceNote: An order is associated with a bunch of notes which may optionally be associated with a deal and/or revision number.
func (*MarketplaceNote) MarshalJSON ¶
func (s *MarketplaceNote) MarshalJSON() ([]byte, error)
type MarketplaceOffer ¶
type MarketplaceOffer struct { // CreationTimeMs: Creation time in ms. since epoch (readonly) CreationTimeMs int64 `json:"creationTimeMs,omitempty,string"` // CreatorContacts: Optional contact information for the creator of this // offer. (buyer-readonly) CreatorContacts []*ContactInformation `json:"creatorContacts,omitempty"` // FlightEndTimeMs: The proposed end time for the deal (ms since epoch) // (buyer-readonly) FlightEndTimeMs int64 `json:"flightEndTimeMs,omitempty,string"` // FlightStartTimeMs: Inventory availability dates. (times are in ms // since epoch) The granularity is generally in the order of seconds. // (buyer-readonly) FlightStartTimeMs int64 `json:"flightStartTimeMs,omitempty,string"` // HasCreatorSignedOff: If the creator has already signed off on the // offer, then the buyer can finalize the deal by accepting the offer as // is. When copying to an order, if any of the terms are changed, then // auto_finalize is automatically set to false. HasCreatorSignedOff bool `json:"hasCreatorSignedOff,omitempty"` // InventorySource: What exchange will provide this inventory (readonly, // except on create). InventorySource string `json:"inventorySource,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "adexchangebuyer#marketplaceOffer". Kind string `json:"kind,omitempty"` // Labels: Optional List of labels for the offer (optional, // buyer-readonly). Labels []*MarketplaceLabel `json:"labels,omitempty"` // LastUpdateTimeMs: Time of last update in ms. since epoch (readonly) LastUpdateTimeMs int64 `json:"lastUpdateTimeMs,omitempty,string"` // Name: The name for this offer as set by the seller. (buyer-readonly) Name string `json:"name,omitempty"` // OfferId: The unique id for the offer (readonly) OfferId string `json:"offerId,omitempty"` // RevisionNumber: The revision number of the offer. (readonly) RevisionNumber int64 `json:"revisionNumber,omitempty,string"` // Seller: Information about the seller that created this offer // (readonly, except on create) Seller *Seller `json:"seller,omitempty"` // seller. Each targeting criteria has a specified key and for each key // there is a list of inclusion value or exclusion values. // (buyer-readonly) SharedTargetings []*SharedTargeting `json:"sharedTargetings,omitempty"` // State: The state of the offer. (buyer-readonly) State string `json:"state,omitempty"` // SyndicationProduct: The syndication product associated with the deal. // (readonly, except on create) SyndicationProduct string `json:"syndicationProduct,omitempty"` // Terms: The negotiable terms of the deal (buyer-readonly) Terms *DealTerms `json:"terms,omitempty"` WebPropertyCode string `json:"webPropertyCode,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CreationTimeMs") 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:"-"` }
MarketplaceOffer: An offer is segment of inventory that a seller wishes to sell. It is associated with certain terms and targeting information which helps buyer know more about the inventory. Each field in an order can have one of the following setting:
(readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller.
func (*MarketplaceOffer) MarshalJSON ¶
func (s *MarketplaceOffer) MarshalJSON() ([]byte, error)
type MarketplaceOrder ¶
type MarketplaceOrder struct { // BilledBuyer: Reference to the buyer that will get billed for this // order. (readonly) BilledBuyer *Buyer `json:"billedBuyer,omitempty"` // Buyer: Reference to the buyer on the order. (readonly, except on // create) Buyer *Buyer `json:"buyer,omitempty"` // BuyerContacts: Optional contact information fort the buyer. // (seller-readonly) BuyerContacts []*ContactInformation `json:"buyerContacts,omitempty"` // BuyerPrivateData: Private data for buyer. (hidden from seller). BuyerPrivateData *PrivateData `json:"buyerPrivateData,omitempty"` // HasBuyerSignedOff: When an order is in an accepted state, indicates // whether the buyer has signed off Once both sides have signed off on a // deal, the order can be finalized by the seller. (seller-readonly) HasBuyerSignedOff bool `json:"hasBuyerSignedOff,omitempty"` // HasSellerSignedOff: When an order is in an accepted state, indicates // whether the buyer has signed off Once both sides have signed off on a // deal, the order can be finalized by the seller. (buyer-readonly) HasSellerSignedOff bool `json:"hasSellerSignedOff,omitempty"` // InventorySource: What exchange will provide this inventory (readonly, // except on create). InventorySource string `json:"inventorySource,omitempty"` // IsRenegotiating: True if the order is being renegotiated (readonly). IsRenegotiating bool `json:"isRenegotiating,omitempty"` // IsSetupComplete: True, if the buyside inventory setup is complete for // this order. (readonly) IsSetupComplete bool `json:"isSetupComplete,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "adexchangebuyer#marketplaceOrder". Kind string `json:"kind,omitempty"` // Labels: List of labels associated with the order. (readonly) Labels []*MarketplaceLabel `json:"labels,omitempty"` // LastUpdaterOrCommentorRole: The role of the last user that either // updated the order or left a comment. (readonly) LastUpdaterOrCommentorRole string `json:"lastUpdaterOrCommentorRole,omitempty"` LastUpdaterRole string `json:"lastUpdaterRole,omitempty"` // Name: The name for the order (updatable) Name string `json:"name,omitempty"` // OrderId: The unique id of the order. (readonly). OrderId string `json:"orderId,omitempty"` // OrderState: The current state of the order. (readonly) OrderState string `json:"orderState,omitempty"` // OriginatorRole: Indicates whether the buyer/seller created the // offer.(readonly) OriginatorRole string `json:"originatorRole,omitempty"` // RevisionNumber: The revision number for the order (readonly). RevisionNumber int64 `json:"revisionNumber,omitempty,string"` // RevisionTimeMs: The time (ms since epoch) when the order was last // revised (readonly). RevisionTimeMs int64 `json:"revisionTimeMs,omitempty,string"` // Seller: Reference to the seller on the order. (readonly, except on // create) Seller *Seller `json:"seller,omitempty"` // SellerContacts: Optional contact information for the seller // (buyer-readonly). SellerContacts []*ContactInformation `json:"sellerContacts,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BilledBuyer") 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:"-"` }
MarketplaceOrder: Represents an order in the marketplace. An order is the unit of negotiation between a seller and a buyer and contains deals which are served. Each field in an order can have one of the following setting:
(readonly) - It is an error to try and set this field. (buyer-readonly) - Only the seller can set this field. (seller-readonly) - Only the buyer can set this field. (updatable) - The field is updatable at all times by either buyer or the seller.
func (*MarketplaceOrder) MarshalJSON ¶
func (s *MarketplaceOrder) MarshalJSON() ([]byte, error)
type MarketplacedealsDeleteCall ¶
type MarketplacedealsDeleteCall struct {
// contains filtered or unexported fields
}
func (*MarketplacedealsDeleteCall) Context ¶
func (c *MarketplacedealsDeleteCall) Context(ctx context.Context) *MarketplacedealsDeleteCall
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 (*MarketplacedealsDeleteCall) Do ¶
func (c *MarketplacedealsDeleteCall) Do() (*DeleteOrderDealsResponse, error)
Do executes the "adexchangebuyer.marketplacedeals.delete" call. Exactly one of *DeleteOrderDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DeleteOrderDealsResponse.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 (*MarketplacedealsDeleteCall) Fields ¶
func (c *MarketplacedealsDeleteCall) Fields(s ...googleapi.Field) *MarketplacedealsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplacedealsDeleteCall) QuotaUser ¶
func (c *MarketplacedealsDeleteCall) QuotaUser(quotaUser string) *MarketplacedealsDeleteCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplacedealsDeleteCall) UserIP ¶
func (c *MarketplacedealsDeleteCall) UserIP(userIP string) *MarketplacedealsDeleteCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplacedealsInsertCall ¶
type MarketplacedealsInsertCall struct {
// contains filtered or unexported fields
}
func (*MarketplacedealsInsertCall) Context ¶
func (c *MarketplacedealsInsertCall) Context(ctx context.Context) *MarketplacedealsInsertCall
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 (*MarketplacedealsInsertCall) Do ¶
func (c *MarketplacedealsInsertCall) Do() (*AddOrderDealsResponse, error)
Do executes the "adexchangebuyer.marketplacedeals.insert" call. Exactly one of *AddOrderDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AddOrderDealsResponse.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 (*MarketplacedealsInsertCall) Fields ¶
func (c *MarketplacedealsInsertCall) Fields(s ...googleapi.Field) *MarketplacedealsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplacedealsInsertCall) QuotaUser ¶
func (c *MarketplacedealsInsertCall) QuotaUser(quotaUser string) *MarketplacedealsInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplacedealsInsertCall) UserIP ¶
func (c *MarketplacedealsInsertCall) UserIP(userIP string) *MarketplacedealsInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplacedealsListCall ¶
type MarketplacedealsListCall struct {
// contains filtered or unexported fields
}
func (*MarketplacedealsListCall) Context ¶
func (c *MarketplacedealsListCall) Context(ctx context.Context) *MarketplacedealsListCall
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 (*MarketplacedealsListCall) Do ¶
func (c *MarketplacedealsListCall) Do() (*GetOrderDealsResponse, error)
Do executes the "adexchangebuyer.marketplacedeals.list" call. Exactly one of *GetOrderDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetOrderDealsResponse.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 (*MarketplacedealsListCall) Fields ¶
func (c *MarketplacedealsListCall) Fields(s ...googleapi.Field) *MarketplacedealsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplacedealsListCall) IfNoneMatch ¶
func (c *MarketplacedealsListCall) IfNoneMatch(entityTag string) *MarketplacedealsListCall
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 (*MarketplacedealsListCall) QuotaUser ¶
func (c *MarketplacedealsListCall) QuotaUser(quotaUser string) *MarketplacedealsListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplacedealsListCall) UserIP ¶
func (c *MarketplacedealsListCall) UserIP(userIP string) *MarketplacedealsListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplacedealsService ¶
type MarketplacedealsService struct {
// contains filtered or unexported fields
}
func NewMarketplacedealsService ¶
func NewMarketplacedealsService(s *Service) *MarketplacedealsService
func (*MarketplacedealsService) Delete ¶
func (r *MarketplacedealsService) Delete(orderId string, deleteorderdealsrequest *DeleteOrderDealsRequest) *MarketplacedealsDeleteCall
Delete: Delete the specified deals from the order
func (*MarketplacedealsService) Insert ¶
func (r *MarketplacedealsService) Insert(orderId string, addorderdealsrequest *AddOrderDealsRequest) *MarketplacedealsInsertCall
Insert: Add new deals for the specified order
func (*MarketplacedealsService) List ¶
func (r *MarketplacedealsService) List(orderId string) *MarketplacedealsListCall
List: List all the deals for a given order
func (*MarketplacedealsService) Update ¶
func (r *MarketplacedealsService) Update(orderId string, editallorderdealsrequest *EditAllOrderDealsRequest) *MarketplacedealsUpdateCall
Update: Replaces all the deals in the order with the passed in deals
type MarketplacedealsUpdateCall ¶
type MarketplacedealsUpdateCall struct {
// contains filtered or unexported fields
}
func (*MarketplacedealsUpdateCall) Context ¶
func (c *MarketplacedealsUpdateCall) Context(ctx context.Context) *MarketplacedealsUpdateCall
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 (*MarketplacedealsUpdateCall) Do ¶
func (c *MarketplacedealsUpdateCall) Do() (*EditAllOrderDealsResponse, error)
Do executes the "adexchangebuyer.marketplacedeals.update" call. Exactly one of *EditAllOrderDealsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EditAllOrderDealsResponse.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 (*MarketplacedealsUpdateCall) Fields ¶
func (c *MarketplacedealsUpdateCall) Fields(s ...googleapi.Field) *MarketplacedealsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplacedealsUpdateCall) QuotaUser ¶
func (c *MarketplacedealsUpdateCall) QuotaUser(quotaUser string) *MarketplacedealsUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplacedealsUpdateCall) UserIP ¶
func (c *MarketplacedealsUpdateCall) UserIP(userIP string) *MarketplacedealsUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplacenotesInsertCall ¶
type MarketplacenotesInsertCall struct {
// contains filtered or unexported fields
}
func (*MarketplacenotesInsertCall) Context ¶
func (c *MarketplacenotesInsertCall) Context(ctx context.Context) *MarketplacenotesInsertCall
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 (*MarketplacenotesInsertCall) Do ¶
func (c *MarketplacenotesInsertCall) Do() (*AddOrderNotesResponse, error)
Do executes the "adexchangebuyer.marketplacenotes.insert" call. Exactly one of *AddOrderNotesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AddOrderNotesResponse.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 (*MarketplacenotesInsertCall) Fields ¶
func (c *MarketplacenotesInsertCall) Fields(s ...googleapi.Field) *MarketplacenotesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplacenotesInsertCall) QuotaUser ¶
func (c *MarketplacenotesInsertCall) QuotaUser(quotaUser string) *MarketplacenotesInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplacenotesInsertCall) UserIP ¶
func (c *MarketplacenotesInsertCall) UserIP(userIP string) *MarketplacenotesInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplacenotesListCall ¶
type MarketplacenotesListCall struct {
// contains filtered or unexported fields
}
func (*MarketplacenotesListCall) Context ¶
func (c *MarketplacenotesListCall) Context(ctx context.Context) *MarketplacenotesListCall
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 (*MarketplacenotesListCall) Do ¶
func (c *MarketplacenotesListCall) Do() (*GetOrderNotesResponse, error)
Do executes the "adexchangebuyer.marketplacenotes.list" call. Exactly one of *GetOrderNotesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetOrderNotesResponse.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 (*MarketplacenotesListCall) Fields ¶
func (c *MarketplacenotesListCall) Fields(s ...googleapi.Field) *MarketplacenotesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplacenotesListCall) IfNoneMatch ¶
func (c *MarketplacenotesListCall) IfNoneMatch(entityTag string) *MarketplacenotesListCall
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 (*MarketplacenotesListCall) QuotaUser ¶
func (c *MarketplacenotesListCall) QuotaUser(quotaUser string) *MarketplacenotesListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplacenotesListCall) UserIP ¶
func (c *MarketplacenotesListCall) UserIP(userIP string) *MarketplacenotesListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplacenotesService ¶
type MarketplacenotesService struct {
// contains filtered or unexported fields
}
func NewMarketplacenotesService ¶
func NewMarketplacenotesService(s *Service) *MarketplacenotesService
func (*MarketplacenotesService) Insert ¶
func (r *MarketplacenotesService) Insert(orderId string, addordernotesrequest *AddOrderNotesRequest) *MarketplacenotesInsertCall
Insert: Add notes to the order
func (*MarketplacenotesService) List ¶
func (r *MarketplacenotesService) List(orderId string) *MarketplacenotesListCall
List: Get all the notes associated with an order
type MarketplaceoffersGetCall ¶
type MarketplaceoffersGetCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceoffersGetCall) Context ¶
func (c *MarketplaceoffersGetCall) Context(ctx context.Context) *MarketplaceoffersGetCall
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 (*MarketplaceoffersGetCall) Do ¶
func (c *MarketplaceoffersGetCall) Do() (*MarketplaceOffer, error)
Do executes the "adexchangebuyer.marketplaceoffers.get" call. Exactly one of *MarketplaceOffer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MarketplaceOffer.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 (*MarketplaceoffersGetCall) Fields ¶
func (c *MarketplaceoffersGetCall) Fields(s ...googleapi.Field) *MarketplaceoffersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceoffersGetCall) IfNoneMatch ¶
func (c *MarketplaceoffersGetCall) IfNoneMatch(entityTag string) *MarketplaceoffersGetCall
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 (*MarketplaceoffersGetCall) QuotaUser ¶
func (c *MarketplaceoffersGetCall) QuotaUser(quotaUser string) *MarketplaceoffersGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceoffersGetCall) UserIP ¶
func (c *MarketplaceoffersGetCall) UserIP(userIP string) *MarketplaceoffersGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplaceoffersSearchCall ¶
type MarketplaceoffersSearchCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceoffersSearchCall) Context ¶
func (c *MarketplaceoffersSearchCall) Context(ctx context.Context) *MarketplaceoffersSearchCall
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 (*MarketplaceoffersSearchCall) Do ¶
func (c *MarketplaceoffersSearchCall) Do() (*GetOffersResponse, error)
Do executes the "adexchangebuyer.marketplaceoffers.search" call. Exactly one of *GetOffersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetOffersResponse.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 (*MarketplaceoffersSearchCall) Fields ¶
func (c *MarketplaceoffersSearchCall) Fields(s ...googleapi.Field) *MarketplaceoffersSearchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceoffersSearchCall) IfNoneMatch ¶
func (c *MarketplaceoffersSearchCall) IfNoneMatch(entityTag string) *MarketplaceoffersSearchCall
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 (*MarketplaceoffersSearchCall) PqlQuery ¶
func (c *MarketplaceoffersSearchCall) PqlQuery(pqlQuery string) *MarketplaceoffersSearchCall
PqlQuery sets the optional parameter "pqlQuery": The pql query used to query for offers.
func (*MarketplaceoffersSearchCall) QuotaUser ¶
func (c *MarketplaceoffersSearchCall) QuotaUser(quotaUser string) *MarketplaceoffersSearchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceoffersSearchCall) UserIP ¶
func (c *MarketplaceoffersSearchCall) UserIP(userIP string) *MarketplaceoffersSearchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplaceoffersService ¶
type MarketplaceoffersService struct {
// contains filtered or unexported fields
}
func NewMarketplaceoffersService ¶
func NewMarketplaceoffersService(s *Service) *MarketplaceoffersService
func (*MarketplaceoffersService) Get ¶
func (r *MarketplaceoffersService) Get(offerId string) *MarketplaceoffersGetCall
Get: Gets the requested negotiation.
func (*MarketplaceoffersService) Search ¶
func (r *MarketplaceoffersService) Search() *MarketplaceoffersSearchCall
Search: Gets the requested negotiation.
type MarketplaceordersGetCall ¶
type MarketplaceordersGetCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceordersGetCall) Context ¶
func (c *MarketplaceordersGetCall) Context(ctx context.Context) *MarketplaceordersGetCall
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 (*MarketplaceordersGetCall) Do ¶
func (c *MarketplaceordersGetCall) Do() (*MarketplaceOrder, error)
Do executes the "adexchangebuyer.marketplaceorders.get" call. Exactly one of *MarketplaceOrder or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MarketplaceOrder.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 (*MarketplaceordersGetCall) Fields ¶
func (c *MarketplaceordersGetCall) Fields(s ...googleapi.Field) *MarketplaceordersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceordersGetCall) IfNoneMatch ¶
func (c *MarketplaceordersGetCall) IfNoneMatch(entityTag string) *MarketplaceordersGetCall
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 (*MarketplaceordersGetCall) QuotaUser ¶
func (c *MarketplaceordersGetCall) QuotaUser(quotaUser string) *MarketplaceordersGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceordersGetCall) UserIP ¶
func (c *MarketplaceordersGetCall) UserIP(userIP string) *MarketplaceordersGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplaceordersInsertCall ¶
type MarketplaceordersInsertCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceordersInsertCall) Context ¶
func (c *MarketplaceordersInsertCall) Context(ctx context.Context) *MarketplaceordersInsertCall
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 (*MarketplaceordersInsertCall) Do ¶
func (c *MarketplaceordersInsertCall) Do() (*CreateOrdersResponse, error)
Do executes the "adexchangebuyer.marketplaceorders.insert" call. Exactly one of *CreateOrdersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CreateOrdersResponse.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 (*MarketplaceordersInsertCall) Fields ¶
func (c *MarketplaceordersInsertCall) Fields(s ...googleapi.Field) *MarketplaceordersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceordersInsertCall) QuotaUser ¶
func (c *MarketplaceordersInsertCall) QuotaUser(quotaUser string) *MarketplaceordersInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceordersInsertCall) UserIP ¶
func (c *MarketplaceordersInsertCall) UserIP(userIP string) *MarketplaceordersInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplaceordersPatchCall ¶
type MarketplaceordersPatchCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceordersPatchCall) Context ¶
func (c *MarketplaceordersPatchCall) Context(ctx context.Context) *MarketplaceordersPatchCall
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 (*MarketplaceordersPatchCall) Do ¶
func (c *MarketplaceordersPatchCall) Do() (*MarketplaceOrder, error)
Do executes the "adexchangebuyer.marketplaceorders.patch" call. Exactly one of *MarketplaceOrder or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MarketplaceOrder.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 (*MarketplaceordersPatchCall) Fields ¶
func (c *MarketplaceordersPatchCall) Fields(s ...googleapi.Field) *MarketplaceordersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceordersPatchCall) QuotaUser ¶
func (c *MarketplaceordersPatchCall) QuotaUser(quotaUser string) *MarketplaceordersPatchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceordersPatchCall) UserIP ¶
func (c *MarketplaceordersPatchCall) UserIP(userIP string) *MarketplaceordersPatchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplaceordersSearchCall ¶
type MarketplaceordersSearchCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceordersSearchCall) Context ¶
func (c *MarketplaceordersSearchCall) Context(ctx context.Context) *MarketplaceordersSearchCall
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 (*MarketplaceordersSearchCall) Do ¶
func (c *MarketplaceordersSearchCall) Do() (*GetOrdersResponse, error)
Do executes the "adexchangebuyer.marketplaceorders.search" call. Exactly one of *GetOrdersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GetOrdersResponse.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 (*MarketplaceordersSearchCall) Fields ¶
func (c *MarketplaceordersSearchCall) Fields(s ...googleapi.Field) *MarketplaceordersSearchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceordersSearchCall) IfNoneMatch ¶
func (c *MarketplaceordersSearchCall) IfNoneMatch(entityTag string) *MarketplaceordersSearchCall
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 (*MarketplaceordersSearchCall) PqlQuery ¶
func (c *MarketplaceordersSearchCall) PqlQuery(pqlQuery string) *MarketplaceordersSearchCall
PqlQuery sets the optional parameter "pqlQuery": Query string to retrieve specific orders.
func (*MarketplaceordersSearchCall) QuotaUser ¶
func (c *MarketplaceordersSearchCall) QuotaUser(quotaUser string) *MarketplaceordersSearchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceordersSearchCall) UserIP ¶
func (c *MarketplaceordersSearchCall) UserIP(userIP string) *MarketplaceordersSearchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type MarketplaceordersService ¶
type MarketplaceordersService struct {
// contains filtered or unexported fields
}
func NewMarketplaceordersService ¶
func NewMarketplaceordersService(s *Service) *MarketplaceordersService
func (*MarketplaceordersService) Get ¶
func (r *MarketplaceordersService) Get(orderId string) *MarketplaceordersGetCall
Get: Get an order given its id
func (*MarketplaceordersService) Insert ¶
func (r *MarketplaceordersService) Insert(createordersrequest *CreateOrdersRequest) *MarketplaceordersInsertCall
Insert: Create the given list of orders
func (*MarketplaceordersService) Patch ¶
func (r *MarketplaceordersService) Patch(orderId string, revisionNumber int64, updateAction string, marketplaceorder *MarketplaceOrder) *MarketplaceordersPatchCall
Patch: Update the given order. This method supports patch semantics.
func (*MarketplaceordersService) Search ¶
func (r *MarketplaceordersService) Search() *MarketplaceordersSearchCall
Search: Search for orders using pql query
func (*MarketplaceordersService) Update ¶
func (r *MarketplaceordersService) Update(orderId string, revisionNumber int64, updateAction string, marketplaceorder *MarketplaceOrder) *MarketplaceordersUpdateCall
Update: Update the given order
type MarketplaceordersUpdateCall ¶
type MarketplaceordersUpdateCall struct {
// contains filtered or unexported fields
}
func (*MarketplaceordersUpdateCall) Context ¶
func (c *MarketplaceordersUpdateCall) Context(ctx context.Context) *MarketplaceordersUpdateCall
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 (*MarketplaceordersUpdateCall) Do ¶
func (c *MarketplaceordersUpdateCall) Do() (*MarketplaceOrder, error)
Do executes the "adexchangebuyer.marketplaceorders.update" call. Exactly one of *MarketplaceOrder or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MarketplaceOrder.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 (*MarketplaceordersUpdateCall) Fields ¶
func (c *MarketplaceordersUpdateCall) Fields(s ...googleapi.Field) *MarketplaceordersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MarketplaceordersUpdateCall) QuotaUser ¶
func (c *MarketplaceordersUpdateCall) QuotaUser(quotaUser string) *MarketplaceordersUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*MarketplaceordersUpdateCall) UserIP ¶
func (c *MarketplaceordersUpdateCall) UserIP(userIP string) *MarketplaceordersUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PerformanceReport ¶
type PerformanceReport struct { // BidRate: The number of bid responses with an ad. BidRate float64 `json:"bidRate,omitempty"` // BidRequestRate: The number of bid requests sent to your bidder. BidRequestRate float64 `json:"bidRequestRate,omitempty"` // CalloutStatusRate: Rate of various prefiltering statuses per match. // Please refer to the callout-status-codes.txt file for different // statuses. CalloutStatusRate []interface{} `json:"calloutStatusRate,omitempty"` // CookieMatcherStatusRate: Average QPS for cookie matcher operations. CookieMatcherStatusRate []interface{} `json:"cookieMatcherStatusRate,omitempty"` // CreativeStatusRate: Rate of ads with a given status. Please refer to // the creative-status-codes.txt file for different statuses. CreativeStatusRate []interface{} `json:"creativeStatusRate,omitempty"` // FilteredBidRate: The number of bid responses that were filtered due // to a policy violation or other errors. FilteredBidRate float64 `json:"filteredBidRate,omitempty"` // HostedMatchStatusRate: Average QPS for hosted match operations. HostedMatchStatusRate []interface{} `json:"hostedMatchStatusRate,omitempty"` // InventoryMatchRate: The number of potential queries based on your // pretargeting settings. InventoryMatchRate float64 `json:"inventoryMatchRate,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // Latency50thPercentile: The 50th percentile round trip latency(ms) as // perceived from Google servers for the duration period covered by the // report. Latency50thPercentile float64 `json:"latency50thPercentile,omitempty"` // Latency85thPercentile: The 85th percentile round trip latency(ms) as // perceived from Google servers for the duration period covered by the // report. Latency85thPercentile float64 `json:"latency85thPercentile,omitempty"` // Latency95thPercentile: The 95th percentile round trip latency(ms) as // perceived from Google servers for the duration period covered by the // report. Latency95thPercentile float64 `json:"latency95thPercentile,omitempty"` // NoQuotaInRegion: Rate of various quota account statuses per quota // check. NoQuotaInRegion float64 `json:"noQuotaInRegion,omitempty"` // OutOfQuota: Rate of various quota account statuses per quota check. OutOfQuota float64 `json:"outOfQuota,omitempty"` // PixelMatchRequests: Average QPS for pixel match requests from // clients. PixelMatchRequests float64 `json:"pixelMatchRequests,omitempty"` // PixelMatchResponses: Average QPS for pixel match responses from // clients. PixelMatchResponses float64 `json:"pixelMatchResponses,omitempty"` // QuotaConfiguredLimit: The configured quota limits for this account. QuotaConfiguredLimit float64 `json:"quotaConfiguredLimit,omitempty"` // QuotaThrottledLimit: The throttled quota limits for this account. QuotaThrottledLimit float64 `json:"quotaThrottledLimit,omitempty"` // Region: The trading location of this data. Region string `json:"region,omitempty"` // SuccessfulRequestRate: The number of properly formed bid responses // received by our servers within the deadline. SuccessfulRequestRate float64 `json:"successfulRequestRate,omitempty"` // Timestamp: The unix timestamp of the starting time of this // performance data. Timestamp int64 `json:"timestamp,omitempty,string"` // UnsuccessfulRequestRate: The number of bid responses that were // unsuccessful due to timeouts, incorrect formatting, etc. UnsuccessfulRequestRate float64 `json:"unsuccessfulRequestRate,omitempty"` // ForceSendFields is a list of field names (e.g. "BidRate") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PerformanceReport: The configuration data for an Ad Exchange performance report list.
func (*PerformanceReport) MarshalJSON ¶
func (s *PerformanceReport) MarshalJSON() ([]byte, error)
type PerformanceReportList ¶
type PerformanceReportList struct { // Kind: Resource type. Kind string `json:"kind,omitempty"` // PerformanceReport: A list of performance reports relevant for the // account. PerformanceReport []*PerformanceReport `json:"performanceReport,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
PerformanceReportList: The configuration data for an Ad Exchange performance report list. https://sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/adx/tools/rtb_api/adxrtb.py
func (*PerformanceReportList) MarshalJSON ¶
func (s *PerformanceReportList) MarshalJSON() ([]byte, error)
type PerformanceReportListCall ¶
type PerformanceReportListCall struct {
// contains filtered or unexported fields
}
func (*PerformanceReportListCall) Context ¶
func (c *PerformanceReportListCall) Context(ctx context.Context) *PerformanceReportListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PerformanceReportListCall) Do ¶
func (c *PerformanceReportListCall) Do() (*PerformanceReportList, error)
Do executes the "adexchangebuyer.performanceReport.list" call. Exactly one of *PerformanceReportList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PerformanceReportList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PerformanceReportListCall) Fields ¶
func (c *PerformanceReportListCall) Fields(s ...googleapi.Field) *PerformanceReportListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PerformanceReportListCall) IfNoneMatch ¶
func (c *PerformanceReportListCall) IfNoneMatch(entityTag string) *PerformanceReportListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PerformanceReportListCall) MaxResults ¶
func (c *PerformanceReportListCall) MaxResults(maxResults int64) *PerformanceReportListCall
MaxResults sets the optional parameter "maxResults": Maximum number of entries returned on one result page. If not set, the default is 100.
func (*PerformanceReportListCall) PageToken ¶
func (c *PerformanceReportListCall) PageToken(pageToken string) *PerformanceReportListCall
PageToken sets the optional parameter "pageToken": A continuation token, used to page through performance reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
func (*PerformanceReportListCall) QuotaUser ¶
func (c *PerformanceReportListCall) QuotaUser(quotaUser string) *PerformanceReportListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PerformanceReportListCall) UserIP ¶
func (c *PerformanceReportListCall) UserIP(userIP string) *PerformanceReportListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PerformanceReportService ¶
type PerformanceReportService struct {
// contains filtered or unexported fields
}
func NewPerformanceReportService ¶
func NewPerformanceReportService(s *Service) *PerformanceReportService
func (*PerformanceReportService) List ¶
func (r *PerformanceReportService) List(accountId int64, endDateTime string, startDateTime string) *PerformanceReportListCall
List: Retrieves the authenticated user's list of performance metrics.
type PretargetingConfig ¶
type PretargetingConfig struct { // BillingId: The id for billing purposes, provided for reference. Leave // this field blank for insert requests; the id will be generated // automatically. BillingId int64 `json:"billingId,omitempty,string"` // ConfigId: The config id; generated automatically. Leave this field // blank for insert requests. ConfigId int64 `json:"configId,omitempty,string"` // ConfigName: The name of the config. Must be unique. Required for all // requests. ConfigName string `json:"configName,omitempty"` // CreativeType: List must contain exactly one of // PRETARGETING_CREATIVE_TYPE_HTML or PRETARGETING_CREATIVE_TYPE_VIDEO. CreativeType []string `json:"creativeType,omitempty"` // Dimensions: Requests which allow one of these (width, height) pairs // will match. All pairs must be supported ad dimensions. Dimensions []*PretargetingConfigDimensions `json:"dimensions,omitempty"` // ExcludedContentLabels: Requests with any of these content labels will // not match. Values are from content-labels.txt in the downloadable // files section. ExcludedContentLabels googleapi.Int64s `json:"excludedContentLabels,omitempty"` // ExcludedGeoCriteriaIds: Requests containing any of these geo criteria // ids will not match. ExcludedGeoCriteriaIds googleapi.Int64s `json:"excludedGeoCriteriaIds,omitempty"` // ExcludedPlacements: Requests containing any of these placements will // not match. ExcludedPlacements []*PretargetingConfigExcludedPlacements `json:"excludedPlacements,omitempty"` // ExcludedUserLists: Requests containing any of these users list ids // will not match. ExcludedUserLists googleapi.Int64s `json:"excludedUserLists,omitempty"` // ExcludedVerticals: Requests containing any of these vertical ids will // not match. Values are from the publisher-verticals.txt file in the // downloadable files section. ExcludedVerticals googleapi.Int64s `json:"excludedVerticals,omitempty"` // GeoCriteriaIds: Requests containing any of these geo criteria ids // will match. GeoCriteriaIds googleapi.Int64s `json:"geoCriteriaIds,omitempty"` // IsActive: Whether this config is active. Required for all requests. IsActive bool `json:"isActive,omitempty"` // Kind: The kind of the resource, i.e. // "adexchangebuyer#pretargetingConfig". Kind string `json:"kind,omitempty"` // Languages: Request containing any of these language codes will match. Languages []string `json:"languages,omitempty"` // MobileCarriers: Requests containing any of these mobile carrier ids // will match. Values are from mobile-carriers.csv in the downloadable // files section. MobileCarriers googleapi.Int64s `json:"mobileCarriers,omitempty"` // MobileDevices: Requests containing any of these mobile device ids // will match. Values are from mobile-devices.csv in the downloadable // files section. MobileDevices googleapi.Int64s `json:"mobileDevices,omitempty"` // MobileOperatingSystemVersions: Requests containing any of these // mobile operating system version ids will match. Values are from // mobile-os.csv in the downloadable files section. MobileOperatingSystemVersions googleapi.Int64s `json:"mobileOperatingSystemVersions,omitempty"` // Placements: Requests containing any of these placements will match. Placements []*PretargetingConfigPlacements `json:"placements,omitempty"` // Platforms: Requests matching any of these platforms will match. // Possible values are PRETARGETING_PLATFORM_MOBILE, // PRETARGETING_PLATFORM_DESKTOP, and PRETARGETING_PLATFORM_TABLET. Platforms []string `json:"platforms,omitempty"` // SupportedCreativeAttributes: Creative attributes should be declared // here if all creatives corresponding to this pretargeting // configuration have that creative attribute. Values are from // pretargetable-creative-attributes.txt in the downloadable files // section. SupportedCreativeAttributes googleapi.Int64s `json:"supportedCreativeAttributes,omitempty"` // UserLists: Requests containing any of these user list ids will match. UserLists googleapi.Int64s `json:"userLists,omitempty"` // VendorTypes: Requests that allow any of these vendor ids will match. // Values are from vendors.txt in the downloadable files section. VendorTypes googleapi.Int64s `json:"vendorTypes,omitempty"` // Verticals: Requests containing any of these vertical ids will match. Verticals googleapi.Int64s `json:"verticals,omitempty"` // VideoPlayerSizes: Video requests satisfying any of these player size // constraints will match. VideoPlayerSizes []*PretargetingConfigVideoPlayerSizes `json:"videoPlayerSizes,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "BillingId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*PretargetingConfig) MarshalJSON ¶
func (s *PretargetingConfig) MarshalJSON() ([]byte, error)
type PretargetingConfigDeleteCall ¶
type PretargetingConfigDeleteCall struct {
// contains filtered or unexported fields
}
func (*PretargetingConfigDeleteCall) Context ¶
func (c *PretargetingConfigDeleteCall) Context(ctx context.Context) *PretargetingConfigDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PretargetingConfigDeleteCall) Do ¶
func (c *PretargetingConfigDeleteCall) Do() error
Do executes the "adexchangebuyer.pretargetingConfig.delete" call.
func (*PretargetingConfigDeleteCall) Fields ¶
func (c *PretargetingConfigDeleteCall) Fields(s ...googleapi.Field) *PretargetingConfigDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PretargetingConfigDeleteCall) QuotaUser ¶
func (c *PretargetingConfigDeleteCall) QuotaUser(quotaUser string) *PretargetingConfigDeleteCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PretargetingConfigDeleteCall) UserIP ¶
func (c *PretargetingConfigDeleteCall) UserIP(userIP string) *PretargetingConfigDeleteCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PretargetingConfigDimensions ¶
type PretargetingConfigDimensions struct { // Height: Height in pixels. Height int64 `json:"height,omitempty,string"` // Width: Width in pixels. Width int64 `json:"width,omitempty,string"` // ForceSendFields is a list of field names (e.g. "Height") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*PretargetingConfigDimensions) MarshalJSON ¶
func (s *PretargetingConfigDimensions) MarshalJSON() ([]byte, error)
type PretargetingConfigExcludedPlacements ¶
type PretargetingConfigExcludedPlacements struct { // Token: The value of the placement. Interpretation depends on the // placement type, e.g. URL for a site placement, channel name for a // channel placement, app id for a mobile app placement. Token string `json:"token,omitempty"` // Type: The type of the placement. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Token") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*PretargetingConfigExcludedPlacements) MarshalJSON ¶
func (s *PretargetingConfigExcludedPlacements) MarshalJSON() ([]byte, error)
type PretargetingConfigGetCall ¶
type PretargetingConfigGetCall struct {
// contains filtered or unexported fields
}
func (*PretargetingConfigGetCall) Context ¶
func (c *PretargetingConfigGetCall) Context(ctx context.Context) *PretargetingConfigGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PretargetingConfigGetCall) Do ¶
func (c *PretargetingConfigGetCall) Do() (*PretargetingConfig, error)
Do executes the "adexchangebuyer.pretargetingConfig.get" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PretargetingConfigGetCall) Fields ¶
func (c *PretargetingConfigGetCall) Fields(s ...googleapi.Field) *PretargetingConfigGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PretargetingConfigGetCall) IfNoneMatch ¶
func (c *PretargetingConfigGetCall) IfNoneMatch(entityTag string) *PretargetingConfigGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PretargetingConfigGetCall) QuotaUser ¶
func (c *PretargetingConfigGetCall) QuotaUser(quotaUser string) *PretargetingConfigGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PretargetingConfigGetCall) UserIP ¶
func (c *PretargetingConfigGetCall) UserIP(userIP string) *PretargetingConfigGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PretargetingConfigInsertCall ¶
type PretargetingConfigInsertCall struct {
// contains filtered or unexported fields
}
func (*PretargetingConfigInsertCall) Context ¶
func (c *PretargetingConfigInsertCall) Context(ctx context.Context) *PretargetingConfigInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PretargetingConfigInsertCall) Do ¶
func (c *PretargetingConfigInsertCall) Do() (*PretargetingConfig, error)
Do executes the "adexchangebuyer.pretargetingConfig.insert" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PretargetingConfigInsertCall) Fields ¶
func (c *PretargetingConfigInsertCall) Fields(s ...googleapi.Field) *PretargetingConfigInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PretargetingConfigInsertCall) QuotaUser ¶
func (c *PretargetingConfigInsertCall) QuotaUser(quotaUser string) *PretargetingConfigInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PretargetingConfigInsertCall) UserIP ¶
func (c *PretargetingConfigInsertCall) UserIP(userIP string) *PretargetingConfigInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PretargetingConfigList ¶
type PretargetingConfigList struct { // Items: A list of pretargeting configs Items []*PretargetingConfig `json:"items,omitempty"` // Kind: Resource type. Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Items") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*PretargetingConfigList) MarshalJSON ¶
func (s *PretargetingConfigList) MarshalJSON() ([]byte, error)
type PretargetingConfigListCall ¶
type PretargetingConfigListCall struct {
// contains filtered or unexported fields
}
func (*PretargetingConfigListCall) Context ¶
func (c *PretargetingConfigListCall) Context(ctx context.Context) *PretargetingConfigListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PretargetingConfigListCall) Do ¶
func (c *PretargetingConfigListCall) Do() (*PretargetingConfigList, error)
Do executes the "adexchangebuyer.pretargetingConfig.list" call. Exactly one of *PretargetingConfigList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfigList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PretargetingConfigListCall) Fields ¶
func (c *PretargetingConfigListCall) Fields(s ...googleapi.Field) *PretargetingConfigListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PretargetingConfigListCall) IfNoneMatch ¶
func (c *PretargetingConfigListCall) IfNoneMatch(entityTag string) *PretargetingConfigListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PretargetingConfigListCall) QuotaUser ¶
func (c *PretargetingConfigListCall) QuotaUser(quotaUser string) *PretargetingConfigListCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PretargetingConfigListCall) UserIP ¶
func (c *PretargetingConfigListCall) UserIP(userIP string) *PretargetingConfigListCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PretargetingConfigPatchCall ¶
type PretargetingConfigPatchCall struct {
// contains filtered or unexported fields
}
func (*PretargetingConfigPatchCall) Context ¶
func (c *PretargetingConfigPatchCall) Context(ctx context.Context) *PretargetingConfigPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PretargetingConfigPatchCall) Do ¶
func (c *PretargetingConfigPatchCall) Do() (*PretargetingConfig, error)
Do executes the "adexchangebuyer.pretargetingConfig.patch" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PretargetingConfigPatchCall) Fields ¶
func (c *PretargetingConfigPatchCall) Fields(s ...googleapi.Field) *PretargetingConfigPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PretargetingConfigPatchCall) QuotaUser ¶
func (c *PretargetingConfigPatchCall) QuotaUser(quotaUser string) *PretargetingConfigPatchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PretargetingConfigPatchCall) UserIP ¶
func (c *PretargetingConfigPatchCall) UserIP(userIP string) *PretargetingConfigPatchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PretargetingConfigPlacements ¶
type PretargetingConfigPlacements struct { // Token: The value of the placement. Interpretation depends on the // placement type, e.g. URL for a site placement, channel name for a // channel placement, app id for a mobile app placement. Token string `json:"token,omitempty"` // Type: The type of the placement. Type string `json:"type,omitempty"` // ForceSendFields is a list of field names (e.g. "Token") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
func (*PretargetingConfigPlacements) MarshalJSON ¶
func (s *PretargetingConfigPlacements) MarshalJSON() ([]byte, error)
type PretargetingConfigService ¶
type PretargetingConfigService struct {
// contains filtered or unexported fields
}
func NewPretargetingConfigService ¶
func NewPretargetingConfigService(s *Service) *PretargetingConfigService
func (*PretargetingConfigService) Delete ¶
func (r *PretargetingConfigService) Delete(accountId int64, configId int64) *PretargetingConfigDeleteCall
Delete: Deletes an existing pretargeting config.
func (*PretargetingConfigService) Get ¶
func (r *PretargetingConfigService) Get(accountId int64, configId int64) *PretargetingConfigGetCall
Get: Gets a specific pretargeting configuration
func (*PretargetingConfigService) Insert ¶
func (r *PretargetingConfigService) Insert(accountId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigInsertCall
Insert: Inserts a new pretargeting configuration.
func (*PretargetingConfigService) List ¶
func (r *PretargetingConfigService) List(accountId int64) *PretargetingConfigListCall
List: Retrieves a list of the authenticated user's pretargeting configurations.
func (*PretargetingConfigService) Patch ¶
func (r *PretargetingConfigService) Patch(accountId int64, configId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigPatchCall
Patch: Updates an existing pretargeting config. This method supports patch semantics.
func (*PretargetingConfigService) Update ¶
func (r *PretargetingConfigService) Update(accountId int64, configId int64, pretargetingconfig *PretargetingConfig) *PretargetingConfigUpdateCall
Update: Updates an existing pretargeting config.
type PretargetingConfigUpdateCall ¶
type PretargetingConfigUpdateCall struct {
// contains filtered or unexported fields
}
func (*PretargetingConfigUpdateCall) Context ¶
func (c *PretargetingConfigUpdateCall) Context(ctx context.Context) *PretargetingConfigUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PretargetingConfigUpdateCall) Do ¶
func (c *PretargetingConfigUpdateCall) Do() (*PretargetingConfig, error)
Do executes the "adexchangebuyer.pretargetingConfig.update" call. Exactly one of *PretargetingConfig or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PretargetingConfig.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*PretargetingConfigUpdateCall) Fields ¶
func (c *PretargetingConfigUpdateCall) Fields(s ...googleapi.Field) *PretargetingConfigUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PretargetingConfigUpdateCall) QuotaUser ¶
func (c *PretargetingConfigUpdateCall) QuotaUser(quotaUser string) *PretargetingConfigUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*PretargetingConfigUpdateCall) UserIP ¶
func (c *PretargetingConfigUpdateCall) UserIP(userIP string) *PretargetingConfigUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type PretargetingConfigVideoPlayerSizes ¶
type PretargetingConfigVideoPlayerSizes struct { // AspectRatio: The type of aspect ratio. Leave this field blank to // match all aspect ratios. AspectRatio string `json:"aspectRatio,omitempty"` // MinHeight: The minimum player height in pixels. Leave this field // blank to match any player height. MinHeight int64 `json:"minHeight,omitempty,string"` // MinWidth: The minimum player width in pixels. Leave this field blank // to match any player width. MinWidth int64 `json:"minWidth,omitempty,string"` // ForceSendFields is a list of field names (e.g. "AspectRatio") 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:"-"` }
func (*PretargetingConfigVideoPlayerSizes) MarshalJSON ¶
func (s *PretargetingConfigVideoPlayerSizes) MarshalJSON() ([]byte, error)
type Price ¶
type Price struct { // AmountMicros: The price value in micros. AmountMicros float64 `json:"amountMicros,omitempty"` // CurrencyCode: The currency code for the price. CurrencyCode string `json:"currencyCode,omitempty"` // PricingType: The pricing type for the deal/offer. PricingType string `json:"pricingType,omitempty"` // ForceSendFields is a list of field names (e.g. "AmountMicros") 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:"-"` }
func (*Price) MarshalJSON ¶
type PricePerBuyer ¶
type PricePerBuyer struct { // Buyer: The buyer who will pay this price. If unset, all buyers can // pay this price (if the advertisers match, and there's no more // specific rule matching the buyer). Buyer *Buyer `json:"buyer,omitempty"` // Price: The specified price Price *Price `json:"price,omitempty"` // ForceSendFields is a list of field names (e.g. "Buyer") 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:"-"` }
PricePerBuyer: Used to specify pricing rules for buyers/advertisers. Each PricePerBuyer in an offer can become [0,1] deals. To check if there is a PricePerBuyer for a particular buyer or buyer/advertiser pair, we look for the most specific matching rule - we first look for a rule matching the buyer and advertiser, next a rule with the buyer but an empty advertiser list, and otherwise look for a matching rule where no buyer is set.
func (*PricePerBuyer) MarshalJSON ¶
func (s *PricePerBuyer) MarshalJSON() ([]byte, error)
type PrivateData ¶
type PrivateData struct { ReferenceId string `json:"referenceId,omitempty"` ReferencePayload string `json:"referencePayload,omitempty"` // ForceSendFields is a list of field names (e.g. "ReferenceId") 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:"-"` }
func (*PrivateData) MarshalJSON ¶
func (s *PrivateData) MarshalJSON() ([]byte, error)
type Seller ¶
type Seller struct { // AccountId: The unique id for the seller. The seller fills in this // field. The seller account id is then available to buyer in the offer. AccountId string `json:"accountId,omitempty"` // SubAccountId: Optional sub-account id for the seller. SubAccountId string `json:"subAccountId,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:"-"` }
func (*Seller) MarshalJSON ¶
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Accounts *AccountsService BillingInfo *BillingInfoService Budget *BudgetService Creatives *CreativesService Marketplacedeals *MarketplacedealsService Marketplacenotes *MarketplacenotesService Marketplaceoffers *MarketplaceoffersService Marketplaceorders *MarketplaceordersService PerformanceReport *PerformanceReportService PretargetingConfig *PretargetingConfigService // contains filtered or unexported fields }
type SharedTargeting ¶
type SharedTargeting struct { TargetingValue `json:"exclusions,omitempty"` Inclusions []*TargetingValue `json:"inclusions,omitempty"` Key string `json:"key,omitempty"` // 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:"-"` }Exclusions []*
func (*SharedTargeting) MarshalJSON ¶
func (s *SharedTargeting) MarshalJSON() ([]byte, error)
type TargetingValue ¶
type TargetingValue struct { // CreativeSizeValue: The creative size value to exclude/include. CreativeSizeValue *TargetingValueCreativeSize `json:"creativeSizeValue,omitempty"` // DayPartTargetingValue: The daypart targeting to include / exclude. // Filled in when the key is GOOG_DAYPART_TARGETING. DayPartTargetingValue *TargetingValueDayPartTargeting `json:"dayPartTargetingValue,omitempty"` // LongValue: The long value to exclude/include. LongValue int64 `json:"longValue,omitempty,string"` // StringValue: The string value to exclude/include. StringValue string `json:"stringValue,omitempty"` // ForceSendFields is a list of field names (e.g. "CreativeSizeValue") // 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:"-"` }
func (*TargetingValue) MarshalJSON ¶
func (s *TargetingValue) MarshalJSON() ([]byte, error)
type TargetingValueCreativeSize ¶
type TargetingValueCreativeSize struct { // CompanionSizes: For video size type, the list of companion sizes. CompanionSizes []*TargetingValueSize `json:"companionSizes,omitempty"` // CreativeSizeType: The Creative size type. CreativeSizeType string `json:"creativeSizeType,omitempty"` // Size: For regular or video creative size type, specifies the size of // the creative. Size *TargetingValueSize `json:"size,omitempty"` // ForceSendFields is a list of field names (e.g. "CompanionSizes") 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:"-"` }
func (*TargetingValueCreativeSize) MarshalJSON ¶
func (s *TargetingValueCreativeSize) MarshalJSON() ([]byte, error)
type TargetingValueDayPartTargeting ¶
type TargetingValueDayPartTargeting struct { DayParts []*TargetingValueDayPartTargetingDayPart `json:"dayParts,omitempty"` TimeZoneType string `json:"timeZoneType,omitempty"` // ForceSendFields is a list of field names (e.g. "DayParts") 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:"-"` }
func (*TargetingValueDayPartTargeting) MarshalJSON ¶
func (s *TargetingValueDayPartTargeting) MarshalJSON() ([]byte, error)
type TargetingValueDayPartTargetingDayPart ¶
type TargetingValueDayPartTargetingDayPart struct { DayOfWeek string `json:"dayOfWeek,omitempty"` EndHour int64 `json:"endHour,omitempty"` EndMinute int64 `json:"endMinute,omitempty"` StartHour int64 `json:"startHour,omitempty"` StartMinute int64 `json:"startMinute,omitempty"` // ForceSendFields is a list of field names (e.g. "DayOfWeek") 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:"-"` }
func (*TargetingValueDayPartTargetingDayPart) MarshalJSON ¶
func (s *TargetingValueDayPartTargetingDayPart) MarshalJSON() ([]byte, error)
type TargetingValueSize ¶
type TargetingValueSize struct { // Height: The height of the creative. Height int64 `json:"height,omitempty"` // Width: The width of the creative. 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:"-"` }
func (*TargetingValueSize) MarshalJSON ¶
func (s *TargetingValueSize) MarshalJSON() ([]byte, error)