dfareporting

package
v0.0.0-...-c37129a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2016 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Package dfareporting provides access to the DCM/DFA Reporting And Trafficking API.

See https://developers.google.com/doubleclick-advertisers/reporting/

Usage example:

import "google.golang.org/api/dfareporting/v2.0"
...
dfareportingService, err := dfareporting.New(oauthHttpClient)

Index

Constants

View Source
const (
	// 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"
)

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

type 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.
	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.
	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"`

	// ComscoreVceEnabled: Whether campaigns created in this account will be
	// enabled for comScore vCE by default.
	ComscoreVceEnabled bool `json:"comscoreVceEnabled,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
	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.
	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"`

	// TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser
	// creatives. Must be between 1 and 10240.
	TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"`
}

type AccountActiveAdSummariesGetCall

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

func (*AccountActiveAdSummariesGetCall) Do

func (*AccountActiveAdSummariesGetCall) Fields

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

type AccountActiveAdSummariesService

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

func NewAccountActiveAdSummariesService

func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService

func (*AccountActiveAdSummariesService) Get

func (r *AccountActiveAdSummariesService) Get(profileId int64, summaryAccountId int64) *AccountActiveAdSummariesGetCall

Get: Gets the account's active ad summary by account ID.

type AccountActiveAdSummary

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.
	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"`
}

type AccountPermission

type AccountPermission struct {
	// AccountProfiles: Account profiles associated with this account
	// permission.
	//
	// Possible values are:
	// - "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.
	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"`
}

type AccountPermissionGroup

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"`
}

type AccountPermissionGroupsGetCall

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

func (*AccountPermissionGroupsGetCall) Do

func (*AccountPermissionGroupsGetCall) Fields

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

type AccountPermissionGroupsListCall

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

func (*AccountPermissionGroupsListCall) Do

func (*AccountPermissionGroupsListCall) Fields

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

type AccountPermissionGroupsListResponse

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"`
}

type AccountPermissionGroupsService

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

func NewAccountPermissionGroupsService

func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService

func (*AccountPermissionGroupsService) Get

Get: Gets one account permission group by ID.

func (*AccountPermissionGroupsService) List

List: Retrieves the list of account permission groups.

type AccountPermissionsGetCall

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

func (*AccountPermissionsGetCall) Do

func (*AccountPermissionsGetCall) Fields

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

type AccountPermissionsListCall

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

func (*AccountPermissionsListCall) Do

func (*AccountPermissionsListCall) Fields

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

type AccountPermissionsListResponse

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"`
}

type AccountPermissionsService

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

func NewAccountPermissionsService

func NewAccountPermissionsService(s *Service) *AccountPermissionsService

func (*AccountPermissionsService) Get

Get: Gets one account permission by ID.

func (*AccountPermissionsService) List

List: Retrieves the list of account permissions.

type AccountUserProfile

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.
	TraffickerType string `json:"traffickerType,omitempty"`

	// UserAccessType: User type of the user profile. This is a read-only
	// field that can be left blank.
	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"`
}

type AccountUserProfilesGetCall

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

func (*AccountUserProfilesGetCall) Do

func (*AccountUserProfilesGetCall) Fields

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

type AccountUserProfilesListCall

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

func (*AccountUserProfilesListCall) Active

Active sets the optional parameter "active": Select only active user profiles.

func (*AccountUserProfilesListCall) Do

func (*AccountUserProfilesListCall) Fields

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

func (*AccountUserProfilesListCall) Ids

Ids sets the optional parameter "ids": Select only user profiles with these IDs.

func (*AccountUserProfilesListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*AccountUserProfilesListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*AccountUserProfilesListCall) SearchString

func (c *AccountUserProfilesListCall) SearchString(searchString string) *AccountUserProfilesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, "user profile*2015" will return objects with names like "user profile June 2015", "user profile April 2015" or simply "user profile 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "user profile" will match objects with name "my user profile", "user profile 2015" or simply "user profile".

func (*AccountUserProfilesListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*AccountUserProfilesListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*AccountUserProfilesListCall) SubaccountId

func (c *AccountUserProfilesListCall) SubaccountId(subaccountId int64) *AccountUserProfilesListCall

SubaccountId sets the optional parameter "subaccountId": Select only user profiles with the specified subaccount ID.

func (*AccountUserProfilesListCall) UserRoleId

UserRoleId sets the optional parameter "userRoleId": Select only user profiles with the specified user role ID.

type AccountUserProfilesListResponse

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"`
}

type AccountUserProfilesPatchCall

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

func (*AccountUserProfilesPatchCall) Do

func (*AccountUserProfilesPatchCall) Fields

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

type AccountUserProfilesService

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

func NewAccountUserProfilesService

func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService

func (*AccountUserProfilesService) Get

Get: Gets one account user profile by ID.

func (*AccountUserProfilesService) List

List: Retrieves a list of account user profiles, possibly filtered.

func (*AccountUserProfilesService) Patch

func (r *AccountUserProfilesService) Patch(profileId int64, id int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall

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

func (*AccountUserProfilesService) Update

func (r *AccountUserProfilesService) Update(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall

Update: Updates an existing account user profile.

type AccountUserProfilesUpdateCall

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

func (*AccountUserProfilesUpdateCall) Do

func (*AccountUserProfilesUpdateCall) Fields

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

type AccountsGetCall

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

func (*AccountsGetCall) Do

func (c *AccountsGetCall) Do() (*Account, error)

func (*AccountsGetCall) Fields

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

type AccountsListCall

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

func (*AccountsListCall) Active

func (c *AccountsListCall) Active(active bool) *AccountsListCall

Active sets the optional parameter "active": Select only active accounts. Don't set this field to select both active and non-active accounts.

func (*AccountsListCall) Do

func (*AccountsListCall) Fields

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

func (*AccountsListCall) Ids

Ids sets the optional parameter "ids": Select only accounts with these IDs.

func (*AccountsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*AccountsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*AccountsListCall) SearchString

func (c *AccountsListCall) SearchString(searchString string) *AccountsListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "account*2015" will return objects with names like "account June 2015", "account April 2015" or simply "account 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "account" will match objects with name "my account", "account 2015" or simply "account".

func (*AccountsListCall) SortField

func (c *AccountsListCall) SortField(sortField string) *AccountsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*AccountsListCall) SortOrder

func (c *AccountsListCall) SortOrder(sortOrder string) *AccountsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type AccountsListResponse

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"`
}

type AccountsPatchCall

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

func (*AccountsPatchCall) Do

func (c *AccountsPatchCall) Do() (*Account, error)

func (*AccountsPatchCall) Fields

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

type AccountsService

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

func NewAccountsService

func NewAccountsService(s *Service) *AccountsService

func (*AccountsService) Get

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

Get: Gets one account by ID.

func (*AccountsService) List

func (r *AccountsService) List(profileId int64) *AccountsListCall

List: Retrieves the list of accounts, possibly filtered.

func (*AccountsService) Patch

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

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

func (*AccountsService) Update

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

Update: Updates an existing account.

type AccountsUpdateCall

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

func (*AccountsUpdateCall) Do

func (c *AccountsUpdateCall) Do() (*Account, error)

func (*AccountsUpdateCall) Fields

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

type Activities

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"`
}
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.
	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.
	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. WEB and WEB_INTERSTITIAL refer to rendering
	// either on desktop or on mobile devices for regular or interstitial
	// ads, respectively. APP and APP_INTERSTITIAL are for rendering in
	// mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video
	// ads developed with the VAST standard.
	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.
	// 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.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. 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"`

	// 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"`

	// Remarketing_list_expression: Applicable when type is
	// AD_SERVING_STANDARD_AD. Remarketing list targeting expression for
	// this ad.
	Remarketing_list_expression *ListTargetingExpression `json:"remarketing_list_expression,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"`

	// TechnologyTargeting: Technology platform targeting information for
	// this ad. 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).
	Type string `json:"type,omitempty"`
}

type AdsGetCall

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

func (*AdsGetCall) Do

func (c *AdsGetCall) Do() (*Ad, error)

func (*AdsGetCall) Fields

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

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

type AdsInsertCall

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

func (*AdsInsertCall) Do

func (c *AdsInsertCall) Do() (*Ad, error)

func (*AdsInsertCall) Fields

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

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

type AdsListCall

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

func (*AdsListCall) Active

func (c *AdsListCall) Active(active bool) *AdsListCall

Active sets the optional parameter "active": Select only active ads.

func (*AdsListCall) AdvertiserId

func (c *AdsListCall) AdvertiserId(advertiserId int64) *AdsListCall

AdvertiserId sets the optional parameter "advertiserId": Select only ads with this advertiser ID.

func (*AdsListCall) Archived

func (c *AdsListCall) Archived(archived bool) *AdsListCall

Archived sets the optional parameter "archived": Select only archived ads.

func (*AdsListCall) AudienceSegmentIds

func (c *AdsListCall) AudienceSegmentIds(audienceSegmentIds int64) *AdsListCall

AudienceSegmentIds sets the optional parameter "audienceSegmentIds": Select only ads with these audience segment IDs.

func (*AdsListCall) CampaignIds

func (c *AdsListCall) CampaignIds(campaignIds int64) *AdsListCall

CampaignIds sets the optional parameter "campaignIds": Select only ads with these campaign IDs.

func (*AdsListCall) Compatibility

func (c *AdsListCall) Compatibility(compatibility string) *AdsListCall

Compatibility sets the optional parameter "compatibility": Select default ads with the specified compatibility. Applicable when type is AD_SERVING_DEFAULT_AD. WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices for regular or interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers to rendering an in-stream video ads developed with the VAST standard.

func (*AdsListCall) CreativeIds

func (c *AdsListCall) CreativeIds(creativeIds int64) *AdsListCall

CreativeIds sets the optional parameter "creativeIds": Select only ads with these creative IDs assigned.

func (*AdsListCall) CreativeOptimizationConfigurationIds

func (c *AdsListCall) CreativeOptimizationConfigurationIds(creativeOptimizationConfigurationIds int64) *AdsListCall

CreativeOptimizationConfigurationIds sets the optional parameter "creativeOptimizationConfigurationIds": Select only ads with these creative optimization configuration IDs.

func (*AdsListCall) CreativeType

func (c *AdsListCall) CreativeType(creativeType string) *AdsListCall

CreativeType sets the optional parameter "creativeType": Select only ads with the specified creativeType.

func (*AdsListCall) Do

func (c *AdsListCall) Do() (*AdsListResponse, error)

func (*AdsListCall) DynamicClickTracker

func (c *AdsListCall) DynamicClickTracker(dynamicClickTracker bool) *AdsListCall

DynamicClickTracker sets the optional parameter "dynamicClickTracker": Select only dynamic click trackers. Applicable when type is AD_SERVING_CLICK_TRACKER. If true, select dynamic click trackers. If false, select static click trackers. Leave unset to select both.

func (*AdsListCall) Fields

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

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

func (*AdsListCall) Ids

func (c *AdsListCall) Ids(ids int64) *AdsListCall

Ids sets the optional parameter "ids": Select only ads with these IDs.

func (*AdsListCall) LandingPageIds

func (c *AdsListCall) LandingPageIds(landingPageIds int64) *AdsListCall

LandingPageIds sets the optional parameter "landingPageIds": Select only ads with these landing page IDs.

func (*AdsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*AdsListCall) OverriddenEventTagId

func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagId int64) *AdsListCall

OverriddenEventTagId sets the optional parameter "overriddenEventTagId": Select only ads with this event tag override ID.

func (*AdsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*AdsListCall) PlacementIds

func (c *AdsListCall) PlacementIds(placementIds int64) *AdsListCall

PlacementIds sets the optional parameter "placementIds": Select only ads with these placement IDs assigned.

func (*AdsListCall) RemarketingListIds

func (c *AdsListCall) RemarketingListIds(remarketingListIds int64) *AdsListCall

RemarketingListIds sets the optional parameter "remarketingListIds": Select only ads whose list targeting expression use these remarketing list IDs.

func (*AdsListCall) SearchString

func (c *AdsListCall) SearchString(searchString string) *AdsListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015" will return objects with names like "ad June 2015", "ad April 2015" or simply "ad 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "ad" will match objects with name "my ad", "ad 2015" or simply "ad".

func (*AdsListCall) SizeIds

func (c *AdsListCall) SizeIds(sizeIds int64) *AdsListCall

SizeIds sets the optional parameter "sizeIds": Select only ads with these size IDs.

func (*AdsListCall) SortField

func (c *AdsListCall) SortField(sortField string) *AdsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*AdsListCall) SortOrder

func (c *AdsListCall) SortOrder(sortOrder string) *AdsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*AdsListCall) SslCompliant

func (c *AdsListCall) SslCompliant(sslCompliant bool) *AdsListCall

SslCompliant sets the optional parameter "sslCompliant": Select only ads that are SSL-compliant.

func (*AdsListCall) SslRequired

func (c *AdsListCall) SslRequired(sslRequired bool) *AdsListCall

SslRequired sets the optional parameter "sslRequired": Select only ads that require SSL.

func (*AdsListCall) Type

func (c *AdsListCall) Type(type_ string) *AdsListCall

Type sets the optional parameter "type": Select only ads with these types.

type AdsListResponse

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"`
}

type AdsPatchCall

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

func (*AdsPatchCall) Do

func (c *AdsPatchCall) Do() (*Ad, error)

func (*AdsPatchCall) Fields

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

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

type AdsService

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

func NewAdsService

func NewAdsService(s *Service) *AdsService

func (*AdsService) Get

func (r *AdsService) Get(profileId int64, id int64) *AdsGetCall

Get: Gets one ad by ID.

func (*AdsService) Insert

func (r *AdsService) Insert(profileId int64, ad *Ad) *AdsInsertCall

Insert: Inserts a new ad.

func (*AdsService) List

func (r *AdsService) List(profileId int64) *AdsListCall

List: Retrieves a list of ads, possibly filtered.

func (*AdsService) Patch

func (r *AdsService) Patch(profileId int64, id int64, ad *Ad) *AdsPatchCall

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

func (*AdsService) Update

func (r *AdsService) Update(profileId int64, ad *Ad) *AdsUpdateCall

Update: Updates an existing ad.

type AdsUpdateCall

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

func (*AdsUpdateCall) Do

func (c *AdsUpdateCall) Do() (*Ad, error)

func (*AdsUpdateCall) Fields

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

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

type 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"`

	// Status: Status of this advertiser.
	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"`
}

type AdvertiserGroup

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"`
}

type AdvertiserGroupsDeleteCall

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

func (*AdvertiserGroupsDeleteCall) Do

func (*AdvertiserGroupsDeleteCall) Fields

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

type AdvertiserGroupsGetCall

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

func (*AdvertiserGroupsGetCall) Do

func (*AdvertiserGroupsGetCall) Fields

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

type AdvertiserGroupsInsertCall

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

func (*AdvertiserGroupsInsertCall) Do

func (*AdvertiserGroupsInsertCall) Fields

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

type AdvertiserGroupsListCall

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

func (*AdvertiserGroupsListCall) Do

func (*AdvertiserGroupsListCall) Fields

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

func (*AdvertiserGroupsListCall) Ids

Ids sets the optional parameter "ids": Select only advertiser groups with these IDs.

func (*AdvertiserGroupsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*AdvertiserGroupsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*AdvertiserGroupsListCall) SearchString

func (c *AdvertiserGroupsListCall) SearchString(searchString string) *AdvertiserGroupsListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "advertiser*2015" will return objects with names like "advertiser group June 2015", "advertiser group April 2015" or simply "advertiser group 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "advertisergroup" will match objects with name "my advertisergroup", "advertisergroup 2015" or simply "advertisergroup".

func (*AdvertiserGroupsListCall) SortField

func (c *AdvertiserGroupsListCall) SortField(sortField string) *AdvertiserGroupsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*AdvertiserGroupsListCall) SortOrder

func (c *AdvertiserGroupsListCall) SortOrder(sortOrder string) *AdvertiserGroupsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type AdvertiserGroupsListResponse

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"`
}

type AdvertiserGroupsPatchCall

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

func (*AdvertiserGroupsPatchCall) Do

func (*AdvertiserGroupsPatchCall) Fields

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

type AdvertiserGroupsService

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

func NewAdvertiserGroupsService

func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService

func (*AdvertiserGroupsService) Delete

Delete: Deletes an existing advertiser group.

func (*AdvertiserGroupsService) Get

Get: Gets one advertiser group by ID.

func (*AdvertiserGroupsService) Insert

func (r *AdvertiserGroupsService) Insert(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall

Insert: Inserts a new advertiser group.

func (*AdvertiserGroupsService) List

List: Retrieves a list of advertiser groups, possibly filtered.

func (*AdvertiserGroupsService) Patch

func (r *AdvertiserGroupsService) Patch(profileId int64, id int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall

Patch: Updates an existing advertiser group. This method supports patch semantics.

func (*AdvertiserGroupsService) Update

func (r *AdvertiserGroupsService) Update(profileId int64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall

Update: Updates an existing advertiser group.

type AdvertiserGroupsUpdateCall

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

func (*AdvertiserGroupsUpdateCall) Do

func (*AdvertiserGroupsUpdateCall) Fields

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

type AdvertisersGetCall

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

func (*AdvertisersGetCall) Do

func (c *AdvertisersGetCall) Do() (*Advertiser, error)

func (*AdvertisersGetCall) Fields

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

type AdvertisersInsertCall

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

func (*AdvertisersInsertCall) Do

func (*AdvertisersInsertCall) Fields

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

type AdvertisersListCall

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

func (*AdvertisersListCall) AdvertiserGroupIds

func (c *AdvertisersListCall) AdvertiserGroupIds(advertiserGroupIds int64) *AdvertisersListCall

AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select only advertisers with these advertiser group IDs.

func (*AdvertisersListCall) Do

func (*AdvertisersListCall) Fields

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

func (*AdvertisersListCall) FloodlightConfigurationIds

func (c *AdvertisersListCall) FloodlightConfigurationIds(floodlightConfigurationIds int64) *AdvertisersListCall

FloodlightConfigurationIds sets the optional parameter "floodlightConfigurationIds": Select only advertisers with these floodlight configuration IDs.

func (*AdvertisersListCall) Ids

Ids sets the optional parameter "ids": Select only advertisers with these IDs.

func (*AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly

func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnly bool) *AdvertisersListCall

IncludeAdvertisersWithoutGroupsOnly sets the optional parameter "includeAdvertisersWithoutGroupsOnly": Select only advertisers which do not belong to any advertiser group.

func (*AdvertisersListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*AdvertisersListCall) OnlyParent

func (c *AdvertisersListCall) OnlyParent(onlyParent bool) *AdvertisersListCall

OnlyParent sets the optional parameter "onlyParent": Select only advertisers which use another advertiser's floodlight configuration.

func (*AdvertisersListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*AdvertisersListCall) SearchString

func (c *AdvertisersListCall) SearchString(searchString string) *AdvertisersListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "advertiser*2015" will return objects with names like "advertiser June 2015", "advertiser April 2015" or simply "advertiser 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "advertiser" will match objects with name "my advertiser", "advertiser 2015" or simply "advertiser".

func (*AdvertisersListCall) SortField

func (c *AdvertisersListCall) SortField(sortField string) *AdvertisersListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*AdvertisersListCall) SortOrder

func (c *AdvertisersListCall) SortOrder(sortOrder string) *AdvertisersListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*AdvertisersListCall) Status

func (c *AdvertisersListCall) Status(status string) *AdvertisersListCall

Status sets the optional parameter "status": Select only advertisers with the specified status.

func (*AdvertisersListCall) SubaccountId

func (c *AdvertisersListCall) SubaccountId(subaccountId int64) *AdvertisersListCall

SubaccountId sets the optional parameter "subaccountId": Select only advertisers with these subaccount IDs.

type AdvertisersListResponse

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"`
}

type AdvertisersPatchCall

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

func (*AdvertisersPatchCall) Do

func (*AdvertisersPatchCall) Fields

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

type AdvertisersService

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

func NewAdvertisersService

func NewAdvertisersService(s *Service) *AdvertisersService

func (*AdvertisersService) Get

func (r *AdvertisersService) Get(profileId int64, id int64) *AdvertisersGetCall

Get: Gets one advertiser by ID.

func (*AdvertisersService) Insert

func (r *AdvertisersService) Insert(profileId int64, advertiser *Advertiser) *AdvertisersInsertCall

Insert: Inserts a new advertiser.

func (*AdvertisersService) List

func (r *AdvertisersService) List(profileId int64) *AdvertisersListCall

List: Retrieves a list of advertisers, possibly filtered.

func (*AdvertisersService) Patch

func (r *AdvertisersService) Patch(profileId int64, id int64, advertiser *Advertiser) *AdvertisersPatchCall

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

func (*AdvertisersService) Update

func (r *AdvertisersService) Update(profileId int64, advertiser *Advertiser) *AdvertisersUpdateCall

Update: Updates an existing advertiser.

type AdvertisersUpdateCall

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

func (*AdvertisersUpdateCall) Do

func (*AdvertisersUpdateCall) Fields

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

type AudienceSegment

type AudienceSegment struct {
	// Allocation: Weight allocated to this segment. Must be between 1 and
	// 1000. The weight assigned will be understood in proportion to the
	// weights assigned to other segments in the same segment group.
	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"`
}

type AudienceSegmentGroup

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"`
}

type Browser

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"`
}

type BrowsersListCall

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

func (*BrowsersListCall) Do

func (*BrowsersListCall) Fields

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

type BrowsersListResponse

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"`
}

type BrowsersService

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

func NewBrowsersService

func NewBrowsersService(s *Service) *BrowsersService

func (*BrowsersService) List

func (r *BrowsersService) List(profileId int64) *BrowsersListCall

List: Retrieves a list of browsers.

type 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"`

	// 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 DCM 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"`

	// ComscoreVceEnabled: Whether comScore vCE reports are enabled for this
	// campaign.
	ComscoreVceEnabled bool `json:"comscoreVceEnabled,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"`

	// 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"`
}

type CampaignCreativeAssociation

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"`
}

type CampaignCreativeAssociationsInsertCall

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

func (*CampaignCreativeAssociationsInsertCall) Do

func (*CampaignCreativeAssociationsInsertCall) Fields

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

type CampaignCreativeAssociationsListCall

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

func (*CampaignCreativeAssociationsListCall) Do

func (*CampaignCreativeAssociationsListCall) Fields

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

func (*CampaignCreativeAssociationsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*CampaignCreativeAssociationsListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*CampaignCreativeAssociationsListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type CampaignCreativeAssociationsListResponse

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"`
}

type CampaignCreativeAssociationsService

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

func NewCampaignCreativeAssociationsService

func NewCampaignCreativeAssociationsService(s *Service) *CampaignCreativeAssociationsService

func (*CampaignCreativeAssociationsService) Insert

func (r *CampaignCreativeAssociationsService) Insert(profileId int64, campaignId int64, campaigncreativeassociation *CampaignCreativeAssociation) *CampaignCreativeAssociationsInsertCall

Insert: Associates a creative with the specified campaign. This method creates a default ad with dimensions matching the creative in the campaign if such a default ad does not exist already.

func (*CampaignCreativeAssociationsService) List

List: Retrieves the list of creative IDs associated with the specified campaign.

type CampaignsGetCall

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

func (*CampaignsGetCall) Do

func (c *CampaignsGetCall) Do() (*Campaign, error)

func (*CampaignsGetCall) Fields

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

type CampaignsInsertCall

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

func (*CampaignsInsertCall) Do

func (c *CampaignsInsertCall) Do() (*Campaign, error)

func (*CampaignsInsertCall) Fields

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

type CampaignsListCall

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

func (*CampaignsListCall) AdvertiserGroupIds

func (c *CampaignsListCall) AdvertiserGroupIds(advertiserGroupIds int64) *CampaignsListCall

AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Select only campaigns whose advertisers belong to these advertiser groups.

func (*CampaignsListCall) AdvertiserIds

func (c *CampaignsListCall) AdvertiserIds(advertiserIds int64) *CampaignsListCall

AdvertiserIds sets the optional parameter "advertiserIds": Select only campaigns that belong to these advertisers.

func (*CampaignsListCall) Archived

func (c *CampaignsListCall) Archived(archived bool) *CampaignsListCall

Archived sets the optional parameter "archived": Select only archived campaigns. Don't set this field to select both archived and non-archived campaigns.

func (*CampaignsListCall) AtLeastOneOptimizationActivity

func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivity bool) *CampaignsListCall

AtLeastOneOptimizationActivity sets the optional parameter "atLeastOneOptimizationActivity": Select only campaigns that have at least one optimization activity.

func (*CampaignsListCall) Do

func (*CampaignsListCall) ExcludedIds

func (c *CampaignsListCall) ExcludedIds(excludedIds int64) *CampaignsListCall

ExcludedIds sets the optional parameter "excludedIds": Exclude campaigns with these IDs.

func (*CampaignsListCall) Fields

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

func (*CampaignsListCall) Ids

Ids sets the optional parameter "ids": Select only campaigns with these IDs.

func (*CampaignsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*CampaignsListCall) OverriddenEventTagId

func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagId int64) *CampaignsListCall

OverriddenEventTagId sets the optional parameter "overriddenEventTagId": Select only campaigns that have overridden this event tag ID.

func (*CampaignsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*CampaignsListCall) SearchString

func (c *CampaignsListCall) SearchString(searchString string) *CampaignsListCall

SearchString sets the optional parameter "searchString": Allows searching for campaigns by name or ID. Wildcards (*) are allowed. For example, "campaign*2015" will return campaigns with names like "campaign June 2015", "campaign April 2015" or simply "campaign 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "campaign" will match campaigns with name "my campaign", "campaign 2015" or simply "campaign".

func (*CampaignsListCall) SortField

func (c *CampaignsListCall) SortField(sortField string) *CampaignsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*CampaignsListCall) SortOrder

func (c *CampaignsListCall) SortOrder(sortOrder string) *CampaignsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*CampaignsListCall) SubaccountId

func (c *CampaignsListCall) SubaccountId(subaccountId int64) *CampaignsListCall

SubaccountId sets the optional parameter "subaccountId": Select only campaigns that belong to this subaccount.

type CampaignsListResponse

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"`
}

type CampaignsPatchCall

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

func (*CampaignsPatchCall) Do

func (c *CampaignsPatchCall) Do() (*Campaign, error)

func (*CampaignsPatchCall) Fields

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

type CampaignsService

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

func NewCampaignsService

func NewCampaignsService(s *Service) *CampaignsService

func (*CampaignsService) Get

func (r *CampaignsService) Get(profileId int64, id int64) *CampaignsGetCall

Get: Gets one campaign by ID.

func (*CampaignsService) Insert

func (r *CampaignsService) Insert(profileId int64, defaultLandingPageName string, defaultLandingPageUrl string, campaign *Campaign) *CampaignsInsertCall

Insert: Inserts a new campaign.

func (*CampaignsService) List

func (r *CampaignsService) List(profileId int64) *CampaignsListCall

List: Retrieves a list of campaigns, possibly filtered.

func (*CampaignsService) Patch

func (r *CampaignsService) Patch(profileId int64, id int64, campaign *Campaign) *CampaignsPatchCall

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

func (*CampaignsService) Update

func (r *CampaignsService) Update(profileId int64, campaign *Campaign) *CampaignsUpdateCall

Update: Updates an existing campaign.

type CampaignsUpdateCall

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

func (*CampaignsUpdateCall) Do

func (c *CampaignsUpdateCall) Do() (*Campaign, error)

func (*CampaignsUpdateCall) Fields

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

type ChangeLog

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"`
}

type ChangeLogsGetCall

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

func (*ChangeLogsGetCall) Do

func (c *ChangeLogsGetCall) Do() (*ChangeLog, error)

func (*ChangeLogsGetCall) Fields

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

type ChangeLogsListCall

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

func (*ChangeLogsListCall) Action

func (c *ChangeLogsListCall) Action(action string) *ChangeLogsListCall

Action sets the optional parameter "action": Select only change logs with the specified action.

func (*ChangeLogsListCall) Do

func (*ChangeLogsListCall) Fields

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

func (*ChangeLogsListCall) Ids

Ids sets the optional parameter "ids": Select only change logs with these IDs.

func (*ChangeLogsListCall) MaxChangeTime

func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTime string) *ChangeLogsListCall

MaxChangeTime sets the optional parameter "maxChangeTime": Select only change logs whose change time is before the specified maxChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.

func (*ChangeLogsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*ChangeLogsListCall) MinChangeTime

func (c *ChangeLogsListCall) MinChangeTime(minChangeTime string) *ChangeLogsListCall

MinChangeTime sets the optional parameter "minChangeTime": Select only change logs whose change time is before the specified minChangeTime.The time should be formatted as an RFC3339 date/time string. For example, for 10:54 PM on July 18th, 2015, in the America/New York time zone, the format is "2015-07-18T22:54:00-04:00". In other words, the year, month, day, the letter T, the hour (24-hour clock system), minute, second, and then the time zone offset.

func (*ChangeLogsListCall) ObjectIds

func (c *ChangeLogsListCall) ObjectIds(objectIds int64) *ChangeLogsListCall

ObjectIds sets the optional parameter "objectIds": Select only change logs with these object IDs.

func (*ChangeLogsListCall) ObjectType

func (c *ChangeLogsListCall) ObjectType(objectType string) *ChangeLogsListCall

ObjectType sets the optional parameter "objectType": Select only change logs with the specified object type.

func (*ChangeLogsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*ChangeLogsListCall) SearchString

func (c *ChangeLogsListCall) SearchString(searchString string) *ChangeLogsListCall

SearchString sets the optional parameter "searchString": Select only change logs whose object ID, user name, old or new values match the search string.

func (*ChangeLogsListCall) UserProfileIds

func (c *ChangeLogsListCall) UserProfileIds(userProfileIds int64) *ChangeLogsListCall

UserProfileIds sets the optional parameter "userProfileIds": Select only change logs with these user profile IDs.

type ChangeLogsListResponse

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"`
}

type ChangeLogsService

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

func NewChangeLogsService

func NewChangeLogsService(s *Service) *ChangeLogsService

func (*ChangeLogsService) Get

func (r *ChangeLogsService) Get(profileId int64, id int64) *ChangeLogsGetCall

Get: Gets one change log by ID.

func (*ChangeLogsService) List

func (r *ChangeLogsService) List(profileId int64) *ChangeLogsListCall

List: Retrieves a list of change logs.

type CitiesListCall

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

func (*CitiesListCall) CountryDartIds

func (c *CitiesListCall) CountryDartIds(countryDartIds int64) *CitiesListCall

CountryDartIds sets the optional parameter "countryDartIds": Select only cities from these countries.

func (*CitiesListCall) DartIds

func (c *CitiesListCall) DartIds(dartIds int64) *CitiesListCall

DartIds sets the optional parameter "dartIds": Select only cities with these DART IDs.

func (*CitiesListCall) Do

func (*CitiesListCall) Fields

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

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

func (*CitiesListCall) NamePrefix

func (c *CitiesListCall) NamePrefix(namePrefix string) *CitiesListCall

NamePrefix sets the optional parameter "namePrefix": Select only cities with names starting with this prefix.

func (*CitiesListCall) RegionDartIds

func (c *CitiesListCall) RegionDartIds(regionDartIds int64) *CitiesListCall

RegionDartIds sets the optional parameter "regionDartIds": Select only cities from these regions.

type CitiesListResponse

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"`
}

type CitiesService

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

func NewCitiesService

func NewCitiesService(s *Service) *CitiesService

func (*CitiesService) List

func (r *CitiesService) List(profileId int64) *CitiesListCall

List: Retrieves a list of cities, possibly filtered.

type City

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"`
}

type ClickTag

type ClickTag struct {
	// EventName: Advertiser event name associated with the click tag. This
	// field is used by ENHANCED_BANNER, ENHANCED_IMAGE, and HTML5_BANNER
	// creatives.
	EventName string `json:"eventName,omitempty"`

	// Name: Parameter name for the specified click tag. For ENHANCED_IMAGE
	// creative assets, this field must match the value of the creative
	// asset's creativeAssetId.name field.
	Name string `json:"name,omitempty"`

	// Value: Parameter value for the specified click tag. This field
	// contains a click-through url.
	Value string `json:"value,omitempty"`
}

type ClickThroughUrl

type ClickThroughUrl struct {
	// 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"`
}

type ClickThroughUrlSuffixProperties

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"`
}

type CompanionClickThroughOverride

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"`
}

type CompatibleFields

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"`
}

type ConnectionType

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"`
}

type ConnectionTypesListCall

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

func (*ConnectionTypesListCall) Do

func (*ConnectionTypesListCall) Fields

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

type ConnectionTypesListResponse

type ConnectionTypesListResponse struct {
	// ConnectionTypes: Connection Type Collection.
	ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#connectionTypesListResponse".
	Kind string `json:"kind,omitempty"`
}

type ConnectionTypesService

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

func NewConnectionTypesService

func NewConnectionTypesService(s *Service) *ConnectionTypesService

func (*ConnectionTypesService) List

List: Retrieves a list of connection types.

type ContentCategoriesDeleteCall

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

func (*ContentCategoriesDeleteCall) Do

func (*ContentCategoriesDeleteCall) Fields

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

type ContentCategoriesGetCall

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

func (*ContentCategoriesGetCall) Do

func (*ContentCategoriesGetCall) Fields

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

type ContentCategoriesInsertCall

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

func (*ContentCategoriesInsertCall) Do

func (*ContentCategoriesInsertCall) Fields

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

type ContentCategoriesListCall

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

func (*ContentCategoriesListCall) Do

func (*ContentCategoriesListCall) Fields

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

func (*ContentCategoriesListCall) Ids

Ids sets the optional parameter "ids": Select only content categories with these IDs.

func (*ContentCategoriesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*ContentCategoriesListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*ContentCategoriesListCall) SearchString

func (c *ContentCategoriesListCall) SearchString(searchString string) *ContentCategoriesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "contentcategory*2015" will return objects with names like "contentcategory June 2015", "contentcategory April 2015" or simply "contentcategory 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "contentcategory" will match objects with name "my contentcategory", "contentcategory 2015" or simply "contentcategory".

func (*ContentCategoriesListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*ContentCategoriesListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type ContentCategoriesListResponse

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"`
}

type ContentCategoriesPatchCall

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

func (*ContentCategoriesPatchCall) Do

func (*ContentCategoriesPatchCall) Fields

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

type ContentCategoriesService

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

func NewContentCategoriesService

func NewContentCategoriesService(s *Service) *ContentCategoriesService

func (*ContentCategoriesService) Delete

Delete: Deletes an existing content category.

func (*ContentCategoriesService) Get

Get: Gets one content category by ID.

func (*ContentCategoriesService) Insert

func (r *ContentCategoriesService) Insert(profileId int64, contentcategory *ContentCategory) *ContentCategoriesInsertCall

Insert: Inserts a new content category.

func (*ContentCategoriesService) List

List: Retrieves a list of content categories, possibly filtered.

func (*ContentCategoriesService) Patch

func (r *ContentCategoriesService) Patch(profileId int64, id int64, contentcategory *ContentCategory) *ContentCategoriesPatchCall

Patch: Updates an existing content category. This method supports patch semantics.

func (*ContentCategoriesService) Update

func (r *ContentCategoriesService) Update(profileId int64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall

Update: Updates an existing content category.

type ContentCategoriesUpdateCall

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

func (*ContentCategoriesUpdateCall) Do

func (*ContentCategoriesUpdateCall) Fields

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

type ContentCategory

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"`

	// Description: Description of this content category.
	Description string `json:"description,omitempty"`

	// 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"`
}

type CountriesGetCall

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

func (*CountriesGetCall) Do

func (c *CountriesGetCall) Do() (*Country, error)

func (*CountriesGetCall) Fields

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

type CountriesListCall

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

func (*CountriesListCall) Do

func (*CountriesListCall) Fields

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

type CountriesListResponse

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"`
}

type CountriesService

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

func NewCountriesService

func NewCountriesService(s *Service) *CountriesService

func (*CountriesService) Get

func (r *CountriesService) Get(profileId int64, dartId int64) *CountriesGetCall

Get: Gets one country by ID.

func (*CountriesService) List

func (r *CountriesService) List(profileId int64) *CountriesListCall

List: Retrieves a list of countries.

type Country

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"`
}

type Creative

type Creative struct {
	// AccountId: Account ID of this creative. This field, if left unset,
	// will be auto-generated for both insert and update operations.
	// Applicable to all creative types.
	AccountId int64 `json:"accountId,omitempty,string"`

	// Active: Whether the creative is active. Applicable to all creative
	// types.
	Active bool `json:"active,omitempty"`

	// AdParameters: Ad parameters user for VPAID creative. This is a
	// read-only field. Applicable to the following creative types: all
	// VPAID.
	AdParameters string `json:"adParameters,omitempty"`

	// AdTagKeys: Keywords for a Rich Media creative. Keywords let you
	// customize the creative settings of a Rich Media ad running on your
	// site without having to contact the advertiser. You can use keywords
	// to dynamically change the look or functionality of a creative.
	// Applicable to the following creative types: all RICH_MEDIA, and all
	// VPAID.
	AdTagKeys []string `json:"adTagKeys,omitempty"`

	// AdvertiserId: Advertiser ID of this creative. This is a required
	// field. Applicable to all creative types.
	AdvertiserId int64 `json:"advertiserId,omitempty,string"`

	// AllowScriptAccess: Whether script access is allowed for this
	// creative. This is a read-only and deprecated field which will
	// automatically be set to true on update. Applicable to the following
	// creative types: FLASH_INPAGE.
	AllowScriptAccess bool `json:"allowScriptAccess,omitempty"`

	// Archived: Whether the creative is archived. Applicable to all
	// creative types.
	Archived bool `json:"archived,omitempty"`

	// ArtworkType: Type of artwork used for the creative. This is a
	// read-only field. Applicable to the following creative types: all
	// RICH_MEDIA, and all VPAID.
	ArtworkType string `json:"artworkType,omitempty"`

	// AuthoringTool: Authoring tool for HTML5 banner creatives. This is a
	// read-only field. Applicable to the following creative types:
	// HTML5_BANNER.
	AuthoringTool string `json:"authoringTool,omitempty"`

	// Auto_advance_images: Whether images are automatically advanced for
	// enhanced image creatives. Applicable to the following creative types:
	// ENHANCED_IMAGE.
	Auto_advance_images bool `json:"auto_advance_images,omitempty"`

	// BackgroundColor: The 6-character HTML color code, beginning with #,
	// for the background of the window area where the Flash file is
	// displayed. Default is white. Applicable to the following creative
	// types: FLASH_INPAGE.
	BackgroundColor string `json:"backgroundColor,omitempty"`

	// BackupImageClickThroughUrl: Click-through URL for backup image.
	// Applicable to the following creative types: ENHANCED_BANNER,
	// FLASH_INPAGE, and HTML5_BANNER.
	BackupImageClickThroughUrl string `json:"backupImageClickThroughUrl,omitempty"`

	// BackupImageFeatures: List of feature dependencies that will cause a
	// backup image to be served if the browser that serves the ad does not
	// support them. Feature dependencies are features that a browser must
	// be able to support in order to render your HTML5 creative asset
	// correctly. This field is initially auto-generated to contain all
	// features detected by DCM for all the assets of this creative and can
	// then be modified by the client. To reset this field, copy over all
	// the creativeAssets' detected features. Applicable to the following
	// creative types: ENHANCED_BANNER and HTML5_BANNER.
	BackupImageFeatures []string `json:"backupImageFeatures,omitempty"`

	// BackupImageReportingLabel: Reporting label used for HTML5 banner
	// backup image. Applicable to the following creative types:
	// ENHANCED_BANNER.
	BackupImageReportingLabel string `json:"backupImageReportingLabel,omitempty"`

	// BackupImageTargetWindow: Target window for backup image. Applicable
	// to the following creative types: ENHANCED_BANNER, FLASH_INPAGE, and
	// HTML5_BANNER.
	BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"`

	// ClickTags: Click tags of the creative. For ENHANCED_BANNER,
	// FLASH_INPAGE, and HTML5_BANNER creatives, this is a subset of
	// detected click tags for the assets associated with this creative.
	// After creating a flash asset, detected click tags will be returned in
	// the creativeAssetMetadata. When inserting the creative, populate the
	// creative clickTags field using the creativeAssetMetadata.clickTags
	// field. For ENHANCED_IMAGE creatives, there should be exactly one
	// entry in this list for each image creative asset. A click tag is
	// matched with a corresponding creative asset by matching the
	// clickTag.name field with the creativeAsset.assetIdentifier.name
	// field. Applicable to the following creative types: ENHANCED_BANNER,
	// ENHANCED_IMAGE, FLASH_INPAGE, HTML5_BANNER.
	ClickTags []*ClickTag `json:"clickTags,omitempty"`

	// CommercialId: Industry standard ID assigned to creative for reach and
	// frequency. Applicable to the following creative types: INSTREAM_VIDEO
	// and all VPAID.
	CommercialId string `json:"commercialId,omitempty"`

	// CompanionCreatives: List of companion creatives assigned to an
	// in-Stream videocreative. Acceptable values include IDs of existing
	// flash and image creatives. Applicable to the following creative
	// types: INSTREAM_VIDEO and all VPAID.
	CompanionCreatives googleapi.Int64s `json:"companionCreatives,omitempty"`

	// Compatibility: Compatibilities associated with this creative. This is
	// a read-only field. WEB and WEB_INTERSTITIAL refer to rendering either
	// on desktop or on mobile devices 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. Applicable to all creative
	// types.
	//
	// Acceptable values are:
	// - "APP"
	// - "APP_INTERSTITIAL"
	// -
	// "IN_STREAM_VIDEO"
	// - "WEB"
	// - "WEB_INTERSTITIAL"
	Compatibility []string `json:"compatibility,omitempty"`

	// CounterCustomEvents: List of counter events configured for the
	// creative. Applicable to the following creative types: all RICH_MEDIA,
	// and all VPAID.
	CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"`

	// CreativeAssets: Assets associated with a creative. Applicable to all
	// but the following creative types: INTERNAL_REDIRECT,
	// INTERSTITIAL_INTERNAL_REDIRECT, and REDIRECT
	CreativeAssets []*CreativeAsset `json:"creativeAssets,omitempty"`

	// CreativeFieldAssignments: Creative field assignments for this
	// creative. Applicable to all creative types.
	CreativeFieldAssignments []*CreativeFieldAssignment `json:"creativeFieldAssignments,omitempty"`

	// CustomKeyValues: Custom key-values for a Rich Media creative.
	// Key-values let you customize the creative settings of a Rich Media ad
	// running on your site without having to contact the advertiser. You
	// can use key-values to dynamically change the look or functionality of
	// a creative. Applicable to the following creative types: all
	// RICH_MEDIA, and all VPAID.
	CustomKeyValues []string `json:"customKeyValues,omitempty"`

	// ExitCustomEvents: List of exit events configured for the creative.
	// Applicable to the following creative types: all RICH_MEDIA, and all
	// VPAID.
	ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"`

	// FsCommand: OpenWindow FSCommand of this creative. This lets the SWF
	// file communicate with either Flash Player or the program hosting
	// Flash Player, such as a web browser. This is only triggered if
	// allowScriptAccess field is true. Applicable to the following creative
	// types: FLASH_INPAGE.
	FsCommand *FsCommand `json:"fsCommand,omitempty"`

	// HtmlCode: HTML code for the creative. This is a required field when
	// applicable. This field is ignored if htmlCodeLocked is false.
	// Applicable to the following creative types: all CUSTOM, FLASH_INPAGE,
	// and HTML5_BANNER, and all RICH_MEDIA.
	HtmlCode string `json:"htmlCode,omitempty"`

	// HtmlCodeLocked: Whether HTML code is DCM generated or manually
	// entered. Set to true to ignore changes to htmlCode. Applicable to the
	// following creative types: FLASH_INPAGE and HTML5_BANNER.
	HtmlCodeLocked bool `json:"htmlCodeLocked,omitempty"`

	// Id: ID of this creative. This is a read-only, auto-generated field.
	// Applicable to all creative types.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this creative. This
	// is a read-only field. Applicable to all creative types.
	IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#creative".
	Kind string `json:"kind,omitempty"`

	// LastModifiedInfo: Creative last modification information. This is a
	// read-only field. Applicable to all creative types.
	LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`

	// LatestTraffickedCreativeId: Latest Studio trafficked creative ID
	// associated with rich media and VPAID creatives. This is a read-only
	// field. Applicable to the following creative types: all RICH_MEDIA,
	// and all VPAID.
	LatestTraffickedCreativeId int64 `json:"latestTraffickedCreativeId,omitempty,string"`

	// Name: Name of the creative. This is a required field and must be less
	// than 256 characters long. Applicable to all creative types.
	Name string `json:"name,omitempty"`

	// OverrideCss: Override CSS value for rich media creatives. Applicable
	// to the following creative types: all RICH_MEDIA.
	OverrideCss string `json:"overrideCss,omitempty"`

	// RedirectUrl: URL of hosted image or another ad tag. This is a
	// required field when applicable. Applicable to the following creative
	// types: INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and
	// REDIRECT
	RedirectUrl string `json:"redirectUrl,omitempty"`

	// RenderingId: ID of current rendering version. This is a read-only
	// field. Applicable to all creative types.
	RenderingId int64 `json:"renderingId,omitempty,string"`

	// RenderingIdDimensionValue: Dimension value for the rendering ID of
	// this creative. This is a read-only field. Applicable to all creative
	// types.
	RenderingIdDimensionValue *DimensionValue `json:"renderingIdDimensionValue,omitempty"`

	// RequiredFlashPluginVersion: The minimum required Flash plugin version
	// for this creative. For example, 11.2.202.235. This is a read-only
	// field. Applicable to the following creative types: all RICH_MEDIA,
	// and all VPAID.
	RequiredFlashPluginVersion string `json:"requiredFlashPluginVersion,omitempty"`

	// RequiredFlashVersion: The internal Flash version for this creative as
	// calculated by DoubleClick Studio. This is a read-only field.
	// Applicable to the following creative types: FLASH_INPAGE,
	// ENHANCED_BANNER, all RICH_MEDIA, and all VPAID.
	RequiredFlashVersion int64 `json:"requiredFlashVersion,omitempty"`

	// Size: Size associated with this creative. When inserting or updating
	// a creative either the size ID field or size width and height fields
	// can be used. This is a required field when applicable; however for
	// IMAGE and FLASH_INPAGE creatives, if left blank, this field will be
	// automatically set using the actual size of the associated image
	// assets. Applicable to the following creative types: ENHANCED_BANNER,
	// ENHANCED_IMAGE, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all
	// RICH_MEDIA.
	Size *Size `json:"size,omitempty"`

	// Skippable: Whether the user can choose to skip the creative.
	// Applicable to the following creative types: INSTREAM_VIDEO.
	Skippable bool `json:"skippable,omitempty"`

	// SslCompliant: Whether the creative is SSL-compliant. This is a
	// read-only field. Applicable to all creative types.
	SslCompliant bool `json:"sslCompliant,omitempty"`

	// StudioAdvertiserId: Studio advertiser ID associated with rich media
	// and VPAID creatives. This is a read-only field. Applicable to the
	// following creative types: all RICH_MEDIA, and all VPAID.
	StudioAdvertiserId int64 `json:"studioAdvertiserId,omitempty,string"`

	// StudioCreativeId: Studio creative ID associated with rich media and
	// VPAID creatives. This is a read-only field. Applicable to the
	// following creative types: all RICH_MEDIA, and all VPAID.
	StudioCreativeId int64 `json:"studioCreativeId,omitempty,string"`

	// StudioTraffickedCreativeId: Studio trafficked creative ID associated
	// with rich media and VPAID creatives. This is a read-only field.
	// Applicable to the following creative types: all RICH_MEDIA, and all
	// VPAID.
	StudioTraffickedCreativeId int64 `json:"studioTraffickedCreativeId,omitempty,string"`

	// SubaccountId: Subaccount ID of this creative. This field, if left
	// unset, will be auto-generated for both insert and update operations.
	// Applicable to all creative types.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`

	// ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record
	// backup image impressions. Applicable to the following creative types:
	// all RICH_MEDIA
	ThirdPartyBackupImageImpressionsUrl string `json:"thirdPartyBackupImageImpressionsUrl,omitempty"`

	// ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record
	// rich media impressions. Applicable to the following creative types:
	// all RICH_MEDIA
	ThirdPartyRichMediaImpressionsUrl string `json:"thirdPartyRichMediaImpressionsUrl,omitempty"`

	// ThirdPartyUrls: Third-party URLs for tracking in-stream video
	// creative events. Applicable to the following creative types:
	// INSTREAM_VIDEO and all VPAID.
	ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"`

	// TimerCustomEvents: List of timer events configured for the creative.
	// Applicable to the following creative types: all RICH_MEDIA, and all
	// VPAID.
	TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"`

	// TotalFileSize: Combined size of all creative assets. This is a
	// read-only field. Applicable to the following creative types: all
	// RICH_MEDIA, and all VPAID.
	TotalFileSize int64 `json:"totalFileSize,omitempty,string"`

	// Type: Type of this creative.This is a required field. Applicable to
	// all creative types.
	Type string `json:"type,omitempty"`

	// Version: The version number helps you keep track of multiple versions
	// of your creative in your reports. The version number will always be
	// auto-generated during insert operations to start at 1. For tracking
	// creatives the version cannot be incremented and will always remain at
	// 1. For all other creative types the version can be incremented only
	// by 1 during update operations. In addition, the version will be
	// automatically incremented by 1 when undergoing Rich Media creative
	// merging. Applicable to all creative types.
	Version int64 `json:"version,omitempty"`

	// VideoDescription: Description of the video ad. Applicable to the
	// following creative types: INSTREAM_VIDEO and all VPAID.
	VideoDescription string `json:"videoDescription,omitempty"`

	// VideoDuration: Creative video duration in seconds. This is a
	// read-only field. Applicable to the following creative types:
	// INSTREAM_VIDEO, all RICH_MEDIA, and all VPAID.
	VideoDuration float64 `json:"videoDuration,omitempty"`
}

type CreativeAsset

type CreativeAsset struct {
	// ActionScript3: Whether ActionScript3 is enabled for the flash asset.
	// This is a read-only field. Applicable to the following creative
	// types: FLASH_INPAGE and ENHANCED_BANNER.
	ActionScript3 bool `json:"actionScript3,omitempty"`

	// Active: Whether the video asset is active. This is a read-only field
	// for VPAID_NON_LINEAR assets. Applicable to the following creative
	// types: INSTREAM_VIDEO and all VPAID.
	Active bool `json:"active,omitempty"`

	// Alignment: Possible alignments for an asset. This is a read-only
	// field. Applicable to the following creative types:
	// RICH_MEDIA_MULTI_FLOATING.
	Alignment string `json:"alignment,omitempty"`

	// ArtworkType: Artwork type of rich media creative. This is a read-only
	// field. Applicable to the following creative types: all RICH_MEDIA.
	ArtworkType string `json:"artworkType,omitempty"`

	// AssetIdentifier: Identifier of this asset. This is the same
	// identifier returned during creative asset insert operation. This is a
	// required field. Applicable to all but the following creative types:
	// all REDIRECT and TRACKING_TEXT.
	AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`

	// BackupImageExit: Exit event configured for the backup image.
	// Applicable to the following creative types: all RICH_MEDIA.
	BackupImageExit *CreativeCustomEvent `json:"backupImageExit,omitempty"`

	// BitRate: Detected bit-rate for video asset. This is a read-only
	// field. Applicable to the following creative types: INSTREAM_VIDEO and
	// all VPAID.
	BitRate int64 `json:"bitRate,omitempty"`

	// ChildAssetType: Rich media child asset type. This is a read-only
	// field. Applicable to the following creative types: all VPAID.
	ChildAssetType string `json:"childAssetType,omitempty"`

	// CollapsedSize: Size of an asset when collapsed. This is a read-only
	// field. Applicable to the following creative types: all RICH_MEDIA and
	// all VPAID. Additionally, applicable to assets whose displayType is
	// ASSET_DISPLAY_TYPE_EXPANDING or ASSET_DISPLAY_TYPE_PEEL_DOWN.
	CollapsedSize *Size `json:"collapsedSize,omitempty"`

	// CustomStartTimeValue: Custom start time in seconds for making the
	// asset visible. Applicable to the following creative types: all
	// RICH_MEDIA.
	CustomStartTimeValue int64 `json:"customStartTimeValue,omitempty"`

	// DetectedFeatures: List of feature dependencies for the creative asset
	// that are detected by DCM. Feature dependencies are features that a
	// browser must be able to support in order to render your HTML5
	// creative correctly. This is a read-only, auto-generated field.
	// Applicable to the following creative types: ENHANCED_BANNER and
	// HTML5_BANNER.
	DetectedFeatures []string `json:"detectedFeatures,omitempty"`

	// DisplayType: Type of rich media asset. This is a read-only field.
	// Applicable to the following creative types: all RICH_MEDIA.
	DisplayType string `json:"displayType,omitempty"`

	// Duration: Duration in seconds for which an asset will be displayed.
	// Applicable to the following creative types: INSTREAM_VIDEO and
	// VPAID_LINEAR.
	Duration int64 `json:"duration,omitempty"`

	// DurationType: Duration type for which an asset will be displayed.
	// Applicable to the following creative types: all RICH_MEDIA.
	DurationType string `json:"durationType,omitempty"`

	// ExpandedDimension: Detected expanded dimension for video asset. This
	// is a read-only field. Applicable to the following creative types:
	// INSTREAM_VIDEO and all VPAID.
	ExpandedDimension *Size `json:"expandedDimension,omitempty"`

	// FileSize: File size associated with this creative asset. This is a
	// read-only field. Applicable to all but the following creative types:
	// all REDIRECT and TRACKING_TEXT.
	FileSize int64 `json:"fileSize,omitempty,string"`

	// FlashVersion: Flash version of the asset. This is a read-only field.
	// Applicable to the following creative types: FLASH_INPAGE,
	// ENHANCED_BANNER, all RICH_MEDIA, and all VPAID.
	FlashVersion int64 `json:"flashVersion,omitempty"`

	// HideFlashObjects: Whether to hide Flash objects flag for an asset.
	// Applicable to the following creative types: all RICH_MEDIA.
	HideFlashObjects bool `json:"hideFlashObjects,omitempty"`

	// HideSelectionBoxes: Whether to hide selection boxes flag for an
	// asset. Applicable to the following creative types: all RICH_MEDIA.
	HideSelectionBoxes bool `json:"hideSelectionBoxes,omitempty"`

	// HorizontallyLocked: Wheter the asset is horizontally locked. This is
	// a read-only field. Applicable to the following creative types: all
	// RICH_MEDIA.
	HorizontallyLocked bool `json:"horizontallyLocked,omitempty"`

	// Id: Numeric ID of this creative asset. This is a required field and
	// should not be modified. Applicable to all but the following creative
	// types: all REDIRECT and TRACKING_TEXT.
	Id int64 `json:"id,omitempty,string"`

	// MimeType: Detected MIME type for video asset. This is a read-only
	// field. Applicable to the following creative types: INSTREAM_VIDEO and
	// all VPAID.
	MimeType string `json:"mimeType,omitempty"`

	// Offset: Offset position for an asset in collapsed mode. This is a
	// read-only field. Applicable to the following creative types: all
	// RICH_MEDIA and all VPAID. Additionally, only applicable to assets
	// whose displayType is ASSET_DISPLAY_TYPE_EXPANDING or
	// ASSET_DISPLAY_TYPE_PEEL_DOWN.
	Offset *OffsetPosition `json:"offset,omitempty"`

	// OriginalBackup: Whether the backup asset is original or changed by
	// the user in DCM. Applicable to the following creative types: all
	// RICH_MEDIA.
	OriginalBackup bool `json:"originalBackup,omitempty"`

	// Position: Offset position for an asset. Applicable to the following
	// creative types: all RICH_MEDIA.
	Position *OffsetPosition `json:"position,omitempty"`

	// PositionLeftUnit: Offset left unit for an asset. This is a read-only
	// field. Applicable to the following creative types: all RICH_MEDIA.
	PositionLeftUnit string `json:"positionLeftUnit,omitempty"`

	// PositionTopUnit: Offset top unit for an asset. This is a read-only
	// field if the asset displayType is ASSET_DISPLAY_TYPE_OVERLAY.
	// Applicable to the following creative types: all RICH_MEDIA.
	PositionTopUnit string `json:"positionTopUnit,omitempty"`

	// ProgressiveServingUrl: Progressive URL for video asset. This is a
	// read-only field. Applicable to the following creative types:
	// INSTREAM_VIDEO and all VPAID.
	ProgressiveServingUrl string `json:"progressiveServingUrl,omitempty"`

	// Pushdown: Whether the asset pushes down other content. Applicable to
	// the following creative types: all RICH_MEDIA. Additionally, only
	// applicable when the asset offsets are 0, the collapsedSize.width
	// matches size.width, and the collapsedSize.height is less than
	// size.height.
	Pushdown bool `json:"pushdown,omitempty"`

	// PushdownDuration: Pushdown duration in seconds for an asset. Must be
	// between 0 and 9.99. Applicable to the following creative types: all
	// RICH_MEDIA.Additionally, only applicable when the asset pushdown
	// field is true, the offsets are 0, the collapsedSize.width matches
	// size.width, and the collapsedSize.height is less than size.height.
	PushdownDuration float64 `json:"pushdownDuration,omitempty"`

	// Role: Role of the asset in relation to creative. Applicable to all
	// but the following creative types: all REDIRECT and TRACKING_TEXT.
	// This is a required field.
	// PRIMARY applies to ENHANCED_BANNER,
	// FLASH_INPAGE, HTML5_BANNER, IMAGE, IMAGE_GALLERY, all RICH_MEDIA
	// (which may contain multiple primary assets), and all VPAID
	// creatives.
	// BACKUP_IMAGE applies to ENHANCED_BANNER, FLASH_INPAGE,
	// HTML5_BANNER, all RICH_MEDIA, and all VPAID
	// creatives.
	// ADDITIONAL_IMAGE and ADDITIONAL_FLASH apply to
	// FLASH_INPAGE creatives.
	// OTHER refers to assets from sources other
	// than DCM, such as Studio uploaded assets, applicable to all
	// RICH_MEDIA and all VPAID creatives.
	// PARENT_VIDEO refers to videos
	// uploaded by the user in DCM and is applicable to INSTREAM_VIDEO and
	// VPAID_LINEAR creatives.
	// TRANSCODED_VIDEO refers to videos transcoded
	// by DCM from PARENT_VIDEO assets and is applicable to INSTREAM_VIDEO
	// and VPAID_LINEAR creatives.
	// ALTERNATE_VIDEO refers to the DCM
	// representation of child asset videos from Studio, and is applicable
	// to VPAID_LINEAR creatives. These cannot be added or removed within
	// DCM.
	// For VPAID_LINEAR creatives, PARENT_VIDEO, TRANSCODED_VIDEO and
	// ALTERNATE_VIDEO assets that are marked active serve as backup in case
	// the VPAID creative cannot be served. Only PARENT_VIDEO assets can be
	// added or removed for an INSTREAM_VIDEO or VPAID_LINEAR creative.
	Role string `json:"role,omitempty"`

	// Size: Size associated with this creative asset. This is a required
	// field when applicable; however for IMAGE and FLASH_INPAGE creatives,
	// if left blank, this field will be automatically set using the actual
	// size of the associated image asset. Applicable to the following
	// creative types: ENHANCED_BANNER, ENHANCED_IMAGE, FLASH_INPAGE,
	// HTML5_BANNER, IMAGE, and all RICH_MEDIA.
	Size *Size `json:"size,omitempty"`

	// SslCompliant: Whether the asset is SSL-compliant. This is a read-only
	// field. Applicable to all but the following creative types: all
	// REDIRECT and TRACKING_TEXT.
	SslCompliant bool `json:"sslCompliant,omitempty"`

	// StartTimeType: Initial wait time type before making the asset
	// visible. Applicable to the following creative types: all RICH_MEDIA.
	StartTimeType string `json:"startTimeType,omitempty"`

	// StreamingServingUrl: Streaming URL for video asset. This is a
	// read-only field. Applicable to the following creative types:
	// INSTREAM_VIDEO and all VPAID.
	StreamingServingUrl string `json:"streamingServingUrl,omitempty"`

	// Transparency: Whether the asset is transparent. Applicable to the
	// following creative types: all RICH_MEDIA. Additionally, only
	// applicable to HTML5 assets.
	Transparency bool `json:"transparency,omitempty"`

	// VerticallyLocked: Whether the asset is vertically locked. This is a
	// read-only field. Applicable to the following creative types: all
	// RICH_MEDIA.
	VerticallyLocked bool `json:"verticallyLocked,omitempty"`

	// VideoDuration: Detected video duration for video asset. This is a
	// read-only field. Applicable to the following creative types:
	// INSTREAM_VIDEO and all VPAID.
	VideoDuration float64 `json:"videoDuration,omitempty"`

	// WindowMode: Window mode options for flash assets. Applicable to the
	// following creative types: FLASH_INPAGE, RICH_MEDIA_EXPANDING,
	// RICH_MEDIA_IM_EXPAND, RICH_MEDIA_INPAGE, and
	// RICH_MEDIA_INPAGE_FLOATING.
	WindowMode string `json:"windowMode,omitempty"`

	// ZIndex: zIndex value of an asset. This is a read-only field.
	// Applicable to the following creative types: all
	// RICH_MEDIA.Additionally, only applicable to assets whose displayType
	// is NOT one of the following types: ASSET_DISPLAY_TYPE_INPAGE or
	// ASSET_DISPLAY_TYPE_OVERLAY.
	ZIndex int64 `json:"zIndex,omitempty"`

	// ZipFilename: File name of zip file. This is a read-only field.
	// Applicable to the following creative types: HTML5_BANNER.
	ZipFilename string `json:"zipFilename,omitempty"`

	// ZipFilesize: Size of zip file. This is a read-only field. Applicable
	// to the following creative types: HTML5_BANNER.
	ZipFilesize string `json:"zipFilesize,omitempty"`
}

type CreativeAssetId

type CreativeAssetId struct {
	// Name: Name of the creative asset. This is a required field while
	// inserting an asset. After insertion, this assetIdentifier is used to
	// identify the uploaded asset. Characters in the name must be
	// alphanumeric or one of the following: ".-_ ". Spaces are allowed.
	Name string `json:"name,omitempty"`

	// Type: Type of asset to upload. This is a required field. IMAGE is
	// solely used for IMAGE creatives. Other image assets should use
	// HTML_IMAGE.
	Type string `json:"type,omitempty"`
}

type CreativeAssetMetadata

type CreativeAssetMetadata struct {
	// AssetIdentifier: ID of the creative asset. This is a required field.
	AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`

	// ClickTags: List of detected click tags for assets. This is a
	// read-only auto-generated field.
	ClickTags []*ClickTag `json:"clickTags,omitempty"`

	// DetectedFeatures: List of feature dependencies for the creative asset
	// that are detected by DCM. Feature dependencies are features that a
	// browser must be able to support in order to render your HTML5
	// creative correctly. This is a read-only, auto-generated field.
	DetectedFeatures []string `json:"detectedFeatures,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#creativeAssetMetadata".
	Kind string `json:"kind,omitempty"`

	// WarnedValidationRules: Rules validated during code generation that
	// generated a warning. This is a read-only, auto-generated
	// field.
	//
	// Possible values are:
	// - "CLICK_TAG_NON_TOP_LEVEL"
	// -
	// "CLICK_TAG_MISSING"
	// - "CLICK_TAG_MORE_THAN_ONE"
	// -
	// "CLICK_TAG_INVALID"
	// - "ORPHANED_ASSET"
	// - "PRIMARY_HTML_MISSING"
	// -
	// "EXTERNAL_FILE_REFERENCED"
	// - "MRAID_REFERENCED"
	// -
	// "ADMOB_REFERENCED"
	// - "FILE_TYPE_INVALID"
	// - "ZIP_INVALID"
	// -
	// "LINKED_FILE_NOT_FOUND"
	// - "MAX_FLASH_VERSION_11"
	// -
	// "NOT_SSL_COMPLIANT"
	// - "FILE_DETAIL_EMPTY"
	// - "ASSET_INVALID"
	// -
	// "GWD_PROPERTIES_INVALID"
	// - "ENABLER_UNSUPPORTED_METHOD_DCM"
	// -
	// "ASSET_FORMAT_UNSUPPORTED_DCM"
	// - "COMPONENT_UNSUPPORTED_DCM"
	// -
	// "HTML5_FEATURE_UNSUPPORTED' "
	WarnedValidationRules []string `json:"warnedValidationRules,omitempty"`
}

type CreativeAssetsInsertCall

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

func (*CreativeAssetsInsertCall) Do

func (*CreativeAssetsInsertCall) Fields

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

func (*CreativeAssetsInsertCall) Media

Media specifies the media to upload in a single chunk. At most one of Media and ResumableMedia may be set.

func (*CreativeAssetsInsertCall) ProgressUpdater

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*CreativeAssetsInsertCall) ResumableMedia

func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall

ResumableMedia specifies the media to upload in chunks and can be cancelled with ctx. At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected.

type CreativeAssetsService

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

func NewCreativeAssetsService

func NewCreativeAssetsService(s *Service) *CreativeAssetsService

func (*CreativeAssetsService) Insert

func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall

Insert: Inserts a new creative asset.

type CreativeAssignment

type CreativeAssignment struct {
	// Active: Whether this creative assignment is active. When true, the
	// creative will be included in the ad's rotation.
	Active bool `json:"active,omitempty"`

	// ApplyEventTags: Whether applicable event tags should fire when this
	// creative assignment is rendered. If this value is unset when the ad
	// is inserted or updated, it will default to true for all creative
	// types EXCEPT for INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT,
	// and INSTREAM_VIDEO.
	ApplyEventTags bool `json:"applyEventTags,omitempty"`

	// ClickThroughUrl: Click-through URL of the creative assignment.
	ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`

	// CompanionCreativeOverrides: Companion creative overrides for this
	// creative assignment. Applicable to video ads.
	CompanionCreativeOverrides []*CompanionClickThroughOverride `json:"companionCreativeOverrides,omitempty"`

	// CreativeGroupAssignments: Creative group assignments for this
	// creative assignment. Only one assignment per creative group number is
	// allowed for a maximum of two assignments.
	CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`

	// CreativeId: ID of the creative to be assigned. This is a required
	// field.
	CreativeId int64 `json:"creativeId,omitempty,string"`

	// CreativeIdDimensionValue: Dimension value for the ID of the creative.
	// This is a read-only, auto-generated field.
	CreativeIdDimensionValue *DimensionValue `json:"creativeIdDimensionValue,omitempty"`

	// EndTime: Date and time that the assigned creative should stop
	// serving. Must be later than the start time.
	EndTime string `json:"endTime,omitempty"`

	// RichMediaExitOverrides: Rich media exit overrides for this creative
	// assignment.
	// Applicable when the creative type is any of the
	// following:
	// - RICH_MEDIA_INPAGE
	// - RICH_MEDIA_INPAGE_FLOATING
	// -
	// RICH_MEDIA_IM_EXPAND
	// - RICH_MEDIA_EXPANDING
	// -
	// RICH_MEDIA_INTERSTITIAL_FLOAT
	// - RICH_MEDIA_MOBILE_IN_APP
	// -
	// RICH_MEDIA_MULTI_FLOATING
	// - RICH_MEDIA_PEEL_DOWN
	// - ADVANCED_BANNER
	// -
	// VPAID_LINEAR
	// - VPAID_NON_LINEAR
	RichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"`

	// Sequence: Sequence number of the creative assignment, applicable when
	// the rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL.
	Sequence int64 `json:"sequence,omitempty"`

	// SslCompliant: Whether the creative to be assigned 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"`

	// StartTime: Date and time that the assigned creative should start
	// serving.
	StartTime string `json:"startTime,omitempty"`

	// Weight: Weight of the creative assignment, applicable when the
	// rotation type is CREATIVE_ROTATION_TYPE_RANDOM.
	Weight int64 `json:"weight,omitempty"`
}

type CreativeCustomEvent

type CreativeCustomEvent struct {
	// Active: Whether the event is active.
	Active bool `json:"active,omitempty"`

	// AdvertiserCustomEventName: User-entered name for the event.
	AdvertiserCustomEventName string `json:"advertiserCustomEventName,omitempty"`

	// AdvertiserCustomEventType: Type of the event. This is a read-only
	// field.
	AdvertiserCustomEventType string `json:"advertiserCustomEventType,omitempty"`

	// ArtworkLabel: Artwork label column, used to link events in DCM back
	// to events in Studio. This is a required field and should not be
	// modified after insertion.
	ArtworkLabel string `json:"artworkLabel,omitempty"`

	// ArtworkType: Artwork type used by the creative.This is a read-only
	// field.
	ArtworkType string `json:"artworkType,omitempty"`

	// ExitUrl: Exit URL of the event. This field is used only for exit
	// events.
	ExitUrl string `json:"exitUrl,omitempty"`

	// Id: ID of this event. This is a required field and should not be
	// modified after insertion.
	Id int64 `json:"id,omitempty,string"`

	// PopupWindowProperties: Properties for rich media pop-up windows. This
	// field is used only for exit events.
	PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"`

	// TargetType: Target type used by the event.
	TargetType string `json:"targetType,omitempty"`

	// VideoReportingId: Reporting ID, used to differentiate multiple videos
	// in a single creative.
	VideoReportingId string `json:"videoReportingId,omitempty"`
}

type CreativeField

type CreativeField struct {
	// AccountId: Account ID of this creative field. This is a read-only
	// field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this creative field. 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"`

	// Id: ID of this creative field. 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#creativeField".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this creative field. This is a required field and must
	// be less than 256 characters long and unique among creative fields of
	// the same advertiser.
	Name string `json:"name,omitempty"`

	// SubaccountId: Subaccount ID of this creative field. This is a
	// read-only field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`
}

type CreativeFieldAssignment

type CreativeFieldAssignment struct {
	// CreativeFieldId: ID of the creative field.
	CreativeFieldId int64 `json:"creativeFieldId,omitempty,string"`

	// CreativeFieldValueId: ID of the creative field value.
	CreativeFieldValueId int64 `json:"creativeFieldValueId,omitempty,string"`
}

type CreativeFieldValue

type CreativeFieldValue struct {
	// Id: ID of this creative field value. 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#creativeFieldValue".
	Kind string `json:"kind,omitempty"`

	// Value: Value of this creative field value. It needs to be less than
	// 256 characters in length and unique per creative field.
	Value string `json:"value,omitempty"`
}

type CreativeFieldValuesDeleteCall

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

func (*CreativeFieldValuesDeleteCall) Do

func (*CreativeFieldValuesDeleteCall) Fields

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

type CreativeFieldValuesGetCall

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

func (*CreativeFieldValuesGetCall) Do

func (*CreativeFieldValuesGetCall) Fields

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

type CreativeFieldValuesInsertCall

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

func (*CreativeFieldValuesInsertCall) Do

func (*CreativeFieldValuesInsertCall) Fields

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

type CreativeFieldValuesListCall

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

func (*CreativeFieldValuesListCall) Do

func (*CreativeFieldValuesListCall) Fields

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

func (*CreativeFieldValuesListCall) Ids

Ids sets the optional parameter "ids": Select only creative field values with these IDs.

func (*CreativeFieldValuesListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*CreativeFieldValuesListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*CreativeFieldValuesListCall) SearchString

func (c *CreativeFieldValuesListCall) SearchString(searchString string) *CreativeFieldValuesListCall

SearchString sets the optional parameter "searchString": Allows searching for creative field values by their values. Wildcards (e.g. *) are not allowed.

func (*CreativeFieldValuesListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*CreativeFieldValuesListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type CreativeFieldValuesListResponse

type CreativeFieldValuesListResponse struct {
	// CreativeFieldValues: Creative field value collection
	CreativeFieldValues []*CreativeFieldValue `json:"creativeFieldValues,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#creativeFieldValuesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type CreativeFieldValuesPatchCall

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

func (*CreativeFieldValuesPatchCall) Do

func (*CreativeFieldValuesPatchCall) Fields

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

type CreativeFieldValuesService

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

func NewCreativeFieldValuesService

func NewCreativeFieldValuesService(s *Service) *CreativeFieldValuesService

func (*CreativeFieldValuesService) Delete

func (r *CreativeFieldValuesService) Delete(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesDeleteCall

Delete: Deletes an existing creative field value.

func (*CreativeFieldValuesService) Get

func (r *CreativeFieldValuesService) Get(profileId int64, creativeFieldId int64, id int64) *CreativeFieldValuesGetCall

Get: Gets one creative field value by ID.

func (*CreativeFieldValuesService) Insert

func (r *CreativeFieldValuesService) Insert(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall

Insert: Inserts a new creative field value.

func (*CreativeFieldValuesService) List

func (r *CreativeFieldValuesService) List(profileId int64, creativeFieldId int64) *CreativeFieldValuesListCall

List: Retrieves a list of creative field values, possibly filtered.

func (*CreativeFieldValuesService) Patch

func (r *CreativeFieldValuesService) Patch(profileId int64, creativeFieldId int64, id int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall

Patch: Updates an existing creative field value. This method supports patch semantics.

func (*CreativeFieldValuesService) Update

func (r *CreativeFieldValuesService) Update(profileId int64, creativeFieldId int64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall

Update: Updates an existing creative field value.

type CreativeFieldValuesUpdateCall

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

func (*CreativeFieldValuesUpdateCall) Do

func (*CreativeFieldValuesUpdateCall) Fields

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

type CreativeFieldsDeleteCall

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

func (*CreativeFieldsDeleteCall) Do

func (*CreativeFieldsDeleteCall) Fields

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

type CreativeFieldsGetCall

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

func (*CreativeFieldsGetCall) Do

func (*CreativeFieldsGetCall) Fields

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

type CreativeFieldsInsertCall

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

func (*CreativeFieldsInsertCall) Do

func (*CreativeFieldsInsertCall) Fields

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

type CreativeFieldsListCall

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

func (*CreativeFieldsListCall) AdvertiserIds

func (c *CreativeFieldsListCall) AdvertiserIds(advertiserIds int64) *CreativeFieldsListCall

AdvertiserIds sets the optional parameter "advertiserIds": Select only creative fields that belong to these advertisers.

func (*CreativeFieldsListCall) Do

func (*CreativeFieldsListCall) Fields

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

func (*CreativeFieldsListCall) Ids

Ids sets the optional parameter "ids": Select only creative fields with these IDs.

func (*CreativeFieldsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*CreativeFieldsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*CreativeFieldsListCall) SearchString

func (c *CreativeFieldsListCall) SearchString(searchString string) *CreativeFieldsListCall

SearchString sets the optional parameter "searchString": Allows searching for creative fields by name or ID. Wildcards (*) are allowed. For example, "creativefield*2015" will return creative fields with names like "creativefield June 2015", "creativefield April 2015" or simply "creativefield 2015". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of "creativefield" will match creative fields with the name "my creativefield", "creativefield 2015" or simply "creativefield".

func (*CreativeFieldsListCall) SortField

func (c *CreativeFieldsListCall) SortField(sortField string) *CreativeFieldsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*CreativeFieldsListCall) SortOrder

func (c *CreativeFieldsListCall) SortOrder(sortOrder string) *CreativeFieldsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type CreativeFieldsListResponse

type CreativeFieldsListResponse struct {
	// CreativeFields: Creative field collection
	CreativeFields []*CreativeField `json:"creativeFields,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#creativeFieldsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type CreativeFieldsPatchCall

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

func (*CreativeFieldsPatchCall) Do

func (*CreativeFieldsPatchCall) Fields

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

type CreativeFieldsService

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

func NewCreativeFieldsService

func NewCreativeFieldsService(s *Service) *CreativeFieldsService

func (*CreativeFieldsService) Delete

func (r *CreativeFieldsService) Delete(profileId int64, id int64) *CreativeFieldsDeleteCall

Delete: Deletes an existing creative field.

func (*CreativeFieldsService) Get

func (r *CreativeFieldsService) Get(profileId int64, id int64) *CreativeFieldsGetCall

Get: Gets one creative field by ID.

func (*CreativeFieldsService) Insert

func (r *CreativeFieldsService) Insert(profileId int64, creativefield *CreativeField) *CreativeFieldsInsertCall

Insert: Inserts a new creative field.

func (*CreativeFieldsService) List

List: Retrieves a list of creative fields, possibly filtered.

func (*CreativeFieldsService) Patch

func (r *CreativeFieldsService) Patch(profileId int64, id int64, creativefield *CreativeField) *CreativeFieldsPatchCall

Patch: Updates an existing creative field. This method supports patch semantics.

func (*CreativeFieldsService) Update

func (r *CreativeFieldsService) Update(profileId int64, creativefield *CreativeField) *CreativeFieldsUpdateCall

Update: Updates an existing creative field.

type CreativeFieldsUpdateCall

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

func (*CreativeFieldsUpdateCall) Do

func (*CreativeFieldsUpdateCall) Fields

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

type CreativeGroup

type CreativeGroup struct {
	// AccountId: Account ID of this creative group. This is a read-only
	// field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this creative group. 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"`

	// GroupNumber: Subgroup of the creative group. Assign your creative
	// groups to one of the following subgroups in order to filter or manage
	// them more easily. This field is required on insertion and is
	// read-only after insertion.
	// Acceptable values are:
	// - 1
	// - 2
	GroupNumber int64 `json:"groupNumber,omitempty"`

	// Id: ID of this creative 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#creativeGroup".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this creative group. This is a required field and must
	// be less than 256 characters long and unique among creative groups of
	// the same advertiser.
	Name string `json:"name,omitempty"`

	// SubaccountId: Subaccount ID of this creative group. This is a
	// read-only field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`
}

type CreativeGroupAssignment

type CreativeGroupAssignment struct {
	// CreativeGroupId: ID of the creative group to be assigned.
	CreativeGroupId int64 `json:"creativeGroupId,omitempty,string"`

	// CreativeGroupNumber: Creative group number of the creative group
	// assignment.
	CreativeGroupNumber string `json:"creativeGroupNumber,omitempty"`
}

type CreativeGroupsGetCall

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

func (*CreativeGroupsGetCall) Do

func (*CreativeGroupsGetCall) Fields

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

type CreativeGroupsInsertCall

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

func (*CreativeGroupsInsertCall) Do

func (*CreativeGroupsInsertCall) Fields

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

type CreativeGroupsListCall

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

func (*CreativeGroupsListCall) AdvertiserIds

func (c *CreativeGroupsListCall) AdvertiserIds(advertiserIds int64) *CreativeGroupsListCall

AdvertiserIds sets the optional parameter "advertiserIds": Select only creative groups that belong to these advertisers.

func (*CreativeGroupsListCall) Do

func (*CreativeGroupsListCall) Fields

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

func (*CreativeGroupsListCall) GroupNumber

func (c *CreativeGroupsListCall) GroupNumber(groupNumber int64) *CreativeGroupsListCall

GroupNumber sets the optional parameter "groupNumber": Select only creative groups that belong to this subgroup.

func (*CreativeGroupsListCall) Ids

Ids sets the optional parameter "ids": Select only creative groups with these IDs.

func (*CreativeGroupsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*CreativeGroupsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*CreativeGroupsListCall) SearchString

func (c *CreativeGroupsListCall) SearchString(searchString string) *CreativeGroupsListCall

SearchString sets the optional parameter "searchString": Allows searching for creative groups by name or ID. Wildcards (*) are allowed. For example, "creativegroup*2015" will return creative groups with names like "creativegroup June 2015", "creativegroup April 2015" or simply "creativegroup 2015". Most of the searches also add wild-cards implicitly at the start and the end of the search string. For example, a search string of "creativegroup" will match creative groups with the name "my creativegroup", "creativegroup 2015" or simply "creativegroup".

func (*CreativeGroupsListCall) SortField

func (c *CreativeGroupsListCall) SortField(sortField string) *CreativeGroupsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*CreativeGroupsListCall) SortOrder

func (c *CreativeGroupsListCall) SortOrder(sortOrder string) *CreativeGroupsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type CreativeGroupsListResponse

type CreativeGroupsListResponse struct {
	// CreativeGroups: Creative group collection
	CreativeGroups []*CreativeGroup `json:"creativeGroups,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#creativeGroupsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type CreativeGroupsPatchCall

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

func (*CreativeGroupsPatchCall) Do

func (*CreativeGroupsPatchCall) Fields

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

type CreativeGroupsService

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

func NewCreativeGroupsService

func NewCreativeGroupsService(s *Service) *CreativeGroupsService

func (*CreativeGroupsService) Get

func (r *CreativeGroupsService) Get(profileId int64, id int64) *CreativeGroupsGetCall

Get: Gets one creative group by ID.

func (*CreativeGroupsService) Insert

func (r *CreativeGroupsService) Insert(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall

Insert: Inserts a new creative group.

func (*CreativeGroupsService) List

List: Retrieves a list of creative groups, possibly filtered.

func (*CreativeGroupsService) Patch

func (r *CreativeGroupsService) Patch(profileId int64, id int64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall

Patch: Updates an existing creative group. This method supports patch semantics.

func (*CreativeGroupsService) Update

func (r *CreativeGroupsService) Update(profileId int64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall

Update: Updates an existing creative group.

type CreativeGroupsUpdateCall

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

func (*CreativeGroupsUpdateCall) Do

func (*CreativeGroupsUpdateCall) Fields

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

type CreativeOptimizationConfiguration

type CreativeOptimizationConfiguration struct {
	// Id: ID of this creative optimization config. This field is
	// auto-generated when the campaign is inserted or updated. It can be
	// null for existing campaigns.
	Id int64 `json:"id,omitempty,string"`

	// Name: Name of this creative optimization config. This is a required
	// field and must be less than 129 characters long.
	Name string `json:"name,omitempty"`

	// OptimizationActivitys: List of optimization activities associated
	// with this configuration.
	OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"`

	// OptimizationModel: Optimization model for this configuration.
	OptimizationModel string `json:"optimizationModel,omitempty"`
}

type CreativeRotation

type CreativeRotation struct {
	// CreativeAssignments: Creative assignments in this creative rotation.
	CreativeAssignments []*CreativeAssignment `json:"creativeAssignments,omitempty"`

	// CreativeOptimizationConfigurationId: Creative optimization
	// configuration that is used by this ad. It should refer to one of the
	// existing optimization configurations in the ad's campaign. If it is
	// unset or set to 0, then the campaign's default optimization
	// configuration will be used for this ad.
	CreativeOptimizationConfigurationId int64 `json:"creativeOptimizationConfigurationId,omitempty,string"`

	// Type: Type of creative rotation. Can be used to specify whether to
	// use sequential or random rotation.
	Type string `json:"type,omitempty"`

	// WeightCalculationStrategy: Strategy for calculating weights. Used
	// with CREATIVE_ROTATION_TYPE_RANDOM.
	WeightCalculationStrategy string `json:"weightCalculationStrategy,omitempty"`
}

type CreativeSettings

type CreativeSettings struct {
	// IFrameFooter: Header text for iFrames for this site. Must be less
	// than or equal to 2000 characters long.
	IFrameFooter string `json:"iFrameFooter,omitempty"`

	// IFrameHeader: Header text for iFrames for this site. Must be less
	// than or equal to 2000 characters long.
	IFrameHeader string `json:"iFrameHeader,omitempty"`
}

type CreativesGetCall

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

func (*CreativesGetCall) Do

func (c *CreativesGetCall) Do() (*Creative, error)

func (*CreativesGetCall) Fields

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

type CreativesInsertCall

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

func (*CreativesInsertCall) Do

func (c *CreativesInsertCall) Do() (*Creative, error)

func (*CreativesInsertCall) Fields

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

type CreativesListCall

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

func (*CreativesListCall) Active

func (c *CreativesListCall) Active(active bool) *CreativesListCall

Active sets the optional parameter "active": Select only active creatives. Leave blank to select active and inactive creatives.

func (*CreativesListCall) AdvertiserId

func (c *CreativesListCall) AdvertiserId(advertiserId int64) *CreativesListCall

AdvertiserId sets the optional parameter "advertiserId": Select only creatives with this advertiser ID.

func (*CreativesListCall) Archived

func (c *CreativesListCall) Archived(archived bool) *CreativesListCall

Archived sets the optional parameter "archived": Select only archived creatives. Leave blank to select archived and unarchived creatives.

func (*CreativesListCall) CampaignId

func (c *CreativesListCall) CampaignId(campaignId int64) *CreativesListCall

CampaignId sets the optional parameter "campaignId": Select only creatives with this campaign ID.

func (*CreativesListCall) CompanionCreativeIds

func (c *CreativesListCall) CompanionCreativeIds(companionCreativeIds int64) *CreativesListCall

CompanionCreativeIds sets the optional parameter "companionCreativeIds": Select only in-stream video creatives with these companion IDs.

func (*CreativesListCall) CreativeFieldIds

func (c *CreativesListCall) CreativeFieldIds(creativeFieldIds int64) *CreativesListCall

CreativeFieldIds sets the optional parameter "creativeFieldIds": Select only creatives with these creative field IDs.

func (*CreativesListCall) Do

func (*CreativesListCall) Fields

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

func (*CreativesListCall) Ids

Ids sets the optional parameter "ids": Select only creatives with these IDs.

func (*CreativesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*CreativesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*CreativesListCall) RenderingIds

func (c *CreativesListCall) RenderingIds(renderingIds int64) *CreativesListCall

RenderingIds sets the optional parameter "renderingIds": Select only creatives with these rendering IDs.

func (*CreativesListCall) SearchString

func (c *CreativesListCall) SearchString(searchString string) *CreativesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "creative*2015" will return objects with names like "creative June 2015", "creative April 2015" or simply "creative 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "creative" will match objects with name "my creative", "creative 2015" or simply "creative".

func (*CreativesListCall) SizeIds

func (c *CreativesListCall) SizeIds(sizeIds int64) *CreativesListCall

SizeIds sets the optional parameter "sizeIds": Select only creatives with these size IDs.

func (*CreativesListCall) SortField

func (c *CreativesListCall) SortField(sortField string) *CreativesListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*CreativesListCall) SortOrder

func (c *CreativesListCall) SortOrder(sortOrder string) *CreativesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*CreativesListCall) StudioCreativeId

func (c *CreativesListCall) StudioCreativeId(studioCreativeId int64) *CreativesListCall

StudioCreativeId sets the optional parameter "studioCreativeId": Select only creatives corresponding to this Studio creative ID.

func (*CreativesListCall) Types

func (c *CreativesListCall) Types(types string) *CreativesListCall

Types sets the optional parameter "types": Select only creatives with these creative types.

type CreativesListResponse

type CreativesListResponse struct {
	// Creatives: Creative collection
	Creatives []*Creative `json:"creatives,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#creativesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type CreativesPatchCall

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

func (*CreativesPatchCall) Do

func (c *CreativesPatchCall) Do() (*Creative, error)

func (*CreativesPatchCall) Fields

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

type CreativesService

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

func NewCreativesService

func NewCreativesService(s *Service) *CreativesService

func (*CreativesService) Get

func (r *CreativesService) Get(profileId int64, id int64) *CreativesGetCall

Get: Gets one creative by ID.

func (*CreativesService) Insert

func (r *CreativesService) Insert(profileId int64, creative *Creative) *CreativesInsertCall

Insert: Inserts a new creative.

func (*CreativesService) List

func (r *CreativesService) List(profileId int64) *CreativesListCall

List: Retrieves a list of creatives, possibly filtered.

func (*CreativesService) Patch

func (r *CreativesService) Patch(profileId int64, id int64, creative *Creative) *CreativesPatchCall

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

func (*CreativesService) Update

func (r *CreativesService) Update(profileId int64, creative *Creative) *CreativesUpdateCall

Update: Updates an existing creative.

type CreativesUpdateCall

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

func (*CreativesUpdateCall) Do

func (c *CreativesUpdateCall) Do() (*Creative, error)

func (*CreativesUpdateCall) Fields

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

type CrossDimensionReachReportCompatibleFields

type CrossDimensionReachReportCompatibleFields struct {
	// Breakdown: Dimensions which are compatible to be selected in the
	// "breakdown" section of the report.
	Breakdown []*Dimension `json:"breakdown,omitempty"`

	// DimensionFilters: Dimensions which are compatible to be selected in
	// the "dimensionFilters" section of the report.
	DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#crossDimensionReachReportCompatibleFields.
	Kind string `json:"kind,omitempty"`

	// Metrics: Metrics which are compatible to be selected in the
	// "metricNames" section of the report.
	Metrics []*Metric `json:"metrics,omitempty"`

	// OverlapMetrics: Metrics which are compatible to be selected in the
	// "overlapMetricNames" section of the report.
	OverlapMetrics []*Metric `json:"overlapMetrics,omitempty"`
}

type CustomRichMediaEvents

type CustomRichMediaEvents struct {
	// FilteredEventIds: List of custom rich media event IDs. Dimension
	// values must be all of type dfa:richMediaEventTypeIdAndName.
	FilteredEventIds []*DimensionValue `json:"filteredEventIds,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#customRichMediaEvents.
	Kind string `json:"kind,omitempty"`
}

type DateRange

type DateRange struct {
	// EndDate: The end date of the date range, inclusive. A string of the
	// format: "yyyy-MM-dd".
	EndDate string `json:"endDate,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#dateRange.
	Kind string `json:"kind,omitempty"`

	// RelativeDateRange: The date range relative to the date of when the
	// report is run.
	RelativeDateRange string `json:"relativeDateRange,omitempty"`

	// StartDate: The start date of the date range, inclusive. A string of
	// the format: "yyyy-MM-dd".
	StartDate string `json:"startDate,omitempty"`
}

type DayPartTargeting

type DayPartTargeting struct {
	// DaysOfWeek: Days of the week when the ad will serve.
	//
	// Acceptable
	// values are:
	// - "SUNDAY"
	// - "MONDAY"
	// - "TUESDAY"
	// - "WEDNESDAY"
	// -
	// "THURSDAY"
	// - "FRIDAY"
	// - "SATURDAY"
	DaysOfWeek []string `json:"daysOfWeek,omitempty"`

	// HoursOfDay: Hours of the day when the ad will serve. Must be an
	// integer between 0 and 23 (inclusive), where 0 is midnight to 1 AM,
	// and 23 is 11 PM to midnight. Can be specified with days of week, in
	// which case the ad would serve during these hours on the specified
	// days. For example, if Monday, Wednesday, Friday are the days of week
	// specified and 9-10am, 3-5pm (hours 9, 15, and 16) is specified, the
	// ad would serve Monday, Wednesdays, and Fridays at 9-10am and 3-5pm.
	HoursOfDay []int64 `json:"hoursOfDay,omitempty"`

	// UserLocalTime: Whether or not to use the user's local time. If false,
	// the America/New York time zone applies.
	UserLocalTime bool `json:"userLocalTime,omitempty"`
}

type DefaultClickThroughEventTagProperties

type DefaultClickThroughEventTagProperties struct {
	// DefaultClickThroughEventTagId: ID of the click-through event tag to
	// apply to all ads in this entity's scope.
	DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"`

	// OverrideInheritedEventTag: Whether this entity should override the
	// inherited default click-through event tag with its own defined value.
	OverrideInheritedEventTag bool `json:"overrideInheritedEventTag,omitempty"`
}

type DeliverySchedule

type DeliverySchedule struct {
	// FrequencyCap: Limit on the number of times an individual user can be
	// served the ad within a specified period of time.
	FrequencyCap *FrequencyCap `json:"frequencyCap,omitempty"`

	// HardCutoff: Whether or not hard cutoff is enabled. If true, the ad
	// will not serve after the end date and time. Otherwise the ad will
	// continue to be served until it has reached its delivery goals.
	HardCutoff bool `json:"hardCutoff,omitempty"`

	// ImpressionRatio: Impression ratio for this ad. This ratio determines
	// how often each ad is served relative to the others. For example, if
	// ad A has an impression ratio of 1 and ad B has an impression ratio of
	// 3, then DCM will serve ad B three times as often as ad A. Must be
	// between 1 and 10.
	ImpressionRatio int64 `json:"impressionRatio,omitempty,string"`

	// Priority: Serving priority of an ad, with respect to other ads. The
	// lower the priority number, the greater the priority with which it is
	// served.
	Priority string `json:"priority,omitempty"`
}

type DfpSettings

type DfpSettings struct {
	// Dfp_network_code: DFP network code for this directory site.
	Dfp_network_code string `json:"dfp_network_code,omitempty"`

	// Dfp_network_name: DFP network name for this directory site.
	Dfp_network_name string `json:"dfp_network_name,omitempty"`

	// ProgrammaticPlacementAccepted: Whether this directory site accepts
	// programmatic placements.
	ProgrammaticPlacementAccepted bool `json:"programmaticPlacementAccepted,omitempty"`

	// PubPaidPlacementAccepted: Whether this directory site accepts
	// publisher-paid tags.
	PubPaidPlacementAccepted bool `json:"pubPaidPlacementAccepted,omitempty"`

	// PublisherPortalOnly: Whether this directory site is available only
	// via Publisher Portal.
	PublisherPortalOnly bool `json:"publisherPortalOnly,omitempty"`
}

type Dimension

type Dimension struct {
	// Kind: The kind of resource this is, in this case
	// dfareporting#dimension.
	Kind string `json:"kind,omitempty"`

	// Name: The dimension name, e.g. dfa:advertiser
	Name string `json:"name,omitempty"`
}

type DimensionFilter

type DimensionFilter struct {
	// DimensionName: The name of the dimension to filter.
	DimensionName string `json:"dimensionName,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#dimensionFilter.
	Kind string `json:"kind,omitempty"`

	// Value: The value of the dimension to filter.
	Value string `json:"value,omitempty"`
}

type DimensionValue

type DimensionValue struct {
	// DimensionName: The name of the dimension.
	DimensionName string `json:"dimensionName,omitempty"`

	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// Id: The ID associated with the value if available.
	Id string `json:"id,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#dimensionValue.
	Kind string `json:"kind,omitempty"`

	// MatchType: Determines how the 'value' field is matched when
	// filtering. If not specified, defaults to EXACT. If set to
	// WILDCARD_EXPRESSION, '*' is allowed as a placeholder for variable
	// length character sequences, and it can be escaped with a backslash.
	// Note, only paid search dimensions ('dfa:paidSearch*') allow a
	// matchType other than EXACT.
	MatchType string `json:"matchType,omitempty"`

	// Value: The value of the dimension.
	Value string `json:"value,omitempty"`
}

type DimensionValueList

type DimensionValueList struct {
	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// Items: The dimension values returned in this response.
	Items []*DimensionValue `json:"items,omitempty"`

	// Kind: The kind of list this is, in this case
	// dfareporting#dimensionValueList.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Continuation token used to page through dimension
	// values. To retrieve the next page of results, set the next request's
	// "pageToken" to the value of this field. The page token is only valid
	// for a limited amount of time and should not be persisted.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type DimensionValueRequest

type DimensionValueRequest struct {
	// DimensionName: The name of the dimension for which values should be
	// requested.
	DimensionName string `json:"dimensionName,omitempty"`

	// EndDate: The end date of the date range for which to retrieve
	// dimension values. A string of the format "yyyy-MM-dd".
	EndDate string `json:"endDate,omitempty"`

	// Filters: The list of filters by which to filter values. The filters
	// are ANDed.
	Filters []*DimensionFilter `json:"filters,omitempty"`

	// Kind: The kind of request this is, in this case
	// dfareporting#dimensionValueRequest.
	Kind string `json:"kind,omitempty"`

	// StartDate: The start date of the date range for which to retrieve
	// dimension values. A string of the format "yyyy-MM-dd".
	StartDate string `json:"startDate,omitempty"`
}

type DimensionValuesQueryCall

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

func (*DimensionValuesQueryCall) Do

func (*DimensionValuesQueryCall) Fields

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

func (*DimensionValuesQueryCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*DimensionValuesQueryCall) PageToken

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

PageToken sets the optional parameter "pageToken": The value of the nextToken from the previous result page.

type DimensionValuesService

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

func NewDimensionValuesService

func NewDimensionValuesService(s *Service) *DimensionValuesService

func (*DimensionValuesService) Query

func (r *DimensionValuesService) Query(profileId int64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall

Query: Retrieves list of report dimension values for a list of filters.

type DirectorySite

type DirectorySite struct {
	// Active: Whether this directory site is active.
	Active bool `json:"active,omitempty"`

	// ContactAssignments: Directory site contacts.
	ContactAssignments []*DirectorySiteContactAssignment `json:"contactAssignments,omitempty"`

	// CountryId: Country ID of this directory site.
	CountryId int64 `json:"countryId,omitempty,string"`

	// CurrencyId: Currency ID of this directory site.
	// Possible 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
	CurrencyId int64 `json:"currencyId,omitempty,string"`

	// Description: Description of this directory site.
	Description string `json:"description,omitempty"`

	// Id: ID of this directory site. This is a read-only, auto-generated
	// field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this directory site.
	// This is a read-only, auto-generated field.
	IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`

	// InpageTagFormats: Tag types for regular placements.
	//
	// Acceptable
	// values are:
	// - "STANDARD"
	// - "IFRAME_JAVASCRIPT_INPAGE"
	// -
	// "INTERNAL_REDIRECT_INPAGE"
	// - "JAVASCRIPT_INPAGE"
	InpageTagFormats []string `json:"inpageTagFormats,omitempty"`

	// InterstitialTagFormats: Tag types for interstitial
	// placements.
	//
	// Acceptable values are:
	// -
	// "IFRAME_JAVASCRIPT_INTERSTITIAL"
	// - "INTERNAL_REDIRECT_INTERSTITIAL"
	// -
	// "JAVASCRIPT_INTERSTITIAL"
	InterstitialTagFormats []string `json:"interstitialTagFormats,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#directorySite".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this directory site.
	Name string `json:"name,omitempty"`

	// ParentId: Parent directory site ID.
	ParentId int64 `json:"parentId,omitempty,string"`

	// Settings: Directory site settings.
	Settings *DirectorySiteSettings `json:"settings,omitempty"`

	// Url: URL of this directory site.
	Url string `json:"url,omitempty"`
}

type DirectorySiteContact

type DirectorySiteContact struct {
	// Email: Email address of this directory site contact.
	Email string `json:"email,omitempty"`

	// FirstName: First name of this directory site contact.
	FirstName string `json:"firstName,omitempty"`

	// Id: ID of this directory site contact. 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#directorySiteContact".
	Kind string `json:"kind,omitempty"`

	// LastName: Last name of this directory site contact.
	LastName string `json:"lastName,omitempty"`

	// Role: Directory site contact role.
	Role string `json:"role,omitempty"`

	// Type: Directory site contact type.
	Type string `json:"type,omitempty"`
}

type DirectorySiteContactAssignment

type DirectorySiteContactAssignment struct {
	// ContactId: ID of this directory site contact. This is a read-only,
	// auto-generated field.
	ContactId int64 `json:"contactId,omitempty,string"`

	// Visibility: Visibility of this directory site contact assignment.
	// When set to PUBLIC this contact assignment is visible to all account
	// and agency users; when set to PRIVATE it is visible only to the site.
	Visibility string `json:"visibility,omitempty"`
}

type DirectorySiteContactsGetCall

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

func (*DirectorySiteContactsGetCall) Do

func (*DirectorySiteContactsGetCall) Fields

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

type DirectorySiteContactsListCall

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

func (*DirectorySiteContactsListCall) DirectorySiteIds

func (c *DirectorySiteContactsListCall) DirectorySiteIds(directorySiteIds int64) *DirectorySiteContactsListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select only directory site contacts with these directory site IDs. This is a required field.

func (*DirectorySiteContactsListCall) Do

func (*DirectorySiteContactsListCall) Fields

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

func (*DirectorySiteContactsListCall) Ids

Ids sets the optional parameter "ids": Select only directory site contacts with these IDs.

func (*DirectorySiteContactsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*DirectorySiteContactsListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*DirectorySiteContactsListCall) SearchString

SearchString sets the optional parameter "searchString": Allows searching for objects by name, ID or email. Wildcards (*) are allowed. For example, "directory site contact*2015" will return objects with names like "directory site contact June 2015", "directory site contact April 2015" or simply "directory site contact 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "directory site contact" will match objects with name "my directory site contact", "directory site contact 2015" or simply "directory site contact".

func (*DirectorySiteContactsListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*DirectorySiteContactsListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type DirectorySiteContactsListResponse

type DirectorySiteContactsListResponse struct {
	// DirectorySiteContacts: Directory site contact collection
	DirectorySiteContacts []*DirectorySiteContact `json:"directorySiteContacts,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#directorySiteContactsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type DirectorySiteContactsService

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

func NewDirectorySiteContactsService

func NewDirectorySiteContactsService(s *Service) *DirectorySiteContactsService

func (*DirectorySiteContactsService) Get

Get: Gets one directory site contact by ID.

func (*DirectorySiteContactsService) List

List: Retrieves a list of directory site contacts, possibly filtered.

type DirectorySiteSettings

type DirectorySiteSettings struct {
	// ActiveViewOptOut: Whether this directory site has disabled active
	// view creatives.
	ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`

	// Dfp_settings: Directory site DFP settings.
	Dfp_settings *DfpSettings `json:"dfp_settings,omitempty"`

	// Instream_video_placement_accepted: Whether this site accepts
	// in-stream video ads.
	Instream_video_placement_accepted bool `json:"instream_video_placement_accepted,omitempty"`

	// InterstitialPlacementAccepted: Whether this site accepts interstitial
	// ads.
	InterstitialPlacementAccepted bool `json:"interstitialPlacementAccepted,omitempty"`

	// NielsenOcrOptOut: Whether this directory site has disabled Nielsen
	// OCR reach ratings.
	NielsenOcrOptOut bool `json:"nielsenOcrOptOut,omitempty"`

	// VerificationTagOptOut: Whether this directory site has disabled
	// generation of Verification tags.
	VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"`

	// VideoActiveViewOptOut: Whether this directory site has disabled
	// active view for in-stream video creatives.
	VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"`
}

type DirectorySitesGetCall

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

func (*DirectorySitesGetCall) Do

func (*DirectorySitesGetCall) Fields

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

type DirectorySitesListCall

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

func (*DirectorySitesListCall) AcceptsInStreamVideoPlacements

func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *DirectorySitesListCall

AcceptsInStreamVideoPlacements sets the optional parameter "acceptsInStreamVideoPlacements": This search filter is no longer supported and will have no effect on the results returned.

func (*DirectorySitesListCall) AcceptsInterstitialPlacements

func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *DirectorySitesListCall

AcceptsInterstitialPlacements sets the optional parameter "acceptsInterstitialPlacements": This search filter is no longer supported and will have no effect on the results returned.

func (*DirectorySitesListCall) AcceptsPublisherPaidPlacements

func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *DirectorySitesListCall

AcceptsPublisherPaidPlacements sets the optional parameter "acceptsPublisherPaidPlacements": Select only directory sites that accept publisher paid placements. This field can be left blank.

func (*DirectorySitesListCall) Active

Active sets the optional parameter "active": Select only active directory sites. Leave blank to retrieve both active and inactive directory sites.

func (*DirectorySitesListCall) CountryId

func (c *DirectorySitesListCall) CountryId(countryId int64) *DirectorySitesListCall

CountryId sets the optional parameter "countryId": Select only directory sites with this country ID.

func (*DirectorySitesListCall) Dfp_network_code

func (c *DirectorySitesListCall) Dfp_network_code(dfp_network_code string) *DirectorySitesListCall

Dfp_network_code sets the optional parameter "dfp_network_code": Select only directory sites with this DFP network code.

func (*DirectorySitesListCall) Do

func (*DirectorySitesListCall) Fields

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

func (*DirectorySitesListCall) Ids

Ids sets the optional parameter "ids": Select only directory sites with these IDs.

func (*DirectorySitesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*DirectorySitesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*DirectorySitesListCall) ParentId

func (c *DirectorySitesListCall) ParentId(parentId int64) *DirectorySitesListCall

ParentId sets the optional parameter "parentId": Select only directory sites with this parent ID.

func (*DirectorySitesListCall) SearchString

func (c *DirectorySitesListCall) SearchString(searchString string) *DirectorySitesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name, ID or URL. Wildcards (*) are allowed. For example, "directory site*2015" will return objects with names like "directory site June 2015", "directory site April 2015" or simply "directory site 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "directory site" will match objects with name "my directory site", "directory site 2015" or simply "directory site".

func (*DirectorySitesListCall) SortField

func (c *DirectorySitesListCall) SortField(sortField string) *DirectorySitesListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*DirectorySitesListCall) SortOrder

func (c *DirectorySitesListCall) SortOrder(sortOrder string) *DirectorySitesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type DirectorySitesListResponse

type DirectorySitesListResponse struct {
	// DirectorySites: Directory site collection
	DirectorySites []*DirectorySite `json:"directorySites,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#directorySitesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type DirectorySitesService

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

func NewDirectorySitesService

func NewDirectorySitesService(s *Service) *DirectorySitesService

func (*DirectorySitesService) Get

func (r *DirectorySitesService) Get(profileId int64, id int64) *DirectorySitesGetCall

Get: Gets one directory site by ID.

func (*DirectorySitesService) List

List: Retrieves a list of directory sites, possibly filtered.

type EventTag

type EventTag struct {
	// AccountId: Account ID of this event tag. This is a read-only field
	// that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this event tag. This field or the
	// campaignId field is required 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"`

	// CampaignId: Campaign ID of this event tag. This field or the
	// advertiserId field is required 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"`

	// EnabledByDefault: Whether this event tag should be automatically
	// enabled for all of the advertiser's campaigns and ads.
	EnabledByDefault bool `json:"enabledByDefault,omitempty"`

	// Id: ID of this event tag. 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#eventTag".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this event tag. This is a required field and must be
	// less than 256 characters long.
	Name string `json:"name,omitempty"`

	// SiteFilterType: Site filter type for this event tag. If no type is
	// specified then the event tag will be applied to all sites.
	SiteFilterType string `json:"siteFilterType,omitempty"`

	// SiteIds: Filter list of site IDs associated with this event tag. The
	// siteFilterType determines whether this is a whitelist or blacklist
	// filter.
	SiteIds googleapi.Int64s `json:"siteIds,omitempty"`

	// SslCompliant: Whether this tag is SSL-compliant or not.
	SslCompliant bool `json:"sslCompliant,omitempty"`

	// Status: Status of this event tag. Must be ENABLED for this event tag
	// to fire. This is a required field.
	Status string `json:"status,omitempty"`

	// SubaccountId: Subaccount ID of this event tag. This is a read-only
	// field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`

	// Type: Event tag type. Can be used to specify whether to use a
	// third-party pixel, a third-party JavaScript URL, or a third-party
	// click-through URL for either impression or click tracking. This is a
	// required field.
	Type string `json:"type,omitempty"`

	// Url: Payload URL for this event tag. The URL on a click-through event
	// tag should have a landing page URL appended to the end of it. This
	// field is required on insertion.
	Url string `json:"url,omitempty"`

	// UrlEscapeLevels: Number of times the landing page URL should be
	// URL-escaped before being appended to the click-through event tag URL.
	// Only applies to click-through event tags as specified by the event
	// tag type.
	UrlEscapeLevels int64 `json:"urlEscapeLevels,omitempty"`
}

type EventTagOverride

type EventTagOverride struct {
	// Enabled: Whether this override is enabled.
	Enabled bool `json:"enabled,omitempty"`

	// Id: ID of this event tag override. This is a read-only,
	// auto-generated field.
	Id int64 `json:"id,omitempty,string"`
}

type EventTagsDeleteCall

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

func (*EventTagsDeleteCall) Do

func (c *EventTagsDeleteCall) Do() error

func (*EventTagsDeleteCall) Fields

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

type EventTagsGetCall

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

func (*EventTagsGetCall) Do

func (c *EventTagsGetCall) Do() (*EventTag, error)

func (*EventTagsGetCall) Fields

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

type EventTagsInsertCall

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

func (*EventTagsInsertCall) Do

func (c *EventTagsInsertCall) Do() (*EventTag, error)

func (*EventTagsInsertCall) Fields

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

type EventTagsListCall

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

func (*EventTagsListCall) AdId

func (c *EventTagsListCall) AdId(adId int64) *EventTagsListCall

AdId sets the optional parameter "adId": Select only event tags that belong to this ad.

func (*EventTagsListCall) AdvertiserId

func (c *EventTagsListCall) AdvertiserId(advertiserId int64) *EventTagsListCall

AdvertiserId sets the optional parameter "advertiserId": Select only event tags that belong to this advertiser.

func (*EventTagsListCall) CampaignId

func (c *EventTagsListCall) CampaignId(campaignId int64) *EventTagsListCall

CampaignId sets the optional parameter "campaignId": Select only event tags that belong to this campaign.

func (*EventTagsListCall) DefinitionsOnly

func (c *EventTagsListCall) DefinitionsOnly(definitionsOnly bool) *EventTagsListCall

DefinitionsOnly sets the optional parameter "definitionsOnly": Examine only the specified ad or campaign or advertiser's event tags for matching selector criteria. When set to false, the parent advertiser and parent campaign is examined as well. In addition, when set to false, the status field is examined as well along with the enabledByDefault field.

func (*EventTagsListCall) Do

func (*EventTagsListCall) Enabled

func (c *EventTagsListCall) Enabled(enabled bool) *EventTagsListCall

Enabled sets the optional parameter "enabled": Select only enabled event tags. When definitionsOnly is set to true, only the specified advertiser or campaign's event tags' enabledByDefault field is examined. When definitionsOnly is set to false, the specified ad or specified campaign's parent advertiser's or parent campaign's event tags' enabledByDefault and status fields are examined as well.

func (*EventTagsListCall) EventTagTypes

func (c *EventTagsListCall) EventTagTypes(eventTagTypes string) *EventTagsListCall

EventTagTypes sets the optional parameter "eventTagTypes": Select only event tags with the specified event tag types. Event tag types can be used to specify whether to use a third-party pixel, a third-party JavaScript URL, or a third-party click-through URL for either impression or click tracking.

func (*EventTagsListCall) Fields

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

func (*EventTagsListCall) Ids

Ids sets the optional parameter "ids": Select only event tags with these IDs.

func (*EventTagsListCall) SearchString

func (c *EventTagsListCall) SearchString(searchString string) *EventTagsListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "eventtag*2015" will return objects with names like "eventtag June 2015", "eventtag April 2015" or simply "eventtag 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "eventtag" will match objects with name "my eventtag", "eventtag 2015" or simply "eventtag".

func (*EventTagsListCall) SortField

func (c *EventTagsListCall) SortField(sortField string) *EventTagsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*EventTagsListCall) SortOrder

func (c *EventTagsListCall) SortOrder(sortOrder string) *EventTagsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type EventTagsListResponse

type EventTagsListResponse struct {
	// EventTags: Event tag collection
	EventTags []*EventTag `json:"eventTags,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#eventTagsListResponse".
	Kind string `json:"kind,omitempty"`
}

type EventTagsPatchCall

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

func (*EventTagsPatchCall) Do

func (c *EventTagsPatchCall) Do() (*EventTag, error)

func (*EventTagsPatchCall) Fields

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

type EventTagsService

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

func NewEventTagsService

func NewEventTagsService(s *Service) *EventTagsService

func (*EventTagsService) Delete

func (r *EventTagsService) Delete(profileId int64, id int64) *EventTagsDeleteCall

Delete: Deletes an existing event tag.

func (*EventTagsService) Get

func (r *EventTagsService) Get(profileId int64, id int64) *EventTagsGetCall

Get: Gets one event tag by ID.

func (*EventTagsService) Insert

func (r *EventTagsService) Insert(profileId int64, eventtag *EventTag) *EventTagsInsertCall

Insert: Inserts a new event tag.

func (*EventTagsService) List

func (r *EventTagsService) List(profileId int64) *EventTagsListCall

List: Retrieves a list of event tags, possibly filtered.

func (*EventTagsService) Patch

func (r *EventTagsService) Patch(profileId int64, id int64, eventtag *EventTag) *EventTagsPatchCall

Patch: Updates an existing event tag. This method supports patch semantics.

func (*EventTagsService) Update

func (r *EventTagsService) Update(profileId int64, eventtag *EventTag) *EventTagsUpdateCall

Update: Updates an existing event tag.

type EventTagsUpdateCall

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

func (*EventTagsUpdateCall) Do

func (c *EventTagsUpdateCall) Do() (*EventTag, error)

func (*EventTagsUpdateCall) Fields

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

type File

type File struct {
	// DateRange: The date range for which the file has report data. The
	// date range will always be the absolute date range for which the
	// report is run.
	DateRange *DateRange `json:"dateRange,omitempty"`

	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// FileName: The filename of the file.
	FileName string `json:"fileName,omitempty"`

	// Format: The output format of the report. Only available once the file
	// is available.
	Format string `json:"format,omitempty"`

	// Id: The unique ID of this report file.
	Id int64 `json:"id,omitempty,string"`

	// Kind: The kind of resource this is, in this case dfareporting#file.
	Kind string `json:"kind,omitempty"`

	// LastModifiedTime: The timestamp in milliseconds since epoch when this
	// file was last modified.
	LastModifiedTime int64 `json:"lastModifiedTime,omitempty,string"`

	// ReportId: The ID of the report this file was generated from.
	ReportId int64 `json:"reportId,omitempty,string"`

	// Status: The status of the report file.
	Status string `json:"status,omitempty"`

	// Urls: The URLs where the completed report file can be downloaded.
	Urls *FileUrls `json:"urls,omitempty"`
}

type FileList

type FileList struct {
	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// Items: The files returned in this response.
	Items []*File `json:"items,omitempty"`

	// Kind: The kind of list this is, in this case dfareporting#fileList.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Continuation token used to page through files. To
	// retrieve the next page of results, set the next request's "pageToken"
	// to the value of this field. The page token is only valid for a
	// limited amount of time and should not be persisted.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type FileUrls

type FileUrls struct {
	// ApiUrl: The URL for downloading the report data through the API.
	ApiUrl string `json:"apiUrl,omitempty"`

	// BrowserUrl: The URL for downloading the report data through a
	// browser.
	BrowserUrl string `json:"browserUrl,omitempty"`
}

type FilesGetCall

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

func (*FilesGetCall) Do

func (c *FilesGetCall) Do() (*File, error)

func (*FilesGetCall) Fields

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

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

type FilesListCall

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

func (*FilesListCall) Do

func (c *FilesListCall) Do() (*FileList, error)

func (*FilesListCall) Fields

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

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

func (*FilesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*FilesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": The value of the nextToken from the previous result page.

func (*FilesListCall) Scope

func (c *FilesListCall) Scope(scope string) *FilesListCall

Scope sets the optional parameter "scope": The scope that defines which results are returned, default is 'MINE'.

func (*FilesListCall) SortField

func (c *FilesListCall) SortField(sortField string) *FilesListCall

SortField sets the optional parameter "sortField": The field by which to sort the list.

func (*FilesListCall) SortOrder

func (c *FilesListCall) SortOrder(sortOrder string) *FilesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is 'DESCENDING'.

type FilesService

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

func NewFilesService

func NewFilesService(s *Service) *FilesService

func (*FilesService) Get

func (r *FilesService) Get(reportId int64, fileId int64) *FilesGetCall

Get: Retrieves a report file by its report ID and file ID.

func (*FilesService) List

func (r *FilesService) List(profileId int64) *FilesListCall

List: Lists files for a user profile.

type FloodlightActivitiesDeleteCall

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

func (*FloodlightActivitiesDeleteCall) Do

func (*FloodlightActivitiesDeleteCall) Fields

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

type FloodlightActivitiesGenerateTagResponse

type FloodlightActivitiesGenerateTagResponse struct {
	// FloodlightActivityTag: Generated tag for this floodlight activity.
	FloodlightActivityTag string `json:"floodlightActivityTag,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#floodlightActivitiesGenerateTagResponse".
	Kind string `json:"kind,omitempty"`
}

type FloodlightActivitiesGeneratetagCall

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

func (*FloodlightActivitiesGeneratetagCall) Do

func (*FloodlightActivitiesGeneratetagCall) Fields

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

func (*FloodlightActivitiesGeneratetagCall) FloodlightActivityId

func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityId int64) *FloodlightActivitiesGeneratetagCall

FloodlightActivityId sets the optional parameter "floodlightActivityId": Floodlight activity ID for which we want to generate a tag.

type FloodlightActivitiesGetCall

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

func (*FloodlightActivitiesGetCall) Do

func (*FloodlightActivitiesGetCall) Fields

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

type FloodlightActivitiesInsertCall

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

func (*FloodlightActivitiesInsertCall) Do

func (*FloodlightActivitiesInsertCall) Fields

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

type FloodlightActivitiesListCall

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

func (*FloodlightActivitiesListCall) AdvertiserId

func (c *FloodlightActivitiesListCall) AdvertiserId(advertiserId int64) *FloodlightActivitiesListCall

AdvertiserId sets the optional parameter "advertiserId": Select only floodlight activities for the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivitiesListCall) Do

func (*FloodlightActivitiesListCall) Fields

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

func (*FloodlightActivitiesListCall) FloodlightActivityGroupIds

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds int64) *FloodlightActivitiesListCall

FloodlightActivityGroupIds sets the optional parameter "floodlightActivityGroupIds": Select only floodlight activities with the specified floodlight activity group IDs.

func (*FloodlightActivitiesListCall) FloodlightActivityGroupName

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupName string) *FloodlightActivitiesListCall

FloodlightActivityGroupName sets the optional parameter "floodlightActivityGroupName": Select only floodlight activities with the specified floodlight activity group name.

func (*FloodlightActivitiesListCall) FloodlightActivityGroupTagString

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagString string) *FloodlightActivitiesListCall

FloodlightActivityGroupTagString sets the optional parameter "floodlightActivityGroupTagString": Select only floodlight activities with the specified floodlight activity group tag string.

func (*FloodlightActivitiesListCall) FloodlightActivityGroupType

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightActivityGroupType string) *FloodlightActivitiesListCall

FloodlightActivityGroupType sets the optional parameter "floodlightActivityGroupType": Select only floodlight activities with the specified floodlight activity group type.

func (*FloodlightActivitiesListCall) FloodlightConfigurationId

func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivitiesListCall

FloodlightConfigurationId sets the optional parameter "floodlightConfigurationId": Select only floodlight activities for the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivitiesListCall) Ids

Ids sets the optional parameter "ids": Select only floodlight activities with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivitiesListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*FloodlightActivitiesListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*FloodlightActivitiesListCall) SearchString

func (c *FloodlightActivitiesListCall) SearchString(searchString string) *FloodlightActivitiesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "floodlightactivity*2015" will return objects with names like "floodlightactivity June 2015", "floodlightactivity April 2015" or simply "floodlightactivity 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "floodlightactivity" will match objects with name "my floodlightactivity activity", "floodlightactivity 2015" or simply "floodlightactivity".

func (*FloodlightActivitiesListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*FloodlightActivitiesListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*FloodlightActivitiesListCall) TagString

TagString sets the optional parameter "tagString": Select only floodlight activities with the specified tag string.

type FloodlightActivitiesListResponse

type FloodlightActivitiesListResponse struct {
	// FloodlightActivities: Floodlight activity collection
	FloodlightActivities []*FloodlightActivity `json:"floodlightActivities,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#floodlightActivitiesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type FloodlightActivitiesPatchCall

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

func (*FloodlightActivitiesPatchCall) Do

func (*FloodlightActivitiesPatchCall) Fields

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

type FloodlightActivitiesService

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

func NewFloodlightActivitiesService

func NewFloodlightActivitiesService(s *Service) *FloodlightActivitiesService

func (*FloodlightActivitiesService) Delete

Delete: Deletes an existing floodlight activity.

func (*FloodlightActivitiesService) Generatetag

Generatetag: Generates a tag for a floodlight activity.

func (*FloodlightActivitiesService) Get

Get: Gets one floodlight activity by ID.

func (*FloodlightActivitiesService) Insert

func (r *FloodlightActivitiesService) Insert(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesInsertCall

Insert: Inserts a new floodlight activity.

func (*FloodlightActivitiesService) List

List: Retrieves a list of floodlight activities, possibly filtered.

func (*FloodlightActivitiesService) Patch

func (r *FloodlightActivitiesService) Patch(profileId int64, id int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesPatchCall

Patch: Updates an existing floodlight activity. This method supports patch semantics.

func (*FloodlightActivitiesService) Update

func (r *FloodlightActivitiesService) Update(profileId int64, floodlightactivity *FloodlightActivity) *FloodlightActivitiesUpdateCall

Update: Updates an existing floodlight activity.

type FloodlightActivitiesUpdateCall

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

func (*FloodlightActivitiesUpdateCall) Do

func (*FloodlightActivitiesUpdateCall) Fields

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

type FloodlightActivity

type FloodlightActivity struct {
	// AccountId: Account ID of this floodlight activity.This is a read-only
	// field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this floodlight activity. If this
	// field is left blank, the value will be copied over either from the
	// activity group's advertiser or the existing activity's advertiser.
	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"`

	// CacheBustingType: Code type used for cache busting in the generated
	// tag.
	CacheBustingType string `json:"cacheBustingType,omitempty"`

	// CountingMethod: Counting method for conversions for this floodlight
	// activity. This is a required field.
	CountingMethod string `json:"countingMethod,omitempty"`

	// DefaultTags: Dynamic floodlight tags.
	DefaultTags []*FloodlightActivityDynamicTag `json:"defaultTags,omitempty"`

	// ExpectedUrl: URL where this tag will be deployed. If specified, must
	// be less than 256 characters long.
	ExpectedUrl string `json:"expectedUrl,omitempty"`

	// FloodlightActivityGroupId: Floodlight activity group ID of this
	// floodlight activity. This is a required field.
	FloodlightActivityGroupId int64 `json:"floodlightActivityGroupId,omitempty,string"`

	// FloodlightActivityGroupName: Name of the associated floodlight
	// activity group. This is a read-only field.
	FloodlightActivityGroupName string `json:"floodlightActivityGroupName,omitempty"`

	// FloodlightActivityGroupTagString: Tag string of the associated
	// floodlight activity group. This is a read-only field.
	FloodlightActivityGroupTagString string `json:"floodlightActivityGroupTagString,omitempty"`

	// FloodlightActivityGroupType: Type of the associated floodlight
	// activity group. This is a read-only field.
	FloodlightActivityGroupType string `json:"floodlightActivityGroupType,omitempty"`

	// FloodlightConfigurationId: Floodlight configuration ID of this
	// floodlight activity. If this field is left blank, the value will be
	// copied over either from the activity group's floodlight configuration
	// or from the existing activity's floodlight configuration.
	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"`

	// Hidden: Whether this activity is archived.
	Hidden bool `json:"hidden,omitempty"`

	// Id: ID of this floodlight activity. This is a read-only,
	// auto-generated field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this floodlight
	// activity.This is a read-only, auto-generated field.
	IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`

	// ImageTagEnabled: Whether the image tag is enabled for this activity.
	ImageTagEnabled bool `json:"imageTagEnabled,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#floodlightActivity".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this floodlight activity. This is a required field.
	// Must be less than 129 characters long and cannot contain quotes.
	Name string `json:"name,omitempty"`

	// Notes: General notes or implementation instructions for the tag.
	Notes string `json:"notes,omitempty"`

	// PublisherTags: Publisher dynamic floodlight tags.
	PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"`

	// Secure: Whether this tag should use SSL.
	Secure bool `json:"secure,omitempty"`

	// SslCompliant: Whether the floodlight activity is SSL-compliant. This
	// is a read-only field, its value detected by the system from the
	// floodlight tags.
	SslCompliant bool `json:"sslCompliant,omitempty"`

	// SslRequired: Whether this floodlight activity must be SSL-compliant.
	SslRequired bool `json:"sslRequired,omitempty"`

	// SubaccountId: Subaccount ID of this floodlight activity.This is a
	// read-only field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`

	// TagFormat: Tag format type for the floodlight activity. If left
	// blank, the tag format will default to HTML.
	TagFormat string `json:"tagFormat,omitempty"`

	// TagString: Value of the cat= paramter in the floodlight tag, which
	// the ad servers use to identify the activity. This is optional: if
	// empty, a new tag string will be generated for you. This string must
	// be 1 to 8 characters long, with valid characters being
	// [a-z][A-Z][0-9][-][ _ ]. This tag string must also be unique among
	// activities of the same activity group. This field is read-only after
	// insertion.
	TagString string `json:"tagString,omitempty"`

	// UserDefinedVariableTypes: List of the user-defined variables used by
	// this conversion tag. These map to the "u[1-20]=" in the tags. Each of
	// these can have a user defined type.
	// Acceptable values are:
	// - "U1"
	// -
	// "U2"
	// - "U3"
	// - "U4"
	// - "U5"
	// - "U6"
	// - "U7"
	// - "U8"
	// - "U9"
	// - "U10"
	// -
	// "U11"
	// - "U12"
	// - "U13"
	// - "U14"
	// - "U15"
	// - "U16"
	// - "U17"
	// - "U18"
	// -
	// "U19"
	// - "U20"
	UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"`
}

type FloodlightActivityDynamicTag

type FloodlightActivityDynamicTag struct {
	// Id: ID of this dynamic tag. This is a read-only, auto-generated
	// field.
	Id int64 `json:"id,omitempty,string"`

	// Name: Name of this tag.
	Name string `json:"name,omitempty"`

	// Tag: Tag code.
	Tag string `json:"tag,omitempty"`
}

type FloodlightActivityGroup

type FloodlightActivityGroup struct {
	// AccountId: Account ID of this floodlight activity group.This is a
	// read-only field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this floodlight activity group. If
	// this field is left blank, the value will be copied over either from
	// the floodlight configuration's advertiser or from the existing
	// activity group's advertiser.
	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"`

	// FloodlightConfigurationId: Floodlight configuration ID of this
	// floodlight activity group. This is a required field.
	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 floodlight activity group. This is a read-only,
	// auto-generated field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this floodlight
	// activity group. 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#floodlightActivityGroup".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this floodlight activity group. This is a required
	// field. Must be less than 65 characters long and cannot contain
	// quotes.
	Name string `json:"name,omitempty"`

	// SubaccountId: Subaccount ID of this floodlight activity group. This
	// is a read-only field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`

	// TagString: Value of the type= parameter in the floodlight tag, which
	// the ad servers use to identify the activity group that the activity
	// belongs to. This is optional: if empty, a new tag string will be
	// generated for you. This string must be 1 to 8 characters long, with
	// valid characters being [a-z][A-Z][0-9][-][ _ ]. This tag string must
	// also be unique among activity groups of the same floodlight
	// configuration. This field is read-only after insertion.
	TagString string `json:"tagString,omitempty"`

	// Type: The type of floodlight activity group. This is a required field
	// that is read-only after insertion.
	Type string `json:"type,omitempty"`
}

type FloodlightActivityGroupsDeleteCall

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

func (*FloodlightActivityGroupsDeleteCall) Do

func (*FloodlightActivityGroupsDeleteCall) Fields

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

type FloodlightActivityGroupsGetCall

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

func (*FloodlightActivityGroupsGetCall) Do

func (*FloodlightActivityGroupsGetCall) Fields

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

type FloodlightActivityGroupsInsertCall

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

func (*FloodlightActivityGroupsInsertCall) Do

func (*FloodlightActivityGroupsInsertCall) Fields

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

type FloodlightActivityGroupsListCall

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

func (*FloodlightActivityGroupsListCall) AdvertiserId

AdvertiserId sets the optional parameter "advertiserId": Select only floodlight activity groups with the specified advertiser ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivityGroupsListCall) Do

func (*FloodlightActivityGroupsListCall) Fields

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

func (*FloodlightActivityGroupsListCall) FloodlightConfigurationId

func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationId int64) *FloodlightActivityGroupsListCall

FloodlightConfigurationId sets the optional parameter "floodlightConfigurationId": Select only floodlight activity groups with the specified floodlight configuration ID. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivityGroupsListCall) Ids

Ids sets the optional parameter "ids": Select only floodlight activity groups with the specified IDs. Must specify either ids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivityGroupsListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*FloodlightActivityGroupsListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*FloodlightActivityGroupsListCall) SearchString

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "floodlightactivitygroup*2015" will return objects with names like "floodlightactivitygroup June 2015", "floodlightactivitygroup April 2015" or simply "floodlightactivitygroup 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "floodlightactivitygroup" will match objects with name "my floodlightactivitygroup activity", "floodlightactivitygroup 2015" or simply "floodlightactivitygroup".

func (*FloodlightActivityGroupsListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*FloodlightActivityGroupsListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*FloodlightActivityGroupsListCall) Type

Type sets the optional parameter "type": Select only floodlight activity groups with the specified floodlight activity group type.

type FloodlightActivityGroupsListResponse

type FloodlightActivityGroupsListResponse struct {
	// FloodlightActivityGroups: Floodlight activity group collection
	FloodlightActivityGroups []*FloodlightActivityGroup `json:"floodlightActivityGroups,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#floodlightActivityGroupsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type FloodlightActivityGroupsPatchCall

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

func (*FloodlightActivityGroupsPatchCall) Do

func (*FloodlightActivityGroupsPatchCall) Fields

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

type FloodlightActivityGroupsService

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

func NewFloodlightActivityGroupsService

func NewFloodlightActivityGroupsService(s *Service) *FloodlightActivityGroupsService

func (*FloodlightActivityGroupsService) Delete

Delete: Deletes an existing floodlight activity group.

func (*FloodlightActivityGroupsService) Get

Get: Gets one floodlight activity group by ID.

func (*FloodlightActivityGroupsService) Insert

Insert: Inserts a new floodlight activity group.

func (*FloodlightActivityGroupsService) List

List: Retrieves a list of floodlight activity groups, possibly filtered.

func (*FloodlightActivityGroupsService) Patch

Patch: Updates an existing floodlight activity group. This method supports patch semantics.

func (*FloodlightActivityGroupsService) Update

Update: Updates an existing floodlight activity group.

type FloodlightActivityGroupsUpdateCall

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

func (*FloodlightActivityGroupsUpdateCall) Do

func (*FloodlightActivityGroupsUpdateCall) Fields

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

type FloodlightActivityPublisherDynamicTag

type FloodlightActivityPublisherDynamicTag struct {
	// ClickThrough: Whether this tag is applicable only for click-throughs.
	ClickThrough bool `json:"clickThrough,omitempty"`

	// DirectorySiteId: Directory site ID of this dynamic tag. This is a
	// write-only field that can be used as an alternative to the siteId
	// field. When this resource is retrieved, only the siteId field will be
	// populated.
	DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`

	// DynamicTag: Dynamic floodlight tag.
	DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"`

	// SiteId: Site ID of this dynamic tag.
	SiteId int64 `json:"siteId,omitempty,string"`

	// SiteIdDimensionValue: Dimension value for the ID of the site. This is
	// a read-only, auto-generated field.
	SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`

	// ViewThrough: Whether this tag is applicable only for view-throughs.
	ViewThrough bool `json:"viewThrough,omitempty"`
}

type FloodlightConfiguration

type FloodlightConfiguration struct {
	// AccountId: Account ID of this floodlight configuration. This is a
	// read-only field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of the parent advertiser of this
	// floodlight configuration.
	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"`

	// AnalyticsDataSharingEnabled: Whether advertiser data is shared with
	// Google Analytics.
	AnalyticsDataSharingEnabled bool `json:"analyticsDataSharingEnabled,omitempty"`

	// ExposureToConversionEnabled: Whether the exposure to conversion
	// report is enabled. This report shows detailed pathway information on
	// up to 10 of the most recent ad exposures seen by a user before
	// converting.
	ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"`

	// FirstDayOfWeek: Day that will be counted as the first day of the week
	// in reports. This is a required field.
	FirstDayOfWeek string `json:"firstDayOfWeek,omitempty"`

	// Id: ID of this floodlight configuration. This is a read-only,
	// auto-generated field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this floodlight
	// configuration. 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#floodlightConfiguration".
	Kind string `json:"kind,omitempty"`

	// LookbackConfiguration: Lookback window settings for this floodlight
	// configuration.
	LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`

	// NaturalSearchConversionAttributionOption: Types of attribution
	// options for natural search conversions.
	NaturalSearchConversionAttributionOption string `json:"naturalSearchConversionAttributionOption,omitempty"`

	// OmnitureSettings: Settings for DCM Omniture integration.
	OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"`

	// SslRequired: Whether floodlight activities owned by this
	// configuration are required to be SSL-compliant.
	SslRequired bool `json:"sslRequired,omitempty"`

	// StandardVariableTypes: List of standard variables enabled for this
	// configuration.
	//
	// Acceptable values are:
	// - "ORD"
	// - "NUM"
	StandardVariableTypes []string `json:"standardVariableTypes,omitempty"`

	// SubaccountId: Subaccount ID of this floodlight configuration. This is
	// a read-only field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`

	// TagSettings: Configuration settings for dynamic and image floodlight
	// tags.
	TagSettings *TagSettings `json:"tagSettings,omitempty"`

	// UserDefinedVariableConfigurations: List of user defined variables
	// enabled for this configuration.
	UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"`
}

type FloodlightConfigurationsGetCall

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

func (*FloodlightConfigurationsGetCall) Do

func (*FloodlightConfigurationsGetCall) Fields

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

type FloodlightConfigurationsListCall

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

func (*FloodlightConfigurationsListCall) Do

func (*FloodlightConfigurationsListCall) Fields

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

func (*FloodlightConfigurationsListCall) Ids

Ids sets the optional parameter "ids": Set of IDs of floodlight configurations to retrieve. Required field; otherwise an empty list will be returned.

type FloodlightConfigurationsListResponse

type FloodlightConfigurationsListResponse struct {
	// FloodlightConfigurations: Floodlight configuration collection
	FloodlightConfigurations []*FloodlightConfiguration `json:"floodlightConfigurations,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#floodlightConfigurationsListResponse".
	Kind string `json:"kind,omitempty"`
}

type FloodlightConfigurationsPatchCall

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

func (*FloodlightConfigurationsPatchCall) Do

func (*FloodlightConfigurationsPatchCall) Fields

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

type FloodlightConfigurationsService

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

func NewFloodlightConfigurationsService

func NewFloodlightConfigurationsService(s *Service) *FloodlightConfigurationsService

func (*FloodlightConfigurationsService) Get

Get: Gets one floodlight configuration by ID.

func (*FloodlightConfigurationsService) List

List: Retrieves a list of floodlight configurations, possibly filtered.

func (*FloodlightConfigurationsService) Patch

Patch: Updates an existing floodlight configuration. This method supports patch semantics.

func (*FloodlightConfigurationsService) Update

Update: Updates an existing floodlight configuration.

type FloodlightConfigurationsUpdateCall

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

func (*FloodlightConfigurationsUpdateCall) Do

func (*FloodlightConfigurationsUpdateCall) Fields

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

type FloodlightReportCompatibleFields

type FloodlightReportCompatibleFields struct {
	// DimensionFilters: Dimensions which are compatible to be selected in
	// the "dimensionFilters" section of the report.
	DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`

	// Dimensions: Dimensions which are compatible to be selected in the
	// "dimensions" section of the report.
	Dimensions []*Dimension `json:"dimensions,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#floodlightReportCompatibleFields.
	Kind string `json:"kind,omitempty"`

	// Metrics: Metrics which are compatible to be selected in the
	// "metricNames" section of the report.
	Metrics []*Metric `json:"metrics,omitempty"`
}

type FrequencyCap

type FrequencyCap struct {
	// Duration: Duration of time, in seconds, for this frequency cap. The
	// maximum duration is 90 days in seconds, or 7,776,000.
	Duration int64 `json:"duration,omitempty,string"`

	// Impressions: Number of times an individual user can be served the ad
	// within the specified duration. The maximum allowed is 15.
	Impressions int64 `json:"impressions,omitempty,string"`
}

type FsCommand

type FsCommand struct {
	// Left: Distance from the left of the browser.Applicable when
	// positionOption is DISTANCE_FROM_TOP_LEFT_CORNER.
	Left int64 `json:"left,omitempty"`

	// PositionOption: Position in the browser where the window will open.
	PositionOption string `json:"positionOption,omitempty"`

	// Top: Distance from the top of the browser. Applicable when
	// positionOption is DISTANCE_FROM_TOP_LEFT_CORNER.
	Top int64 `json:"top,omitempty"`

	// WindowHeight: Height of the window.
	WindowHeight int64 `json:"windowHeight,omitempty"`

	// WindowWidth: Width of the window.
	WindowWidth int64 `json:"windowWidth,omitempty"`
}

type GeoTargeting

type GeoTargeting struct {
	// Cities: Cities to be targeted. For each city only dartId is required.
	// The other fields are populated automatically when the ad is inserted
	// or updated. If targeting a city, do not target or exclude the country
	// of the city, and do not target the metro or region of the city.
	Cities []*City `json:"cities,omitempty"`

	// Countries: Countries to be targeted or excluded from targeting,
	// depending on the setting of the excludeCountries field. For each
	// country only dartId is required. The other fields are populated
	// automatically when the ad is inserted or updated. If targeting or
	// excluding a country, do not target regions, cities, metros, or postal
	// codes in the same country.
	Countries []*Country `json:"countries,omitempty"`

	// ExcludeCountries: Whether or not to exclude the countries in the
	// countries field from targeting. If false, the countries field refers
	// to countries which will be targeted by the ad.
	ExcludeCountries bool `json:"excludeCountries,omitempty"`

	// Metros: Metros to be targeted. For each metro only dmaId is required.
	// The other fields are populated automatically when the ad is inserted
	// or updated. If targeting a metro, do not target or exclude the
	// country of the metro.
	Metros []*Metro `json:"metros,omitempty"`

	// PostalCodes: Postal codes to be targeted. For each postal code only
	// id is required. The other fields are populated automatically when the
	// ad is inserted or updated. If targeting a postal code, do not target
	// or exclude the country of the postal code.
	PostalCodes []*PostalCode `json:"postalCodes,omitempty"`

	// Regions: Regions to be targeted. For each region only dartId is
	// required. The other fields are populated automatically when the ad is
	// inserted or updated. If targeting a region, do not target or exclude
	// the country of the region.
	Regions []*Region `json:"regions,omitempty"`
}

type KeyValueTargetingExpression

type KeyValueTargetingExpression struct {
	// Expression: Keyword expression being targeted by the ad.
	Expression string `json:"expression,omitempty"`
}

type LandingPage

type LandingPage struct {
	// Default: Whether or not this landing page will be assigned to any ads
	// or creatives that do not have a landing page assigned explicitly.
	// Only one default landing page is allowed per campaign.
	Default bool `json:"default,omitempty"`

	// Id: ID of this landing page. 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#landingPage".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this landing page. This is a required field. Must be
	// less than 256 characters long, and must be unique among landing pages
	// of the same campaign.
	Name string `json:"name,omitempty"`

	// Url: URL of this landing page. This is a required field.
	Url string `json:"url,omitempty"`
}

type LandingPagesDeleteCall

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

func (*LandingPagesDeleteCall) Do

func (c *LandingPagesDeleteCall) Do() error

func (*LandingPagesDeleteCall) Fields

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

type LandingPagesGetCall

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

func (*LandingPagesGetCall) Do

func (*LandingPagesGetCall) Fields

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

type LandingPagesInsertCall

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

func (*LandingPagesInsertCall) Do

func (*LandingPagesInsertCall) Fields

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

type LandingPagesListCall

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

func (*LandingPagesListCall) Do

func (*LandingPagesListCall) Fields

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

type LandingPagesListResponse

type LandingPagesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#landingPagesListResponse".
	Kind string `json:"kind,omitempty"`

	// LandingPages: Landing page collection
	LandingPages []*LandingPage `json:"landingPages,omitempty"`
}

type LandingPagesPatchCall

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

func (*LandingPagesPatchCall) Do

func (*LandingPagesPatchCall) Fields

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

type LandingPagesService

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

func NewLandingPagesService

func NewLandingPagesService(s *Service) *LandingPagesService

func (*LandingPagesService) Delete

func (r *LandingPagesService) Delete(profileId int64, campaignId int64, id int64) *LandingPagesDeleteCall

Delete: Deletes an existing campaign landing page.

func (*LandingPagesService) Get

func (r *LandingPagesService) Get(profileId int64, campaignId int64, id int64) *LandingPagesGetCall

Get: Gets one campaign landing page by ID.

func (*LandingPagesService) Insert

func (r *LandingPagesService) Insert(profileId int64, campaignId int64, landingpage *LandingPage) *LandingPagesInsertCall

Insert: Inserts a new landing page for the specified campaign.

func (*LandingPagesService) List

func (r *LandingPagesService) List(profileId int64, campaignId int64) *LandingPagesListCall

List: Retrieves the list of landing pages for the specified campaign.

func (*LandingPagesService) Patch

func (r *LandingPagesService) Patch(profileId int64, campaignId int64, id int64, landingpage *LandingPage) *LandingPagesPatchCall

Patch: Updates an existing campaign landing page. This method supports patch semantics.

func (*LandingPagesService) Update

func (r *LandingPagesService) Update(profileId int64, campaignId int64, landingpage *LandingPage) *LandingPagesUpdateCall

Update: Updates an existing campaign landing page.

type LandingPagesUpdateCall

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

func (*LandingPagesUpdateCall) Do

func (*LandingPagesUpdateCall) Fields

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

type LastModifiedInfo

type LastModifiedInfo struct {
	// Time: Timestamp of the last change in milliseconds since epoch.
	Time int64 `json:"time,omitempty,string"`
}

type ListTargetingExpression

type ListTargetingExpression struct {
	// Expression: Expression describing which lists are being targeted by
	// the ad.
	Expression string `json:"expression,omitempty"`
}

type LookbackConfiguration

type LookbackConfiguration struct {
	// ClickDuration: Lookback window, in days, from the last time a given
	// user clicked on one of your ads. If you enter 0, clicks will not be
	// considered as triggering events for floodlight tracking. If you leave
	// this field blank, the default value for your account will be used.
	ClickDuration int64 `json:"clickDuration,omitempty"`

	// PostImpressionActivitiesDuration: Lookback window, in days, from the
	// last time a given user viewed one of your ads. If you enter 0,
	// impressions will not be considered as triggering events for
	// floodlight tracking. If you leave this field blank, the default value
	// for your account will be used.
	PostImpressionActivitiesDuration int64 `json:"postImpressionActivitiesDuration,omitempty"`
}

type Metric

type Metric struct {
	// Kind: The kind of resource this is, in this case dfareporting#metric.
	Kind string `json:"kind,omitempty"`

	// Name: The metric name, e.g. dfa:impressions
	Name string `json:"name,omitempty"`
}

type Metro

type Metro struct {
	// CountryCode: Country code of the country to which this metro region
	// belongs.
	CountryCode string `json:"countryCode,omitempty"`

	// CountryDartId: DART ID of the country to which this metro region
	// belongs.
	CountryDartId int64 `json:"countryDartId,omitempty,string"`

	// DartId: DART ID of this metro region.
	DartId int64 `json:"dartId,omitempty,string"`

	// DmaId: DMA ID of this metro region. This is the ID used for targeting
	// and generating reports, and is equivalent to metro_code.
	DmaId int64 `json:"dmaId,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#metro".
	Kind string `json:"kind,omitempty"`

	// MetroCode: Metro code of this metro region. This is equivalent to
	// dma_id.
	MetroCode string `json:"metroCode,omitempty"`

	// Name: Name of this metro region.
	Name string `json:"name,omitempty"`
}

type MetrosListCall

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

func (*MetrosListCall) Do

func (*MetrosListCall) Fields

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

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

type MetrosListResponse

type MetrosListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#metrosListResponse".
	Kind string `json:"kind,omitempty"`

	// Metros: Metro collection
	Metros []*Metro `json:"metros,omitempty"`
}

type MetrosService

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

func NewMetrosService

func NewMetrosService(s *Service) *MetrosService

func (*MetrosService) List

func (r *MetrosService) List(profileId int64) *MetrosListCall

List: Retrieves a list of metros.

type MobileCarrier

type MobileCarrier struct {
	// CountryCode: Country code of the country to which this mobile carrier
	// belongs.
	CountryCode string `json:"countryCode,omitempty"`

	// CountryDartId: DART ID of the country to which this mobile carrier
	// belongs.
	CountryDartId int64 `json:"countryDartId,omitempty,string"`

	// Id: ID of this mobile carrier.
	Id int64 `json:"id,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#mobileCarrier".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this mobile carrier.
	Name string `json:"name,omitempty"`
}

type MobileCarriersListCall

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

func (*MobileCarriersListCall) Do

func (*MobileCarriersListCall) Fields

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

type MobileCarriersListResponse

type MobileCarriersListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#mobileCarriersListResponse".
	Kind string `json:"kind,omitempty"`

	// MobileCarriers: Mobile carrier collection
	MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`
}

type MobileCarriersService

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

func NewMobileCarriersService

func NewMobileCarriersService(s *Service) *MobileCarriersService

func (*MobileCarriersService) List

List: Retrieves a list of mobile carriers.

type ObjectFilter

type ObjectFilter struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#objectFilter".
	Kind string `json:"kind,omitempty"`

	// ObjectIds: Applicable when status is ASSIGNED. The user has access to
	// objects with these object IDs.
	ObjectIds googleapi.Int64s `json:"objectIds,omitempty"`

	// Status: Status of the filter. NONE means the user has access to none
	// of the objects. ALL means the user has access to all objects.
	// ASSIGNED means the user has access to the objects with IDs in the
	// objectIds list.
	Status string `json:"status,omitempty"`
}

type OffsetPosition

type OffsetPosition struct {
	// Left: Offset distance from left side of an asset or a window.
	Left int64 `json:"left,omitempty"`

	// Top: Offset distance from top side of an asset or a window.
	Top int64 `json:"top,omitempty"`
}

type OmnitureSettings

type OmnitureSettings struct {
	// OmnitureCostDataEnabled: Whether placement cost data will be sent to
	// Omniture. This property can be enabled only if
	// omnitureIntegrationEnabled is true.
	OmnitureCostDataEnabled bool `json:"omnitureCostDataEnabled,omitempty"`

	// OmnitureIntegrationEnabled: Whether Omniture integration is enabled.
	// This property can be enabled only when the "Advanced Ad Serving"
	// account setting is enabled.
	OmnitureIntegrationEnabled bool `json:"omnitureIntegrationEnabled,omitempty"`
}

type OperatingSystem

type OperatingSystem struct {
	// DartId: DART ID of this operating system. This is the ID used for
	// targeting.
	DartId int64 `json:"dartId,omitempty,string"`

	// Desktop: Whether this operating system is for desktop.
	Desktop bool `json:"desktop,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#operatingSystem".
	Kind string `json:"kind,omitempty"`

	// Mobile: Whether this operating system is for mobile.
	Mobile bool `json:"mobile,omitempty"`

	// Name: Name of this operating system.
	Name string `json:"name,omitempty"`
}

type OperatingSystemVersion

type OperatingSystemVersion struct {
	// Id: ID of this operating system version.
	Id int64 `json:"id,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#operatingSystemVersion".
	Kind string `json:"kind,omitempty"`

	// MajorVersion: Major version (leftmost number) of this operating
	// system version.
	MajorVersion string `json:"majorVersion,omitempty"`

	// MinorVersion: Minor version (number after first dot on the left) of
	// this operating system version.
	MinorVersion string `json:"minorVersion,omitempty"`

	// Name: Name of this operating system version.
	Name string `json:"name,omitempty"`

	// OperatingSystem: Operating system of this operating system version.
	OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"`
}

type OperatingSystemVersionsListCall

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

func (*OperatingSystemVersionsListCall) Do

func (*OperatingSystemVersionsListCall) Fields

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

type OperatingSystemVersionsListResponse

type OperatingSystemVersionsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#operatingSystemVersionsListResponse".
	Kind string `json:"kind,omitempty"`

	// OperatingSystemVersions: Operating system version collection
	OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`
}

type OperatingSystemVersionsService

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

func NewOperatingSystemVersionsService

func NewOperatingSystemVersionsService(s *Service) *OperatingSystemVersionsService

func (*OperatingSystemVersionsService) List

List: Retrieves a list of operating system versions.

type OperatingSystemsListCall

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

func (*OperatingSystemsListCall) Do

func (*OperatingSystemsListCall) Fields

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

type OperatingSystemsListResponse

type OperatingSystemsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#operatingSystemsListResponse".
	Kind string `json:"kind,omitempty"`

	// OperatingSystems: Operating system collection
	OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`
}

type OperatingSystemsService

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

func NewOperatingSystemsService

func NewOperatingSystemsService(s *Service) *OperatingSystemsService

func (*OperatingSystemsService) List

List: Retrieves a list of operating systems.

type OptimizationActivity

type OptimizationActivity struct {
	// FloodlightActivityId: Floodlight activity ID of this optimization
	// activity. This is a required field.
	FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`

	// FloodlightActivityIdDimensionValue: Dimension value for the ID of the
	// floodlight activity. This is a read-only, auto-generated field.
	FloodlightActivityIdDimensionValue *DimensionValue `json:"floodlightActivityIdDimensionValue,omitempty"`

	// Weight: Weight associated with this optimization. Must be greater
	// than 1. The weight assigned will be understood in proportion to the
	// weights assigned to the other optimization activities.
	Weight int64 `json:"weight,omitempty"`
}

type PathToConversionReportCompatibleFields

type PathToConversionReportCompatibleFields struct {
	// ConversionDimensions: Conversion dimensions which are compatible to
	// be selected in the "conversionDimensions" section of the report.
	ConversionDimensions []*Dimension `json:"conversionDimensions,omitempty"`

	// CustomFloodlightVariables: Custom floodlight variables which are
	// compatible to be selected in the "customFloodlightVariables" section
	// of the report.
	CustomFloodlightVariables []*Dimension `json:"customFloodlightVariables,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#pathToConversionReportCompatibleFields.
	Kind string `json:"kind,omitempty"`

	// Metrics: Metrics which are compatible to be selected in the
	// "metricNames" section of the report.
	Metrics []*Metric `json:"metrics,omitempty"`

	// PerInteractionDimensions: Per-interaction dimensions which are
	// compatible to be selected in the "perInteractionDimensions" section
	// of the report.
	PerInteractionDimensions []*Dimension `json:"perInteractionDimensions,omitempty"`
}

type Placement

type Placement struct {
	// AccountId: Account ID of this placement. This field can be left
	// blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this placement. This field can be left
	// blank.
	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 placement is archived.
	Archived bool `json:"archived,omitempty"`

	// CampaignId: Campaign ID of this placement. This field 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"`

	// Comment: Comments for this placement.
	Comment string `json:"comment,omitempty"`

	// Compatibility: Placement compatibility. WEB and WEB_INTERSTITIAL
	// refer to rendering either on desktop or on mobile devices 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. This field is
	// required on insertion.
	Compatibility string `json:"compatibility,omitempty"`

	// ContentCategoryId: ID of the content category assigned to this
	// placement.
	ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`

	// CreateInfo: Information about the creation of this placement. This is
	// a read-only field.
	CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`

	// DirectorySiteId: Directory site ID of this placement. On insert, you
	// must set either this field or the siteId field to specify the site
	// associated with this placement. This is a required field that is
	// read-only after insertion.
	DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`

	// DirectorySiteIdDimensionValue: Dimension value for the ID of the
	// directory site. This is a read-only, auto-generated field.
	DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`

	// ExternalId: External ID for this placement.
	ExternalId string `json:"externalId,omitempty"`

	// Id: ID of this placement. This is a read-only, auto-generated field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this placement. This
	// is a read-only, auto-generated field.
	IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`

	// KeyName: Key name of this placement. This is a read-only,
	// auto-generated field.
	KeyName string `json:"keyName,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#placement".
	Kind string `json:"kind,omitempty"`

	// LastModifiedInfo: Information about the most recent modification of
	// this placement. This is a read-only field.
	LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`

	// LookbackConfiguration: Lookback window settings for this placement.
	LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`

	// Name: Name of this placement.This is a required field and must be
	// less than 256 characters long.
	Name string `json:"name,omitempty"`

	// PaymentApproved: Whether payment was approved for this placement.
	// This is a read-only field relevant only to publisher-paid placements.
	PaymentApproved bool `json:"paymentApproved,omitempty"`

	// PaymentSource: Payment source for this placement. This is a required
	// field that is read-only after insertion.
	PaymentSource string `json:"paymentSource,omitempty"`

	// PlacementGroupId: ID of this placement's group, if applicable.
	PlacementGroupId int64 `json:"placementGroupId,omitempty,string"`

	// PlacementGroupIdDimensionValue: Dimension value for the ID of the
	// placement group. This is a read-only, auto-generated field.
	PlacementGroupIdDimensionValue *DimensionValue `json:"placementGroupIdDimensionValue,omitempty"`

	// PlacementStrategyId: ID of the placement strategy assigned to this
	// placement.
	PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`

	// PricingSchedule: Pricing schedule of this placement. This field is
	// required on insertion, specifically subfields startDate, endDate and
	// pricingType.
	PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"`

	// Primary: Whether this placement is the primary placement of a
	// roadblock (placement group). You cannot change this field from true
	// to false. Setting this field to true will automatically set the
	// primary field on the original primary placement of the roadblock to
	// false, and it will automatically set the roadblock's
	// primaryPlacementId field to the ID of this placement.
	Primary bool `json:"primary,omitempty"`

	// PublisherUpdateInfo: Information about the last publisher update.
	// This is a read-only field.
	PublisherUpdateInfo *LastModifiedInfo `json:"publisherUpdateInfo,omitempty"`

	// SiteId: Site ID associated with this placement. On insert, you must
	// set either this field or the directorySiteId field to specify the
	// site associated with this placement. This is a required field that is
	// read-only after insertion.
	SiteId int64 `json:"siteId,omitempty,string"`

	// SiteIdDimensionValue: Dimension value for the ID of the site. This is
	// a read-only, auto-generated field.
	SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`

	// Size: Size associated with this placement. When inserting or updating
	// a placement, only the size ID field is used. This field is required
	// on insertion.
	Size *Size `json:"size,omitempty"`

	// SslRequired: Whether creatives assigned to this placement must be
	// SSL-compliant.
	SslRequired bool `json:"sslRequired,omitempty"`

	// Status: Third-party placement status.
	Status string `json:"status,omitempty"`

	// SubaccountId: Subaccount ID of this placement. This field can be left
	// blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`

	// TagFormats: Tag formats to generate for this placement. This field is
	// required on insertion.
	// Acceptable values are:
	// -
	// "PLACEMENT_TAG_STANDARD"
	// - "PLACEMENT_TAG_IFRAME_JAVASCRIPT"
	// -
	// "PLACEMENT_TAG_IFRAME_ILAYER"
	// - "PLACEMENT_TAG_INTERNAL_REDIRECT"
	// -
	// "PLACEMENT_TAG_JAVASCRIPT"
	// -
	// "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT"
	// -
	// "PLACEMENT_TAG_INTERSTITIAL_INTERNAL_REDIRECT"
	// -
	// "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT"
	// -
	// "PLACEMENT_TAG_CLICK_COMMANDS"
	// -
	// "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH"
	// - "PLACEMENT_TAG_TRACKING"
	// -
	// "PLACEMENT_TAG_TRACKING_IFRAME"
	// - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"
	TagFormats []string `json:"tagFormats,omitempty"`

	// TagSetting: Tag settings for this placement.
	TagSetting *TagSetting `json:"tagSetting,omitempty"`
}

type PlacementAssignment

type PlacementAssignment struct {
	// Active: Whether this placement assignment is active. When true, the
	// placement will be included in the ad's rotation.
	Active bool `json:"active,omitempty"`

	// PlacementId: ID of the placement to be assigned. This is a required
	// field.
	PlacementId int64 `json:"placementId,omitempty,string"`

	// PlacementIdDimensionValue: Dimension value for the ID of the
	// placement. This is a read-only, auto-generated field.
	PlacementIdDimensionValue *DimensionValue `json:"placementIdDimensionValue,omitempty"`

	// SslRequired: Whether the placement to be assigned requires SSL. This
	// is a read-only field that is auto-generated when the ad is inserted
	// or updated.
	SslRequired bool `json:"sslRequired,omitempty"`
}

type PlacementGroup

type PlacementGroup struct {
	// AccountId: Account ID of this placement group. This is a read-only
	// field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AdvertiserId: Advertiser ID of this placement group. 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 placement group is archived.
	Archived bool `json:"archived,omitempty"`

	// CampaignId: Campaign ID of this placement group. This field is
	// required 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"`

	// ChildPlacementIds: IDs of placements which are assigned to this
	// placement group. This is a read-only, auto-generated field.
	ChildPlacementIds googleapi.Int64s `json:"childPlacementIds,omitempty"`

	// Comment: Comments for this placement group.
	Comment string `json:"comment,omitempty"`

	// ContentCategoryId: ID of the content category assigned to this
	// placement group.
	ContentCategoryId int64 `json:"contentCategoryId,omitempty,string"`

	// CreateInfo: Information about the creation of this placement group.
	// This is a read-only field.
	CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`

	// DirectorySiteId: Directory site ID associated with this placement
	// group. On insert, you must set either this field or the site_id field
	// to specify the site associated with this placement group. This is a
	// required field that is read-only after insertion.
	DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`

	// DirectorySiteIdDimensionValue: Dimension value for the ID of the
	// directory site. This is a read-only, auto-generated field.
	DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`

	// ExternalId: External ID for this placement.
	ExternalId string `json:"externalId,omitempty"`

	// Id: ID of this placement group. This is a read-only, auto-generated
	// field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this placement group.
	// 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#placementGroup".
	Kind string `json:"kind,omitempty"`

	// LastModifiedInfo: Information about the most recent modification of
	// this placement group. This is a read-only field.
	LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`

	// Name: Name of this placement group. This is a required field and must
	// be less than 256 characters long.
	Name string `json:"name,omitempty"`

	// PlacementGroupType: Type of this placement group. A package is a
	// simple group of placements that acts as a single pricing point for a
	// group of tags. A roadblock is a group of placements that not only
	// acts as a single pricing point, but also assumes that all the tags in
	// it will be served at the same time. A roadblock requires one of its
	// assigned placements to be marked as primary for reporting. This field
	// is required on insertion.
	PlacementGroupType string `json:"placementGroupType,omitempty"`

	// PlacementStrategyId: ID of the placement strategy assigned to this
	// placement group.
	PlacementStrategyId int64 `json:"placementStrategyId,omitempty,string"`

	// PricingSchedule: Pricing schedule of this placement group. This field
	// is required on insertion.
	PricingSchedule *PricingSchedule `json:"pricingSchedule,omitempty"`

	// PrimaryPlacementId: ID of the primary placement, used to calculate
	// the media cost of a roadblock (placement group). Modifying this field
	// will automatically modify the primary field on all affected roadblock
	// child placements.
	PrimaryPlacementId int64 `json:"primaryPlacementId,omitempty,string"`

	// PrimaryPlacementIdDimensionValue: Dimension value for the ID of the
	// primary placement. This is a read-only, auto-generated field.
	PrimaryPlacementIdDimensionValue *DimensionValue `json:"primaryPlacementIdDimensionValue,omitempty"`

	// ProgrammaticSetting: Settings for a programmatic placement.
	ProgrammaticSetting *ProgrammaticSetting `json:"programmaticSetting,omitempty"`

	// SiteId: Site ID associated with this placement group. On insert, you
	// must set either this field or the directorySiteId field to specify
	// the site associated with this placement group. This is a required
	// field that is read-only after insertion.
	SiteId int64 `json:"siteId,omitempty,string"`

	// SiteIdDimensionValue: Dimension value for the ID of the site. This is
	// a read-only, auto-generated field.
	SiteIdDimensionValue *DimensionValue `json:"siteIdDimensionValue,omitempty"`

	// SubaccountId: Subaccount ID of this placement group. This is a
	// read-only field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`
}

type PlacementGroupsGetCall

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

func (*PlacementGroupsGetCall) Do

func (*PlacementGroupsGetCall) Fields

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

type PlacementGroupsInsertCall

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

func (*PlacementGroupsInsertCall) Do

func (*PlacementGroupsInsertCall) Fields

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

type PlacementGroupsListCall

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

func (*PlacementGroupsListCall) AdvertiserIds

func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds int64) *PlacementGroupsListCall

AdvertiserIds sets the optional parameter "advertiserIds": Select only placement groups that belong to these advertisers.

func (*PlacementGroupsListCall) Archived

func (c *PlacementGroupsListCall) Archived(archived bool) *PlacementGroupsListCall

Archived sets the optional parameter "archived": Select only archived placements. Don't set this field to select both archived and non-archived placements.

func (*PlacementGroupsListCall) CampaignIds

func (c *PlacementGroupsListCall) CampaignIds(campaignIds int64) *PlacementGroupsListCall

CampaignIds sets the optional parameter "campaignIds": Select only placement groups that belong to these campaigns.

func (*PlacementGroupsListCall) ContentCategoryIds

func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds int64) *PlacementGroupsListCall

ContentCategoryIds sets the optional parameter "contentCategoryIds": Select only placement groups that are associated with these content categories.

func (*PlacementGroupsListCall) DirectorySiteIds

func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds int64) *PlacementGroupsListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select only placement groups that are associated with these directory sites.

func (*PlacementGroupsListCall) Do

func (*PlacementGroupsListCall) Fields

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

func (*PlacementGroupsListCall) Ids

Ids sets the optional parameter "ids": Select only placement groups with these IDs.

func (*PlacementGroupsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*PlacementGroupsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*PlacementGroupsListCall) PlacementGroupType

func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupType string) *PlacementGroupsListCall

PlacementGroupType sets the optional parameter "placementGroupType": Select only placement groups belonging with this group type. A package is a simple group of placements that acts as a single pricing point for a group of tags. A roadblock is a group of placements that not only acts as a single pricing point but also assumes that all the tags in it will be served at the same time. A roadblock requires one of its assigned placements to be marked as primary for reporting.

func (*PlacementGroupsListCall) PlacementStrategyIds

func (c *PlacementGroupsListCall) PlacementStrategyIds(placementStrategyIds int64) *PlacementGroupsListCall

PlacementStrategyIds sets the optional parameter "placementStrategyIds": Select only placement groups that are associated with these placement strategies.

func (*PlacementGroupsListCall) PricingTypes

func (c *PlacementGroupsListCall) PricingTypes(pricingTypes string) *PlacementGroupsListCall

PricingTypes sets the optional parameter "pricingTypes": Select only placement groups with these pricing types.

func (*PlacementGroupsListCall) SearchString

func (c *PlacementGroupsListCall) SearchString(searchString string) *PlacementGroupsListCall

SearchString sets the optional parameter "searchString": Allows searching for placement groups by name or ID. Wildcards (*) are allowed. For example, "placement*2015" will return placement groups with names like "placement group June 2015", "placement group May 2015" or simply "placements 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "placementgroup" will match placement groups with name "my placementgroup", "placementgroup 2015" or simply "placementgroup".

func (*PlacementGroupsListCall) SiteIds

SiteIds sets the optional parameter "siteIds": Select only placement groups that are associated with these sites.

func (*PlacementGroupsListCall) SortField

func (c *PlacementGroupsListCall) SortField(sortField string) *PlacementGroupsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*PlacementGroupsListCall) SortOrder

func (c *PlacementGroupsListCall) SortOrder(sortOrder string) *PlacementGroupsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type PlacementGroupsListResponse

type PlacementGroupsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#placementGroupsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PlacementGroups: Placement group collection
	PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"`
}

type PlacementGroupsPatchCall

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

func (*PlacementGroupsPatchCall) Do

func (*PlacementGroupsPatchCall) Fields

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

type PlacementGroupsService

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

func NewPlacementGroupsService

func NewPlacementGroupsService(s *Service) *PlacementGroupsService

func (*PlacementGroupsService) Get

Get: Gets one placement group by ID.

func (*PlacementGroupsService) Insert

func (r *PlacementGroupsService) Insert(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall

Insert: Inserts a new placement group.

func (*PlacementGroupsService) List

List: Retrieves a list of placement groups, possibly filtered.

func (*PlacementGroupsService) Patch

func (r *PlacementGroupsService) Patch(profileId int64, id int64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall

Patch: Updates an existing placement group. This method supports patch semantics.

func (*PlacementGroupsService) Update

func (r *PlacementGroupsService) Update(profileId int64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall

Update: Updates an existing placement group.

type PlacementGroupsUpdateCall

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

func (*PlacementGroupsUpdateCall) Do

func (*PlacementGroupsUpdateCall) Fields

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

type PlacementStrategiesDeleteCall

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

func (*PlacementStrategiesDeleteCall) Do

func (*PlacementStrategiesDeleteCall) Fields

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

type PlacementStrategiesGetCall

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

func (*PlacementStrategiesGetCall) Do

func (*PlacementStrategiesGetCall) Fields

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

type PlacementStrategiesInsertCall

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

func (*PlacementStrategiesInsertCall) Do

func (*PlacementStrategiesInsertCall) Fields

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

type PlacementStrategiesListCall

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

func (*PlacementStrategiesListCall) Do

func (*PlacementStrategiesListCall) Fields

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

func (*PlacementStrategiesListCall) Ids

Ids sets the optional parameter "ids": Select only placement strategies with these IDs.

func (*PlacementStrategiesListCall) MaxResults

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*PlacementStrategiesListCall) PageToken

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*PlacementStrategiesListCall) SearchString

func (c *PlacementStrategiesListCall) SearchString(searchString string) *PlacementStrategiesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "placementstrategy*2015" will return objects with names like "placementstrategy June 2015", "placementstrategy April 2015" or simply "placementstrategy 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "placementstrategy" will match objects with name "my placementstrategy", "placementstrategy 2015" or simply "placementstrategy".

func (*PlacementStrategiesListCall) SortField

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*PlacementStrategiesListCall) SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type PlacementStrategiesListResponse

type PlacementStrategiesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#placementStrategiesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// PlacementStrategies: Placement strategy collection
	PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"`
}

type PlacementStrategiesPatchCall

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

func (*PlacementStrategiesPatchCall) Do

func (*PlacementStrategiesPatchCall) Fields

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

type PlacementStrategiesService

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

func NewPlacementStrategiesService

func NewPlacementStrategiesService(s *Service) *PlacementStrategiesService

func (*PlacementStrategiesService) Delete

Delete: Deletes an existing placement strategy.

func (*PlacementStrategiesService) Get

Get: Gets one placement strategy by ID.

func (*PlacementStrategiesService) Insert

func (r *PlacementStrategiesService) Insert(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesInsertCall

Insert: Inserts a new placement strategy.

func (*PlacementStrategiesService) List

List: Retrieves a list of placement strategies, possibly filtered.

func (*PlacementStrategiesService) Patch

func (r *PlacementStrategiesService) Patch(profileId int64, id int64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall

Patch: Updates an existing placement strategy. This method supports patch semantics.

func (*PlacementStrategiesService) Update

func (r *PlacementStrategiesService) Update(profileId int64, placementstrategy *PlacementStrategy) *PlacementStrategiesUpdateCall

Update: Updates an existing placement strategy.

type PlacementStrategiesUpdateCall

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

func (*PlacementStrategiesUpdateCall) Do

func (*PlacementStrategiesUpdateCall) Fields

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

type PlacementStrategy

type PlacementStrategy struct {
	// AccountId: Account ID of this placement strategy.This is a read-only
	// field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// Id: ID of this placement strategy. 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#placementStrategy".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this placement strategy. This is a required field. Must
	// be less than 256 characters long and unique among placement
	// strategies of the same account.
	Name string `json:"name,omitempty"`
}

type PlacementTag

type PlacementTag struct {
	// PlacementId: Placement ID
	PlacementId int64 `json:"placementId,omitempty,string"`

	// TagDatas: Tags generated for this placement.
	TagDatas []*TagData `json:"tagDatas,omitempty"`
}

type PlacementsGenerateTagsResponse

type PlacementsGenerateTagsResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#placementsGenerateTagsResponse".
	Kind string `json:"kind,omitempty"`

	// PlacementTags: Set of generated tags for the specified placements.
	PlacementTags []*PlacementTag `json:"placementTags,omitempty"`
}

type PlacementsGeneratetagsCall

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

func (*PlacementsGeneratetagsCall) CampaignId

func (c *PlacementsGeneratetagsCall) CampaignId(campaignId int64) *PlacementsGeneratetagsCall

CampaignId sets the optional parameter "campaignId": Generate placements belonging to this campaign. This is a required field.

func (*PlacementsGeneratetagsCall) Do

func (*PlacementsGeneratetagsCall) Fields

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

func (*PlacementsGeneratetagsCall) PlacementIds

func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds int64) *PlacementsGeneratetagsCall

PlacementIds sets the optional parameter "placementIds": Generate tags for these placements.

func (*PlacementsGeneratetagsCall) TagFormats

TagFormats sets the optional parameter "tagFormats": Tag formats to generate for these placements.

type PlacementsGetCall

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

func (*PlacementsGetCall) Do

func (c *PlacementsGetCall) Do() (*Placement, error)

func (*PlacementsGetCall) Fields

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

type PlacementsInsertCall

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

func (*PlacementsInsertCall) Do

func (c *PlacementsInsertCall) Do() (*Placement, error)

func (*PlacementsInsertCall) Fields

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

type PlacementsListCall

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

func (*PlacementsListCall) AdvertiserIds

func (c *PlacementsListCall) AdvertiserIds(advertiserIds int64) *PlacementsListCall

AdvertiserIds sets the optional parameter "advertiserIds": Select only placements that belong to these advertisers.

func (*PlacementsListCall) Archived

func (c *PlacementsListCall) Archived(archived bool) *PlacementsListCall

Archived sets the optional parameter "archived": Select only archived placements. Don't set this field to select both archived and non-archived placements.

func (*PlacementsListCall) CampaignIds

func (c *PlacementsListCall) CampaignIds(campaignIds int64) *PlacementsListCall

CampaignIds sets the optional parameter "campaignIds": Select only placements that belong to these campaigns.

func (*PlacementsListCall) Compatibilities

func (c *PlacementsListCall) Compatibilities(compatibilities string) *PlacementsListCall

Compatibilities sets the optional parameter "compatibilities": Select only placements that are associated with these compatibilities. WEB and WEB_INTERSTITIAL refer to rendering either on desktop or on mobile devices 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.

func (*PlacementsListCall) ContentCategoryIds

func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds int64) *PlacementsListCall

ContentCategoryIds sets the optional parameter "contentCategoryIds": Select only placements that are associated with these content categories.

func (*PlacementsListCall) DirectorySiteIds

func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds int64) *PlacementsListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select only placements that are associated with these directory sites.

func (*PlacementsListCall) Do

func (*PlacementsListCall) Fields

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

func (*PlacementsListCall) GroupIds

func (c *PlacementsListCall) GroupIds(groupIds int64) *PlacementsListCall

GroupIds sets the optional parameter "groupIds": Select only placements that belong to these placement groups.

func (*PlacementsListCall) Ids

Ids sets the optional parameter "ids": Select only placements with these IDs.

func (*PlacementsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*PlacementsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*PlacementsListCall) PaymentSource

func (c *PlacementsListCall) PaymentSource(paymentSource string) *PlacementsListCall

PaymentSource sets the optional parameter "paymentSource": Select only placements with this payment source.

func (*PlacementsListCall) PlacementStrategyIds

func (c *PlacementsListCall) PlacementStrategyIds(placementStrategyIds int64) *PlacementsListCall

PlacementStrategyIds sets the optional parameter "placementStrategyIds": Select only placements that are associated with these placement strategies.

func (*PlacementsListCall) PricingTypes

func (c *PlacementsListCall) PricingTypes(pricingTypes string) *PlacementsListCall

PricingTypes sets the optional parameter "pricingTypes": Select only placements with these pricing types.

func (*PlacementsListCall) SearchString

func (c *PlacementsListCall) SearchString(searchString string) *PlacementsListCall

SearchString sets the optional parameter "searchString": Allows searching for placements by name or ID. Wildcards (*) are allowed. For example, "placement*2015" will return placements with names like "placement June 2015", "placement May 2015" or simply "placements 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "placement" will match placements with name "my placement", "placement 2015" or simply "placement".

func (*PlacementsListCall) SiteIds

func (c *PlacementsListCall) SiteIds(siteIds int64) *PlacementsListCall

SiteIds sets the optional parameter "siteIds": Select only placements that are associated with these sites.

func (*PlacementsListCall) SizeIds

func (c *PlacementsListCall) SizeIds(sizeIds int64) *PlacementsListCall

SizeIds sets the optional parameter "sizeIds": Select only placements that are associated with these sizes.

func (*PlacementsListCall) SortField

func (c *PlacementsListCall) SortField(sortField string) *PlacementsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*PlacementsListCall) SortOrder

func (c *PlacementsListCall) SortOrder(sortOrder string) *PlacementsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type PlacementsListResponse

type PlacementsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#placementsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Placements: Placement collection
	Placements []*Placement `json:"placements,omitempty"`
}

type PlacementsPatchCall

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

func (*PlacementsPatchCall) Do

func (c *PlacementsPatchCall) Do() (*Placement, error)

func (*PlacementsPatchCall) Fields

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

type PlacementsService

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

func NewPlacementsService

func NewPlacementsService(s *Service) *PlacementsService

func (*PlacementsService) Generatetags

func (r *PlacementsService) Generatetags(profileId int64) *PlacementsGeneratetagsCall

Generatetags: Generates tags for a placement.

func (*PlacementsService) Get

func (r *PlacementsService) Get(profileId int64, id int64) *PlacementsGetCall

Get: Gets one placement by ID.

func (*PlacementsService) Insert

func (r *PlacementsService) Insert(profileId int64, placement *Placement) *PlacementsInsertCall

Insert: Inserts a new placement.

func (*PlacementsService) List

func (r *PlacementsService) List(profileId int64) *PlacementsListCall

List: Retrieves a list of placements, possibly filtered.

func (*PlacementsService) Patch

func (r *PlacementsService) Patch(profileId int64, id int64, placement *Placement) *PlacementsPatchCall

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

func (*PlacementsService) Update

func (r *PlacementsService) Update(profileId int64, placement *Placement) *PlacementsUpdateCall

Update: Updates an existing placement.

type PlacementsUpdateCall

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

func (*PlacementsUpdateCall) Do

func (c *PlacementsUpdateCall) Do() (*Placement, error)

func (*PlacementsUpdateCall) Fields

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

type PlatformType

type PlatformType struct {
	// Id: ID of this platform type.
	Id int64 `json:"id,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#platformType".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this platform type.
	Name string `json:"name,omitempty"`
}

type PlatformTypesListCall

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

func (*PlatformTypesListCall) Do

func (*PlatformTypesListCall) Fields

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

type PlatformTypesListResponse

type PlatformTypesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#platformTypesListResponse".
	Kind string `json:"kind,omitempty"`

	// PlatformTypes: Platform type collection
	PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`
}

type PlatformTypesService

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

func NewPlatformTypesService

func NewPlatformTypesService(s *Service) *PlatformTypesService

func (*PlatformTypesService) List

func (r *PlatformTypesService) List(profileId int64) *PlatformTypesListCall

List: Retrieves a list of platform types.

type PopupWindowProperties

type PopupWindowProperties struct {
	// Dimension: Popup dimension for a creative. This is a read-only field.
	// Applicable to the following creative types: all RICH_MEDIA and all
	// VPAID
	Dimension *Size `json:"dimension,omitempty"`

	// Offset: Upper-left corner coordinates of the popup window. Applicable
	// if positionType is COORDINATES.
	Offset *OffsetPosition `json:"offset,omitempty"`

	// PositionType: Popup window position either centered or at specific
	// coordinate.
	PositionType string `json:"positionType,omitempty"`

	// ShowAddressBar: Whether to display the browser address bar.
	ShowAddressBar bool `json:"showAddressBar,omitempty"`

	// ShowMenuBar: Whether to display the browser menu bar.
	ShowMenuBar bool `json:"showMenuBar,omitempty"`

	// ShowScrollBar: Whether to display the browser scroll bar.
	ShowScrollBar bool `json:"showScrollBar,omitempty"`

	// ShowStatusBar: Whether to display the browser status bar.
	ShowStatusBar bool `json:"showStatusBar,omitempty"`

	// ShowToolBar: Whether to display the browser tool bar.
	ShowToolBar bool `json:"showToolBar,omitempty"`

	// Title: Title of popup window.
	Title string `json:"title,omitempty"`
}

type PostalCode

type PostalCode struct {
	// CountryCode: Country code of the country to which this postal code
	// belongs.
	CountryCode string `json:"countryCode,omitempty"`

	// CountryDartId: DART ID of the country to which this postal code
	// belongs.
	CountryDartId int64 `json:"countryDartId,omitempty,string"`

	// Id: ID of this postal code.
	Id string `json:"id,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#postalCode".
	Kind string `json:"kind,omitempty"`
}

type PostalCodesListCall

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

func (*PostalCodesListCall) Do

func (*PostalCodesListCall) Fields

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

type PostalCodesListResponse

type PostalCodesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#postalCodesListResponse".
	Kind string `json:"kind,omitempty"`

	// PostalCodes: Postal code collection
	PostalCodes []*PostalCode `json:"postalCodes,omitempty"`
}

type PostalCodesService

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

func NewPostalCodesService

func NewPostalCodesService(s *Service) *PostalCodesService

func (*PostalCodesService) List

func (r *PostalCodesService) List(profileId int64) *PostalCodesListCall

List: Retrieves a list of postal codes.

type PricingSchedule

type PricingSchedule struct {
	// CapCostOption: Placement cap cost option.
	CapCostOption string `json:"capCostOption,omitempty"`

	// DisregardOverdelivery: Whether cap costs are ignored by ad serving.
	DisregardOverdelivery bool `json:"disregardOverdelivery,omitempty"`

	// EndDate: Placement end date. This date must be later than or be the
	// same day as the placement start date, but not later than the campaign
	// end date. If, for example, you set 6/25/2015 as both the start and
	// end dates, the effective placement 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 field is required
	// on insertion.
	EndDate string `json:"endDate,omitempty"`

	// Flighted: Whether this placement is flighted. If true, pricing
	// periods will be computed automatically.
	Flighted bool `json:"flighted,omitempty"`

	// FloodlightActivityId: Floodlight activity ID associated with this
	// placement. This field should be set when placement pricing type is
	// set to PRICING_TYPE_CPA.
	FloodlightActivityId int64 `json:"floodlightActivityId,omitempty,string"`

	// PricingPeriods: Pricing periods for this placement.
	PricingPeriods []*PricingSchedulePricingPeriod `json:"pricingPeriods,omitempty"`

	// PricingType: Placement pricing type. This field is required on
	// insertion.
	PricingType string `json:"pricingType,omitempty"`

	// StartDate: Placement start date. This date cannot be earlier than the
	// campaign start date. The hours, minutes, and seconds of the start
	// date should not be set, as doing so will result in an error. This
	// field is required on insertion.
	StartDate string `json:"startDate,omitempty"`

	// TestingStartDate: Testing start date of this placement. The hours,
	// minutes, and seconds of the start date should not be set, as doing so
	// will result in an error.
	TestingStartDate string `json:"testingStartDate,omitempty"`
}

type PricingSchedulePricingPeriod

type PricingSchedulePricingPeriod struct {
	// EndDate: Pricing period end date. This date must be later than or be
	// the same day as the pricing period start date, but not later than the
	// placement end date. The period end date can be the same date as the
	// period start date. If, for example, you set 6/25/2015 as both the
	// start and end dates, the effective pricing period 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.
	EndDate string `json:"endDate,omitempty"`

	// PricingComment: Comments for this pricing period.
	PricingComment string `json:"pricingComment,omitempty"`

	// RateOrCostNanos: Rate or cost of this pricing period.
	RateOrCostNanos int64 `json:"rateOrCostNanos,omitempty,string"`

	// StartDate: Pricing period start date. This date cannot be earlier
	// than the placement start date. The hours, minutes, and seconds of the
	// start date should not be set, as doing so will result in an error.
	StartDate string `json:"startDate,omitempty"`

	// Units: Units of this pricing period.
	Units int64 `json:"units,omitempty,string"`
}

type ProgrammaticSetting

type ProgrammaticSetting struct {
	// AdxDealIds: Adx deal IDs assigned to the placement.
	AdxDealIds googleapi.Int64s `json:"adxDealIds,omitempty"`

	// InsertionOrderId: Insertion order ID.
	InsertionOrderId string `json:"insertionOrderId,omitempty"`

	// InsertionOrderIdStatus: Whether insertion order ID has been placed in
	// DFP. This is a read-only field.
	InsertionOrderIdStatus bool `json:"insertionOrderIdStatus,omitempty"`

	// MediaCostNanos: Media cost for the programmatic placement.
	MediaCostNanos int64 `json:"mediaCostNanos,omitempty,string"`

	// Programmatic: Whether programmatic is enabled.
	Programmatic bool `json:"programmatic,omitempty"`

	// TraffickerEmails: Trafficker emails assigned to the placement.
	TraffickerEmails []string `json:"traffickerEmails,omitempty"`
}

type ReachReportCompatibleFields

type ReachReportCompatibleFields struct {
	// DimensionFilters: Dimensions which are compatible to be selected in
	// the "dimensionFilters" section of the report.
	DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`

	// Dimensions: Dimensions which are compatible to be selected in the
	// "dimensions" section of the report.
	Dimensions []*Dimension `json:"dimensions,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#reachReportCompatibleFields.
	Kind string `json:"kind,omitempty"`

	// Metrics: Metrics which are compatible to be selected in the
	// "metricNames" section of the report.
	Metrics []*Metric `json:"metrics,omitempty"`

	// PivotedActivityMetrics: Metrics which are compatible to be selected
	// as activity metrics to pivot on in the "activities" section of the
	// report.
	PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"`

	// ReachByFrequencyMetrics: Metrics which are compatible to be selected
	// in the "reachByFrequencyMetricNames" section of the report.
	ReachByFrequencyMetrics []*Metric `json:"reachByFrequencyMetrics,omitempty"`
}

type Recipient

type Recipient struct {
	// DeliveryType: The delivery type for the recipient.
	DeliveryType string `json:"deliveryType,omitempty"`

	// Email: The email address of the recipient.
	Email string `json:"email,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#recipient.
	Kind string `json:"kind,omitempty"`
}

type Region

type Region struct {
	// CountryCode: Country code of the country to which this region
	// belongs.
	CountryCode string `json:"countryCode,omitempty"`

	// CountryDartId: DART ID of the country to which this region belongs.
	CountryDartId int64 `json:"countryDartId,omitempty,string"`

	// DartId: DART ID of this region.
	DartId int64 `json:"dartId,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#region".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this region.
	Name string `json:"name,omitempty"`

	// RegionCode: Region code.
	RegionCode string `json:"regionCode,omitempty"`
}

type RegionsListCall

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

func (*RegionsListCall) Do

func (*RegionsListCall) Fields

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

type RegionsListResponse

type RegionsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#regionsListResponse".
	Kind string `json:"kind,omitempty"`

	// Regions: Region Collection.
	Regions []*Region `json:"regions,omitempty"`
}

type RegionsService

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

func NewRegionsService

func NewRegionsService(s *Service) *RegionsService

func (*RegionsService) List

func (r *RegionsService) List(profileId int64) *RegionsListCall

List: Retrieves a list of regions.

type Report

type Report struct {
	// AccountId: The account ID to which this report belongs.
	AccountId int64 `json:"accountId,omitempty,string"`

	// Criteria: The report criteria for a report of type "STANDARD".
	Criteria *ReportCriteria `json:"criteria,omitempty"`

	// CrossDimensionReachCriteria: The report criteria for a report of type
	// "CROSS_DIMENSION_REACH".
	CrossDimensionReachCriteria *ReportCrossDimensionReachCriteria `json:"crossDimensionReachCriteria,omitempty"`

	// Delivery: The report's email delivery settings.
	Delivery *ReportDelivery `json:"delivery,omitempty"`

	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// FileName: The filename used when generating report files for this
	// report.
	FileName string `json:"fileName,omitempty"`

	// FloodlightCriteria: The report criteria for a report of type
	// "FLOODLIGHT".
	FloodlightCriteria *ReportFloodlightCriteria `json:"floodlightCriteria,omitempty"`

	// Format: The output format of the report. If not specified, default
	// format is "CSV". Note that the actual format in the completed report
	// file might differ if for instance the report's size exceeds the
	// format's capabilities. "CSV" will then be the fallback format.
	Format string `json:"format,omitempty"`

	// Id: The unique ID identifying this report resource.
	Id int64 `json:"id,omitempty,string"`

	// Kind: The kind of resource this is, in this case dfareporting#report.
	Kind string `json:"kind,omitempty"`

	// LastModifiedTime: The timestamp (in milliseconds since epoch) of when
	// this report was last modified.
	LastModifiedTime uint64 `json:"lastModifiedTime,omitempty,string"`

	// Name: The name of the report.
	Name string `json:"name,omitempty"`

	// OwnerProfileId: The user profile id of the owner of this report.
	OwnerProfileId int64 `json:"ownerProfileId,omitempty,string"`

	// PathToConversionCriteria: The report criteria for a report of type
	// "PATH_TO_CONVERSION".
	PathToConversionCriteria *ReportPathToConversionCriteria `json:"pathToConversionCriteria,omitempty"`

	// ReachCriteria: The report criteria for a report of type "REACH".
	ReachCriteria *ReportReachCriteria `json:"reachCriteria,omitempty"`

	// Schedule: The report's schedule. Can only be set if the report's
	// 'dateRange' is a relative date range and the relative date range is
	// not "TODAY".
	Schedule *ReportSchedule `json:"schedule,omitempty"`

	// SubAccountId: The subaccount ID to which this report belongs if
	// applicable.
	SubAccountId int64 `json:"subAccountId,omitempty,string"`

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

type ReportCompatibleFields

type ReportCompatibleFields struct {
	// DimensionFilters: Dimensions which are compatible to be selected in
	// the "dimensionFilters" section of the report.
	DimensionFilters []*Dimension `json:"dimensionFilters,omitempty"`

	// Dimensions: Dimensions which are compatible to be selected in the
	// "dimensions" section of the report.
	Dimensions []*Dimension `json:"dimensions,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#reportCompatibleFields.
	Kind string `json:"kind,omitempty"`

	// Metrics: Metrics which are compatible to be selected in the
	// "metricNames" section of the report.
	Metrics []*Metric `json:"metrics,omitempty"`

	// PivotedActivityMetrics: Metrics which are compatible to be selected
	// as activity metrics to pivot on in the "activities" section of the
	// report.
	PivotedActivityMetrics []*Metric `json:"pivotedActivityMetrics,omitempty"`
}

type ReportCriteria

type ReportCriteria struct {
	// Activities: Activity group.
	Activities *Activities `json:"activities,omitempty"`

	// CustomRichMediaEvents: Custom Rich Media Events group.
	CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"`

	// DateRange: The date range for which this report should be run.
	DateRange *DateRange `json:"dateRange,omitempty"`

	// DimensionFilters: The list of filters on which dimensions are
	// filtered.
	// Filters for different dimensions are ANDed, filters for the
	// same dimension are grouped together and ORed.
	DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`

	// Dimensions: The list of standard dimensions the report should
	// include.
	Dimensions []*SortedDimension `json:"dimensions,omitempty"`

	// MetricNames: The list of names of metrics the report should include.
	MetricNames []string `json:"metricNames,omitempty"`
}

type ReportCrossDimensionReachCriteria

type ReportCrossDimensionReachCriteria struct {
	// Breakdown: The list of dimensions the report should include.
	Breakdown []*SortedDimension `json:"breakdown,omitempty"`

	// DateRange: The date range this report should be run for.
	DateRange *DateRange `json:"dateRange,omitempty"`

	// Dimension: The dimension option.
	Dimension string `json:"dimension,omitempty"`

	// DimensionFilters: The list of filters on which dimensions are
	// filtered.
	DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`

	// MetricNames: The list of names of metrics the report should include.
	MetricNames []string `json:"metricNames,omitempty"`

	// OverlapMetricNames: The list of names of overlap metrics the report
	// should include.
	OverlapMetricNames []string `json:"overlapMetricNames,omitempty"`

	// Pivoted: Whether the report is pivoted or not. Defaults to true.
	Pivoted bool `json:"pivoted,omitempty"`
}

type ReportDelivery

type ReportDelivery struct {
	// EmailOwner: Whether the report should be emailed to the report owner.
	EmailOwner bool `json:"emailOwner,omitempty"`

	// EmailOwnerDeliveryType: The type of delivery for the owner to
	// receive, if enabled.
	EmailOwnerDeliveryType string `json:"emailOwnerDeliveryType,omitempty"`

	// Message: The message to be sent with each email.
	Message string `json:"message,omitempty"`

	// Recipients: The list of recipients to which to email the report.
	Recipients []*Recipient `json:"recipients,omitempty"`
}

type ReportFloodlightCriteria

type ReportFloodlightCriteria struct {
	// CustomRichMediaEvents: The list of custom rich media events to
	// include.
	CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"`

	// DateRange: The date range this report should be run for.
	DateRange *DateRange `json:"dateRange,omitempty"`

	// DimensionFilters: The list of filters on which dimensions are
	// filtered.
	// Filters for different dimensions are ANDed, filters for the
	// same dimension are grouped together and ORed.
	DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`

	// Dimensions: The list of dimensions the report should include.
	Dimensions []*SortedDimension `json:"dimensions,omitempty"`

	// FloodlightConfigId: The floodlight ID for which to show data in this
	// report. All advertisers associated with that ID will automatically be
	// added. The dimension of the value needs to be
	// 'dfa:floodlightConfigId'.
	FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`

	// MetricNames: The list of names of metrics the report should include.
	MetricNames []string `json:"metricNames,omitempty"`

	// ReportProperties: The properties of the report.
	ReportProperties *ReportFloodlightCriteriaReportProperties `json:"reportProperties,omitempty"`
}

type ReportFloodlightCriteriaReportProperties

type ReportFloodlightCriteriaReportProperties struct {
	// IncludeAttributedIPConversions: Include conversions that have no
	// cookie, but do have an exposure path.
	IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"`

	// IncludeUnattributedCookieConversions: Include conversions of users
	// with a DoubleClick cookie but without an exposure. That means the
	// user did not click or see an ad from the advertiser within the
	// Floodlight group, or that the interaction happened outside the
	// lookback window.
	IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"`

	// IncludeUnattributedIPConversions: Include conversions that have no
	// associated cookies and no exposures. It’s therefore impossible to
	// know how the user was exposed to your ads during the lookback window
	// prior to a conversion.
	IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"`
}

type ReportList

type ReportList struct {
	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// Items: The reports returned in this response.
	Items []*Report `json:"items,omitempty"`

	// Kind: The kind of list this is, in this case dfareporting#reportList.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Continuation token used to page through reports. To
	// retrieve the next page of results, set the next request's "pageToken"
	// to the value of this field. The page token is only valid for a
	// limited amount of time and should not be persisted.
	NextPageToken string `json:"nextPageToken,omitempty"`
}

type ReportPathToConversionCriteria

type ReportPathToConversionCriteria struct {
	// ActivityFilters: The list of 'dfa:activity' values to filter on.
	ActivityFilters []*DimensionValue `json:"activityFilters,omitempty"`

	// ConversionDimensions: The list of conversion dimensions the report
	// should include.
	ConversionDimensions []*SortedDimension `json:"conversionDimensions,omitempty"`

	// CustomFloodlightVariables: The list of custom floodlight variables
	// the report should include.
	CustomFloodlightVariables []*SortedDimension `json:"customFloodlightVariables,omitempty"`

	// CustomRichMediaEvents: The list of custom rich media events to
	// include.
	CustomRichMediaEvents []*DimensionValue `json:"customRichMediaEvents,omitempty"`

	// DateRange: The date range this report should be run for.
	DateRange *DateRange `json:"dateRange,omitempty"`

	// FloodlightConfigId: The floodlight ID for which to show data in this
	// report. All advertisers associated with that ID will automatically be
	// added. The dimension of the value needs to be
	// 'dfa:floodlightConfigId'.
	FloodlightConfigId *DimensionValue `json:"floodlightConfigId,omitempty"`

	// MetricNames: The list of names of metrics the report should include.
	MetricNames []string `json:"metricNames,omitempty"`

	// PerInteractionDimensions: The list of per interaction dimensions the
	// report should include.
	PerInteractionDimensions []*SortedDimension `json:"perInteractionDimensions,omitempty"`

	// ReportProperties: The properties of the report.
	ReportProperties *ReportPathToConversionCriteriaReportProperties `json:"reportProperties,omitempty"`
}

type ReportPathToConversionCriteriaReportProperties

type ReportPathToConversionCriteriaReportProperties struct {
	// ClicksLookbackWindow: DFA checks to see if a click interaction
	// occurred within the specified period of time before a conversion. By
	// default the value is pulled from Floodlight or you can manually enter
	// a custom value. Valid values: 1-90.
	ClicksLookbackWindow int64 `json:"clicksLookbackWindow,omitempty"`

	// ImpressionsLookbackWindow: DFA checks to see if an impression
	// interaction occurred within the specified period of time before a
	// conversion. By default the value is pulled from Floodlight or you can
	// manually enter a custom value. Valid values: 1-90.
	ImpressionsLookbackWindow int64 `json:"impressionsLookbackWindow,omitempty"`

	// IncludeAttributedIPConversions: Deprecated: has no effect.
	IncludeAttributedIPConversions bool `json:"includeAttributedIPConversions,omitempty"`

	// IncludeUnattributedCookieConversions: Include conversions of users
	// with a DoubleClick cookie but without an exposure. That means the
	// user did not click or see an ad from the advertiser within the
	// Floodlight group, or that the interaction happened outside the
	// lookback window.
	IncludeUnattributedCookieConversions bool `json:"includeUnattributedCookieConversions,omitempty"`

	// IncludeUnattributedIPConversions: Include conversions that have no
	// associated cookies and no exposures. It’s therefore impossible to
	// know how the user was exposed to your ads during the lookback window
	// prior to a conversion.
	IncludeUnattributedIPConversions bool `json:"includeUnattributedIPConversions,omitempty"`

	// MaximumClickInteractions: The maximum number of click interactions to
	// include in the report. Advertisers currently paying for E2C reports
	// get up to 200 (100 clicks, 100 impressions). If another advertiser in
	// your network is paying for E2C, you can have up to 5 total exposures
	// per report.
	MaximumClickInteractions int64 `json:"maximumClickInteractions,omitempty"`

	// MaximumImpressionInteractions: The maximum number of click
	// interactions to include in the report. Advertisers currently paying
	// for E2C reports get up to 200 (100 clicks, 100 impressions). If
	// another advertiser in your network is paying for E2C, you can have up
	// to 5 total exposures per report.
	MaximumImpressionInteractions int64 `json:"maximumImpressionInteractions,omitempty"`

	// MaximumInteractionGap: The maximum amount of time that can take place
	// between interactions (clicks or impressions) by the same user. Valid
	// values: 1-90.
	MaximumInteractionGap int64 `json:"maximumInteractionGap,omitempty"`

	// PivotOnInteractionPath: Enable pivoting on interaction path.
	PivotOnInteractionPath bool `json:"pivotOnInteractionPath,omitempty"`
}

type ReportReachCriteria

type ReportReachCriteria struct {
	// Activities: Activity group.
	Activities *Activities `json:"activities,omitempty"`

	// CustomRichMediaEvents: Custom Rich Media Events group.
	CustomRichMediaEvents *CustomRichMediaEvents `json:"customRichMediaEvents,omitempty"`

	// DateRange: The date range this report should be run for.
	DateRange *DateRange `json:"dateRange,omitempty"`

	// DimensionFilters: The list of filters on which dimensions are
	// filtered.
	// Filters for different dimensions are ANDed, filters for the
	// same dimension are grouped together and ORed.
	DimensionFilters []*DimensionValue `json:"dimensionFilters,omitempty"`

	// Dimensions: The list of dimensions the report should include.
	Dimensions []*SortedDimension `json:"dimensions,omitempty"`

	// EnableAllDimensionCombinations: Whether to enable all reach dimension
	// combinations in the report. Defaults to false. If enabled, the date
	// range of the report should be within the last three months.
	EnableAllDimensionCombinations bool `json:"enableAllDimensionCombinations,omitempty"`

	// MetricNames: The list of names of metrics the report should include.
	MetricNames []string `json:"metricNames,omitempty"`

	// ReachByFrequencyMetricNames: The list of names of  Reach By Frequency
	// metrics the report should include.
	ReachByFrequencyMetricNames []string `json:"reachByFrequencyMetricNames,omitempty"`
}

type ReportSchedule

type ReportSchedule struct {
	// Active: Whether the schedule is active or not. Must be set to either
	// true or false.
	Active bool `json:"active,omitempty"`

	// Every: Defines every how many days, weeks or months the report should
	// be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or
	// "MONTHLY".
	Every int64 `json:"every,omitempty"`

	// ExpirationDate: The expiration date when the scheduled report stops
	// running.
	ExpirationDate string `json:"expirationDate,omitempty"`

	// Repeats: The interval for which the report is repeated. Note:
	// -
	// "DAILY" also requires field "every" to be set.
	// - "WEEKLY" also
	// requires fields "every" and "repeatsOnWeekDays" to be set.
	// -
	// "MONTHLY" also requires fields "every" and "runsOnDayOfMonth" to be
	// set.
	Repeats string `json:"repeats,omitempty"`

	// RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled
	// reports should run.
	RepeatsOnWeekDays []string `json:"repeatsOnWeekDays,omitempty"`

	// RunsOnDayOfMonth: Enum to define for "MONTHLY" scheduled reports
	// whether reports should be repeated on the same day of the month as
	// "startDate" or the same day of the week of the month.
	// Example: If
	// 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH"
	// would run subsequent reports on the 2nd of every Month, and
	// "WEEK_OF_MONTH" would run subsequent reports on the first Monday of
	// the month.
	RunsOnDayOfMonth string `json:"runsOnDayOfMonth,omitempty"`

	// StartDate: Start date of date range for which scheduled reports
	// should be run.
	StartDate string `json:"startDate,omitempty"`
}

type ReportsCompatibleFieldsQueryCall

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

func (*ReportsCompatibleFieldsQueryCall) Do

func (*ReportsCompatibleFieldsQueryCall) Fields

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

type ReportsCompatibleFieldsService

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

func NewReportsCompatibleFieldsService

func NewReportsCompatibleFieldsService(s *Service) *ReportsCompatibleFieldsService

func (*ReportsCompatibleFieldsService) Query

Query: Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.

type ReportsConfiguration

type ReportsConfiguration struct {
	// ExposureToConversionEnabled: Whether the exposure to conversion
	// report is enabled. This report shows detailed pathway information on
	// up to 10 of the most recent ad exposures seen by a user before
	// converting.
	ExposureToConversionEnabled bool `json:"exposureToConversionEnabled,omitempty"`

	// LookbackConfiguration: Default lookback windows for new advertisers
	// in this account.
	LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`

	// ReportGenerationTimeZoneId: Report generation time zone ID of this
	// account. This is a required field that can only be changed by a
	// superuser.
	// Acceptable values are:
	//
	// - "1" for "America/New_York"
	// -
	// "2" for "Europe/London"
	// - "3" for "Europe/Paris"
	// - "4" for
	// "Africa/Johannesburg"
	// - "5" for "Asia/Jerusalem"
	// - "6" for
	// "Asia/Shanghai"
	// - "7" for "Asia/Hong_Kong"
	// - "8" for "Asia/Tokyo"
	//
	// - "9" for "Australia/Sydney"
	// - "10" for "Asia/Dubai"
	// - "11" for
	// "America/Los_Angeles"
	// - "12" for "Pacific/Auckland"
	// - "13" for
	// "America/Sao_Paulo"
	ReportGenerationTimeZoneId int64 `json:"reportGenerationTimeZoneId,omitempty,string"`
}

type ReportsDeleteCall

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

func (*ReportsDeleteCall) Do

func (c *ReportsDeleteCall) Do() error

func (*ReportsDeleteCall) Fields

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

type ReportsFilesGetCall

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

func (*ReportsFilesGetCall) Do

func (c *ReportsFilesGetCall) Do() (*File, error)

func (*ReportsFilesGetCall) Fields

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

type ReportsFilesListCall

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

func (*ReportsFilesListCall) Do

func (c *ReportsFilesListCall) Do() (*FileList, error)

func (*ReportsFilesListCall) Fields

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

func (*ReportsFilesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*ReportsFilesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": The value of the nextToken from the previous result page.

func (*ReportsFilesListCall) SortField

func (c *ReportsFilesListCall) SortField(sortField string) *ReportsFilesListCall

SortField sets the optional parameter "sortField": The field by which to sort the list.

func (*ReportsFilesListCall) SortOrder

func (c *ReportsFilesListCall) SortOrder(sortOrder string) *ReportsFilesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is 'DESCENDING'.

type ReportsFilesService

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

func NewReportsFilesService

func NewReportsFilesService(s *Service) *ReportsFilesService

func (*ReportsFilesService) Get

func (r *ReportsFilesService) Get(profileId int64, reportId int64, fileId int64) *ReportsFilesGetCall

Get: Retrieves a report file.

func (*ReportsFilesService) List

func (r *ReportsFilesService) List(profileId int64, reportId int64) *ReportsFilesListCall

List: Lists files for a report.

type ReportsGetCall

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

func (*ReportsGetCall) Do

func (c *ReportsGetCall) Do() (*Report, error)

func (*ReportsGetCall) Fields

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

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

type ReportsInsertCall

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

func (*ReportsInsertCall) Do

func (c *ReportsInsertCall) Do() (*Report, error)

func (*ReportsInsertCall) Fields

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

type ReportsListCall

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

func (*ReportsListCall) Do

func (c *ReportsListCall) Do() (*ReportList, error)

func (*ReportsListCall) Fields

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

func (*ReportsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*ReportsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": The value of the nextToken from the previous result page.

func (*ReportsListCall) Scope

func (c *ReportsListCall) Scope(scope string) *ReportsListCall

Scope sets the optional parameter "scope": The scope that defines which results are returned, default is 'MINE'.

func (*ReportsListCall) SortField

func (c *ReportsListCall) SortField(sortField string) *ReportsListCall

SortField sets the optional parameter "sortField": The field by which to sort the list.

func (*ReportsListCall) SortOrder

func (c *ReportsListCall) SortOrder(sortOrder string) *ReportsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is 'DESCENDING'.

type ReportsPatchCall

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

func (*ReportsPatchCall) Do

func (c *ReportsPatchCall) Do() (*Report, error)

func (*ReportsPatchCall) Fields

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

type ReportsRunCall

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

func (*ReportsRunCall) Do

func (c *ReportsRunCall) Do() (*File, error)

func (*ReportsRunCall) Fields

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

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

func (*ReportsRunCall) Synchronous

func (c *ReportsRunCall) Synchronous(synchronous bool) *ReportsRunCall

Synchronous sets the optional parameter "synchronous": If set and true, tries to run the report synchronously.

type ReportsService

type ReportsService struct {
	CompatibleFields *ReportsCompatibleFieldsService

	Files *ReportsFilesService
	// contains filtered or unexported fields
}

func NewReportsService

func NewReportsService(s *Service) *ReportsService

func (*ReportsService) Delete

func (r *ReportsService) Delete(profileId int64, reportId int64) *ReportsDeleteCall

Delete: Deletes a report by its ID.

func (*ReportsService) Get

func (r *ReportsService) Get(profileId int64, reportId int64) *ReportsGetCall

Get: Retrieves a report by its ID.

func (*ReportsService) Insert

func (r *ReportsService) Insert(profileId int64, report *Report) *ReportsInsertCall

Insert: Creates a report.

func (*ReportsService) List

func (r *ReportsService) List(profileId int64) *ReportsListCall

List: Retrieves list of reports.

func (*ReportsService) Patch

func (r *ReportsService) Patch(profileId int64, reportId int64, report *Report) *ReportsPatchCall

Patch: Updates a report. This method supports patch semantics.

func (*ReportsService) Run

func (r *ReportsService) Run(profileId int64, reportId int64) *ReportsRunCall

Run: Runs a report.

func (*ReportsService) Update

func (r *ReportsService) Update(profileId int64, reportId int64, report *Report) *ReportsUpdateCall

Update: Updates a report.

type ReportsUpdateCall

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

func (*ReportsUpdateCall) Do

func (c *ReportsUpdateCall) Do() (*Report, error)

func (*ReportsUpdateCall) Fields

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

type RichMediaExitOverride

type RichMediaExitOverride struct {
	// CustomExitUrl: Click-through URL to override the default exit URL.
	// Applicable if the useCustomExitUrl field is set to true.
	CustomExitUrl string `json:"customExitUrl,omitempty"`

	// ExitId: ID for the override to refer to a specific exit in the
	// creative.
	ExitId int64 `json:"exitId,omitempty,string"`

	// UseCustomExitUrl: Whether to use the custom exit URL.
	UseCustomExitUrl bool `json:"useCustomExitUrl,omitempty"`
}

type Service

type Service struct {
	BasePath string // API endpoint base URL

	AccountActiveAdSummaries *AccountActiveAdSummariesService

	AccountPermissionGroups *AccountPermissionGroupsService

	AccountPermissions *AccountPermissionsService

	AccountUserProfiles *AccountUserProfilesService

	Accounts *AccountsService

	Ads *AdsService

	AdvertiserGroups *AdvertiserGroupsService

	Advertisers *AdvertisersService

	Browsers *BrowsersService

	CampaignCreativeAssociations *CampaignCreativeAssociationsService

	Campaigns *CampaignsService

	ChangeLogs *ChangeLogsService

	Cities *CitiesService

	ConnectionTypes *ConnectionTypesService

	ContentCategories *ContentCategoriesService

	Countries *CountriesService

	CreativeAssets *CreativeAssetsService

	CreativeFieldValues *CreativeFieldValuesService

	CreativeFields *CreativeFieldsService

	CreativeGroups *CreativeGroupsService

	Creatives *CreativesService

	DimensionValues *DimensionValuesService

	DirectorySiteContacts *DirectorySiteContactsService

	DirectorySites *DirectorySitesService

	EventTags *EventTagsService

	Files *FilesService

	FloodlightActivities *FloodlightActivitiesService

	FloodlightActivityGroups *FloodlightActivityGroupsService

	FloodlightConfigurations *FloodlightConfigurationsService

	LandingPages *LandingPagesService

	Metros *MetrosService

	MobileCarriers *MobileCarriersService

	OperatingSystemVersions *OperatingSystemVersionsService

	OperatingSystems *OperatingSystemsService

	PlacementGroups *PlacementGroupsService

	PlacementStrategies *PlacementStrategiesService

	Placements *PlacementsService

	PlatformTypes *PlatformTypesService

	PostalCodes *PostalCodesService

	Regions *RegionsService

	Reports *ReportsService

	Sites *SitesService

	Sizes *SizesService

	Subaccounts *SubaccountsService

	UserProfiles *UserProfilesService

	UserRolePermissionGroups *UserRolePermissionGroupsService

	UserRolePermissions *UserRolePermissionsService

	UserRoles *UserRolesService
	// contains filtered or unexported fields
}

func New

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

type Site

type Site struct {
	// AccountId: Account ID of this site. This is a read-only field that
	// can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// Approved: Whether this site is approved.
	Approved bool `json:"approved,omitempty"`

	// DirectorySiteId: Directory site associated with this site. This is a
	// required field that is read-only after insertion.
	DirectorySiteId int64 `json:"directorySiteId,omitempty,string"`

	// DirectorySiteIdDimensionValue: Dimension value for the ID of the
	// directory site. This is a read-only, auto-generated field.
	DirectorySiteIdDimensionValue *DimensionValue `json:"directorySiteIdDimensionValue,omitempty"`

	// Id: ID of this site. This is a read-only, auto-generated field.
	Id int64 `json:"id,omitempty,string"`

	// IdDimensionValue: Dimension value for the ID of this site. This is a
	// read-only, auto-generated field.
	IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`

	// KeyName: Key name of this site. This is a read-only, auto-generated
	// field.
	KeyName string `json:"keyName,omitempty"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#site".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this site.This is a required field. Must be less than
	// 128 characters long. If this site is under a subaccount, the name
	// must be unique among sites of the same subaccount. Otherwise, this
	// site is a top-level site, and the name must be unique among top-level
	// sites of the same account.
	Name string `json:"name,omitempty"`

	// SiteContacts: Site contacts.
	SiteContacts []*SiteContact `json:"siteContacts,omitempty"`

	// SiteSettings: Site-wide settings.
	SiteSettings *SiteSettings `json:"siteSettings,omitempty"`

	// SubaccountId: Subaccount ID of this site. This is a read-only field
	// that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`
}

type SiteContact

type SiteContact struct {
	// ContactType: Site contact type.
	ContactType string `json:"contactType,omitempty"`

	// Email: Email address of this site contact. This is a required field.
	Email string `json:"email,omitempty"`

	// FirstName: First name of this site contact.
	FirstName string `json:"firstName,omitempty"`

	// Id: ID of this site contact. This is a read-only, auto-generated
	// field.
	Id int64 `json:"id,omitempty,string"`

	// LastName: Last name of this site contact.
	LastName string `json:"lastName,omitempty"`
}

type SiteSettings

type SiteSettings struct {
	// ActiveViewOptOut: Whether active view creatives are disabled for this
	// site.
	ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`

	// CreativeSettings: Site-wide creative settings.
	CreativeSettings *CreativeSettings `json:"creativeSettings,omitempty"`

	// DisableBrandSafeAds: Whether brand safe ads are disabled for this
	// site.
	DisableBrandSafeAds bool `json:"disableBrandSafeAds,omitempty"`

	// DisableNewCookie: Whether new cookies are disabled for this site.
	DisableNewCookie bool `json:"disableNewCookie,omitempty"`

	// LookbackConfiguration: Lookback window settings for this site.
	LookbackConfiguration *LookbackConfiguration `json:"lookbackConfiguration,omitempty"`

	// TagSetting: Configuration settings for dynamic and image floodlight
	// tags.
	TagSetting *TagSetting `json:"tagSetting,omitempty"`
}

type SitesGetCall

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

func (*SitesGetCall) Do

func (c *SitesGetCall) Do() (*Site, error)

func (*SitesGetCall) Fields

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

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

type SitesInsertCall

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

func (*SitesInsertCall) Do

func (c *SitesInsertCall) Do() (*Site, error)

func (*SitesInsertCall) Fields

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

type SitesListCall

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

func (*SitesListCall) AcceptsInStreamVideoPlacements

func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacements bool) *SitesListCall

AcceptsInStreamVideoPlacements sets the optional parameter "acceptsInStreamVideoPlacements": This search filter is no longer supported and will have no effect on the results returned.

func (*SitesListCall) AcceptsInterstitialPlacements

func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacements bool) *SitesListCall

AcceptsInterstitialPlacements sets the optional parameter "acceptsInterstitialPlacements": This search filter is no longer supported and will have no effect on the results returned.

func (*SitesListCall) AcceptsPublisherPaidPlacements

func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacements bool) *SitesListCall

AcceptsPublisherPaidPlacements sets the optional parameter "acceptsPublisherPaidPlacements": Select only sites that accept publisher paid placements.

func (*SitesListCall) AdWordsSite

func (c *SitesListCall) AdWordsSite(adWordsSite bool) *SitesListCall

AdWordsSite sets the optional parameter "adWordsSite": Select only AdWords sites.

func (*SitesListCall) Approved

func (c *SitesListCall) Approved(approved bool) *SitesListCall

Approved sets the optional parameter "approved": Select only approved sites.

func (*SitesListCall) CampaignIds

func (c *SitesListCall) CampaignIds(campaignIds int64) *SitesListCall

CampaignIds sets the optional parameter "campaignIds": Select only sites with these campaign IDs.

func (*SitesListCall) DirectorySiteIds

func (c *SitesListCall) DirectorySiteIds(directorySiteIds int64) *SitesListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select only sites with these directory site IDs.

func (*SitesListCall) Do

func (*SitesListCall) Fields

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

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

func (*SitesListCall) Ids

func (c *SitesListCall) Ids(ids int64) *SitesListCall

Ids sets the optional parameter "ids": Select only sites with these IDs.

func (*SitesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*SitesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*SitesListCall) SearchString

func (c *SitesListCall) SearchString(searchString string) *SitesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name, ID or keyName. Wildcards (*) are allowed. For example, "site*2015" will return objects with names like "site June 2015", "site April 2015" or simply "site 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "site" will match objects with name "my site", "site 2015" or simply "site".

func (*SitesListCall) SortField

func (c *SitesListCall) SortField(sortField string) *SitesListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*SitesListCall) SortOrder

func (c *SitesListCall) SortOrder(sortOrder string) *SitesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*SitesListCall) SubaccountId

func (c *SitesListCall) SubaccountId(subaccountId int64) *SitesListCall

SubaccountId sets the optional parameter "subaccountId": Select only sites with this subaccount ID.

func (*SitesListCall) UnmappedSite

func (c *SitesListCall) UnmappedSite(unmappedSite bool) *SitesListCall

UnmappedSite sets the optional parameter "unmappedSite": Select only sites that have not been mapped to a directory site.

type SitesListResponse

type SitesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#sitesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Sites: Site collection
	Sites []*Site `json:"sites,omitempty"`
}

type SitesPatchCall

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

func (*SitesPatchCall) Do

func (c *SitesPatchCall) Do() (*Site, error)

func (*SitesPatchCall) Fields

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

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

type SitesService

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

func NewSitesService

func NewSitesService(s *Service) *SitesService

func (*SitesService) Get

func (r *SitesService) Get(profileId int64, id int64) *SitesGetCall

Get: Gets one site by ID.

func (*SitesService) Insert

func (r *SitesService) Insert(profileId int64, site *Site) *SitesInsertCall

Insert: Inserts a new site.

func (*SitesService) List

func (r *SitesService) List(profileId int64) *SitesListCall

List: Retrieves a list of sites, possibly filtered.

func (*SitesService) Patch

func (r *SitesService) Patch(profileId int64, id int64, site *Site) *SitesPatchCall

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

func (*SitesService) Update

func (r *SitesService) Update(profileId int64, site *Site) *SitesUpdateCall

Update: Updates an existing site.

type SitesUpdateCall

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

func (*SitesUpdateCall) Do

func (c *SitesUpdateCall) Do() (*Site, error)

func (*SitesUpdateCall) Fields

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

type Size

type Size struct {
	// Height: Height of this size.
	Height int64 `json:"height,omitempty"`

	// Iab: IAB standard size. This is a read-only, auto-generated field.
	Iab bool `json:"iab,omitempty"`

	// Id: ID of this size. 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#size".
	Kind string `json:"kind,omitempty"`

	// Width: Width of this size.
	Width int64 `json:"width,omitempty"`
}

type SizesGetCall

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

func (*SizesGetCall) Do

func (c *SizesGetCall) Do() (*Size, error)

func (*SizesGetCall) Fields

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

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

type SizesInsertCall

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

func (*SizesInsertCall) Do

func (c *SizesInsertCall) Do() (*Size, error)

func (*SizesInsertCall) Fields

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

type SizesListCall

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

func (*SizesListCall) Do

func (*SizesListCall) Fields

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

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

func (*SizesListCall) Height

func (c *SizesListCall) Height(height int64) *SizesListCall

Height sets the optional parameter "height": Select only sizes with this height.

func (*SizesListCall) IabStandard

func (c *SizesListCall) IabStandard(iabStandard bool) *SizesListCall

IabStandard sets the optional parameter "iabStandard": Select only IAB standard sizes.

func (*SizesListCall) Ids

func (c *SizesListCall) Ids(ids int64) *SizesListCall

Ids sets the optional parameter "ids": Select only sizes with these IDs.

func (*SizesListCall) Width

func (c *SizesListCall) Width(width int64) *SizesListCall

Width sets the optional parameter "width": Select only sizes with this width.

type SizesListResponse

type SizesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#sizesListResponse".
	Kind string `json:"kind,omitempty"`

	// Sizes: Size collection
	Sizes []*Size `json:"sizes,omitempty"`
}

type SizesService

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

func NewSizesService

func NewSizesService(s *Service) *SizesService

func (*SizesService) Get

func (r *SizesService) Get(profileId int64, id int64) *SizesGetCall

Get: Gets one size by ID.

func (*SizesService) Insert

func (r *SizesService) Insert(profileId int64, size *Size) *SizesInsertCall

Insert: Inserts a new size.

func (*SizesService) List

func (r *SizesService) List(profileId int64) *SizesListCall

List: Retrieves a list of sizes, possibly filtered.

type SortedDimension

type SortedDimension struct {
	// Kind: The kind of resource this is, in this case
	// dfareporting#sortedDimension.
	Kind string `json:"kind,omitempty"`

	// Name: The name of the dimension.
	Name string `json:"name,omitempty"`

	// SortOrder: An optional sort order for the dimension column.
	SortOrder string `json:"sortOrder,omitempty"`
}

type Subaccount

type Subaccount struct {
	// AccountId: ID of the account that contains this subaccount. This is a
	// read-only field that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AvailablePermissionIds: IDs of the available user role permissions
	// for this subaccount.
	AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`

	// Id: ID of this subaccount. 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#subaccount".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this subaccount. This is a required field. Must be less
	// than 128 characters long and be unique among subaccounts of the same
	// account.
	Name string `json:"name,omitempty"`
}

type SubaccountsGetCall

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

func (*SubaccountsGetCall) Do

func (c *SubaccountsGetCall) Do() (*Subaccount, error)

func (*SubaccountsGetCall) Fields

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

type SubaccountsInsertCall

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

func (*SubaccountsInsertCall) Do

func (*SubaccountsInsertCall) Fields

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

type SubaccountsListCall

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

func (*SubaccountsListCall) Do

func (*SubaccountsListCall) Fields

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

func (*SubaccountsListCall) Ids

Ids sets the optional parameter "ids": Select only subaccounts with these IDs.

func (*SubaccountsListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*SubaccountsListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*SubaccountsListCall) SearchString

func (c *SubaccountsListCall) SearchString(searchString string) *SubaccountsListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "subaccount*2015" will return objects with names like "subaccount June 2015", "subaccount April 2015" or simply "subaccount 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "subaccount" will match objects with name "my subaccount", "subaccount 2015" or simply "subaccount".

func (*SubaccountsListCall) SortField

func (c *SubaccountsListCall) SortField(sortField string) *SubaccountsListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*SubaccountsListCall) SortOrder

func (c *SubaccountsListCall) SortOrder(sortOrder string) *SubaccountsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

type SubaccountsListResponse

type SubaccountsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#subaccountsListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// Subaccounts: Subaccount collection
	Subaccounts []*Subaccount `json:"subaccounts,omitempty"`
}

type SubaccountsPatchCall

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

func (*SubaccountsPatchCall) Do

func (*SubaccountsPatchCall) Fields

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

type SubaccountsService

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

func NewSubaccountsService

func NewSubaccountsService(s *Service) *SubaccountsService

func (*SubaccountsService) Get

func (r *SubaccountsService) Get(profileId int64, id int64) *SubaccountsGetCall

Get: Gets one subaccount by ID.

func (*SubaccountsService) Insert

func (r *SubaccountsService) Insert(profileId int64, subaccount *Subaccount) *SubaccountsInsertCall

Insert: Inserts a new subaccount.

func (*SubaccountsService) List

func (r *SubaccountsService) List(profileId int64) *SubaccountsListCall

List: Gets a list of subaccounts, possibly filtered.

func (*SubaccountsService) Patch

func (r *SubaccountsService) Patch(profileId int64, id int64, subaccount *Subaccount) *SubaccountsPatchCall

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

func (*SubaccountsService) Update

func (r *SubaccountsService) Update(profileId int64, subaccount *Subaccount) *SubaccountsUpdateCall

Update: Updates an existing subaccount.

type SubaccountsUpdateCall

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

func (*SubaccountsUpdateCall) Do

func (*SubaccountsUpdateCall) Fields

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

type TagData

type TagData struct {
	// AdId: Ad associated with this placement tag.
	AdId int64 `json:"adId,omitempty,string"`

	// ClickTag: Tag string to record a click.
	ClickTag string `json:"clickTag,omitempty"`

	// CreativeId: Creative associated with this placement tag.
	CreativeId int64 `json:"creativeId,omitempty,string"`

	// Format: TagData tag format of this tag.
	Format string `json:"format,omitempty"`

	// ImpressionTag: Tag string for serving an ad.
	ImpressionTag string `json:"impressionTag,omitempty"`
}

type TagSetting

type TagSetting struct {
	// AdditionalKeyValues: Additional key-values to be included in tags.
	// Each key-value pair must be of the form key=value, and pairs must be
	// separated by a semicolon (;). Keys and values must not contain
	// commas. For example, id=2;color=red is a valid value for this field.
	AdditionalKeyValues string `json:"additionalKeyValues,omitempty"`

	// IncludeClickThroughUrls: Whether static landing page URLs should be
	// included in the tags. This setting applies only to placements.
	IncludeClickThroughUrls bool `json:"includeClickThroughUrls,omitempty"`

	// IncludeClickTracking: Whether click-tracking string should be
	// included in the tags.
	IncludeClickTracking bool `json:"includeClickTracking,omitempty"`

	// KeywordOption: Option specifying how keywords are embedded in ad
	// tags. This setting can be used to specify whether keyword
	// placeholders are inserted in placement tags for this site. Publishers
	// can then add keywords to those placeholders.
	KeywordOption string `json:"keywordOption,omitempty"`
}

type TagSettings

type TagSettings struct {
	// DynamicTagEnabled: Whether dynamic floodlight tags are enabled.
	DynamicTagEnabled bool `json:"dynamicTagEnabled,omitempty"`

	// ImageTagEnabled: Whether image tags are enabled.
	ImageTagEnabled bool `json:"imageTagEnabled,omitempty"`
}

type TargetWindow

type TargetWindow struct {
	// CustomHtml: User-entered value.
	CustomHtml string `json:"customHtml,omitempty"`

	// TargetWindowOption: Type of browser window for which the backup image
	// of the flash creative can be displayed.
	TargetWindowOption string `json:"targetWindowOption,omitempty"`
}

type TechnologyTargeting

type TechnologyTargeting struct {
	// Browsers: Browsers that this ad targets. For each browser either set
	// browserVersionId or dartId along with the version numbers. If both
	// are specified, only browserVersionId will be used.The other fields
	// are populated automatically when the ad is inserted or updated.
	Browsers []*Browser `json:"browsers,omitempty"`

	// ConnectionTypes: Connection types that this ad targets. For each
	// connection type only id is required.The other fields are populated
	// automatically when the ad is inserted or updated.
	ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`

	// MobileCarriers: Mobile carriers that this ad targets. For each mobile
	// carrier only id is required, and the other fields are populated
	// automatically when the ad is inserted or updated. If targeting a
	// mobile carrier, do not set targeting for any zip codes.
	MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`

	// OperatingSystemVersions: Operating system versions that this ad
	// targets. To target all versions, use operatingSystems. For each
	// operating system version, only id is required. The other fields are
	// populated automatically when the ad is inserted or updated. If
	// targeting an operating system version, do not set targeting for the
	// corresponding operating system in operatingSystems.
	OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`

	// OperatingSystems: Operating systems that this ad targets. To target
	// specific versions, use operatingSystemVersions. For each operating
	// system only dartId is required. The other fields are populated
	// automatically when the ad is inserted or updated. If targeting an
	// operating system, do not set targeting for operating system versions
	// for the same operating system.
	OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`

	// PlatformTypes: Platform types that this ad targets. For example,
	// desktop, mobile, or tablet. For each platform type, only id is
	// required, and the other fields are populated automatically when the
	// ad is inserted or updated.
	PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`
}

type ThirdPartyTrackingUrl

type ThirdPartyTrackingUrl struct {
	// ThirdPartyUrlType: Third-party URL type for in-stream video
	// creatives.
	ThirdPartyUrlType string `json:"thirdPartyUrlType,omitempty"`

	// Url: URL for the specified third-party URL type.
	Url string `json:"url,omitempty"`
}

type UserDefinedVariableConfiguration

type UserDefinedVariableConfiguration struct {
	// DataType: Data type for the variable. This is a required field.
	DataType string `json:"dataType,omitempty"`

	// ReportName: User-friendly name for the variable which will appear in
	// reports. This is a required field, must be less than 65 characters
	// long, and cannot contain the following characters: """.
	ReportName string `json:"reportName,omitempty"`

	// VariableType: Variable name in the tag. This is a required field.
	VariableType string `json:"variableType,omitempty"`
}

type UserProfile

type UserProfile struct {
	// AccountId: The account ID to which this profile belongs.
	AccountId int64 `json:"accountId,omitempty,string"`

	// AccountName: The account name this profile belongs to.
	AccountName string `json:"accountName,omitempty"`

	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// Kind: The kind of resource this is, in this case
	// dfareporting#userProfile.
	Kind string `json:"kind,omitempty"`

	// ProfileId: The unique ID of the user profile.
	ProfileId int64 `json:"profileId,omitempty,string"`

	// SubAccountId: The sub account ID this profile belongs to if
	// applicable.
	SubAccountId int64 `json:"subAccountId,omitempty,string"`

	// SubAccountName: The sub account name this profile belongs to if
	// applicable.
	SubAccountName string `json:"subAccountName,omitempty"`

	// UserName: The user name.
	UserName string `json:"userName,omitempty"`
}

type UserProfileList

type UserProfileList struct {
	// Etag: The eTag of this response for caching purposes.
	Etag string `json:"etag,omitempty"`

	// Items: The user profiles returned in this response.
	Items []*UserProfile `json:"items,omitempty"`

	// Kind: The kind of list this is, in this case
	// dfareporting#userProfileList.
	Kind string `json:"kind,omitempty"`
}

type UserProfilesGetCall

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

func (*UserProfilesGetCall) Do

func (*UserProfilesGetCall) Fields

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

type UserProfilesListCall

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

func (*UserProfilesListCall) Do

func (*UserProfilesListCall) Fields

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

type UserProfilesService

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

func NewUserProfilesService

func NewUserProfilesService(s *Service) *UserProfilesService

func (*UserProfilesService) Get

func (r *UserProfilesService) Get(profileId int64) *UserProfilesGetCall

Get: Gets one user profile by ID.

func (*UserProfilesService) List

List: Retrieves list of user profiles for a user.

type UserRole

type UserRole struct {
	// AccountId: Account ID of this user role. This is a read-only field
	// that can be left blank.
	AccountId int64 `json:"accountId,omitempty,string"`

	// DefaultUserRole: Whether this is a default user role. Default user
	// roles are created by the system for the account/subaccount and cannot
	// be modified or deleted. Each default user role comes with a basic set
	// of preassigned permissions.
	DefaultUserRole bool `json:"defaultUserRole,omitempty"`

	// Id: ID of this user role. 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#userRole".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this user role. This is a required field. Must be less
	// than 256 characters long. If this user role is under a subaccount,
	// the name must be unique among sites of the same subaccount.
	// Otherwise, this user role is a top-level user role, and the name must
	// be unique among top-level user roles of the same account.
	Name string `json:"name,omitempty"`

	// ParentUserRoleId: ID of the user role that this user role is based on
	// or copied from. This is a required field.
	ParentUserRoleId int64 `json:"parentUserRoleId,omitempty,string"`

	// Permissions: List of permissions associated with this user role.
	Permissions []*UserRolePermission `json:"permissions,omitempty"`

	// SubaccountId: Subaccount ID of this user role. This is a read-only
	// field that can be left blank.
	SubaccountId int64 `json:"subaccountId,omitempty,string"`
}

type UserRolePermission

type UserRolePermission struct {
	// Availability: Levels of availability for a user role permission.
	Availability string `json:"availability,omitempty"`

	// Id: ID of this user role permission.
	Id int64 `json:"id,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#userRolePermission".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this user role permission.
	Name string `json:"name,omitempty"`

	// PermissionGroupId: ID of the permission group that this user role
	// permission belongs to.
	PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"`
}

type UserRolePermissionGroup

type UserRolePermissionGroup struct {
	// Id: ID of this user role permission.
	Id int64 `json:"id,omitempty,string"`

	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#userRolePermissionGroup".
	Kind string `json:"kind,omitempty"`

	// Name: Name of this user role permission group.
	Name string `json:"name,omitempty"`
}

type UserRolePermissionGroupsGetCall

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

func (*UserRolePermissionGroupsGetCall) Do

func (*UserRolePermissionGroupsGetCall) Fields

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

type UserRolePermissionGroupsListCall

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

func (*UserRolePermissionGroupsListCall) Do

func (*UserRolePermissionGroupsListCall) Fields

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

type UserRolePermissionGroupsListResponse

type UserRolePermissionGroupsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#userRolePermissionGroupsListResponse".
	Kind string `json:"kind,omitempty"`

	// UserRolePermissionGroups: User role permission group collection
	UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"`
}

type UserRolePermissionGroupsService

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

func NewUserRolePermissionGroupsService

func NewUserRolePermissionGroupsService(s *Service) *UserRolePermissionGroupsService

func (*UserRolePermissionGroupsService) Get

Get: Gets one user role permission group by ID.

func (*UserRolePermissionGroupsService) List

List: Gets a list of all supported user role permission groups.

type UserRolePermissionsGetCall

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

func (*UserRolePermissionsGetCall) Do

func (*UserRolePermissionsGetCall) Fields

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

type UserRolePermissionsListCall

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

func (*UserRolePermissionsListCall) Do

func (*UserRolePermissionsListCall) Fields

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

func (*UserRolePermissionsListCall) Ids

Ids sets the optional parameter "ids": Select only user role permissions with these IDs.

type UserRolePermissionsListResponse

type UserRolePermissionsListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#userRolePermissionsListResponse".
	Kind string `json:"kind,omitempty"`

	// UserRolePermissions: User role permission collection
	UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"`
}

type UserRolePermissionsService

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

func NewUserRolePermissionsService

func NewUserRolePermissionsService(s *Service) *UserRolePermissionsService

func (*UserRolePermissionsService) Get

Get: Gets one user role permission by ID.

func (*UserRolePermissionsService) List

List: Gets a list of user role permissions, possibly filtered.

type UserRolesDeleteCall

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

func (*UserRolesDeleteCall) Do

func (c *UserRolesDeleteCall) Do() error

func (*UserRolesDeleteCall) Fields

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

type UserRolesGetCall

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

func (*UserRolesGetCall) Do

func (c *UserRolesGetCall) Do() (*UserRole, error)

func (*UserRolesGetCall) Fields

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

type UserRolesInsertCall

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

func (*UserRolesInsertCall) Do

func (c *UserRolesInsertCall) Do() (*UserRole, error)

func (*UserRolesInsertCall) Fields

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

type UserRolesListCall

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

func (*UserRolesListCall) AccountUserRoleOnly

func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnly bool) *UserRolesListCall

AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly": Select only account level user roles not associated with any specific subaccount.

func (*UserRolesListCall) Do

func (*UserRolesListCall) Fields

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

func (*UserRolesListCall) Ids

Ids sets the optional parameter "ids": Select only user roles with the specified IDs.

func (*UserRolesListCall) MaxResults

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

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*UserRolesListCall) PageToken

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

PageToken sets the optional parameter "pageToken": Value of the nextPageToken from the previous result page.

func (*UserRolesListCall) SearchString

func (c *UserRolesListCall) SearchString(searchString string) *UserRolesListCall

SearchString sets the optional parameter "searchString": Allows searching for objects by name or ID. Wildcards (*) are allowed. For example, "userrole*2015" will return objects with names like "userrole June 2015", "userrole April 2015" or simply "userrole 2015". Most of the searches also add wildcards implicitly at the start and the end of the search string. For example, a search string of "userrole" will match objects with name "my userrole", "userrole 2015" or simply "userrole".

func (*UserRolesListCall) SortField

func (c *UserRolesListCall) SortField(sortField string) *UserRolesListCall

SortField sets the optional parameter "sortField": Field by which to sort the list.

func (*UserRolesListCall) SortOrder

func (c *UserRolesListCall) SortOrder(sortOrder string) *UserRolesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results, default is ASCENDING.

func (*UserRolesListCall) SubaccountId

func (c *UserRolesListCall) SubaccountId(subaccountId int64) *UserRolesListCall

SubaccountId sets the optional parameter "subaccountId": Select only user roles that belong to this subaccount.

type UserRolesListResponse

type UserRolesListResponse struct {
	// Kind: Identifies what kind of resource this is. Value: the fixed
	// string "dfareporting#userRolesListResponse".
	Kind string `json:"kind,omitempty"`

	// NextPageToken: Pagination token to be used for the next list
	// operation.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// UserRoles: User role collection
	UserRoles []*UserRole `json:"userRoles,omitempty"`
}

type UserRolesPatchCall

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

func (*UserRolesPatchCall) Do

func (c *UserRolesPatchCall) Do() (*UserRole, error)

func (*UserRolesPatchCall) Fields

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

type UserRolesService

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

func NewUserRolesService

func NewUserRolesService(s *Service) *UserRolesService

func (*UserRolesService) Delete

func (r *UserRolesService) Delete(profileId int64, id int64) *UserRolesDeleteCall

Delete: Deletes an existing user role.

func (*UserRolesService) Get

func (r *UserRolesService) Get(profileId int64, id int64) *UserRolesGetCall

Get: Gets one user role by ID.

func (*UserRolesService) Insert

func (r *UserRolesService) Insert(profileId int64, userrole *UserRole) *UserRolesInsertCall

Insert: Inserts a new user role.

func (*UserRolesService) List

func (r *UserRolesService) List(profileId int64) *UserRolesListCall

List: Retrieves a list of user roles, possibly filtered.

func (*UserRolesService) Patch

func (r *UserRolesService) Patch(profileId int64, id int64, userrole *UserRole) *UserRolesPatchCall

Patch: Updates an existing user role. This method supports patch semantics.

func (*UserRolesService) Update

func (r *UserRolesService) Update(profileId int64, userrole *UserRole) *UserRolesUpdateCall

Update: Updates an existing user role.

type UserRolesUpdateCall

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

func (*UserRolesUpdateCall) Do

func (c *UserRolesUpdateCall) Do() (*UserRole, error)

func (*UserRolesUpdateCall) Fields

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL