blob: ca7848cc425dee199a0f70ce101774b6171a8ad9 [file] [log] [blame]
// Copyright 2019 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.
//
// See https://developers.google.com/doubleclick-advertisers/
//
// Usage example:
//
// import "google.golang.org/api/dfareporting/v3.2"
// ...
// dfareportingService, err := dfareporting.New(oauthHttpClient)
package dfareporting // import "google.golang.org/api/dfareporting/v3.2"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "dfareporting:v3.2"
const apiName = "dfareporting"
const apiVersion = "v3.2"
const basePath = "https://www.googleapis.com/dfareporting/v3.2/"
// OAuth2 scopes used by this API.
const (
// Manage DoubleClick Digital Marketing conversions
DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"
// View and manage DoubleClick for Advertisers reports
DfareportingScope = "https://www.googleapis.com/auth/dfareporting"
// View and manage your DoubleClick Campaign Manager's (DCM) display ad
// campaigns
DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.AccountActiveAdSummaries = NewAccountActiveAdSummariesService(s)
s.AccountPermissionGroups = NewAccountPermissionGroupsService(s)
s.AccountPermissions = NewAccountPermissionsService(s)
s.AccountUserProfiles = NewAccountUserProfilesService(s)
s.Accounts = NewAccountsService(s)
s.Ads = NewAdsService(s)
s.AdvertiserGroups = NewAdvertiserGroupsService(s)
s.AdvertiserLandingPages = NewAdvertiserLandingPagesService(s)
s.Advertisers = NewAdvertisersService(s)
s.Browsers = NewBrowsersService(s)
s.CampaignCreativeAssociations = NewCampaignCreativeAssociationsService(s)
s.Campaigns = NewCampaignsService(s)
s.ChangeLogs = NewChangeLogsService(s)
s.Cities = NewCitiesService(s)
s.ConnectionTypes = NewConnectionTypesService(s)
s.ContentCategories = NewContentCategoriesService(s)
s.Conversions = NewConversionsService(s)
s.Countries = NewCountriesService(s)
s.CreativeAssets = NewCreativeAssetsService(s)
s.CreativeFieldValues = NewCreativeFieldValuesService(s)
s.CreativeFields = NewCreativeFieldsService(s)
s.CreativeGroups = NewCreativeGroupsService(s)
s.Creatives = NewCreativesService(s)
s.DimensionValues = NewDimensionValuesService(s)
s.DirectorySiteContacts = NewDirectorySiteContactsService(s)
s.DirectorySites = NewDirectorySitesService(s)
s.DynamicTargetingKeys = NewDynamicTargetingKeysService(s)
s.EventTags = NewEventTagsService(s)
s.Files = NewFilesService(s)
s.FloodlightActivities = NewFloodlightActivitiesService(s)
s.FloodlightActivityGroups = NewFloodlightActivityGroupsService(s)
s.FloodlightConfigurations = NewFloodlightConfigurationsService(s)
s.InventoryItems = NewInventoryItemsService(s)
s.Languages = NewLanguagesService(s)
s.Metros = NewMetrosService(s)
s.MobileApps = NewMobileAppsService(s)
s.MobileCarriers = NewMobileCarriersService(s)
s.OperatingSystemVersions = NewOperatingSystemVersionsService(s)
s.OperatingSystems = NewOperatingSystemsService(s)
s.OrderDocuments = NewOrderDocumentsService(s)
s.Orders = NewOrdersService(s)
s.PlacementGroups = NewPlacementGroupsService(s)
s.PlacementStrategies = NewPlacementStrategiesService(s)
s.Placements = NewPlacementsService(s)
s.PlatformTypes = NewPlatformTypesService(s)
s.PostalCodes = NewPostalCodesService(s)
s.Projects = NewProjectsService(s)
s.Regions = NewRegionsService(s)
s.RemarketingListShares = NewRemarketingListSharesService(s)
s.RemarketingLists = NewRemarketingListsService(s)
s.Reports = NewReportsService(s)
s.Sites = NewSitesService(s)
s.Sizes = NewSizesService(s)
s.Subaccounts = NewSubaccountsService(s)
s.TargetableRemarketingLists = NewTargetableRemarketingListsService(s)
s.TargetingTemplates = NewTargetingTemplatesService(s)
s.UserProfiles = NewUserProfilesService(s)
s.UserRolePermissionGroups = NewUserRolePermissionGroupsService(s)
s.UserRolePermissions = NewUserRolePermissionsService(s)
s.UserRoles = NewUserRolesService(s)
s.VideoFormats = NewVideoFormatsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
AccountActiveAdSummaries *AccountActiveAdSummariesService
AccountPermissionGroups *AccountPermissionGroupsService
AccountPermissions *AccountPermissionsService
AccountUserProfiles *AccountUserProfilesService
Accounts *AccountsService
Ads *AdsService
AdvertiserGroups *AdvertiserGroupsService
AdvertiserLandingPages *AdvertiserLandingPagesService
Advertisers *AdvertisersService
Browsers *BrowsersService
CampaignCreativeAssociations *CampaignCreativeAssociationsService
Campaigns *CampaignsService
ChangeLogs *ChangeLogsService
Cities *CitiesService
ConnectionTypes *ConnectionTypesService
ContentCategories *ContentCategoriesService
Conversions *ConversionsService
Countries *CountriesService
CreativeAssets *CreativeAssetsService
CreativeFieldValues *CreativeFieldValuesService
CreativeFields *CreativeFieldsService
CreativeGroups *CreativeGroupsService
Creatives *CreativesService
DimensionValues *DimensionValuesService
DirectorySiteContacts *DirectorySiteContactsService
DirectorySites *DirectorySitesService
DynamicTargetingKeys *DynamicTargetingKeysService
EventTags *EventTagsService
Files *FilesService
FloodlightActivities *FloodlightActivitiesService
FloodlightActivityGroups *FloodlightActivityGroupsService
FloodlightConfigurations *FloodlightConfigurationsService
InventoryItems *InventoryItemsService
Languages *LanguagesService
Metros *MetrosService
MobileApps *MobileAppsService
MobileCarriers *MobileCarriersService
OperatingSystemVersions *OperatingSystemVersionsService
OperatingSystems *OperatingSystemsService
OrderDocuments *OrderDocumentsService
Orders *OrdersService
PlacementGroups *PlacementGroupsService
PlacementStrategies *PlacementStrategiesService
Placements *PlacementsService
PlatformTypes *PlatformTypesService
PostalCodes *PostalCodesService
Projects *ProjectsService
Regions *RegionsService
RemarketingListShares *RemarketingListSharesService
RemarketingLists *RemarketingListsService
Reports *ReportsService
Sites *SitesService
Sizes *SizesService
Subaccounts *SubaccountsService
TargetableRemarketingLists *TargetableRemarketingListsService
TargetingTemplates *TargetingTemplatesService
UserProfiles *UserProfilesService
UserRolePermissionGroups *UserRolePermissionGroupsService
UserRolePermissions *UserRolePermissionsService
UserRoles *UserRolesService
VideoFormats *VideoFormatsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService {
rs := &AccountActiveAdSummariesService{s: s}
return rs
}
type AccountActiveAdSummariesService struct {
s *Service
}
func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService {
rs := &AccountPermissionGroupsService{s: s}
return rs
}
type AccountPermissionGroupsService struct {
s *Service
}
func NewAccountPermissionsService(s *Service) *AccountPermissionsService {
rs := &AccountPermissionsService{s: s}
return rs
}
type AccountPermissionsService struct {
s *Service
}
func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService {
rs := &AccountUserProfilesService{s: s}
return rs
}
type AccountUserProfilesService struct {
s *Service
}
func NewAccountsService(s *Service) *AccountsService {
rs := &AccountsService{s: s}
return rs
}
type AccountsService struct {
s *Service
}
func NewAdsService(s *Service) *AdsService {
rs := &AdsService{s: s}
return rs
}
type AdsService struct {
s *Service
}
func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService {
rs := &AdvertiserGroupsService{s: s}
return rs
}
type AdvertiserGroupsService struct {
s *Service
}
func NewAdvertiserLandingPagesService(s *Service) *AdvertiserLandingPagesService {
rs := &AdvertiserLandingPagesService{s: s}
return rs
}
type AdvertiserLandingPagesService struct {
s *Service
}
func NewAdvertisersService(s *Service) *AdvertisersService {
rs := &AdvertisersService{s: s}
return rs
}
type AdvertisersService struct {
s *Service
}
func NewBrowsersService(s *Service) *BrowsersService {
rs := &BrowsersService{s: s}
return rs
}
type BrowsersService struct {
s *Service
}
func NewCampaignCreativeAssociationsService(s *Service) *CampaignCreativeAssociationsService {
rs := &CampaignCreativeAssociationsService{s: s}
return rs
}
type CampaignCreativeAssociationsService struct {
s *Service
}
func NewCampaignsService(s *Service) *CampaignsService {
rs := &CampaignsService{s: s}
return rs
}
type CampaignsService struct {
s *Service
}
func NewChangeLogsService(s *Service) *ChangeLogsService {
rs := &ChangeLogsService{s: s}
return rs
}
type ChangeLogsService struct {
s *Service
}
func NewCitiesService(s *Service) *CitiesService {
rs := &CitiesService{s: s}
return rs
}
type CitiesService struct {
s *Service
}
func NewConnectionTypesService(s *Service) *ConnectionTypesService {
rs := &ConnectionTypesService{s: s}
return rs
}
type ConnectionTypesService struct {
s *Service
}
func NewContentCategoriesService(s *Service) *ContentCategoriesService {
rs := &ContentCategoriesService{s: s}
return rs
}
type ContentCategoriesService struct {
s *Service
}
func NewConversionsService(s *Service) *ConversionsService {
rs := &ConversionsService{s: s}
return rs
}
type ConversionsService struct {
s *Service
}
func NewCountriesService(s *Service) *CountriesService {
rs := &CountriesService{s: s}
return rs
}
type CountriesService struct {
s *Service
}
func NewCreativeAssetsService(s *Service) *CreativeAssetsService {
rs := &CreativeAssetsService{s: s}
return rs
}
type CreativeAssetsService struct {
s *Service
}
func NewCreativeFieldValuesService(s *Service) *CreativeFieldValuesService {
rs := &CreativeFieldValuesService{s: s}
return rs
}
type CreativeFieldValuesService struct {
s *Service
}
func NewCreativeFieldsService(s *Service) *CreativeFieldsService {
rs := &CreativeFieldsService{s: s}
return rs
}
type CreativeFieldsService struct {
s *Service
}
func NewCreativeGroupsService(s *Service) *CreativeGroupsService {
rs := &CreativeGroupsService{s: s}
return rs
}
type CreativeGroupsService struct {
s *Service
}
func NewCreativesService(s *Service) *CreativesService {
rs := &CreativesService{s: s}
return rs
}
type CreativesService struct {
s *Service
}
func NewDimensionValuesService(s *Service) *DimensionValuesService {
rs := &DimensionValuesService{s: s}
return rs
}
type DimensionValuesService struct {
s *Service
}
func NewDirectorySiteContactsService(s *Service) *DirectorySiteContactsService {
rs := &DirectorySiteContactsService{s: s}
return rs
}
type DirectorySiteContactsService struct {
s *Service
}
func NewDirectorySitesService(s *Service) *DirectorySitesService {
rs := &DirectorySitesService{s: s}
return rs
}
type DirectorySitesService struct {
s *Service
}
func NewDynamicTargetingKeysService(s *Service) *DynamicTargetingKeysService {
rs := &DynamicTargetingKeysService{s: s}
return rs
}
type DynamicTargetingKeysService struct {
s *Service
}
func NewEventTagsService(s *Service) *EventTagsService {
rs := &EventTagsService{s: s}
return rs
}
type EventTagsService struct {
s *Service
}
func NewFilesService(s *Service) *FilesService {
rs := &FilesService{s: s}
return rs
}
type FilesService struct {
s *Service
}
func NewFloodlightActivitiesService(s *Service) *FloodlightActivitiesService {
rs := &FloodlightActivitiesService{s: s}
return rs
}
type FloodlightActivitiesService struct {
s *Service
}
func NewFloodlightActivityGroupsService(s *Service) *FloodlightActivityGroupsService {
rs := &FloodlightActivityGroupsService{s: s}
return rs
}
type FloodlightActivityGroupsService struct {
s *Service
}
func NewFloodlightConfigurationsService(s *Service) *FloodlightConfigurationsService {
rs := &FloodlightConfigurationsService{s: s}
return rs
}
type FloodlightConfigurationsService struct {
s *Service
}
func NewInventoryItemsService(s *Service) *InventoryItemsService {
rs := &InventoryItemsService{s: s}
return rs
}
type InventoryItemsService struct {
s *Service
}
func NewLanguagesService(s *Service) *LanguagesService {
rs := &LanguagesService{s: s}
return rs
}
type LanguagesService struct {
s *Service
}
func NewMetrosService(s *Service) *MetrosService {
rs := &MetrosService{s: s}
return rs
}
type MetrosService struct {
s *Service
}
func NewMobileAppsService(s *Service) *MobileAppsService {
rs := &MobileAppsService{s: s}
return rs
}
type MobileAppsService struct {
s *Service
}
func NewMobileCarriersService(s *Service) *MobileCarriersService {
rs := &MobileCarriersService{s: s}
return rs
}
type MobileCarriersService struct {
s *Service
}
func NewOperatingSystemVersionsService(s *Service) *OperatingSystemVersionsService {
rs := &OperatingSystemVersionsService{s: s}
return rs
}
type OperatingSystemVersionsService struct {
s *Service
}
func NewOperatingSystemsService(s *Service) *OperatingSystemsService {
rs := &OperatingSystemsService{s: s}
return rs
}
type OperatingSystemsService struct {
s *Service
}
func NewOrderDocumentsService(s *Service) *OrderDocumentsService {
rs := &OrderDocumentsService{s: s}
return rs
}
type OrderDocumentsService struct {
s *Service
}
func NewOrdersService(s *Service) *OrdersService {
rs := &OrdersService{s: s}
return rs
}
type OrdersService struct {
s *Service
}
func NewPlacementGroupsService(s *Service) *PlacementGroupsService {
rs := &PlacementGroupsService{s: s}
return rs
}
type PlacementGroupsService struct {
s *Service
}
func NewPlacementStrategiesService(s *Service) *PlacementStrategiesService {
rs := &PlacementStrategiesService{s: s}
return rs
}
type PlacementStrategiesService struct {
s *Service
}
func NewPlacementsService(s *Service) *PlacementsService {
rs := &PlacementsService{s: s}
return rs
}
type PlacementsService struct {
s *Service
}
func NewPlatformTypesService(s *Service) *PlatformTypesService {
rs := &PlatformTypesService{s: s}
return rs
}
type PlatformTypesService struct {
s *Service
}
func NewPostalCodesService(s *Service) *PostalCodesService {
rs := &PostalCodesService{s: s}
return rs
}
type PostalCodesService struct {
s *Service
}
func NewProjectsService(s *Service) *ProjectsService {
rs := &ProjectsService{s: s}
return rs
}
type ProjectsService struct {
s *Service
}
func NewRegionsService(s *Service) *RegionsService {
rs := &RegionsService{s: s}
return rs
}
type RegionsService struct {
s *Service
}
func NewRemarketingListSharesService(s *Service) *RemarketingListSharesService {
rs := &RemarketingListSharesService{s: s}
return rs
}
type RemarketingListSharesService struct {
s *Service
}
func NewRemarketingListsService(s *Service) *RemarketingListsService {
rs := &RemarketingListsService{s: s}
return rs
}
type RemarketingListsService struct {
s *Service
}
func NewReportsService(s *Service) *ReportsService {
rs := &ReportsService{s: s}
rs.CompatibleFields = NewReportsCompatibleFieldsService(s)
rs.Files = NewReportsFilesService(s)
return rs
}
type ReportsService struct {
s *Service
CompatibleFields *ReportsCompatibleFieldsService
Files *ReportsFilesService
}
func NewReportsCompatibleFieldsService(s *Service) *ReportsCompatibleFieldsService {
rs := &ReportsCompatibleFieldsService{s: s}
return rs
}
type ReportsCompatibleFieldsService struct {
s *Service
}
func NewReportsFilesService(s *Service) *ReportsFilesService {
rs := &ReportsFilesService{s: s}
return rs
}
type ReportsFilesService struct {
s *Service
}
func NewSitesService(s *Service) *SitesService {
rs := &SitesService{s: s}
return rs
}
type SitesService struct {
s *Service
}
func NewSizesService(s *Service) *SizesService {
rs := &SizesService{s: s}
return rs
}
type SizesService struct {
s *Service
}
func NewSubaccountsService(s *Service) *SubaccountsService {
rs := &SubaccountsService{s: s}
return rs
}
type SubaccountsService struct {
s *Service
}
func NewTargetableRemarketingListsService(s *Service) *TargetableRemarketingListsService {
rs := &TargetableRemarketingListsService{s: s}
return rs
}
type TargetableRemarketingListsService struct {
s *Service
}
func NewTargetingTemplatesService(s *Service) *TargetingTemplatesService {
rs := &TargetingTemplatesService{s: s}
return rs
}
type TargetingTemplatesService struct {
s *Service
}
func NewUserProfilesService(s *Service) *UserProfilesService {
rs := &UserProfilesService{s: s}
return rs
}
type UserProfilesService struct {
s *Service
}
func NewUserRolePermissionGroupsService(s *Service) *UserRolePermissionGroupsService {
rs := &UserRolePermissionGroupsService{s: s}
return rs
}
type UserRolePermissionGroupsService struct {
s *Service
}
func NewUserRolePermissionsService(s *Service) *UserRolePermissionsService {
rs := &UserRolePermissionsService{s: s}
return rs
}
type UserRolePermissionsService struct {
s *Service
}
func NewUserRolesService(s *Service) *UserRolesService {
rs := &UserRolesService{s: s}
return rs
}
type UserRolesService struct {
s *Service
}
func NewVideoFormatsService(s *Service) *VideoFormatsService {
rs := &VideoFormatsService{s: s}
return rs
}
type VideoFormatsService struct {
s *Service
}
// Account: Contains properties of a Campaign Manager account.
type Account struct {
// AccountPermissionIds: Account permissions assigned to this account.
AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"`
// AccountProfile: Profile for this account. This is a read-only field
// that can be left blank.
//
// Possible values:
// "ACCOUNT_PROFILE_BASIC"
// "ACCOUNT_PROFILE_STANDARD"
AccountProfile string `json:"accountProfile,omitempty"`
// Active: Whether this account is active.
Active bool `json:"active,omitempty"`
// ActiveAdsLimitTier: Maximum number of active ads allowed for this
// account.
//
// Possible values:
// "ACTIVE_ADS_TIER_100K"
// "ACTIVE_ADS_TIER_1M"
// "ACTIVE_ADS_TIER_200K"
// "ACTIVE_ADS_TIER_300K"
// "ACTIVE_ADS_TIER_40K"
// "ACTIVE_ADS_TIER_500K"
// "ACTIVE_ADS_TIER_750K"
// "ACTIVE_ADS_TIER_75K"
ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`
// ActiveViewOptOut: Whether to serve creatives with Active View tags.
// If disabled, viewability data will not be available for any
// impressions.
ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`
// AvailablePermissionIds: User role permissions available to the user
// roles of this account.
AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`
// CountryId: ID of the country associated with this account.
CountryId int64 `json:"countryId,omitempty,string"`
// CurrencyId: ID of currency associated with this account. This is a
// required field.
// Acceptable values are:
// - "1" for USD
// - "2" for GBP
// - "3" for ESP
// - "4" for SEK
// - "5" for CAD
// - "6" for JPY
// - "7" for DEM
// - "8" for AUD
// - "9" for FRF
// - "10" for ITL
// - "11" for DKK
// - "12" for NOK
// - "13" for FIM
// - "14" for ZAR
// - "15" for IEP
// - "16" for NLG
// - "17" for EUR
// - "18" for KRW
// - "19" for TWD
// - "20" for SGD
// - "21" for CNY
// - "22" for HKD
// - "23" for NZD
// - "24" for MYR
// - "25" for BRL
// - "26" for PTE
// - "27" for MXP
// - "28" for CLP
// - "29" for TRY
// - "30" for ARS
// - "31" for PEN
// - "32" for ILS
// - "33" for CHF
// - "34" for VEF
// - "35" for COP
// - "36" for GTQ
// - "37" for PLN
// - "39" for INR
// - "40" for THB
// - "41" for IDR
// - "42" for CZK
// - "43" for RON
// - "44" for HUF
// - "45" for RUB
// - "46" for AED
// - "47" for BGN
// - "48" for HRK
// - "49" for MXN
// - "50" for NGN
CurrencyId int64 `json:"currencyId,omitempty,string"`
// DefaultCreativeSizeId: Default placement dimensions for this account.
DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"`
// Description: Description of this account.
Description string `json:"description,omitempty"`
// Id: ID of this account. This is a read-only, auto-generated field.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#account".
Kind string `json:"kind,omitempty"`
// Locale: Locale of this account.
// Acceptable values are:
// - "cs" (Czech)
// - "de" (German)
// - "en" (English)
// - "en-GB" (English United Kingdom)
// - "es" (Spanish)
// - "fr" (French)
// - "it" (Italian)
// - "ja" (Japanese)
// - "ko" (Korean)
// - "pl" (Polish)
// - "pt-BR" (Portuguese Brazil)
// - "ru" (Russian)
// - "sv" (Swedish)
// - "tr" (Turkish)
// - "zh-CN" (Chinese Simplified)
// - "zh-TW" (Chinese Traditional)
Locale string `json:"locale,omitempty"`
// MaximumImageSize: Maximum image size allowed for this account, in
// kilobytes. Value must be greater than or equal to 1.
MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"`
// Name: Name of this account. This is a required field, and must be
// less than 128 characters long and be globally unique.
Name string `json:"name,omitempty"`
// NielsenOcrEnabled: Whether campaigns created in this account will be
// enabled for Nielsen OCR reach ratings by default.
NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`
// ReportsConfiguration: Reporting configuration of this account.
ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"`
// ShareReportsWithTwitter: Share Path to Conversion reports with
// Twitter.
ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"`
// TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser
// creatives. Acceptable values are 1 to 10240, inclusive.
TeaserSizeLimit int64 `json:"teaserSizeLimit,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.
// "AccountPermissionIds") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountPermissionIds") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Account) MarshalJSON() ([]byte, error) {
type NoMethod Account
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountActiveAdSummary: Gets a summary of active ads in an account.
type AccountActiveAdSummary struct {
// AccountId: ID of the account.
AccountId int64 `json:"accountId,omitempty,string"`
// ActiveAds: Ads that have been activated for the account
ActiveAds int64 `json:"activeAds,omitempty,string"`
// ActiveAdsLimitTier: Maximum number of active ads allowed for the
// account.
//
// Possible values:
// "ACTIVE_ADS_TIER_100K"
// "ACTIVE_ADS_TIER_1M"
// "ACTIVE_ADS_TIER_200K"
// "ACTIVE_ADS_TIER_300K"
// "ACTIVE_ADS_TIER_40K"
// "ACTIVE_ADS_TIER_500K"
// "ACTIVE_ADS_TIER_750K"
// "ACTIVE_ADS_TIER_75K"
ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`
// AvailableAds: Ads that can be activated for the account.
AvailableAds int64 `json:"availableAds,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountActiveAdSummary".
Kind string `json:"kind,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error) {
type NoMethod AccountActiveAdSummary
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountPermission: AccountPermissions contains information about a
// particular account permission. Some features of Campaign Manager
// require an account permission to be present in the account.
type AccountPermission struct {
// AccountProfiles: Account profiles associated with this account
// permission.
//
// Possible values are:
// - "ACCOUNT_PROFILE_BASIC"
// - "ACCOUNT_PROFILE_STANDARD"
//
// Possible values:
// "ACCOUNT_PROFILE_BASIC"
// "ACCOUNT_PROFILE_STANDARD"
AccountProfiles []string `json:"accountProfiles,omitempty"`
// Id: ID of this account permission.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountPermission".
Kind string `json:"kind,omitempty"`
// Level: Administrative level required to enable this account
// permission.
//
// Possible values:
// "ADMINISTRATOR"
// "USER"
Level string `json:"level,omitempty"`
// Name: Name of this account permission.
Name string `json:"name,omitempty"`
// PermissionGroupId: Permission group of this account permission.
PermissionGroupId int64 `json:"permissionGroupId,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. "AccountProfiles") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountProfiles") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountPermission) MarshalJSON() ([]byte, error) {
type NoMethod AccountPermission
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountPermissionGroup: AccountPermissionGroups contains a mapping of
// permission group IDs to names. A permission group is a grouping of
// account permissions.
type AccountPermissionGroup struct {
// Id: ID of this account permission group.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountPermissionGroup".
Kind string `json:"kind,omitempty"`
// Name: Name of this account permission group.
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error) {
type NoMethod AccountPermissionGroup
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountPermissionGroupsListResponse: Account Permission Group List
// Response
type AccountPermissionGroupsListResponse struct {
// AccountPermissionGroups: Account permission group collection.
AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountPermissionGroupsListResponse".
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.
// "AccountPermissionGroups") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountPermissionGroups")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountPermissionGroupsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountPermissionsListResponse: Account Permission List Response
type AccountPermissionsListResponse struct {
// AccountPermissions: Account permission collection.
AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountPermissionsListResponse".
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. "AccountPermissions")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountPermissions") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountPermissionsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountUserProfile: AccountUserProfiles contains properties of a
// Campaign Manager user profile. This resource is specifically for
// managing user profiles, whereas UserProfiles is for accessing the
// API.
type AccountUserProfile struct {
// AccountId: Account ID of the user profile. This is a read-only field
// that can be left blank.
AccountId int64 `json:"accountId,omitempty,string"`
// Active: Whether this user profile is active. This defaults to false,
// and must be set true on insert for the user profile to be usable.
Active bool `json:"active,omitempty"`
// AdvertiserFilter: Filter that describes which advertisers are visible
// to the user profile.
AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"`
// CampaignFilter: Filter that describes which campaigns are visible to
// the user profile.
CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"`
// Comments: Comments for this user profile.
Comments string `json:"comments,omitempty"`
// Email: Email of the user profile. The email addresss must be linked
// to a Google Account. This field is required on insertion and is
// read-only after insertion.
Email string `json:"email,omitempty"`
// Id: ID of the user profile. This is a read-only, auto-generated
// field.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountUserProfile".
Kind string `json:"kind,omitempty"`
// Locale: Locale of the user profile. This is a required
// field.
// Acceptable values are:
// - "cs" (Czech)
// - "de" (German)
// - "en" (English)
// - "en-GB" (English United Kingdom)
// - "es" (Spanish)
// - "fr" (French)
// - "it" (Italian)
// - "ja" (Japanese)
// - "ko" (Korean)
// - "pl" (Polish)
// - "pt-BR" (Portuguese Brazil)
// - "ru" (Russian)
// - "sv" (Swedish)
// - "tr" (Turkish)
// - "zh-CN" (Chinese Simplified)
// - "zh-TW" (Chinese Traditional)
Locale string `json:"locale,omitempty"`
// Name: Name of the user profile. This is a required field. Must be
// less than 64 characters long, must be globally unique, and cannot
// contain whitespace or any of the following characters: "&;"#%,".
Name string `json:"name,omitempty"`
// SiteFilter: Filter that describes which sites are visible to the user
// profile.
SiteFilter *ObjectFilter `json:"siteFilter,omitempty"`
// SubaccountId: Subaccount ID of the user profile. This is a read-only
// field that can be left blank.
SubaccountId int64 `json:"subaccountId,omitempty,string"`
// TraffickerType: Trafficker type of this user profile. This is a
// read-only field.
//
// Possible values:
// "EXTERNAL_TRAFFICKER"
// "INTERNAL_NON_TRAFFICKER"
// "INTERNAL_TRAFFICKER"
TraffickerType string `json:"traffickerType,omitempty"`
// UserAccessType: User type of the user profile. This is a read-only
// field that can be left blank.
//
// Possible values:
// "INTERNAL_ADMINISTRATOR"
// "NORMAL_USER"
// "READ_ONLY_SUPER_USER"
// "SUPER_USER"
UserAccessType string `json:"userAccessType,omitempty"`
// UserRoleFilter: Filter that describes which user roles are visible to
// the user profile.
UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"`
// UserRoleId: User role ID of the user profile. This is a required
// field.
UserRoleId int64 `json:"userRoleId,omitempty,string"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountUserProfile) MarshalJSON() ([]byte, error) {
type NoMethod AccountUserProfile
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountUserProfilesListResponse: Account User Profile List Response
type AccountUserProfilesListResponse struct {
// AccountUserProfiles: Account user profile collection.
AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountUserProfilesListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "AccountUserProfiles")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountUserProfiles") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountUserProfilesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AccountsListResponse: Account List Response
type AccountsListResponse struct {
// Accounts: Account collection.
Accounts []*Account `json:"accounts,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#accountsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "Accounts") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Accounts") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AccountsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AccountsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Activities: Represents an activity group.
type Activities struct {
// Filters: List of activity filters. The dimension values need to be
// all either of type "dfa:activity" or "dfa:activityGroup".
Filters []*DimensionValue `json:"filters,omitempty"`
// Kind: The kind of resource this is, in this case
// dfareporting#activities.
Kind string `json:"kind,omitempty"`
// MetricNames: List of names of floodlight activity metrics.
MetricNames []string `json:"metricNames,omitempty"`
// ForceSendFields is a list of field names (e.g. "Filters") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Filters") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Activities) MarshalJSON() ([]byte, error) {
type NoMethod Activities
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Ad: Contains properties of a Campaign Manager ad.
type Ad struct {
// AccountId: Account ID of this ad. This is a read-only field that can
// be left blank.
AccountId int64 `json:"accountId,omitempty,string"`
// Active: Whether this ad is active. When true, archived must be false.
Active bool `json:"active,omitempty"`
// AdvertiserId: Advertiser ID of this ad. This is a required field on
// insertion.
AdvertiserId int64 `json:"advertiserId,omitempty,string"`
// AdvertiserIdDimensionValue: Dimension value for the ID of the
// advertiser. This is a read-only, auto-generated field.
AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
// Archived: Whether this ad is archived. When true, active must be
// false.
Archived bool `json:"archived,omitempty"`
// AudienceSegmentId: Audience segment ID that is being targeted for
// this ad. Applicable when type is AD_SERVING_STANDARD_AD.
AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"`
// CampaignId: Campaign ID of this ad. This is a required field on
// insertion.
CampaignId int64 `json:"campaignId,omitempty,string"`
// CampaignIdDimensionValue: Dimension value for the ID of the campaign.
// This is a read-only, auto-generated field.
CampaignIdDimensionValue *DimensionValue `json:"campaignIdDimensionValue,omitempty"`
// ClickThroughUrl: Click-through URL for this ad. This is a required
// field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER.
ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
// ClickThroughUrlSuffixProperties: Click-through URL suffix properties
// for this ad. Applies to the URL in the ad or (if overriding ad
// properties) the URL in the creative.
ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`
// Comments: Comments for this ad.
Comments string `json:"comments,omitempty"`
// Compatibility: Compatibility of this ad. Applicable when type is
// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to
// either rendering on desktop or on mobile devices or in mobile apps
// for regular or interstitial ads, respectively. APP and
// APP_INTERSTITIAL are only used for existing default ads. New mobile
// placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and
// default ads created for those placements will be limited to those
// compatibility types. IN_STREAM_VIDEO refers to rendering in-stream
// video ads developed with the VAST standard.
//
// Possible values:
// "APP"
// "APP_INTERSTITIAL"
// "DISPLAY"
// "DISPLAY_INTERSTITIAL"
// "IN_STREAM_AUDIO"
// "IN_STREAM_VIDEO"
Compatibility string `json:"compatibility,omitempty"`
// CreateInfo: Information about the creation of this ad. This is a
// read-only field.
CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
// CreativeGroupAssignments: Creative group assignments for this ad.
// Applicable when type is AD_SERVING_CLICK_TRACKER. Only one assignment
// per creative group number is allowed for a maximum of two
// assignments.
CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`
// CreativeRotation: Creative rotation for this ad. Applicable when type
// is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or
// AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field
// should have exactly one creativeAssignment.
CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"`
// DayPartTargeting: Time and day targeting information for this ad.
// This field must be left blank if the ad is using a targeting
// template. Applicable when type is AD_SERVING_STANDARD_AD.
DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`
// DefaultClickThroughEventTagProperties: Default click-through event
// tag properties for this ad.
DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`
// DeliverySchedule: Delivery schedule information for this ad.
// Applicable when type is AD_SERVING_STANDARD_AD or
// AD_SERVING_TRACKING. This field along with subfields priority and
// impressionRatio are required on insertion when type is
// AD_SERVING_STANDARD_AD.
DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"`
// DynamicClickTracker: Whether this ad is a dynamic click tracker.
// Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required
// field on insert, and is read-only after insert.
DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"`
// EndTime: Date and time that this ad should stop serving. Must be
// later than the start time. This is a required field on insertion.
EndTime string `json:"endTime,omitempty"`
// EventTagOverrides: Event tag overrides for this ad.
EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`
// GeoTargeting: Geographical targeting information for this ad. This
// field must be left blank if the ad is using a targeting template.
// Applicable when type is AD_SERVING_STANDARD_AD.
GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`
// Id: ID of this ad. This is a read-only, auto-generated field.
Id int64 `json:"id,omitempty,string"`
// IdDimensionValue: Dimension value for the ID of this ad. This is a
// read-only, auto-generated field.
IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
// KeyValueTargetingExpression: Key-value targeting information for this
// ad. This field must be left blank if the ad is using a targeting
// template. Applicable when type is AD_SERVING_STANDARD_AD.
KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#ad".
Kind string `json:"kind,omitempty"`
// LanguageTargeting: Language targeting information for this ad. This
// field must be left blank if the ad is using a targeting template.
// Applicable when type is AD_SERVING_STANDARD_AD.
LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`
// LastModifiedInfo: Information about the most recent modification of
// this ad. This is a read-only field.
LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
// Name: Name of this ad. This is a required field and must be less than
// 256 characters long.
Name string `json:"name,omitempty"`
// PlacementAssignments: Placement assignments for this ad.
PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"`
// RemarketingListExpression: Remarketing list targeting expression for
// this ad. This field must be left blank if the ad is using a targeting
// template. Applicable when type is AD_SERVING_STANDARD_AD.
RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"`
// Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD.
Size *Size `json:"size,omitempty"`
// SslCompliant: Whether this ad is ssl compliant. This is a read-only
// field that is auto-generated when the ad is inserted or updated.
SslCompliant bool `json:"sslCompliant,omitempty"`
// SslRequired: Whether this ad requires ssl. This is a read-only field
// that is auto-generated when the ad is inserted or updated.
SslRequired bool `json:"sslRequired,omitempty"`
// StartTime: Date and time that this ad should start serving. If
// creating an ad, this field must be a time in the future. This is a
// required field on insertion.
StartTime string `json:"startTime,omitempty"`
// SubaccountId: Subaccount ID of this ad. This is a read-only field
// that can be left blank.
SubaccountId int64 `json:"subaccountId,omitempty,string"`
// TargetingTemplateId: Targeting template ID, used to apply
// preconfigured targeting information to this ad. This cannot be set
// while any of dayPartTargeting, geoTargeting,
// keyValueTargetingExpression, languageTargeting,
// remarketingListExpression, or technologyTargeting are set. Applicable
// when type is AD_SERVING_STANDARD_AD.
TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"`
// TechnologyTargeting: Technology platform targeting information for
// this ad. This field must be left blank if the ad is using a targeting
// template. Applicable when type is AD_SERVING_STANDARD_AD.
TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`
// Type: Type of ad. This is a required field on insertion. Note that
// default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see
// Creative resource).
//
// Possible values:
// "AD_SERVING_CLICK_TRACKER"
// "AD_SERVING_DEFAULT_AD"
// "AD_SERVING_STANDARD_AD"
// "AD_SERVING_TRACKING"
Type string `json:"type,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Ad) MarshalJSON() ([]byte, error) {
type NoMethod Ad
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdBlockingConfiguration: Campaign ad blocking settings.
type AdBlockingConfiguration struct {
// ClickThroughUrl: Click-through URL used by brand-neutral ads. This is
// a required field when overrideClickThroughUrl is set to true.
ClickThroughUrl string `json:"clickThroughUrl,omitempty"`
// CreativeBundleId: ID of a creative bundle to use for this campaign.
// If set, brand-neutral ads will select creatives from this bundle.
// Otherwise, a default transparent pixel will be used.
CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"`
// Enabled: Whether this campaign has enabled ad blocking. When true, ad
// blocking is enabled for placements in the campaign, but this may be
// overridden by site and placement settings. When false, ad blocking is
// disabled for all placements under the campaign, regardless of site
// and placement settings.
Enabled bool `json:"enabled,omitempty"`
// OverrideClickThroughUrl: Whether the brand-neutral ad's click-through
// URL comes from the campaign's creative bundle or the override URL.
// Must be set to true if ad blocking is enabled and no creative bundle
// is configured.
OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClickThroughUrl") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error) {
type NoMethod AdBlockingConfiguration
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdSlot: Ad Slot
type AdSlot struct {
// Comment: Comment for this ad slot.
Comment string `json:"comment,omitempty"`
// Compatibility: Ad slot compatibility. DISPLAY and
// DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile
// devices or in mobile apps for regular or interstitial ads
// respectively. APP and APP_INTERSTITIAL are for rendering in mobile
// apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads
// developed with the VAST standard.
//
// Possible values:
// "APP"
// "APP_INTERSTITIAL"
// "DISPLAY"
// "DISPLAY_INTERSTITIAL"
// "IN_STREAM_AUDIO"
// "IN_STREAM_VIDEO"
Compatibility string `json:"compatibility,omitempty"`
// Height: Height of this ad slot.
Height int64 `json:"height,omitempty,string"`
// LinkedPlacementId: ID of the placement from an external platform that
// is linked to this ad slot.
LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"`
// Name: Name of this ad slot.
Name string `json:"name,omitempty"`
// PaymentSourceType: Payment source type of this ad slot.
//
// Possible values:
// "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID"
// "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID"
PaymentSourceType string `json:"paymentSourceType,omitempty"`
// Primary: Primary ad slot of a roadblock inventory item.
Primary bool `json:"primary,omitempty"`
// Width: Width of this ad slot.
Width int64 `json:"width,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "Comment") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Comment") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdSlot) MarshalJSON() ([]byte, error) {
type NoMethod AdSlot
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdsListResponse: Ad List Response
type AdsListResponse struct {
// Ads: Ad collection.
Ads []*Ad `json:"ads,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#adsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "Ads") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Ads") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AdsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Advertiser: Contains properties of a Campaign Manager advertiser.
type Advertiser struct {
// AccountId: Account ID of this advertiser.This is a read-only field
// that can be left blank.
AccountId int64 `json:"accountId,omitempty,string"`
// AdvertiserGroupId: ID of the advertiser group this advertiser belongs
// to. You can group advertisers for reporting purposes, allowing you to
// see aggregated information for all advertisers in each group.
AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`
// ClickThroughUrlSuffix: Suffix added to click-through URL of ad
// creative associations under this advertiser. Must be less than 129
// characters long.
ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`
// DefaultClickThroughEventTagId: ID of the click-through event tag to
// apply by default to the landing pages of this advertiser's campaigns.
DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"`
// DefaultEmail: Default email address used in sender field for tag
// emails.
DefaultEmail string `json:"defaultEmail,omitempty"`
// FloodlightConfigurationId: Floodlight configuration ID of this
// advertiser. The floodlight configuration ID will be created
// automatically, so on insert this field should be left blank. This
// field can be set to another advertiser's floodlight configuration ID
// in order to share that advertiser's floodlight configuration with
// this advertiser, so long as:
// - This advertiser's original floodlight configuration is not already
// associated with floodlight activities or floodlight activity groups.
//
// - This advertiser's original floodlight configuration is not already
// shared with another advertiser.
FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
// FloodlightConfigurationIdDimensionValue: Dimension value for the ID
// of the floodlight configuration. This is a read-only, auto-generated
// field.
FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`
// Id: ID of this advertiser. This is a read-only, auto-generated field.
Id int64 `json:"id,omitempty,string"`
// IdDimensionValue: Dimension value for the ID of this advertiser. This
// is a read-only, auto-generated field.
IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#advertiser".
Kind string `json:"kind,omitempty"`
// Name: Name of this advertiser. This is a required field and must be
// less than 256 characters long and unique among advertisers of the
// same account.
Name string `json:"name,omitempty"`
// OriginalFloodlightConfigurationId: Original floodlight configuration
// before any sharing occurred. Set the floodlightConfigurationId of
// this advertiser to originalFloodlightConfigurationId to unshare the
// advertiser's current floodlight configuration. You cannot unshare an
// advertiser's floodlight configuration if the shared configuration has
// activities associated with any campaign or placement.
OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"`
// Status: Status of this advertiser.
//
// Possible values:
// "APPROVED"
// "ON_HOLD"
Status string `json:"status,omitempty"`
// SubaccountId: Subaccount ID of this advertiser.This is a read-only
// field that can be left blank.
SubaccountId int64 `json:"subaccountId,omitempty,string"`
// Suspended: Suspension status of this advertiser.
Suspended bool `json:"suspended,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Advertiser) MarshalJSON() ([]byte, error) {
type NoMethod Advertiser
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdvertiserGroup: Groups advertisers together so that reports can be
// generated for the entire group at once.
type AdvertiserGroup struct {
// AccountId: Account ID of this advertiser group. This is a read-only
// field that can be left blank.
AccountId int64 `json:"accountId,omitempty,string"`
// Id: ID of this advertiser group. This is a read-only, auto-generated
// field.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#advertiserGroup".
Kind string `json:"kind,omitempty"`
// Name: Name of this advertiser group. This is a required field and
// must be less than 256 characters long and unique among advertiser
// groups of the same account.
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdvertiserGroup) MarshalJSON() ([]byte, error) {
type NoMethod AdvertiserGroup
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdvertiserGroupsListResponse: Advertiser Group List Response
type AdvertiserGroupsListResponse struct {
// AdvertiserGroups: Advertiser group collection.
AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#advertiserGroupsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "AdvertiserGroups") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AdvertiserGroups") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AdvertiserGroupsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdvertiserLandingPagesListResponse: Landing Page List Response
type AdvertiserLandingPagesListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#advertiserLandingPagesListResponse".
Kind string `json:"kind,omitempty"`
// LandingPages: Landing page collection
LandingPages []*LandingPage `json:"landingPages,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Kind") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AdvertiserLandingPagesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdvertisersListResponse: Advertiser List Response
type AdvertisersListResponse struct {
// Advertisers: Advertiser collection.
Advertisers []*Advertiser `json:"advertisers,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#advertisersListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "Advertisers") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Advertisers") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error) {
type NoMethod AdvertisersListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AudienceSegment: Audience Segment.
type AudienceSegment struct {
// Allocation: Weight allocated to this segment. The weight assigned
// will be understood in proportion to the weights assigned to other
// segments in the same segment group. Acceptable values are 1 to 1000,
// inclusive.
Allocation int64 `json:"allocation,omitempty"`
// Id: ID of this audience segment. This is a read-only, auto-generated
// field.
Id int64 `json:"id,omitempty,string"`
// Name: Name of this audience segment. This is a required field and
// must be less than 65 characters long.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Allocation") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Allocation") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AudienceSegment) MarshalJSON() ([]byte, error) {
type NoMethod AudienceSegment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AudienceSegmentGroup: Audience Segment Group.
type AudienceSegmentGroup struct {
// AudienceSegments: Audience segments assigned to this group. The
// number of segments must be between 2 and 100.
AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"`
// Id: ID of this audience segment group. This is a read-only,
// auto-generated field.
Id int64 `json:"id,omitempty,string"`
// Name: Name of this audience segment group. This is a required field
// and must be less than 65 characters long.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "AudienceSegments") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AudienceSegments") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error) {
type NoMethod AudienceSegmentGroup
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Browser: Contains information about a browser that can be targeted by
// ads.
type Browser struct {
// BrowserVersionId: ID referring to this grouping of browser and
// version numbers. This is the ID used for targeting.
BrowserVersionId int64 `json:"browserVersionId,omitempty,string"`
// DartId: DART ID of this browser. This is the ID used when generating
// reports.
DartId int64 `json:"dartId,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#browser".
Kind string `json:"kind,omitempty"`
// MajorVersion: Major version number (leftmost number) of this browser.
// For example, for Chrome 5.0.376.86 beta, this field should be set to
// 5. An asterisk (*) may be used to target any version number, and a
// question mark (?) may be used to target cases where the version
// number cannot be identified. For example, Chrome *.* targets any
// version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets
// Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad
// server knows the browser is Firefox but can't tell which version it
// is.
MajorVersion string `json:"majorVersion,omitempty"`
// MinorVersion: Minor version number (number after first dot on left)
// of this browser. For example, for Chrome 5.0.375.86 beta, this field
// should be set to 0. An asterisk (*) may be used to target any version
// number, and a question mark (?) may be used to target cases where the
// version number cannot be identified. For example, Chrome *.* targets
// any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets
// Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad
// server knows the browser is Firefox but can't tell which version it
// is.
MinorVersion string `json:"minorVersion,omitempty"`
// Name: Name of this browser.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "BrowserVersionId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "BrowserVersionId") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Browser) MarshalJSON() ([]byte, error) {
type NoMethod Browser
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BrowsersListResponse: Browser List Response
type BrowsersListResponse struct {
// Browsers: Browser collection.
Browsers []*Browser `json:"browsers,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#browsersListResponse".
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. "Browsers") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Browsers") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BrowsersListResponse) MarshalJSON() ([]byte, error) {
type NoMethod BrowsersListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Campaign: Contains properties of a Campaign Manager campaign.
type Campaign struct {
// AccountId: Account ID of this campaign. This is a read-only field
// that can be left blank.
AccountId int64 `json:"accountId,omitempty,string"`
// AdBlockingConfiguration: Ad blocking settings for this campaign.
AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"`
// AdditionalCreativeOptimizationConfigurations: Additional creative
// optimization configurations for the campaign.
AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"`
// AdvertiserGroupId: Advertiser group ID of the associated advertiser.
AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`
// AdvertiserId: Advertiser ID of this campaign. This is a required
// field.
AdvertiserId int64 `json:"advertiserId,omitempty,string"`
// AdvertiserIdDimensionValue: Dimension value for the advertiser ID of
// this campaign. This is a read-only, auto-generated field.
AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`
// Archived: Whether this campaign has been archived.
Archived bool `json:"archived,omitempty"`
// AudienceSegmentGroups: Audience segment groups assigned to this
// campaign. Cannot have more than 300 segment groups.
AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"`
// BillingInvoiceCode: Billing invoice code included in the Campaign
// Manager client billing invoices associated with the campaign.
BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"`
// ClickThroughUrlSuffixProperties: Click-through URL suffix override
// properties for this campaign.
ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`
// Comment: Arbitrary comments about this campaign. Must be less than
// 256 characters long.
Comment string `json:"comment,omitempty"`
// CreateInfo: Information about the creation of this campaign. This is
// a read-only field.
CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`
// CreativeGroupIds: List of creative group IDs that are assigned to the
// campaign.
CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"`
// CreativeOptimizationConfiguration: Creative optimization
// configuration for the campaign.
CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"`
// DefaultClickThroughEventTagProperties: Click-through event tag ID
// override properties for this campaign.
DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`
// DefaultLandingPageId: The default landing page ID for this campaign.
DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"`
// EndDate: Date on which the campaign will stop running. On insert, the
// end date must be today or a future date. The end date must be later
// than or be the same as the start date. If, for example, you set
// 6/25/2015 as both the start and end dates, the effective campaign run
// date is just that day only, 6/25/2015. The hours, minutes, and
// seconds of the end date should not be set, as doing so will result in
// an error. This is a required field.
EndDate string `json:"endDate,omitempty"`
// EventTagOverrides: Overrides that can be used to activate or
// deactivate advertiser event tags.
EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`
// ExternalId: External ID for this campaign.
ExternalId string `json:"externalId,omitempty"`
// Id: ID of this campaign. This is a read-only auto-generated field.
Id int64 `json:"id,omitempty,string"`
// IdDimensionValue: Dimension value for the ID of this campaign. This
// is a read-only, auto-generated field.
IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#campaign".
Kind string `json:"kind,omitempty"`
// LastModifiedInfo: Information about the most recent modification of
// this campaign. This is a read-only field.
LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`
// LookbackConfiguration: Lookback window settings for the campaign.
LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`
// Name: Name of this campaign. This is a required field and must be
// less than 256 characters long and unique among campaigns of the same
// advertiser.
Name string `json:"name,omitempty"`
// NielsenOcrEnabled: Whether Nielsen reports are enabled for this
// campaign.
NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`
// StartDate: Date on which the campaign starts running. The start date
// can be any date. The hours, minutes, and seconds of the start date
// should not be set, as doing so will result in an error. This is a
// required field.
StartDate string `json:"startDate,omitempty"`
// SubaccountId: Subaccount ID of this campaign. This is a read-only
// field that can be left blank.
SubaccountId int64 `json:"subaccountId,omitempty,string"`
// TraffickerEmails: Campaign trafficker contact emails.
TraffickerEmails []string `json:"traffickerEmails,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Campaign) MarshalJSON() ([]byte, error) {
type NoMethod Campaign
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CampaignCreativeAssociation: Identifies a creative which has been
// associated with a given campaign.
type CampaignCreativeAssociation struct {
// CreativeId: ID of the creative associated with the campaign. This is
// a required field.
CreativeId int64 `json:"creativeId,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#campaignCreativeAssociation".
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. "CreativeId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CreativeId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error) {
type NoMethod CampaignCreativeAssociation
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CampaignCreativeAssociationsListResponse: Campaign Creative
// Association List Response
type CampaignCreativeAssociationsListResponse struct {
// CampaignCreativeAssociations: Campaign creative association
// collection
CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#campaignCreativeAssociationsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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.
// "CampaignCreativeAssociations") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "CampaignCreativeAssociations") to include in API requests with the
// JSON null value. By default, fields with empty values are omitted
// from API requests. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod CampaignCreativeAssociationsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CampaignsListResponse: Campaign List Response
type CampaignsListResponse struct {
// Campaigns: Campaign collection.
Campaigns []*Campaign `json:"campaigns,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#campaignsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "Campaigns") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Campaigns") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CampaignsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod CampaignsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChangeLog: Describes a change that a user has made to a resource.
type ChangeLog struct {
// AccountId: Account ID of the modified object.
AccountId int64 `json:"accountId,omitempty,string"`
// Action: Action which caused the change.
Action string `json:"action,omitempty"`
// ChangeTime: Time when the object was modified.
ChangeTime string `json:"changeTime,omitempty"`
// FieldName: Field name of the object which changed.
FieldName string `json:"fieldName,omitempty"`
// Id: ID of this change log.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#changeLog".
Kind string `json:"kind,omitempty"`
// NewValue: New value of the object field.
NewValue string `json:"newValue,omitempty"`
// ObjectId: ID of the object of this change log. The object could be a
// campaign, placement, ad, or other type.
ObjectId int64 `json:"objectId,omitempty,string"`
// ObjectType: Object type of the change log.
ObjectType string `json:"objectType,omitempty"`
// OldValue: Old value of the object field.
OldValue string `json:"oldValue,omitempty"`
// SubaccountId: Subaccount ID of the modified object.
SubaccountId int64 `json:"subaccountId,omitempty,string"`
// TransactionId: Transaction ID of this change log. When a single API
// call results in many changes, each change will have a separate ID in
// the change log but will share the same transactionId.
TransactionId int64 `json:"transactionId,omitempty,string"`
// UserProfileId: ID of the user who modified the object.
UserProfileId int64 `json:"userProfileId,omitempty,string"`
// UserProfileName: User profile name of the user who modified the
// object.
UserProfileName string `json:"userProfileName,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChangeLog) MarshalJSON() ([]byte, error) {
type NoMethod ChangeLog
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChangeLogsListResponse: Change Log List Response
type ChangeLogsListResponse struct {
// ChangeLogs: Change log collection.
ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#changeLogsListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "ChangeLogs") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChangeLogs") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ChangeLogsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CitiesListResponse: City List Response
type CitiesListResponse struct {
// Cities: City collection.
Cities []*City `json:"cities,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#citiesListResponse".
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. "Cities") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Cities") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CitiesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod CitiesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// City: Contains information about a city that can be targeted by ads.
type City struct {
// CountryCode: Country code of the country to which this city belongs.
CountryCode string `json:"countryCode,omitempty"`
// CountryDartId: DART ID of the country to which this city belongs.
CountryDartId int64 `json:"countryDartId,omitempty,string"`
// DartId: DART ID of this city. This is the ID used for targeting and
// generating reports.
DartId int64 `json:"dartId,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#city".
Kind string `json:"kind,omitempty"`
// MetroCode: Metro region code of the metro region (DMA) to which this
// city belongs.
MetroCode string `json:"metroCode,omitempty"`
// MetroDmaId: ID of the metro region (DMA) to which this city belongs.
MetroDmaId int64 `json:"metroDmaId,omitempty,string"`
// Name: Name of this city.
Name string `json:"name,omitempty"`
// RegionCode: Region code of the region to which this city belongs.
RegionCode string `json:"regionCode,omitempty"`
// RegionDartId: DART ID of the region to which this city belongs.
RegionDartId int64 `json:"regionDartId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "CountryCode") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CountryCode") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *City) MarshalJSON() ([]byte, error) {
type NoMethod City
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClickTag: Creative Click Tag.
type ClickTag struct {
// ClickThroughUrl: Parameter value for the specified click tag. This
// field contains a click-through url.
ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"`
// EventName: Advertiser event name associated with the click tag. This
// field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives.
// Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.
EventName string `json:"eventName,omitempty"`
// Name: Parameter name for the specified click tag. For
// DISPLAY_IMAGE_GALLERY creative assets, this field must match the
// value of the creative asset's creativeAssetId.name field.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClickThroughUrl") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ClickTag) MarshalJSON() ([]byte, error) {
type NoMethod ClickTag
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClickThroughUrl: Click-through URL
type ClickThroughUrl struct {
// ComputedClickThroughUrl: Read-only convenience field representing the
// actual URL that will be used for this click-through. The URL is
// computed as follows:
// - If defaultLandingPage is enabled then the campaign's default
// landing page URL is assigned to this field.
// - If defaultLandingPage is not enabled and a landingPageId is
// specified then that landing page's URL is assigned to this field.
// - If neither of the above cases apply, then the customClickThroughUrl
// is assigned to this field.
ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"`
// CustomClickThroughUrl: Custom click-through URL. Applicable if the
// defaultLandingPage field is set to false and the landingPageId field
// is left unset.
CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"`
// DefaultLandingPage: Whether the campaign default landing page is
// used.
DefaultLandingPage bool `json:"defaultLandingPage,omitempty"`
// LandingPageId: ID of the landing page for the click-through URL.
// Applicable if the defaultLandingPage field is set to false.
LandingPageId int64 `json:"landingPageId,omitempty,string"`
// ForceSendFields is a list of field names (e.g.
// "ComputedClickThroughUrl") to unconditionally include in API
// requests. By default, fields with empty values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ComputedClickThroughUrl")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ClickThroughUrl) MarshalJSON() ([]byte, error) {
type NoMethod ClickThroughUrl
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ClickThroughUrlSuffixProperties: Click Through URL Suffix settings.
type ClickThroughUrlSuffixProperties struct {
// ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads
// in this entity's scope. Must be less than 128 characters long.
ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`
// OverrideInheritedSuffix: Whether this entity should override the
// inherited click-through URL suffix with its own defined value.
OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ClickThroughUrlSuffix") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error) {
type NoMethod ClickThroughUrlSuffixProperties
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CompanionClickThroughOverride: Companion Click-through override.
type CompanionClickThroughOverride struct {
// ClickThroughUrl: Click-through URL of this companion click-through
// override.
ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`
// CreativeId: ID of the creative for this companion click-through
// override.
CreativeId int64 `json:"creativeId,omitempty,string"`
// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ClickThroughUrl") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error) {
type NoMethod CompanionClickThroughOverride
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CompanionSetting: Companion Settings
type CompanionSetting struct {
// CompanionsDisabled: Whether companions are disabled for this
// placement.
CompanionsDisabled bool `json:"companionsDisabled,omitempty"`
// EnabledSizes: Whitelist of companion sizes to be served to this
// placement. Set this list to null or empty to serve all companion
// sizes.
EnabledSizes []*Size `json:"enabledSizes,omitempty"`
// ImageOnly: Whether to serve only static images as companions.
ImageOnly bool `json:"imageOnly,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#companionSetting".
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "CompanionsDisabled")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CompanionsDisabled") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *CompanionSetting) MarshalJSON() ([]byte, error) {
type NoMethod CompanionSetting
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CompatibleFields: Represents a response to the queryCompatibleFields
// method.
type CompatibleFields struct {
// CrossDimensionReachReportCompatibleFields: Contains items that are
// compatible to be selected for a report of type
// "CROSS_DIMENSION_REACH".
CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"`
// FloodlightReportCompatibleFields: Contains items that are compatible
// to be selected for a report of type "FLOODLIGHT".
FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"`
// Kind: The kind of resource this is, in this case
// dfareporting#compatibleFields.
Kind string `json:"kind,omitempty"`
// PathToConversionReportCompatibleFields: Contains items that are
// compatible to be selected for a report of type "PATH_TO_CONVERSION".
PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"`
// ReachReportCompatibleFields: Contains items that are compatible to be
// selected for a report of type "REACH".
ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"`
// ReportCompatibleFields: Contains items that are compatible to be
// selected for a report of type "STANDARD".
ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "CrossDimensionReachReportCompatibleFields") to unconditionally
// include in API requests. By default, fields with empty values are
// omitted from API requests. However, any non-pointer, non-interface
// field appearing in ForceSendFields will be sent to the server
// regardless of whether the field is empty or not. This may be used to
// include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g.
// "CrossDimensionReachReportCompatibleFields") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CompatibleFields) MarshalJSON() ([]byte, error) {
type NoMethod CompatibleFields
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConnectionType: Contains information about an internet connection
// type that can be targeted by ads. Clients can use the connection type
// to target mobile vs. broadband users.
type ConnectionType struct {
// Id: ID of this connection type.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#connectionType".
Kind string `json:"kind,omitempty"`
// Name: Name of this connection type.
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "Id") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Id") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConnectionType) MarshalJSON() ([]byte, error) {
type NoMethod ConnectionType
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConnectionTypesListResponse: Connection Type List Response
type ConnectionTypesListResponse struct {
// ConnectionTypes: Collection of connection types such as broadband and
// mobile.
ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#connectionTypesListResponse".
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. "ConnectionTypes") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ConnectionTypes") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ConnectionTypesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ContentCategoriesListResponse: Content Category List Response
type ContentCategoriesListResponse struct {
// ContentCategories: Content category collection.
ContentCategories []*ContentCategory `json:"contentCategories,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#contentCategoriesListResponse".
Kind string `json:"kind,omitempty"`
// NextPageToken: Pagination token to be used for the next list
// operation.
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. "ContentCategories")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ContentCategories") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ContentCategoriesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ContentCategoriesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ContentCategory: Organizes placements according to the contents of
// their associated webpages.
type ContentCategory struct {
// AccountId: Account ID of this content category. This is a read-only
// field that can be left blank.
AccountId int64 `json:"accountId,omitempty,string"`
// Id: ID of this content category. This is a read-only, auto-generated
// field.
Id int64 `json:"id,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#contentCategory".
Kind string `json:"kind,omitempty"`
// Name: Name of this content category. This is a required field and
// must be less than 256 characters long and unique among content
// categories of the same account.
Name string `json:"name,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "AccountId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AccountId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ContentCategory) MarshalJSON() ([]byte, error) {
type NoMethod ContentCategory
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Conversion: A Conversion represents when a user successfully performs
// a desired action after seeing an ad.
type Conversion struct {
// ChildDirectedTreatment: Whether this particular request may come from
// a user under the age of 13, under COPPA compliance.
ChildDirectedTreatment bool `json:"childDirectedTreatment,omitempty"`
// CustomVariables: Custom floodlight variables.
CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"`
// EncryptedUserId: The alphanumeric encrypted user ID. When set,
// encryptionInfo should also be specified. This field is mutually
// exclusive with encryptedUserIdCandidates[], mobileDeviceId and gclid.
// This or encryptedUserIdCandidates[] or mobileDeviceId or gclid is a
// required field.
EncryptedUserId string `json:"encryptedUserId,omitempty"`
// EncryptedUserIdCandidates: A list of the alphanumeric encrypted user
// IDs. Any user ID with exposure prior to the conversion timestamp will
// be used in the inserted conversion. If no such user ID is found then
// the conversion will be rejected with NO_COOKIE_MATCH_FOUND error.
// When set, encryptionInfo should also be specified. This field may
// only be used when calling batchinsert; it is not supported by
// batchupdate. This field is mutually exclusive with encryptedUserId,
// mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId
// or gclid is a required field.
EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"`
// FloodlightActivityId: Floodlight Activity ID of this conversion. This
// is a required field.
FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`
// FloodlightConfigurationId: Floodlight Configuration ID of this
// conversion. This is a required field.
FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
// Gclid: The Google click ID. This field is mutually exclusive with
// encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This
// or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId
// is a required field.
Gclid string `json:"gclid,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversion".
Kind string `json:"kind,omitempty"`
// LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to
// true, the conversion will be used for reporting but not targeting.
// This will prevent remarketing.
LimitAdTracking bool `json:"limitAdTracking,omitempty"`
// MobileDeviceId: The mobile device ID. This field is mutually
// exclusive with encryptedUserId, encryptedUserIdCandidates[] and
// gclid. This or encryptedUserId or encryptedUserIdCandidates[] or
// gclid is a required field.
MobileDeviceId string `json:"mobileDeviceId,omitempty"`
// NonPersonalizedAd: Whether the conversion was for a non personalized
// ad.
NonPersonalizedAd bool `json:"nonPersonalizedAd,omitempty"`
// Ordinal: The ordinal of the conversion. Use this field to control how
// conversions of the same user and day are de-duplicated. This is a
// required field.
Ordinal string `json:"ordinal,omitempty"`
// Quantity: The quantity of the conversion.
Quantity int64 `json:"quantity,omitempty,string"`
// TimestampMicros: The timestamp of conversion, in Unix epoch micros.
// This is a required field.
TimestampMicros int64 `json:"timestampMicros,omitempty,string"`
// TreatmentForUnderage: Whether this particular request may come from a
// user under the age of 16 (may differ by country), under compliance
// with the European Union's General Data Protection Regulation (GDPR).
TreatmentForUnderage bool `json:"treatmentForUnderage,omitempty"`
// Value: The value of the conversion.
Value float64 `json:"value,omitempty"`
// ForceSendFields is a list of field names (e.g.
// "ChildDirectedTreatment") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "ChildDirectedTreatment")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Conversion) MarshalJSON() ([]byte, error) {
type NoMethod Conversion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *Conversion) UnmarshalJSON(data []byte) error {
type NoMethod Conversion
var s1 struct {
Value gensupport.JSONFloat64 `json:"value"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Value = float64(s1.Value)
return nil
}
// ConversionError: The error code and description for a conversion that
// failed to insert or update.
type ConversionError struct {
// Code: The error code.
//
// Possible values:
// "INTERNAL"
// "INVALID_ARGUMENT"
// "NOT_FOUND"
// "PERMISSION_DENIED"
Code string `json:"code,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversionError".
Kind string `json:"kind,omitempty"`
// Message: A description of the error.
Message string `json:"message,omitempty"`
// ForceSendFields is a list of field names (e.g. "Code") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Code") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConversionError) MarshalJSON() ([]byte, error) {
type NoMethod ConversionError
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConversionStatus: The original conversion that was inserted or
// updated and whether there were any errors.
type ConversionStatus struct {
// Conversion: The original conversion that was inserted or updated.
Conversion *Conversion `json:"conversion,omitempty"`
// Errors: A list of errors related to this conversion.
Errors []*ConversionError `json:"errors,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversionStatus".
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conversion") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Conversion") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConversionStatus) MarshalJSON() ([]byte, error) {
type NoMethod ConversionStatus
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConversionsBatchInsertRequest: Insert Conversions Request.
type ConversionsBatchInsertRequest struct {
// Conversions: The set of conversions to insert.
Conversions []*Conversion `json:"conversions,omitempty"`
// EncryptionInfo: Describes how encryptedUserId or
// encryptedUserIdCandidates[] is encrypted. This is a required field if
// encryptedUserId or encryptedUserIdCandidates[] is used.
EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversionsBatchInsertRequest".
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conversions") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Conversions") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConversionsBatchInsertRequest) MarshalJSON() ([]byte, error) {
type NoMethod ConversionsBatchInsertRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConversionsBatchInsertResponse: Insert Conversions Response.
type ConversionsBatchInsertResponse struct {
// HasFailures: Indicates that some or all conversions failed to insert.
HasFailures bool `json:"hasFailures,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversionsBatchInsertResponse".
Kind string `json:"kind,omitempty"`
// Status: The insert status of each conversion. Statuses are returned
// in the same order that conversions are inserted.
Status []*ConversionStatus `json:"status,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "HasFailures") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HasFailures") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConversionsBatchInsertResponse) MarshalJSON() ([]byte, error) {
type NoMethod ConversionsBatchInsertResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConversionsBatchUpdateRequest: Update Conversions Request.
type ConversionsBatchUpdateRequest struct {
// Conversions: The set of conversions to update.
Conversions []*Conversion `json:"conversions,omitempty"`
// EncryptionInfo: Describes how encryptedUserId is encrypted. This is a
// required field if encryptedUserId is used.
EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversionsBatchUpdateRequest".
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "Conversions") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Conversions") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConversionsBatchUpdateRequest) MarshalJSON() ([]byte, error) {
type NoMethod ConversionsBatchUpdateRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConversionsBatchUpdateResponse: Update Conversions Response.
type ConversionsBatchUpdateResponse struct {
// HasFailures: Indicates that some or all conversions failed to update.
HasFailures bool `json:"hasFailures,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversionsBatchUpdateResponse".
Kind string `json:"kind,omitempty"`
// Status: The update status of each conversion. Statuses are returned
// in the same order that conversions are updated.
Status []*ConversionStatus `json:"status,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "HasFailures") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "HasFailures") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConversionsBatchUpdateResponse) MarshalJSON() ([]byte, error) {
type NoMethod ConversionsBatchUpdateResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CountriesListResponse: Country List Response
type CountriesListResponse struct {
// Countries: Country collection.
Countries []*Country `json:"countries,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#countriesListResponse".
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. "Countries") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "Countries") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CountriesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod CountriesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Country: Contains information about a country that can be targeted by
// ads.
type Country struct {
// CountryCode: Country code.
CountryCode string `json:"countryCode,omitempty"`
// DartId: DART ID of this country. This is the ID used for targeting
// and generating reports.
DartId int64 `json:"dartId,omitempty,string"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#country".
Kind string `json:"kind,omitempty"`
// Name: Name of this country.
Name string `json:"name,omitempty"`
// SslEnabled: Whether ad serving supports secure servers in this
// country.
SslEnabled bool `json:"sslEnabled,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "CountryCode") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "CountryCode") to include
// in API requests with the JSON null value. By default, fields with