Movatterモバイル変換


[0]ホーム

URL:


dfareporting

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package dfareporting provides access to the Campaign Manager 360 API.

For product documentation, see:https://developers.google.com/doubleclick-advertisers/

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/dfareporting/v5"...ctx := context.Background()dfareportingService, err := dfareporting.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

By default, all available scopes (see "Constants") are used to authenticate.To restrict scopes, usegoogle.golang.org/api/option.WithScopes:

dfareportingService, err := dfareporting.NewService(ctx, option.WithScopes(dfareporting.DfatraffickingScope))

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

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

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// Manage DoubleClick Digital Marketing conversionsDdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"// View and manage DoubleClick for Advertisers reportsDfareportingScope = "https://www.googleapis.com/auth/dfareporting"// View and manage your DoubleClick Campaign Manager's (DCM) display ad// campaignsDfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAccount

type Account struct {// AccountPermissionIds: Account permissions assigned to this account.AccountPermissionIdsgoogleapi.Int64s `json:"accountPermissionIds,omitempty"`// AccountProfile: Profile for this account. This is a read-only field that can// be left blank.//// Possible values://   "ACCOUNT_PROFILE_BASIC" - Basic profile has fewer features and lower CPM.//   "ACCOUNT_PROFILE_STANDARD" - Standard profile as a higher CPM and all the// features.AccountProfilestring `json:"accountProfile,omitempty"`// Active: Whether this account is active.Activebool `json:"active,omitempty"`// ActiveAdsLimitTier: Maximum number of active ads allowed for this account.//// Possible values://   "ACTIVE_ADS_TIER_40K"//   "ACTIVE_ADS_TIER_75K"//   "ACTIVE_ADS_TIER_100K"//   "ACTIVE_ADS_TIER_200K"//   "ACTIVE_ADS_TIER_300K"//   "ACTIVE_ADS_TIER_500K"//   "ACTIVE_ADS_TIER_750K"//   "ACTIVE_ADS_TIER_1M"ActiveAdsLimitTierstring `json:"activeAdsLimitTier,omitempty"`// ActiveViewOptOut: Whether to serve creatives with Active View tags. If// disabled, viewability data will not be available for any impressions.ActiveViewOptOutbool `json:"activeViewOptOut,omitempty"`// AvailablePermissionIds: User role permissions available to the user roles of// this account.AvailablePermissionIdsgoogleapi.Int64s `json:"availablePermissionIds,omitempty"`// CountryId: ID of the country associated with this account.CountryIdint64 `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 - "28" for CLP - "29" for TRY - "30"// for ARS - "31" for PEN - "32" for ILS - "33" for CHF - "34" for VEF - "35"// for COP - "36" for GTQ - "37" for PLN - "39" for INR - "40" for THB - "41"// for IDR - "42" for CZK - "43" for RON - "44" for HUF - "45" for RUB - "46"// for AED - "47" for BGN - "48" for HRK - "49" for MXN - "50" for NGN - "51"// for EGPCurrencyIdint64 `json:"currencyId,omitempty,string"`// DefaultCreativeSizeId: Default placement dimensions for this account.DefaultCreativeSizeIdint64 `json:"defaultCreativeSizeId,omitempty,string"`// Description: Description of this account.Descriptionstring `json:"description,omitempty"`// Id: ID of this account. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#account".Kindstring `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)Localestring `json:"locale,omitempty"`// MaximumImageSize: Maximum image size allowed for this account, in kilobytes.// Value must be greater than or equal to 1.MaximumImageSizeint64 `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.Namestring `json:"name,omitempty"`// NielsenOcrEnabled: Whether campaigns created in this account will be enabled// for Nielsen OCR reach ratings by default.NielsenOcrEnabledbool `json:"nielsenOcrEnabled,omitempty"`// ReportsConfiguration: Reporting configuration of this account.ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"`// ShareReportsWithTwitter: Share Path to Conversion reports with Twitter.ShareReportsWithTwitterbool `json:"shareReportsWithTwitter,omitempty"`// TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser// creatives. Acceptable values are 1 to 10240, inclusive.TeaserSizeLimitint64 `json:"teaserSizeLimit,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountPermissionIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountPermissionIds") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Account: Contains properties of a Campaign Manager account.

func (Account)MarshalJSON

func (sAccount) MarshalJSON() ([]byte,error)

typeAccountActiveAdSummariesGetCall

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

func (*AccountActiveAdSummariesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountActiveAdSummariesGetCall)Do

Do executes the "dfareporting.accountActiveAdSummaries.get" call.Any non-2xx status code is an error. Response headers are in either*AccountActiveAdSummary.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountActiveAdSummariesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountActiveAdSummariesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountActiveAdSummariesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountActiveAdSummariesService

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

funcNewAccountActiveAdSummariesService

func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService

func (*AccountActiveAdSummariesService)Get

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

- profileId: User profile ID associated with this request.- summaryAccountId: Account ID.

typeAccountActiveAdSummary

type AccountActiveAdSummary struct {// AccountId: ID of the account.AccountIdint64 `json:"accountId,omitempty,string"`// ActiveAds: Ads that have been activated for the accountActiveAdsint64 `json:"activeAds,omitempty,string"`// ActiveAdsLimitTier: Maximum number of active ads allowed for the account.//// Possible values://   "ACTIVE_ADS_TIER_40K"//   "ACTIVE_ADS_TIER_75K"//   "ACTIVE_ADS_TIER_100K"//   "ACTIVE_ADS_TIER_200K"//   "ACTIVE_ADS_TIER_300K"//   "ACTIVE_ADS_TIER_500K"//   "ACTIVE_ADS_TIER_750K"//   "ACTIVE_ADS_TIER_1M"ActiveAdsLimitTierstring `json:"activeAdsLimitTier,omitempty"`// AvailableAds: Ads that can be activated for the account.AvailableAdsint64 `json:"availableAds,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#accountActiveAdSummary".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountActiveAdSummary: Gets a summary of active ads in an account.

func (AccountActiveAdSummary)MarshalJSON

func (sAccountActiveAdSummary) MarshalJSON() ([]byte,error)

typeAccountPermission

type AccountPermission struct {// AccountProfiles: Account profiles associated with this account permission.// Possible values are: - "ACCOUNT_PROFILE_BASIC" - "ACCOUNT_PROFILE_STANDARD"//// Possible values://   "ACCOUNT_PROFILE_BASIC" - Basic profile has fewer features and lower CPM.//   "ACCOUNT_PROFILE_STANDARD" - Standard profile as a higher CPM and all the// features.AccountProfiles []string `json:"accountProfiles,omitempty"`// Id: ID of this account permission.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#accountPermission".Kindstring `json:"kind,omitempty"`// Level: Administrative level required to enable this account permission.//// Possible values://   "USER"//   "ADMINISTRATOR"Levelstring `json:"level,omitempty"`// Name: Name of this account permission.Namestring `json:"name,omitempty"`// PermissionGroupId: Permission group of this account permission.PermissionGroupIdint64 `json:"permissionGroupId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountProfiles") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountProfiles") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountPermission: AccountPermissions contains information about aparticular account permission. Some features of Campaign Manager require anaccount permission to be present in the account.

func (AccountPermission)MarshalJSON

func (sAccountPermission) MarshalJSON() ([]byte,error)

typeAccountPermissionGroup

type AccountPermissionGroup struct {// Id: ID of this account permission group.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#accountPermissionGroup".Kindstring `json:"kind,omitempty"`// Name: Name of this account permission group.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountPermissionGroup: AccountPermissionGroups contains a mapping ofpermission group IDs to names. A permission group is a grouping of accountpermissions.

func (AccountPermissionGroup)MarshalJSON

func (sAccountPermissionGroup) MarshalJSON() ([]byte,error)

typeAccountPermissionGroupsGetCall

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

func (*AccountPermissionGroupsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountPermissionGroupsGetCall)Do

Do executes the "dfareporting.accountPermissionGroups.get" call.Any non-2xx status code is an error. Response headers are in either*AccountPermissionGroup.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountPermissionGroupsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountPermissionGroupsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountPermissionGroupsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountPermissionGroupsListCall

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

func (*AccountPermissionGroupsListCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountPermissionGroupsListCall)Do

Do executes the "dfareporting.accountPermissionGroups.list" call.Any non-2xx status code is an error. Response headers are in either*AccountPermissionGroupsListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AccountPermissionGroupsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountPermissionGroupsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountPermissionGroupsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountPermissionGroupsListResponse

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#accountPermissionGroupGroupsListResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountPermissionGroups") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountPermissionGroups") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountPermissionGroupsListResponse: Account Permission Group List Response

func (AccountPermissionGroupsListResponse)MarshalJSON

typeAccountPermissionGroupsService

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

funcNewAccountPermissionGroupsService

func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService

func (*AccountPermissionGroupsService)Get

Get: Gets one account permission group by ID.

- id: Account permission group ID.- profileId: User profile ID associated with this request.

func (*AccountPermissionGroupsService)List

List: Retrieves the list of account permission groups.

- profileId: User profile ID associated with this request.

typeAccountPermissionsGetCall

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

func (*AccountPermissionsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountPermissionsGetCall)Do

Do executes the "dfareporting.accountPermissions.get" call.Any non-2xx status code is an error. Response headers are in either*AccountPermission.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountPermissionsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountPermissionsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountPermissionsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountPermissionsListCall

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

func (*AccountPermissionsListCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountPermissionsListCall)Do

Do executes the "dfareporting.accountPermissions.list" call.Any non-2xx status code is an error. Response headers are in either*AccountPermissionsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AccountPermissionsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountPermissionsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountPermissionsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountPermissionsListResponse

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".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountPermissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountPermissions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountPermissionsListResponse: Account Permission List Response

func (AccountPermissionsListResponse)MarshalJSON

func (sAccountPermissionsListResponse) MarshalJSON() ([]byte,error)

typeAccountPermissionsService

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

funcNewAccountPermissionsService

func NewAccountPermissionsService(s *Service) *AccountPermissionsService

func (*AccountPermissionsService)Get

Get: Gets one account permission by ID.

- id: Account permission ID.- profileId: User profile ID associated with this request.

func (*AccountPermissionsService)List

List: Retrieves the list of account permissions.

- profileId: User profile ID associated with this request.

typeAccountUserProfile

type AccountUserProfile struct {// AccountId: Account ID of the user profile. This is a read-only field that// can be left blank.AccountIdint64 `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.Activebool `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.Commentsstring `json:"comments,omitempty"`// Email: Email of the user profile. The email address must be linked to a// Google Account. This field is required on insertion and is read-only after// insertion.Emailstring `json:"email,omitempty"`// Id: ID of the user profile. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#accountUserProfile".Kindstring `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)Localestring `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: "&;<>"#%,".Namestring `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.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// TraffickerType: Trafficker type of this user profile. This is a read-only// field.//// Possible values://   "INTERNAL_NON_TRAFFICKER" - Internal profile, but is not a trafficker.//   "INTERNAL_TRAFFICKER" - Internal profile who is a trafficker.//   "EXTERNAL_TRAFFICKER" - External profile who is a trafficker.TraffickerTypestring `json:"traffickerType,omitempty"`// UserAccessType: User type of the user profile. This is a read-only field// that can be left blank.//// Possible values://   "NORMAL_USER" - Normal user managed by the customer.//   "SUPER_USER" - Super user managed by internal support teams.//   "INTERNAL_ADMINISTRATOR" - Internal administrator having super user access// to only a specific set of networks.//   "READ_ONLY_SUPER_USER" - A super-user without permission to mutate any// data.UserAccessTypestring `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.UserRoleIdint64 `json:"userRoleId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountUserProfile: AccountUserProfiles contains properties of a CampaignManager user profile. This resource is specifically for managing userprofiles, whereas UserProfiles is for accessing the API.

func (AccountUserProfile)MarshalJSON

func (sAccountUserProfile) MarshalJSON() ([]byte,error)

typeAccountUserProfilesGetCall

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

func (*AccountUserProfilesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountUserProfilesGetCall)Do

Do executes the "dfareporting.accountUserProfiles.get" call.Any non-2xx status code is an error. Response headers are in either*AccountUserProfile.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountUserProfilesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountUserProfilesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountUserProfilesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountUserProfilesInsertCall

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

func (*AccountUserProfilesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountUserProfilesInsertCall)Do

Do executes the "dfareporting.accountUserProfiles.insert" call.Any non-2xx status code is an error. Response headers are in either*AccountUserProfile.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountUserProfilesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountUserProfilesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAccountUserProfilesListCall

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

func (*AccountUserProfilesListCall)Active

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

func (*AccountUserProfilesListCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountUserProfilesListCall)Do

Do executes the "dfareporting.accountUserProfiles.list" call.Any non-2xx status code is an error. Response headers are in either*AccountUserProfilesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AccountUserProfilesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountUserProfilesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountUserProfilesListCall)Ids

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

func (*AccountUserProfilesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AccountUserProfilesListCall)MaxResults

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

func (*AccountUserProfilesListCall)PageToken

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

func (*AccountUserProfilesListCall)Pages

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

func (*AccountUserProfilesListCall)SearchString

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

func (*AccountUserProfilesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*AccountUserProfilesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*AccountUserProfilesListCall)SubaccountId

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

func (*AccountUserProfilesListCall)UserRoleId

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

typeAccountUserProfilesListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountUserProfiles") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountUserProfiles") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountUserProfilesListResponse: Account User Profile List Response

func (AccountUserProfilesListResponse)MarshalJSON

func (sAccountUserProfilesListResponse) MarshalJSON() ([]byte,error)

typeAccountUserProfilesPatchCall

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

func (*AccountUserProfilesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountUserProfilesPatchCall)Do

Do executes the "dfareporting.accountUserProfiles.patch" call.Any non-2xx status code is an error. Response headers are in either*AccountUserProfile.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountUserProfilesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountUserProfilesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAccountUserProfilesService

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

funcNewAccountUserProfilesService

func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService

func (*AccountUserProfilesService)Get

Get: Gets one account user profile by ID.

- id: User profile ID.- profileId: User profile ID associated with this request.

func (*AccountUserProfilesService)Insert

func (r *AccountUserProfilesService) Insert(profileIdint64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall

Insert: Inserts a new account user profile.

- profileId: User profile ID associated with this request.

func (*AccountUserProfilesService)List

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

- profileId: User profile ID associated with this request.

func (*AccountUserProfilesService)Patch

func (r *AccountUserProfilesService) Patch(profileIdint64, idint64, accountuserprofile *AccountUserProfile) *AccountUserProfilesPatchCall

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

- id: AccountUserProfile ID.- profileId: User profile ID associated with this request.

func (*AccountUserProfilesService)Update

func (r *AccountUserProfilesService) Update(profileIdint64, accountuserprofile *AccountUserProfile) *AccountUserProfilesUpdateCall

Update: Updates an existing account user profile.

- profileId: User profile ID associated with this request.

typeAccountUserProfilesUpdateCall

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

func (*AccountUserProfilesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountUserProfilesUpdateCall)Do

Do executes the "dfareporting.accountUserProfiles.update" call.Any non-2xx status code is an error. Response headers are in either*AccountUserProfile.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountUserProfilesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountUserProfilesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAccountsGetCall

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

func (*AccountsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountsGetCall)Do

Do executes the "dfareporting.accounts.get" call.Any non-2xx status code is an error. Response headers are in either*Account.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AccountsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountsGetCall)IfNoneMatch

func (c *AccountsGetCall) IfNoneMatch(entityTagstring) *AccountsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAccountsListCall

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

func (*AccountsListCall)Active

func (c *AccountsListCall) Active(activebool) *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)Context

Context sets the context to be used in this call's Do method.

func (*AccountsListCall)Do

Do executes the "dfareporting.accounts.list" call.Any non-2xx status code is an error. Response headers are in either*AccountsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AccountsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AccountsListCall)Ids

func (c *AccountsListCall) Ids(ids ...int64) *AccountsListCall

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

func (*AccountsListCall)IfNoneMatch

func (c *AccountsListCall) IfNoneMatch(entityTagstring) *AccountsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AccountsListCall)MaxResults

func (c *AccountsListCall) MaxResults(maxResultsint64) *AccountsListCall

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

func (*AccountsListCall)PageToken

func (c *AccountsListCall) PageToken(pageTokenstring) *AccountsListCall

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

func (*AccountsListCall)Pages

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

func (*AccountsListCall)SearchString

func (c *AccountsListCall) SearchString(searchStringstring) *AccountsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 alsoadd wildcards implicitly at the start and the end of the search string. Forexample, a search string of "account" will match objects with name "myaccount", "account 2015", or simply "account".

func (*AccountsListCall)SortField

func (c *AccountsListCall) SortField(sortFieldstring) *AccountsListCall

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

Possible values:

"ID" (default)"NAME"

func (*AccountsListCall)SortOrder

func (c *AccountsListCall) SortOrder(sortOrderstring) *AccountsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeAccountsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Accounts") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Accounts") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AccountsListResponse: Account List Response

func (AccountsListResponse)MarshalJSON

func (sAccountsListResponse) MarshalJSON() ([]byte,error)

typeAccountsPatchCall

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

func (*AccountsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountsPatchCall)Do

Do executes the "dfareporting.accounts.patch" call.Any non-2xx status code is an error. Response headers are in either*Account.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AccountsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountsPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAccountsService

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

funcNewAccountsService

func NewAccountsService(s *Service) *AccountsService

func (*AccountsService)Get

func (r *AccountsService) Get(profileIdint64, idint64) *AccountsGetCall

Get: Gets one account by ID.

- id: Account ID.- profileId: User profile ID associated with this request.

func (*AccountsService)List

func (r *AccountsService) List(profileIdint64) *AccountsListCall

List: Retrieves the list of accounts, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

func (*AccountsService)Patch

func (r *AccountsService) Patch(profileIdint64, idint64, account *Account) *AccountsPatchCall

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

- id: Account ID.- profileId: User profile ID associated with this request.

func (*AccountsService)Update

func (r *AccountsService) Update(profileIdint64, account *Account) *AccountsUpdateCall

Update: Updates an existing account.

- profileId: User profile ID associated with this request.

typeAccountsUpdateCall

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

func (*AccountsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*AccountsUpdateCall)Do

Do executes the "dfareporting.accounts.update" call.Any non-2xx status code is an error. Response headers are in either*Account.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AccountsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AccountsUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeActivities

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.Kindstring `json:"kind,omitempty"`// MetricNames: List of names of floodlight activity metrics.MetricNames []string `json:"metricNames,omitempty"`// ForceSendFields is a list of field names (e.g. "Filters") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Filters") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Activities: Represents an activity group.

func (Activities)MarshalJSON

func (sActivities) MarshalJSON() ([]byte,error)

typeAd

type Ad struct {// AccountId: Account ID of this ad. This is a read-only field that can be left// blank.AccountIdint64 `json:"accountId,omitempty,string"`// Active: Whether this ad is active. When true, archived must be false.Activebool `json:"active,omitempty"`// AdvertiserId: Advertiser ID of this ad. This is a required field on// insertion.AdvertiserIdint64 `json:"advertiserId,omitempty,string"`// AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser.// This is a read-only, auto-generated field.AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`// Archived: Whether this ad is archived. When true, active must be false.Archivedbool `json:"archived,omitempty"`// AudienceSegmentId: Audience segment ID that is being targeted for this ad.// Applicable when type is AD_SERVING_STANDARD_AD.AudienceSegmentIdint64 `json:"audienceSegmentId,omitempty,string"`// CampaignId: Campaign ID of this ad. This is a required field on insertion.CampaignIdint64 `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.Commentsstring `json:"comments,omitempty"`// Compatibility: Compatibility of this ad. Applicable when type is// AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to either// rendering on desktop or on mobile devices or in mobile apps for regular or// interstitial ads, respectively. APP and APP_INTERSTITIAL are only used for// existing default ads. New mobile placements must be assigned DISPLAY or// DISPLAY_INTERSTITIAL and default ads created for those placements will be// limited to those compatibility types. IN_STREAM_VIDEO refers to rendering// in-stream video ads developed with the VAST standard.//// Possible values://   "DISPLAY"//   "DISPLAY_INTERSTITIAL"//   "APP" - Deprecated enum value. No longer supported.//   "APP_INTERSTITIAL" - Deprecated enum value. No longer supported.//   "IN_STREAM_VIDEO"//   "IN_STREAM_AUDIO"Compatibilitystring `json:"compatibility,omitempty"`// ContextualKeywordTargeting: Optional. Contextual keyword targeting// information for this ad.ContextualKeywordTargeting *ContextualKeywordTargeting `json:"contextualKeywordTargeting,omitempty"`// CreateInfo: Information about the creation of this ad. This is a read-only// field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// CreativeGroupAssignments: Creative group assignments for this ad. Applicable// when type is AD_SERVING_CLICK_TRACKER. Only one assignment per creative// group number is allowed for a maximum of two assignments.CreativeGroupAssignments []*CreativeGroupAssignment `json:"creativeGroupAssignments,omitempty"`// CreativeRotation: Creative rotation for this ad. Applicable when type is// AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or AD_SERVING_TRACKING. When// type is AD_SERVING_DEFAULT_AD, this field should have exactly one// creativeAssignment .CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"`// DayPartTargeting: Time and day targeting information for this ad. This field// must be left blank if the ad is using a targeting template. Applicable when// type is AD_SERVING_STANDARD_AD.DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`// DefaultClickThroughEventTagProperties: Default click-through event tag// properties for this ad.DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`// DeliverySchedule: Delivery schedule information for this ad. Applicable when// type is AD_SERVING_STANDARD_AD or AD_SERVING_TRACKING. This field along with// subfields priority and impressionRatio are required on insertion when type// is AD_SERVING_STANDARD_AD.DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"`// DynamicClickTracker: Whether this ad is a dynamic click tracker. Applicable// when type is AD_SERVING_CLICK_TRACKER. This is a required field on insert,// and is read-only after insert.DynamicClickTrackerbool   `json:"dynamicClickTracker,omitempty"`EndTimestring `json:"endTime,omitempty"`// EventTagOverrides: Event tag overrides for this ad.EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`// GeoTargeting: Geographical targeting information for this ad. This field// must be left blank if the ad is using a targeting template. Applicable when// type is AD_SERVING_STANDARD_AD.GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`// Id: ID of this ad. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// IdDimensionValue: Dimension value for the ID of this ad. This is a// read-only, auto-generated field.IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`// KeyValueTargetingExpression: Key-value targeting information for this ad.// This field must be left blank if the ad is using a targeting template.// Applicable when type is AD_SERVING_STANDARD_AD.KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#ad".Kindstring `json:"kind,omitempty"`// LanguageTargeting: Language targeting information for this ad. This field// must be left blank if the ad is using a targeting template. Applicable when// type is AD_SERVING_STANDARD_AD.LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`// LastModifiedInfo: Information about the most recent modification of this ad.// This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// Name: Name of this ad. This is a required field and must be less than 256// characters long.Namestring `json:"name,omitempty"`// PlacementAssignments: Placement assignments for this ad.PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"`// RemarketingListExpression: Remarketing list targeting expression for this// ad. This field must be left blank if the ad is using a targeting template.// Applicable when type is AD_SERVING_STANDARD_AD.RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"`// Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD.Size *Size `json:"size,omitempty"`// SslCompliant: Whether this ad is ssl compliant. This is a read-only field// that is auto-generated when the ad is inserted or updated.SslCompliantbool `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.SslRequiredbool   `json:"sslRequired,omitempty"`StartTimestring `json:"startTime,omitempty"`// SubaccountId: Subaccount ID of this ad. This is a read-only field that can// be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// TargetingTemplateId: Targeting template ID, used to apply preconfigured// targeting information to this ad. This cannot be set while any of// dayPartTargeting, geoTargeting, keyValueTargetingExpression,// languageTargeting, remarketingListExpression, or technologyTargeting are// set. Applicable when type is AD_SERVING_STANDARD_AD.TargetingTemplateIdint64 `json:"targetingTemplateId,omitempty,string"`// TechnologyTargeting: Technology platform targeting information for this ad.// This field must be left blank if the ad is using a targeting template.// Applicable when type is AD_SERVING_STANDARD_AD.TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`// Type: Type of ad. This is a required field on insertion. Note that default// ads ( AD_SERVING_DEFAULT_AD) cannot be created directly (see Creative// resource).//// Possible values://   "AD_SERVING_STANDARD_AD"//   "AD_SERVING_DEFAULT_AD"//   "AD_SERVING_CLICK_TRACKER"//   "AD_SERVING_TRACKING"//   "AD_SERVING_BRAND_SAFE_AD"Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Ad: Contains properties of a Campaign Manager ad.

func (Ad)MarshalJSON

func (sAd) MarshalJSON() ([]byte,error)

typeAdBlockingConfiguration

type AdBlockingConfiguration struct {// Enabled: Whether this campaign has enabled ad blocking. When true, ad// blocking is enabled for placements in the campaign, but this may be// overridden by site and placement settings. When false, ad blocking is// disabled for all placements under the campaign, regardless of site and// placement settings.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdBlockingConfiguration: Campaign ad blocking settings.

func (AdBlockingConfiguration)MarshalJSON

func (sAdBlockingConfiguration) MarshalJSON() ([]byte,error)

typeAdsGetCall

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

func (*AdsGetCall)Context

func (c *AdsGetCall) Context(ctxcontext.Context) *AdsGetCall

Context sets the context to be used in this call's Do method.

func (*AdsGetCall)Do

func (c *AdsGetCall) Do(opts ...googleapi.CallOption) (*Ad,error)

Do executes the "dfareporting.ads.get" call.Any non-2xx status code is an error. Response headers are in either*Ad.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdsGetCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdsGetCall)IfNoneMatch

func (c *AdsGetCall) IfNoneMatch(entityTagstring) *AdsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAdsInsertCall

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

func (*AdsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*AdsInsertCall)Do

func (c *AdsInsertCall) Do(opts ...googleapi.CallOption) (*Ad,error)

Do executes the "dfareporting.ads.insert" call.Any non-2xx status code is an error. Response headers are in either*Ad.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdsInsertCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdsInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdsListCall

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

func (*AdsListCall)Active

func (c *AdsListCall) Active(activebool) *AdsListCall

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

func (*AdsListCall)AdvertiserId

func (c *AdsListCall) AdvertiserId(advertiserIdint64) *AdsListCall

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

func (*AdsListCall)Archived

func (c *AdsListCall) Archived(archivedbool) *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": Selectonly 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 withthese campaign IDs.

func (*AdsListCall)Compatibility

func (c *AdsListCall) Compatibility(compatibilitystring) *AdsListCall

Compatibility sets the optional parameter "compatibility": Select defaultads with the specified compatibility. Applicable when type isAD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to renderingeither 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 withthe VAST standard.

Possible values:

"DISPLAY""DISPLAY_INTERSTITIAL""APP" - Deprecated enum value. No longer supported."APP_INTERSTITIAL" - Deprecated enum value. No longer supported."IN_STREAM_VIDEO""IN_STREAM_AUDIO"

func (*AdsListCall)Context

func (c *AdsListCall) Context(ctxcontext.Context) *AdsListCall

Context sets the context to be used in this call's Do method.

func (*AdsListCall)CreativeIds

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

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

func (*AdsListCall)CreativeOptimizationConfigurationIds

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

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

func (*AdsListCall)Do

Do executes the "dfareporting.ads.list" call.Any non-2xx status code is an error. Response headers are in either*AdsListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AdsListCall)DynamicClickTracker

func (c *AdsListCall) DynamicClickTracker(dynamicClickTrackerbool) *AdsListCall

DynamicClickTracker sets the optional parameter "dynamicClickTracker":Select only dynamic click trackers. Applicable when type isAD_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. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdsListCall)Ids

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

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

func (*AdsListCall)IfNoneMatch

func (c *AdsListCall) IfNoneMatch(entityTagstring) *AdsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AdsListCall)LandingPageIds

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

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

func (*AdsListCall)MaxResults

func (c *AdsListCall) MaxResults(maxResultsint64) *AdsListCall

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

func (*AdsListCall)OverriddenEventTagId

func (c *AdsListCall) OverriddenEventTagId(overriddenEventTagIdint64) *AdsListCall

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

func (*AdsListCall)PageToken

func (c *AdsListCall) PageToken(pageTokenstring) *AdsListCall

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

func (*AdsListCall)Pages

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

func (*AdsListCall)PlacementIds

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

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

func (*AdsListCall)RemarketingListIds

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

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

func (*AdsListCall)SearchString

func (c *AdsListCall) SearchString(searchStringstring) *AdsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor objects by name or ID. Wildcards (*) are allowed. For example, "ad*2015"will return objects with names like "ad June 2015", "ad April 2015", orsimply "ad 2015". Most of the searches also add wildcards implicitly at thestart 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 thesesize IDs.

func (*AdsListCall)SortField

func (c *AdsListCall) SortField(sortFieldstring) *AdsListCall

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

Possible values:

"ID" (default)"NAME"

func (*AdsListCall)SortOrder

func (c *AdsListCall) SortOrder(sortOrderstring) *AdsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*AdsListCall)SslCompliant

func (c *AdsListCall) SslCompliant(sslCompliantbool) *AdsListCall

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

func (*AdsListCall)SslRequired

func (c *AdsListCall) SslRequired(sslRequiredbool) *AdsListCall

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

func (*AdsListCall)Type

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

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

Possible values:

"AD_SERVING_STANDARD_AD""AD_SERVING_DEFAULT_AD""AD_SERVING_CLICK_TRACKER""AD_SERVING_TRACKING""AD_SERVING_BRAND_SAFE_AD"

typeAdsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Ads") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Ads") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdsListResponse: Ad List Response

func (AdsListResponse)MarshalJSON

func (sAdsListResponse) MarshalJSON() ([]byte,error)

typeAdsPatchCall

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

func (*AdsPatchCall)Context

func (c *AdsPatchCall) Context(ctxcontext.Context) *AdsPatchCall

Context sets the context to be used in this call's Do method.

func (*AdsPatchCall)Do

func (c *AdsPatchCall) Do(opts ...googleapi.CallOption) (*Ad,error)

Do executes the "dfareporting.ads.patch" call.Any non-2xx status code is an error. Response headers are in either*Ad.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdsPatchCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdsPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdsService

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

funcNewAdsService

func NewAdsService(s *Service) *AdsService

func (*AdsService)Get

func (r *AdsService) Get(profileIdint64, idint64) *AdsGetCall

Get: Gets one ad by ID.

- id: Ad ID.- profileId: User profile ID associated with this request.

func (*AdsService)Insert

func (r *AdsService) Insert(profileIdint64, ad *Ad) *AdsInsertCall

Insert: Inserts a new ad.

- profileId: User profile ID associated with this request.

func (*AdsService)List

func (r *AdsService) List(profileIdint64) *AdsListCall

List: Retrieves a list of ads, possibly filtered. This method supportspaging.

- profileId: User profile ID associated with this request.

func (*AdsService)Patch

func (r *AdsService) Patch(profileIdint64, idint64, ad *Ad) *AdsPatchCall

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

- id: RemarketingList ID.- profileId: User profile ID associated with this request.

func (*AdsService)Update

func (r *AdsService) Update(profileIdint64, ad *Ad) *AdsUpdateCall

Update: Updates an existing ad.

- profileId: User profile ID associated with this request.

typeAdsUpdateCall

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

func (*AdsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*AdsUpdateCall)Do

func (c *AdsUpdateCall) Do(opts ...googleapi.CallOption) (*Ad,error)

Do executes the "dfareporting.ads.update" call.Any non-2xx status code is an error. Response headers are in either*Ad.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdsUpdateCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdsUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiser

type Advertiser struct {// AccountId: Account ID of this advertiser.This is a read-only field that can// be left blank.AccountIdint64 `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.AdvertiserGroupIdint64 `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.ClickThroughUrlSuffixstring `json:"clickThroughUrlSuffix,omitempty"`// DefaultClickThroughEventTagId: ID of the click-through event tag to apply by// default to the landing pages of this advertiser's campaigns.DefaultClickThroughEventTagIdint64 `json:"defaultClickThroughEventTagId,omitempty,string"`// DefaultEmail: Default email address used in sender field for tag emails.DefaultEmailstring `json:"defaultEmail,omitempty"`// EuPoliticalAdsDeclaration: Optional. Whether the advertiser plans to serve// EU political ads.//// Possible values://   "ADVERTISER_PLANS_TO_SERVE_EU_POLITICAL_ADS" - You'll need to confirm if// your campaign contains EU political advertising.//   "ADVERTISER_DOES_NOT_PLAN_TO_SERVE_EU_POLITICAL_ADS" - All new campaigns// will have “No” selected for the question that asks if your campaign has// EU political ads. You can change this for any campaign at any time.EuPoliticalAdsDeclarationstring `json:"euPoliticalAdsDeclaration,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.FloodlightConfigurationIdint64 `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.Idint64 `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".Kindstring `json:"kind,omitempty"`// MeasurementPartnerLink: Measurement partner advertiser link for tag// wrapping.MeasurementPartnerLink *MeasurementPartnerAdvertiserLink `json:"measurementPartnerLink,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.Namestring `json:"name,omitempty"`// OriginalFloodlightConfigurationId: Original floodlight configuration before// any sharing occurred. Set the floodlightConfigurationId of this advertiser// to originalFloodlightConfigurationId to unshare the advertiser's current// floodlight configuration. You cannot unshare an advertiser's floodlight// configuration if the shared configuration has activities associated with any// campaign or placement.OriginalFloodlightConfigurationIdint64 `json:"originalFloodlightConfigurationId,omitempty,string"`// Status: Status of this advertiser.//// Possible values://   "APPROVED" - Approved (ads can deliver)//   "ON_HOLD" - On-hold (all ads are stopped)Statusstring `json:"status,omitempty"`// SubaccountId: Subaccount ID of this advertiser.This is a read-only field// that can be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// Suspended: Suspension status of this advertiser.Suspendedbool `json:"suspended,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Advertiser: Contains properties of a Campaign Manager advertiser.

func (Advertiser)MarshalJSON

func (sAdvertiser) MarshalJSON() ([]byte,error)

typeAdvertiserGroup

type AdvertiserGroup struct {// AccountId: Account ID of this advertiser group. This is a read-only field// that can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// Id: ID of this advertiser group. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#advertiserGroup".Kindstring `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.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdvertiserGroup: Groups advertisers together so that reports can begenerated for the entire group at once.

func (AdvertiserGroup)MarshalJSON

func (sAdvertiserGroup) MarshalJSON() ([]byte,error)

typeAdvertiserGroupsDeleteCall

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

func (*AdvertiserGroupsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserGroupsDeleteCall)Do

Do executes the "dfareporting.advertiserGroups.delete" call.

func (*AdvertiserGroupsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserGroupsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiserGroupsGetCall

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

func (*AdvertiserGroupsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserGroupsGetCall)Do

Do executes the "dfareporting.advertiserGroups.get" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserGroup.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AdvertiserGroupsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserGroupsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertiserGroupsGetCall)IfNoneMatch

func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTagstring) *AdvertiserGroupsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAdvertiserGroupsInsertCall

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

func (*AdvertiserGroupsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserGroupsInsertCall)Do

Do executes the "dfareporting.advertiserGroups.insert" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserGroup.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AdvertiserGroupsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserGroupsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiserGroupsListCall

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

func (*AdvertiserGroupsListCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserGroupsListCall)Do

Do executes the "dfareporting.advertiserGroups.list" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserGroupsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AdvertiserGroupsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserGroupsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertiserGroupsListCall)Ids

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

func (*AdvertiserGroupsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AdvertiserGroupsListCall)MaxResults

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

func (*AdvertiserGroupsListCall)PageToken

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

func (*AdvertiserGroupsListCall)Pages

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

func (*AdvertiserGroupsListCall)SearchString

func (c *AdvertiserGroupsListCall) SearchString(searchStringstring) *AdvertiserGroupsListCall

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

func (*AdvertiserGroupsListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*AdvertiserGroupsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeAdvertiserGroupsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvertiserGroups") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdvertiserGroupsListResponse: Advertiser Group List Response

func (AdvertiserGroupsListResponse)MarshalJSON

func (sAdvertiserGroupsListResponse) MarshalJSON() ([]byte,error)

typeAdvertiserGroupsPatchCall

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

func (*AdvertiserGroupsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserGroupsPatchCall)Do

Do executes the "dfareporting.advertiserGroups.patch" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserGroup.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AdvertiserGroupsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserGroupsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiserGroupsService

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

funcNewAdvertiserGroupsService

func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService

func (*AdvertiserGroupsService)Delete

Delete: Deletes an existing advertiser group.

- id: Advertiser group ID.- profileId: User profile ID associated with this request.

func (*AdvertiserGroupsService)Get

Get: Gets one advertiser group by ID.

- id: Advertiser group ID.- profileId: User profile ID associated with this request.

func (*AdvertiserGroupsService)Insert

func (r *AdvertiserGroupsService) Insert(profileIdint64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsInsertCall

Insert: Inserts a new advertiser group.

- profileId: User profile ID associated with this request.

func (*AdvertiserGroupsService)List

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

- profileId: User profile ID associated with this request.

func (*AdvertiserGroupsService)Patch

func (r *AdvertiserGroupsService) Patch(profileIdint64, idint64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsPatchCall

Patch: Updates an existing advertiser group. This method supports patchsemantics.

- id: Advertiser Group ID.- profileId: User profile ID associated with this request.

func (*AdvertiserGroupsService)Update

func (r *AdvertiserGroupsService) Update(profileIdint64, advertisergroup *AdvertiserGroup) *AdvertiserGroupsUpdateCall

Update: Updates an existing advertiser group.

- profileId: User profile ID associated with this request.

typeAdvertiserGroupsUpdateCall

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

func (*AdvertiserGroupsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserGroupsUpdateCall)Do

Do executes the "dfareporting.advertiserGroups.update" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserGroup.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*AdvertiserGroupsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserGroupsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiserInvoicesListCall

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

func (*AdvertiserInvoicesListCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserInvoicesListCall)Do

Do executes the "dfareporting.advertiserInvoices.list" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserInvoicesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AdvertiserInvoicesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserInvoicesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertiserInvoicesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AdvertiserInvoicesListCall)IssueMonth

IssueMonth sets the optional parameter "issueMonth": Month for whichinvoices are needed in the format YYYYMM. Required field

func (*AdvertiserInvoicesListCall)MaxResults

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

func (*AdvertiserInvoicesListCall)PageToken

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

func (*AdvertiserInvoicesListCall)Pages

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

typeAdvertiserInvoicesListResponse

type AdvertiserInvoicesListResponse struct {// Invoices: Invoice collectionInvoices []*Invoice `json:"invoices,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#advertiserInvoicesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Invoices") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Invoices") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdvertiserInvoicesListResponse: Invoice List Response

func (AdvertiserInvoicesListResponse)MarshalJSON

func (sAdvertiserInvoicesListResponse) MarshalJSON() ([]byte,error)

typeAdvertiserInvoicesService

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

funcNewAdvertiserInvoicesService

func NewAdvertiserInvoicesService(s *Service) *AdvertiserInvoicesService

func (*AdvertiserInvoicesService)List

func (r *AdvertiserInvoicesService) List(profileIdint64, advertiserIdint64) *AdvertiserInvoicesListCall

List: Retrieves a list of invoices for a particular issue month. The apionly works if the billing profile invoice level is set to either advertiseror campaign non-consolidated invoice level.

- advertiserId: Advertiser ID of this invoice.- profileId: User profile ID associated with this request.

typeAdvertiserLandingPagesGetCall

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

func (*AdvertiserLandingPagesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserLandingPagesGetCall)Do

Do executes the "dfareporting.advertiserLandingPages.get" call.Any non-2xx status code is an error. Response headers are in either*LandingPage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserLandingPagesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserLandingPagesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertiserLandingPagesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAdvertiserLandingPagesInsertCall

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

func (*AdvertiserLandingPagesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserLandingPagesInsertCall)Do

Do executes the "dfareporting.advertiserLandingPages.insert" call.Any non-2xx status code is an error. Response headers are in either*LandingPage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserLandingPagesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserLandingPagesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiserLandingPagesListCall

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

func (*AdvertiserLandingPagesListCall)AdvertiserIds

func (c *AdvertiserLandingPagesListCall) AdvertiserIds(advertiserIds ...int64) *AdvertiserLandingPagesListCall

AdvertiserIds sets the optional parameter "advertiserIds": Select onlylanding pages that belong to these advertisers.

func (*AdvertiserLandingPagesListCall)Archived

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

func (*AdvertiserLandingPagesListCall)CampaignIds

CampaignIds sets the optional parameter "campaignIds": Select only landingpages that are associated with these campaigns.

func (*AdvertiserLandingPagesListCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserLandingPagesListCall)Do

Do executes the "dfareporting.advertiserLandingPages.list" call.Any non-2xx status code is an error. Response headers are in either*AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AdvertiserLandingPagesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserLandingPagesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertiserLandingPagesListCall)Ids

Ids sets the optional parameter "ids": Select only landing pages with theseIDs.

func (*AdvertiserLandingPagesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AdvertiserLandingPagesListCall)MaxResults

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

func (*AdvertiserLandingPagesListCall)PageToken

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

func (*AdvertiserLandingPagesListCall)Pages

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

func (*AdvertiserLandingPagesListCall)SearchString

SearchString sets the optional parameter "searchString": Allows searchingfor landing pages by name or ID. Wildcards (*) are allowed. For example,"landingpage*2017" will return landing pages with names like "landingpageJuly 2017", "landingpage March 2017", or simply "landingpage 2017". Most ofthe searches also add wildcards implicitly at the start and the end of thesearch string. For example, a search string of "landingpage" will matchcampaigns with name "my landingpage", "landingpage 2015", or simply"landingpage".

func (*AdvertiserLandingPagesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*AdvertiserLandingPagesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*AdvertiserLandingPagesListCall)SubaccountId

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

typeAdvertiserLandingPagesListResponse

type AdvertiserLandingPagesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#advertiserLandingPagesListResponse".Kindstring `json:"kind,omitempty"`// LandingPages: Landing page collectionLandingPages []*LandingPage `json:"landingPages,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdvertiserLandingPagesListResponse: Landing Page List Response

func (AdvertiserLandingPagesListResponse)MarshalJSON

typeAdvertiserLandingPagesPatchCall

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

func (*AdvertiserLandingPagesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserLandingPagesPatchCall)Do

Do executes the "dfareporting.advertiserLandingPages.patch" call.Any non-2xx status code is an error. Response headers are in either*LandingPage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserLandingPagesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserLandingPagesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertiserLandingPagesService

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

funcNewAdvertiserLandingPagesService

func NewAdvertiserLandingPagesService(s *Service) *AdvertiserLandingPagesService

func (*AdvertiserLandingPagesService)Get

Get: Gets one landing page by ID.

- id: Landing page ID.- profileId: User profile ID associated with this request.

func (*AdvertiserLandingPagesService)Insert

Insert: Inserts a new landing page.

- profileId: User profile ID associated with this request.

func (*AdvertiserLandingPagesService)List

List: Retrieves a list of landing pages.

- profileId: User profile ID associated with this request.

func (*AdvertiserLandingPagesService)Patch

Patch: Updates an existing landing page. This method supports patchsemantics.

- id: Landing Page ID.- profileId: User profile ID associated with this request.

func (*AdvertiserLandingPagesService)Update

Update: Updates an existing landing page.

- profileId: User profile ID associated with this request.

typeAdvertiserLandingPagesUpdateCall

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

func (*AdvertiserLandingPagesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertiserLandingPagesUpdateCall)Do

Do executes the "dfareporting.advertiserLandingPages.update" call.Any non-2xx status code is an error. Response headers are in either*LandingPage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserLandingPagesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertiserLandingPagesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertisersGetCall

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

func (*AdvertisersGetCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertisersGetCall)Do

Do executes the "dfareporting.advertisers.get" call.Any non-2xx status code is an error. Response headers are in either*Advertiser.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertisersGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertisersGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertisersGetCall)IfNoneMatch

func (c *AdvertisersGetCall) IfNoneMatch(entityTagstring) *AdvertisersGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeAdvertisersInsertCall

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

func (*AdvertisersInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertisersInsertCall)Do

Do executes the "dfareporting.advertisers.insert" call.Any non-2xx status code is an error. Response headers are in either*Advertiser.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertisersInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertisersInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertisersListCall

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

func (*AdvertisersListCall)AdvertiserGroupIds

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

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

func (*AdvertisersListCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertisersListCall)Do

Do executes the "dfareporting.advertisers.list" call.Any non-2xx status code is an error. Response headers are in either*AdvertisersListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*AdvertisersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertisersListCall)FloodlightConfigurationIds

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

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

func (*AdvertisersListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*AdvertisersListCall)Ids

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

func (*AdvertisersListCall)IfNoneMatch

func (c *AdvertisersListCall) IfNoneMatch(entityTagstring) *AdvertisersListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*AdvertisersListCall)IncludeAdvertisersWithoutGroupsOnly

func (c *AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly(includeAdvertisersWithoutGroupsOnlybool) *AdvertisersListCall

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

func (*AdvertisersListCall)MaxResults

func (c *AdvertisersListCall) MaxResults(maxResultsint64) *AdvertisersListCall

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

func (*AdvertisersListCall)OnlyParent

func (c *AdvertisersListCall) OnlyParent(onlyParentbool) *AdvertisersListCall

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

func (*AdvertisersListCall)PageToken

func (c *AdvertisersListCall) PageToken(pageTokenstring) *AdvertisersListCall

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

func (*AdvertisersListCall)Pages

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

func (*AdvertisersListCall)SearchString

func (c *AdvertisersListCall) SearchString(searchStringstring) *AdvertisersListCall

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

func (*AdvertisersListCall)SortField

func (c *AdvertisersListCall) SortField(sortFieldstring) *AdvertisersListCall

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

Possible values:

"ID" (default)"NAME"

func (*AdvertisersListCall)SortOrder

func (c *AdvertisersListCall) SortOrder(sortOrderstring) *AdvertisersListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*AdvertisersListCall)Status

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

Possible values:

"APPROVED" - Approved (ads can deliver)"ON_HOLD" - On-hold (all ads are stopped)

func (*AdvertisersListCall)SubaccountId

func (c *AdvertisersListCall) SubaccountId(subaccountIdint64) *AdvertisersListCall

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

typeAdvertisersListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Advertisers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Advertisers") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdvertisersListResponse: Advertiser List Response

func (AdvertisersListResponse)MarshalJSON

func (sAdvertisersListResponse) MarshalJSON() ([]byte,error)

typeAdvertisersPatchCall

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

func (*AdvertisersPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertisersPatchCall)Do

Do executes the "dfareporting.advertisers.patch" call.Any non-2xx status code is an error. Response headers are in either*Advertiser.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertisersPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertisersPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAdvertisersService

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

funcNewAdvertisersService

func NewAdvertisersService(s *Service) *AdvertisersService

func (*AdvertisersService)Get

func (r *AdvertisersService) Get(profileIdint64, idint64) *AdvertisersGetCall

Get: Gets one advertiser by ID.

- id: Advertiser ID.- profileId: User profile ID associated with this request.

func (*AdvertisersService)Insert

func (r *AdvertisersService) Insert(profileIdint64, advertiser *Advertiser) *AdvertisersInsertCall

Insert: Inserts a new advertiser.

- profileId: User profile ID associated with this request.

func (*AdvertisersService)List

func (r *AdvertisersService) List(profileIdint64) *AdvertisersListCall

List: Retrieves a list of advertisers, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

func (*AdvertisersService)Patch

func (r *AdvertisersService) Patch(profileIdint64, idint64, advertiser *Advertiser) *AdvertisersPatchCall

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

- id: Advertiser ID.- profileId: User profile ID associated with this request.

func (*AdvertisersService)Update

func (r *AdvertisersService) Update(profileIdint64, advertiser *Advertiser) *AdvertisersUpdateCall

Update: Updates an existing advertiser.

- profileId: User profile ID associated with this request.

typeAdvertisersUpdateCall

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

func (*AdvertisersUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*AdvertisersUpdateCall)Do

Do executes the "dfareporting.advertisers.update" call.Any non-2xx status code is an error. Response headers are in either*Advertiser.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*AdvertisersUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*AdvertisersUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeAudienceSegment

type AudienceSegment struct {// Allocation: Weight allocated to this segment. The weight assigned will be// understood in proportion to the weights assigned to other segments in the// same segment group. Acceptable values are 1 to 1000, inclusive.Allocationint64 `json:"allocation,omitempty"`// Id: ID of this audience segment. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Name: Name of this audience segment. This is a required field and must be// less than 65 characters long.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Allocation") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Allocation") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AudienceSegment: Audience Segment.

func (AudienceSegment)MarshalJSON

func (sAudienceSegment) MarshalJSON() ([]byte,error)

typeAudienceSegmentGroup

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.Idint64 `json:"id,omitempty,string"`// Name: Name of this audience segment group. This is a required field and must// be less than 65 characters long.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "AudienceSegments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AudienceSegments") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AudienceSegmentGroup: Audience Segment Group.

func (AudienceSegmentGroup)MarshalJSON

func (sAudienceSegmentGroup) MarshalJSON() ([]byte,error)

typeBillingAssignment

type BillingAssignment struct {// AccountId: ID of the account associated with the billing assignment.This is// a read-only, auto-generated field.AccountIdstring `json:"accountId,omitempty"`// AdvertiserId: ID of the advertiser associated with the billing// assignment.Wildcard (*) means this assignment is not limited to a single// advertiserAdvertiserIdstring `json:"advertiserId,omitempty"`// CampaignId: ID of the campaign associated with the billing assignment.// Wildcard (*) means this assignment is not limited to a single campaignCampaignIdstring `json:"campaignId,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#billingAssignment".Kindstring `json:"kind,omitempty"`// SubaccountId: ID of the subaccount associated with the billing// assignment.Wildcard (*) means this assignment is not limited to a single// subaccountThis is a read-only, auto-generated field.SubaccountIdstring `json:"subaccountId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BillingAssignment: List account, subaccount, advertiser, and campaignassociated with a given Billing Profile.

func (BillingAssignment)MarshalJSON

func (sBillingAssignment) MarshalJSON() ([]byte,error)

typeBillingAssignmentsInsertCall

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

func (*BillingAssignmentsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*BillingAssignmentsInsertCall)Do

Do executes the "dfareporting.billingAssignments.insert" call.Any non-2xx status code is an error. Response headers are in either*BillingAssignment.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*BillingAssignmentsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BillingAssignmentsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeBillingAssignmentsListCall

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

func (*BillingAssignmentsListCall)Context

Context sets the context to be used in this call's Do method.

func (*BillingAssignmentsListCall)Do

Do executes the "dfareporting.billingAssignments.list" call.Any non-2xx status code is an error. Response headers are in either*BillingAssignmentsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingAssignmentsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BillingAssignmentsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*BillingAssignmentsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeBillingAssignmentsListResponse

type BillingAssignmentsListResponse struct {// BillingAssignments: Billing assignments collection.BillingAssignments []*BillingAssignment `json:"billingAssignments,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#billingAssignmentsListResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BillingAssignments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingAssignments") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BillingAssignmentsListResponse: Billing assignment List Response

func (BillingAssignmentsListResponse)MarshalJSON

func (sBillingAssignmentsListResponse) MarshalJSON() ([]byte,error)

typeBillingAssignmentsService

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

funcNewBillingAssignmentsService

func NewBillingAssignmentsService(s *Service) *BillingAssignmentsService

func (*BillingAssignmentsService)Insert

func (r *BillingAssignmentsService) Insert(profileIdint64, billingProfileIdint64, billingassignment *BillingAssignment) *BillingAssignmentsInsertCall

Insert: Inserts a new billing assignment and returns the new assignment.Only one of advertiser_id or campaign_id is support per request. If the newassignment has no effect (assigning a campaign to the parent advertiserbilling profile or assigning an advertiser to the account billing profile),no assignment will be returned.

- billingProfileId: Billing profile ID of this billing assignment.- profileId: User profile ID associated with this request.

func (*BillingAssignmentsService)List

func (r *BillingAssignmentsService) List(profileIdint64, billingProfileIdint64) *BillingAssignmentsListCall

List: Retrieves a list of billing assignments.

- billingProfileId: Billing profile ID of this billing assignment.- profileId: User profile ID associated with this request.

typeBillingProfile

type BillingProfile struct {// ConsolidatedInvoice: Consolidated invoice option for this billing profile.// Used to get a single, consolidated invoice across the chosen invoice level.ConsolidatedInvoicebool `json:"consolidatedInvoice,omitempty"`// CountryCode: Country code of this billing profile.This is a read-only field.CountryCodestring `json:"countryCode,omitempty"`// CurrencyCode: Billing currency code in ISO 4217 format.This is a read-only// field.CurrencyCodestring `json:"currencyCode,omitempty"`// Id: ID of this billing profile. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// InvoiceLevel: Invoice level for this billing profile. Used to group fees// into separate invoices by account, advertiser, or campaign.//// Possible values://   "ACCOUNT_LEVEL"//   "ADVERTISER_LEVEL"//   "CAMPAIGN_LEVEL"InvoiceLevelstring `json:"invoiceLevel,omitempty"`// IsDefault: True if the billing profile is the account default profile. This// is a read-only field.IsDefaultbool `json:"isDefault,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#billingProfile".Kindstring `json:"kind,omitempty"`// Name: Name of this billing profile. This is a required field and must be// less than 256 characters long and must be unique among billing profile in// the same account.Namestring `json:"name,omitempty"`// PaymentsAccountId: The ID of the payment account the billing profile belongs// to. This is a read-only field.PaymentsAccountIdstring `json:"paymentsAccountId,omitempty"`// PaymentsCustomerId: The ID of the payment customer the billing profile// belongs to. This is a read-only field.PaymentsCustomerIdstring `json:"paymentsCustomerId,omitempty"`// PurchaseOrder: Purchase order (PO) for this billing profile. This PO number// is used in the invoices for all of the advertisers in this billing profile.PurchaseOrderstring `json:"purchaseOrder,omitempty"`// SecondaryPaymentsCustomerId: The ID of the secondary payment customer the// billing profile belongs to. This is a read-only field.SecondaryPaymentsCustomerIdstring `json:"secondaryPaymentsCustomerId,omitempty"`// Status: Status of this billing profile.This is a read-only field.//// Possible values://   "UNDER_REVIEW"//   "ACTIVE"//   "ARCHIVED"Statusstring `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ConsolidatedInvoice") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConsolidatedInvoice") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BillingProfile: Contains properties of a Campaign Manager Billing Profile.

func (BillingProfile)MarshalJSON

func (sBillingProfile) MarshalJSON() ([]byte,error)

typeBillingProfilesGetCall

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

func (*BillingProfilesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*BillingProfilesGetCall)Do

Do executes the "dfareporting.billingProfiles.get" call.Any non-2xx status code is an error. Response headers are in either*BillingProfile.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*BillingProfilesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BillingProfilesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*BillingProfilesGetCall)IfNoneMatch

func (c *BillingProfilesGetCall) IfNoneMatch(entityTagstring) *BillingProfilesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeBillingProfilesListCall

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

func (*BillingProfilesListCall)Context

Context sets the context to be used in this call's Do method.

func (*BillingProfilesListCall)CurrencyCode

func (c *BillingProfilesListCall) CurrencyCode(currencyCodestring) *BillingProfilesListCall

CurrencyCode sets the optional parameter "currency_code": Select onlybilling profile with currency.

func (*BillingProfilesListCall)Do

Do executes the "dfareporting.billingProfiles.list" call.Any non-2xx status code is an error. Response headers are in either*BillingProfilesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingProfilesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BillingProfilesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*BillingProfilesListCall)Ids

Ids sets the optional parameter "ids": Select only billing profile withthese IDs.

func (*BillingProfilesListCall)IfNoneMatch

func (c *BillingProfilesListCall) IfNoneMatch(entityTagstring) *BillingProfilesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*BillingProfilesListCall)MaxResults

func (c *BillingProfilesListCall) MaxResults(maxResultsint64) *BillingProfilesListCall

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

func (*BillingProfilesListCall)Name

Name sets the optional parameter "name": Allows searching for billingprofiles by name. Wildcards (*) are allowed. For example, "profile*2020"will return objects with names like "profile June 2020", "profile April2020", or simply "profile 2020". Most of the searches also add wildcardsimplicitly at the start and the end of the search string. For example, asearch string of "profile" will match objects with name "my profile","profile 2021", or simply "profile".

func (*BillingProfilesListCall)OnlySuggestion

func (c *BillingProfilesListCall) OnlySuggestion(onlySuggestionbool) *BillingProfilesListCall

OnlySuggestion sets the optional parameter "onlySuggestion": Select onlybilling profile which is suggested for the currency_code & subaccount_idusing the Billing Suggestion API.

func (*BillingProfilesListCall)PageToken

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

func (*BillingProfilesListCall)Pages

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

func (*BillingProfilesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*BillingProfilesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*BillingProfilesListCall)Status

Status sets the optional parameter "status": Select only billing profilewith the specified status.

Possible values:

"UNDER_REVIEW""ACTIVE""ARCHIVED"

func (*BillingProfilesListCall)SubaccountIds

func (c *BillingProfilesListCall) SubaccountIds(subaccountIds ...int64) *BillingProfilesListCall

SubaccountIds sets the optional parameter "subaccountIds": Select onlybilling profile with the specified subaccount.When only_suggestion is true,only a single subaccount_id is supported.

typeBillingProfilesListResponse

type BillingProfilesListResponse struct {// BillingProfiles: Billing profiles collection.BillingProfiles []*BillingProfile `json:"billingProfiles,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#billingProfilesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BillingProfiles") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingProfiles") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BillingProfilesListResponse: Billing profile List Response

func (BillingProfilesListResponse)MarshalJSON

func (sBillingProfilesListResponse) MarshalJSON() ([]byte,error)

typeBillingProfilesService

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

funcNewBillingProfilesService

func NewBillingProfilesService(s *Service) *BillingProfilesService

func (*BillingProfilesService)Get

Get: Gets one billing profile by ID.

- id: Billing Profile ID.- profileId: User profile ID associated with this request.

func (*BillingProfilesService)List

List: Retrieves a list of billing profiles, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

func (*BillingProfilesService)Update

func (r *BillingProfilesService) Update(profileIdint64, billingprofile *BillingProfile) *BillingProfilesUpdateCall

Update: Updates an existing billing profile.

- profileId: User profile ID associated with this request.

typeBillingProfilesUpdateCall

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

func (*BillingProfilesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*BillingProfilesUpdateCall)Do

Do executes the "dfareporting.billingProfiles.update" call.Any non-2xx status code is an error. Response headers are in either*BillingProfile.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*BillingProfilesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BillingProfilesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeBillingRate

type BillingRate struct {// CurrencyCode: Billing currency code in ISO 4217 format.CurrencyCodestring `json:"currencyCode,omitempty"`// EndDate: End date of this billing rate.EndDatestring `json:"endDate,omitempty"`// Id: ID of this billing rate.Idint64 `json:"id,omitempty,string"`// Name: Name of this billing rate. This must be less than 256 characters long.Namestring `json:"name,omitempty"`// RateInMicros: Flat rate in micros of this billing rate. This cannot co-exist// with tiered rate.RateInMicrosint64 `json:"rateInMicros,omitempty,string"`// StartDate: Start date of this billing rate.StartDatestring `json:"startDate,omitempty"`// TieredRates: Tiered rate of this billing rate. This cannot co-exist with// flat rate.TieredRates []*BillingRateTieredRate `json:"tieredRates,omitempty"`// Type: Type of this billing rate.//// Possible values://   "AD_SERVING"//   "CLICKS"//   "MINIMUM_SERVICE"//   "PATH_TO_CONVERSION"//   "RICH_MEDIA_INPAGE"//   "RICH_MEDIA_EXPANDING"//   "RICH_MEDIA_FLOATING"//   "RICH_MEDIA_VIDEO"//   "RICH_MEDIA_TEASER"//   "RICH_MEDIA_VPAID"//   "INSTREAM_VIDEO"//   "PIXEL"//   "TRACKING"//   "TRAFFICKING_FEATURE"//   "CUSTOM_REPORTS"//   "EXPOSURE_TO_CONVERSION"//   "DATA_TRANSFER"//   "DATA_TRANSFER_SETUP"//   "STARTUP"//   "STATEMENT_OF_WORK"//   "PROVIDED_LIST"//   "PROVIDED_LIST_SETUP"//   "ENHANCED_FORMATS"//   "TRACKING_AD_IMPRESSIONS"//   "TRACKING_AD_CLICKS"//   "NIELSEN_DIGITAL_AD_RATINGS_FEE"//   "INSTREAM_VIDEO_REDIRECT"//   "INSTREAM_VIDEO_VPAID"//   "DISPLAY_AD_SERVING"//   "VIDEO_AD_SERVING"//   "AUDIO_AD_SERVING"//   "ADVANCED_DISPLAY_AD_SERVING"Typestring `json:"type,omitempty"`// UnitOfMeasure: Unit of measure for this billing rate.//// Possible values://   "CPM"//   "CPC"//   "EA"//   "P2C"UnitOfMeasurestring `json:"unitOfMeasure,omitempty"`// ForceSendFields is a list of field names (e.g. "CurrencyCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CurrencyCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (BillingRate)MarshalJSON

func (sBillingRate) MarshalJSON() ([]byte,error)

typeBillingRateTieredRate

type BillingRateTieredRate struct {// HighValue: The maximum for this tier range.HighValueint64 `json:"highValue,omitempty,string"`// LowValue: The minimum for this tier range.LowValueint64 `json:"lowValue,omitempty,string"`// RateInMicros: Rate in micros for this tier.RateInMicrosint64 `json:"rateInMicros,omitempty,string"`// ForceSendFields is a list of field names (e.g. "HighValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HighValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (BillingRateTieredRate)MarshalJSON

func (sBillingRateTieredRate) MarshalJSON() ([]byte,error)

typeBillingRatesListCall

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

func (*BillingRatesListCall)Context

Context sets the context to be used in this call's Do method.

func (*BillingRatesListCall)Do

Do executes the "dfareporting.billingRates.list" call.Any non-2xx status code is an error. Response headers are in either*BillingRatesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*BillingRatesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BillingRatesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*BillingRatesListCall)IfNoneMatch

func (c *BillingRatesListCall) IfNoneMatch(entityTagstring) *BillingRatesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeBillingRatesListResponse

type BillingRatesListResponse struct {// BillingRates: Billing rates collection.BillingRates []*BillingRate `json:"billingRates,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#billingRatesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "BillingRates") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingRates") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BillingRatesListResponse: Billing Rate List Response

func (BillingRatesListResponse)MarshalJSON

func (sBillingRatesListResponse) MarshalJSON() ([]byte,error)

typeBillingRatesService

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

funcNewBillingRatesService

func NewBillingRatesService(s *Service) *BillingRatesService

func (*BillingRatesService)List

func (r *BillingRatesService) List(profileIdint64, billingProfileIdint64) *BillingRatesListCall

List: Retrieves a list of billing rates. This method supports paging.

- billingProfileId: Billing profile ID of this billing rate.- profileId: User profile ID associated with this request.

typeBrowser

type Browser struct {// BrowserVersionId: ID referring to this grouping of browser and version// numbers. This is the ID used for targeting.BrowserVersionIdint64 `json:"browserVersionId,omitempty,string"`// DartId: DART ID of this browser. This is the ID used when generating// reports.DartIdint64 `json:"dartId,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#browser".Kindstring `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.MajorVersionstring `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.MinorVersionstring `json:"minorVersion,omitempty"`// Name: Name of this browser.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "BrowserVersionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BrowserVersionId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Browser: Contains information about a browser that can be targeted by ads.

func (Browser)MarshalJSON

func (sBrowser) MarshalJSON() ([]byte,error)

typeBrowsersListCall

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

func (*BrowsersListCall)Context

Context sets the context to be used in this call's Do method.

func (*BrowsersListCall)Do

Do executes the "dfareporting.browsers.list" call.Any non-2xx status code is an error. Response headers are in either*BrowsersListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*BrowsersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*BrowsersListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*BrowsersListCall)IfNoneMatch

func (c *BrowsersListCall) IfNoneMatch(entityTagstring) *BrowsersListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeBrowsersListResponse

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".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Browsers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Browsers") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

BrowsersListResponse: Browser List Response

func (BrowsersListResponse)MarshalJSON

func (sBrowsersListResponse) MarshalJSON() ([]byte,error)

typeBrowsersService

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

funcNewBrowsersService

func NewBrowsersService(s *Service) *BrowsersService

func (*BrowsersService)List

func (r *BrowsersService) List(profileIdint64) *BrowsersListCall

List: Retrieves a list of browsers.

- profileId: User profile ID associated with this request.

typeCampaign

type Campaign struct {// AccountId: Account ID of this campaign. This is a read-only field that can// be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AdBlockingConfiguration: Ad blocking settings for this campaign.AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"`// AdditionalCreativeOptimizationConfigurations: Additional creative// optimization configurations for the campaign.AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"`// AdvertiserGroupId: Advertiser group ID of the associated advertiser.AdvertiserGroupIdint64 `json:"advertiserGroupId,omitempty,string"`// AdvertiserId: Advertiser ID of this campaign. This is a required field.AdvertiserIdint64 `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.Archivedbool `json:"archived,omitempty"`// AudienceSegmentGroups: Audience segment groups assigned to this campaign.// Cannot have more than 300 segment groups.AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"`// BillingInvoiceCode: Billing invoice code included in the Campaign Manager// client billing invoices associated with the campaign.BillingInvoiceCodestring `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.Commentstring `json:"comment,omitempty"`// CreateInfo: Information about the creation of this campaign. This is a// read-only field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// CreativeGroupIds: List of creative group IDs that are assigned to the// campaign.CreativeGroupIdsgoogleapi.Int64s `json:"creativeGroupIds,omitempty"`// CreativeOptimizationConfiguration: Creative optimization configuration for// the campaign.CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"`// DefaultClickThroughEventTagProperties: Click-through event tag ID override// properties for this campaign.DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`// DefaultLandingPageId: The default landing page ID for this campaign.DefaultLandingPageIdint64  `json:"defaultLandingPageId,omitempty,string"`EndDatestring `json:"endDate,omitempty"`// EuPoliticalAdsDeclaration: Optional. Whether the campaign has EU political// ads. Campaign Manager 360 doesn't allow campaigns with EU political ads to// serve in the EU. They can still serve in other regions.//// Possible values://   "CONTAINS_EU_POLITICAL_ADS" - The campaign contains EU political ads.//   "DOES_NOT_CONTAIN_EU_POLITICAL_ADS" - The campaign does not contain EU// political ads.EuPoliticalAdsDeclarationstring `json:"euPoliticalAdsDeclaration,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.ExternalIdstring `json:"externalId,omitempty"`// Id: ID of this campaign. This is a read-only auto-generated field.Idint64 `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".Kindstring `json:"kind,omitempty"`// LastModifiedInfo: Information about the most recent modification of this// campaign. This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// MeasurementPartnerLink: Measurement partner campaign link for tag wrapping.MeasurementPartnerLink *MeasurementPartnerCampaignLink `json:"measurementPartnerLink,omitempty"`// Name: Name of this campaign. This is a required field and must be less than// 512 characters long and unique among campaigns of the same advertiser.Namestring `json:"name,omitempty"`StartDatestring `json:"startDate,omitempty"`// SubaccountId: Subaccount ID of this campaign. This is a read-only field that// can be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Campaign: Contains properties of a Campaign Manager campaign.

func (Campaign)MarshalJSON

func (sCampaign) MarshalJSON() ([]byte,error)

typeCampaignCreativeAssociation

type CampaignCreativeAssociation struct {// CreativeId: ID of the creative associated with the campaign. This is a// required field.CreativeIdint64 `json:"creativeId,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#campaignCreativeAssociation".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreativeId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CampaignCreativeAssociation: Identifies a creative which has been associatedwith a given campaign.

func (CampaignCreativeAssociation)MarshalJSON

func (sCampaignCreativeAssociation) MarshalJSON() ([]byte,error)

typeCampaignCreativeAssociationsInsertCall

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

func (*CampaignCreativeAssociationsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignCreativeAssociationsInsertCall)Do

Do executes the "dfareporting.campaignCreativeAssociations.insert" call.Any non-2xx status code is an error. Response headers are in either*CampaignCreativeAssociation.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*CampaignCreativeAssociationsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignCreativeAssociationsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCampaignCreativeAssociationsListCall

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

func (*CampaignCreativeAssociationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignCreativeAssociationsListCall)Do

Do executes the "dfareporting.campaignCreativeAssociations.list" call.Any non-2xx status code is an error. Response headers are in either*CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*CampaignCreativeAssociationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignCreativeAssociationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CampaignCreativeAssociationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CampaignCreativeAssociationsListCall)MaxResults

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

func (*CampaignCreativeAssociationsListCall)PageToken

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

func (*CampaignCreativeAssociationsListCall)Pages

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

func (*CampaignCreativeAssociationsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeCampaignCreativeAssociationsListResponse

type CampaignCreativeAssociationsListResponse struct {// CampaignCreativeAssociations: Campaign creative association collectionCampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#campaignCreativeAssociationsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "CampaignCreativeAssociations") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CampaignCreativeAssociations") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CampaignCreativeAssociationsListResponse: Campaign Creative Association ListResponse

func (CampaignCreativeAssociationsListResponse)MarshalJSON

typeCampaignCreativeAssociationsService

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

func (*CampaignCreativeAssociationsService)Insert

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

- campaignId: Campaign ID in this association.- profileId: User profile ID associated with this request.

func (*CampaignCreativeAssociationsService)List

List: Retrieves the list of creative IDs associated with the specifiedcampaign. This method supports paging.

- campaignId: Campaign ID in this association.- profileId: User profile ID associated with this request.

typeCampaignSummary

type CampaignSummary struct {// BillingInvoiceCode: Campaign billing invoice code.BillingInvoiceCodestring `json:"billingInvoiceCode,omitempty"`// CampaignId: Campaign ID.CampaignIdint64 `json:"campaignId,omitempty,string"`// PreTaxAmountMicros: The pre-tax amount for this campaign, in micros of the// invoice's currency.PreTaxAmountMicrosint64 `json:"preTaxAmountMicros,omitempty,string"`// TaxAmountMicros: The tax amount for this campaign, in micros of the// invoice's currency.TaxAmountMicrosint64 `json:"taxAmountMicros,omitempty,string"`// TotalAmountMicros: The total amount of charges for this campaign, in micros// of the invoice's currency.TotalAmountMicrosint64 `json:"totalAmountMicros,omitempty,string"`// ForceSendFields is a list of field names (e.g. "BillingInvoiceCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BillingInvoiceCode") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CampaignSummary: Represents a summarized campaign information associatedwith this invoice.

func (CampaignSummary)MarshalJSON

func (sCampaignSummary) MarshalJSON() ([]byte,error)

typeCampaignsGetCall

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

func (*CampaignsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignsGetCall)Do

Do executes the "dfareporting.campaigns.get" call.Any non-2xx status code is an error. Response headers are in either*Campaign.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CampaignsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CampaignsGetCall)IfNoneMatch

func (c *CampaignsGetCall) IfNoneMatch(entityTagstring) *CampaignsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCampaignsInsertCall

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

func (*CampaignsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignsInsertCall)Do

Do executes the "dfareporting.campaigns.insert" call.Any non-2xx status code is an error. Response headers are in either*Campaign.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CampaignsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignsInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCampaignsListCall

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

func (*CampaignsListCall)AdvertiserGroupIds

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

AdvertiserGroupIds sets the optional parameter "advertiserGroupIds": Selectonly 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 onlycampaigns that belong to these advertisers.

func (*CampaignsListCall)Archived

func (c *CampaignsListCall) Archived(archivedbool) *CampaignsListCall

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

func (*CampaignsListCall)AtLeastOneOptimizationActivity

func (c *CampaignsListCall) AtLeastOneOptimizationActivity(atLeastOneOptimizationActivitybool) *CampaignsListCall

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

func (*CampaignsListCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignsListCall)Do

Do executes the "dfareporting.campaigns.list" call.Any non-2xx status code is an error. Response headers are in either*CampaignsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CampaignsListCall)ExcludedIds

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

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

func (*CampaignsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CampaignsListCall)Ids

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

func (*CampaignsListCall)IfNoneMatch

func (c *CampaignsListCall) IfNoneMatch(entityTagstring) *CampaignsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CampaignsListCall)MaxResults

func (c *CampaignsListCall) MaxResults(maxResultsint64) *CampaignsListCall

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

func (*CampaignsListCall)OverriddenEventTagId

func (c *CampaignsListCall) OverriddenEventTagId(overriddenEventTagIdint64) *CampaignsListCall

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

func (*CampaignsListCall)PageToken

func (c *CampaignsListCall) PageToken(pageTokenstring) *CampaignsListCall

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

func (*CampaignsListCall)Pages

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

func (*CampaignsListCall)SearchString

func (c *CampaignsListCall) SearchString(searchStringstring) *CampaignsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 alsoadd wildcards implicitly at the start and the end of the search string. Forexample, a search string of "campaign" will match campaigns with name "mycampaign", "campaign 2015", or simply "campaign".

func (*CampaignsListCall)SortField

func (c *CampaignsListCall) SortField(sortFieldstring) *CampaignsListCall

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

Possible values:

"ID" (default)"NAME"

func (*CampaignsListCall)SortOrder

func (c *CampaignsListCall) SortOrder(sortOrderstring) *CampaignsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*CampaignsListCall)SubaccountId

func (c *CampaignsListCall) SubaccountId(subaccountIdint64) *CampaignsListCall

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

typeCampaignsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Campaigns") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Campaigns") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CampaignsListResponse: Campaign List Response

func (CampaignsListResponse)MarshalJSON

func (sCampaignsListResponse) MarshalJSON() ([]byte,error)

typeCampaignsPatchCall

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

func (*CampaignsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignsPatchCall)Do

Do executes the "dfareporting.campaigns.patch" call.Any non-2xx status code is an error. Response headers are in either*Campaign.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CampaignsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignsPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCampaignsService

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

funcNewCampaignsService

func NewCampaignsService(s *Service) *CampaignsService

func (*CampaignsService)Get

func (r *CampaignsService) Get(profileIdint64, idint64) *CampaignsGetCall

Get: Gets one campaign by ID.

- id: Campaign ID.- profileId: User profile ID associated with this request.

func (*CampaignsService)Insert

func (r *CampaignsService) Insert(profileIdint64, campaign *Campaign) *CampaignsInsertCall

Insert: Inserts a new campaign.

- profileId: User profile ID associated with this request.

func (*CampaignsService)List

func (r *CampaignsService) List(profileIdint64) *CampaignsListCall

List: Retrieves a list of campaigns, possibly filtered. This method supportspaging.

- profileId: User profile ID associated with this request.

func (*CampaignsService)Patch

func (r *CampaignsService) Patch(profileIdint64, idint64, campaign *Campaign) *CampaignsPatchCall

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

- id: Campaign ID.- profileId: User profile ID associated with this request.

func (*CampaignsService)Update

func (r *CampaignsService) Update(profileIdint64, campaign *Campaign) *CampaignsUpdateCall

Update: Updates an existing campaign.

- profileId: User profile ID associated with this request.

typeCampaignsUpdateCall

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

func (*CampaignsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*CampaignsUpdateCall)Do

Do executes the "dfareporting.campaigns.update" call.Any non-2xx status code is an error. Response headers are in either*Campaign.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CampaignsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CampaignsUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCartData

type CartData struct {// Items: Data of the items purchased.Items []*CartDataItem `json:"items,omitempty"`// MerchantFeedLabel: The feed labels associated with the feed where your items// are uploaded. For more information, please refer to ​​//https://support.google.com/merchants/answer/12453549. Providing the feed// label reduces ambiguity in identifying the right offer details.MerchantFeedLabelstring `json:"merchantFeedLabel,omitempty"`// MerchantFeedLanguage: The language associated with the feed where your items// are uploaded. Use ISO 639-1 language codes. Providing the feed language// reduces ambiguity in identifying the right offer details.MerchantFeedLanguagestring `json:"merchantFeedLanguage,omitempty"`// MerchantId: The Merchant Center ID where the items are uploaded. Providing// Merchant Center ID reduces ambiguity in identifying the right offer details.MerchantIdint64 `json:"merchantId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Items") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Items") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CartData: *Beta:* This feature is currently in beta. Contains additionalinformation about cart data. This field may only be used when callingbatchinsert; it is not supported by batchupdate. Cart data reporting is onlysupported in SA360. Learn more(https://support.google.com/sa360/topic/13425788)

func (CartData)MarshalJSON

func (sCartData) MarshalJSON() ([]byte,error)

typeCartDataItem

type CartDataItem struct {// ItemId: The shopping id of the item. Must be equal to the Merchant Center// product identifier. This is a required field.ItemIdstring `json:"itemId,omitempty"`// Quantity: Number of items sold. This is a required field.Quantityint64 `json:"quantity,omitempty"`// UnitPrice: Unit price excluding tax, shipping, and any transaction level// discounts. Interpreted in CM360 Floodlight config parent advertiser's// currency code. This is a required field.UnitPricefloat64 `json:"unitPrice,omitempty"`// ForceSendFields is a list of field names (e.g. "ItemId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ItemId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CartDataItem: Contains data of the items purchased.

func (CartDataItem)MarshalJSON

func (sCartDataItem) MarshalJSON() ([]byte,error)

func (*CartDataItem)UnmarshalJSON

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

typeChangeLog

type ChangeLog struct {// AccountId: Account ID of the modified object.AccountIdint64 `json:"accountId,omitempty,string"`// Action: Action which caused the change.Actionstring `json:"action,omitempty"`ChangeTimestring `json:"changeTime,omitempty"`// FieldName: Field name of the object which changed.FieldNamestring `json:"fieldName,omitempty"`// Id: ID of this change log.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#changeLog".Kindstring `json:"kind,omitempty"`// NewValue: New value of the object field.NewValuestring `json:"newValue,omitempty"`// ObjectId: ID of the object of this change log. The object could be a// campaign, placement, ad, or other type.ObjectIdint64 `json:"objectId,omitempty,string"`// ObjectType: Object type of the change log.ObjectTypestring `json:"objectType,omitempty"`// OldValue: Old value of the object field.OldValuestring `json:"oldValue,omitempty"`// SubaccountId: Subaccount ID of the modified object.SubaccountIdint64 `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.TransactionIdint64 `json:"transactionId,omitempty,string"`// UserProfileId: ID of the user who modified the object.UserProfileIdint64 `json:"userProfileId,omitempty,string"`// UserProfileName: User profile name of the user who modified the object.UserProfileNamestring `json:"userProfileName,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ChangeLog: Describes a change that a user has made to a resource.

func (ChangeLog)MarshalJSON

func (sChangeLog) MarshalJSON() ([]byte,error)

typeChangeLogsGetCall

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

func (*ChangeLogsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ChangeLogsGetCall)Do

Do executes the "dfareporting.changeLogs.get" call.Any non-2xx status code is an error. Response headers are in either*ChangeLog.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ChangeLogsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ChangeLogsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ChangeLogsGetCall)IfNoneMatch

func (c *ChangeLogsGetCall) IfNoneMatch(entityTagstring) *ChangeLogsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeChangeLogsListCall

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

func (*ChangeLogsListCall)Action

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

Possible values:

"ACTION_CREATE""ACTION_UPDATE""ACTION_DELETE""ACTION_ENABLE""ACTION_DISABLE""ACTION_ADD""ACTION_REMOVE""ACTION_MARK_AS_DEFAULT""ACTION_ASSOCIATE""ACTION_ASSIGN""ACTION_UNASSIGN""ACTION_SEND""ACTION_LINK""ACTION_UNLINK""ACTION_PUSH""ACTION_EMAIL_TAGS""ACTION_SHARE"

func (*ChangeLogsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ChangeLogsListCall)Do

Do executes the "dfareporting.changeLogs.list" call.Any non-2xx status code is an error. Response headers are in either*ChangeLogsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ChangeLogsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ChangeLogsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ChangeLogsListCall)Ids

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

func (*ChangeLogsListCall)IfNoneMatch

func (c *ChangeLogsListCall) IfNoneMatch(entityTagstring) *ChangeLogsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ChangeLogsListCall)MaxChangeTime

func (c *ChangeLogsListCall) MaxChangeTime(maxChangeTimestring) *ChangeLogsListCall

MaxChangeTime sets the optional parameter "maxChangeTime": Select onlychange logs whose change time is before the specified maxChangeTime.The timeshould be formatted as an RFC3339 date/time string. For example, for 10:54PM 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, theletter T, the hour (24-hour clock system), minute, second, and then the timezone offset.

func (*ChangeLogsListCall)MaxResults

func (c *ChangeLogsListCall) MaxResults(maxResultsint64) *ChangeLogsListCall

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

func (*ChangeLogsListCall)MinChangeTime

func (c *ChangeLogsListCall) MinChangeTime(minChangeTimestring) *ChangeLogsListCall

MinChangeTime sets the optional parameter "minChangeTime": Select onlychange logs whose change time is after the specified minChangeTime.The timeshould be formatted as an RFC3339 date/time string. For example, for 10:54PM 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, theletter T, the hour (24-hour clock system), minute, second, and then the timezone offset.

func (*ChangeLogsListCall)ObjectIds

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

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

func (*ChangeLogsListCall)ObjectType

func (c *ChangeLogsListCall) ObjectType(objectTypestring) *ChangeLogsListCall

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

Possible values:

"OBJECT_ADVERTISER""OBJECT_FLOODLIGHT_CONFIGURATION""OBJECT_AD""OBJECT_FLOODLIGHT_ACTVITY""OBJECT_CAMPAIGN""OBJECT_FLOODLIGHT_ACTIVITY_GROUP""OBJECT_CREATIVE""OBJECT_PLACEMENT""OBJECT_DFA_SITE""OBJECT_USER_ROLE""OBJECT_USER_PROFILE""OBJECT_ADVERTISER_GROUP""OBJECT_ACCOUNT""OBJECT_SUBACCOUNT""OBJECT_RICHMEDIA_CREATIVE""OBJECT_INSTREAM_CREATIVE""OBJECT_MEDIA_ORDER""OBJECT_CONTENT_CATEGORY""OBJECT_PLACEMENT_STRATEGY""OBJECT_SD_SITE""OBJECT_SIZE""OBJECT_CREATIVE_GROUP""OBJECT_CREATIVE_ASSET""OBJECT_USER_PROFILE_FILTER""OBJECT_LANDING_PAGE""OBJECT_CREATIVE_FIELD""OBJECT_REMARKETING_LIST""OBJECT_PROVIDED_LIST_CLIENT""OBJECT_EVENT_TAG""OBJECT_CREATIVE_BUNDLE""OBJECT_BILLING_ACCOUNT_GROUP""OBJECT_BILLING_FEATURE""OBJECT_RATE_CARD""OBJECT_ACCOUNT_BILLING_FEATURE""OBJECT_BILLING_MINIMUM_FEE""OBJECT_BILLING_PROFILE""OBJECT_PLAYSTORE_LINK""OBJECT_TARGETING_TEMPLATE""OBJECT_SEARCH_LIFT_STUDY""OBJECT_FLOODLIGHT_DV360_LINK""OBJECT_ADVERTISER_CUSTOMER_LINK""OBJECT_CONVERSION_DOMAIN""OBJECT_ACCOUNT_CONVERSION_DOMAIN"

func (*ChangeLogsListCall)PageToken

func (c *ChangeLogsListCall) PageToken(pageTokenstring) *ChangeLogsListCall

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

func (*ChangeLogsListCall)Pages

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

func (*ChangeLogsListCall)SearchString

func (c *ChangeLogsListCall) SearchString(searchStringstring) *ChangeLogsListCall

SearchString sets the optional parameter "searchString": Select only changelogs 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 onlychange logs with these user profile IDs.

typeChangeLogsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ChangeLogs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChangeLogs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ChangeLogsListResponse: Change Log List Response

func (ChangeLogsListResponse)MarshalJSON

func (sChangeLogsListResponse) MarshalJSON() ([]byte,error)

typeChangeLogsService

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

funcNewChangeLogsService

func NewChangeLogsService(s *Service) *ChangeLogsService

func (*ChangeLogsService)Get

func (r *ChangeLogsService) Get(profileIdint64, idint64) *ChangeLogsGetCall

Get: Gets one change log by ID.

- id: Change log ID.- profileId: User profile ID associated with this request.

func (*ChangeLogsService)List

func (r *ChangeLogsService) List(profileIdint64) *ChangeLogsListCall

List: Retrieves a list of change logs. This method supports paging.

- profileId: User profile ID associated with this request.

typeCitiesListCall

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

func (*CitiesListCall)Context

Context sets the context to be used in this call's Do method.

func (*CitiesListCall)CountryDartIds

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

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

func (*CitiesListCall)DartIds

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

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

func (*CitiesListCall)Do

Do executes the "dfareporting.cities.list" call.Any non-2xx status code is an error. Response headers are in either*CitiesListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CitiesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CitiesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CitiesListCall)IfNoneMatch

func (c *CitiesListCall) IfNoneMatch(entityTagstring) *CitiesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CitiesListCall)NamePrefix

func (c *CitiesListCall) NamePrefix(namePrefixstring) *CitiesListCall

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

func (*CitiesListCall)RegionDartIds

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

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

typeCitiesListResponse

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".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Cities") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cities") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CitiesListResponse: City List Response

func (CitiesListResponse)MarshalJSON

func (sCitiesListResponse) MarshalJSON() ([]byte,error)

typeCitiesService

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

funcNewCitiesService

func NewCitiesService(s *Service) *CitiesService

func (*CitiesService)List

func (r *CitiesService) List(profileIdint64) *CitiesListCall

List: Retrieves a list of cities, possibly filtered.

- profileId: User profile ID associated with this request.

typeCity

type City struct {// CountryCode: Country code of the country to which this city belongs.CountryCodestring `json:"countryCode,omitempty"`// CountryDartId: DART ID of the country to which this city belongs.CountryDartIdint64 `json:"countryDartId,omitempty,string"`// DartId: DART ID of this city. This is the ID used for targeting and// generating reports.DartIdint64 `json:"dartId,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#city".Kindstring `json:"kind,omitempty"`// MetroCode: Metro region code of the metro region (DMA) to which this city// belongs.MetroCodestring `json:"metroCode,omitempty"`// MetroDmaId: ID of the metro region (DMA) to which this city belongs.MetroDmaIdint64 `json:"metroDmaId,omitempty,string"`// Name: Name of this city.Namestring `json:"name,omitempty"`// RegionCode: Region code of the region to which this city belongs.RegionCodestring `json:"regionCode,omitempty"`// RegionDartId: DART ID of the region to which this city belongs.RegionDartIdint64 `json:"regionDartId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CountryCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

City: Contains information about a city that can be targeted by ads.

func (City)MarshalJSON

func (sCity) MarshalJSON() ([]byte,error)

typeClickTag

type ClickTag struct {// ClickThroughUrl: Parameter value for the specified click tag. This field// contains a click-through url.ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"`// EventName: Advertiser event name associated with the click tag. This field// is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to// DISPLAY when the primary asset type is not HTML_IMAGE.EventNamestring `json:"eventName,omitempty"`// Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY// creative assets, this field must match the value of the creative asset's// creativeAssetId.name field.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickThroughUrl") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClickTag: Creative Click Tag.

func (ClickTag)MarshalJSON

func (sClickTag) MarshalJSON() ([]byte,error)

typeClickThroughUrl

type ClickThroughUrl struct {// ComputedClickThroughUrl: Read-only convenience field representing the actual// URL that will be used for this click-through. The URL is computed as// follows: - If defaultLandingPage is enabled then the campaign's default// landing page URL is assigned to this field. - If defaultLandingPage is not// enabled and a landingPageId is specified then that landing page's URL is// assigned to this field. - If neither of the above cases apply, then the// customClickThroughUrl is assigned to this field.ComputedClickThroughUrlstring `json:"computedClickThroughUrl,omitempty"`// CustomClickThroughUrl: Custom click-through URL. Applicable if the// defaultLandingPage field is set to false and the landingPageId field is left// unset.CustomClickThroughUrlstring `json:"customClickThroughUrl,omitempty"`// DefaultLandingPage: Whether the campaign default landing page is used.DefaultLandingPagebool `json:"defaultLandingPage,omitempty"`// LandingPageId: ID of the landing page for the click-through URL. Applicable// if the defaultLandingPage field is set to false.LandingPageIdint64 `json:"landingPageId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClickThroughUrl: Click-through URL

func (ClickThroughUrl)MarshalJSON

func (sClickThroughUrl) MarshalJSON() ([]byte,error)

typeClickThroughUrlSuffixProperties

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.ClickThroughUrlSuffixstring `json:"clickThroughUrlSuffix,omitempty"`// OverrideInheritedSuffix: Whether this entity should override the inherited// click-through URL suffix with its own defined value.OverrideInheritedSuffixbool `json:"overrideInheritedSuffix,omitempty"`// ForceSendFields is a list of field names (e.g. "ClickThroughUrlSuffix") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ClickThroughUrlSuffixProperties: Click Through URL Suffix settings.

func (ClickThroughUrlSuffixProperties)MarshalJSON

func (sClickThroughUrlSuffixProperties) MarshalJSON() ([]byte,error)

typeCompanionClickThroughOverride

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.CreativeIdint64 `json:"creativeId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickThroughUrl") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompanionClickThroughOverride: Companion Click-through override.

func (CompanionClickThroughOverride)MarshalJSON

func (sCompanionClickThroughOverride) MarshalJSON() ([]byte,error)

typeCompanionSetting

type CompanionSetting struct {// CompanionsDisabled: Whether companions are disabled for this placement.CompanionsDisabledbool `json:"companionsDisabled,omitempty"`// EnabledSizes: Allowlist of companion sizes to be served to this placement.// Set this list to null or empty to serve all companion sizes.EnabledSizes []*Size `json:"enabledSizes,omitempty"`// ImageOnly: Whether to serve only static images as companions.ImageOnlybool `json:"imageOnly,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#companionSetting".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompanionsDisabled") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CompanionSetting: Companion Settings

func (CompanionSetting)MarshalJSON

func (sCompanionSetting) MarshalJSON() ([]byte,error)

typeCompatibleFields

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"`// CrossMediaReachReportCompatibleFields: Contains items that are compatible to// be selected for a report of type "CROSS_MEDIA_REACH".CrossMediaReachReportCompatibleFields *CrossMediaReachReportCompatibleFields `json:"crossMediaReachReportCompatibleFields,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.Kindstring `json:"kind,omitempty"`// PathToConversionReportCompatibleFields: Contains items that are compatible// to be selected for a report of type "PATH_TO_CONVERSION".PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"`// ReachReportCompatibleFields: Contains items that are compatible to be// selected for a report of type "REACH".ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"`// ReportCompatibleFields: Contains items that are compatible to be selected// for a report of type "STANDARD".ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "CrossDimensionReachReportCompatibleFields") to unconditionally include in// API requests. By default, fields with empty or default values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "CrossDimensionReachReportCompatibleFields") to include in API requests with// the JSON null value. By default, fields with empty values are omitted from// API requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields// for more details.NullFields []string `json:"-"`}

CompatibleFields: Represents a response to the queryCompatibleFields method.Next ID: 10

func (CompatibleFields)MarshalJSON

func (sCompatibleFields) MarshalJSON() ([]byte,error)

typeConnectionType

type ConnectionType struct {// Id: ID of this connection type.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#connectionType".Kindstring `json:"kind,omitempty"`// Name: Name of this connection type.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConnectionType: Contains information about an internet connection type thatcan be targeted by ads. Clients can use the connection type to target mobilevs. broadband users.

func (ConnectionType)MarshalJSON

func (sConnectionType) MarshalJSON() ([]byte,error)

typeConnectionTypesGetCall

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

func (*ConnectionTypesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ConnectionTypesGetCall)Do

Do executes the "dfareporting.connectionTypes.get" call.Any non-2xx status code is an error. Response headers are in either*ConnectionType.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ConnectionTypesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ConnectionTypesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ConnectionTypesGetCall)IfNoneMatch

func (c *ConnectionTypesGetCall) IfNoneMatch(entityTagstring) *ConnectionTypesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeConnectionTypesListCall

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

func (*ConnectionTypesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ConnectionTypesListCall)Do

Do executes the "dfareporting.connectionTypes.list" call.Any non-2xx status code is an error. Response headers are in either*ConnectionTypesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ConnectionTypesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ConnectionTypesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ConnectionTypesListCall)IfNoneMatch

func (c *ConnectionTypesListCall) IfNoneMatch(entityTagstring) *ConnectionTypesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeConnectionTypesListResponse

type ConnectionTypesListResponse struct {// ConnectionTypes: Collection of connection types such as broadband and// mobile.ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#connectionTypesListResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ConnectionTypes") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConnectionTypes") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConnectionTypesListResponse: Connection Type List Response

func (ConnectionTypesListResponse)MarshalJSON

func (sConnectionTypesListResponse) MarshalJSON() ([]byte,error)

typeConnectionTypesService

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

funcNewConnectionTypesService

func NewConnectionTypesService(s *Service) *ConnectionTypesService

func (*ConnectionTypesService)Get

Get: Gets one connection type by ID.

- id: Connection type ID.- profileId: User profile ID associated with this request.

func (*ConnectionTypesService)List

List: Retrieves a list of connection types.

- profileId: User profile ID associated with this request.

typeContentCategoriesDeleteCall

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

func (*ContentCategoriesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ContentCategoriesDeleteCall)Do

Do executes the "dfareporting.contentCategories.delete" call.

func (*ContentCategoriesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ContentCategoriesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeContentCategoriesGetCall

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

func (*ContentCategoriesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ContentCategoriesGetCall)Do

Do executes the "dfareporting.contentCategories.get" call.Any non-2xx status code is an error. Response headers are in either*ContentCategory.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ContentCategoriesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ContentCategoriesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ContentCategoriesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeContentCategoriesInsertCall

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

func (*ContentCategoriesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*ContentCategoriesInsertCall)Do

Do executes the "dfareporting.contentCategories.insert" call.Any non-2xx status code is an error. Response headers are in either*ContentCategory.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ContentCategoriesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ContentCategoriesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeContentCategoriesListCall

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

func (*ContentCategoriesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ContentCategoriesListCall)Do

Do executes the "dfareporting.contentCategories.list" call.Any non-2xx status code is an error. Response headers are in either*ContentCategoriesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ContentCategoriesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ContentCategoriesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ContentCategoriesListCall)Ids

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

func (*ContentCategoriesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ContentCategoriesListCall)MaxResults

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

func (*ContentCategoriesListCall)PageToken

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

func (*ContentCategoriesListCall)Pages

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

func (*ContentCategoriesListCall)SearchString

func (c *ContentCategoriesListCall) SearchString(searchStringstring) *ContentCategoriesListCall

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

func (*ContentCategoriesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*ContentCategoriesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeContentCategoriesListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentCategories") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentCategories") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ContentCategoriesListResponse: Content Category List Response

func (ContentCategoriesListResponse)MarshalJSON

func (sContentCategoriesListResponse) MarshalJSON() ([]byte,error)

typeContentCategoriesPatchCall

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

func (*ContentCategoriesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*ContentCategoriesPatchCall)Do

Do executes the "dfareporting.contentCategories.patch" call.Any non-2xx status code is an error. Response headers are in either*ContentCategory.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ContentCategoriesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ContentCategoriesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeContentCategoriesService

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

funcNewContentCategoriesService

func NewContentCategoriesService(s *Service) *ContentCategoriesService

func (*ContentCategoriesService)Delete

Delete: Deletes an existing content category.

- id: Content category ID.- profileId: User profile ID associated with this request.

func (*ContentCategoriesService)Get

Get: Gets one content category by ID.

- id: Content category ID.- profileId: User profile ID associated with this request.

func (*ContentCategoriesService)Insert

func (r *ContentCategoriesService) Insert(profileIdint64, contentcategory *ContentCategory) *ContentCategoriesInsertCall

Insert: Inserts a new content category.

- profileId: User profile ID associated with this request.

func (*ContentCategoriesService)List

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

- profileId: User profile ID associated with this request.

func (*ContentCategoriesService)Patch

func (r *ContentCategoriesService) Patch(profileIdint64, idint64, contentcategory *ContentCategory) *ContentCategoriesPatchCall

Patch: Updates an existing content category. This method supports patchsemantics.

- id: ContentCategory ID.- profileId: User profile ID associated with this request.

func (*ContentCategoriesService)Update

func (r *ContentCategoriesService) Update(profileIdint64, contentcategory *ContentCategory) *ContentCategoriesUpdateCall

Update: Updates an existing content category.

- profileId: User profile ID associated with this request.

typeContentCategoriesUpdateCall

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

func (*ContentCategoriesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ContentCategoriesUpdateCall)Do

Do executes the "dfareporting.contentCategories.update" call.Any non-2xx status code is an error. Response headers are in either*ContentCategory.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ContentCategoriesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ContentCategoriesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeContentCategory

type ContentCategory struct {// AccountId: Account ID of this content category. This is a read-only field// that can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// Id: ID of this content category. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#contentCategory".Kindstring `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.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ContentCategory)MarshalJSON

func (sContentCategory) MarshalJSON() ([]byte,error)

typeContentSource

type ContentSource struct {// ContentSourceName: Optional. The name of the content source. It is defaulted// to content source file name if not provided.ContentSourceNamestring `json:"contentSourceName,omitempty"`// CreateInfo: Output only. The creation timestamp of the content source. This// is a read-only field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// LastModifiedInfo: Output only. The last modified timestamp of the content// source. This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// MetaData: Output only. Metadata of the content source. It contains the// number of rows and the column names from resource link. This is a read-only// field.MetaData *ContentSourceMetaData `json:"metaData,omitempty"`// ResourceLink: Required. The link to the file of the content source.ResourceLinkstring `json:"resourceLink,omitempty"`// ResourceType: Required. The resource type of the content source.//// Possible values://   "RESOURCE_TYPE_UNSPECIFIED" - The resource type is unspecified.//   "RESOURCE_TYPE_GOOGLE_SPREADSHEET" - The resource type is google// spreadsheet.//   "RESOURCE_TYPE_REMOTE_FILE" - The resource type is remote file.ResourceTypestring `json:"resourceType,omitempty"`// ForceSendFields is a list of field names (e.g. "ContentSourceName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentSourceName") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ContentSource: Contains the content source of the dynamic feed.

func (ContentSource)MarshalJSON

func (sContentSource) MarshalJSON() ([]byte,error)

typeContentSourceMetaData

type ContentSourceMetaData struct {// Charset: Output only. The charset of the content source.Charsetstring `json:"charset,omitempty"`// FieldNames: Output only. The list of column names in the content source.FieldNames []string `json:"fieldNames,omitempty"`// RowNumber: Output only. The number of rows in the content source.RowNumberint64 `json:"rowNumber,omitempty"`// Separator: Output only. The separator of the content source.Separatorstring `json:"separator,omitempty"`// ForceSendFields is a list of field names (e.g. "Charset") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Charset") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ContentSourceMetaData: Contains the meta data of the content source. This isa read-only field.

func (ContentSourceMetaData)MarshalJSON

func (sContentSourceMetaData) MarshalJSON() ([]byte,error)

typeContextualKeywordadded inv0.255.0

type ContextualKeyword struct {// Keyword: The keyword that can be targeted by ads.Keywordstring `json:"keyword,omitempty"`// ForceSendFields is a list of field names (e.g. "Keyword") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Keyword") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ContextualKeyword: Contains information about a Contextual Keyword that canbe targeted by ads.

func (ContextualKeyword)MarshalJSONadded inv0.255.0

func (sContextualKeyword) MarshalJSON() ([]byte,error)

typeContextualKeywordTargetingadded inv0.255.0

type ContextualKeywordTargeting struct {// Keywords: Contextual keywords that this ad targetsKeywords []*ContextualKeyword `json:"keywords,omitempty"`// ForceSendFields is a list of field names (e.g. "Keywords") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Keywords") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ContextualKeywordTargeting: Contextual Keyword Targeting.

func (ContextualKeywordTargeting)MarshalJSONadded inv0.255.0

func (sContextualKeywordTargeting) MarshalJSON() ([]byte,error)

typeConversion

type Conversion struct {// AdUserDataConsent: This represents consent for ad user data.//// Possible values://   "GRANTED" - Granted.//   "DENIED" - Denied.AdUserDataConsentstring `json:"adUserDataConsent,omitempty"`// CartData: The cart data associated with this conversion.CartData *CartData `json:"cartData,omitempty"`// ChildDirectedTreatment: Whether this particular request may come from a user// under the age of 13, under COPPA compliance.ChildDirectedTreatmentbool `json:"childDirectedTreatment,omitempty"`// CustomVariables: Custom floodlight variables.CustomVariables []*CustomFloodlightVariable `json:"customVariables,omitempty"`// Dclid: The display click ID. This field is mutually exclusive with// encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId,// gclid, and impressionId. This or encryptedUserId or// encryptedUserIdCandidates[] or matchId or mobileDeviceId or gclid or// impressionId is a required field.Dclidstring `json:"dclid,omitempty"`// EncryptedUserId: The alphanumeric encrypted user ID. When set,// encryptionInfo should also be specified. This field is mutually exclusive// with encryptedUserIdCandidates[], matchId, mobileDeviceId, gclid, dclid, and// impressionId. This or encryptedUserIdCandidates[] or matchId or// mobileDeviceId or gclid or dclid or impressionId is a required field.EncryptedUserIdstring `json:"encryptedUserId,omitempty"`// EncryptedUserIdCandidates: A list of the alphanumeric encrypted user IDs.// Any user ID with exposure prior to the conversion timestamp will be used in// the inserted conversion. If no such user ID is found then the conversion// will be rejected with INVALID_ARGUMENT error. When set, encryptionInfo// should also be specified. This field may only be used when calling// batchinsert; it is not supported by batchupdate. This field is mutually// exclusive with encryptedUserId, matchId, mobileDeviceId, gclid dclid, and// impressionId. This or encryptedUserId or matchId or mobileDeviceId or gclid// or dclid or impressionId is a required field.EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"`// FloodlightActivityId: Floodlight Activity ID of this conversion. This is a// required field.FloodlightActivityIdint64 `json:"floodlightActivityId,omitempty,string"`// FloodlightConfigurationId: Floodlight Configuration ID of this conversion.// This is a required field.FloodlightConfigurationIdint64 `json:"floodlightConfigurationId,omitempty,string"`// Gclid: The Google click ID. This field is mutually exclusive with// encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId,// dclid, and impressionId. This or encryptedUserId or// encryptedUserIdCandidates[] or matchId or mobileDeviceId or dclid or// impressionId is a required field.Gclidstring `json:"gclid,omitempty"`// ImpressionId: The impression ID. This field is mutually exclusive with// encryptedUserId, encryptedUserIdCandidates[], matchId, mobileDeviceId, and// gclid. One of these identifiers must be set.ImpressionIdstring `json:"impressionId,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversion".Kindstring `json:"kind,omitempty"`// LimitAdTracking: Whether Limit Ad Tracking is enabled. When set to true, the// conversion will be used for reporting but not targeting. This will prevent// remarketing.LimitAdTrackingbool `json:"limitAdTracking,omitempty"`// MatchId: The match ID field. A match ID is your own first-party identifier// that has been synced with Google using the match ID feature in Floodlight.// This field is mutually exclusive with encryptedUserId,// encryptedUserIdCandidates[],mobileDeviceId, gclid, dclid, and impressionId.// This or encryptedUserId orencryptedUserIdCandidates[] or mobileDeviceId or// gclid or dclid or impressionIdis a required field.MatchIdstring `json:"matchId,omitempty"`// MobileDeviceId: The mobile device ID. This field is mutually exclusive with// encryptedUserId, encryptedUserIdCandidates[], matchId, gclid, dclid, and// impressionId. This or encryptedUserId or encryptedUserIdCandidates[] or// matchId or gclid or dclid or impressionId is a required field.MobileDeviceIdstring `json:"mobileDeviceId,omitempty"`// NonPersonalizedAd: Whether the conversion was for a non personalized ad.NonPersonalizedAdbool `json:"nonPersonalizedAd,omitempty"`// Ordinal: The ordinal of the conversion. Use this field to control how// conversions of the same user and day are de-duplicated. This is a required// field.Ordinalstring `json:"ordinal,omitempty"`// Quantity: The quantity of the conversion. This is a required field.Quantityint64 `json:"quantity,omitempty,string"`// SessionAttributesEncoded: Session attributes for the conversion, encoded as// based64 bytes. This field may only be used when calling batchinsert; it is// not supported by batchupdate.SessionAttributesEncodedstring `json:"sessionAttributesEncoded,omitempty"`// TimestampMicros: The timestamp of conversion, in Unix epoch micros. This is// a required field.TimestampMicrosint64 `json:"timestampMicros,omitempty,string"`// TreatmentForUnderage: Whether this particular request may come from a user// under the age of 16 (may differ by country), under compliance with the// European Union's General Data Protection Regulation (GDPR).TreatmentForUnderagebool `json:"treatmentForUnderage,omitempty"`// UserIdentifiers: The user identifiers to enhance the conversion. The maximum// number of user identifiers for each conversion is 5.UserIdentifiers []*UserIdentifier `json:"userIdentifiers,omitempty"`// Value: The value of the conversion. Interpreted in CM360 Floodlight config// parent advertiser's currency code. This is a required field.Valuefloat64 `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "AdUserDataConsent") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdUserDataConsent") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Conversion: A Conversion represents when a user successfully performs adesired action after seeing an ad.

func (Conversion)MarshalJSON

func (sConversion) MarshalJSON() ([]byte,error)

func (*Conversion)UnmarshalJSON

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

typeConversionError

type ConversionError struct {// Code: The error code.//// Possible values://   "INVALID_ARGUMENT"//   "INTERNAL"//   "PERMISSION_DENIED"//   "NOT_FOUND"Codestring `json:"code,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversionError".Kindstring `json:"kind,omitempty"`// Message: A description of the error.Messagestring `json:"message,omitempty"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConversionError: The error code and description for a conversion that failedto insert or update.

func (ConversionError)MarshalJSON

func (sConversionError) MarshalJSON() ([]byte,error)

typeConversionStatus

type ConversionStatus struct {// Conversion: The original conversion that was inserted or updated.Conversion *Conversion `json:"conversion,omitempty"`// Errors: A list of errors related to this conversion.Errors []*ConversionError `json:"errors,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversionStatus".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversion") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Conversion") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConversionStatus: The original conversion that was inserted or updated andwhether there were any errors.

func (ConversionStatus)MarshalJSON

func (sConversionStatus) MarshalJSON() ([]byte,error)

typeConversionsBatchInsertRequest

type ConversionsBatchInsertRequest struct {// Conversions: The set of conversions to insert.Conversions []*Conversion `json:"conversions,omitempty"`// EncryptionInfo: Describes how encryptedUserId or encryptedUserIdCandidates[]// is encrypted. This is a required field if encryptedUserId or// encryptedUserIdCandidates[] is used.EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversionsBatchInsertRequest".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Conversions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConversionsBatchInsertRequest: Insert Conversions Request.

func (ConversionsBatchInsertRequest)MarshalJSON

func (sConversionsBatchInsertRequest) MarshalJSON() ([]byte,error)

typeConversionsBatchInsertResponse

type ConversionsBatchInsertResponse struct {// HasFailures: Indicates that some or all conversions failed to insert.HasFailuresbool `json:"hasFailures,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversionsBatchInsertResponse".Kindstring `json:"kind,omitempty"`// Status: The insert status of each conversion. Statuses are returned in the// same order that conversions are inserted.Status []*ConversionStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "HasFailures") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HasFailures") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConversionsBatchInsertResponse: Insert Conversions Response.

func (ConversionsBatchInsertResponse)MarshalJSON

func (sConversionsBatchInsertResponse) MarshalJSON() ([]byte,error)

typeConversionsBatchUpdateRequest

type ConversionsBatchUpdateRequest struct {// Conversions: The set of conversions to update.Conversions []*Conversion `json:"conversions,omitempty"`// EncryptionInfo: Describes how encryptedUserId is encrypted. This is a// required field if encryptedUserId is used.EncryptionInfo *EncryptionInfo `json:"encryptionInfo,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversionsBatchUpdateRequest".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "Conversions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Conversions") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConversionsBatchUpdateRequest: Update Conversions Request.

func (ConversionsBatchUpdateRequest)MarshalJSON

func (sConversionsBatchUpdateRequest) MarshalJSON() ([]byte,error)

typeConversionsBatchUpdateResponse

type ConversionsBatchUpdateResponse struct {// HasFailures: Indicates that some or all conversions failed to update.HasFailuresbool `json:"hasFailures,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#conversionsBatchUpdateResponse".Kindstring `json:"kind,omitempty"`// Status: The update status of each conversion. Statuses are returned in the// same order that conversions are updated.Status []*ConversionStatus `json:"status,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "HasFailures") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HasFailures") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConversionsBatchUpdateResponse: Update Conversions Response.

func (ConversionsBatchUpdateResponse)MarshalJSON

func (sConversionsBatchUpdateResponse) MarshalJSON() ([]byte,error)

typeConversionsBatchinsertCall

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

func (*ConversionsBatchinsertCall)Context

Context sets the context to be used in this call's Do method.

func (*ConversionsBatchinsertCall)Do

Do executes the "dfareporting.conversions.batchinsert" call.Any non-2xx status code is an error. Response headers are in either*ConversionsBatchInsertResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ConversionsBatchinsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ConversionsBatchinsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeConversionsBatchupdateCall

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

func (*ConversionsBatchupdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ConversionsBatchupdateCall)Do

Do executes the "dfareporting.conversions.batchupdate" call.Any non-2xx status code is an error. Response headers are in either*ConversionsBatchUpdateResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ConversionsBatchupdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ConversionsBatchupdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeConversionsService

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

funcNewConversionsService

func NewConversionsService(s *Service) *ConversionsService

func (*ConversionsService)Batchinsert

func (r *ConversionsService) Batchinsert(profileIdint64, conversionsbatchinsertrequest *ConversionsBatchInsertRequest) *ConversionsBatchinsertCall

Batchinsert: Inserts conversions.

- profileId: User profile ID associated with this request.

func (*ConversionsService)Batchupdate

func (r *ConversionsService) Batchupdate(profileIdint64, conversionsbatchupdaterequest *ConversionsBatchUpdateRequest) *ConversionsBatchupdateCall

Batchupdate: Updates existing conversions.

- profileId: User profile ID associated with this request.

typeCountriesGetCall

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

func (*CountriesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*CountriesGetCall)Do

Do executes the "dfareporting.countries.get" call.Any non-2xx status code is an error. Response headers are in either*Country.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CountriesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CountriesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CountriesGetCall)IfNoneMatch

func (c *CountriesGetCall) IfNoneMatch(entityTagstring) *CountriesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCountriesListCall

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

func (*CountriesListCall)Context

Context sets the context to be used in this call's Do method.

func (*CountriesListCall)Do

Do executes the "dfareporting.countries.list" call.Any non-2xx status code is an error. Response headers are in either*CountriesListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CountriesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CountriesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CountriesListCall)IfNoneMatch

func (c *CountriesListCall) IfNoneMatch(entityTagstring) *CountriesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCountriesListResponse

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".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Countries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Countries") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CountriesListResponse: Country List Response

func (CountriesListResponse)MarshalJSON

func (sCountriesListResponse) MarshalJSON() ([]byte,error)

typeCountriesService

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

funcNewCountriesService

func NewCountriesService(s *Service) *CountriesService

func (*CountriesService)Get

func (r *CountriesService) Get(profileIdint64, dartIdint64) *CountriesGetCall

Get: Gets one country by ID.

- dartId: Country DART ID.- profileId: User profile ID associated with this request.

func (*CountriesService)List

func (r *CountriesService) List(profileIdint64) *CountriesListCall

List: Retrieves a list of countries.

- profileId: User profile ID associated with this request.

typeCountry

type Country struct {// CountryCode: Country code.CountryCodestring `json:"countryCode,omitempty"`// DartId: DART ID of this country. This is the ID used for targeting and// generating reports.DartIdint64 `json:"dartId,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#country".Kindstring `json:"kind,omitempty"`// Name: Name of this country.Namestring `json:"name,omitempty"`// SslEnabled: Whether ad serving supports secure servers in this country.SslEnabledbool `json:"sslEnabled,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CountryCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Country: Contains information about a country that can be targeted by ads.

func (Country)MarshalJSON

func (sCountry) MarshalJSON() ([]byte,error)

typeCreative

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.AccountIdint64 `json:"accountId,omitempty,string"`// Active: Whether the creative is active. Applicable to all creative types.Activebool `json:"active,omitempty"`// AdParameters: Ad parameters user for VPAID creative. This is a read-only// field. Applicable to the following creative types: all VPAID.AdParametersstring `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"`// AdditionalSizes: Additional sizes associated with a responsive creative.// When inserting or updating a creative either the size ID field or size width// and height fields can be used. Applicable to DISPLAY creatives when the// primary asset type is HTML_IMAGE.AdditionalSizes []*Size `json:"additionalSizes,omitempty"`// AdvertiserId: Required. Advertiser ID of this creative. This is a required// field. Applicable to all creative types.AdvertiserIdint64 `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.AllowScriptAccessbool `json:"allowScriptAccess,omitempty"`// Archived: Whether the creative is archived. Applicable to all creative// types.Archivedbool `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.//// Possible values://   "ARTWORK_TYPE_FLASH" - The creative is a Flash creative.//   "ARTWORK_TYPE_HTML5" - The creative is HTML5.//   "ARTWORK_TYPE_MIXED" - The creative is HTML5 if available, Flash// otherwise.//   "ARTWORK_TYPE_IMAGE" - The creative is Image.ArtworkTypestring `json:"artworkType,omitempty"`// AuthoringSource: Source application where creative was authored. Presently,// only DBM authored creatives will have this field set. Applicable to all// creative types.//// Possible values://   "CREATIVE_AUTHORING_SOURCE_DCM" - DCM-UI or external API used to author// the creative.//   "CREATIVE_AUTHORING_SOURCE_DBM" - DBM-UI used to author the creative.//   "CREATIVE_AUTHORING_SOURCE_STUDIO" - Studio-UI used to author the// creative.//   "CREATIVE_AUTHORING_SOURCE_GWD" - Google Web Designer used to author the// creative.//   "CREATIVE_AUTHORING_SOURCE_ACS" - ACS-UI used to author the creative.//   "CREATIVE_AUTHORING_SOURCE_ADOBE" - Creative authoring source is Adobe.//   "CREATIVE_AUTHORING_SOURCE_TYPEFACE_AI" - Creative authoring source is// Typeface.ai.//   "CREATIVE_AUTHORING_SOURCE_REMBRAND" - Creative authoring source is// Rembrand.//   "CREATIVE_AUTHORING_SOURCE_TRACKTO_STUDIO" - Creative authoring source is// Trackto.//   "CREATIVE_AUTHORING_SOURCE_BORNLOGIC" - Creative authoring source is// Bornlogic.AuthoringSourcestring `json:"authoringSource,omitempty"`// AuthoringTool: Authoring tool for HTML5 banner creatives. This is a// read-only field. Applicable to the following creative types: HTML5_BANNER.//// Possible values://   "NINJA"//   "SWIFFY"AuthoringToolstring `json:"authoringTool,omitempty"`// AutoAdvanceImages: Whether images are automatically advanced for image// gallery creatives. Applicable to the following creative types:// DISPLAY_IMAGE_GALLERY.AutoAdvanceImagesbool `json:"autoAdvanceImages,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.BackgroundColorstring `json:"backgroundColor,omitempty"`// BackupImageClickThroughUrl: Click-through URL for backup image. Applicable// to ENHANCED_BANNER when the primary asset type is not HTML_IMAGE.BackupImageClickThroughUrl *CreativeClickThroughUrl `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 Campaign Manager 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: HTML5_BANNER. Applicable to DISPLAY when// the primary asset type is not HTML_IMAGE.//// Possible values://   "CSS_FONT_FACE"//   "CSS_BACKGROUND_SIZE"//   "CSS_BORDER_IMAGE"//   "CSS_BORDER_RADIUS"//   "CSS_BOX_SHADOW"//   "CSS_FLEX_BOX"//   "CSS_HSLA"//   "CSS_MULTIPLE_BGS"//   "CSS_OPACITY"//   "CSS_RGBA"//   "CSS_TEXT_SHADOW"//   "CSS_ANIMATIONS"//   "CSS_COLUMNS"//   "CSS_GENERATED_CONTENT"//   "CSS_GRADIENTS"//   "CSS_REFLECTIONS"//   "CSS_TRANSFORMS"//   "CSS_TRANSFORMS3D"//   "CSS_TRANSITIONS"//   "APPLICATION_CACHE"//   "CANVAS"//   "CANVAS_TEXT"//   "DRAG_AND_DROP"//   "HASH_CHANGE"//   "HISTORY"//   "AUDIO"//   "VIDEO"//   "INDEXED_DB"//   "INPUT_ATTR_AUTOCOMPLETE"//   "INPUT_ATTR_AUTOFOCUS"//   "INPUT_ATTR_LIST"//   "INPUT_ATTR_PLACEHOLDER"//   "INPUT_ATTR_MAX"//   "INPUT_ATTR_MIN"//   "INPUT_ATTR_MULTIPLE"//   "INPUT_ATTR_PATTERN"//   "INPUT_ATTR_REQUIRED"//   "INPUT_ATTR_STEP"//   "INPUT_TYPE_SEARCH"//   "INPUT_TYPE_TEL"//   "INPUT_TYPE_URL"//   "INPUT_TYPE_EMAIL"//   "INPUT_TYPE_DATETIME"//   "INPUT_TYPE_DATE"//   "INPUT_TYPE_MONTH"//   "INPUT_TYPE_WEEK"//   "INPUT_TYPE_TIME"//   "INPUT_TYPE_DATETIME_LOCAL"//   "INPUT_TYPE_NUMBER"//   "INPUT_TYPE_RANGE"//   "INPUT_TYPE_COLOR"//   "LOCAL_STORAGE"//   "POST_MESSAGE" - POST_MESSAGE always required due to html5 implementation.//   "SESSION_STORAGE"//   "WEB_SOCKETS"//   "WEB_SQL_DATABASE"//   "WEB_WORKERS"//   "GEO_LOCATION"//   "INLINE_SVG"//   "SMIL"//   "SVG_HREF"//   "SVG_CLIP_PATHS"//   "TOUCH"//   "WEBGL"//   "SVG_FILTERS"//   "SVG_FE_IMAGE"BackupImageFeatures []string `json:"backupImageFeatures,omitempty"`// BackupImageReportingLabel: Reporting label used for HTML5 banner backup// image. Applicable to the following creative types: DISPLAY when the primary// asset type is not HTML_IMAGE.BackupImageReportingLabelstring `json:"backupImageReportingLabel,omitempty"`// BackupImageTargetWindow: Target window for backup image. Applicable to the// following creative types: FLASH_INPAGE and HTML5_BANNER. Applicable to// DISPLAY when the primary asset type is not HTML_IMAGE.BackupImageTargetWindow *TargetWindow `json:"backupImageTargetWindow,omitempty"`// ClickTags: Click tags of the creative. For DISPLAY, 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 DISPLAY_IMAGE_GALLERY 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: DISPLAY_IMAGE_GALLERY,// FLASH_INPAGE, HTML5_BANNER. Applicable to DISPLAY when the primary asset// type is not HTML_IMAGE.ClickTags []*ClickTag `json:"clickTags,omitempty"`// CommercialId: Industry standard ID assigned to creative for reach and// frequency. Applicable to INSTREAM_VIDEO_REDIRECT creatives.CommercialIdstring `json:"commercialId,omitempty"`// CompanionCreatives: List of companion creatives assigned to an in-Stream// video creative. Acceptable values include IDs of existing flash and image// creatives. Applicable to the following creative types: all VPAID, all// INSTREAM_AUDIO and all INSTREAM_VIDEO with dynamicAssetSelection set to// false.CompanionCreativesgoogleapi.Int64s `json:"companionCreatives,omitempty"`// Compatibility: Compatibilities associated with this creative. This is a// read-only field. DISPLAY and DISPLAY_INTERSTITIAL refer to rendering either// on desktop or on mobile devices or in mobile apps for regular or// interstitial ads, respectively. APP and APP_INTERSTITIAL are for rendering// in mobile apps. Only pre-existing creatives may have these compatibilities// since new creatives will either be assigned DISPLAY or DISPLAY_INTERSTITIAL// instead. IN_STREAM_VIDEO refers to rendering in in-stream video ads// developed with the VAST standard. IN_STREAM_AUDIO refers to rendering in// in-stream audio ads developed with the VAST standard. Applicable to all// creative types. Acceptable values are: - "APP" - "APP_INTERSTITIAL" -// "IN_STREAM_VIDEO" - "IN_STREAM_AUDIO" - "DISPLAY" - "DISPLAY_INTERSTITIAL"//// Possible values://   "DISPLAY"//   "DISPLAY_INTERSTITIAL"//   "APP" - Deprecated enum value. No longer supported.//   "APP_INTERSTITIAL" - Deprecated enum value. No longer supported.//   "IN_STREAM_VIDEO"//   "IN_STREAM_AUDIO"Compatibility []string `json:"compatibility,omitempty"`// ConvertFlashToHtml5: Whether Flash assets associated with the creative need// to be automatically converted to HTML5. This flag is enabled by default and// users can choose to disable it if they don't want the system to generate and// use HTML5 asset for this creative. Applicable to the following creative// type: FLASH_INPAGE. Applicable to DISPLAY when the primary asset type is not// HTML_IMAGE.ConvertFlashToHtml5bool `json:"convertFlashToHtml5,omitempty"`// CounterCustomEvents: List of counter events configured for the creative. For// DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from// clickTags. Applicable to the following creative types:// DISPLAY_IMAGE_GALLERY, 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 REDIRECTCreativeAssets []*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. For// DISPLAY and DISPLAY_IMAGE_GALLERY creatives, these are read-only and// auto-generated from clickTags, For DISPLAY, an event is also created from// the backupImageReportingLabel. Applicable to the following creative types:// DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY// when the primary asset type is not HTML_IMAGE.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 true. Applicable to// the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER,// and all RICH_MEDIA.HtmlCodestring `json:"htmlCode,omitempty"`// HtmlCodeLocked: Whether HTML code is generated by Campaign Manager or// manually entered. Set to true to ignore changes to htmlCode. Applicable to// the following creative types: FLASH_INPAGE and HTML5_BANNER.HtmlCodeLockedbool `json:"htmlCodeLocked,omitempty"`// Id: ID of this creative. This is a read-only, auto-generated field.// Applicable to all creative types.Idint64 `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".Kindstring `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.LatestTraffickedCreativeIdint64 `json:"latestTraffickedCreativeId,omitempty,string"`// MediaDescription: Description of the audio or video ad. Applicable to the// following creative types: all INSTREAM_VIDEO, INSTREAM_AUDIO, and all VPAID.MediaDescriptionstring `json:"mediaDescription,omitempty"`// MediaDuration: Creative audio or video duration in seconds. This is a// read-only field. Applicable to the following creative types: INSTREAM_VIDEO,// INSTREAM_AUDIO, all RICH_MEDIA, and all VPAID.MediaDurationfloat64 `json:"mediaDuration,omitempty"`// Name: Required. Name of the creative. This must be less than 256 characters// long. Applicable to all creative types.Namestring `json:"name,omitempty"`// ObaIcon: Online behavioral advertising icon to be added to the creative.// Applicable to the following creative types: all INSTREAM_VIDEO.ObaIcon *ObaIcon `json:"obaIcon,omitempty"`// OverrideCss: Override CSS value for rich media creatives. Applicable to the// following creative types: all RICH_MEDIA.OverrideCssstring `json:"overrideCss,omitempty"`// ProgressOffset: Amount of time to play the video before counting a view.// Applicable to the following creative types: all INSTREAM_VIDEO.ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`// RedirectUrl: URL of hosted image or hosted video or another ad tag. For// INSTREAM_VIDEO_REDIRECT creatives this is the in-stream video redirect URL.// The standard for a VAST (Video Ad Serving Template) ad response allows for a// redirect link to another VAST 2.0 or 3.0 call. This is a required field when// applicable. Applicable to the following creative types: DISPLAY_REDIRECT,// INTERNAL_REDIRECT, INTERSTITIAL_INTERNAL_REDIRECT, and// INSTREAM_VIDEO_REDIRECTRedirectUrlstring `json:"redirectUrl,omitempty"`// RenderingId: ID of current rendering version. This is a read-only field.// Applicable to all creative types.RenderingIdint64 `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.RequiredFlashPluginVersionstring `json:"requiredFlashPluginVersion,omitempty"`// RequiredFlashVersion: The internal Flash version for this creative as// calculated by Studio. This is a read-only field. Applicable to the following// creative types: FLASH_INPAGE all RICH_MEDIA, and all VPAID. Applicable to// DISPLAY when the primary asset type is not HTML_IMAGE.RequiredFlashVersionint64 `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,// FLASH_INPAGE creatives, and for DISPLAY creatives with a primary asset of// type HTML_IMAGE, if left blank, this field will be automatically set using// the actual size of the associated image assets. Applicable to the following// creative types: DISPLAY, DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER,// IMAGE, and all RICH_MEDIA.Size *Size `json:"size,omitempty"`// SkipOffset: Amount of time to play the video before the skip button appears.// Applicable to the following creative types: all INSTREAM_VIDEO.SkipOffset *VideoOffset `json:"skipOffset,omitempty"`// Skippable: Whether the user can choose to skip the creative. Applicable to// the following creative types: all INSTREAM_VIDEO and all VPAID.Skippablebool `json:"skippable,omitempty"`// SslCompliant: Whether the creative is SSL-compliant. This is a read-only// field. Applicable to all creative types.SslCompliantbool `json:"sslCompliant,omitempty"`// SslOverride: Whether creative should be treated as SSL compliant even if the// system scan shows it's not. Applicable to all creative types.SslOverridebool `json:"sslOverride,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.StudioAdvertiserIdint64 `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.StudioCreativeIdint64 `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.StudioTraffickedCreativeIdint64 `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.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ThirdPartyBackupImageImpressionsUrl: Third-party URL used to record backup// image impressions. Applicable to the following creative types: all// RICH_MEDIA.ThirdPartyBackupImageImpressionsUrlstring `json:"thirdPartyBackupImageImpressionsUrl,omitempty"`// ThirdPartyRichMediaImpressionsUrl: Third-party URL used to record rich media// impressions. Applicable to the following creative types: all RICH_MEDIA.ThirdPartyRichMediaImpressionsUrlstring `json:"thirdPartyRichMediaImpressionsUrl,omitempty"`// ThirdPartyUrls: Third-party URLs for tracking in-stream creative events.// Applicable to the following creative types: all INSTREAM_VIDEO, all// INSTREAM_AUDIO, and all VPAID.ThirdPartyUrls []*ThirdPartyTrackingUrl `json:"thirdPartyUrls,omitempty"`// TimerCustomEvents: List of timer events configured for the creative. For// DISPLAY_IMAGE_GALLERY creatives, these are read-only and auto-generated from// clickTags. Applicable to the following creative types:// DISPLAY_IMAGE_GALLERY, all RICH_MEDIA, and all VPAID. Applicable to DISPLAY// when the primary asset is not HTML_IMAGE.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.TotalFileSizeint64 `json:"totalFileSize,omitempty,string"`// Type: Required. Type of this creative. Applicable to all creative types.// *Note:* FLASH_INPAGE, HTML5_BANNER, and IMAGE are only used for existing// creatives. New creatives should use DISPLAY as a replacement for these// types.//// Possible values://   "IMAGE"//   "DISPLAY_REDIRECT"//   "CUSTOM_DISPLAY"//   "INTERNAL_REDIRECT"//   "CUSTOM_DISPLAY_INTERSTITIAL"//   "INTERSTITIAL_INTERNAL_REDIRECT"//   "TRACKING_TEXT"//   "RICH_MEDIA_DISPLAY_BANNER"//   "RICH_MEDIA_INPAGE_FLOATING"//   "RICH_MEDIA_IM_EXPAND"//   "RICH_MEDIA_DISPLAY_EXPANDING"//   "RICH_MEDIA_DISPLAY_INTERSTITIAL"//   "RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL"//   "RICH_MEDIA_MOBILE_IN_APP"//   "FLASH_INPAGE"//   "INSTREAM_VIDEO"//   "VPAID_LINEAR_VIDEO"//   "VPAID_NON_LINEAR_VIDEO"//   "INSTREAM_VIDEO_REDIRECT"//   "RICH_MEDIA_PEEL_DOWN"//   "HTML5_BANNER"//   "DISPLAY"//   "DISPLAY_IMAGE_GALLERY"//   "BRAND_SAFE_DEFAULT_INSTREAM_VIDEO"//   "INSTREAM_AUDIO"Typestring `json:"type,omitempty"`// UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to the// following creative types: INSTREAM_AUDIO and INSTREAM_VIDEO and VPAID.UniversalAdId *UniversalAdId `json:"universalAdId,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.Versionint64 `json:"version,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Creative: Contains properties of a Creative.

func (Creative)MarshalJSON

func (sCreative) MarshalJSON() ([]byte,error)

func (*Creative)UnmarshalJSON

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

typeCreativeAsset

type CreativeAsset struct {// ActionScript3: Whether ActionScript3 is enabled for the flash asset. This is// a read-only field. Applicable to the following creative type: FLASH_INPAGE.// Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.ActionScript3bool `json:"actionScript3,omitempty"`// Active: Whether the video or audio asset is active. This is a read-only// field for VPAID_NON_LINEAR_VIDEO assets. Applicable to the following// creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and all VPAID.Activebool `json:"active,omitempty"`// AdditionalSizes: Additional sizes associated with this creative asset. HTML5// asset generated by compatible software such as GWD will be able to support// more sizes this creative asset can render.AdditionalSizes []*Size `json:"additionalSizes,omitempty"`// Alignment: Possible alignments for an asset. This is a read-only field.// Applicable to the following creative types:// RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL .//// Possible values://   "ALIGNMENT_TOP"//   "ALIGNMENT_RIGHT"//   "ALIGNMENT_BOTTOM"//   "ALIGNMENT_LEFT"Alignmentstring `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.//// Possible values://   "ARTWORK_TYPE_FLASH" - The creative is a Flash creative.//   "ARTWORK_TYPE_HTML5" - The creative is HTML5.//   "ARTWORK_TYPE_MIXED" - The creative is HTML5 if available, Flash// otherwise.//   "ARTWORK_TYPE_IMAGE" - The creative is Image.ArtworkTypestring `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"`// AudioBitRate: Audio stream bit rate in kbps. This is a read-only field.// Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO// and all VPAID.AudioBitRateint64 `json:"audioBitRate,omitempty"`// AudioSampleRate: Audio sample bit rate in hertz. This is a read-only field.// Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO// and all VPAID.AudioSampleRateint64 `json:"audioSampleRate,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 audio or video asset. This is a read-only// field. Applicable to the following creative types: INSTREAM_AUDIO,// INSTREAM_VIDEO and all VPAID.BitRateint64 `json:"bitRate,omitempty"`// ChildAssetType: Rich media child asset type. This is a read-only field.// Applicable to the following creative types: all VPAID.//// Possible values://   "CHILD_ASSET_TYPE_FLASH" - swf files//   "CHILD_ASSET_TYPE_VIDEO" - flv and any other video files types//   "CHILD_ASSET_TYPE_IMAGE" - image files//   "CHILD_ASSET_TYPE_DATA" - rest of the supported file types .txt, .xml etc.ChildAssetTypestring `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"`// CompanionCreativeIds: List of companion creatives assigned to an in-stream// video creative asset. Acceptable values include IDs of existing flash and// image creatives. Applicable to INSTREAM_VIDEO creative type with// dynamicAssetSelection set to true.CompanionCreativeIdsgoogleapi.Int64s `json:"companionCreativeIds,omitempty"`// CustomStartTimeValue: Custom start time in seconds for making the asset// visible. Applicable to the following creative types: all RICH_MEDIA. Value// must be greater than or equal to 0.CustomStartTimeValueint64 `json:"customStartTimeValue,omitempty"`// DetectedFeatures: List of feature dependencies for the creative asset that// are detected by Campaign Manager. 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: HTML5_BANNER. Applicable to DISPLAY when the// primary asset type is not HTML_IMAGE.//// Possible values://   "CSS_FONT_FACE"//   "CSS_BACKGROUND_SIZE"//   "CSS_BORDER_IMAGE"//   "CSS_BORDER_RADIUS"//   "CSS_BOX_SHADOW"//   "CSS_FLEX_BOX"//   "CSS_HSLA"//   "CSS_MULTIPLE_BGS"//   "CSS_OPACITY"//   "CSS_RGBA"//   "CSS_TEXT_SHADOW"//   "CSS_ANIMATIONS"//   "CSS_COLUMNS"//   "CSS_GENERATED_CONTENT"//   "CSS_GRADIENTS"//   "CSS_REFLECTIONS"//   "CSS_TRANSFORMS"//   "CSS_TRANSFORMS3D"//   "CSS_TRANSITIONS"//   "APPLICATION_CACHE"//   "CANVAS"//   "CANVAS_TEXT"//   "DRAG_AND_DROP"//   "HASH_CHANGE"//   "HISTORY"//   "AUDIO"//   "VIDEO"//   "INDEXED_DB"//   "INPUT_ATTR_AUTOCOMPLETE"//   "INPUT_ATTR_AUTOFOCUS"//   "INPUT_ATTR_LIST"//   "INPUT_ATTR_PLACEHOLDER"//   "INPUT_ATTR_MAX"//   "INPUT_ATTR_MIN"//   "INPUT_ATTR_MULTIPLE"//   "INPUT_ATTR_PATTERN"//   "INPUT_ATTR_REQUIRED"//   "INPUT_ATTR_STEP"//   "INPUT_TYPE_SEARCH"//   "INPUT_TYPE_TEL"//   "INPUT_TYPE_URL"//   "INPUT_TYPE_EMAIL"//   "INPUT_TYPE_DATETIME"//   "INPUT_TYPE_DATE"//   "INPUT_TYPE_MONTH"//   "INPUT_TYPE_WEEK"//   "INPUT_TYPE_TIME"//   "INPUT_TYPE_DATETIME_LOCAL"//   "INPUT_TYPE_NUMBER"//   "INPUT_TYPE_RANGE"//   "INPUT_TYPE_COLOR"//   "LOCAL_STORAGE"//   "POST_MESSAGE" - POST_MESSAGE always required due to html5 implementation.//   "SESSION_STORAGE"//   "WEB_SOCKETS"//   "WEB_SQL_DATABASE"//   "WEB_WORKERS"//   "GEO_LOCATION"//   "INLINE_SVG"//   "SMIL"//   "SVG_HREF"//   "SVG_CLIP_PATHS"//   "TOUCH"//   "WEBGL"//   "SVG_FILTERS"//   "SVG_FE_IMAGE"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.//// Possible values://   "ASSET_DISPLAY_TYPE_INPAGE" - Asset exists in a box and stays within the// box.//   "ASSET_DISPLAY_TYPE_FLOATING" - Asset exists at a self described location// on the page.//   "ASSET_DISPLAY_TYPE_OVERLAY" - Special display type for IM clients.//   "ASSET_DISPLAY_TYPE_EXPANDING" - Asset changes size.//   "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH" - Not applicable for HTML5.//   "ASSET_DISPLAY_TYPE_FLASH_IN_FLASH_EXPANDING" - Not applicable for HTML5.//   "ASSET_DISPLAY_TYPE_PEEL_DOWN" - Asset sits on the top right and expands.//   "ASSET_DISPLAY_TYPE_VPAID_LINEAR" - VPAID linear asset.//   "ASSET_DISPLAY_TYPE_VPAID_NON_LINEAR" - VPAID non linear asset.//   "ASSET_DISPLAY_TYPE_BACKDROP" - Backdrop (skin) asset.DisplayTypestring `json:"displayType,omitempty"`// Duration: Duration in seconds for which an asset will be displayed.// Applicable to the following creative types: INSTREAM_AUDIO, INSTREAM_VIDEO// and VPAID_LINEAR_VIDEO. Value must be greater than or equal to 1.Durationint64 `json:"duration,omitempty"`// DurationType: Duration type for which an asset will be displayed. Applicable// to the following creative types: all RICH_MEDIA.//// Possible values://   "ASSET_DURATION_TYPE_AUTO" - Asset is displayed for the single run of the// time line.//   "ASSET_DURATION_TYPE_NONE" - Asset is displayed indefinitely and it loops// on the timeline.//   "ASSET_DURATION_TYPE_CUSTOM" - User entered duration value in seconds.DurationTypestring `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.FileSizeint64 `json:"fileSize,omitempty,string"`// FlashVersion: Flash version of the asset. This is a read-only field.// Applicable to the following creative types: FLASH_INPAGE, all RICH_MEDIA,// and all VPAID. Applicable to DISPLAY when the primary asset type is not// HTML_IMAGE.FlashVersionint64 `json:"flashVersion,omitempty"`// FrameRate: Video frame rate for video asset in frames per second. This is a// read-only field. Applicable to the following creative types: INSTREAM_VIDEO// and all VPAID.FrameRatefloat64 `json:"frameRate,omitempty"`// HideFlashObjects: Whether to hide Flash objects flag for an asset.// Applicable to the following creative types: all RICH_MEDIA.HideFlashObjectsbool `json:"hideFlashObjects,omitempty"`// HideSelectionBoxes: Whether to hide selection boxes flag for an asset.// Applicable to the following creative types: all RICH_MEDIA.HideSelectionBoxesbool `json:"hideSelectionBoxes,omitempty"`// HorizontallyLocked: Whether the asset is horizontally locked. This is a// read-only field. Applicable to the following creative types: all RICH_MEDIA.HorizontallyLockedbool `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.Idint64 `json:"id,omitempty,string"`// IdDimensionValue: Dimension value for the ID of the asset. This is a// read-only, auto-generated field.IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`// MediaDuration: Detected duration for audio or video asset. This is a// read-only field. Applicable to the following creative types: INSTREAM_AUDIO,// INSTREAM_VIDEO and all VPAID.MediaDurationfloat64 `json:"mediaDuration,omitempty"`// MimeType: Detected MIME type for audio or video asset. This is a read-only// field. Applicable to the following creative types: INSTREAM_AUDIO,// INSTREAM_VIDEO and all VPAID.MimeTypestring `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"`// Orientation: Orientation of video asset. This is a read-only, auto-generated// field.//// Possible values://   "LANDSCAPE"//   "PORTRAIT"//   "SQUARE"Orientationstring `json:"orientation,omitempty"`// OriginalBackup: Whether the backup asset is original or changed by the user// in Campaign Manager. Applicable to the following creative types: all// RICH_MEDIA.OriginalBackupbool `json:"originalBackup,omitempty"`// PoliteLoad: Whether this asset is used as a polite load asset.PoliteLoadbool `json:"politeLoad,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.//// Possible values://   "OFFSET_UNIT_PIXEL" - Pixels on a screen.//   "OFFSET_UNIT_PERCENT" - Percent offset for center asset (rather than top// and left).//   "OFFSET_UNIT_PIXEL_FROM_CENTER" - Pixel offset for center of asset from// center of browser window.PositionLeftUnitstring `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.//// Possible values://   "OFFSET_UNIT_PIXEL" - Pixels on a screen.//   "OFFSET_UNIT_PERCENT" - Percent offset for center asset (rather than top// and left).//   "OFFSET_UNIT_PIXEL_FROM_CENTER" - Pixel offset for center of asset from// center of browser window.PositionTopUnitstring `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.ProgressiveServingUrlstring `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.Pushdownbool `json:"pushdown,omitempty"`// PushdownDuration: Pushdown duration in seconds for an asset. 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. Acceptable values are 0 to 9.99, inclusive.PushdownDurationfloat64 `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 DISPLAY, FLASH_INPAGE, HTML5_BANNER, IMAGE,// DISPLAY_IMAGE_GALLERY, all RICH_MEDIA (which may contain multiple primary// assets), and all VPAID creatives. BACKUP_IMAGE applies to FLASH_INPAGE,// HTML5_BANNER, all RICH_MEDIA, and all VPAID creatives. Applicable to DISPLAY// when the primary asset type is not HTML_IMAGE. ADDITIONAL_IMAGE and// ADDITIONAL_FLASH apply to FLASH_INPAGE creatives. OTHER refers to assets// from sources other than Campaign Manager, such as Studio uploaded assets,// applicable to all RICH_MEDIA and all VPAID creatives. PARENT_VIDEO refers to// videos uploaded by the user in Campaign Manager and is applicable to// INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives. TRANSCODED_VIDEO refers to// videos transcoded by Campaign Manager from PARENT_VIDEO assets and is// applicable to INSTREAM_VIDEO and VPAID_LINEAR_VIDEO creatives.// ALTERNATE_VIDEO refers to the Campaign Manager representation of child asset// videos from Studio, and is applicable to VPAID_LINEAR_VIDEO creatives. These// cannot be added or removed within Campaign Manager. For VPAID_LINEAR_VIDEO// 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_VIDEO creative. PARENT_AUDIO refers to audios// uploaded by the user in Campaign Manager and is applicable to INSTREAM_AUDIO// creatives. TRANSCODED_AUDIO refers to audios transcoded by Campaign Manager// from PARENT_AUDIO assets and is applicable to INSTREAM_AUDIO creatives.//// Possible values://   "PRIMARY"//   "BACKUP_IMAGE"//   "ADDITIONAL_IMAGE"//   "ADDITIONAL_FLASH"//   "PARENT_VIDEO"//   "TRANSCODED_VIDEO"//   "OTHER"//   "ALTERNATE_VIDEO"//   "PARENT_AUDIO"//   "TRANSCODED_AUDIO"Rolestring `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:// DISPLAY_IMAGE_GALLERY, FLASH_INPAGE, HTML5_BANNER, IMAGE, and all// RICH_MEDIA. Applicable to DISPLAY when the primary asset type is not// HTML_IMAGE.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.SslCompliantbool `json:"sslCompliant,omitempty"`// StartTimeType: Initial wait time type before making the asset visible.// Applicable to the following creative types: all RICH_MEDIA.//// Possible values://   "ASSET_START_TIME_TYPE_NONE" - Asset is not automatically displayed.//   "ASSET_START_TIME_TYPE_CUSTOM" - Asset is automatically displayed after a// fixed period of time.StartTimeTypestring `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.StreamingServingUrlstring `json:"streamingServingUrl,omitempty"`// Transparency: Whether the asset is transparent. Applicable to the following// creative types: all RICH_MEDIA. Additionally, only applicable to HTML5// assets.Transparencybool `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.VerticallyLockedbool `json:"verticallyLocked,omitempty"`// WindowMode: Window mode options for flash assets. Applicable to the// following creative types: FLASH_INPAGE, RICH_MEDIA_DISPLAY_EXPANDING,// RICH_MEDIA_IM_EXPAND, RICH_MEDIA_DISPLAY_BANNER, and// RICH_MEDIA_INPAGE_FLOATING.//// Possible values://   "OPAQUE" - Allows overlapping of Html and SWF content.//   "WINDOW" - Default//   "TRANSPARENT" - Used for non-square borders. Allows overlapping of Html// and SWF content.WindowModestring `json:"windowMode,omitempty"`// ZIndex: zIndex value of an asset. 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. Acceptable values are -999999999 to 999999999,// inclusive.ZIndexint64 `json:"zIndex,omitempty"`// ZipFilename: File name of zip file. This is a read-only field. Applicable to// the following creative types: HTML5_BANNER.ZipFilenamestring `json:"zipFilename,omitempty"`// ZipFilesize: Size of zip file. This is a read-only field. Applicable to the// following creative types: HTML5_BANNER.ZipFilesizestring `json:"zipFilesize,omitempty"`// ForceSendFields is a list of field names (e.g. "ActionScript3") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActionScript3") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeAsset: Creative Asset.

func (CreativeAsset)MarshalJSON

func (sCreativeAsset) MarshalJSON() ([]byte,error)

func (*CreativeAsset)UnmarshalJSON

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

typeCreativeAssetId

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.Namestring `json:"name,omitempty"`// Type: Type of asset to upload. This is a required field. FLASH and IMAGE are// no longer supported for new uploads. All image assets should use HTML_IMAGE.//// Possible values://   "IMAGE"//   "FLASH"//   "VIDEO"//   "HTML"//   "HTML_IMAGE"//   "AUDIO"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeAssetId: Creative Asset ID.

func (CreativeAssetId)MarshalJSON

func (sCreativeAssetId) MarshalJSON() ([]byte,error)

typeCreativeAssetMetadata

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. This field is empty for a rich media asset.ClickTags []*ClickTag `json:"clickTags,omitempty"`// CounterCustomEvents: List of counter events configured for the asset. This// is a read-only, auto-generated field and only applicable to a rich media// asset.CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"`// DetectedFeatures: List of feature dependencies for the creative asset that// are detected by Campaign Manager. 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.//// Possible values://   "CSS_FONT_FACE"//   "CSS_BACKGROUND_SIZE"//   "CSS_BORDER_IMAGE"//   "CSS_BORDER_RADIUS"//   "CSS_BOX_SHADOW"//   "CSS_FLEX_BOX"//   "CSS_HSLA"//   "CSS_MULTIPLE_BGS"//   "CSS_OPACITY"//   "CSS_RGBA"//   "CSS_TEXT_SHADOW"//   "CSS_ANIMATIONS"//   "CSS_COLUMNS"//   "CSS_GENERATED_CONTENT"//   "CSS_GRADIENTS"//   "CSS_REFLECTIONS"//   "CSS_TRANSFORMS"//   "CSS_TRANSFORMS3D"//   "CSS_TRANSITIONS"//   "APPLICATION_CACHE"//   "CANVAS"//   "CANVAS_TEXT"//   "DRAG_AND_DROP"//   "HASH_CHANGE"//   "HISTORY"//   "AUDIO"//   "VIDEO"//   "INDEXED_DB"//   "INPUT_ATTR_AUTOCOMPLETE"//   "INPUT_ATTR_AUTOFOCUS"//   "INPUT_ATTR_LIST"//   "INPUT_ATTR_PLACEHOLDER"//   "INPUT_ATTR_MAX"//   "INPUT_ATTR_MIN"//   "INPUT_ATTR_MULTIPLE"//   "INPUT_ATTR_PATTERN"//   "INPUT_ATTR_REQUIRED"//   "INPUT_ATTR_STEP"//   "INPUT_TYPE_SEARCH"//   "INPUT_TYPE_TEL"//   "INPUT_TYPE_URL"//   "INPUT_TYPE_EMAIL"//   "INPUT_TYPE_DATETIME"//   "INPUT_TYPE_DATE"//   "INPUT_TYPE_MONTH"//   "INPUT_TYPE_WEEK"//   "INPUT_TYPE_TIME"//   "INPUT_TYPE_DATETIME_LOCAL"//   "INPUT_TYPE_NUMBER"//   "INPUT_TYPE_RANGE"//   "INPUT_TYPE_COLOR"//   "LOCAL_STORAGE"//   "POST_MESSAGE" - POST_MESSAGE always required due to html5 implementation.//   "SESSION_STORAGE"//   "WEB_SOCKETS"//   "WEB_SQL_DATABASE"//   "WEB_WORKERS"//   "GEO_LOCATION"//   "INLINE_SVG"//   "SMIL"//   "SVG_HREF"//   "SVG_CLIP_PATHS"//   "TOUCH"//   "WEBGL"//   "SVG_FILTERS"//   "SVG_FE_IMAGE"DetectedFeatures []string `json:"detectedFeatures,omitempty"`// ExitCustomEvents: List of exit events configured for the asset. This is a// read-only, auto-generated field and only applicable to a rich media asset.ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"`// Id: Numeric ID of the asset. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// IdDimensionValue: Dimension value for the numeric ID of the asset. 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#creativeAssetMetadata".Kindstring `json:"kind,omitempty"`// RichMedia: True if the uploaded asset is a rich media asset. This is a// read-only, auto-generated field.RichMediabool `json:"richMedia,omitempty"`// TimerCustomEvents: List of timer events configured for the asset. This is a// read-only, auto-generated field and only applicable to a rich media asset.TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"`// WarnedValidationRules: Rules validated during code generation that generated// a warning. This is a read-only, auto-generated field. Possible values are: -// "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" -// "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" -// "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL"// - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" -// "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" -// "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" -// "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" -// "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" -// "SVG_INVALID" - "ZIP_INVALID"//// Possible values://   "CLICK_TAG_NON_TOP_LEVEL" - Click tag initialization detected but not at// the top level of the primary html file.//   "CLICK_TAG_MISSING" - No click tag detected.//   "CLICK_TAG_MORE_THAN_ONE" - More than one click tag detected.//   "CLICK_TAG_INVALID" - Click tag invalid (failed url validation).//   "ORPHANED_ASSET" - Orphaned asset not referenced.//   "PRIMARY_HTML_MISSING" - Primary html file missing.//   "EXTERNAL_FILE_REFERENCED" - Reference to a third-party resource.//   "MRAID_REFERENCED" - Reference to INAPP MRAID feature.//   "ADMOB_REFERENCED" - Reference to INAPP ADMOB feature.//   "FILE_TYPE_INVALID" - Invalid file type referenced.//   "ZIP_INVALID" - Invalid zip passed in//   "LINKED_FILE_NOT_FOUND" - A relative file was linked to that wasn't// included in zip.//   "MAX_FLASH_VERSION_11" - Max flash version at 11.//   "NOT_SSL_COMPLIANT" - Whether the asset uses secure urls or not.//   "FILE_DETAIL_EMPTY" - File detail empty.//   "ASSET_INVALID" - Asset is not valid and could not be processed.//   "GWD_PROPERTIES_INVALID" - GWD properties are invalid.//   "ENABLER_UNSUPPORTED_METHOD_DCM" - Unsupported Enabler methods in DCM.//   "ASSET_FORMAT_UNSUPPORTED_DCM" - Asset ad format is unsupported in DCM.//   "COMPONENT_UNSUPPORTED_DCM" - Component is unsupported in DCM.//   "HTML5_FEATURE_UNSUPPORTED" - Html5 feature is unsupported.//   "CLICK_TAG_IN_GWD" - Click tag defined in GWD asset. GWD-published// creatives should use exit events instead of defining var clickTag. Defined// var clickTags are a symptom of an unsupported workflow, and an error should// be thrown.//   "CLICK_TAG_HARD_CODED" - Whether the asset has hard coded click tag// url(s).//   "SVG_INVALID" - Whether an SVG block could not be parsed.//   "CLICK_TAG_IN_RICH_MEDIA" - Click tag defined in rich media asset. Rich// media creatives should use exit events instead of defining var clickTag.// Defined var clickTags are a symptom of an unsupported workflow, and an error// should be thrown.//   "MISSING_ENABLER_REFERENCE" - Rich media primary asset is missing the// Enabler reference.WarnedValidationRules []string `json:"warnedValidationRules,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssetIdentifier") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetIdentifier") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeAssetMetadata: CreativeAssets contains properties of a creativeasset file which will be uploaded or has already been uploaded. Refer to thecreative sample code for how to upload assets and insert a creative.

func (CreativeAssetMetadata)MarshalJSON

func (sCreativeAssetMetadata) MarshalJSON() ([]byte,error)

typeCreativeAssetsInsertCall

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

func (*CreativeAssetsInsertCall)Context

Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.

func (*CreativeAssetsInsertCall)Do

Do executes the "dfareporting.creativeAssets.insert" call.Any non-2xx status code is an error. Response headers are in either*CreativeAssetMetadata.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CreativeAssetsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeAssetsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeAssetsInsertCall)Media

Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.

func (*CreativeAssetsInsertCall)ProgressUpdater

ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).

func (*CreativeAssetsInsertCall)ResumableMediadeprecated

ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.

typeCreativeAssetsService

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

funcNewCreativeAssetsService

func NewCreativeAssetsService(s *Service) *CreativeAssetsService

func (*CreativeAssetsService)Insert

func (r *CreativeAssetsService) Insert(profileIdint64, advertiserIdint64, creativeassetmetadata *CreativeAssetMetadata) *CreativeAssetsInsertCall

Insert: Inserts a new creative asset.

- advertiserId: Advertiser ID of this creative. This is a required field.- profileId: User profile ID associated with this request.

typeCreativeAssignment

type CreativeAssignment struct {// Active: Whether this creative assignment is active. When true, the creative// will be included in the ad's rotation.Activebool `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.ApplyEventTagsbool `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.CreativeIdint64 `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"`EndTimestring          `json:"endTime,omitempty"`// RichMediaExitOverrides: Rich media exit overrides for this creative// assignment. Applicable when the creative type is any of the following: -// DISPLAY - 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 - VPAID_LINEAR - VPAID_NON_LINEARRichMediaExitOverrides []*RichMediaExitOverride `json:"richMediaExitOverrides,omitempty"`// Sequence: Sequence number of the creative assignment, applicable when the// rotation type is CREATIVE_ROTATION_TYPE_SEQUENTIAL. Acceptable values are 1// to 65535, inclusive.Sequenceint64 `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.SslCompliantbool   `json:"sslCompliant,omitempty"`StartTimestring `json:"startTime,omitempty"`// Weight: Weight of the creative assignment, applicable when the rotation type// is CREATIVE_ROTATION_TYPE_RANDOM. Value must be greater than or equal to 1.Weightint64 `json:"weight,omitempty"`// ForceSendFields is a list of field names (e.g. "Active") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Active") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeAssignment: Creative Assignment.

func (CreativeAssignment)MarshalJSON

func (sCreativeAssignment) MarshalJSON() ([]byte,error)

typeCreativeClickThroughUrl

type CreativeClickThroughUrl struct {// ComputedClickThroughUrl: Read-only convenience field representing the actual// URL that will be used for this click-through. The URL is computed as// follows: - If landingPageId is specified then that landing page's URL is// assigned to this field. - Otherwise, the customClickThroughUrl is assigned// to this field.ComputedClickThroughUrlstring `json:"computedClickThroughUrl,omitempty"`// CustomClickThroughUrl: Custom click-through URL. Applicable if the// landingPageId field is left unset.CustomClickThroughUrlstring `json:"customClickThroughUrl,omitempty"`// LandingPageId: ID of the landing page for the click-through URL.LandingPageIdint64 `json:"landingPageId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeClickThroughUrl: Click-through URL

func (CreativeClickThroughUrl)MarshalJSON

func (sCreativeClickThroughUrl) MarshalJSON() ([]byte,error)

typeCreativeCustomEvent

type CreativeCustomEvent struct {// AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data// Transfer. This is a read-only field.AdvertiserCustomEventIdint64 `json:"advertiserCustomEventId,omitempty,string"`// AdvertiserCustomEventName: User-entered name for the event.AdvertiserCustomEventNamestring `json:"advertiserCustomEventName,omitempty"`// AdvertiserCustomEventType: Type of the event. This is a read-only field.//// Possible values://   "ADVERTISER_EVENT_TIMER"//   "ADVERTISER_EVENT_EXIT"//   "ADVERTISER_EVENT_COUNTER"AdvertiserCustomEventTypestring `json:"advertiserCustomEventType,omitempty"`// ArtworkLabel: Artwork label column, used to link events in Campaign Manager// back to events in Studio. This is a required field and should not be// modified after insertion.ArtworkLabelstring `json:"artworkLabel,omitempty"`// ArtworkType: Artwork type used by the creative.This is a read-only field.//// Possible values://   "ARTWORK_TYPE_FLASH" - The creative is a Flash creative.//   "ARTWORK_TYPE_HTML5" - The creative is HTML5.//   "ARTWORK_TYPE_MIXED" - The creative is HTML5 if available, Flash// otherwise.//   "ARTWORK_TYPE_IMAGE" - The creative is Image.ArtworkTypestring `json:"artworkType,omitempty"`// ExitClickThroughUrl: Exit click-through URL for the event. This field is// used only for exit events.ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"`// Id: ID of this event. This is a required field and should not be modified// after insertion.Idint64 `json:"id,omitempty,string"`// PopupWindowProperties: Properties for rich media popup windows. This field// is used only for exit events.PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"`// TargetType: Target type used by the event.//// Possible values://   "TARGET_BLANK" - New tab//   "TARGET_TOP" - Current tab//   "TARGET_SELF" - Same frame//   "TARGET_PARENT" - Parent frame//   "TARGET_POPUP" - New window with properties specified in window_propertiesTargetTypestring `json:"targetType,omitempty"`// VideoReportingId: Video reporting ID, used to differentiate multiple videos// in a single creative. This is a read-only field.VideoReportingIdstring `json:"videoReportingId,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeCustomEvent: Creative Custom Event.

func (CreativeCustomEvent)MarshalJSON

func (sCreativeCustomEvent) MarshalJSON() ([]byte,error)

typeCreativeField

type CreativeField struct {// AccountId: Account ID of this creative field. This is a read-only field that// can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AdvertiserId: Advertiser ID of this creative field. This is a required field// on insertion.AdvertiserIdint64 `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.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#creativeField".Kindstring `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.Namestring `json:"name,omitempty"`// SubaccountId: Subaccount ID of this creative field. This is a read-only// field that can be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeField: Contains properties of a creative field.

func (CreativeField)MarshalJSON

func (sCreativeField) MarshalJSON() ([]byte,error)

typeCreativeFieldAssignment

type CreativeFieldAssignment struct {// CreativeFieldId: ID of the creative field.CreativeFieldIdint64 `json:"creativeFieldId,omitempty,string"`// CreativeFieldValueId: ID of the creative field value.CreativeFieldValueIdint64 `json:"creativeFieldValueId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CreativeFieldId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeFieldId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeFieldAssignment: Creative Field Assignment.

func (CreativeFieldAssignment)MarshalJSON

func (sCreativeFieldAssignment) MarshalJSON() ([]byte,error)

typeCreativeFieldValue

type CreativeFieldValue struct {// Id: ID of this creative field value. This is a read-only, auto-generated// field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#creativeFieldValue".Kindstring `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.Valuestring `json:"value,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeFieldValue: Contains properties of a creative field value.

func (CreativeFieldValue)MarshalJSON

func (sCreativeFieldValue) MarshalJSON() ([]byte,error)

typeCreativeFieldValuesDeleteCall

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

func (*CreativeFieldValuesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldValuesDeleteCall)Do

Do executes the "dfareporting.creativeFieldValues.delete" call.

func (*CreativeFieldValuesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldValuesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldValuesGetCall

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

func (*CreativeFieldValuesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldValuesGetCall)Do

Do executes the "dfareporting.creativeFieldValues.get" call.Any non-2xx status code is an error. Response headers are in either*CreativeFieldValue.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CreativeFieldValuesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldValuesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeFieldValuesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCreativeFieldValuesInsertCall

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

func (*CreativeFieldValuesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldValuesInsertCall)Do

Do executes the "dfareporting.creativeFieldValues.insert" call.Any non-2xx status code is an error. Response headers are in either*CreativeFieldValue.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CreativeFieldValuesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldValuesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldValuesListCall

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

func (*CreativeFieldValuesListCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldValuesListCall)Do

Do executes the "dfareporting.creativeFieldValues.list" call.Any non-2xx status code is an error. Response headers are in either*CreativeFieldValuesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*CreativeFieldValuesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldValuesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeFieldValuesListCall)Ids

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

func (*CreativeFieldValuesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CreativeFieldValuesListCall)MaxResults

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

func (*CreativeFieldValuesListCall)PageToken

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

func (*CreativeFieldValuesListCall)Pages

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

func (*CreativeFieldValuesListCall)SearchString

SearchString sets the optional parameter "searchString": Allows searchingfor creative field values by their values. Wildcards (e.g. *) are notallowed.

func (*CreativeFieldValuesListCall)SortField

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

Possible values:

"ID" (default)"VALUE"

func (*CreativeFieldValuesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeCreativeFieldValuesListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreativeFieldValues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeFieldValues") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeFieldValuesListResponse: Creative Field Value List Response

func (CreativeFieldValuesListResponse)MarshalJSON

func (sCreativeFieldValuesListResponse) MarshalJSON() ([]byte,error)

typeCreativeFieldValuesPatchCall

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

func (*CreativeFieldValuesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldValuesPatchCall)Do

Do executes the "dfareporting.creativeFieldValues.patch" call.Any non-2xx status code is an error. Response headers are in either*CreativeFieldValue.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CreativeFieldValuesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldValuesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldValuesService

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

funcNewCreativeFieldValuesService

func NewCreativeFieldValuesService(s *Service) *CreativeFieldValuesService

func (*CreativeFieldValuesService)Delete

func (r *CreativeFieldValuesService) Delete(profileIdint64, creativeFieldIdint64, idint64) *CreativeFieldValuesDeleteCall

Delete: Deletes an existing creative field value.

- creativeFieldId: Creative field ID for this creative field value.- id: Creative Field Value ID.- profileId: User profile ID associated with this request.

func (*CreativeFieldValuesService)Get

func (r *CreativeFieldValuesService) Get(profileIdint64, creativeFieldIdint64, idint64) *CreativeFieldValuesGetCall

Get: Gets one creative field value by ID.

- creativeFieldId: Creative field ID for this creative field value.- id: Creative Field Value ID.- profileId: User profile ID associated with this request.

func (*CreativeFieldValuesService)Insert

func (r *CreativeFieldValuesService) Insert(profileIdint64, creativeFieldIdint64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesInsertCall

Insert: Inserts a new creative field value.

- creativeFieldId: Creative field ID for this creative field value.- profileId: User profile ID associated with this request.

func (*CreativeFieldValuesService)List

func (r *CreativeFieldValuesService) List(profileIdint64, creativeFieldIdint64) *CreativeFieldValuesListCall

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

- creativeFieldId: Creative field ID for this creative field value.- profileId: User profile ID associated with this request.

func (*CreativeFieldValuesService)Patch

func (r *CreativeFieldValuesService) Patch(profileIdint64, creativeFieldIdint64, idint64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesPatchCall

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

- creativeFieldId: CreativeField ID.- id: CreativeFieldValue ID.- profileId: User profile ID associated with this request.

func (*CreativeFieldValuesService)Update

func (r *CreativeFieldValuesService) Update(profileIdint64, creativeFieldIdint64, creativefieldvalue *CreativeFieldValue) *CreativeFieldValuesUpdateCall

Update: Updates an existing creative field value.

- creativeFieldId: Creative field ID for this creative field value.- profileId: User profile ID associated with this request.

typeCreativeFieldValuesUpdateCall

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

func (*CreativeFieldValuesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldValuesUpdateCall)Do

Do executes the "dfareporting.creativeFieldValues.update" call.Any non-2xx status code is an error. Response headers are in either*CreativeFieldValue.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CreativeFieldValuesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldValuesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldsDeleteCall

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

func (*CreativeFieldsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldsDeleteCall)Do

Do executes the "dfareporting.creativeFields.delete" call.

func (*CreativeFieldsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldsGetCall

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

func (*CreativeFieldsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldsGetCall)Do

Do executes the "dfareporting.creativeFields.get" call.Any non-2xx status code is an error. Response headers are in either*CreativeField.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeFieldsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeFieldsGetCall)IfNoneMatch

func (c *CreativeFieldsGetCall) IfNoneMatch(entityTagstring) *CreativeFieldsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCreativeFieldsInsertCall

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

func (*CreativeFieldsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldsInsertCall)Do

Do executes the "dfareporting.creativeFields.insert" call.Any non-2xx status code is an error. Response headers are in either*CreativeField.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeFieldsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldsListCall

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 onlycreative fields that belong to these advertisers.

func (*CreativeFieldsListCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldsListCall)Do

Do executes the "dfareporting.creativeFields.list" call.Any non-2xx status code is an error. Response headers are in either*CreativeFieldsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*CreativeFieldsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeFieldsListCall)Ids

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

func (*CreativeFieldsListCall)IfNoneMatch

func (c *CreativeFieldsListCall) IfNoneMatch(entityTagstring) *CreativeFieldsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CreativeFieldsListCall)MaxResults

func (c *CreativeFieldsListCall) MaxResults(maxResultsint64) *CreativeFieldsListCall

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

func (*CreativeFieldsListCall)PageToken

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

func (*CreativeFieldsListCall)Pages

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

func (*CreativeFieldsListCall)SearchString

func (c *CreativeFieldsListCall) SearchString(searchStringstring) *CreativeFieldsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 atthe 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

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

Possible values:

"ID" (default)"NAME"

func (*CreativeFieldsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeCreativeFieldsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreativeFields") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeFields") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeFieldsListResponse: Creative Field List Response

func (CreativeFieldsListResponse)MarshalJSON

func (sCreativeFieldsListResponse) MarshalJSON() ([]byte,error)

typeCreativeFieldsPatchCall

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

func (*CreativeFieldsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldsPatchCall)Do

Do executes the "dfareporting.creativeFields.patch" call.Any non-2xx status code is an error. Response headers are in either*CreativeField.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeFieldsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeFieldsService

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

funcNewCreativeFieldsService

func NewCreativeFieldsService(s *Service) *CreativeFieldsService

func (*CreativeFieldsService)Delete

Delete: Deletes an existing creative field.

- id: Creative Field ID.- profileId: User profile ID associated with this request.

func (*CreativeFieldsService)Get

Get: Gets one creative field by ID.

- id: Creative Field ID.- profileId: User profile ID associated with this request.

func (*CreativeFieldsService)Insert

func (r *CreativeFieldsService) Insert(profileIdint64, creativefield *CreativeField) *CreativeFieldsInsertCall

Insert: Inserts a new creative field.

- profileId: User profile ID associated with this request.

func (*CreativeFieldsService)List

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

- profileId: User profile ID associated with this request.

func (*CreativeFieldsService)Patch

func (r *CreativeFieldsService) Patch(profileIdint64, idint64, creativefield *CreativeField) *CreativeFieldsPatchCall

Patch: Updates an existing creative field. This method supports patchsemantics.

- id: CreativeField ID.- profileId: User profile ID associated with this request.

func (*CreativeFieldsService)Update

func (r *CreativeFieldsService) Update(profileIdint64, creativefield *CreativeField) *CreativeFieldsUpdateCall

Update: Updates an existing creative field.

- profileId: User profile ID associated with this request.

typeCreativeFieldsUpdateCall

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

func (*CreativeFieldsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeFieldsUpdateCall)Do

Do executes the "dfareporting.creativeFields.update" call.Any non-2xx status code is an error. Response headers are in either*CreativeField.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeFieldsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeFieldsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeGroup

type CreativeGroup struct {// AccountId: Account ID of this creative group. This is a read-only field that// can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AdvertiserId: Advertiser ID of this creative group. This is a required field// on insertion.AdvertiserIdint64 `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// a subgroup 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 to 2, inclusive.GroupNumberint64 `json:"groupNumber,omitempty"`// Id: ID of this creative group. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#creativeGroup".Kindstring `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.Namestring `json:"name,omitempty"`// SubaccountId: Subaccount ID of this creative group. This is a read-only// field that can be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeGroup: Contains properties of a creative group.

func (CreativeGroup)MarshalJSON

func (sCreativeGroup) MarshalJSON() ([]byte,error)

typeCreativeGroupAssignment

type CreativeGroupAssignment struct {// CreativeGroupId: ID of the creative group to be assigned.CreativeGroupIdint64 `json:"creativeGroupId,omitempty,string"`// CreativeGroupNumber: Creative group number of the creative group assignment.//// Possible values://   "CREATIVE_GROUP_ONE"//   "CREATIVE_GROUP_TWO"CreativeGroupNumberstring `json:"creativeGroupNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "CreativeGroupId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeGroupId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeGroupAssignment: Creative Group Assignment.

func (CreativeGroupAssignment)MarshalJSON

func (sCreativeGroupAssignment) MarshalJSON() ([]byte,error)

typeCreativeGroupsGetCall

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

func (*CreativeGroupsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeGroupsGetCall)Do

Do executes the "dfareporting.creativeGroups.get" call.Any non-2xx status code is an error. Response headers are in either*CreativeGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeGroupsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeGroupsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeGroupsGetCall)IfNoneMatch

func (c *CreativeGroupsGetCall) IfNoneMatch(entityTagstring) *CreativeGroupsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCreativeGroupsInsertCall

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

func (*CreativeGroupsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeGroupsInsertCall)Do

Do executes the "dfareporting.creativeGroups.insert" call.Any non-2xx status code is an error. Response headers are in either*CreativeGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeGroupsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeGroupsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeGroupsListCall

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 onlycreative groups that belong to these advertisers.

func (*CreativeGroupsListCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeGroupsListCall)Do

Do executes the "dfareporting.creativeGroups.list" call.Any non-2xx status code is an error. Response headers are in either*CreativeGroupsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*CreativeGroupsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeGroupsListCall)GroupNumber

func (c *CreativeGroupsListCall) GroupNumber(groupNumberint64) *CreativeGroupsListCall

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

func (*CreativeGroupsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativeGroupsListCall)Ids

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

func (*CreativeGroupsListCall)IfNoneMatch

func (c *CreativeGroupsListCall) IfNoneMatch(entityTagstring) *CreativeGroupsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CreativeGroupsListCall)MaxResults

func (c *CreativeGroupsListCall) MaxResults(maxResultsint64) *CreativeGroupsListCall

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

func (*CreativeGroupsListCall)PageToken

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

func (*CreativeGroupsListCall)Pages

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

func (*CreativeGroupsListCall)SearchString

func (c *CreativeGroupsListCall) SearchString(searchStringstring) *CreativeGroupsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 atthe 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

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

Possible values:

"ID" (default)"NAME"

func (*CreativeGroupsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeCreativeGroupsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CreativeGroups") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeGroups") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeGroupsListResponse: Creative Group List Response

func (CreativeGroupsListResponse)MarshalJSON

func (sCreativeGroupsListResponse) MarshalJSON() ([]byte,error)

typeCreativeGroupsPatchCall

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

func (*CreativeGroupsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeGroupsPatchCall)Do

Do executes the "dfareporting.creativeGroups.patch" call.Any non-2xx status code is an error. Response headers are in either*CreativeGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeGroupsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeGroupsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeGroupsService

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

funcNewCreativeGroupsService

func NewCreativeGroupsService(s *Service) *CreativeGroupsService

func (*CreativeGroupsService)Get

Get: Gets one creative group by ID.

- id: Creative group ID.- profileId: User profile ID associated with this request.

func (*CreativeGroupsService)Insert

func (r *CreativeGroupsService) Insert(profileIdint64, creativegroup *CreativeGroup) *CreativeGroupsInsertCall

Insert: Inserts a new creative group.

- profileId: User profile ID associated with this request.

func (*CreativeGroupsService)List

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

- profileId: User profile ID associated with this request.

func (*CreativeGroupsService)Patch

func (r *CreativeGroupsService) Patch(profileIdint64, idint64, creativegroup *CreativeGroup) *CreativeGroupsPatchCall

Patch: Updates an existing creative group. This method supports patchsemantics.

- id: Creative Group ID.- profileId: User profile ID associated with this request.

func (*CreativeGroupsService)Update

func (r *CreativeGroupsService) Update(profileIdint64, creativegroup *CreativeGroup) *CreativeGroupsUpdateCall

Update: Updates an existing creative group.

- profileId: User profile ID associated with this request.

typeCreativeGroupsUpdateCall

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

func (*CreativeGroupsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativeGroupsUpdateCall)Do

Do executes the "dfareporting.creativeGroups.update" call.Any non-2xx status code is an error. Response headers are in either*CreativeGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativeGroupsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativeGroupsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativeOptimizationConfiguration

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.Idint64 `json:"id,omitempty,string"`// Name: Name of this creative optimization config. This is a required field// and must be less than 129 characters long.Namestring `json:"name,omitempty"`// OptimizationActivitys: List of optimization activities associated with this// configuration.OptimizationActivitys []*OptimizationActivity `json:"optimizationActivitys,omitempty"`// OptimizationModel: Optimization model for this configuration.//// Possible values://   "CLICK"//   "POST_CLICK"//   "POST_IMPRESSION"//   "POST_CLICK_AND_IMPRESSION"//   "VIDEO_COMPLETION"OptimizationModelstring `json:"optimizationModel,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeOptimizationConfiguration: Creative optimization settings.

func (CreativeOptimizationConfiguration)MarshalJSON

func (sCreativeOptimizationConfiguration) MarshalJSON() ([]byte,error)

typeCreativeRotation

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.CreativeOptimizationConfigurationIdint64 `json:"creativeOptimizationConfigurationId,omitempty,string"`// Type: Type of creative rotation. Can be used to specify whether to use// sequential or random rotation.//// Possible values://   "CREATIVE_ROTATION_TYPE_SEQUENTIAL" - The weights of each creative in the// rotation should be sequential starting at 1. The user may adjust the order.//   "CREATIVE_ROTATION_TYPE_RANDOM" - The weights are calculated according to// the ad's CreativeRoationWeightStrategy.Typestring `json:"type,omitempty"`// WeightCalculationStrategy: Strategy for calculating weights. Used with// CREATIVE_ROTATION_TYPE_RANDOM.//// Possible values://   "WEIGHT_STRATEGY_EQUAL" - The creative weights should all be equal to 1.// This is the default value for all ads with a rotation type of Random.//   "WEIGHT_STRATEGY_CUSTOM" - The creative weights can be any user provided// positive integer.//   "WEIGHT_STRATEGY_HIGHEST_CTR" - The weights will be automatically// calculated giving preference to the creative that has the highest CTR. The// CTR for campaigns that are optimized for clicks = clicks/impressions. The// CTR for campaigns that are optimized for view-through or click through is// sum(activities + floodlight weight)/impressions.//   "WEIGHT_STRATEGY_OPTIMIZED" - The creative weights will be automatically// calculated using a formula that could not possibly be explained in these// comments. The value will be within some predetermined range (probably 0 -// 1,000,000).WeightCalculationStrategystring `json:"weightCalculationStrategy,omitempty"`// ForceSendFields is a list of field names (e.g. "CreativeAssignments") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreativeAssignments") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativeRotation: Creative Rotation.

func (CreativeRotation)MarshalJSON

func (sCreativeRotation) MarshalJSON() ([]byte,error)

typeCreativesGetCall

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

func (*CreativesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativesGetCall)Do

Do executes the "dfareporting.creatives.get" call.Any non-2xx status code is an error. Response headers are in either*Creative.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativesGetCall)IfNoneMatch

func (c *CreativesGetCall) IfNoneMatch(entityTagstring) *CreativesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeCreativesInsertCall

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

func (*CreativesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativesInsertCall)Do

Do executes the "dfareporting.creatives.insert" call.Any non-2xx status code is an error. Response headers are in either*Creative.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativesInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativesListCall

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

func (*CreativesListCall)Active

func (c *CreativesListCall) Active(activebool) *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(advertiserIdint64) *CreativesListCall

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

func (*CreativesListCall)Archived

func (c *CreativesListCall) Archived(archivedbool) *CreativesListCall

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

func (*CreativesListCall)CampaignId

func (c *CreativesListCall) CampaignId(campaignIdint64) *CreativesListCall

CampaignId sets the optional parameter "campaignId": Select only creativeswith 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)Context

Context sets the context to be used in this call's Do method.

func (*CreativesListCall)CreativeFieldIds

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

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

func (*CreativesListCall)Do

Do executes the "dfareporting.creatives.list" call.Any non-2xx status code is an error. Response headers are in either*CreativesListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*CreativesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*CreativesListCall)Ids

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

func (*CreativesListCall)IfNoneMatch

func (c *CreativesListCall) IfNoneMatch(entityTagstring) *CreativesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*CreativesListCall)MaxResults

func (c *CreativesListCall) MaxResults(maxResultsint64) *CreativesListCall

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

func (*CreativesListCall)PageToken

func (c *CreativesListCall) PageToken(pageTokenstring) *CreativesListCall

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

func (*CreativesListCall)Pages

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

func (*CreativesListCall)RenderingIds

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

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

func (*CreativesListCall)SearchString

func (c *CreativesListCall) SearchString(searchStringstring) *CreativesListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 alsoadd wildcards implicitly at the start and the end of the search string. Forexample, a search string of "creative" will match objects with name "mycreative", "creative 2015", or simply "creative".

func (*CreativesListCall)SizeIds

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

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

func (*CreativesListCall)SortField

func (c *CreativesListCall) SortField(sortFieldstring) *CreativesListCall

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

Possible values:

"ID" (default)"NAME"

func (*CreativesListCall)SortOrder

func (c *CreativesListCall) SortOrder(sortOrderstring) *CreativesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*CreativesListCall)StudioCreativeId

func (c *CreativesListCall) StudioCreativeId(studioCreativeIdint64) *CreativesListCall

StudioCreativeId sets the optional parameter "studioCreativeId": Select onlycreatives 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 thesecreative types.

Possible values:

"IMAGE""DISPLAY_REDIRECT""CUSTOM_DISPLAY""INTERNAL_REDIRECT""CUSTOM_DISPLAY_INTERSTITIAL""INTERSTITIAL_INTERNAL_REDIRECT""TRACKING_TEXT""RICH_MEDIA_DISPLAY_BANNER""RICH_MEDIA_INPAGE_FLOATING""RICH_MEDIA_IM_EXPAND""RICH_MEDIA_DISPLAY_EXPANDING""RICH_MEDIA_DISPLAY_INTERSTITIAL""RICH_MEDIA_DISPLAY_MULTI_FLOATING_INTERSTITIAL""RICH_MEDIA_MOBILE_IN_APP""FLASH_INPAGE""INSTREAM_VIDEO""VPAID_LINEAR_VIDEO""VPAID_NON_LINEAR_VIDEO""INSTREAM_VIDEO_REDIRECT""RICH_MEDIA_PEEL_DOWN""HTML5_BANNER""DISPLAY""DISPLAY_IMAGE_GALLERY""BRAND_SAFE_DEFAULT_INSTREAM_VIDEO""INSTREAM_AUDIO"

typeCreativesListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Creatives") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Creatives") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CreativesListResponse: Creative List Response

func (CreativesListResponse)MarshalJSON

func (sCreativesListResponse) MarshalJSON() ([]byte,error)

typeCreativesPatchCall

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

func (*CreativesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativesPatchCall)Do

Do executes the "dfareporting.creatives.patch" call.Any non-2xx status code is an error. Response headers are in either*Creative.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativesPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCreativesService

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

funcNewCreativesService

func NewCreativesService(s *Service) *CreativesService

func (*CreativesService)Get

func (r *CreativesService) Get(profileIdint64, idint64) *CreativesGetCall

Get: Gets one creative by ID.

- id: Creative ID.- profileId: User profile ID associated with this request.

func (*CreativesService)Insert

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

Insert: Inserts a new creative.

- profileId: User profile ID associated with this request.

func (*CreativesService)List

func (r *CreativesService) List(profileIdint64) *CreativesListCall

List: Retrieves a list of creatives, possibly filtered. This method supportspaging.

- profileId: User profile ID associated with this request.

func (*CreativesService)Patch

func (r *CreativesService) Patch(profileIdint64, idint64, creative *Creative) *CreativesPatchCall

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

- id: Creative ID.- profileId: User profile ID associated with this request.

func (*CreativesService)Update

func (r *CreativesService) Update(profileIdint64, creative *Creative) *CreativesUpdateCall

Update: Updates an existing creative.

- profileId: User profile ID associated with this request.

typeCreativesUpdateCall

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

func (*CreativesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*CreativesUpdateCall)Do

Do executes the "dfareporting.creatives.update" call.Any non-2xx status code is an error. Response headers are in either*Creative.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*CreativesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*CreativesUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeCrossDimensionReachReportCompatibleFields

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.Kindstring `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"`// ForceSendFields is a list of field names (e.g. "Breakdown") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Breakdown") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CrossDimensionReachReportCompatibleFields: Represents fields that arecompatible to be selected for a report of type "CROSS_DIMENSION_REACH".

func (CrossDimensionReachReportCompatibleFields)MarshalJSON

typeCrossMediaReachReportCompatibleFields

type CrossMediaReachReportCompatibleFields 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#crossMediaReachReportCompatibleFields.Kindstring `json:"kind,omitempty"`// Metrics: Metrics which are compatible to be selected in the "metricNames"// section of the report.Metrics []*Metric `json:"metrics,omitempty"`// ForceSendFields is a list of field names (e.g. "DimensionFilters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionFilters") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CrossMediaReachReportCompatibleFields: Represents fields that are compatibleto be selected for a report of type "CROSS_MEDIA_REACH".

func (CrossMediaReachReportCompatibleFields)MarshalJSON

typeCustomFloodlightVariable

type CustomFloodlightVariable struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#customFloodlightVariable".Kindstring `json:"kind,omitempty"`// Type: The type of custom floodlight variable to supply a value for. These// map to the "u[1-100]=" in the tags.//// Possible values://   "U1"//   "U2"//   "U3"//   "U4"//   "U5"//   "U6"//   "U7"//   "U8"//   "U9"//   "U10"//   "U11"//   "U12"//   "U13"//   "U14"//   "U15"//   "U16"//   "U17"//   "U18"//   "U19"//   "U20"//   "U21"//   "U22"//   "U23"//   "U24"//   "U25"//   "U26"//   "U27"//   "U28"//   "U29"//   "U30"//   "U31"//   "U32"//   "U33"//   "U34"//   "U35"//   "U36"//   "U37"//   "U38"//   "U39"//   "U40"//   "U41"//   "U42"//   "U43"//   "U44"//   "U45"//   "U46"//   "U47"//   "U48"//   "U49"//   "U50"//   "U51"//   "U52"//   "U53"//   "U54"//   "U55"//   "U56"//   "U57"//   "U58"//   "U59"//   "U60"//   "U61"//   "U62"//   "U63"//   "U64"//   "U65"//   "U66"//   "U67"//   "U68"//   "U69"//   "U70"//   "U71"//   "U72"//   "U73"//   "U74"//   "U75"//   "U76"//   "U77"//   "U78"//   "U79"//   "U80"//   "U81"//   "U82"//   "U83"//   "U84"//   "U85"//   "U86"//   "U87"//   "U88"//   "U89"//   "U90"//   "U91"//   "U92"//   "U93"//   "U94"//   "U95"//   "U96"//   "U97"//   "U98"//   "U99"//   "U100"Typestring `json:"type,omitempty"`// Value: The value of the custom floodlight variable. The length of string// must not exceed 100 characters.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomFloodlightVariable: A custom floodlight variable. Can be used in bothbatchinsert and batchupdate. Adding this in batchupdate will update orappend the variable to the existing list.

func (CustomFloodlightVariable)MarshalJSON

func (sCustomFloodlightVariable) MarshalJSON() ([]byte,error)

typeCustomRichMediaEvents

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.Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "FilteredEventIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FilteredEventIds") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomRichMediaEvents: Represents a Custom Rich Media Events group.

func (CustomRichMediaEvents)MarshalJSON

func (sCustomRichMediaEvents) MarshalJSON() ([]byte,error)

typeCustomRule

type CustomRule struct {// Name: Optional. Name of this custom rule.Namestring `json:"name,omitempty"`// Priority: Optional. Priority of the custom rule.Priorityint64 `json:"priority,omitempty"`// RuleBlocks: Optional. A list of field filter, the custom rule will apply.RuleBlocks []*RuleBlock `json:"ruleBlocks,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomRule: Contains custom rule information.

func (CustomRule)MarshalJSON

func (sCustomRule) MarshalJSON() ([]byte,error)

typeCustomValueField

type CustomValueField struct {// FieldId: Optional. Field ID in the element.FieldIdint64 `json:"fieldId,omitempty"`// RequestKey: Optional. Custom key used to match for auto filtering.RequestKeystring `json:"requestKey,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomValueField: Contains custom value field information.

func (CustomValueField)MarshalJSON

func (sCustomValueField) MarshalJSON() ([]byte,error)

typeCustomViewabilityMetric

type CustomViewabilityMetric struct {// Configuration: Configuration of the custom viewability metric.Configuration *CustomViewabilityMetricConfiguration `json:"configuration,omitempty"`// Id: ID of the custom viewability metric.Idint64 `json:"id,omitempty,string"`// Name: Name of the custom viewability metric.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Configuration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Configuration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomViewabilityMetric: Custom Viewability Metric

func (CustomViewabilityMetric)MarshalJSON

func (sCustomViewabilityMetric) MarshalJSON() ([]byte,error)

typeCustomViewabilityMetricConfiguration

type CustomViewabilityMetricConfiguration struct {// Audible: Whether the video must be audible to count an impression.Audiblebool `json:"audible,omitempty"`// TimeMillis: The time in milliseconds the video must play for the Custom// Viewability Metric to count an impression. If both this and timePercent are// specified, the earlier of the two will be used.TimeMillisint64 `json:"timeMillis,omitempty"`// TimePercent: The percentage of video that must play for the Custom// Viewability Metric to count an impression. If both this and timeMillis are// specified, the earlier of the two will be used.TimePercentint64 `json:"timePercent,omitempty"`// ViewabilityPercent: The percentage of video that must be on screen for the// Custom Viewability Metric to count an impression.ViewabilityPercentint64 `json:"viewabilityPercent,omitempty"`// ForceSendFields is a list of field names (e.g. "Audible") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Audible") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

CustomViewabilityMetricConfiguration: The attributes, like playtime andpercent onscreen, that define the Custom Viewability Metric.

func (CustomViewabilityMetricConfiguration)MarshalJSON

typeDateRange

type DateRange struct {EndDatestring `json:"endDate,omitempty"`// Kind: The kind of resource this is, in this case dfareporting#dateRange.Kindstring `json:"kind,omitempty"`// RelativeDateRange: The date range relative to the date of when the report is// run.//// Possible values://   "TODAY"//   "YESTERDAY"//   "WEEK_TO_DATE"//   "MONTH_TO_DATE"//   "QUARTER_TO_DATE"//   "YEAR_TO_DATE"//   "PREVIOUS_WEEK"//   "PREVIOUS_MONTH"//   "PREVIOUS_QUARTER"//   "PREVIOUS_YEAR"//   "LAST_7_DAYS"//   "LAST_30_DAYS"//   "LAST_90_DAYS"//   "LAST_365_DAYS"//   "LAST_24_MONTHS"//   "LAST_14_DAYS"//   "LAST_60_DAYS"RelativeDateRangestring `json:"relativeDateRange,omitempty"`StartDatestring `json:"startDate,omitempty"`// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndDate") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DateRange: Represents a date range.

func (DateRange)MarshalJSON

func (sDateRange) MarshalJSON() ([]byte,error)

typeDayPartTargeting

type DayPartTargeting struct {// DaysOfWeek: Days of the week when the ad will serve. Acceptable values are:// - "SUNDAY" - "MONDAY" - "TUESDAY" - "WEDNESDAY" - "THURSDAY" - "FRIDAY" -// "SATURDAY"//// Possible values://   "SUNDAY"//   "MONDAY"//   "TUESDAY"//   "WEDNESDAY"//   "THURSDAY"//   "FRIDAY"//   "SATURDAY"DaysOfWeek []string `json:"daysOfWeek,omitempty"`// HoursOfDay: Hours of the day when the ad will serve, 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. Acceptable values are 0 to 23,// inclusive.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.UserLocalTimebool `json:"userLocalTime,omitempty"`// ForceSendFields is a list of field names (e.g. "DaysOfWeek") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DaysOfWeek") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DayPartTargeting: Day Part Targeting.

func (DayPartTargeting)MarshalJSON

func (sDayPartTargeting) MarshalJSON() ([]byte,error)

typeDeepLink

type DeepLink struct {// AppUrl: The URL of the mobile app being linked to.AppUrlstring `json:"appUrl,omitempty"`// FallbackUrl: The fallback URL. This URL will be served to users who do not// have the mobile app installed.FallbackUrlstring `json:"fallbackUrl,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#deepLink".Kindstring `json:"kind,omitempty"`// MobileApp: The mobile app targeted by this deep link.MobileApp *MobileApp `json:"mobileApp,omitempty"`// RemarketingListIds: Ads served to users on these remarketing lists will use// this deep link. Applicable when mobileApp.directory is APPLE_APP_STORE.RemarketingListIdsgoogleapi.Int64s `json:"remarketingListIds,omitempty"`// ForceSendFields is a list of field names (e.g. "AppUrl") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppUrl") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeepLink: Contains information about a landing page deep link.

func (DeepLink)MarshalJSON

func (sDeepLink) MarshalJSON() ([]byte,error)

typeDefaultClickThroughEventTagProperties

type DefaultClickThroughEventTagProperties struct {// DefaultClickThroughEventTagId: ID of the click-through event tag to apply to// all ads in this entity's scope.DefaultClickThroughEventTagIdint64 `json:"defaultClickThroughEventTagId,omitempty,string"`// OverrideInheritedEventTag: Whether this entity should override the inherited// default click-through event tag with its own defined value.OverrideInheritedEventTagbool `json:"overrideInheritedEventTag,omitempty"`// ForceSendFields is a list of field names (e.g.// "DefaultClickThroughEventTagId") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultClickThroughEventTagId")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DefaultClickThroughEventTagProperties: Properties of inheriting andoverriding the default click-through event tag. A campaign may override theevent tag defined at the advertiser level, and an ad may also override thecampaign's setting further.

func (DefaultClickThroughEventTagProperties)MarshalJSON

typeDeliverySchedule

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.HardCutoffbool `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 Campaign// Manager will serve ad B three times as often as ad A. Acceptable values are// 1 to 10, inclusive.ImpressionRatioint64 `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.//// Possible values://   "AD_PRIORITY_01"//   "AD_PRIORITY_02"//   "AD_PRIORITY_03"//   "AD_PRIORITY_04"//   "AD_PRIORITY_05"//   "AD_PRIORITY_06"//   "AD_PRIORITY_07"//   "AD_PRIORITY_08"//   "AD_PRIORITY_09"//   "AD_PRIORITY_10"//   "AD_PRIORITY_11"//   "AD_PRIORITY_12"//   "AD_PRIORITY_13"//   "AD_PRIORITY_14"//   "AD_PRIORITY_15"//   "AD_PRIORITY_16"Prioritystring `json:"priority,omitempty"`// ForceSendFields is a list of field names (e.g. "FrequencyCap") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FrequencyCap") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeliverySchedule: Delivery Schedule.

func (DeliverySchedule)MarshalJSON

func (sDeliverySchedule) MarshalJSON() ([]byte,error)

typeDependentFieldValue

type DependentFieldValue struct {// ElementId: Optional. The ID of the element that value's field will match// against.ElementIdint64 `json:"elementId,omitempty,string"`// FieldId: Optional. The field id of the dependent field.FieldIdint64 `json:"fieldId,omitempty"`// ForceSendFields is a list of field names (e.g. "ElementId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ElementId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DependentFieldValue: Contains dependent field value information.

func (DependentFieldValue)MarshalJSON

func (sDependentFieldValue) MarshalJSON() ([]byte,error)

typeDfareportingStudioCreativeAssetsInsertRequestadded inv0.253.0

type DfareportingStudioCreativeAssetsInsertRequest struct {// StudioAccountId: Optional. Studio account ID of the studio creative asset.// It is a optional.StudioAccountIdint64 `json:"studioAccountId,omitempty,string"`// StudioAdvertiserId: Required. Studio advertiser ID of the studio creative// asset. It is a required field on insertion.StudioAdvertiserIdint64 `json:"studioAdvertiserId,omitempty,string"`// StudioCreativeId: Optional. Studio creative ID of the studio creative asset.// It is a optional field. If it is set, the asset will be associated to the// creative.StudioCreativeIdint64 `json:"studioCreativeId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "StudioAccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "StudioAccountId") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DfareportingStudioCreativeAssetsInsertRequest: Request message forDfareportingStudioCreativeAssets.Insert.

func (DfareportingStudioCreativeAssetsInsertRequest)MarshalJSONadded inv0.253.0

typeDfpSettings

type DfpSettings struct {// DfpNetworkCode: Ad Manager network code for this directory site.DfpNetworkCodestring `json:"dfpNetworkCode,omitempty"`// DfpNetworkName: Ad Manager network name for this directory site.DfpNetworkNamestring `json:"dfpNetworkName,omitempty"`// ProgrammaticPlacementAccepted: Whether this directory site accepts// programmatic placements.ProgrammaticPlacementAcceptedbool `json:"programmaticPlacementAccepted,omitempty"`// PubPaidPlacementAccepted: Whether this directory site accepts publisher-paid// tags.PubPaidPlacementAcceptedbool `json:"pubPaidPlacementAccepted,omitempty"`// PublisherPortalOnly: Whether this directory site is available only via// Publisher Portal.PublisherPortalOnlybool `json:"publisherPortalOnly,omitempty"`// ForceSendFields is a list of field names (e.g. "DfpNetworkCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DfpNetworkCode") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DfpSettings: Google Ad Manager Settings

func (DfpSettings)MarshalJSON

func (sDfpSettings) MarshalJSON() ([]byte,error)

typeDimension

type Dimension struct {// Kind: The kind of resource this is, in this case dfareporting#dimension.Kindstring `json:"kind,omitempty"`// Name: The dimension name, e.g. advertiserNamestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Dimension: Represents a dimension.

func (Dimension)MarshalJSON

func (sDimension) MarshalJSON() ([]byte,error)

typeDimensionFilter

type DimensionFilter struct {// DimensionName: The name of the dimension to filter.DimensionNamestring `json:"dimensionName,omitempty"`// Kind: The kind of resource this is, in this case// dfareporting#dimensionFilter.Kindstring `json:"kind,omitempty"`// Value: The value of the dimension to filter.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "DimensionName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DimensionFilter: Represents a dimension filter.

func (DimensionFilter)MarshalJSON

func (sDimensionFilter) MarshalJSON() ([]byte,error)

typeDimensionValue

type DimensionValue struct {// DimensionName: The name of the dimension.DimensionNamestring `json:"dimensionName,omitempty"`// Etag: The eTag of this response for caching purposes.Etagstring `json:"etag,omitempty"`// Id: The ID associated with the value if available.Idstring `json:"id,omitempty"`// Kind: The kind of resource this is, in this case// dfareporting#dimensionValue.Kindstring `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.//// Possible values://   "EXACT"//   "BEGINS_WITH"//   "CONTAINS"//   "WILDCARD_EXPRESSION"MatchTypestring `json:"matchType,omitempty"`// Value: The value of the dimension.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "DimensionName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DimensionValue: Represents a DimensionValue resource.

func (DimensionValue)MarshalJSON

func (sDimensionValue) MarshalJSON() ([]byte,error)

typeDimensionValueList

type DimensionValueList struct {// Etag: The eTag of this response for caching purposes.Etagstring `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.Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DimensionValueList: Represents the list of DimensionValue resources.

func (DimensionValueList)MarshalJSON

func (sDimensionValueList) MarshalJSON() ([]byte,error)

typeDimensionValueRequest

type DimensionValueRequest struct {// DimensionName: The name of the dimension for which values should be// requested.DimensionNamestring `json:"dimensionName,omitempty"`EndDatestring `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 .Kindstring `json:"kind,omitempty"`StartDatestring `json:"startDate,omitempty"`// ForceSendFields is a list of field names (e.g. "DimensionName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DimensionValueRequest: Represents a DimensionValuesRequest.

func (DimensionValueRequest)MarshalJSON

func (sDimensionValueRequest) MarshalJSON() ([]byte,error)

typeDimensionValuesQueryCall

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

func (*DimensionValuesQueryCall)Context

Context sets the context to be used in this call's Do method.

func (*DimensionValuesQueryCall)Do

Do executes the "dfareporting.dimensionValues.query" call.Any non-2xx status code is an error. Response headers are in either*DimensionValueList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*DimensionValuesQueryCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DimensionValuesQueryCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DimensionValuesQueryCall)MaxResults

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

func (*DimensionValuesQueryCall)PageToken

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

func (*DimensionValuesQueryCall)Pages

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

typeDimensionValuesService

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

funcNewDimensionValuesService

func NewDimensionValuesService(s *Service) *DimensionValuesService

func (*DimensionValuesService)Query

func (r *DimensionValuesService) Query(profileIdint64, dimensionvaluerequest *DimensionValueRequest) *DimensionValuesQueryCall

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

- profileId: The Campaign Manager 360 user profile ID.

typeDirectorySite

type DirectorySite struct {// Id: ID of this directory site. This is a read-only, auto-generated field.Idint64 `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"//// Possible values://   "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"//// Possible values://   "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".Kindstring `json:"kind,omitempty"`// Name: Name of this directory site.Namestring `json:"name,omitempty"`// PublisherSpecificationId: Output only. Default publisher specification ID of// video placements under this directory site. Possible values are: * `1`, Hulu// * `2`, NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD *// `7`, VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN *// `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst// Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`,// MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`,// TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia *// `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, MaxPublisherSpecificationIdint64 `json:"publisherSpecificationId,omitempty,string"`// Settings: Directory site settings.Settings *DirectorySiteSettings `json:"settings,omitempty"`// Url: URL of this directory site.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DirectorySite: DirectorySites contains properties of a website from the SiteDirectory. Sites need to be added to an account via the Sites resourcebefore they can be assigned to a placement.

func (DirectorySite)MarshalJSON

func (sDirectorySite) MarshalJSON() ([]byte,error)

typeDirectorySiteSettings

type DirectorySiteSettings struct {// ActiveViewOptOut: Whether this directory site has disabled active view// creatives.ActiveViewOptOutbool `json:"activeViewOptOut,omitempty"`// DfpSettings: Directory site Ad Manager settings.DfpSettings *DfpSettings `json:"dfpSettings,omitempty"`// InstreamVideoPlacementAccepted: Whether this site accepts in-stream video// ads.InstreamVideoPlacementAcceptedbool `json:"instreamVideoPlacementAccepted,omitempty"`// InterstitialPlacementAccepted: Whether this site accepts interstitial ads.InterstitialPlacementAcceptedbool `json:"interstitialPlacementAccepted,omitempty"`// ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DirectorySiteSettings: Directory Site Settings

func (DirectorySiteSettings)MarshalJSON

func (sDirectorySiteSettings) MarshalJSON() ([]byte,error)

typeDirectorySitesGetCall

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

func (*DirectorySitesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*DirectorySitesGetCall)Do

Do executes the "dfareporting.directorySites.get" call.Any non-2xx status code is an error. Response headers are in either*DirectorySite.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DirectorySitesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DirectorySitesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DirectorySitesGetCall)IfNoneMatch

func (c *DirectorySitesGetCall) IfNoneMatch(entityTagstring) *DirectorySitesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDirectorySitesInsertCall

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

func (*DirectorySitesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*DirectorySitesInsertCall)Do

Do executes the "dfareporting.directorySites.insert" call.Any non-2xx status code is an error. Response headers are in either*DirectorySite.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DirectorySitesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DirectorySitesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDirectorySitesListCall

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

func (*DirectorySitesListCall)AcceptsInStreamVideoPlacements

func (c *DirectorySitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacementsbool) *DirectorySitesListCall

AcceptsInStreamVideoPlacements sets the optional parameter"acceptsInStreamVideoPlacements": This search filter is no longer supportedand will have no effect on the results returned.

func (*DirectorySitesListCall)AcceptsInterstitialPlacements

func (c *DirectorySitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacementsbool) *DirectorySitesListCall

AcceptsInterstitialPlacements sets the optional parameter"acceptsInterstitialPlacements": This search filter is no longer supportedand will have no effect on the results returned.

func (*DirectorySitesListCall)AcceptsPublisherPaidPlacements

func (c *DirectorySitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacementsbool) *DirectorySitesListCall

AcceptsPublisherPaidPlacements sets the optional parameter"acceptsPublisherPaidPlacements": Select only directory sites that acceptpublisher paid placements. This field can be left blank.

func (*DirectorySitesListCall)Active

Active sets the optional parameter "active": Select only active directorysites. Leave blank to retrieve both active and inactive directory sites.

func (*DirectorySitesListCall)Context

Context sets the context to be used in this call's Do method.

func (*DirectorySitesListCall)DfpNetworkCode

func (c *DirectorySitesListCall) DfpNetworkCode(dfpNetworkCodestring) *DirectorySitesListCall

DfpNetworkCode sets the optional parameter "dfpNetworkCode": Select onlydirectory sites with this Ad Manager network code.

func (*DirectorySitesListCall)Do

Do executes the "dfareporting.directorySites.list" call.Any non-2xx status code is an error. Response headers are in either*DirectorySitesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*DirectorySitesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DirectorySitesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DirectorySitesListCall)Ids

Ids sets the optional parameter "ids": Select only directory sites withthese IDs.

func (*DirectorySitesListCall)IfNoneMatch

func (c *DirectorySitesListCall) IfNoneMatch(entityTagstring) *DirectorySitesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*DirectorySitesListCall)MaxResults

func (c *DirectorySitesListCall) MaxResults(maxResultsint64) *DirectorySitesListCall

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

func (*DirectorySitesListCall)PageToken

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

func (*DirectorySitesListCall)Pages

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

func (*DirectorySitesListCall)SearchString

func (c *DirectorySitesListCall) SearchString(searchStringstring) *DirectorySitesListCall

SearchString sets the optional parameter "searchString": Allows searchingfor objects by name, ID or URL. Wildcards (*) are allowed. For example,"directory site*2015" will return objects with names like "directory siteJune 2015", "directory site April 2015", or simply "directory site 2015".Most of the searches also add wildcards implicitly at the start and the endof the search string. For example, a search string of "directory site" willmatch objects with name "my directory site", "directory site 2015" orsimply, "directory site".

func (*DirectorySitesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*DirectorySitesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeDirectorySitesListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DirectorySites") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DirectorySites") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DirectorySitesListResponse: Directory Site List Response

func (DirectorySitesListResponse)MarshalJSON

func (sDirectorySitesListResponse) MarshalJSON() ([]byte,error)

typeDirectorySitesService

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

funcNewDirectorySitesService

func NewDirectorySitesService(s *Service) *DirectorySitesService

func (*DirectorySitesService)Get

Get: Gets one directory site by ID.

- id: Directory site ID.- profileId: User profile ID associated with this request.

func (*DirectorySitesService)Insert

func (r *DirectorySitesService) Insert(profileIdint64, directorysite *DirectorySite) *DirectorySitesInsertCall

Insert: Inserts a new directory site.

- profileId: User profile ID associated with this request.

func (*DirectorySitesService)List

List: Retrieves a list of directory sites, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

typeDynamicFeed

type DynamicFeed struct {// ContentSource: Required. The content source of the dynamic feed. This is a// required field.ContentSource *ContentSource `json:"contentSource,omitempty"`// CreateInfo: Output only. The creation timestamp of the dynamic feed. This is// a read-only field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// DynamicFeedId: Output only. Unique ID of this dynamic feed. This is a// read-only, auto-generated field.DynamicFeedIdint64 `json:"dynamicFeedId,omitempty,string"`// DynamicFeedName: Optional. Name of this dynamic feed. It is defaulted to// content source file name if not provided.DynamicFeedNamestring `json:"dynamicFeedName,omitempty"`// Element: Required. The element of the dynamic feed that is to specify the// schema of the feed. This is a required field.Element *Element `json:"element,omitempty"`// FeedIngestionStatus: Output only. The ingestion status of the dynamic feed.// This is a read-only field.FeedIngestionStatus *FeedIngestionStatus `json:"feedIngestionStatus,omitempty"`// FeedSchedule: Optional. The schedule of the dynamic feed. It can be set if// the feed is published.FeedSchedule *FeedSchedule `json:"feedSchedule,omitempty"`// HasPublished: Output only. Indicates whether the dynamic feed has a// published version. This is a read-only field.HasPublishedbool `json:"hasPublished,omitempty"`// LastModifiedInfo: Output only. The last modified timestamp of the dynamic// feed. This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// Status: Output only. The status of the feed. It is a read-only field that// depends on the the feed ingestion status. The default value is INACTIVE, and// it will be updated to ACTIVE once the feed is ingested successfully.//// Possible values://   "STATUS_UNKNOWN" - The status is unknown.//   "ACTIVE" - The feedstatus is active.//   "INACTIVE" - The feed status is inactive.//   "DELETED" - The feed status is deleted.Statusstring `json:"status,omitempty"`// StudioAdvertiserId: Required. Advertiser ID of this dynamic feed. This is a// required field.StudioAdvertiserIdint64 `json:"studioAdvertiserId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ContentSource") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ContentSource") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicFeed: Contains dynamic feed information.

func (DynamicFeed)MarshalJSON

func (sDynamicFeed) MarshalJSON() ([]byte,error)

typeDynamicFeedsGetCall

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

func (*DynamicFeedsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicFeedsGetCall)Do

Do executes the "dfareporting.dynamicFeeds.get" call.Any non-2xx status code is an error. Response headers are in either*DynamicFeed.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicFeedsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicFeedsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DynamicFeedsGetCall)IfNoneMatch

func (c *DynamicFeedsGetCall) IfNoneMatch(entityTagstring) *DynamicFeedsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDynamicFeedsInsertCall

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

func (*DynamicFeedsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicFeedsInsertCall)Do

Do executes the "dfareporting.dynamicFeeds.insert" call.Any non-2xx status code is an error. Response headers are in either*DynamicFeed.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicFeedsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicFeedsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicFeedsInsertRequest

type DynamicFeedsInsertRequest struct {// DynamicFeed: Required. Dynamic feed to insert.DynamicFeed *DynamicFeed `json:"dynamicFeed,omitempty"`// DynamicProfileId: Required. Dynamic profile ID of the inserted dynamic feed.DynamicProfileIdint64 `json:"dynamicProfileId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "DynamicFeed") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DynamicFeed") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicFeedsInsertRequest: Dynamic profile ID is required for dynamic feedinsert as the current GPA API only can create a dynamic feed under profilecontext,even though the dynnamic feed itself don't need the dynamic profileid. See

func (DynamicFeedsInsertRequest)MarshalJSON

func (sDynamicFeedsInsertRequest) MarshalJSON() ([]byte,error)

typeDynamicFeedsRetransformCalladded inv0.253.0

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

func (*DynamicFeedsRetransformCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*DynamicFeedsRetransformCall)Doadded inv0.253.0

Do executes the "dfareporting.dynamicFeeds.retransform" call.Any non-2xx status code is an error. Response headers are in either*DynamicFeed.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicFeedsRetransformCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicFeedsRetransformCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicFeedsService

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

funcNewDynamicFeedsService

func NewDynamicFeedsService(s *Service) *DynamicFeedsService

func (*DynamicFeedsService)Get

func (r *DynamicFeedsService) Get(dynamicFeedIdint64) *DynamicFeedsGetCall

Get: Gets a dynamic feed by ID.

- dynamicFeedId: Dynamic feed ID.

func (*DynamicFeedsService)Insert

func (r *DynamicFeedsService) Insert(dynamicfeedsinsertrequest *DynamicFeedsInsertRequest) *DynamicFeedsInsertCall

Insert: Inserts a new dynamic feed.

func (*DynamicFeedsService)Retransformadded inv0.253.0

func (r *DynamicFeedsService) Retransform(dynamicFeedIdint64) *DynamicFeedsRetransformCall

Retransform: Retransforms a dynamic feed.

- dynamicFeedId: Dynamic feed ID.

func (*DynamicFeedsService)Updateadded inv0.253.0

Update: Updates a new dynamic feed.

typeDynamicFeedsUpdateCalladded inv0.253.0

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

func (*DynamicFeedsUpdateCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*DynamicFeedsUpdateCall)Doadded inv0.253.0

Do executes the "dfareporting.dynamicFeeds.update" call.Any non-2xx status code is an error. Response headers are in either*DynamicFeed.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicFeedsUpdateCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicFeedsUpdateCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicProfile

type DynamicProfile struct {// Active: Optional. Active version of the dynamic profile.Active *DynamicProfileVersion `json:"active,omitempty"`// ArchiveStatus: Optional. Archive status of this dynamic profile.//// Possible values://   "ARCHIVE_STATUS_UNKNOWN" - The dynamic profile archive status is unknown.// This value is unused.//   "UNARCHIVED" - The dynamic profile archive status is unarchived.//   "ARCHIVED" - The dynamic profile archive status is archived.ArchiveStatusstring `json:"archiveStatus,omitempty"`// CreateInfo: Output only. The creation timestamp of the dynamic profile. This// is a read-only field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// Description: Optional. Description of this dynamic profile.Descriptionstring `json:"description,omitempty"`// Draft: Optional. Draft version of the dynamic profile.Draft *DynamicProfileVersion `json:"draft,omitempty"`// DynamicProfileId: Output only. Unique ID of this dynamic profile. This is a// read-only, auto-generated field.DynamicProfileIdint64 `json:"dynamicProfileId,omitempty,string"`// Kind: Output only. Identifies what kind of resource this is. Value: the// fixed string "dfareporting#dynamicProfile".Kindstring `json:"kind,omitempty"`// LastModifiedInfo: Output only. The last modified timestamp of the dynamic// profile. This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// Name: Required. Identifier. Name of this dynamic profile. This is a required// field and must be less than 256 characters long.Namestring `json:"name,omitempty"`// Status: Optional. Status of this dynamic profile.//// Possible values://   "STATUS_UNKNOWN" - The dynamic profile status is unknown. This value is// unused.//   "ACTIVE" - The dynamic profile is active.//   "INACTIVE" - The dynamic profile is inactive.//   "DELETED" - The dynamic profile is deleted.Statusstring `json:"status,omitempty"`// StudioAdvertiserId: Required. Advertiser ID of this dynamic profile. This is// a required field on insertion.StudioAdvertiserIdint64 `json:"studioAdvertiserId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Active") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Active") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicProfile: Contains dynamic profile information.

func (DynamicProfile)MarshalJSON

func (sDynamicProfile) MarshalJSON() ([]byte,error)

typeDynamicProfileFeedSettings

type DynamicProfileFeedSettings struct {// DynamicFeedId: Optional. Dynamic feed ID associated with dynamic profile// version.DynamicFeedIdint64 `json:"dynamicFeedId,omitempty,string"`// DynamicRules: Optional. Dynamic rules for row selection for the given// dynamic feed in the given dynamic profile.DynamicRules *DynamicRules `json:"dynamicRules,omitempty"`// Quantity: Optional. The number of this dynamic feed rows needed by the// dynamic profile, default value is 1. Acceptable values are between 1 to 99,// inclusive.Quantityint64 `json:"quantity,omitempty"`// ForceSendFields is a list of field names (e.g. "DynamicFeedId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DynamicFeedId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicProfileFeedSettings: Contains dynamic profile specific settings foran associated dynamic feed.

func (DynamicProfileFeedSettings)MarshalJSON

func (sDynamicProfileFeedSettings) MarshalJSON() ([]byte,error)

typeDynamicProfileGenerateCodeResponseadded inv0.253.0

type DynamicProfileGenerateCodeResponse struct {// Code: Generated code for the dynamic profile.Codestring `json:"code,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicProfileGenerateCodeResponse: Response message forDfareportingDynamicProfiles.GenerateCode.

func (DynamicProfileGenerateCodeResponse)MarshalJSONadded inv0.253.0

typeDynamicProfileVersion

type DynamicProfileVersion struct {// DynamicProfileFeedSettings: Optional. Associated dynamic feeds and their// settings (including dynamic rules) for this dynamic profile version.DynamicProfileFeedSettings []*DynamicProfileFeedSettings `json:"dynamicProfileFeedSettings,omitempty"`// VersionId: Output only. Version ID of this dynamic profile version. This is// a read-only, auto-generated field. -1 for draft version, 0+ for published// versions.VersionIdint64 `json:"versionId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "DynamicProfileFeedSettings")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DynamicProfileFeedSettings") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicProfileVersion: Contains dynamic profile version information.

func (DynamicProfileVersion)MarshalJSON

func (sDynamicProfileVersion) MarshalJSON() ([]byte,error)

typeDynamicProfilesGenerateCodeCalladded inv0.253.0

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

func (*DynamicProfilesGenerateCodeCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*DynamicProfilesGenerateCodeCall)Doadded inv0.253.0

Do executes the "dfareporting.dynamicProfiles.generateCode" call.Any non-2xx status code is an error. Response headers are in either*DynamicProfileGenerateCodeResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*DynamicProfilesGenerateCodeCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicProfilesGenerateCodeCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DynamicProfilesGenerateCodeCall)IfNoneMatchadded inv0.253.0

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDynamicProfilesGetCall

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

func (*DynamicProfilesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicProfilesGetCall)Do

Do executes the "dfareporting.dynamicProfiles.get" call.Any non-2xx status code is an error. Response headers are in either*DynamicProfile.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicProfilesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicProfilesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DynamicProfilesGetCall)IfNoneMatch

func (c *DynamicProfilesGetCall) IfNoneMatch(entityTagstring) *DynamicProfilesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDynamicProfilesInsertCall

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

func (*DynamicProfilesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicProfilesInsertCall)Do

Do executes the "dfareporting.dynamicProfiles.insert" call.Any non-2xx status code is an error. Response headers are in either*DynamicProfile.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicProfilesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicProfilesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicProfilesPublishCalladded inv0.253.0

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

func (*DynamicProfilesPublishCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*DynamicProfilesPublishCall)Doadded inv0.253.0

Do executes the "dfareporting.dynamicProfiles.publish" call.

func (*DynamicProfilesPublishCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicProfilesPublishCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicProfilesService

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

funcNewDynamicProfilesService

func NewDynamicProfilesService(s *Service) *DynamicProfilesService

func (*DynamicProfilesService)GenerateCodeadded inv0.253.0

func (r *DynamicProfilesService) GenerateCode(dynamicProfileIdint64) *DynamicProfilesGenerateCodeCall

GenerateCode: Generates code for a dynamic profile.

- dynamicProfileId: Dynamic profile ID.

func (*DynamicProfilesService)Get

func (r *DynamicProfilesService) Get(dynamicProfileIdint64) *DynamicProfilesGetCall

Get: Gets a dynamic profile by ID.

- dynamicProfileId: Dynamic profile ID.

func (*DynamicProfilesService)Insert

Insert: Inserts a new dynamic profile.

func (*DynamicProfilesService)Publishadded inv0.253.0

func (r *DynamicProfilesService) Publish(dynamicProfileIdint64) *DynamicProfilesPublishCall

Publish: Publish for a dynamic profile.

- dynamicProfileId: Dynamic profile ID.

func (*DynamicProfilesService)Update

Update: Updates an existing dynamic profile.

typeDynamicProfilesUpdateCall

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

func (*DynamicProfilesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicProfilesUpdateCall)Do

Do executes the "dfareporting.dynamicProfiles.update" call.Any non-2xx status code is an error. Response headers are in either*DynamicProfile.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DynamicProfilesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicProfilesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicRules

type DynamicRules struct {// AutoTargetedFieldIds: Optional. List of field IDs in this element that// should be auto-targeted. Applicable when rule type is AUTO.AutoTargetedFieldIds []int64 `json:"autoTargetedFieldIds,omitempty"`// CustomRules: Optional. The custom rules of the dynamic feed, only applicable// when rule type is CUSTOM.CustomRules []*CustomRule `json:"customRules,omitempty"`// CustomValueFields: Optional. Mapping between field ID and custom key that// are used to match for auto filtering.CustomValueFields []*CustomValueField `json:"customValueFields,omitempty"`// ProximityFilter: Optional. The proximity targeting rules of the dynamic// feed, only applicable when rule type is PROXIMITY_TARGETING.ProximityFilter *ProximityFilter `json:"proximityFilter,omitempty"`// RemarketingValueAttributes: Optional. The link between an element field ID// and a list of user attribute IDs.RemarketingValueAttributes []*RemarketingValueAttribute `json:"remarketingValueAttributes,omitempty"`// RotationType: Optional. The rotation type to select from eligible rows.// Rotation type only apply when the filtering rule results in more than one// eligible rows.//// Possible values://   "ROTATION_TYPE_UNKNOWN" - The rotation type is unknown. This value is// unused.//   "RANDOM" - The rotation type is random. It is the default value.//   "OPTIMIZED" - The rotation type is optimized.//   "WEIGHTED" - The rotation type is weighted.RotationTypestring `json:"rotationType,omitempty"`// RuleType: Optional. The type of the rule, the default value is OPEN.//// Possible values://   "RULE_SET_TYPE_UNKNOWN" - The rule type is unknown. This value is unused.//   "OPEN" - The rule type is open, all feed rows are eligible for selection.// This is the default value.//   "AUTO" - The rule type is auto, the feed rows are eligible for selection// based on the automatic rules.//   "CUSTOM" - The rule type is custom, the feed rows are eligible for// selection based on the custom rules.//   "PROXIMITY_TARGETING" - The rule type is proximity targeting, the feed// rows are eligible for selection based on the proximity targeting rules.RuleTypestring `json:"ruleType,omitempty"`// WeightFieldId: Optional. The field ID for the feed that will be used for// weighted rotation, only applicable when rotation type is WEIGHTED.WeightFieldIdint64 `json:"weightFieldId,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoTargetedFieldIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoTargetedFieldIds") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicRules: Contains dynamic rules information.

func (DynamicRules)MarshalJSON

func (sDynamicRules) MarshalJSON() ([]byte,error)

typeDynamicTargetingKey

type DynamicTargetingKey struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#dynamicTargetingKey".Kindstring `json:"kind,omitempty"`// Name: Name of this dynamic targeting key. This is a required field. Must be// less than 256 characters long and cannot contain commas. All characters are// converted to lowercase.Namestring `json:"name,omitempty"`// ObjectId: ID of the object of this dynamic targeting key. This is a required// field.ObjectIdint64 `json:"objectId,omitempty,string"`// ObjectType: Type of the object of this dynamic targeting key. This is a// required field.//// Possible values://   "OBJECT_ADVERTISER"//   "OBJECT_AD"//   "OBJECT_CREATIVE"//   "OBJECT_PLACEMENT"ObjectTypestring `json:"objectType,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicTargetingKey: Contains properties of a dynamic targeting key. Dynamictargeting keys are unique, user-friendly labels, created at the advertiserlevel in DCM, that can be assigned to ads, creatives, and placements andused for targeting with Studio dynamic creatives. Use these labels insteadof numeric Campaign Manager IDs (such as placement IDs) to save time andavoid errors in your dynamic feeds.

func (DynamicTargetingKey)MarshalJSON

func (sDynamicTargetingKey) MarshalJSON() ([]byte,error)

typeDynamicTargetingKeysDeleteCall

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

func (*DynamicTargetingKeysDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicTargetingKeysDeleteCall)Do

Do executes the "dfareporting.dynamicTargetingKeys.delete" call.

func (*DynamicTargetingKeysDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicTargetingKeysDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicTargetingKeysInsertCall

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

func (*DynamicTargetingKeysInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicTargetingKeysInsertCall)Do

Do executes the "dfareporting.dynamicTargetingKeys.insert" call.Any non-2xx status code is an error. Response headers are in either*DynamicTargetingKey.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*DynamicTargetingKeysInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicTargetingKeysInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDynamicTargetingKeysListCall

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

func (*DynamicTargetingKeysListCall)AdvertiserId

AdvertiserId sets the optional parameter "advertiserId": Select only dynamictargeting keys whose object has this advertiser ID.

func (*DynamicTargetingKeysListCall)Context

Context sets the context to be used in this call's Do method.

func (*DynamicTargetingKeysListCall)Do

Do executes the "dfareporting.dynamicTargetingKeys.list" call.Any non-2xx status code is an error. Response headers are in either*DynamicTargetingKeysListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*DynamicTargetingKeysListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DynamicTargetingKeysListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DynamicTargetingKeysListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*DynamicTargetingKeysListCall)Names

Names sets the optional parameter "names": Select only dynamic targetingkeys exactly matching these names.

func (*DynamicTargetingKeysListCall)ObjectId

ObjectId sets the optional parameter "objectId": Select only dynamictargeting keys with this object ID.

func (*DynamicTargetingKeysListCall)ObjectType

ObjectType sets the optional parameter "objectType": Select only dynamictargeting keys with this object type.

Possible values:

"OBJECT_ADVERTISER""OBJECT_AD""OBJECT_CREATIVE""OBJECT_PLACEMENT"

typeDynamicTargetingKeysListResponse

type DynamicTargetingKeysListResponse struct {// DynamicTargetingKeys: Dynamic targeting key collection.DynamicTargetingKeys []*DynamicTargetingKey `json:"dynamicTargetingKeys,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#dynamicTargetingKeysListResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DynamicTargetingKeys") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DynamicTargetingKeys") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DynamicTargetingKeysListResponse: Dynamic Targeting Key List Response

func (DynamicTargetingKeysListResponse)MarshalJSON

func (sDynamicTargetingKeysListResponse) MarshalJSON() ([]byte,error)

typeDynamicTargetingKeysService

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

funcNewDynamicTargetingKeysService

func NewDynamicTargetingKeysService(s *Service) *DynamicTargetingKeysService

func (*DynamicTargetingKeysService)Delete

func (r *DynamicTargetingKeysService) Delete(profileIdint64, objectIdint64, namestring, objectTypestring) *DynamicTargetingKeysDeleteCall

Delete: Deletes an existing dynamic targeting key.

  • name: Name of this dynamic targeting key. This is a required field. Mustbe less than 256 characters long and cannot contain commas. All charactersare converted to lowercase.
  • objectId: ID of the object of this dynamic targeting key. This is arequired field.
  • objectType: Type of the object of this dynamic targeting key. This is arequired field.
  • profileId: User profile ID associated with this request.

func (*DynamicTargetingKeysService)Insert

Insert: Inserts a new dynamic targeting key. Keys must be created at theadvertiser level before being assigned to the advertiser's ads, creatives,or placements. There is a maximum of 1000 keys per advertiser, out of whicha maximum of 20 keys can be assigned per ad, creative, or placement.

- profileId: User profile ID associated with this request.

func (*DynamicTargetingKeysService)List

List: Retrieves a list of dynamic targeting keys.

- profileId: User profile ID associated with this request.

typeElement

type Element struct {// ActiveFieldId: Optional. The field ID to specify the active field in the// feed.ActiveFieldIdint64 `json:"activeFieldId,omitempty"`// CreateInfo: Output only. The creation timestamp of the element. This is a// read-only field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// DefaultFieldId: Optional. The field ID to specify the field that represents// the default field in the feed.DefaultFieldIdint64 `json:"defaultFieldId,omitempty"`// ElementName: Optional. The name of the element. It is defaulted to resource// file name if not provided.ElementNamestring `json:"elementName,omitempty"`// EndTimestampFieldId: Optional. The field ID to specify the field that// represents the end timestamp. Only applicable if you're planning to use// scheduling in your dynamic creative.EndTimestampFieldIdint64 `json:"endTimestampFieldId,omitempty"`// ExternalIdFieldId: Required. The field ID to specify the field used for// uniquely identifying the feed row. This is a required field.ExternalIdFieldIdint64 `json:"externalIdFieldId,omitempty"`// FeedFields: Required. The list of fields of the element. The field order and// name should match the meta data in the content source source.FeedFields []*FeedField `json:"feedFields,omitempty"`// IsLocalTimestamp: Optional. Whether the start and end timestamp is local// timestamp. The default value is false which means start and end timestamp is// in UTC.IsLocalTimestampbool `json:"isLocalTimestamp,omitempty"`// LastModifiedInfo: Output only. The last modified timestamp of the element.// This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// ProximityTargetingFieldId: Optional. The field ID that specify field used// for proximity targeting.ProximityTargetingFieldIdint64 `json:"proximityTargetingFieldId,omitempty"`// ReportingLabelFieldId: Required. The field ID to specify the field used for// dynamic reporting in Campaign Manager 360.ReportingLabelFieldIdint64 `json:"reportingLabelFieldId,omitempty"`// StartTimestampFieldId: Optional. The field ID to specify the field that// represents the start timestamp. Only applicable if you're planning to use// scheduling in your dynamic creative.StartTimestampFieldIdint64 `json:"startTimestampFieldId,omitempty"`// ForceSendFields is a list of field names (e.g. "ActiveFieldId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActiveFieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Element: Contains the element of the dynamic feed.

func (Element)MarshalJSON

func (sElement) MarshalJSON() ([]byte,error)

typeEncryptionInfo

type EncryptionInfo struct {// EncryptionEntityId: The encryption entity ID. This should match the// encryption configuration for ad serving or Data Transfer.EncryptionEntityIdint64 `json:"encryptionEntityId,omitempty,string"`// EncryptionEntityType: The encryption entity type. This should match the// encryption configuration for ad serving or Data Transfer.//// Possible values://   "ENCRYPTION_ENTITY_TYPE_UNKNOWN"//   "DCM_ACCOUNT"//   "DCM_ADVERTISER"//   "DBM_PARTNER"//   "DBM_ADVERTISER"//   "ADWORDS_CUSTOMER"//   "DFP_NETWORK_CODE"EncryptionEntityTypestring `json:"encryptionEntityType,omitempty"`// EncryptionSource: Describes whether the encrypted cookie was received from// ad serving (the %m macro) or from Data Transfer.//// Possible values://   "ENCRYPTION_SCOPE_UNKNOWN"//   "AD_SERVING"//   "DATA_TRANSFER"EncryptionSourcestring `json:"encryptionSource,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#encryptionInfo".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "EncryptionEntityId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EncryptionEntityId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EncryptionInfo: A description of how user IDs are encrypted.

func (EncryptionInfo)MarshalJSON

func (sEncryptionInfo) MarshalJSON() ([]byte,error)

typeEventTag

type EventTag struct {// AccountId: Account ID of this event tag. This is a read-only field that can// be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AdvertiserId: Advertiser ID of this event tag. This field or the campaignId// field is required on insertion.AdvertiserIdint64 `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.CampaignIdint64 `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.EnabledByDefaultbool `json:"enabledByDefault,omitempty"`// ExcludeFromAdxRequests: Whether to remove this event tag from ads that are// trafficked through Display & Video 360 to Ad Exchange. This may be useful if// the event tag uses a pixel that is unapproved for Ad Exchange bids on one or// more networks, such as the Google Display Network.ExcludeFromAdxRequestsbool `json:"excludeFromAdxRequests,omitempty"`// Id: ID of this event tag. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#eventTag".Kindstring `json:"kind,omitempty"`// Name: Name of this event tag. This is a required field and must be less than// 256 characters long.Namestring `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.//// Possible values://   "ALLOWLIST" - The event tag should only ever fire on specified sites.//   "BLOCKLIST" - The event tag should fire on all sites EXCEPT the specified// sites.SiteFilterTypestring `json:"siteFilterType,omitempty"`// SiteIds: Filter list of site IDs associated with this event tag. The// siteFilterType determines whether this is a allowlist or blocklist filter.SiteIdsgoogleapi.Int64s `json:"siteIds,omitempty"`// SslCompliant: Whether this tag is SSL-compliant or not. This is a read-only// field.SslCompliantbool `json:"sslCompliant,omitempty"`// Status: Status of this event tag. Must be ENABLED for this event tag to// fire. This is a required field.//// Possible values://   "ENABLED"//   "DISABLED"Statusstring `json:"status,omitempty"`// SubaccountId: Subaccount ID of this event tag. This is a read-only field// that can be left blank.SubaccountIdint64 `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.//// Possible values://   "IMPRESSION_IMAGE_EVENT_TAG" - A third-party pixel for impression// tracking.//   "IMPRESSION_JAVASCRIPT_EVENT_TAG" - A third-party JavaScript URL for// impression tracking.//   "CLICK_THROUGH_EVENT_TAG" - A third-party URL for click tracking that// redirects to the landing page.Typestring `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.Urlstring `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.UrlEscapeLevelsint64 `json:"urlEscapeLevels,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EventTag: Contains properties of an event tag.

func (EventTag)MarshalJSON

func (sEventTag) MarshalJSON() ([]byte,error)

typeEventTagOverride

type EventTagOverride struct {// Enabled: Whether this override is enabled.Enabledbool `json:"enabled,omitempty"`// Id: ID of this event tag override. This is a read-only, auto-generated// field.Idint64 `json:"id,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EventTagOverride: Event tag override information.

func (EventTagOverride)MarshalJSON

func (sEventTagOverride) MarshalJSON() ([]byte,error)

typeEventTagsDeleteCall

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

func (*EventTagsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*EventTagsDeleteCall)Do

Do executes the "dfareporting.eventTags.delete" call.

func (*EventTagsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventTagsDeleteCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEventTagsGetCall

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

func (*EventTagsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*EventTagsGetCall)Do

Do executes the "dfareporting.eventTags.get" call.Any non-2xx status code is an error. Response headers are in either*EventTag.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EventTagsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventTagsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EventTagsGetCall)IfNoneMatch

func (c *EventTagsGetCall) IfNoneMatch(entityTagstring) *EventTagsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEventTagsInsertCall

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

func (*EventTagsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*EventTagsInsertCall)Do

Do executes the "dfareporting.eventTags.insert" call.Any non-2xx status code is an error. Response headers are in either*EventTag.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EventTagsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventTagsInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEventTagsListCall

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

func (*EventTagsListCall)AdId

AdId sets the optional parameter "adId": Select only event tags that belongto this ad.

func (*EventTagsListCall)AdvertiserId

func (c *EventTagsListCall) AdvertiserId(advertiserIdint64) *EventTagsListCall

AdvertiserId sets the optional parameter "advertiserId": Select only eventtags that belong to this advertiser.

func (*EventTagsListCall)CampaignId

func (c *EventTagsListCall) CampaignId(campaignIdint64) *EventTagsListCall

CampaignId sets the optional parameter "campaignId": Select only event tagsthat belong to this campaign.

func (*EventTagsListCall)Context

Context sets the context to be used in this call's Do method.

func (*EventTagsListCall)DefinitionsOnly

func (c *EventTagsListCall) DefinitionsOnly(definitionsOnlybool) *EventTagsListCall

DefinitionsOnly sets the optional parameter "definitionsOnly": Examine onlythe specified campaign or advertiser's event tags for matching selectorcriteria. When set to false, the parent advertiser and parent campaign ofthe specified ad or campaign is examined as well. In addition, when set tofalse, the status field is examined as well, along with the enabledByDefaultfield. This parameter can not be set to true when adId is specified as adsdo not define their own even tags.

func (*EventTagsListCall)Do

Do executes the "dfareporting.eventTags.list" call.Any non-2xx status code is an error. Response headers are in either*EventTagsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*EventTagsListCall)Enabled

func (c *EventTagsListCall) Enabled(enabledbool) *EventTagsListCall

Enabled sets the optional parameter "enabled": Select only enabled eventtags. What is considered enabled or disabled depends on the definitionsOnlyparameter. When definitionsOnly is set to true, only the specifiedadvertiser or campaign's event tags' enabledByDefault field is examined.When definitionsOnly is set to false, the specified ad or specifiedcampaign'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 eventtags with the specified event tag types. Event tag types can be used tospecify whether to use a third-party pixel, a third-party JavaScript URL, ora third-party click-through URL for either impression or click tracking.

Possible values:

"IMPRESSION_IMAGE_EVENT_TAG" - A third-party pixel for impression

tracking.

"IMPRESSION_JAVASCRIPT_EVENT_TAG" - A third-party JavaScript URL for

impression tracking.

"CLICK_THROUGH_EVENT_TAG" - A third-party URL for click tracking that

redirects to the landing page.

func (*EventTagsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventTagsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EventTagsListCall)Ids

Ids sets the optional parameter "ids": Select only event tags with theseIDs.

func (*EventTagsListCall)IfNoneMatch

func (c *EventTagsListCall) IfNoneMatch(entityTagstring) *EventTagsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*EventTagsListCall)SearchString

func (c *EventTagsListCall) SearchString(searchStringstring) *EventTagsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 alsoadd wildcards implicitly at the start and the end of the search string. Forexample, a search string of "eventtag" will match objects with name "myeventtag", "eventtag 2015", or simply "eventtag".

func (*EventTagsListCall)SortField

func (c *EventTagsListCall) SortField(sortFieldstring) *EventTagsListCall

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

Possible values:

"ID" (default)"NAME"

func (*EventTagsListCall)SortOrder

func (c *EventTagsListCall) SortOrder(sortOrderstring) *EventTagsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeEventTagsListResponse

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".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "EventTags") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EventTags") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EventTagsListResponse: Event Tag List Response

func (EventTagsListResponse)MarshalJSON

func (sEventTagsListResponse) MarshalJSON() ([]byte,error)

typeEventTagsPatchCall

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

func (*EventTagsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*EventTagsPatchCall)Do

Do executes the "dfareporting.eventTags.patch" call.Any non-2xx status code is an error. Response headers are in either*EventTag.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EventTagsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventTagsPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEventTagsService

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

funcNewEventTagsService

func NewEventTagsService(s *Service) *EventTagsService

func (*EventTagsService)Delete

func (r *EventTagsService) Delete(profileIdint64, idint64) *EventTagsDeleteCall

Delete: Deletes an existing event tag.

- id: Event tag ID.- profileId: User profile ID associated with this request.

func (*EventTagsService)Get

func (r *EventTagsService) Get(profileIdint64, idint64) *EventTagsGetCall

Get: Gets one event tag by ID.

- id: Event tag ID.- profileId: User profile ID associated with this request.

func (*EventTagsService)Insert

func (r *EventTagsService) Insert(profileIdint64, eventtag *EventTag) *EventTagsInsertCall

Insert: Inserts a new event tag.

- profileId: User profile ID associated with this request.

func (*EventTagsService)List

func (r *EventTagsService) List(profileIdint64) *EventTagsListCall

List: Retrieves a list of event tags, possibly filtered.

- profileId: User profile ID associated with this request.

func (*EventTagsService)Patch

func (r *EventTagsService) Patch(profileIdint64, idint64, eventtag *EventTag) *EventTagsPatchCall

Patch: Updates an existing event tag. This method supports patch semantics.

- id: EventTag ID.- profileId: User profile ID associated with this request.

func (*EventTagsService)Update

func (r *EventTagsService) Update(profileIdint64, eventtag *EventTag) *EventTagsUpdateCall

Update: Updates an existing event tag.

- profileId: User profile ID associated with this request.

typeEventTagsUpdateCall

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

func (*EventTagsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*EventTagsUpdateCall)Do

Do executes the "dfareporting.eventTags.update" call.Any non-2xx status code is an error. Response headers are in either*EventTag.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EventTagsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EventTagsUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFeedField

type FeedField struct {// DefaultValue: Optional. The default value of the field.DefaultValuestring `json:"defaultValue,omitempty"`// Filterable: Optional. Whether the field is filterable. Could be set as true// when the field type is any of the following and is not renderable: - STRING// - BOOL - COUNTRY_CODE_ISO - CM360_SITE_ID - CM360_KEYWORD -// CM360_CREATIVE_ID - CM360_PLACEMENT_ID - CM360_AD_ID - CM360_ADVERTISER_ID -// CM360_CAMPAIGN_ID - CITY - REGION - POSTAL_CODE - METRO - CUSTOM_VALUE -// REMARKETING_VALUE - GEO_CANONICAL - STRING_LIST - CREATIVE_DIMENSION -// USERLIST_ID - CM360_DYNAMIC_TARGETING_KEY - DV360_LINE_ITEM_IDFilterablebool `json:"filterable,omitempty"`// Id: Required. The ID of the field. The ID is based on the column index// starting from 0, and it should match the column index in the resource link.Idint64 `json:"id,omitempty"`// Name: Required. The name of the field.Namestring `json:"name,omitempty"`// Renderable: Optional. Whether the field is able to display. Could be set as// true when the field type is not in any of the following and the field is not// filterable: - COUNTRY_CODE_ISO - CITY - REGION - POSTAL_CODE - METRO -// GEO_CANONICAL - USERLIST_ID - CONTEXTUAL_KEYWORD -// CM360_DYNAMIC_TARGETING_KEY - WEIGHTRenderablebool `json:"renderable,omitempty"`// Required: Optional. Whether the field is required and should not be empty in// the feed. Could be set as true when the field type is any of the following:// - GPA_SERVED_IMAGE_URL - GPA_SERVED_ASSET_URL - ASSET_LIBRARY_HANDLE -// ASSET_LIBRARY_VIDEO_HANDLE - ASSET_LIBRARY_DIRECTORY_HANDLERequiredbool `json:"required,omitempty"`// Type: Required. The type of the field.//// Possible values://   "TYPE_UNKNOWN" - The type is unspecified. This is an unused value.//   "STRING" - The field type is text.//   "LONG" - The field type is whole number.//   "GPA_SERVED_IMAGE_URL" - The field type is image url//   "GPA_SERVED_ASSET_URL" - The field type is asset url.//   "COUNTRY_CODE_ISO" - The field type is the ISO 3166-2 alpha-2 codes. It is// two-letter country codes defined in ISO 3166-1 published by the// International Organization for Standardization.//   "FLOAT" - The field type is decimal.//   "CM360_KEYWORD" - The field type is custom CM360 ad tag parameter.//   "CM360_SITE_ID" - The field type is CM360 site ID.//   "BOOL" - The field type is boolean.//   "EXIT_URL" - The field type is exit url.//   "DATETIME" - The field type is datetime.//   "CM360_CREATIVE_ID" - The field type is CM360 creative ID.//   "CM360_PLACEMENT_ID" - The field type is CM360 placement ID.//   "CM360_AD_ID" - The field type is CM360 ad ID.//   "CM360_ADVERTISER_ID" - The field type is CM360 advertiser ID.//   "CM360_CAMPAIGN_ID" - The field type is CM360 campaign ID.//   "CITY" - The field type is cities.//   "REGION" - The field type is region.//   "POSTAL_CODE" - The field type is postal code.//   "METRO" - The field type is metro code.//   "CUSTOM_VALUE" - The field type is custom value.//   "REMARKETING_VALUE" - The field type is remarketing value.//   "GEO_CANONICAL" - The field type is accurate geographic type.//   "WEIGHT" - The field type is weight.//   "STRING_LIST" - The field type is a list of values.//   "CREATIVE_DIMENSION" - The field type is creative dimension.//   "USERLIST_ID" - The field type is CM/DV360 Audience ID.//   "ASSET_LIBRARY_DIRECTORY_HANDLE" - The field type is AssetLibrary// directory path.//   "ASSET_LIBRARY_VIDEO_HANDLE" - The field type is AssetLibrary video file// path.//   "ASSET_LIBRARY_HANDLE" - The field type is AssetLibrary path.//   "THIRD_PARTY_SERVED_URL" - The field type is third party served url.//   "CM360_DYNAMIC_TARGETING_KEY" - The field type is CM dynamic targeting// key.//   "DV360_LINE_ITEM_ID" - The field type is DV360 line item ID.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FeedField: Each field of the element. This is a required field.

func (FeedField)MarshalJSON

func (sFeedField) MarshalJSON() ([]byte,error)

typeFeedIngestionStatus

type FeedIngestionStatus struct {// IngestionErrorRecords: Output only. The ingestion error records of the feed.IngestionErrorRecords []*IngestionErrorRecord `json:"ingestionErrorRecords,omitempty"`// IngestionStatus: Output only. The ingestion status of the feed.IngestionStatus *IngestionStatus `json:"ingestionStatus,omitempty"`// State: Output only. The processing state of the feed.//// Possible values://   "FEED_PROCESSING_STATE_UNKNOWN" - The feed processing state is unknown.//   "CANCELLED" - The feed processing state is cancelled.//   "INGESTING_QUEUED" - The feed processing state is ingesting queued.//   "INGESTING" - The feed processing state is ingesting.//   "INGESTED_SUCCESS" - The feed processing state is ingested successfully.//   "INGESTED_FAILURE" - The feed processing state is ingested with failure.//   "REQUEST_TO_PUBLISH" - The feed processing state is request to publish.//   "PUBLISHING" - The feed processing state is publishing.//   "PUBLISHED_SUCCESS" - The feed processing state is published successfully.//   "PUBLISHED_FAILURE" - The feed processing state is published with failure.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "IngestionErrorRecords") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IngestionErrorRecords") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FeedIngestionStatus: Contains the ingestion status of the dynamic feed. Feedingestion is an asynchronous process. If the feed create request issuccessful, feed ingestion will be processed in the background, includingvalidation, assets retrieval, and saving the data from the resource link.The processing time is dependent on the data size in the resource link. Thisread-only status field contains the current stage of that processing and itsingestion state.

func (FeedIngestionStatus)MarshalJSON

func (sFeedIngestionStatus) MarshalJSON() ([]byte,error)

typeFeedSchedule

type FeedSchedule struct {// RepeatValue: Optional. The number of times the feed retransforms within one// day. This is a required field if the schedule is enabled. Acceptable values// are between 1 to 6, inclusive.RepeatValueint64 `json:"repeatValue,omitempty,string"`// ScheduleEnabled: Optional. Whether the schedule is enabled.ScheduleEnabledbool `json:"scheduleEnabled,omitempty"`// StartHour: Optional. The hour of the day to start the feed. It is applicable// if the repeat value is equal to 1. Default value is 0.StartHourstring `json:"startHour,omitempty"`// StartMinute: Optional. The minute of the hour to start the feed. It is// applicable if the repeat value is equal to 1. Default value is 0.StartMinutestring `json:"startMinute,omitempty"`// TimeZone: Optional. The time zone to schedule the feed. It is applicable if// the repeat value is equal to 1. Default value is "America/Los_Angeles".TimeZonestring `json:"timeZone,omitempty"`// ForceSendFields is a list of field names (e.g. "RepeatValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "RepeatValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FeedSchedule: Contains the schedule of the dynamic feed.

func (FeedSchedule)MarshalJSON

func (sFeedSchedule) MarshalJSON() ([]byte,error)

typeFieldError

type FieldError struct {// FieldId: Output only. The ID of the field.FieldIdint64 `json:"fieldId,omitempty"`// FieldName: Output only. The name of the field.FieldNamestring `json:"fieldName,omitempty"`// FieldValues: Output only. The list of values of the field.FieldValues []string `json:"fieldValues,omitempty"`// IngestionError: Output only. The ingestion error of the field.//// Possible values://   "UNKNOWN_PARSING_ERROR" - The ingestion error is unknown.//   "MISSING_ID" - The ingestion error when the ID value is missing.//   "MISSING_REPORTING_LABEL" - The ingestion error when the element value// name used for reporting is missing.//   "EMPTY_VALUE" - The ingestion error when a required value is empty//   "ASSET_DOWNLOAD_ERROR" - The ingestion error when asset retrieval fails// for a particular image or asset.//   "ID_TOO_LONG" - The ingestion error when the ID value exceeds the string// length limit.//   "DUPLICATE_ID" - The ingestion error when the ID value is duplicate.//   "PARSING_ERROR" - The ingestion error when parsing the field fails.//   "COUNTRY_PARSING_ERROR" - The ingestion error when parsing the country// code fails.//   "LONG_PARSING_ERROR" - The ingestion error when parsing the long value// fails.//   "BOOL_PARSING_ERROR" - The ingestion error when parsing the boolean value// fails.//   "EXPANDED_URL_PARSING_ERROR" - The ingestion error when parsing the// expanded url fails.//   "FLOAT_PARSING_ERROR" - The ingestion error when parsing the float value// fails.//   "DATETIME_PARSING_ERROR" - The ingestion error when parsing the datetime// value fails.//   "INVALID_PREFERENCE_VALUE" - The ingestion error when the preference value// is not a positive float.//   "GEO_NOT_FOUND_ERROR" - The ingestion error when a geo location is not// found.//   "GEO_PARSING_ERROR" - The ingestion error when parsing the geo field// fails.//   "GEO_PROXIMITY_TARGETING_MULTIPLE_LOCATION_ERROR" - The ingestion error// when a feed row has multiple geotargets with proximity targeting enabled.//   "POSTAL_CODE_PARSING_ERROR" - The ingestion error when parsing the postal// code value fails.//   "METRO_CODE_PARSING_ERROR" - The ingestion error when parsing the metro// code value fails.//   "DATETIME_WITHOUT_TIMEZONE_PARSING_ERROR" - The ingestion error when// parsing the datetime value fails.//   "WEIGHT_PARSING_ERROR" - The ingestion error when parsing the weight value// fails.//   "CREATIVE_DIMENSION_PARSING_ERROR" - The ingestion error when parsing the// creative dimension value fails.//   "MULTIVALUE_ID" - The ingestion error when a STRING_LIST type ID has// multiple values.//   "ENDTIME_BEFORE_STARTTIME" - The ingestion error when the end time is// before the start time.//   "INVALID_ASSET_LIBRARY_HANDLE" - The ingestion error when the asset// library handle is invalid.//   "INVALID_ASSET_LIBRARY_VIDEO_HANDLE" - The ingestion error when the asset// library video handle is invalid.//   "INVALID_ASSET_LIBRARY_DIRECTORY_HANDLE" - The ingestion error when the// asset library directory handle is invalid.//   "DYNAMIC_TARGETING_KEY_NOT_DEFINED_FOR_ADVERTISER" - The ingestion error// when a targeting key used but not defined for the CM360 Advertiser.//   "USERLIST_ID_NOT_ACCESSIBLE_FOR_ADVERTISER" - The ingestion error when the// userlist ID is not accessible for the CM360 Advertiser.//   "ENDTIME_PASSED" - The ingestion error when the end time is passed.//   "ENDTIME_TOO_SOON" - The ingestion error when the end time is in the near// future (i.e., <7 days).//   "TEXT_ASSET_REFERENCE" - The ingestion error when a text field specifies a// reference to an asset.//   "IMAGE_ASSET_SCS_REFERENCE" - The ingestion error when Image field// specifies a reference to an asset hosted on SCS (s0.2mdn.net/s0qa.2mdn.net).//   "AIRPORT_GEO_TARGET" - The ingestion error when a geo target is an// airport.//   "CANONICAL_NAME_QUERY_MISMATCH" - The ingestion error when the geo// target's canonical name does not match the query string used to obtain it.//   "NO_DEFAULT_ROW" - The ingestion error or warning when the default row is// not set.//   "NO_ACTIVE_DEFAULT_ROW" - The ingestion error or warning when the default// row is not active.//   "NO_DEFAULT_ROW_IN_DATE_RANGE" - The ingestion error or warning when the// default row is not in the date range.//   "NO_ACTIVE_DEFAULT_ROW_IN_DATE_RANGE" - The ingestion error or warning// when the default row is not in the date range.//   "PAYLOAD_LIMIT_EXCEEDED" - The ingestion error when when the payload of// the record is above a threshold.//   "SSL_NOT_COMPLIANT" - The ingestion error or warning when the field is not// SSL compliant.IngestionErrorstring `json:"ingestionError,omitempty"`// IsError: Output only. Incidcates whether the field has error or warning.IsErrorbool `json:"isError,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FieldError: Contains the field error of the dynamic feed.

func (FieldError)MarshalJSON

func (sFieldError) MarshalJSON() ([]byte,error)

typeFieldFilter

type FieldFilter struct {// BoolValue: Optional. The boolean values, only applicable when rhs_value_type// is BOOL.BoolValuebool `json:"boolValue,omitempty"`// DependentFieldValue: Optional. The dependent values, only applicable when// rhs_value_type is DEPENDENT.DependentFieldValue *DependentFieldValue `json:"dependentFieldValue,omitempty"`// FieldId: Optional. The field ID on the left hand side of the expression.FieldIdint64 `json:"fieldId,omitempty"`// MatchType: Optional. Left hand side of the expression match type.//// Possible values://   "LHS_MATCH_TYPE_UNKNOWN" - The left hand side of the expression is// unknown. This value is unused.//   "EQUALS_OR_UNRESTRICTED" - The left hand side of the expression is equals// or unrestricted. It is the default value.//   "EQUALS" - The left hand side of the expression is equals.//   "UNRESTRICTED" - The left hand side of the expression is unrestricted.// Unrestricted is used to target fields with no restrictions. For example,// country targeting fields hold a list of countries. If the list is empty, we// consider the element value to have no restrictions.//   "NOT_EQUALS" - Left hand side of the expression is not equals. Not equals// specifies which fields should not be targeted.MatchTypestring `json:"matchType,omitempty"`// RequestValue: Optional. The request value, only applicable when// rhs_value_type is REQUEST.RequestValue *RequestValue `json:"requestValue,omitempty"`// StringValue: Optional. The string value, only applicable when rhs_value_type// is STRING.StringValuestring `json:"stringValue,omitempty"`// ValueType: Optional. Right hand side of the expression.//// Possible values://   "RHS_VALUE_TYPE_UNKNOWN" - The right hand side of the expression is// unknown. This value is unused.//   "STRING" - The right hand side of the expression is a string.//   "REQUEST" - The right hand side of the expression is a request value.//   "BOOL" - The right hand side of the expression is a boolean.//   "DEPENDENT" - The right hand side of the expression is a dependent field// value.ValueTypestring `json:"valueType,omitempty"`// ForceSendFields is a list of field names (e.g. "BoolValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BoolValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FieldFilter: Contains field filter information.

func (FieldFilter)MarshalJSON

func (sFieldFilter) MarshalJSON() ([]byte,error)

typeFile

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: Etag of this resource.Etagstring `json:"etag,omitempty"`// FileName: The filename of the file.FileNamestring `json:"fileName,omitempty"`// Format: The output format of the report. Only available once the file is// available.//// Possible values://   "CSV"//   "EXCEL"Formatstring `json:"format,omitempty"`// Id: The unique ID of this report file.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#file".Kindstring `json:"kind,omitempty"`// LastModifiedTime: The timestamp in milliseconds since epoch when this file// was last modified.LastModifiedTimeint64 `json:"lastModifiedTime,omitempty,string"`// ReportId: The ID of the report this file was generated from.ReportIdint64 `json:"reportId,omitempty,string"`// Status: The status of the report file.//// Possible values://   "PROCESSING"//   "REPORT_AVAILABLE"//   "FAILED"//   "CANCELLED"//   "QUEUED"Statusstring `json:"status,omitempty"`// Urls: The URLs where the completed report file can be downloaded.Urls *FileUrls `json:"urls,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DateRange") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DateRange") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

File: Represents a File resource. A file contains the metadata for a reportrun. It shows the status of the run and holds the URLs to the generatedreport data if the run is finished and the status is "REPORT_AVAILABLE".

func (File)MarshalJSON

func (sFile) MarshalJSON() ([]byte,error)

typeFileList

type FileList struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Items: The files returned in this response.Items []*File `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#fileList".Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FileList: List of files for a report.

func (FileList)MarshalJSON

func (sFileList) MarshalJSON() ([]byte,error)

typeFileUrls

type FileUrls struct {// ApiUrl: The URL for downloading the report data through the API.ApiUrlstring `json:"apiUrl,omitempty"`// BrowserUrl: The URL for downloading the report data through a browser.BrowserUrlstring `json:"browserUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "ApiUrl") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApiUrl") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FileUrls: The URLs where the completed report file can be downloaded.

func (FileUrls)MarshalJSON

func (sFileUrls) MarshalJSON() ([]byte,error)

typeFilesGetCall

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

func (*FilesGetCall)Context

func (c *FilesGetCall) Context(ctxcontext.Context) *FilesGetCall

Context sets the context to be used in this call's Do and Download methods.

func (*FilesGetCall)Do

func (c *FilesGetCall) Do(opts ...googleapi.CallOption) (*File,error)

Do executes the "dfareporting.files.get" call.Any non-2xx status code is an error. Response headers are in either*File.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*FilesGetCall)Download

func (c *FilesGetCall) Download(opts ...googleapi.CallOption) (*http.Response,error)

Download fetches the API endpoint's "media" value, instead of the normalAPI response value. If the returned error is nil, the Response is guaranteed tohave a 2xx status code. Callers must close the Response.Body as usual.

func (*FilesGetCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FilesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FilesGetCall)IfNoneMatch

func (c *FilesGetCall) IfNoneMatch(entityTagstring) *FilesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFilesListCall

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

func (*FilesListCall)Context

Context sets the context to be used in this call's Do method.

func (*FilesListCall)Do

Do executes the "dfareporting.files.list" call.Any non-2xx status code is an error. Response headers are in either*FileList.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*FilesListCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FilesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FilesListCall)IfNoneMatch

func (c *FilesListCall) IfNoneMatch(entityTagstring) *FilesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*FilesListCall)MaxResults

func (c *FilesListCall) MaxResults(maxResultsint64) *FilesListCall

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

func (*FilesListCall)PageToken

func (c *FilesListCall) PageToken(pageTokenstring) *FilesListCall

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

func (*FilesListCall)Pages

func (c *FilesListCall) Pages(ctxcontext.Context, f func(*FileList)error)error

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

func (*FilesListCall)Scope

func (c *FilesListCall) Scope(scopestring) *FilesListCall

Scope sets the optional parameter "scope": The scope that defines whichresults are returned.

Possible values:

"ALL" - All files in account."MINE" (default) - My files."SHARED_WITH_ME" - Files shared with me.

func (*FilesListCall)SortField

func (c *FilesListCall) SortField(sortFieldstring) *FilesListCall

SortField sets the optional parameter "sortField": The field by which tosort the list.

Possible values:

"ID" - Sort by file ID."LAST_MODIFIED_TIME" (default) - Sort by 'lastmodifiedAt' field.

func (*FilesListCall)SortOrder

func (c *FilesListCall) SortOrder(sortOrderstring) *FilesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" - Ascending order."DESCENDING" (default) - Descending order.

typeFilesService

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

funcNewFilesService

func NewFilesService(s *Service) *FilesService

func (*FilesService)Get

func (r *FilesService) Get(reportIdint64, fileIdint64) *FilesGetCall

Get: Retrieves a report file by its report ID and file ID. This methodsupports media download.

- fileId: The ID of the report file.- reportId: The ID of the report.

func (*FilesService)List

func (r *FilesService) List(profileIdint64) *FilesListCall

List: Lists files for a user profile.

- profileId: The Campaign Manager 360 user profile ID.

typeFloodlightActivitiesDeleteCall

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

func (*FloodlightActivitiesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesDeleteCall)Do

Do executes the "dfareporting.floodlightActivities.delete" call.

func (*FloodlightActivitiesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivitiesGenerateTagResponse

type FloodlightActivitiesGenerateTagResponse struct {// FloodlightActivityTag: Generated tag for this Floodlight activity. For// Google tags, this is the event snippet.FloodlightActivityTagstring `json:"floodlightActivityTag,omitempty"`// GlobalSiteTagGlobalSnippet: The global snippet section of a Google tag. The// Google tag sets new cookies on your domain, which will store a unique// identifier for a user or the ad click that brought the user to your site.// Learn more.GlobalSiteTagGlobalSnippetstring `json:"globalSiteTagGlobalSnippet,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#floodlightActivitiesGenerateTagResponse".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FloodlightActivityTag") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FloodlightActivityTag") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivitiesGenerateTagResponse: Floodlight Activity GenerateTagResponse

func (FloodlightActivitiesGenerateTagResponse)MarshalJSON

typeFloodlightActivitiesGeneratetagCall

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

func (*FloodlightActivitiesGeneratetagCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesGeneratetagCall)Do

Do executes the "dfareporting.floodlightActivities.generatetag" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivitiesGenerateTagResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivitiesGeneratetagCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesGeneratetagCall)FloodlightActivityId

func (c *FloodlightActivitiesGeneratetagCall) FloodlightActivityId(floodlightActivityIdint64) *FloodlightActivitiesGeneratetagCall

FloodlightActivityId sets the optional parameter "floodlightActivityId":Floodlight activity ID for which we want to generate a tag.

func (*FloodlightActivitiesGeneratetagCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivitiesGetCall

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

func (*FloodlightActivitiesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesGetCall)Do

Do executes the "dfareporting.floodlightActivities.get" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivity.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FloodlightActivitiesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FloodlightActivitiesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFloodlightActivitiesInsertCall

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

func (*FloodlightActivitiesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesInsertCall)Do

Do executes the "dfareporting.floodlightActivities.insert" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivity.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FloodlightActivitiesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivitiesListCall

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

func (*FloodlightActivitiesListCall)AdvertiserId

AdvertiserId sets the optional parameter "advertiserId": Select onlyfloodlight activities for the specified advertiser ID. Must specify eitherids, advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivitiesListCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesListCall)Do

Do executes the "dfareporting.floodlightActivities.list" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivitiesListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivitiesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesListCall)FloodlightActivityGroupIds

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupIds(floodlightActivityGroupIds ...int64) *FloodlightActivitiesListCall

FloodlightActivityGroupIds sets the optional parameter"floodlightActivityGroupIds": Select only floodlight activities with thespecified floodlight activity group IDs.

func (*FloodlightActivitiesListCall)FloodlightActivityGroupName

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupName(floodlightActivityGroupNamestring) *FloodlightActivitiesListCall

FloodlightActivityGroupName sets the optional parameter"floodlightActivityGroupName": Select only floodlight activities with thespecified floodlight activity group name.

func (*FloodlightActivitiesListCall)FloodlightActivityGroupTagString

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupTagString(floodlightActivityGroupTagStringstring) *FloodlightActivitiesListCall

FloodlightActivityGroupTagString sets the optional parameter"floodlightActivityGroupTagString": Select only floodlight activities withthe specified floodlight activity group tag string.

func (*FloodlightActivitiesListCall)FloodlightActivityGroupType

func (c *FloodlightActivitiesListCall) FloodlightActivityGroupType(floodlightActivityGroupTypestring) *FloodlightActivitiesListCall

FloodlightActivityGroupType sets the optional parameter"floodlightActivityGroupType": Select only floodlight activities with thespecified floodlight activity group type.

Possible values:

"COUNTER""SALE"

func (*FloodlightActivitiesListCall)FloodlightConfigurationId

func (c *FloodlightActivitiesListCall) FloodlightConfigurationId(floodlightConfigurationIdint64) *FloodlightActivitiesListCall

FloodlightConfigurationId sets the optional parameter"floodlightConfigurationId": Select only floodlight activities for thespecified floodlight configuration ID. Must specify either ids,advertiserId, or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivitiesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FloodlightActivitiesListCall)Ids

Ids sets the optional parameter "ids": Select only floodlight activitieswith the specified IDs. Must specify either ids, advertiserId, orfloodlightConfigurationId for a non-empty result.

func (*FloodlightActivitiesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*FloodlightActivitiesListCall)MaxResults

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

func (*FloodlightActivitiesListCall)PageToken

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

func (*FloodlightActivitiesListCall)Pages

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

func (*FloodlightActivitiesListCall)SearchString

SearchString sets the optional parameter "searchString": Allows searchingfor 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 wildcardsimplicitly at the start and the end of the search string. For example, asearch string of "floodlightactivity" will match objects with name "myfloodlightactivity activity", "floodlightactivity 2015", or simply"floodlightactivity".

func (*FloodlightActivitiesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*FloodlightActivitiesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*FloodlightActivitiesListCall)TagString

TagString sets the optional parameter "tagString": Select only floodlightactivities with the specified tag string.

typeFloodlightActivitiesListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FloodlightActivities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FloodlightActivities") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivitiesListResponse: Floodlight Activity List Response

func (FloodlightActivitiesListResponse)MarshalJSON

func (sFloodlightActivitiesListResponse) MarshalJSON() ([]byte,error)

typeFloodlightActivitiesPatchCall

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

func (*FloodlightActivitiesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesPatchCall)Do

Do executes the "dfareporting.floodlightActivities.patch" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivity.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FloodlightActivitiesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivitiesService

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

funcNewFloodlightActivitiesService

func NewFloodlightActivitiesService(s *Service) *FloodlightActivitiesService

func (*FloodlightActivitiesService)Delete

Delete: Deletes an existing floodlight activity.

- id: Floodlight activity ID.- profileId: User profile ID associated with this request.

func (*FloodlightActivitiesService)Generatetag

Generatetag: Generates a tag for a floodlight activity.

- profileId: User profile ID associated with this request.

func (*FloodlightActivitiesService)Get

Get: Gets one floodlight activity by ID.

- id: Floodlight activity ID.- profileId: User profile ID associated with this request.

func (*FloodlightActivitiesService)Insert

Insert: Inserts a new floodlight activity.

- profileId: User profile ID associated with this request.

func (*FloodlightActivitiesService)List

List: Retrieves a list of floodlight activities, possibly filtered. Thismethod supports paging.

- profileId: User profile ID associated with this request.

func (*FloodlightActivitiesService)Patch

Patch: Updates an existing floodlight activity. This method supports patchsemantics.

- id: EventTag ID.- profileId: User profile ID associated with this request.

func (*FloodlightActivitiesService)Update

Update: Updates an existing floodlight activity.

- profileId: User profile ID associated with this request.

typeFloodlightActivitiesUpdateCall

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

func (*FloodlightActivitiesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivitiesUpdateCall)Do

Do executes the "dfareporting.floodlightActivities.update" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivity.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*FloodlightActivitiesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivitiesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivity

type FloodlightActivity struct {// AccountId: Account ID of this floodlight activity. This is a read-only field// that can be left blank.AccountIdint64 `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.AdvertiserIdint64 `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"`// AttributionEnabled: Whether the activity is enabled for attribution.AttributionEnabledbool `json:"attributionEnabled,omitempty"`// CacheBustingType: Code type used for cache busting in the generated tag.// Applicable only when floodlightActivityGroupType is COUNTER and// countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING.//// Possible values://   "JAVASCRIPT"//   "ACTIVE_SERVER_PAGE"//   "JSP"//   "PHP"//   "COLD_FUSION"CacheBustingTypestring `json:"cacheBustingType,omitempty"`// ConversionCategory: Required. The conversion category of the activity.//// Possible values://   "CONVERSION_CATEGORY_DEFAULT" - Unspecified category (called "Other"// externally).//   "CONVERSION_CATEGORY_PURCHASE" - Purchase, sales, or "order placed" event.//   "CONVERSION_CATEGORY_SIGNUP" - Signup user action.//   "CONVERSION_CATEGORY_PAGE_VIEW" - User visiting a page.//   "CONVERSION_CATEGORY_DOWNLOAD" - Software download action (as for an app).// A conversion type that is created as a download type may not have its// category changed.//   "CONVERSION_CATEGORY_BOOM_EVENT" - Boom event (for user list creation).// This is an internal-only category.//   "CONVERSION_CATEGORY_ADD_TO_CART" - . The addition of items to a shopping// cart or bag on an advertiser site.//   "CONVERSION_CATEGORY_BEGIN_CHECKOUT" - When someone enters the checkout// flow on an advertiser site.//   "CONVERSION_CATEGORY_SUBSCRIBE_PAID" - The start of a paid subscription// for a product or service.//   "CONVERSION_CATEGORY_SUBSCRIBE_FREE" - The start of a free subscription// for a product or service.//   "CONVERSION_CATEGORY_PHONE_CALL_LEAD" - A call to indicate interesting in// an advertiser's offering. Note: this is different from support calls.//   "CONVERSION_CATEGORY_IMPORTED_LEAD" - A lead conversion imported from an// external source into Google Ads.//   "CONVERSION_CATEGORY_SUBMIT_LEAD_FORM" - A submission of a form on an// advertiser site indicating business interest.//   "CONVERSION_CATEGORY_BOOK_APPOINTMENT" - A booking of an appointment with// an advertiser's business.//   "CONVERSION_CATEGORY_REQUEST_QUOTE" - A quote or price estimate request.//   "CONVERSION_CATEGORY_GET_DIRECTIONS" - A search for an advertiser's// business location.//   "CONVERSION_CATEGORY_OUTBOUND_CLICK" - A click to an advertiser's partner// site, e.g. a referral.//   "CONVERSION_CATEGORY_CONTACT" - A call, SMS, email, chat or other type of// contact to an advertiser.//   "CONVERSION_CATEGORY_VIEW_KEY_PAGE" - Key page views (ex: product page,// article).//   "CONVERSION_CATEGORY_ENGAGEMENT" - A website engagement event//   "CONVERSION_CATEGORY_STORE_VISIT" - A visit to a physical store location.//   "CONVERSION_CATEGORY_STORE_SALE" - A sale occurring in a physical store.//   "CONVERSION_CATEGORY_QUALIFIED_LEAD" - A lead conversion imported from an// external source into Google Ads, that has been further qualified by the// advertiser.//   "CONVERSION_CATEGORY_CONVERTED_LEAD" - A lead conversion imported from an// external source into Google Ads, that has further completed a desired stage// as defined by the lead gen advertiser.//   "CONVERSION_CATEGORY_IN_APP_AD_REVENUE" - Conversion event that provides// the revenue value of impressions that were shown in-app to users.//   "CONVERSION_CATEGORY_MESSAGE_LEAD" - Message exchanges which indicate an// interest in an advertiser's offering.ConversionCategorystring `json:"conversionCategory,omitempty"`// CountingMethod: Counting method for conversions for this floodlight// activity. This is a required field.//// Possible values://   "STANDARD_COUNTING" - Count every conversion.//   "UNIQUE_COUNTING" - Count the first conversion for each unique user during// each 24-hour day, from midnight to midnight, Eastern Time.//   "SESSION_COUNTING" - Count one conversion per user per session. Session// length is set by the site where the Spotlight tag is deployed.//   "TRANSACTIONS_COUNTING" - Count all conversions, plus the total number of// sales that take place and the total revenue for these transactions.//   "ITEMS_SOLD_COUNTING" - Count each conversion, plus the total number of// items sold and the total revenue for these sales.CountingMethodstring `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.ExpectedUrlstring `json:"expectedUrl,omitempty"`// FloodlightActivityGroupId: Floodlight activity group ID of this floodlight// activity. This is a required field.FloodlightActivityGroupIdint64 `json:"floodlightActivityGroupId,omitempty,string"`// FloodlightActivityGroupName: Name of the associated floodlight activity// group. This is a read-only field.FloodlightActivityGroupNamestring `json:"floodlightActivityGroupName,omitempty"`// FloodlightActivityGroupTagString: Tag string of the associated floodlight// activity group. This is a read-only field.FloodlightActivityGroupTagStringstring `json:"floodlightActivityGroupTagString,omitempty"`// FloodlightActivityGroupType: Type of the associated floodlight activity// group. This is a read-only field.//// Possible values://   "COUNTER"//   "SALE"FloodlightActivityGroupTypestring `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.FloodlightConfigurationIdint64 `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"`// FloodlightTagType: The type of Floodlight tag this activity will generate.// This is a required field.//// Possible values://   "IFRAME"//   "IMAGE"//   "GLOBAL_SITE_TAG"FloodlightTagTypestring `json:"floodlightTagType,omitempty"`// Id: ID of this floodlight activity. This is a read-only, auto-generated// field.Idint64 `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"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#floodlightActivity".Kindstring `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.Namestring `json:"name,omitempty"`// Notes: General notes or implementation instructions for the tag.Notesstring `json:"notes,omitempty"`// PublisherTags: Publisher dynamic floodlight tags.PublisherTags []*FloodlightActivityPublisherDynamicTag `json:"publisherTags,omitempty"`// Secure: Whether this tag should use SSL.Securebool `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.SslCompliantbool `json:"sslCompliant,omitempty"`// SslRequired: Whether this floodlight activity must be SSL-compliant.SslRequiredbool `json:"sslRequired,omitempty"`// Status: The status of the activity. This can only be set to ACTIVE or// ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot// be set for Floodlight activities. The DISABLED_POLICY status indicates that// a Floodlight activity is violating Google policy. Contact your account// manager for more information.//// Possible values://   "ACTIVE"//   "ARCHIVED_AND_DISABLED"//   "ARCHIVED"//   "DISABLED_POLICY"Statusstring `json:"status,omitempty"`// SubaccountId: Subaccount ID of this floodlight activity. This is a read-only// field that can be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// TagFormat: Tag format type for the floodlight activity. If left blank, the// tag format will default to HTML.//// Possible values://   "HTML"//   "XHTML"TagFormatstring `json:"tagFormat,omitempty"`// TagString: Value of the cat= parameter 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-z0-9[ _ ]. This tag string must also be// unique among activities of the same activity group. This field is read-only// after insertion.TagStringstring `json:"tagString,omitempty"`// UserDefinedVariableTypes: List of the user-defined variables used by this// conversion tag. These map to the "u[1-100]=" in the tags. Each of these can// have a user defined type. Acceptable values are U1 to U100, inclusive.//// Possible values://   "U1"//   "U2"//   "U3"//   "U4"//   "U5"//   "U6"//   "U7"//   "U8"//   "U9"//   "U10"//   "U11"//   "U12"//   "U13"//   "U14"//   "U15"//   "U16"//   "U17"//   "U18"//   "U19"//   "U20"//   "U21"//   "U22"//   "U23"//   "U24"//   "U25"//   "U26"//   "U27"//   "U28"//   "U29"//   "U30"//   "U31"//   "U32"//   "U33"//   "U34"//   "U35"//   "U36"//   "U37"//   "U38"//   "U39"//   "U40"//   "U41"//   "U42"//   "U43"//   "U44"//   "U45"//   "U46"//   "U47"//   "U48"//   "U49"//   "U50"//   "U51"//   "U52"//   "U53"//   "U54"//   "U55"//   "U56"//   "U57"//   "U58"//   "U59"//   "U60"//   "U61"//   "U62"//   "U63"//   "U64"//   "U65"//   "U66"//   "U67"//   "U68"//   "U69"//   "U70"//   "U71"//   "U72"//   "U73"//   "U74"//   "U75"//   "U76"//   "U77"//   "U78"//   "U79"//   "U80"//   "U81"//   "U82"//   "U83"//   "U84"//   "U85"//   "U86"//   "U87"//   "U88"//   "U89"//   "U90"//   "U91"//   "U92"//   "U93"//   "U94"//   "U95"//   "U96"//   "U97"//   "U98"//   "U99"//   "U100"UserDefinedVariableTypes []string `json:"userDefinedVariableTypes,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivity: Contains properties of a Floodlight activity.

func (FloodlightActivity)MarshalJSON

func (sFloodlightActivity) MarshalJSON() ([]byte,error)

typeFloodlightActivityDynamicTag

type FloodlightActivityDynamicTag struct {// Id: ID of this dynamic tag. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Name: Name of this tag.Namestring `json:"name,omitempty"`// Tag: Tag code.Tagstring `json:"tag,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivityDynamicTag: Dynamic Tag

func (FloodlightActivityDynamicTag)MarshalJSON

func (sFloodlightActivityDynamicTag) MarshalJSON() ([]byte,error)

typeFloodlightActivityGroup

type FloodlightActivityGroup struct {// AccountId: Account ID of this floodlight activity group. This is a read-only// field that can be left blank.AccountIdint64 `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.AdvertiserIdint64 `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.FloodlightConfigurationIdint64 `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.Idint64 `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".Kindstring `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.Namestring `json:"name,omitempty"`// SubaccountId: Subaccount ID of this floodlight activity group. This is a// read-only field that can be left blank.SubaccountIdint64 `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-z0-9[ _// ]. This tag string must also be unique among activity groups of the same// floodlight configuration. This field is read-only after insertion.TagStringstring `json:"tagString,omitempty"`// Type: Type of the floodlight activity group. This is a required field that// is read-only after insertion.//// Possible values://   "COUNTER"//   "SALE"Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivityGroup: Contains properties of a Floodlight activity group.

func (FloodlightActivityGroup)MarshalJSON

func (sFloodlightActivityGroup) MarshalJSON() ([]byte,error)

typeFloodlightActivityGroupsGetCall

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

func (*FloodlightActivityGroupsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivityGroupsGetCall)Do

Do executes the "dfareporting.floodlightActivityGroups.get" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivityGroup.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivityGroupsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivityGroupsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FloodlightActivityGroupsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFloodlightActivityGroupsInsertCall

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

func (*FloodlightActivityGroupsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivityGroupsInsertCall)Do

Do executes the "dfareporting.floodlightActivityGroups.insert" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivityGroup.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivityGroupsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivityGroupsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivityGroupsListCall

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

func (*FloodlightActivityGroupsListCall)AdvertiserId

AdvertiserId sets the optional parameter "advertiserId": Select onlyfloodlight activity groups with the specified advertiser ID. Must specifyeither advertiserId or floodlightConfigurationId for a non-empty result.

func (*FloodlightActivityGroupsListCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivityGroupsListCall)Do

Do executes the "dfareporting.floodlightActivityGroups.list" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivityGroupsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivityGroupsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivityGroupsListCall)FloodlightConfigurationId

func (c *FloodlightActivityGroupsListCall) FloodlightConfigurationId(floodlightConfigurationIdint64) *FloodlightActivityGroupsListCall

FloodlightConfigurationId sets the optional parameter"floodlightConfigurationId": Select only floodlight activity groups with thespecified floodlight configuration ID. Must specify either advertiserId, orfloodlightConfigurationId for a non-empty result.

func (*FloodlightActivityGroupsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FloodlightActivityGroupsListCall)Ids

Ids sets the optional parameter "ids": Select only floodlight activitygroups with the specified IDs. Must specify either advertiserId orfloodlightConfigurationId for a non-empty result.

func (*FloodlightActivityGroupsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*FloodlightActivityGroupsListCall)MaxResults

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

func (*FloodlightActivityGroupsListCall)PageToken

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

func (*FloodlightActivityGroupsListCall)Pages

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

func (*FloodlightActivityGroupsListCall)SearchString

SearchString sets the optional parameter "searchString": Allows searchingfor 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 addwildcards implicitly at the start and the end of the search string. Forexample, a search string of "floodlightactivitygroup" will match objectswith name "my floodlightactivitygroup activity", "floodlightactivitygroup2015", or simply "floodlightactivitygroup".

func (*FloodlightActivityGroupsListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*FloodlightActivityGroupsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*FloodlightActivityGroupsListCall)Type

Type sets the optional parameter "type": Select only floodlight activitygroups with the specified floodlight activity group type.

Possible values:

"COUNTER""SALE"

typeFloodlightActivityGroupsListResponse

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".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FloodlightActivityGroups")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FloodlightActivityGroups") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivityGroupsListResponse: Floodlight Activity Group ListResponse

func (FloodlightActivityGroupsListResponse)MarshalJSON

typeFloodlightActivityGroupsPatchCall

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

func (*FloodlightActivityGroupsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivityGroupsPatchCall)Do

Do executes the "dfareporting.floodlightActivityGroups.patch" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivityGroup.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivityGroupsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivityGroupsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivityGroupsService

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

funcNewFloodlightActivityGroupsService

func NewFloodlightActivityGroupsService(s *Service) *FloodlightActivityGroupsService

func (*FloodlightActivityGroupsService)Get

Get: Gets one floodlight activity group by ID.

- id: Floodlight activity Group ID.- profileId: User profile ID associated with this request.

func (*FloodlightActivityGroupsService)Insert

Insert: Inserts a new floodlight activity group.

- profileId: User profile ID associated with this request.

func (*FloodlightActivityGroupsService)List

List: Retrieves a list of floodlight activity groups, possibly filtered.This method supports paging.

- profileId: User profile ID associated with this request.

func (*FloodlightActivityGroupsService)Patch

Patch: Updates an existing floodlight activity group. This method supportspatch semantics.

- id: EventTag ID.- profileId: User profile ID associated with this request.

func (*FloodlightActivityGroupsService)Update

Update: Updates an existing floodlight activity group.

- profileId: User profile ID associated with this request.

typeFloodlightActivityGroupsUpdateCall

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

func (*FloodlightActivityGroupsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightActivityGroupsUpdateCall)Do

Do executes the "dfareporting.floodlightActivityGroups.update" call.Any non-2xx status code is an error. Response headers are in either*FloodlightActivityGroup.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightActivityGroupsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightActivityGroupsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightActivityPublisherDynamicTag

type FloodlightActivityPublisherDynamicTag struct {// ClickThrough: Whether this tag is applicable only for click-throughs.ClickThroughbool `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.DirectorySiteIdint64 `json:"directorySiteId,omitempty,string"`// DynamicTag: Dynamic floodlight tag.DynamicTag *FloodlightActivityDynamicTag `json:"dynamicTag,omitempty"`// SiteId: Site ID of this dynamic tag.SiteIdint64 `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.ViewThroughbool `json:"viewThrough,omitempty"`// ForceSendFields is a list of field names (e.g. "ClickThrough") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickThrough") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightActivityPublisherDynamicTag: Publisher Dynamic Tag

func (FloodlightActivityPublisherDynamicTag)MarshalJSON

typeFloodlightConfiguration

type FloodlightConfiguration struct {// AccountId: Account ID of this floodlight configuration. This is a read-only// field that can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AdvertiserId: Advertiser ID of the parent advertiser of this floodlight// configuration.AdvertiserIdint64 `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.AnalyticsDataSharingEnabledbool `json:"analyticsDataSharingEnabled,omitempty"`// CustomViewabilityMetric: Custom Viewability metric for the floodlight// configuration.CustomViewabilityMetric *CustomViewabilityMetric `json:"customViewabilityMetric,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.ExposureToConversionEnabledbool `json:"exposureToConversionEnabled,omitempty"`// Possible values://   "SUNDAY"//   "MONDAY"FirstDayOfWeekstring `json:"firstDayOfWeek,omitempty"`// Id: ID of this floodlight configuration. This is a read-only, auto-generated// field.Idint64 `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"`// InAppAttributionTrackingEnabled: Whether in-app attribution tracking is// enabled.InAppAttributionTrackingEnabledbool `json:"inAppAttributionTrackingEnabled,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#floodlightConfiguration".Kindstring `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.//// Possible values://   "EXCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION"//   "INCLUDE_NATURAL_SEARCH_CONVERSION_ATTRIBUTION"//   "INCLUDE_NATURAL_SEARCH_TIERED_CONVERSION_ATTRIBUTION"NaturalSearchConversionAttributionOptionstring `json:"naturalSearchConversionAttributionOption,omitempty"`// OmnitureSettings: Settings for Campaign Manager Omniture integration.OmnitureSettings *OmnitureSettings `json:"omnitureSettings,omitempty"`// SubaccountId: Subaccount ID of this floodlight configuration. This is a// read-only field that can be left blank.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// TagSettings: Configuration settings for dynamic and image floodlight tags.TagSettings *TagSettings `json:"tagSettings,omitempty"`// ThirdPartyAuthenticationTokens: List of third-party authentication tokens// enabled for this configuration.ThirdPartyAuthenticationTokens []*ThirdPartyAuthenticationToken `json:"thirdPartyAuthenticationTokens,omitempty"`// UserDefinedVariableConfigurations: List of user defined variables enabled// for this configuration.UserDefinedVariableConfigurations []*UserDefinedVariableConfiguration `json:"userDefinedVariableConfigurations,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightConfiguration: Contains properties of a Floodlight configuration.

func (FloodlightConfiguration)MarshalJSON

func (sFloodlightConfiguration) MarshalJSON() ([]byte,error)

typeFloodlightConfigurationsGetCall

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

func (*FloodlightConfigurationsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightConfigurationsGetCall)Do

Do executes the "dfareporting.floodlightConfigurations.get" call.Any non-2xx status code is an error. Response headers are in either*FloodlightConfiguration.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightConfigurationsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightConfigurationsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FloodlightConfigurationsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFloodlightConfigurationsListCall

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

func (*FloodlightConfigurationsListCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightConfigurationsListCall)Do

Do executes the "dfareporting.floodlightConfigurations.list" call.Any non-2xx status code is an error. Response headers are in either*FloodlightConfigurationsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightConfigurationsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightConfigurationsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*FloodlightConfigurationsListCall)Ids

Ids sets the optional parameter "ids": Set of IDs of floodlightconfigurations to retrieve. Required field; otherwise an empty list will bereturned.

func (*FloodlightConfigurationsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeFloodlightConfigurationsListResponse

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".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FloodlightConfigurations")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FloodlightConfigurations") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightConfigurationsListResponse: Floodlight Configuration List Response

func (FloodlightConfigurationsListResponse)MarshalJSON

typeFloodlightConfigurationsPatchCall

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

func (*FloodlightConfigurationsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightConfigurationsPatchCall)Do

Do executes the "dfareporting.floodlightConfigurations.patch" call.Any non-2xx status code is an error. Response headers are in either*FloodlightConfiguration.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightConfigurationsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightConfigurationsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightConfigurationsService

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

funcNewFloodlightConfigurationsService

func NewFloodlightConfigurationsService(s *Service) *FloodlightConfigurationsService

func (*FloodlightConfigurationsService)Get

Get: Gets one floodlight configuration by ID.

- id: Floodlight configuration ID.- profileId: User profile ID associated with this request.

func (*FloodlightConfigurationsService)List

List: Retrieves a list of floodlight configurations, possibly filtered.

- profileId: User profile ID associated with this request.

func (*FloodlightConfigurationsService)Patch

Patch: Updates an existing floodlight configuration. This method supportspatch semantics.

- id: EventTag ID.- profileId: User profile ID associated with this request.

func (*FloodlightConfigurationsService)Update

Update: Updates an existing floodlight configuration.

- profileId: User profile ID associated with this request.

typeFloodlightConfigurationsUpdateCall

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

func (*FloodlightConfigurationsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*FloodlightConfigurationsUpdateCall)Do

Do executes the "dfareporting.floodlightConfigurations.update" call.Any non-2xx status code is an error. Response headers are in either*FloodlightConfiguration.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*FloodlightConfigurationsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*FloodlightConfigurationsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeFloodlightReportCompatibleFields

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.Kindstring `json:"kind,omitempty"`// Metrics: Metrics which are compatible to be selected in the "metricNames"// section of the report.Metrics []*Metric `json:"metrics,omitempty"`// ForceSendFields is a list of field names (e.g. "DimensionFilters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionFilters") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FloodlightReportCompatibleFields: Represents fields that are compatible tobe selected for a report of type "FlOODLIGHT".

func (FloodlightReportCompatibleFields)MarshalJSON

func (sFloodlightReportCompatibleFields) MarshalJSON() ([]byte,error)

typeFrequencyCap

type FrequencyCap struct {// Duration: Duration of time, in seconds, for this frequency cap. The maximum// duration is 90 days. Acceptable values are 1 to 7776000, inclusive.Durationint64 `json:"duration,omitempty,string"`// Impressions: Number of times an individual user can be served the ad within// the specified duration. Acceptable values are 1 to 15, inclusive.Impressionsint64 `json:"impressions,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FrequencyCap: Frequency Cap.

func (FrequencyCap)MarshalJSON

func (sFrequencyCap) MarshalJSON() ([]byte,error)

typeFsCommand

type FsCommand struct {// Left: Distance from the left of the browser.Applicable when positionOption// is DISTANCE_FROM_TOP_LEFT_CORNER.Leftint64 `json:"left,omitempty"`// PositionOption: Position in the browser where the window will open.//// Possible values://   "CENTERED" - Center of the window Corresponds to "center" in UI//   "DISTANCE_FROM_TOP_LEFT_CORNER" - user-defined distance from top left-hand// corner of the window Corresponds to "top-left" in UIPositionOptionstring `json:"positionOption,omitempty"`// Top: Distance from the top of the browser. Applicable when positionOption is// DISTANCE_FROM_TOP_LEFT_CORNER.Topint64 `json:"top,omitempty"`// WindowHeight: Height of the window.WindowHeightint64 `json:"windowHeight,omitempty"`// WindowWidth: Width of the window.WindowWidthint64 `json:"windowWidth,omitempty"`// ForceSendFields is a list of field names (e.g. "Left") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Left") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

FsCommand: FsCommand.

func (FsCommand)MarshalJSON

func (sFsCommand) MarshalJSON() ([]byte,error)

typeGeoTargeting

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.ExcludeCountriesbool `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"`// ForceSendFields is a list of field names (e.g. "Cities") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cities") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GeoTargeting: Geographical Targeting.

func (GeoTargeting)MarshalJSON

func (sGeoTargeting) MarshalJSON() ([]byte,error)

typeIngestionErrorRecord

type IngestionErrorRecord struct {// Errors: Output only. The list of field errors of the ingestion error record.Errors []*FieldError `json:"errors,omitempty"`// RecordId: Output only. The record ID of the ingestion error record.RecordIdstring `json:"recordId,omitempty"`// ForceSendFields is a list of field names (e.g. "Errors") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Errors") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestionErrorRecord: Contains the ingestion error record of the dynamicfeed. limited to 100 records.

func (IngestionErrorRecord)MarshalJSON

func (sIngestionErrorRecord) MarshalJSON() ([]byte,error)

typeIngestionStatus

type IngestionStatus struct {// NumActiveRows: Output only. The number of active rows in the feed.NumActiveRowsint64 `json:"numActiveRows,omitempty,string"`// NumRowsProcessed: Output only. The number of rows processed in the feed.NumRowsProcessedint64 `json:"numRowsProcessed,omitempty,string"`// NumRowsTotal: Output only. The total number of rows in the feed.NumRowsTotalint64 `json:"numRowsTotal,omitempty,string"`// NumRowsWithErrors: Output only. The number of rows with errors in the feed.NumRowsWithErrorsint64 `json:"numRowsWithErrors,omitempty,string"`// NumWarningsTotal: Output only. The total number of warnings in the feed.NumWarningsTotalint64 `json:"numWarningsTotal,omitempty,string"`// ForceSendFields is a list of field names (e.g. "NumActiveRows") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NumActiveRows") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

IngestionStatus: Contains the ingestion status of the dynamic feed.

func (IngestionStatus)MarshalJSON

func (sIngestionStatus) MarshalJSON() ([]byte,error)

typeInvoice

type Invoice struct {// CampaignSummaries: The list of summarized campaign information associated// with this invoice.CampaignSummaries []*CampaignSummary `json:"campaign_summaries,omitempty"`// CorrectedInvoiceId: The originally issued invoice that is being adjusted by// this invoice, if applicable. May appear on invoice PDF as *Reference invoice// number*.CorrectedInvoiceIdstring `json:"correctedInvoiceId,omitempty"`// CurrencyCode: Invoice currency code in ISO 4217 format.CurrencyCodestring `json:"currencyCode,omitempty"`// DueDate: The invoice due date.DueDatestring `json:"dueDate,omitempty"`// Id: ID of this invoice.Idstring `json:"id,omitempty"`// InvoiceType: The type of invoice document.//// Possible values://   "INVOICE_TYPE_UNSPECIFIED"//   "INVOICE_TYPE_CREDIT"//   "INVOICE_TYPE_INVOICE"InvoiceTypestring `json:"invoiceType,omitempty"`// IssueDate: The date when the invoice was issued.IssueDatestring `json:"issueDate,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#invoice".Kindstring `json:"kind,omitempty"`// PaymentsAccountId: The ID of the payments account the invoice belongs to.// Appears on the invoice PDF as *Billing Account Number*.PaymentsAccountIdstring `json:"paymentsAccountId,omitempty"`// PaymentsProfileId: The ID of the payments profile the invoice belongs to.// Appears on the invoice PDF as *Billing ID*.PaymentsProfileIdstring `json:"paymentsProfileId,omitempty"`// PdfUrl: The URL to download a PDF copy of the invoice. Note that this URL is// user specific and requires a valid OAuth 2.0 access token to access. The// access token must be provided in an *Authorization: Bearer* HTTP header. The// URL will only be usable for 7 days from when the api is called.PdfUrlstring `json:"pdfUrl,omitempty"`// PurchaseOrderNumber: Purchase order number associated with the invoice.PurchaseOrderNumberstring `json:"purchaseOrderNumber,omitempty"`// ReplacedInvoiceIds: The originally issued invoice(s) that is being cancelled// by this invoice, if applicable. May appear on invoice PDF as *Replaced// invoice numbers*. Note: There may be multiple replaced invoices due to// consolidation of multiple invoices into a single invoice.ReplacedInvoiceIds []string `json:"replacedInvoiceIds,omitempty"`// ServiceEndDate: The invoice service end date.ServiceEndDatestring `json:"serviceEndDate,omitempty"`// ServiceStartDate: The invoice service start date.ServiceStartDatestring `json:"serviceStartDate,omitempty"`// SubtotalAmountMicros: The pre-tax subtotal amount, in micros of the// invoice's currency.SubtotalAmountMicrosint64 `json:"subtotalAmountMicros,omitempty,string"`// TotalAmountMicros: The invoice total amount, in micros of the invoice's// currency.TotalAmountMicrosint64 `json:"totalAmountMicros,omitempty,string"`// TotalTaxAmountMicros: The sum of all taxes in invoice, in micros of the// invoice's currency.TotalTaxAmountMicrosint64 `json:"totalTaxAmountMicros,omitempty,string"`// ForceSendFields is a list of field names (e.g. "CampaignSummaries") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CampaignSummaries") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Invoice: Contains information about a single invoice

func (Invoice)MarshalJSON

func (sInvoice) MarshalJSON() ([]byte,error)

typeKeyValueTargetingExpression

type KeyValueTargetingExpression struct {// Expression: Keyword expression being targeted by the ad.Expressionstring `json:"expression,omitempty"`// ForceSendFields is a list of field names (e.g. "Expression") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Expression") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

KeyValueTargetingExpression: Key Value Targeting Expression.

func (KeyValueTargetingExpression)MarshalJSON

func (sKeyValueTargetingExpression) MarshalJSON() ([]byte,error)

typeLandingPage

type LandingPage struct {// AdvertiserId: Advertiser ID of this landing page. This is a required field.AdvertiserIdint64 `json:"advertiserId,omitempty,string"`// Archived: Whether this landing page has been archived.Archivedbool `json:"archived,omitempty"`// DeepLinks: Links that will direct the user to a mobile app, if installed.DeepLinks []*DeepLink `json:"deepLinks,omitempty"`// Id: ID of this landing page. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#landingPage".Kindstring `json:"kind,omitempty"`// Name: Name of this landing page. This is a required field. It must be less// than 256 characters long.Namestring `json:"name,omitempty"`// Url: URL of this landing page. This is a required field.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AdvertiserId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvertiserId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LandingPage: Contains information about where a user's browser is takenafter the user clicks an ad.

func (LandingPage)MarshalJSON

func (sLandingPage) MarshalJSON() ([]byte,error)

typeLanguage

type Language struct {// Id: Language ID of this language. This is the ID used for targeting and// generating reports.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#language".Kindstring `json:"kind,omitempty"`// LanguageCode: Format of language code is an ISO 639 two-letter language code// optionally followed by an underscore followed by an ISO 3166 code. Examples// are "en" for English or "zh_CN" for Simplified Chinese.LanguageCodestring `json:"languageCode,omitempty"`// Name: Name of this language.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Language: Contains information about a language that can be targeted by ads.

func (Language)MarshalJSON

func (sLanguage) MarshalJSON() ([]byte,error)

typeLanguageTargeting

type LanguageTargeting struct {// Languages: Languages that this ad targets. For each language only languageId// is required. The other fields are populated automatically when the ad is// inserted or updated.Languages []*Language `json:"languages,omitempty"`// ForceSendFields is a list of field names (e.g. "Languages") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Languages") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LanguageTargeting: Language Targeting.

func (LanguageTargeting)MarshalJSON

func (sLanguageTargeting) MarshalJSON() ([]byte,error)

typeLanguagesListCall

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

func (*LanguagesListCall)Context

Context sets the context to be used in this call's Do method.

func (*LanguagesListCall)Do

Do executes the "dfareporting.languages.list" call.Any non-2xx status code is an error. Response headers are in either*LanguagesListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*LanguagesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*LanguagesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*LanguagesListCall)IfNoneMatch

func (c *LanguagesListCall) IfNoneMatch(entityTagstring) *LanguagesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeLanguagesListResponse

type LanguagesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#languagesListResponse".Kindstring `json:"kind,omitempty"`// Languages: Language collection.Languages []*Language `json:"languages,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LanguagesListResponse: Language List Response

func (LanguagesListResponse)MarshalJSON

func (sLanguagesListResponse) MarshalJSON() ([]byte,error)

typeLanguagesService

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

funcNewLanguagesService

func NewLanguagesService(s *Service) *LanguagesService

func (*LanguagesService)List

func (r *LanguagesService) List(profileIdint64) *LanguagesListCall

List: Retrieves a list of languages.

- profileId: User profile ID associated with this request.

typeLastModifiedInfo

type LastModifiedInfo struct {// Time: Timestamp of the last change in milliseconds since epoch.Timeint64 `json:"time,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Time") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Time") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LastModifiedInfo: Modification timestamp.

func (LastModifiedInfo)MarshalJSON

func (sLastModifiedInfo) MarshalJSON() ([]byte,error)

typeListPopulationClause

type ListPopulationClause struct {// Terms: Terms of this list population clause. Each clause is made up of list// population terms representing constraints and are joined by ORs.Terms []*ListPopulationTerm `json:"terms,omitempty"`// ForceSendFields is a list of field names (e.g. "Terms") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Terms") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListPopulationClause: A group clause made up of list population termsrepresenting constraints joined by ORs.

func (ListPopulationClause)MarshalJSON

func (sListPopulationClause) MarshalJSON() ([]byte,error)

typeListPopulationRule

type ListPopulationRule struct {// FloodlightActivityId: Floodlight activity ID associated with this rule. This// field can be left blank.FloodlightActivityIdint64 `json:"floodlightActivityId,omitempty,string"`// FloodlightActivityName: Name of floodlight activity associated with this// rule. This is a read-only, auto-generated field.FloodlightActivityNamestring `json:"floodlightActivityName,omitempty"`// ListPopulationClauses: Clauses that make up this list population rule.// Clauses are joined by ANDs, and the clauses themselves are made up of list// population terms which are joined by ORs.ListPopulationClauses []*ListPopulationClause `json:"listPopulationClauses,omitempty"`// ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FloodlightActivityId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListPopulationRule: Remarketing List Population Rule.

func (ListPopulationRule)MarshalJSON

func (sListPopulationRule) MarshalJSON() ([]byte,error)

typeListPopulationTerm

type ListPopulationTerm struct {// Contains: Will be true if the term should check if the user is in the list// and false if the term should check if the user is not in the list. This// field is only relevant when type is set to LIST_MEMBERSHIP_TERM. False by// default.Containsbool `json:"contains,omitempty"`// Negation: Whether to negate the comparison result of this term during rule// evaluation. This field is only relevant when type is left unset or set to// CUSTOM_VARIABLE_TERM or REFERRER_TERM.Negationbool `json:"negation,omitempty"`// Operator: Comparison operator of this term. This field is only relevant when// type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.//// Possible values://   "NUM_EQUALS"//   "NUM_LESS_THAN"//   "NUM_LESS_THAN_EQUAL"//   "NUM_GREATER_THAN"//   "NUM_GREATER_THAN_EQUAL"//   "STRING_EQUALS"//   "STRING_CONTAINS"Operatorstring `json:"operator,omitempty"`// RemarketingListId: ID of the list in question. This field is only relevant// when type is set to LIST_MEMBERSHIP_TERM.RemarketingListIdint64 `json:"remarketingListId,omitempty,string"`// Type: List population term type determines the applicable fields in this// object. If left unset or set to CUSTOM_VARIABLE_TERM, then variableName,// variableFriendlyName, operator, value, and negation are applicable. If set// to LIST_MEMBERSHIP_TERM then remarketingListId and contains are applicable.// If set to REFERRER_TERM then operator, value, and negation are applicable.//// Possible values://   "CUSTOM_VARIABLE_TERM"//   "LIST_MEMBERSHIP_TERM"//   "REFERRER_TERM"Typestring `json:"type,omitempty"`// Value: Literal to compare the variable to. This field is only relevant when// type is left unset or set to CUSTOM_VARIABLE_TERM or REFERRER_TERM.Valuestring `json:"value,omitempty"`// VariableFriendlyName: Friendly name of this term's variable. This is a// read-only, auto-generated field. This field is only relevant when type is// left unset or set to CUSTOM_VARIABLE_TERM.VariableFriendlyNamestring `json:"variableFriendlyName,omitempty"`// VariableName: Name of the variable (U1, U2, etc.) being compared in this// term. This field is only relevant when type is set to null,// CUSTOM_VARIABLE_TERM or REFERRER_TERM.VariableNamestring `json:"variableName,omitempty"`// ForceSendFields is a list of field names (e.g. "Contains") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Contains") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListPopulationTerm: Remarketing List Population Rule Term.

func (ListPopulationTerm)MarshalJSON

func (sListPopulationTerm) MarshalJSON() ([]byte,error)

typeListTargetingExpression

type ListTargetingExpression struct {// Expression: Expression describing which lists are being targeted by the ad.Expressionstring `json:"expression,omitempty"`// ForceSendFields is a list of field names (e.g. "Expression") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Expression") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ListTargetingExpression: Remarketing List Targeting Expression.

func (ListTargetingExpression)MarshalJSON

func (sListTargetingExpression) MarshalJSON() ([]byte,error)

typeLookbackConfiguration

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. Acceptable values are 0 to// 90, inclusive.ClickDurationint64 `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.// Acceptable values are 0 to 90, inclusive.PostImpressionActivitiesDurationint64 `json:"postImpressionActivitiesDuration,omitempty"`// ForceSendFields is a list of field names (e.g. "ClickDuration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickDuration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LookbackConfiguration: Lookback configuration settings.

func (LookbackConfiguration)MarshalJSON

func (sLookbackConfiguration) MarshalJSON() ([]byte,error)

typeMeasurementPartnerAdvertiserLink

type MeasurementPartnerAdvertiserLink struct {// LinkStatus: Status of the partner link.//// Possible values://   "MEASUREMENT_PARTNER_UNLINKED" - Unlinked.//   "MEASUREMENT_PARTNER_LINKED" - Linked successfully//   "MEASUREMENT_PARTNER_LINK_PENDING" - Link pending for wrapping.//   "MEASUREMENT_PARTNER_LINK_FAILURE" - Linking failure.//   "MEASUREMENT_PARTNER_LINK_OPT_OUT" - Link opt-out by user.//   "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - Link opt-out pending sync.//   "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - Link wrap answer pending.//   "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - Mode change pending.//   "MEASUREMENT_PARTNER_UNLINK_PENDING" - Partner unlink pending.LinkStatusstring `json:"linkStatus,omitempty"`// MeasurementPartner: Measurement partner used for tag wrapping.//// Possible values://   "NONE"//   "INTEGRAL_AD_SCIENCE"//   "DOUBLE_VERIFY"MeasurementPartnerstring `json:"measurementPartner,omitempty"`// PartnerAdvertiserId: partner Advertiser Id.PartnerAdvertiserIdstring `json:"partnerAdvertiserId,omitempty"`// ForceSendFields is a list of field names (e.g. "LinkStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LinkStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (MeasurementPartnerAdvertiserLink)MarshalJSON

func (sMeasurementPartnerAdvertiserLink) MarshalJSON() ([]byte,error)

typeMeasurementPartnerCampaignLink

type MeasurementPartnerCampaignLink struct {// LinkStatus: .//// Possible values://   "MEASUREMENT_PARTNER_UNLINKED" - Unlinked.//   "MEASUREMENT_PARTNER_LINKED" - Linked successfully//   "MEASUREMENT_PARTNER_LINK_PENDING" - Link pending for wrapping.//   "MEASUREMENT_PARTNER_LINK_FAILURE" - Linking failure.//   "MEASUREMENT_PARTNER_LINK_OPT_OUT" - Link opt-out by user.//   "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - Link opt-out pending sync.//   "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - Link wrap answer pending.//   "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - Mode change pending.//   "MEASUREMENT_PARTNER_UNLINK_PENDING" - Partner unlink pending.LinkStatusstring `json:"linkStatus,omitempty"`// MeasurementPartner: Measurement partner used for tag wrapping.//// Possible values://   "NONE"//   "INTEGRAL_AD_SCIENCE"//   "DOUBLE_VERIFY"MeasurementPartnerstring `json:"measurementPartner,omitempty"`// PartnerCampaignId: Partner campaign ID needed for establishing linking with// Measurement partner.PartnerCampaignIdstring `json:"partnerCampaignId,omitempty"`// ForceSendFields is a list of field names (e.g. "LinkStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LinkStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (MeasurementPartnerCampaignLink)MarshalJSON

func (sMeasurementPartnerCampaignLink) MarshalJSON() ([]byte,error)

typeMeasurementPartnerWrappingData

type MeasurementPartnerWrappingData struct {// LinkStatus: Placement wrapping status.//// Possible values://   "MEASUREMENT_PARTNER_UNLINKED" - Unlinked.//   "MEASUREMENT_PARTNER_LINKED" - Linked successfully//   "MEASUREMENT_PARTNER_LINK_PENDING" - Link pending for wrapping.//   "MEASUREMENT_PARTNER_LINK_FAILURE" - Linking failure.//   "MEASUREMENT_PARTNER_LINK_OPT_OUT" - Link opt-out by user.//   "MEASUREMENT_PARTNER_LINK_OPT_OUT_PENDING" - Link opt-out pending sync.//   "MEASUREMENT_PARTNER_LINK_WRAPPING_PENDING" - Link wrap answer pending.//   "MEASUREMENT_PARTNER_MODE_CHANGE_PENDING" - Mode change pending.//   "MEASUREMENT_PARTNER_UNLINK_PENDING" - Partner unlink pending.LinkStatusstring `json:"linkStatus,omitempty"`// MeasurementPartner: Measurement partner used for wrapping the placement.//// Possible values://   "NONE"//   "INTEGRAL_AD_SCIENCE"//   "DOUBLE_VERIFY"MeasurementPartnerstring `json:"measurementPartner,omitempty"`// TagWrappingMode: Measurement mode for the wrapped placement.//// Possible values://   "NONE"//   "BLOCKING"//   "MONITORING"//   "MONITORING_READ_ONLY"//   "VIDEO_PIXEL_MONITORING"//   "TRACKING"//   "VPAID_MONITORING"//   "VPAID_BLOCKING"//   "NON_VPAID_MONITORING"//   "VPAID_ONLY_MONITORING"//   "VPAID_ONLY_BLOCKING"//   "VPAID_ONLY_FILTERING"//   "VPAID_FILTERING"//   "NON_VPAID_FILTERING"//   "BLOCKING_FILTERING_VPAID"//   "BLOCKING_FILTERING_VPAID_ONLY"TagWrappingModestring `json:"tagWrappingMode,omitempty"`// WrappedTag: Tag provided by the measurement partner during wrapping.WrappedTagstring `json:"wrappedTag,omitempty"`// ForceSendFields is a list of field names (e.g. "LinkStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LinkStatus") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MeasurementPartnerWrappingData: Placement tag wrapping

func (MeasurementPartnerWrappingData)MarshalJSON

func (sMeasurementPartnerWrappingData) MarshalJSON() ([]byte,error)

typeMetric

type Metric struct {// Kind: The kind of resource this is, in this case dfareporting#metric.Kindstring `json:"kind,omitempty"`// Name: The metric name, e.g. impressionsNamestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Metric: Represents a metric.

func (Metric)MarshalJSON

func (sMetric) MarshalJSON() ([]byte,error)

typeMetro

type Metro struct {// CountryCode: Country code of the country to which this metro region belongs.CountryCodestring `json:"countryCode,omitempty"`// CountryDartId: DART ID of the country to which this metro region belongs.CountryDartIdint64 `json:"countryDartId,omitempty,string"`// DartId: DART ID of this metro region.DartIdint64 `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.DmaIdint64 `json:"dmaId,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#metro".Kindstring `json:"kind,omitempty"`// MetroCode: Metro code of this metro region. This is equivalent to dma_id.MetroCodestring `json:"metroCode,omitempty"`// Name: Name of this metro region.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "CountryCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Metro: Contains information about a metro region that can be targeted byads.

func (Metro)MarshalJSON

func (sMetro) MarshalJSON() ([]byte,error)

typeMetrosListCall

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

func (*MetrosListCall)Context

Context sets the context to be used in this call's Do method.

func (*MetrosListCall)Do

Do executes the "dfareporting.metros.list" call.Any non-2xx status code is an error. Response headers are in either*MetrosListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*MetrosListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*MetrosListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*MetrosListCall)IfNoneMatch

func (c *MetrosListCall) IfNoneMatch(entityTagstring) *MetrosListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeMetrosListResponse

type MetrosListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#metrosListResponse".Kindstring `json:"kind,omitempty"`// Metros: Metro collection.Metros []*Metro `json:"metros,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MetrosListResponse: Metro List Response

func (MetrosListResponse)MarshalJSON

func (sMetrosListResponse) MarshalJSON() ([]byte,error)

typeMetrosService

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

funcNewMetrosService

func NewMetrosService(s *Service) *MetrosService

func (*MetrosService)List

func (r *MetrosService) List(profileIdint64) *MetrosListCall

List: Retrieves a list of metros.

- profileId: User profile ID associated with this request.

typeMobileApp

type MobileApp struct {// Directory: Mobile app directory.//// Possible values://   "UNKNOWN"//   "APPLE_APP_STORE"//   "GOOGLE_PLAY_STORE"//   "ROKU_APP_STORE"//   "AMAZON_FIRETV_APP_STORE"//   "PLAYSTATION_APP_STORE"//   "APPLE_TV_APP_STORE"//   "XBOX_APP_STORE"//   "SAMSUNG_TV_APP_STORE"//   "ANDROID_TV_APP_STORE"//   "GENERIC_CTV_APP_STORE"Directorystring `json:"directory,omitempty"`// Id: ID of this mobile app.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#mobileApp".Kindstring `json:"kind,omitempty"`// PublisherName: Publisher name.PublisherNamestring `json:"publisherName,omitempty"`// Title: Title of this mobile app.Titlestring `json:"title,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Directory") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Directory") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MobileApp: Contains information about a mobile app. Used as a landing pagedeep link.

func (MobileApp)MarshalJSON

func (sMobileApp) MarshalJSON() ([]byte,error)

typeMobileAppsGetCall

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

func (*MobileAppsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*MobileAppsGetCall)Do

Do executes the "dfareporting.mobileApps.get" call.Any non-2xx status code is an error. Response headers are in either*MobileApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*MobileAppsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*MobileAppsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*MobileAppsGetCall)IfNoneMatch

func (c *MobileAppsGetCall) IfNoneMatch(entityTagstring) *MobileAppsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeMobileAppsListCall

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

func (*MobileAppsListCall)Context

Context sets the context to be used in this call's Do method.

func (*MobileAppsListCall)Directories

func (c *MobileAppsListCall) Directories(directories ...string) *MobileAppsListCall

Directories sets the optional parameter "directories": Select only apps fromthese directories.

Possible values:

"UNKNOWN""APPLE_APP_STORE""GOOGLE_PLAY_STORE""ROKU_APP_STORE""AMAZON_FIRETV_APP_STORE""PLAYSTATION_APP_STORE""APPLE_TV_APP_STORE""XBOX_APP_STORE""SAMSUNG_TV_APP_STORE""ANDROID_TV_APP_STORE""GENERIC_CTV_APP_STORE"

func (*MobileAppsListCall)Do

Do executes the "dfareporting.mobileApps.list" call.Any non-2xx status code is an error. Response headers are in either*MobileAppsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*MobileAppsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*MobileAppsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*MobileAppsListCall)Ids

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

func (*MobileAppsListCall)IfNoneMatch

func (c *MobileAppsListCall) IfNoneMatch(entityTagstring) *MobileAppsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*MobileAppsListCall)MaxResults

func (c *MobileAppsListCall) MaxResults(maxResultsint64) *MobileAppsListCall

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

func (*MobileAppsListCall)PageToken

func (c *MobileAppsListCall) PageToken(pageTokenstring) *MobileAppsListCall

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

func (*MobileAppsListCall)Pages

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

func (*MobileAppsListCall)SearchString

func (c *MobileAppsListCall) SearchString(searchStringstring) *MobileAppsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor objects by name or ID. Wildcards (*) are allowed. For example,"app*2015" will return objects with names like "app Jan 2018", "app Jan2018", or simply "app 2018". Most of the searches also add wildcardsimplicitly at the start and the end of the search string. For example, asearch string of "app" will match objects with name "my app", "app 2018", orsimply "app".

typeMobileAppsListResponse

type MobileAppsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#mobileAppsListResponse".Kindstring `json:"kind,omitempty"`// MobileApps: Mobile apps collection.MobileApps []*MobileApp `json:"mobileApps,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MobileAppsListResponse: Mobile app List Response

func (MobileAppsListResponse)MarshalJSON

func (sMobileAppsListResponse) MarshalJSON() ([]byte,error)

typeMobileAppsService

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

funcNewMobileAppsService

func NewMobileAppsService(s *Service) *MobileAppsService

func (*MobileAppsService)Get

func (r *MobileAppsService) Get(profileIdint64, idstring) *MobileAppsGetCall

Get: Gets one mobile app by ID.

- id: Mobile app ID.- profileId: User profile ID associated with this request.

func (*MobileAppsService)List

func (r *MobileAppsService) List(profileIdint64) *MobileAppsListCall

List: Retrieves list of available mobile apps.

- profileId: User profile ID associated with this request.

typeMobileCarrier

type MobileCarrier struct {// CountryCode: Country code of the country to which this mobile carrier// belongs.CountryCodestring `json:"countryCode,omitempty"`// CountryDartId: DART ID of the country to which this mobile carrier belongs.CountryDartIdint64 `json:"countryDartId,omitempty,string"`// Id: ID of this mobile carrier.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#mobileCarrier".Kindstring `json:"kind,omitempty"`// Name: Name of this mobile carrier.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CountryCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MobileCarrier: Contains information about a mobile carrier that can betargeted by ads.

func (MobileCarrier)MarshalJSON

func (sMobileCarrier) MarshalJSON() ([]byte,error)

typeMobileCarriersGetCall

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

func (*MobileCarriersGetCall)Context

Context sets the context to be used in this call's Do method.

func (*MobileCarriersGetCall)Do

Do executes the "dfareporting.mobileCarriers.get" call.Any non-2xx status code is an error. Response headers are in either*MobileCarrier.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*MobileCarriersGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*MobileCarriersGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*MobileCarriersGetCall)IfNoneMatch

func (c *MobileCarriersGetCall) IfNoneMatch(entityTagstring) *MobileCarriersGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeMobileCarriersListCall

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

func (*MobileCarriersListCall)Context

Context sets the context to be used in this call's Do method.

func (*MobileCarriersListCall)Do

Do executes the "dfareporting.mobileCarriers.list" call.Any non-2xx status code is an error. Response headers are in either*MobileCarriersListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*MobileCarriersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*MobileCarriersListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*MobileCarriersListCall)IfNoneMatch

func (c *MobileCarriersListCall) IfNoneMatch(entityTagstring) *MobileCarriersListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeMobileCarriersListResponse

type MobileCarriersListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#mobileCarriersListResponse".Kindstring `json:"kind,omitempty"`// MobileCarriers: Mobile carrier collection.MobileCarriers []*MobileCarrier `json:"mobileCarriers,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MobileCarriersListResponse: Mobile Carrier List Response

func (MobileCarriersListResponse)MarshalJSON

func (sMobileCarriersListResponse) MarshalJSON() ([]byte,error)

typeMobileCarriersService

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

funcNewMobileCarriersService

func NewMobileCarriersService(s *Service) *MobileCarriersService

func (*MobileCarriersService)Get

Get: Gets one mobile carrier by ID.

- id: Mobile carrier ID.- profileId: User profile ID associated with this request.

func (*MobileCarriersService)List

List: Retrieves a list of mobile carriers.

- profileId: User profile ID associated with this request.

typeObaIcon

type ObaIcon struct {// IconClickThroughUrl: URL to redirect to when an OBA icon is clicked.IconClickThroughUrlstring `json:"iconClickThroughUrl,omitempty"`// IconClickTrackingUrl: URL to track click when an OBA icon is clicked.IconClickTrackingUrlstring `json:"iconClickTrackingUrl,omitempty"`// IconViewTrackingUrl: URL to track view when an OBA icon is clicked.IconViewTrackingUrlstring `json:"iconViewTrackingUrl,omitempty"`// Program: Identifies the industry initiative that the icon supports. For// example, AdChoices.Programstring `json:"program,omitempty"`// ResourceUrl: OBA icon resource URL. Campaign Manager only supports image and// JavaScript icons. Learn moreResourceUrlstring `json:"resourceUrl,omitempty"`// Size: OBA icon size.Size *Size `json:"size,omitempty"`// XPosition: OBA icon x coordinate position. Accepted values are left or// right.XPositionstring `json:"xPosition,omitempty"`// YPosition: OBA icon y coordinate position. Accepted values are top or// bottom.YPositionstring `json:"yPosition,omitempty"`// ForceSendFields is a list of field names (e.g. "IconClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IconClickThroughUrl") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ObaIcon: Online Behavioral Advertiser icon.

func (ObaIcon)MarshalJSON

func (sObaIcon) MarshalJSON() ([]byte,error)

typeObjectFilter

type ObjectFilter struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#objectFilter".Kindstring `json:"kind,omitempty"`// ObjectIds: Applicable when status is ASSIGNED. The user has access to// objects with these object IDs.ObjectIdsgoogleapi.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.//// Possible values://   "NONE" - Profile has access to none of the objects.//   "ASSIGNED" - Profile has access to only specific objects.//   "ALL" - Profile has access to all objects.Statusstring `json:"status,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ObjectFilter: Object Filter.

func (ObjectFilter)MarshalJSON

func (sObjectFilter) MarshalJSON() ([]byte,error)

typeOfflineUserAddressInfo

type OfflineUserAddressInfo struct {// City: City of the address.Citystring `json:"city,omitempty"`// CountryCode: 2-letter country code in ISO-3166-1 alpha-2 of the user's// address.CountryCodestring `json:"countryCode,omitempty"`// HashedFirstName: First name of the user, which is hashed as SHA-256 after// normalized (Lowercase all characters; Remove any extra spaces before, after,// and in between).HashedFirstNamestring `json:"hashedFirstName,omitempty"`// HashedLastName: Last name of the user, which is hashed as SHA-256 after// normalized (lower case only and no punctuation).HashedLastNamestring `json:"hashedLastName,omitempty"`// HashedStreetAddress: The street address of the user hashed using SHA-256// hash function after normalization (lower case only).HashedStreetAddressstring `json:"hashedStreetAddress,omitempty"`// PostalCode: Postal code of the user's address.PostalCodestring `json:"postalCode,omitempty"`// State: State code of the address.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "City") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "City") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OfflineUserAddressInfo: Identify a user by name and address.

func (OfflineUserAddressInfo)MarshalJSON

func (sOfflineUserAddressInfo) MarshalJSON() ([]byte,error)

typeOffsetPosition

type OffsetPosition struct {// Left: Offset distance from left side of an asset or a window.Leftint64 `json:"left,omitempty"`// Top: Offset distance from top side of an asset or a window.Topint64 `json:"top,omitempty"`// ForceSendFields is a list of field names (e.g. "Left") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Left") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OffsetPosition: Offset Position.

func (OffsetPosition)MarshalJSON

func (sOffsetPosition) MarshalJSON() ([]byte,error)

typeOmnitureSettings

type OmnitureSettings struct {// OmnitureCostDataEnabled: Whether placement cost data will be sent to// Omniture. This property can be enabled only if omnitureIntegrationEnabled is// true.OmnitureCostDataEnabledbool `json:"omnitureCostDataEnabled,omitempty"`// OmnitureIntegrationEnabled: Whether Omniture integration is enabled. This// property can be enabled only when the "Advanced Ad Serving" account setting// is enabled.OmnitureIntegrationEnabledbool `json:"omnitureIntegrationEnabled,omitempty"`// ForceSendFields is a list of field names (e.g. "OmnitureCostDataEnabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OmnitureCostDataEnabled") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OmnitureSettings: Omniture Integration Settings.

func (OmnitureSettings)MarshalJSON

func (sOmnitureSettings) MarshalJSON() ([]byte,error)

typeOperatingSystem

type OperatingSystem struct {// DartId: DART ID of this operating system. This is the ID used for targeting.DartIdint64 `json:"dartId,omitempty,string"`// Desktop: Whether this operating system is for desktop.Desktopbool `json:"desktop,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#operatingSystem".Kindstring `json:"kind,omitempty"`// Mobile: Whether this operating system is for mobile.Mobilebool `json:"mobile,omitempty"`// Name: Name of this operating system.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DartId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DartId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperatingSystem: Contains information about an operating system that can betargeted by ads.

func (OperatingSystem)MarshalJSON

func (sOperatingSystem) MarshalJSON() ([]byte,error)

typeOperatingSystemVersion

type OperatingSystemVersion struct {// Id: ID of this operating system version.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#operatingSystemVersion".Kindstring `json:"kind,omitempty"`// MajorVersion: Major version (leftmost number) of this operating system// version.MajorVersionstring `json:"majorVersion,omitempty"`// MinorVersion: Minor version (number after the first dot) of this operating// system version.MinorVersionstring `json:"minorVersion,omitempty"`// Name: Name of this operating system version.Namestring `json:"name,omitempty"`// OperatingSystem: Operating system of this operating system version.OperatingSystem *OperatingSystem `json:"operatingSystem,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperatingSystemVersion: Contains information about a particular version ofan operating system that can be targeted by ads.

func (OperatingSystemVersion)MarshalJSON

func (sOperatingSystemVersion) MarshalJSON() ([]byte,error)

typeOperatingSystemVersionsGetCall

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

func (*OperatingSystemVersionsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*OperatingSystemVersionsGetCall)Do

Do executes the "dfareporting.operatingSystemVersions.get" call.Any non-2xx status code is an error. Response headers are in either*OperatingSystemVersion.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OperatingSystemVersionsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OperatingSystemVersionsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OperatingSystemVersionsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOperatingSystemVersionsListCall

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

func (*OperatingSystemVersionsListCall)Context

Context sets the context to be used in this call's Do method.

func (*OperatingSystemVersionsListCall)Do

Do executes the "dfareporting.operatingSystemVersions.list" call.Any non-2xx status code is an error. Response headers are in either*OperatingSystemVersionsListResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OperatingSystemVersionsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OperatingSystemVersionsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OperatingSystemVersionsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOperatingSystemVersionsListResponse

type OperatingSystemVersionsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#operatingSystemVersionsListResponse".Kindstring `json:"kind,omitempty"`// OperatingSystemVersions: Operating system version collection.OperatingSystemVersions []*OperatingSystemVersion `json:"operatingSystemVersions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperatingSystemVersionsListResponse: Operating System Version List Response

func (OperatingSystemVersionsListResponse)MarshalJSON

typeOperatingSystemVersionsService

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

funcNewOperatingSystemVersionsService

func NewOperatingSystemVersionsService(s *Service) *OperatingSystemVersionsService

func (*OperatingSystemVersionsService)Get

Get: Gets one operating system version by ID.

- id: Operating system version ID.- profileId: User profile ID associated with this request.

func (*OperatingSystemVersionsService)List

List: Retrieves a list of operating system versions.

- profileId: User profile ID associated with this request.

typeOperatingSystemsGetCall

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

func (*OperatingSystemsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*OperatingSystemsGetCall)Do

Do executes the "dfareporting.operatingSystems.get" call.Any non-2xx status code is an error. Response headers are in either*OperatingSystem.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*OperatingSystemsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OperatingSystemsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OperatingSystemsGetCall)IfNoneMatch

func (c *OperatingSystemsGetCall) IfNoneMatch(entityTagstring) *OperatingSystemsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOperatingSystemsListCall

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

func (*OperatingSystemsListCall)Context

Context sets the context to be used in this call's Do method.

func (*OperatingSystemsListCall)Do

Do executes the "dfareporting.operatingSystems.list" call.Any non-2xx status code is an error. Response headers are in either*OperatingSystemsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*OperatingSystemsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*OperatingSystemsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*OperatingSystemsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeOperatingSystemsListResponse

type OperatingSystemsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#operatingSystemsListResponse".Kindstring `json:"kind,omitempty"`// OperatingSystems: Operating system collection.OperatingSystems []*OperatingSystem `json:"operatingSystems,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OperatingSystemsListResponse: Operating System List Response

func (OperatingSystemsListResponse)MarshalJSON

func (sOperatingSystemsListResponse) MarshalJSON() ([]byte,error)

typeOperatingSystemsService

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

funcNewOperatingSystemsService

func NewOperatingSystemsService(s *Service) *OperatingSystemsService

func (*OperatingSystemsService)Get

Get: Gets one operating system by DART ID.

- dartId: Operating system DART ID.- profileId: User profile ID associated with this request.

func (*OperatingSystemsService)List

List: Retrieves a list of operating systems.

- profileId: User profile ID associated with this request.

typeOptimizationActivity

type OptimizationActivity struct {// FloodlightActivityId: Floodlight activity ID of this optimization activity.// This is a required field.FloodlightActivityIdint64 `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. The weight assigned will// be understood in proportion to the weights assigned to the other// optimization activities. Value must be greater than or equal to 1.Weightint64 `json:"weight,omitempty"`// ForceSendFields is a list of field names (e.g. "FloodlightActivityId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FloodlightActivityId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

OptimizationActivity: Creative optimization activity.

func (OptimizationActivity)MarshalJSON

func (sOptimizationActivity) MarshalJSON() ([]byte,error)

typePathToConversionReportCompatibleFields

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.Kindstring `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"`// ForceSendFields is a list of field names (e.g. "ConversionDimensions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversionDimensions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PathToConversionReportCompatibleFields: Represents fields that arecompatible to be selected for a report of type "PATH_TO_CONVERSION".

func (PathToConversionReportCompatibleFields)MarshalJSON

typePlacement

type Placement struct {// AccountId: Account ID of this placement. This field can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// ActiveStatus: Whether this placement is active, inactive, archived or// permanently archived.//// Possible values://   "PLACEMENT_STATUS_UNKNOWN"//   "PLACEMENT_STATUS_ACTIVE"//   "PLACEMENT_STATUS_INACTIVE"//   "PLACEMENT_STATUS_ARCHIVED"//   "PLACEMENT_STATUS_PERMANENTLY_ARCHIVED"ActiveStatusstring `json:"activeStatus,omitempty"`// AdBlockingOptOut: Whether this placement opts out of ad blocking. When true,// ad blocking is disabled for this placement. When false, the campaign and// site settings take effect.AdBlockingOptOutbool `json:"adBlockingOptOut,omitempty"`// AdServingPlatformId: Optional. Ad serving platform ID to identify the ad// serving platform used by the placement. Measurement partners can use this// field to add ad-server specific macros. Possible values are: * `1`, Adelphic// * `2`, Adform * `3`, Adobe * `4`, Amobee * `5`, Basis (Centro) * `6`,// Beeswax * `7`, Amazon * `8`, DV360 (DBM) * `9`, Innovid * `10`, MediaMath *// `11`, Roku OneView DSP * `12`, TabMo Hawk * `13`, The Trade Desk * `14`,// Xandr Invest DSP * `15`, Yahoo DSP * `16`, Zeta Global * `17`, Scaleout *// `18`, Bidtellect * `19`, Unicorn * `20`, Teads * `21`, Quantcast * `22`,// Cognitiv * `23`, AdTheorent * `24`, DeepIntent * `25`, PulsepointAdServingPlatformIdint64 `json:"adServingPlatformId,omitempty,string"`// AdditionalSizes: Additional sizes associated with this placement. When// inserting or updating a placement, only the size ID field is used.AdditionalSizes []*Size `json:"additionalSizes,omitempty"`// AdvertiserId: Advertiser ID of this placement. This field can be left blank.AdvertiserIdint64 `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"`// AllowOnYoutube: Optional. Whether the placement is enabled for YouTube// integration.AllowOnYoutubebool `json:"allowOnYoutube,omitempty"`// CampaignId: Campaign ID of this placement. This field is a required field on// insertion.CampaignIdint64 `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.Commentstring `json:"comment,omitempty"`// Compatibility: Placement compatibility. DISPLAY and DISPLAY_INTERSTITIAL// refer to rendering on desktop, on mobile devices or in mobile apps for// regular or interstitial ads respectively. APP and APP_INTERSTITIAL are no// longer allowed for new placement insertions. Instead, use DISPLAY or// DISPLAY_INTERSTITIAL. IN_STREAM_VIDEO refers to rendering in in-stream video// ads developed with the VAST standard. This field is required on insertion.//// Possible values://   "DISPLAY"//   "DISPLAY_INTERSTITIAL"//   "APP" - Deprecated enum value. No longer supported.//   "APP_INTERSTITIAL" - Deprecated enum value. No longer supported.//   "IN_STREAM_VIDEO"//   "IN_STREAM_AUDIO"Compatibilitystring `json:"compatibility,omitempty"`// ContentCategoryId: ID of the content category assigned to this placement.ContentCategoryIdint64 `json:"contentCategoryId,omitempty,string"`// ConversionDomainOverride: Optional. Conversion domain overrides for a// placement.ConversionDomainOverride *PlacementConversionDomainOverride `json:"conversionDomainOverride,omitempty"`// 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.DirectorySiteIdint64 `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.ExternalIdstring `json:"externalId,omitempty"`// Id: ID of this placement. This is a read-only, auto-generated field.Idint64 `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.KeyNamestring `json:"keyName,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#placement".Kindstring `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// or equal to 512 characters long.Namestring `json:"name,omitempty"`// PartnerWrappingData: Measurement partner provided settings for a wrapped// placement.PartnerWrappingData *MeasurementPartnerWrappingData `json:"partnerWrappingData,omitempty"`// PaymentApproved: Whether payment was approved for this placement. This is a// read-only field relevant only to publisher-paid placements.PaymentApprovedbool `json:"paymentApproved,omitempty"`// PaymentSource: Payment source for this placement. This is a required field// that is read-only after insertion.//// Possible values://   "PLACEMENT_AGENCY_PAID"//   "PLACEMENT_PUBLISHER_PAID"PaymentSourcestring `json:"paymentSource,omitempty"`// PlacementGroupId: ID of this placement's group, if applicable.PlacementGroupIdint64 `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.PlacementStrategyIdint64 `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.Primarybool `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.SiteIdint64 `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"`// SiteServed: Optional. Whether the ads in the placement are served by another// platform and CM is only used for tracking or they are served by CM. A false// value indicates the ad is served by CM.SiteServedbool `json:"siteServed,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.SslRequiredbool `json:"sslRequired,omitempty"`// Status: Third-party placement status.//// Possible values://   "PENDING_REVIEW" - Placement is not yet reviewed by publisher.//   "PAYMENT_ACCEPTED" - Placement Ad Serving fee is accepted by publisher//   "PAYMENT_REJECTED" - Placement Ad Serving fee is rejected by publisher//   "ACKNOWLEDGE_REJECTION" - Advertisers has accepted rejection of placement// ad serving fee. This will suppress future notification on DDMM UI//   "ACKNOWLEDGE_ACCEPTANCE" - Advertisers has accepted acceptance of// placement ad serving fee. This will suppress future notification on DDMM UI//   "DRAFT" - Advertisers is still working on placement not yet ready for// Publisher review; default status for pub-paid placementsStatusstring `json:"status,omitempty"`// SubaccountId: Subaccount ID of this placement. This field can be left blank.SubaccountIdint64 `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_INSTREAM_VIDEO_PREFETCH_VAST_3" -// "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4" - "PLACEMENT_TAG_TRACKING" -// "PLACEMENT_TAG_TRACKING_IFRAME" - "PLACEMENT_TAG_TRACKING_JAVASCRIPT"//// Possible values://   "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"//   "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"//   "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"//   "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT"TagFormats []string `json:"tagFormats,omitempty"`// TagSetting: Tag settings for this placement.TagSetting *TagSetting `json:"tagSetting,omitempty"`// VideoActiveViewOptOut: Whether Verification and ActiveView are disabled for// in-stream video creatives for this placement. The same setting// videoActiveViewOptOut exists on the site level -- the opt out occurs if// either of these settings are true. These settings are distinct from// DirectorySites.settings.activeViewOptOut or// Sites.siteSettings.activeViewOptOut which only apply to display ads.// However, Accounts.activeViewOptOut opts out both video traffic, as well as// display ads, from Verification and ActiveView.VideoActiveViewOptOutbool `json:"videoActiveViewOptOut,omitempty"`// VideoSettings: A collection of settings which affect video creatives served// through this placement. Applicable to placements with IN_STREAM_VIDEO// compatibility.VideoSettings *VideoSettings `json:"videoSettings,omitempty"`// VpaidAdapterChoice: VPAID adapter setting for this placement. Controls which// VPAID format the measurement adapter will use for in-stream video creatives// assigned to this placement. *Note:* Flash is no longer supported. This field// now defaults to HTML5 when the following values are provided: FLASH, BOTH.//// Possible values://   "DEFAULT" - DEFAULT means Google chooses which adapter, if any, to serve.//   "FLASH"//   "HTML5"//   "BOTH"VpaidAdapterChoicestring `json:"vpaidAdapterChoice,omitempty"`// WrappingOptOut: Whether this placement opts out of tag wrapping.WrappingOptOutbool `json:"wrappingOptOut,omitempty"`// YoutubeSettings: Optional. YouTube settings for the placement. The placement// must be enabled for YouTube to use this field.YoutubeSettings *YoutubeSettings `json:"youtubeSettings,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Placement: Contains properties of a placement.

func (Placement)MarshalJSON

func (sPlacement) MarshalJSON() ([]byte,error)

typePlacementAssignment

type PlacementAssignment struct {// Active: Whether this placement assignment is active. When true, the// placement will be included in the ad's rotation.Activebool `json:"active,omitempty"`// PlacementId: ID of the placement to be assigned. This is a required field.PlacementIdint64 `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.SslRequiredbool `json:"sslRequired,omitempty"`// ForceSendFields is a list of field names (e.g. "Active") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Active") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementAssignment: Placement Assignment.

func (PlacementAssignment)MarshalJSON

func (sPlacementAssignment) MarshalJSON() ([]byte,error)

typePlacementConversionDomainOverride

type PlacementConversionDomainOverride struct {ConversionDomains []*PlacementSingleConversionDomain `json:"conversionDomains,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversionDomains") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversionDomains") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (PlacementConversionDomainOverride)MarshalJSON

func (sPlacementConversionDomainOverride) MarshalJSON() ([]byte,error)

typePlacementGroup

type PlacementGroup struct {// AccountId: Account ID of this placement group. This is a read-only field// that can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// ActiveStatus: Whether this placement group is active, inactive, archived or// permanently archived.//// Possible values://   "PLACEMENT_STATUS_UNKNOWN"//   "PLACEMENT_STATUS_ACTIVE"//   "PLACEMENT_STATUS_INACTIVE"//   "PLACEMENT_STATUS_ARCHIVED"//   "PLACEMENT_STATUS_PERMANENTLY_ARCHIVED"ActiveStatusstring `json:"activeStatus,omitempty"`// AdvertiserId: Advertiser ID of this placement group. This is a required// field on insertion.AdvertiserIdint64 `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 placement group. This field is required on// insertion.CampaignIdint64 `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.ChildPlacementIdsgoogleapi.Int64s `json:"childPlacementIds,omitempty"`// Comment: Comments for this placement group.Commentstring `json:"comment,omitempty"`// ContentCategoryId: ID of the content category assigned to this placement// group.ContentCategoryIdint64 `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.DirectorySiteIdint64 `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.ExternalIdstring `json:"externalId,omitempty"`// Id: ID of this placement group. This is a read-only, auto-generated field.Idint64 `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".Kindstring `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.Namestring `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.//// Possible values://   "PLACEMENT_PACKAGE" - A simple group of site-placements (tags). Basically// acts as a single pricing point for a group of tags.//   "PLACEMENT_ROADBLOCK" - A group of site-placements (tags) 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. This kind of group requires one of its assigned// site-placements to be marked as primary for reporting purposes.PlacementGroupTypestring `json:"placementGroupType,omitempty"`// PlacementStrategyId: ID of the placement strategy assigned to this placement// group.PlacementStrategyIdint64 `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.PrimaryPlacementIdint64 `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"`// 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.SiteIdint64 `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.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementGroup: Contains properties of a package or roadblock.

func (PlacementGroup)MarshalJSON

func (sPlacementGroup) MarshalJSON() ([]byte,error)

typePlacementGroupsGetCall

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

func (*PlacementGroupsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementGroupsGetCall)Do

Do executes the "dfareporting.placementGroups.get" call.Any non-2xx status code is an error. Response headers are in either*PlacementGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementGroupsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementGroupsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementGroupsGetCall)IfNoneMatch

func (c *PlacementGroupsGetCall) IfNoneMatch(entityTagstring) *PlacementGroupsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePlacementGroupsInsertCall

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

func (*PlacementGroupsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementGroupsInsertCall)Do

Do executes the "dfareporting.placementGroups.insert" call.Any non-2xx status code is an error. Response headers are in either*PlacementGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementGroupsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementGroupsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementGroupsListCall

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

func (*PlacementGroupsListCall)ActiveStatus

func (c *PlacementGroupsListCall) ActiveStatus(activeStatus ...string) *PlacementGroupsListCall

ActiveStatus sets the optional parameter "activeStatus": Select onlyplacements with these active statuses.

Possible values:

"PLACEMENT_STATUS_UNKNOWN""PLACEMENT_STATUS_ACTIVE""PLACEMENT_STATUS_INACTIVE""PLACEMENT_STATUS_ARCHIVED""PLACEMENT_STATUS_PERMANENTLY_ARCHIVED"

func (*PlacementGroupsListCall)AdvertiserIds

func (c *PlacementGroupsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementGroupsListCall

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

func (*PlacementGroupsListCall)CampaignIds

func (c *PlacementGroupsListCall) CampaignIds(campaignIds ...int64) *PlacementGroupsListCall

CampaignIds sets the optional parameter "campaignIds": Select only placementgroups that belong to these campaigns.

func (*PlacementGroupsListCall)ContentCategoryIds

func (c *PlacementGroupsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementGroupsListCall

ContentCategoryIds sets the optional parameter "contentCategoryIds": Selectonly placement groups that are associated with these content categories.

func (*PlacementGroupsListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementGroupsListCall)DirectorySiteIds

func (c *PlacementGroupsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementGroupsListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select onlyplacement groups that are associated with these directory sites.

func (*PlacementGroupsListCall)Do

Do executes the "dfareporting.placementGroups.list" call.Any non-2xx status code is an error. Response headers are in either*PlacementGroupsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*PlacementGroupsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementGroupsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementGroupsListCall)Ids

Ids sets the optional parameter "ids": Select only placement groups withthese IDs.

func (*PlacementGroupsListCall)IfNoneMatch

func (c *PlacementGroupsListCall) IfNoneMatch(entityTagstring) *PlacementGroupsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlacementGroupsListCall)MaxEndDate

func (c *PlacementGroupsListCall) MaxEndDate(maxEndDatestring) *PlacementGroupsListCall

MaxEndDate sets the optional parameter "maxEndDate": Select only placementsor placement groups whose end date is on or before the specified maxEndDate.The date should be formatted as "yyyy-MM-dd".

func (*PlacementGroupsListCall)MaxResults

func (c *PlacementGroupsListCall) MaxResults(maxResultsint64) *PlacementGroupsListCall

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

func (*PlacementGroupsListCall)MaxStartDate

func (c *PlacementGroupsListCall) MaxStartDate(maxStartDatestring) *PlacementGroupsListCall

MaxStartDate sets the optional parameter "maxStartDate": Select onlyplacements or placement groups whose start date is on or before thespecified maxStartDate. The date should be formatted as "yyyy-MM-dd".

func (*PlacementGroupsListCall)MinEndDate

func (c *PlacementGroupsListCall) MinEndDate(minEndDatestring) *PlacementGroupsListCall

MinEndDate sets the optional parameter "minEndDate": Select only placementsor placement groups whose end date is on or after the specified minEndDate.The date should be formatted as "yyyy-MM-dd".

func (*PlacementGroupsListCall)MinStartDate

func (c *PlacementGroupsListCall) MinStartDate(minStartDatestring) *PlacementGroupsListCall

MinStartDate sets the optional parameter "minStartDate": Select onlyplacements or placement groups whose start date is on or after the specifiedminStartDate. The date should be formatted as "yyyy-MM-dd".

func (*PlacementGroupsListCall)PageToken

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

func (*PlacementGroupsListCall)Pages

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

func (*PlacementGroupsListCall)PlacementGroupType

func (c *PlacementGroupsListCall) PlacementGroupType(placementGroupTypestring) *PlacementGroupsListCall

PlacementGroupType sets the optional parameter "placementGroupType": Selectonly placement groups belonging with this group type. A package is a simplegroup 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 pricingpoint but also assumes that all the tags in it will be served at the sametime. A roadblock requires one of its assigned placements to be marked asprimary for reporting.

Possible values:

"PLACEMENT_PACKAGE" - A simple group of site-placements (tags). Basically

acts as a single pricing point for a group of tags.

"PLACEMENT_ROADBLOCK" - A group of site-placements (tags) that not only

acts as a single pricing point but also assumes that all the tags in it willbe served at the same time. This kind of group requires one of its assignedsite-placements to be marked as primary for reporting purposes.

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 placementstrategies.

func (*PlacementGroupsListCall)PricingTypes

func (c *PlacementGroupsListCall) PricingTypes(pricingTypes ...string) *PlacementGroupsListCall

PricingTypes sets the optional parameter "pricingTypes": Select onlyplacement groups with these pricing types.

Possible values:

"PRICING_TYPE_CPM""PRICING_TYPE_CPC""PRICING_TYPE_CPA""PRICING_TYPE_FLAT_RATE_IMPRESSIONS""PRICING_TYPE_FLAT_RATE_CLICKS""PRICING_TYPE_CPM_ACTIVEVIEW"

func (*PlacementGroupsListCall)SearchString

func (c *PlacementGroupsListCall) SearchString(searchStringstring) *PlacementGroupsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor placement groups by name or ID. Wildcards (*) are allowed. For example,"placement*2015" will return placement groups with names like "placementgroup June 2015", "placement group May 2015", or simply "placements 2015".Most of the searches also add wildcards implicitly at the start and the endof the search string. For example, a search string of "placementgroup" willmatch placement groups with name "my placementgroup", "placementgroup 2015",or simply "placementgroup".

func (*PlacementGroupsListCall)SiteIds

SiteIds sets the optional parameter "siteIds": Select only placement groupsthat are associated with these sites.

func (*PlacementGroupsListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*PlacementGroupsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typePlacementGroupsListResponse

type PlacementGroupsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#placementGroupsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// PlacementGroups: Placement group collection.PlacementGroups []*PlacementGroup `json:"placementGroups,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementGroupsListResponse: Placement Group List Response

func (PlacementGroupsListResponse)MarshalJSON

func (sPlacementGroupsListResponse) MarshalJSON() ([]byte,error)

typePlacementGroupsPatchCall

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

func (*PlacementGroupsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementGroupsPatchCall)Do

Do executes the "dfareporting.placementGroups.patch" call.Any non-2xx status code is an error. Response headers are in either*PlacementGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementGroupsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementGroupsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementGroupsService

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

funcNewPlacementGroupsService

func NewPlacementGroupsService(s *Service) *PlacementGroupsService

func (*PlacementGroupsService)Get

Get: Gets one placement group by ID.

- id: Placement group ID.- profileId: User profile ID associated with this request.

func (*PlacementGroupsService)Insert

func (r *PlacementGroupsService) Insert(profileIdint64, placementgroup *PlacementGroup) *PlacementGroupsInsertCall

Insert: Inserts a new placement group.

- profileId: User profile ID associated with this request.

func (*PlacementGroupsService)List

List: Retrieves a list of placement groups, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

func (*PlacementGroupsService)Patch

func (r *PlacementGroupsService) Patch(profileIdint64, idint64, placementgroup *PlacementGroup) *PlacementGroupsPatchCall

Patch: Updates an existing placement group. This method supports patchsemantics.

- id: Placement ID.- profileId: User profile ID associated with this request.

func (*PlacementGroupsService)Update

func (r *PlacementGroupsService) Update(profileIdint64, placementgroup *PlacementGroup) *PlacementGroupsUpdateCall

Update: Updates an existing placement group.

- profileId: User profile ID associated with this request.

typePlacementGroupsUpdateCall

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

func (*PlacementGroupsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementGroupsUpdateCall)Do

Do executes the "dfareporting.placementGroups.update" call.Any non-2xx status code is an error. Response headers are in either*PlacementGroup.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementGroupsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementGroupsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementSingleConversionDomain

type PlacementSingleConversionDomain struct {ConversionDomainIdint64  `json:"conversionDomainId,omitempty,string"`ConversionDomainValuestring `json:"conversionDomainValue,omitempty"`// ForceSendFields is a list of field names (e.g. "ConversionDomainId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConversionDomainId") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (PlacementSingleConversionDomain)MarshalJSON

func (sPlacementSingleConversionDomain) MarshalJSON() ([]byte,error)

typePlacementStrategiesDeleteCall

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

func (*PlacementStrategiesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementStrategiesDeleteCall)Do

Do executes the "dfareporting.placementStrategies.delete" call.

func (*PlacementStrategiesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementStrategiesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementStrategiesGetCall

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

func (*PlacementStrategiesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementStrategiesGetCall)Do

Do executes the "dfareporting.placementStrategies.get" call.Any non-2xx status code is an error. Response headers are in either*PlacementStrategy.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlacementStrategiesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementStrategiesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementStrategiesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePlacementStrategiesInsertCall

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

func (*PlacementStrategiesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementStrategiesInsertCall)Do

Do executes the "dfareporting.placementStrategies.insert" call.Any non-2xx status code is an error. Response headers are in either*PlacementStrategy.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlacementStrategiesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementStrategiesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementStrategiesListCall

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

func (*PlacementStrategiesListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementStrategiesListCall)Do

Do executes the "dfareporting.placementStrategies.list" call.Any non-2xx status code is an error. Response headers are in either*PlacementStrategiesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*PlacementStrategiesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementStrategiesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementStrategiesListCall)Ids

Ids sets the optional parameter "ids": Select only placement strategies withthese IDs.

func (*PlacementStrategiesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlacementStrategiesListCall)MaxResults

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

func (*PlacementStrategiesListCall)PageToken

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

func (*PlacementStrategiesListCall)Pages

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

func (*PlacementStrategiesListCall)SearchString

SearchString sets the optional parameter "searchString": Allows searchingfor 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 implicitlyat the start and the end of the search string. For example, a search stringof "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 sortthe list.

Possible values:

"ID" (default)"NAME"

func (*PlacementStrategiesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typePlacementStrategiesListResponse

type PlacementStrategiesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#placementStrategiesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// PlacementStrategies: Placement strategy collection.PlacementStrategies []*PlacementStrategy `json:"placementStrategies,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementStrategiesListResponse: Placement Strategy List Response

func (PlacementStrategiesListResponse)MarshalJSON

func (sPlacementStrategiesListResponse) MarshalJSON() ([]byte,error)

typePlacementStrategiesPatchCall

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

func (*PlacementStrategiesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementStrategiesPatchCall)Do

Do executes the "dfareporting.placementStrategies.patch" call.Any non-2xx status code is an error. Response headers are in either*PlacementStrategy.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlacementStrategiesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementStrategiesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementStrategiesService

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

funcNewPlacementStrategiesService

func NewPlacementStrategiesService(s *Service) *PlacementStrategiesService

func (*PlacementStrategiesService)Delete

Delete: Deletes an existing placement strategy.

- id: Placement strategy ID.- profileId: User profile ID associated with this request.

func (*PlacementStrategiesService)Get

Get: Gets one placement strategy by ID.

- id: Placement strategy ID.- profileId: User profile ID associated with this request.

func (*PlacementStrategiesService)Insert

Insert: Inserts a new placement strategy.

- profileId: User profile ID associated with this request.

func (*PlacementStrategiesService)List

List: Retrieves a list of placement strategies, possibly filtered. Thismethod supports paging.

- profileId: User profile ID associated with this request.

func (*PlacementStrategiesService)Patch

func (r *PlacementStrategiesService) Patch(profileIdint64, idint64, placementstrategy *PlacementStrategy) *PlacementStrategiesPatchCall

Patch: Updates an existing placement strategy. This method supports patchsemantics.

- id: PlacementStrategy ID.- profileId: User profile ID associated with this request.

func (*PlacementStrategiesService)Update

Update: Updates an existing placement strategy.

- profileId: User profile ID associated with this request.

typePlacementStrategiesUpdateCall

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

func (*PlacementStrategiesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementStrategiesUpdateCall)Do

Do executes the "dfareporting.placementStrategies.update" call.Any non-2xx status code is an error. Response headers are in either*PlacementStrategy.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlacementStrategiesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementStrategiesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementStrategy

type PlacementStrategy struct {// AccountId: Account ID of this placement strategy.This is a read-only field// that can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// Id: ID of this placement strategy. This is a read-only, auto-generated// field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#placementStrategy".Kindstring `json:"kind,omitempty"`// Name: Name of this placement strategy. This is a required field. It must be// less than 256 characters long and unique among placement strategies of the// same account.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementStrategy: Contains properties of a placement strategy.

func (PlacementStrategy)MarshalJSON

func (sPlacementStrategy) MarshalJSON() ([]byte,error)

typePlacementTag

type PlacementTag struct {// PlacementId: Placement IDPlacementIdint64 `json:"placementId,omitempty,string"`// TagDatas: Tags generated for this placement.TagDatas []*TagData `json:"tagDatas,omitempty"`// ForceSendFields is a list of field names (e.g. "PlacementId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PlacementId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementTag: Placement Tag

func (PlacementTag)MarshalJSON

func (sPlacementTag) MarshalJSON() ([]byte,error)

typePlacementsGenerateTagsResponse

type PlacementsGenerateTagsResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#placementsGenerateTagsResponse".Kindstring `json:"kind,omitempty"`// PlacementTags: Set of generated tags for the specified placements.PlacementTags []*PlacementTag `json:"placementTags,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementsGenerateTagsResponse: Placement GenerateTags Response

func (PlacementsGenerateTagsResponse)MarshalJSON

func (sPlacementsGenerateTagsResponse) MarshalJSON() ([]byte,error)

typePlacementsGeneratetagsCall

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

func (*PlacementsGeneratetagsCall)CampaignId

CampaignId sets the optional parameter "campaignId": Generate placementsbelonging to this campaign. This is a required field.

func (*PlacementsGeneratetagsCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementsGeneratetagsCall)Do

Do executes the "dfareporting.placements.generatetags" call.Any non-2xx status code is an error. Response headers are in either*PlacementsGenerateTagsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*PlacementsGeneratetagsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementsGeneratetagsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementsGeneratetagsCall)PlacementIds

func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *PlacementsGeneratetagsCall

PlacementIds sets the optional parameter "placementIds": Generate tags forthese placements.

func (*PlacementsGeneratetagsCall)TagFormats

func (c *PlacementsGeneratetagsCall) TagFormats(tagFormats ...string) *PlacementsGeneratetagsCall

TagFormats sets the optional parameter "tagFormats": Tag formats to generatefor these placements. *Note:* PLACEMENT_TAG_STANDARD can only be generatedfor 1x1 placements.

Possible values:

"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""PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3""PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY""PLACEMENT_TAG_JAVASCRIPT_LEGACY""PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY""PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY""PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4""PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT"

typePlacementsGetCall

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

func (*PlacementsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementsGetCall)Do

Do executes the "dfareporting.placements.get" call.Any non-2xx status code is an error. Response headers are in either*Placement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementsGetCall)IfNoneMatch

func (c *PlacementsGetCall) IfNoneMatch(entityTagstring) *PlacementsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePlacementsInsertCall

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

func (*PlacementsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementsInsertCall)Do

Do executes the "dfareporting.placements.insert" call.Any non-2xx status code is an error. Response headers are in either*Placement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementsInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementsListCall

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

func (*PlacementsListCall)ActiveStatus

func (c *PlacementsListCall) ActiveStatus(activeStatus ...string) *PlacementsListCall

ActiveStatus sets the optional parameter "activeStatus": Select onlyplacements with these active statuses.

Possible values:

"PLACEMENT_STATUS_UNKNOWN""PLACEMENT_STATUS_ACTIVE""PLACEMENT_STATUS_INACTIVE""PLACEMENT_STATUS_ARCHIVED""PLACEMENT_STATUS_PERMANENTLY_ARCHIVED"

func (*PlacementsListCall)AdvertiserIds

func (c *PlacementsListCall) AdvertiserIds(advertiserIds ...int64) *PlacementsListCall

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

func (*PlacementsListCall)CampaignIds

func (c *PlacementsListCall) CampaignIds(campaignIds ...int64) *PlacementsListCall

CampaignIds sets the optional parameter "campaignIds": Select onlyplacements that belong to these campaigns.

func (*PlacementsListCall)Compatibilities

func (c *PlacementsListCall) Compatibilities(compatibilities ...string) *PlacementsListCall

Compatibilities sets the optional parameter "compatibilities": Select onlyplacements that are associated with these compatibilities. DISPLAY andDISPLAY_INTERSTITIAL refer to rendering either on desktop or on mobiledevices for regular or interstitial ads respectively. APP andAPP_INTERSTITIAL are for rendering in mobile apps. IN_STREAM_VIDEO refers torendering in in-stream video ads developed with the VAST standard.

Possible values:

"DISPLAY""DISPLAY_INTERSTITIAL""APP" - Deprecated enum value. No longer supported."APP_INTERSTITIAL" - Deprecated enum value. No longer supported."IN_STREAM_VIDEO""IN_STREAM_AUDIO"

func (*PlacementsListCall)ContentCategoryIds

func (c *PlacementsListCall) ContentCategoryIds(contentCategoryIds ...int64) *PlacementsListCall

ContentCategoryIds sets the optional parameter "contentCategoryIds": Selectonly placements that are associated with these content categories.

func (*PlacementsListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementsListCall)DirectorySiteIds

func (c *PlacementsListCall) DirectorySiteIds(directorySiteIds ...int64) *PlacementsListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select onlyplacements that are associated with these directory sites.

func (*PlacementsListCall)Do

Do executes the "dfareporting.placements.list" call.Any non-2xx status code is an error. Response headers are in either*PlacementsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*PlacementsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementsListCall)GroupIds

func (c *PlacementsListCall) GroupIds(groupIds ...int64) *PlacementsListCall

GroupIds sets the optional parameter "groupIds": Select only placements thatbelong to these placement groups.

func (*PlacementsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlacementsListCall)Ids

Ids sets the optional parameter "ids": Select only placements with theseIDs.

func (*PlacementsListCall)IfNoneMatch

func (c *PlacementsListCall) IfNoneMatch(entityTagstring) *PlacementsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PlacementsListCall)MaxEndDate

func (c *PlacementsListCall) MaxEndDate(maxEndDatestring) *PlacementsListCall

MaxEndDate sets the optional parameter "maxEndDate": Select only placementsor placement groups whose end date is on or before the specified maxEndDate.The date should be formatted as "yyyy-MM-dd".

func (*PlacementsListCall)MaxResults

func (c *PlacementsListCall) MaxResults(maxResultsint64) *PlacementsListCall

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

func (*PlacementsListCall)MaxStartDate

func (c *PlacementsListCall) MaxStartDate(maxStartDatestring) *PlacementsListCall

MaxStartDate sets the optional parameter "maxStartDate": Select onlyplacements or placement groups whose start date is on or before thespecified maxStartDate. The date should be formatted as "yyyy-MM-dd".

func (*PlacementsListCall)MinEndDate

func (c *PlacementsListCall) MinEndDate(minEndDatestring) *PlacementsListCall

MinEndDate sets the optional parameter "minEndDate": Select only placementsor placement groups whose end date is on or after the specified minEndDate.The date should be formatted as "yyyy-MM-dd".

func (*PlacementsListCall)MinStartDate

func (c *PlacementsListCall) MinStartDate(minStartDatestring) *PlacementsListCall

MinStartDate sets the optional parameter "minStartDate": Select onlyplacements or placement groups whose start date is on or after the specifiedminStartDate. The date should be formatted as "yyyy-MM-dd".

func (*PlacementsListCall)PageToken

func (c *PlacementsListCall) PageToken(pageTokenstring) *PlacementsListCall

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

func (*PlacementsListCall)Pages

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

func (*PlacementsListCall)PaymentSource

func (c *PlacementsListCall) PaymentSource(paymentSourcestring) *PlacementsListCall

PaymentSource sets the optional parameter "paymentSource": Select onlyplacements with this payment source.

Possible values:

"PLACEMENT_AGENCY_PAID""PLACEMENT_PUBLISHER_PAID"

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 onlyplacements with these pricing types.

Possible values:

"PRICING_TYPE_CPM""PRICING_TYPE_CPC""PRICING_TYPE_CPA""PRICING_TYPE_FLAT_RATE_IMPRESSIONS""PRICING_TYPE_FLAT_RATE_CLICKS""PRICING_TYPE_CPM_ACTIVEVIEW"

func (*PlacementsListCall)SearchString

func (c *PlacementsListCall) SearchString(searchStringstring) *PlacementsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor placements by name or ID. Wildcards (*) are allowed. For example,"placement*2015" will return placements with names like "placement June2015", "placement May 2015", or simply "placements 2015". Most of thesearches also add wildcards implicitly at the start and the end of thesearch string. For example, a search string of "placement" will matchplacements 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 thatare associated with these sites.

func (*PlacementsListCall)SizeIds

func (c *PlacementsListCall) SizeIds(sizeIds ...int64) *PlacementsListCall

SizeIds sets the optional parameter "sizeIds": Select only placements thatare associated with these sizes.

func (*PlacementsListCall)SortField

func (c *PlacementsListCall) SortField(sortFieldstring) *PlacementsListCall

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

Possible values:

"ID" (default)"NAME"

func (*PlacementsListCall)SortOrder

func (c *PlacementsListCall) SortOrder(sortOrderstring) *PlacementsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typePlacementsListResponse

type PlacementsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#placementsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// Placements: Placement collection.Placements []*Placement `json:"placements,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlacementsListResponse: Placement List Response

func (PlacementsListResponse)MarshalJSON

func (sPlacementsListResponse) MarshalJSON() ([]byte,error)

typePlacementsPatchCall

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

func (*PlacementsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementsPatchCall)Do

Do executes the "dfareporting.placements.patch" call.Any non-2xx status code is an error. Response headers are in either*Placement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementsPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlacementsService

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

funcNewPlacementsService

func NewPlacementsService(s *Service) *PlacementsService

func (*PlacementsService)Generatetags

func (r *PlacementsService) Generatetags(profileIdint64) *PlacementsGeneratetagsCall

Generatetags: Generates tags for a placement.

- profileId: User profile ID associated with this request.

func (*PlacementsService)Get

func (r *PlacementsService) Get(profileIdint64, idint64) *PlacementsGetCall

Get: Gets one placement by ID.

- id: Placement ID.- profileId: User profile ID associated with this request.

func (*PlacementsService)Insert

func (r *PlacementsService) Insert(profileIdint64, placement *Placement) *PlacementsInsertCall

Insert: Inserts a new placement.

- profileId: User profile ID associated with this request.

func (*PlacementsService)List

func (r *PlacementsService) List(profileIdint64) *PlacementsListCall

List: Retrieves a list of placements, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

func (*PlacementsService)Patch

func (r *PlacementsService) Patch(profileIdint64, idint64, placement *Placement) *PlacementsPatchCall

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

- id: Placement ID.- profileId: User profile ID associated with this request.

func (*PlacementsService)Update

func (r *PlacementsService) Update(profileIdint64, placement *Placement) *PlacementsUpdateCall

Update: Updates an existing placement.

- profileId: User profile ID associated with this request.

typePlacementsUpdateCall

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

func (*PlacementsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*PlacementsUpdateCall)Do

Do executes the "dfareporting.placements.update" call.Any non-2xx status code is an error. Response headers are in either*Placement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlacementsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlacementsUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typePlatformType

type PlatformType struct {// Id: ID of this platform type.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#platformType".Kindstring `json:"kind,omitempty"`// Name: Name of this platform type.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlatformType: Contains information about a platform type that can betargeted by ads.

func (PlatformType)MarshalJSON

func (sPlatformType) MarshalJSON() ([]byte,error)

typePlatformTypesGetCall

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

func (*PlatformTypesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*PlatformTypesGetCall)Do

Do executes the "dfareporting.platformTypes.get" call.Any non-2xx status code is an error. Response headers are in either*PlatformType.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PlatformTypesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlatformTypesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlatformTypesGetCall)IfNoneMatch

func (c *PlatformTypesGetCall) IfNoneMatch(entityTagstring) *PlatformTypesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePlatformTypesListCall

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

func (*PlatformTypesListCall)Context

Context sets the context to be used in this call's Do method.

func (*PlatformTypesListCall)Do

Do executes the "dfareporting.platformTypes.list" call.Any non-2xx status code is an error. Response headers are in either*PlatformTypesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*PlatformTypesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PlatformTypesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PlatformTypesListCall)IfNoneMatch

func (c *PlatformTypesListCall) IfNoneMatch(entityTagstring) *PlatformTypesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePlatformTypesListResponse

type PlatformTypesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#platformTypesListResponse".Kindstring `json:"kind,omitempty"`// PlatformTypes: Platform type collection.PlatformTypes []*PlatformType `json:"platformTypes,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PlatformTypesListResponse: Platform Type List Response

func (PlatformTypesListResponse)MarshalJSON

func (sPlatformTypesListResponse) MarshalJSON() ([]byte,error)

typePlatformTypesService

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

funcNewPlatformTypesService

func NewPlatformTypesService(s *Service) *PlatformTypesService

func (*PlatformTypesService)Get

Get: Gets one platform type by ID.

- id: Platform type ID.- profileId: User profile ID associated with this request.

func (*PlatformTypesService)List

List: Retrieves a list of platform types.

- profileId: User profile ID associated with this request.

typePopupWindowProperties

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 VPAIDDimension *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.//// Possible values://   "CENTER" - window positioning at center.//   "COORDINATES" - window positioning by upper left corner coordinates.PositionTypestring `json:"positionType,omitempty"`// ShowAddressBar: Whether to display the browser address bar.ShowAddressBarbool `json:"showAddressBar,omitempty"`// ShowMenuBar: Whether to display the browser menu bar.ShowMenuBarbool `json:"showMenuBar,omitempty"`// ShowScrollBar: Whether to display the browser scroll bar.ShowScrollBarbool `json:"showScrollBar,omitempty"`// ShowStatusBar: Whether to display the browser status bar.ShowStatusBarbool `json:"showStatusBar,omitempty"`// ShowToolBar: Whether to display the browser tool bar.ShowToolBarbool `json:"showToolBar,omitempty"`// Title: Title of popup window.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Dimension") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dimension") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PopupWindowProperties: Popup Window Properties.

func (PopupWindowProperties)MarshalJSON

func (sPopupWindowProperties) MarshalJSON() ([]byte,error)

typePostalCode

type PostalCode struct {// Code: Postal code. This is equivalent to the id field.Codestring `json:"code,omitempty"`// CountryCode: Country code of the country to which this postal code belongs.CountryCodestring `json:"countryCode,omitempty"`// CountryDartId: DART ID of the country to which this postal code belongs.CountryDartIdint64 `json:"countryDartId,omitempty,string"`// Id: ID of this postal code.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#postalCode".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Code") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Code") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PostalCode: Contains information about a postal code that can be targeted byads.

func (PostalCode)MarshalJSON

func (sPostalCode) MarshalJSON() ([]byte,error)

typePostalCodesGetCall

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

func (*PostalCodesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*PostalCodesGetCall)Do

Do executes the "dfareporting.postalCodes.get" call.Any non-2xx status code is an error. Response headers are in either*PostalCode.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PostalCodesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PostalCodesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PostalCodesGetCall)IfNoneMatch

func (c *PostalCodesGetCall) IfNoneMatch(entityTagstring) *PostalCodesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePostalCodesListCall

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

func (*PostalCodesListCall)Context

Context sets the context to be used in this call's Do method.

func (*PostalCodesListCall)Do

Do executes the "dfareporting.postalCodes.list" call.Any non-2xx status code is an error. Response headers are in either*PostalCodesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*PostalCodesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PostalCodesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PostalCodesListCall)IfNoneMatch

func (c *PostalCodesListCall) IfNoneMatch(entityTagstring) *PostalCodesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typePostalCodesListResponse

type PostalCodesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#postalCodesListResponse".Kindstring `json:"kind,omitempty"`// PostalCodes: Postal code collection.PostalCodes []*PostalCode `json:"postalCodes,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PostalCodesListResponse: Postal Code List Response

func (PostalCodesListResponse)MarshalJSON

func (sPostalCodesListResponse) MarshalJSON() ([]byte,error)

typePostalCodesService

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

funcNewPostalCodesService

func NewPostalCodesService(s *Service) *PostalCodesService

func (*PostalCodesService)Get

func (r *PostalCodesService) Get(profileIdint64, codestring) *PostalCodesGetCall

Get: Gets one postal code by ID.

- code: Postal code ID.- profileId: User profile ID associated with this request.

func (*PostalCodesService)List

func (r *PostalCodesService) List(profileIdint64) *PostalCodesListCall

List: Retrieves a list of postal codes.

- profileId: User profile ID associated with this request.

typePricingSchedule

type PricingSchedule struct {// CapCostOption: Placement cap cost option.//// Possible values://   "CAP_COST_NONE"//   "CAP_COST_MONTHLY"//   "CAP_COST_CUMULATIVE"CapCostOptionstring `json:"capCostOption,omitempty"`EndDatestring `json:"endDate,omitempty"`// Flighted: Whether this placement is flighted. If true, pricing periods will// be computed automatically.Flightedbool `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.FloodlightActivityIdint64 `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.//// Possible values://   "PRICING_TYPE_CPM"//   "PRICING_TYPE_CPC"//   "PRICING_TYPE_CPA"//   "PRICING_TYPE_FLAT_RATE_IMPRESSIONS"//   "PRICING_TYPE_FLAT_RATE_CLICKS"//   "PRICING_TYPE_CPM_ACTIVEVIEW"PricingTypestring `json:"pricingType,omitempty"`StartDatestring `json:"startDate,omitempty"`TestingStartDatestring `json:"testingStartDate,omitempty"`// ForceSendFields is a list of field names (e.g. "CapCostOption") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CapCostOption") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PricingSchedule: Pricing Schedule

func (PricingSchedule)MarshalJSON

func (sPricingSchedule) MarshalJSON() ([]byte,error)

typePricingSchedulePricingPeriod

type PricingSchedulePricingPeriod struct {EndDatestring `json:"endDate,omitempty"`// PricingComment: Comments for this pricing period.PricingCommentstring `json:"pricingComment,omitempty"`// RateOrCostNanos: Rate or cost of this pricing period in nanos (i.e.,// multiplied by 1000000000). Acceptable values are 0 to 1000000000000000000,// inclusive.RateOrCostNanosint64  `json:"rateOrCostNanos,omitempty,string"`StartDatestring `json:"startDate,omitempty"`// Units: Units of this pricing period. Acceptable values are 0 to 10000000000,// inclusive.Unitsint64 `json:"units,omitempty,string"`// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndDate") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PricingSchedulePricingPeriod: Pricing Period

func (PricingSchedulePricingPeriod)MarshalJSON

func (sPricingSchedulePricingPeriod) MarshalJSON() ([]byte,error)

typeProximityFilter

type ProximityFilter struct {// FieldId: Optional. Field ID in the element.FieldIdint64 `json:"fieldId,omitempty"`// RadiusBucketType: Optional. The radius bucket type of the proximity filter//// Possible values://   "RADIUS_BUCKET_TYPE_UNKNOWN" - The radius bucket type is unknown.//   "SMALL" - The radius bucket type is small.//   "MEDIUM" - The radius bucket type is medium.//   "LARGE" - The radius bucket type is large.//   "MULTI_REGIONAL" - The radius bucket type is multi-regional.//   "NATIONAL" - The radius bucket type is national.RadiusBucketTypestring `json:"radiusBucketType,omitempty"`// RadiusUnitType: Optional. The units of the radius value//// Possible values://   "RADIUS_UNIT_TYPE_UNKNOWN" - The units of the radius value are unknown.// This value is unused.//   "KILOMETERS" - The units of the radius value are kilometers.//   "MILES" - The units of the radius value are miles.RadiusUnitTypestring `json:"radiusUnitType,omitempty"`// RadiusValue: Optional. Radius length in units defined by radius_units.RadiusValueint64 `json:"radiusValue,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProximityFilter: Contains proximity filter information.

func (ProximityFilter)MarshalJSON

func (sProximityFilter) MarshalJSON() ([]byte,error)

typeReachReportCompatibleFields

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.Kindstring `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"`// ForceSendFields is a list of field names (e.g. "DimensionFilters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionFilters") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReachReportCompatibleFields: Represents fields that are compatible to beselected for a report of type "REACH".

func (ReachReportCompatibleFields)MarshalJSON

func (sReachReportCompatibleFields) MarshalJSON() ([]byte,error)

typeRecipient

type Recipient struct {// DeliveryType: The delivery type for the recipient.//// Possible values://   "LINK"//   "ATTACHMENT"DeliveryTypestring `json:"deliveryType,omitempty"`// Email: The email address of the recipient.Emailstring `json:"email,omitempty"`// Kind: The kind of resource this is, in this case dfareporting#recipient.Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "DeliveryType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeliveryType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Recipient: Represents a recipient.

func (Recipient)MarshalJSON

func (sRecipient) MarshalJSON() ([]byte,error)

typeRegion

type Region struct {// CountryCode: Country code of the country to which this region belongs.CountryCodestring `json:"countryCode,omitempty"`// CountryDartId: DART ID of the country to which this region belongs.CountryDartIdint64 `json:"countryDartId,omitempty,string"`// DartId: DART ID of this region.DartIdint64 `json:"dartId,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#region".Kindstring `json:"kind,omitempty"`// Name: Name of this region.Namestring `json:"name,omitempty"`// RegionCode: Region code.RegionCodestring `json:"regionCode,omitempty"`// ForceSendFields is a list of field names (e.g. "CountryCode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CountryCode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Region: Contains information about a region that can be targeted by ads.

func (Region)MarshalJSON

func (sRegion) MarshalJSON() ([]byte,error)

typeRegionsListCall

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

func (*RegionsListCall)Context

Context sets the context to be used in this call's Do method.

func (*RegionsListCall)Do

Do executes the "dfareporting.regions.list" call.Any non-2xx status code is an error. Response headers are in either*RegionsListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RegionsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RegionsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*RegionsListCall)IfNoneMatch

func (c *RegionsListCall) IfNoneMatch(entityTagstring) *RegionsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeRegionsListResponse

type RegionsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#regionsListResponse".Kindstring `json:"kind,omitempty"`// Regions: Region collection.Regions []*Region `json:"regions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RegionsListResponse: Region List Response

func (RegionsListResponse)MarshalJSON

func (sRegionsListResponse) MarshalJSON() ([]byte,error)

typeRegionsService

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

funcNewRegionsService

func NewRegionsService(s *Service) *RegionsService

func (*RegionsService)List

func (r *RegionsService) List(profileIdint64) *RegionsListCall

List: Retrieves a list of regions.

- profileId: User profile ID associated with this request.

typeRemarketingList

type RemarketingList struct {// AccountId: Account ID of this remarketing list. This is a read-only,// auto-generated field that is only returned in GET requests.AccountIdint64 `json:"accountId,omitempty,string"`// Active: Whether this remarketing list is active.Activebool `json:"active,omitempty"`// AdvertiserId: Dimension value for the advertiser ID that owns this// remarketing list. This is a required field.AdvertiserIdint64 `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"`// Description: Remarketing list description.Descriptionstring `json:"description,omitempty"`// Id: Remarketing list ID. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#remarketingList".Kindstring `json:"kind,omitempty"`// LifeSpan: Number of days that a user should remain in the remarketing list// without an impression. Acceptable values are 1 to 540, inclusive.LifeSpanint64 `json:"lifeSpan,omitempty,string"`// ListPopulationRule: Rule used to populate the remarketing list with users.ListPopulationRule *ListPopulationRule `json:"listPopulationRule,omitempty"`// ListSize: Number of users currently in the list. This is a read-only field.ListSizeint64 `json:"listSize,omitempty,string"`// ListSource: Product from which this remarketing list was originated.//// Possible values://   "REMARKETING_LIST_SOURCE_OTHER" - covers sources not supported in DCM// other than those listed below//   "REMARKETING_LIST_SOURCE_ADX" - ADX//   "REMARKETING_LIST_SOURCE_DFP" - DFP//   "REMARKETING_LIST_SOURCE_XFP" - XFP//   "REMARKETING_LIST_SOURCE_DFA" - DoubleClick Campaign Manager//   "REMARKETING_LIST_SOURCE_GA" - Google Analytics Premium//   "REMARKETING_LIST_SOURCE_YOUTUBE" - Youtube//   "REMARKETING_LIST_SOURCE_DBM" - DoubleClick Bid Manager//   "REMARKETING_LIST_SOURCE_GPLUS" - G+//   "REMARKETING_LIST_SOURCE_DMP" - DoubleClick Audience Center//   "REMARKETING_LIST_SOURCE_PLAY_STORE" - PlaystoreListSourcestring `json:"listSource,omitempty"`// Name: Name of the remarketing list. This is a required field. Must be no// greater than 128 characters long.Namestring `json:"name,omitempty"`// SubaccountId: Subaccount ID of this remarketing list. This is a read-only,// auto-generated field that is only returned in GET requests.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemarketingList: Contains properties of a remarketing list. Remarketingenables you to create lists of users who have performed specific actions ona site, then target ads to members of those lists. This resource can be usedto manage remarketing lists that are owned by your advertisers. To see allremarketing lists that are visible to your advertisers, including those thatare shared to your advertiser or account, use the TargetableRemarketingListsresource.

func (RemarketingList)MarshalJSON

func (sRemarketingList) MarshalJSON() ([]byte,error)

typeRemarketingListShare

type RemarketingListShare struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#remarketingListShare".Kindstring `json:"kind,omitempty"`// RemarketingListId: Remarketing list ID. This is a read-only, auto-generated// field.RemarketingListIdint64 `json:"remarketingListId,omitempty,string"`// SharedAccountIds: Accounts that the remarketing list is shared with.SharedAccountIdsgoogleapi.Int64s `json:"sharedAccountIds,omitempty"`// SharedAdvertiserIds: Advertisers that the remarketing list is shared with.SharedAdvertiserIdsgoogleapi.Int64s `json:"sharedAdvertiserIds,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemarketingListShare: Contains properties of a remarketing list's sharinginformation. Sharing allows other accounts or advertisers to target to yourremarketing lists. This resource can be used to manage remarketing listsharing to other accounts and advertisers.

func (RemarketingListShare)MarshalJSON

func (sRemarketingListShare) MarshalJSON() ([]byte,error)

typeRemarketingListSharesGetCall

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

func (*RemarketingListSharesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListSharesGetCall)Do

Do executes the "dfareporting.remarketingListShares.get" call.Any non-2xx status code is an error. Response headers are in either*RemarketingListShare.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListSharesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListSharesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*RemarketingListSharesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeRemarketingListSharesPatchCall

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

func (*RemarketingListSharesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListSharesPatchCall)Do

Do executes the "dfareporting.remarketingListShares.patch" call.Any non-2xx status code is an error. Response headers are in either*RemarketingListShare.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListSharesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListSharesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeRemarketingListSharesService

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

funcNewRemarketingListSharesService

func NewRemarketingListSharesService(s *Service) *RemarketingListSharesService

func (*RemarketingListSharesService)Get

func (r *RemarketingListSharesService) Get(profileIdint64, remarketingListIdint64) *RemarketingListSharesGetCall

Get: Gets one remarketing list share by remarketing list ID.

- profileId: User profile ID associated with this request.- remarketingListId: Remarketing list ID.

func (*RemarketingListSharesService)Patch

Patch: Updates an existing remarketing list share. This method supportspatch semantics.

- id: RemarketingList ID.- profileId: User profile ID associated with this request.

func (*RemarketingListSharesService)Update

Update: Updates an existing remarketing list share.

- profileId: User profile ID associated with this request.

typeRemarketingListSharesUpdateCall

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

func (*RemarketingListSharesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListSharesUpdateCall)Do

Do executes the "dfareporting.remarketingListShares.update" call.Any non-2xx status code is an error. Response headers are in either*RemarketingListShare.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListSharesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListSharesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeRemarketingListsGetCall

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

func (*RemarketingListsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListsGetCall)Do

Do executes the "dfareporting.remarketingLists.get" call.Any non-2xx status code is an error. Response headers are in either*RemarketingList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*RemarketingListsGetCall)IfNoneMatch

func (c *RemarketingListsGetCall) IfNoneMatch(entityTagstring) *RemarketingListsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeRemarketingListsInsertCall

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

func (*RemarketingListsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListsInsertCall)Do

Do executes the "dfareporting.remarketingLists.insert" call.Any non-2xx status code is an error. Response headers are in either*RemarketingList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeRemarketingListsListCall

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

func (*RemarketingListsListCall)Active

Active sets the optional parameter "active": Select only active or onlyinactive remarketing lists.

func (*RemarketingListsListCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListsListCall)Do

Do executes the "dfareporting.remarketingLists.list" call.Any non-2xx status code is an error. Response headers are in either*RemarketingListsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*RemarketingListsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListsListCall)FloodlightActivityId

func (c *RemarketingListsListCall) FloodlightActivityId(floodlightActivityIdint64) *RemarketingListsListCall

FloodlightActivityId sets the optional parameter "floodlightActivityId":Select only remarketing lists that have this floodlight activity ID.

func (*RemarketingListsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*RemarketingListsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*RemarketingListsListCall)MaxResults

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

func (*RemarketingListsListCall)Name

Name sets the optional parameter "name": Allows searching for objects byname or ID. Wildcards (*) are allowed. For example, "remarketing list*2015"will return objects with names like "remarketing list June 2015","remarketing list April 2015", or simply "remarketing list 2015". Most ofthe searches also add wildcards implicitly at the start and the end of thesearch string. For example, a search string of "remarketing list" will matchobjects with name "my remarketing list", "remarketing list 2015", or simply"remarketing list".

func (*RemarketingListsListCall)PageToken

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

func (*RemarketingListsListCall)Pages

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

func (*RemarketingListsListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*RemarketingListsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeRemarketingListsListResponse

type RemarketingListsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#remarketingListsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// RemarketingLists: Remarketing list collection.RemarketingLists []*RemarketingList `json:"remarketingLists,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemarketingListsListResponse: Remarketing list response

func (RemarketingListsListResponse)MarshalJSON

func (sRemarketingListsListResponse) MarshalJSON() ([]byte,error)

typeRemarketingListsPatchCall

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

func (*RemarketingListsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListsPatchCall)Do

Do executes the "dfareporting.remarketingLists.patch" call.Any non-2xx status code is an error. Response headers are in either*RemarketingList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListsPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeRemarketingListsService

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

funcNewRemarketingListsService

func NewRemarketingListsService(s *Service) *RemarketingListsService

func (*RemarketingListsService)Get

Get: Gets one remarketing list by ID.

- id: Remarketing list ID.- profileId: User profile ID associated with this request.

func (*RemarketingListsService)Insert

func (r *RemarketingListsService) Insert(profileIdint64, remarketinglist *RemarketingList) *RemarketingListsInsertCall

Insert: Inserts a new remarketing list.

- profileId: User profile ID associated with this request.

func (*RemarketingListsService)List

func (r *RemarketingListsService) List(profileIdint64, advertiserIdint64) *RemarketingListsListCall

List: Retrieves a list of remarketing lists, possibly filtered. This methodsupports paging.

- advertiserId: Select only remarketing lists owned by this advertiser.- profileId: User profile ID associated with this request.

func (*RemarketingListsService)Patch

func (r *RemarketingListsService) Patch(profileIdint64, idint64, remarketinglist *RemarketingList) *RemarketingListsPatchCall

Patch: Updates an existing remarketing list. This method supports patchsemantics.

- id: RemarketingList ID.- profileId: User profile ID associated with this request.

func (*RemarketingListsService)Update

func (r *RemarketingListsService) Update(profileIdint64, remarketinglist *RemarketingList) *RemarketingListsUpdateCall

Update: Updates an existing remarketing list.

- profileId: User profile ID associated with this request.

typeRemarketingListsUpdateCall

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

func (*RemarketingListsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*RemarketingListsUpdateCall)Do

Do executes the "dfareporting.remarketingLists.update" call.Any non-2xx status code is an error. Response headers are in either*RemarketingList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*RemarketingListsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*RemarketingListsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeRemarketingValueAttribute

type RemarketingValueAttribute struct {// FieldId: Optional. Field ID in the element.FieldIdint64 `json:"fieldId,omitempty"`// UserAttributeIds: Optional. Remarketing user attribute IDs for auto// filtering.UserAttributeIdsgoogleapi.Int64s `json:"userAttributeIds,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RemarketingValueAttribute: Contains remarketing value attribute information.

func (RemarketingValueAttribute)MarshalJSON

func (sRemarketingValueAttribute) MarshalJSON() ([]byte,error)

typeReport

type Report struct {// AccountId: The account ID to which this report belongs.AccountIdint64 `json:"accountId,omitempty,string"`// Criteria: The report criteria for a report of type "STANDARD".Criteria *ReportCriteria `json:"criteria,omitempty"`// CrossMediaReachCriteria: Optional. The report criteria for a report of type// "CROSS_MEDIA_REACH".CrossMediaReachCriteria *ReportCrossMediaReachCriteria `json:"crossMediaReachCriteria,omitempty"`// Delivery: The report's email delivery settings.Delivery *ReportDelivery `json:"delivery,omitempty"`// Etag: The eTag of this response for caching purposes.Etagstring `json:"etag,omitempty"`// FileName: The filename used when generating report files for this report.FileNamestring `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.//// Possible values://   "CSV"//   "EXCEL"Formatstring `json:"format,omitempty"`// Id: The unique ID identifying this report resource.Idint64 `json:"id,omitempty,string"`// Kind: The kind of resource this is, in this case dfareporting#report.Kindstring `json:"kind,omitempty"`// LastModifiedTime: The timestamp (in milliseconds since epoch) of when this// report was last modified.LastModifiedTimeuint64 `json:"lastModifiedTime,omitempty,string"`// Name: The name of the report.Namestring `json:"name,omitempty"`// OwnerProfileId: The user profile id of the owner of this report.OwnerProfileIdint64 `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.SubAccountIdint64 `json:"subAccountId,omitempty,string"`// Type: The type of the report.//// Possible values://   "STANDARD"//   "REACH"//   "PATH_TO_CONVERSION"//   "FLOODLIGHT"//   "CROSS_MEDIA_REACH"Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Report: Represents a Report resource.

func (Report)MarshalJSON

func (sReport) MarshalJSON() ([]byte,error)

typeReportCompatibleFields

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.Kindstring `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"`// ForceSendFields is a list of field names (e.g. "DimensionFilters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionFilters") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportCompatibleFields: Represents fields that are compatible to be selectedfor a report of type "STANDARD".

func (ReportCompatibleFields)MarshalJSON

func (sReportCompatibleFields) MarshalJSON() ([]byte,error)

typeReportCriteria

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"`// ForceSendFields is a list of field names (e.g. "Activities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Activities") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportCriteria: The report criteria for a report of type "STANDARD".

func (ReportCriteria)MarshalJSON

func (sReportCriteria) MarshalJSON() ([]byte,error)

typeReportCrossMediaReachCriteria

type ReportCrossMediaReachCriteria struct {// DateRange: Required. The date range this report should be run for.DateRange *DateRange `json:"dateRange,omitempty"`// DimensionFilters: Required. 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: Required. The list of dimensions the report should include.Dimensions []*SortedDimension `json:"dimensions,omitempty"`// MetricNames: Required. The list of names of metrics the report should// include.MetricNames []string `json:"metricNames,omitempty"`// ForceSendFields is a list of field names (e.g. "DateRange") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DateRange") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportCrossMediaReachCriteria: Optional. The report criteria for a report oftype "CROSS_MEDIA_REACH".

func (ReportCrossMediaReachCriteria)MarshalJSON

func (sReportCrossMediaReachCriteria) MarshalJSON() ([]byte,error)

typeReportDelivery

type ReportDelivery struct {// EmailOwner: Whether the report should be emailed to the report owner.EmailOwnerbool `json:"emailOwner,omitempty"`// EmailOwnerDeliveryType: The type of delivery for the owner to receive, if// enabled.//// Possible values://   "LINK"//   "ATTACHMENT"EmailOwnerDeliveryTypestring `json:"emailOwnerDeliveryType,omitempty"`// Message: The message to be sent with each email.Messagestring `json:"message,omitempty"`// Recipients: The list of recipients to which to email the report.Recipients []*Recipient `json:"recipients,omitempty"`// ForceSendFields is a list of field names (e.g. "EmailOwner") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EmailOwner") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportDelivery: The report's email delivery settings.

func (ReportDelivery)MarshalJSON

func (sReportDelivery) MarshalJSON() ([]byte,error)

typeReportFloodlightCriteria

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"`// ForceSendFields is a list of field names (e.g. "CustomRichMediaEvents") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomRichMediaEvents") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportFloodlightCriteria: The report criteria for a report of type"FLOODLIGHT".

func (ReportFloodlightCriteria)MarshalJSON

func (sReportFloodlightCriteria) MarshalJSON() ([]byte,error)

typeReportFloodlightCriteriaReportProperties

type ReportFloodlightCriteriaReportProperties struct {// IncludeAttributedIPConversions: Include conversions that have no cookie, but// do have an exposure path.IncludeAttributedIPConversionsbool `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.IncludeUnattributedCookieConversionsbool `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.IncludeUnattributedIPConversionsbool `json:"includeUnattributedIPConversions,omitempty"`// ForceSendFields is a list of field names (e.g.// "IncludeAttributedIPConversions") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IncludeAttributedIPConversions")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportFloodlightCriteriaReportProperties: The properties of the report.

func (ReportFloodlightCriteriaReportProperties)MarshalJSON

typeReportList

type ReportList struct {// Etag: The eTag of this response for caching purposes.Etagstring `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.Kindstring `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.NextPageTokenstring `json:"nextPageToken,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportList: Represents the list of reports.

func (ReportList)MarshalJSON

func (sReportList) MarshalJSON() ([]byte,error)

typeReportPathToConversionCriteria

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"`// ForceSendFields is a list of field names (e.g. "ActivityFilters") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActivityFilters") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportPathToConversionCriteria: The report criteria for a report of type"PATH_TO_CONVERSION".

func (ReportPathToConversionCriteria)MarshalJSON

func (sReportPathToConversionCriteria) MarshalJSON() ([]byte,error)

typeReportPathToConversionCriteriaReportProperties

type ReportPathToConversionCriteriaReportProperties struct {// ClicksLookbackWindow: CM360 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.ClicksLookbackWindowint64 `json:"clicksLookbackWindow,omitempty"`// ImpressionsLookbackWindow: CM360 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.ImpressionsLookbackWindowint64 `json:"impressionsLookbackWindow,omitempty"`// IncludeAttributedIPConversions: Deprecated: has no effect.IncludeAttributedIPConversionsbool `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.IncludeUnattributedCookieConversionsbool `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.IncludeUnattributedIPConversionsbool `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.MaximumClickInteractionsint64 `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.MaximumImpressionInteractionsint64 `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.MaximumInteractionGapint64 `json:"maximumInteractionGap,omitempty"`// PivotOnInteractionPath: Enable pivoting on interaction path.PivotOnInteractionPathbool `json:"pivotOnInteractionPath,omitempty"`// ForceSendFields is a list of field names (e.g. "ClicksLookbackWindow") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClicksLookbackWindow") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportPathToConversionCriteriaReportProperties: The properties of thereport.

func (ReportPathToConversionCriteriaReportProperties)MarshalJSON

typeReportReachCriteria

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"`// 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"`// ForceSendFields is a list of field names (e.g. "Activities") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Activities") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportReachCriteria: The report criteria for a report of type "REACH".

func (ReportReachCriteria)MarshalJSON

func (sReportReachCriteria) MarshalJSON() ([]byte,error)

typeReportSchedule

type ReportSchedule struct {// Active: Whether the schedule is active or not. Must be set to either true or// false.Activebool `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".Everyint64  `json:"every,omitempty"`ExpirationDatestring `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.Repeatsstring `json:"repeats,omitempty"`// RepeatsOnWeekDays: List of week days "WEEKLY" on which scheduled reports// should run.//// Possible values://   "SUNDAY"//   "MONDAY"//   "TUESDAY"//   "WEDNESDAY"//   "THURSDAY"//   "FRIDAY"//   "SATURDAY"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.//// Possible values://   "DAY_OF_MONTH"//   "WEEK_OF_MONTH"RunsOnDayOfMonthstring `json:"runsOnDayOfMonth,omitempty"`StartDatestring `json:"startDate,omitempty"`// Timezone: The timezone when the report will run.Timezonestring `json:"timezone,omitempty"`// ForceSendFields is a list of field names (e.g. "Active") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Active") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportSchedule: 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".

func (ReportSchedule)MarshalJSON

func (sReportSchedule) MarshalJSON() ([]byte,error)

typeReportsCompatibleFieldsQueryCall

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

func (*ReportsCompatibleFieldsQueryCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsCompatibleFieldsQueryCall)Do

Do executes the "dfareporting.reports.compatibleFields.query" call.Any non-2xx status code is an error. Response headers are in either*CompatibleFields.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ReportsCompatibleFieldsQueryCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsCompatibleFieldsQueryCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeReportsCompatibleFieldsService

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

funcNewReportsCompatibleFieldsService

func NewReportsCompatibleFieldsService(s *Service) *ReportsCompatibleFieldsService

func (*ReportsCompatibleFieldsService)Query

Query: Returns the fields that are compatible to be selected in therespective sections of a report criteria, given the fields already selectedin the input report and user permissions.

- profileId: The Campaign Manager 360 user profile ID.

typeReportsConfiguration

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.ExposureToConversionEnabledbool `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 cannot be changed on update. 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" - "16" for "America/Asuncion" - "17" for// "America/Chicago" - "18" for "America/Denver" - "19" for "America/St_Johns"// - "20" for "Asia/Dhaka" - "21" for "Asia/Jakarta" - "22" for "Asia/Kabul" -// "23" for "Asia/Karachi" - "24" for "Asia/Calcutta" - "25" for// "Asia/Pyongyang" - "26" for "Asia/Rangoon" - "27" for "Atlantic/Cape_Verde"// - "28" for "Atlantic/South_Georgia" - "29" for "Australia/Adelaide" - "30"// for "Australia/Lord_Howe" - "31" for "Europe/Moscow" - "32" for// "Pacific/Kiritimati" - "35" for "Pacific/Norfolk" - "36" for// "Pacific/Tongatapu"ReportGenerationTimeZoneIdint64 `json:"reportGenerationTimeZoneId,omitempty,string"`// ForceSendFields is a list of field names (e.g.// "ExposureToConversionEnabled") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExposureToConversionEnabled") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ReportsConfiguration: Reporting Configuration

func (ReportsConfiguration)MarshalJSON

func (sReportsConfiguration) MarshalJSON() ([]byte,error)

typeReportsDeleteCall

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

func (*ReportsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsDeleteCall)Do

Do executes the "dfareporting.reports.delete" call.

func (*ReportsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsDeleteCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeReportsFilesGetCall

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

func (*ReportsFilesGetCall)Context

Context sets the context to be used in this call's Do and Download methods.

func (*ReportsFilesGetCall)Do

Do executes the "dfareporting.reports.files.get" call.Any non-2xx status code is an error. Response headers are in either*File.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsFilesGetCall)Download

Download fetches the API endpoint's "media" value, instead of the normalAPI response value. If the returned error is nil, the Response is guaranteed tohave a 2xx status code. Callers must close the Response.Body as usual.

func (*ReportsFilesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsFilesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ReportsFilesGetCall)IfNoneMatch

func (c *ReportsFilesGetCall) IfNoneMatch(entityTagstring) *ReportsFilesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeReportsFilesListCall

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

func (*ReportsFilesListCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsFilesListCall)Do

Do executes the "dfareporting.reports.files.list" call.Any non-2xx status code is an error. Response headers are in either*FileList.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsFilesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsFilesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ReportsFilesListCall)IfNoneMatch

func (c *ReportsFilesListCall) IfNoneMatch(entityTagstring) *ReportsFilesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ReportsFilesListCall)MaxResults

func (c *ReportsFilesListCall) MaxResults(maxResultsint64) *ReportsFilesListCall

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

func (*ReportsFilesListCall)PageToken

func (c *ReportsFilesListCall) PageToken(pageTokenstring) *ReportsFilesListCall

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

func (*ReportsFilesListCall)Pages

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

func (*ReportsFilesListCall)SortField

func (c *ReportsFilesListCall) SortField(sortFieldstring) *ReportsFilesListCall

SortField sets the optional parameter "sortField": The field by which tosort the list.

Possible values:

"ID""LAST_MODIFIED_TIME" (default)

func (*ReportsFilesListCall)SortOrder

func (c *ReportsFilesListCall) SortOrder(sortOrderstring) *ReportsFilesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" - Ascending order."DESCENDING" (default) - Descending order.

typeReportsFilesService

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

funcNewReportsFilesService

func NewReportsFilesService(s *Service) *ReportsFilesService

func (*ReportsFilesService)Get

func (r *ReportsFilesService) Get(profileIdint64, reportIdint64, fileIdint64) *ReportsFilesGetCall

Get: Retrieves a report file by its report ID and file ID. This methodsupports media download.

- fileId: The ID of the report file.- profileId: The Campaign Manager 360 user profile ID.- reportId: The ID of the report.

func (*ReportsFilesService)List

func (r *ReportsFilesService) List(profileIdint64, reportIdint64) *ReportsFilesListCall

List: Lists files for a report.

- profileId: The Campaign Manager 360 user profile ID.- reportId: The ID of the parent report.

typeReportsGetCall

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

func (*ReportsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsGetCall)Do

Do executes the "dfareporting.reports.get" call.Any non-2xx status code is an error. Response headers are in either*Report.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ReportsGetCall)IfNoneMatch

func (c *ReportsGetCall) IfNoneMatch(entityTagstring) *ReportsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeReportsInsertCall

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

func (*ReportsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsInsertCall)Do

Do executes the "dfareporting.reports.insert" call.Any non-2xx status code is an error. Response headers are in either*Report.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeReportsListCall

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

func (*ReportsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsListCall)Do

Do executes the "dfareporting.reports.list" call.Any non-2xx status code is an error. Response headers are in either*ReportList.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ReportsListCall)IfNoneMatch

func (c *ReportsListCall) IfNoneMatch(entityTagstring) *ReportsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ReportsListCall)MaxResults

func (c *ReportsListCall) MaxResults(maxResultsint64) *ReportsListCall

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

func (*ReportsListCall)PageToken

func (c *ReportsListCall) PageToken(pageTokenstring) *ReportsListCall

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

func (*ReportsListCall)Pages

func (c *ReportsListCall) Pages(ctxcontext.Context, f func(*ReportList)error)error

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

func (*ReportsListCall)Scope

func (c *ReportsListCall) Scope(scopestring) *ReportsListCall

Scope sets the optional parameter "scope": The scope that defines whichresults are returned.

Possible values:

"ALL" - All reports in account."MINE" (default) - My reports.

func (*ReportsListCall)SortField

func (c *ReportsListCall) SortField(sortFieldstring) *ReportsListCall

SortField sets the optional parameter "sortField": The field by which tosort the list.

Possible values:

"ID" - Sort by report ID."LAST_MODIFIED_TIME" (default) - Sort by 'lastModifiedTime' field."NAME" - Sort by name of reports.

func (*ReportsListCall)SortOrder

func (c *ReportsListCall) SortOrder(sortOrderstring) *ReportsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" - Ascending order."DESCENDING" (default) - Descending order.

typeReportsRunCall

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

func (*ReportsRunCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsRunCall)Do

func (c *ReportsRunCall) Do(opts ...googleapi.CallOption) (*File,error)

Do executes the "dfareporting.reports.run" call.Any non-2xx status code is an error. Response headers are in either*File.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsRunCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsRunCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ReportsRunCall)Synchronous

func (c *ReportsRunCall) Synchronous(synchronousbool) *ReportsRunCall

Synchronous sets the optional parameter "synchronous": If set and true,tries to run the report synchronously.

typeReportsService

type ReportsService struct {CompatibleFields *ReportsCompatibleFieldsServiceFiles *ReportsFilesService// contains filtered or unexported fields}

funcNewReportsService

func NewReportsService(s *Service) *ReportsService

func (*ReportsService)Delete

func (r *ReportsService) Delete(profileIdint64, reportIdint64) *ReportsDeleteCall

Delete: Deletes a report by its ID.

- profileId: The Campaign Manager 360 user profile ID.- reportId: The ID of the report.

func (*ReportsService)Get

func (r *ReportsService) Get(profileIdint64, reportIdint64) *ReportsGetCall

Get: Retrieves a report by its ID.

- profileId: The Campaign Manager 360 user profile ID.- reportId: The ID of the report.

func (*ReportsService)Insert

func (r *ReportsService) Insert(profileIdint64, report *Report) *ReportsInsertCall

Insert: Creates a report.

- profileId: The Campaign Manager 360 user profile ID.

func (*ReportsService)List

func (r *ReportsService) List(profileIdint64) *ReportsListCall

List: Retrieves list of reports.

- profileId: The Campaign Manager 360 user profile ID.

func (*ReportsService)Run

func (r *ReportsService) Run(profileIdint64, reportIdint64) *ReportsRunCall

Run: Runs a report.

- profileId: The Campaign Manager 360 user profile ID.- reportId: The ID of the report.

func (*ReportsService)Update

func (r *ReportsService) Update(profileIdint64, reportIdint64, report *Report) *ReportsUpdateCall

Update: Updates a report.

- profileId: The Campaign Manager 360 user profile ID.- reportId: The ID of the report.

typeReportsUpdateCall

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

func (*ReportsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ReportsUpdateCall)Do

Do executes the "dfareporting.reports.update" call.Any non-2xx status code is an error. Response headers are in either*Report.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ReportsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ReportsUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeRequestValue

type RequestValue struct {// ExcludeFromUserAttributeIds: Optional. User attribute IDs in the request// that should be excluded. Used only when the field type is REMARKETING_VALUE// or USER_ATTRIBUTE_ID.ExcludeFromUserAttributeIdsgoogleapi.Int64s `json:"excludeFromUserAttributeIds,omitempty"`// Key: Optional. Custom key in the request. Used only when the field type is// CUSTOM_VALUE.Keystring `json:"key,omitempty"`// UserAttributeIds: Optional. User attribute IDs in the request. Used only// when the field type is REMARKETING_VALUE or USER_ATTRIBUTE_ID.UserAttributeIdsgoogleapi.Int64s `json:"userAttributeIds,omitempty"`// ForceSendFields is a list of field names (e.g.// "ExcludeFromUserAttributeIds") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ExcludeFromUserAttributeIds") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RequestValue: Contains request value information.

func (RequestValue)MarshalJSON

func (sRequestValue) MarshalJSON() ([]byte,error)

typeRichMediaExitOverride

type RichMediaExitOverride struct {// ClickThroughUrl: Click-through URL of this rich media exit override.// Applicable if the enabled field is set to true.ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`// Enabled: Whether to use the clickThroughUrl. If false, the creative-level// exit will be used.Enabledbool `json:"enabled,omitempty"`// ExitId: ID for the override to refer to a specific exit in the creative.ExitIdint64 `json:"exitId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickThroughUrl") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RichMediaExitOverride: Rich Media Exit Override.

func (RichMediaExitOverride)MarshalJSON

func (sRichMediaExitOverride) MarshalJSON() ([]byte,error)

typeRuleBlock

type RuleBlock struct {// FieldFilter: Optional. A list of non-auto field filtersFieldFilter []*FieldFilter `json:"fieldFilter,omitempty"`// ForceSendFields is a list of field names (e.g. "FieldFilter") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FieldFilter") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

RuleBlock: Contains a list of field filters that the given custom rule willapply.

func (RuleBlock)MarshalJSON

func (sRuleBlock) MarshalJSON() ([]byte,error)

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentAccountActiveAdSummaries *AccountActiveAdSummariesServiceAccountPermissionGroups *AccountPermissionGroupsServiceAccountPermissions *AccountPermissionsServiceAccountUserProfiles *AccountUserProfilesServiceAccounts *AccountsServiceAds *AdsServiceAdvertiserGroups *AdvertiserGroupsServiceAdvertiserInvoices *AdvertiserInvoicesServiceAdvertiserLandingPages *AdvertiserLandingPagesServiceAdvertisers *AdvertisersServiceBillingAssignments *BillingAssignmentsServiceBillingProfiles *BillingProfilesServiceBillingRates *BillingRatesServiceBrowsers *BrowsersServiceCampaignCreativeAssociations *CampaignCreativeAssociationsServiceCampaigns *CampaignsServiceChangeLogs *ChangeLogsServiceCities *CitiesServiceConnectionTypes *ConnectionTypesServiceContentCategories *ContentCategoriesServiceConversions *ConversionsServiceCountries *CountriesServiceCreativeAssets *CreativeAssetsServiceCreativeFieldValues *CreativeFieldValuesServiceCreativeFields *CreativeFieldsServiceCreativeGroups *CreativeGroupsServiceCreatives *CreativesServiceDimensionValues *DimensionValuesServiceDirectorySites *DirectorySitesServiceDynamicFeeds *DynamicFeedsServiceDynamicProfiles *DynamicProfilesServiceDynamicTargetingKeys *DynamicTargetingKeysServiceEventTags *EventTagsServiceFiles *FilesServiceFloodlightActivities *FloodlightActivitiesServiceFloodlightActivityGroups *FloodlightActivityGroupsServiceFloodlightConfigurations *FloodlightConfigurationsServiceLanguages *LanguagesServiceMetros *MetrosServiceMobileApps *MobileAppsServiceMobileCarriers *MobileCarriersServiceOperatingSystemVersions *OperatingSystemVersionsServiceOperatingSystems *OperatingSystemsServicePlacementGroups *PlacementGroupsServicePlacementStrategies *PlacementStrategiesServicePlacements *PlacementsServicePlatformTypes *PlatformTypesServicePostalCodes *PostalCodesServiceRegions *RegionsServiceRemarketingListShares *RemarketingListSharesServiceRemarketingLists *RemarketingListsServiceReports *ReportsServiceSites *SitesServiceSizes *SizesServiceStudioCreativeAssets *StudioCreativeAssetsServiceStudioCreatives *StudioCreativesServiceSubaccounts *SubaccountsServiceTargetableRemarketingLists *TargetableRemarketingListsServiceTargetingTemplates *TargetingTemplatesServiceTvCampaignDetails *TvCampaignDetailsServiceTvCampaignSummaries *TvCampaignSummariesServiceUserProfiles *UserProfilesServiceUserRolePermissionGroups *UserRolePermissionGroupsServiceUserRolePermissions *UserRolePermissionsServiceUserRoles *UserRolesServiceVideoFormats *VideoFormatsService// contains filtered or unexported fields}

funcNewdeprecated

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

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

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

funcNewService

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

NewService creates a new Service.

typeSite

type Site struct {// AccountId: Account ID of this site. This is a read-only field that can be// left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AdServingPlatformId: Optional. Ad serving platform ID to identify the ad// serving platform used by the site. Measurement partners can use this field// to add ad-server specific macros. If set, this value acts as the default// during placement creation. Possible values are: * `1`, Adelphic * `2`,// Adform * `3`, Adobe * `4`, Amobee * `5`, Basis (Centro) * `6`, Beeswax *// `7`, Amazon * `8`, DV360 (DBM) * `9`, Innovid * `10`, MediaMath * `11`, Roku// OneView DSP * `12`, TabMo Hawk * `13`, The Trade Desk * `14`, Xandr Invest// DSP * `15`, Yahoo DSP * `16`, Zeta Global * `17`, Scaleout * `18`,// Bidtellect * `19`, Unicorn * `20`, Teads * `21`, Quantcast * `22`, Cognitiv// * `23`, AdTheorent * `24`, DeepIntent * `25`, PulsepointAdServingPlatformIdint64 `json:"adServingPlatformId,omitempty,string"`// Approved: Whether this site is approved.Approvedbool `json:"approved,omitempty"`// DirectorySiteId: Directory site associated with this site. This is a// required field that is read-only after insertion.DirectorySiteIdint64 `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.Idint64 `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.KeyNamestring `json:"keyName,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#site".Kindstring `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.Namestring `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.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// VideoSettings: Default video settings for new placements created under this// site. This value will be used to populate the placements.videoSettings// field, when no value is specified for the new placement.VideoSettings *SiteVideoSettings `json:"videoSettings,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Site: Contains properties of a site.

func (Site)MarshalJSON

func (sSite) MarshalJSON() ([]byte,error)

typeSiteCompanionSetting

type SiteCompanionSetting struct {// CompanionsDisabled: Whether companions are disabled for this site template.CompanionsDisabledbool `json:"companionsDisabled,omitempty"`// EnabledSizes: Allowlist of companion sizes to be served via this site// template. Set this list to null or empty to serve all companion sizes.EnabledSizes []*Size `json:"enabledSizes,omitempty"`// ImageOnly: Whether to serve only static images as companions.ImageOnlybool `json:"imageOnly,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#siteCompanionSetting".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "CompanionsDisabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompanionsDisabled") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SiteCompanionSetting: Companion Settings

func (SiteCompanionSetting)MarshalJSON

func (sSiteCompanionSetting) MarshalJSON() ([]byte,error)

typeSiteContact

type SiteContact struct {// Address: Address of this site contact.Addressstring `json:"address,omitempty"`// ContactType: Site contact type.//// Possible values://   "SALES_PERSON"//   "TRAFFICKER"ContactTypestring `json:"contactType,omitempty"`// Email: Email address of this site contact. This is a required field.Emailstring `json:"email,omitempty"`// FirstName: First name of this site contact.FirstNamestring `json:"firstName,omitempty"`// Id: ID of this site contact. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// LastName: Last name of this site contact.LastNamestring `json:"lastName,omitempty"`// Phone: Primary phone number of this site contact.Phonestring `json:"phone,omitempty"`// Title: Title or designation of this site contact.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Address") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Address") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SiteContact: Site Contact

func (SiteContact)MarshalJSON

func (sSiteContact) MarshalJSON() ([]byte,error)

typeSiteSettings

type SiteSettings struct {// ActiveViewOptOut: Whether active view creatives are disabled for this site.ActiveViewOptOutbool `json:"activeViewOptOut,omitempty"`// AdBlockingOptOut: Whether this site opts out of ad blocking. When true, ad// blocking is disabled for all placements under the site, regardless of the// individual placement settings. When false, the campaign and placement// settings take effect.AdBlockingOptOutbool `json:"adBlockingOptOut,omitempty"`// DisableNewCookie: Whether new cookies are disabled for this site.DisableNewCookiebool `json:"disableNewCookie,omitempty"`// TagSetting: Configuration settings for dynamic and image floodlight tags.TagSetting *TagSetting `json:"tagSetting,omitempty"`// VideoActiveViewOptOutTemplate: Whether Verification and ActiveView for// in-stream video creatives are disabled by default for new placements created// under this site. This value will be used to populate the// placement.videoActiveViewOptOut field, when no value is specified for the// new placement.VideoActiveViewOptOutTemplatebool `json:"videoActiveViewOptOutTemplate,omitempty"`// VpaidAdapterChoiceTemplate: Default VPAID adapter setting for new placements// created under this site. This value will be used to populate the// placements.vpaidAdapterChoice field, when no value is specified for the new// placement. Controls which VPAID format the measurement adapter will use for// in-stream video creatives assigned to the placement. The publisher's// specifications will typically determine this setting. For VPAID creatives,// the adapter format will match the VPAID format (HTML5 VPAID creatives use// the HTML5 adapter). *Note:* Flash is no longer supported. This field now// defaults to HTML5 when the following values are provided: FLASH, BOTH.//// Possible values://   "DEFAULT" - DEFAULT means Google chooses which adapter, if any, to serve.//   "FLASH"//   "HTML5"//   "BOTH"VpaidAdapterChoiceTemplatestring `json:"vpaidAdapterChoiceTemplate,omitempty"`// ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ActiveViewOptOut") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SiteSettings: Site Settings

func (SiteSettings)MarshalJSON

func (sSiteSettings) MarshalJSON() ([]byte,error)

typeSiteSkippableSetting

type SiteSkippableSetting struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#siteSkippableSetting".Kindstring `json:"kind,omitempty"`// ProgressOffset: Amount of time to play videos served to this site template// before counting a view. Applicable when skippable is true.ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`// SkipOffset: Amount of time to play videos served to this site before the// skip button should appear. Applicable when skippable is true.SkipOffset *VideoOffset `json:"skipOffset,omitempty"`// Skippable: Whether the user can skip creatives served to this site. This// will act as default for new placements created under this site.Skippablebool `json:"skippable,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SiteSkippableSetting: Skippable Settings

func (SiteSkippableSetting)MarshalJSON

func (sSiteSkippableSetting) MarshalJSON() ([]byte,error)

typeSiteTranscodeSetting

type SiteTranscodeSetting struct {// EnabledVideoFormats: Allowlist of video formats to be served to this site// template. Set this list to null or empty to serve all video formats.EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#siteTranscodeSetting".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnabledVideoFormats") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SiteTranscodeSetting: Transcode Settings

func (SiteTranscodeSetting)MarshalJSON

func (sSiteTranscodeSetting) MarshalJSON() ([]byte,error)

typeSiteVideoSettings

type SiteVideoSettings struct {// CompanionSettings: Settings for the companion creatives of video creatives// served to this site.CompanionSettings *SiteCompanionSetting `json:"companionSettings,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#siteVideoSettings".Kindstring `json:"kind,omitempty"`// ObaEnabled: Whether OBA icons are enabled for this placement.ObaEnabledbool `json:"obaEnabled,omitempty"`// ObaSettings: Settings for the OBA icon of video creatives served to this// site. This will act as default for new placements created under this site.ObaSettings *ObaIcon `json:"obaSettings,omitempty"`// Orientation: Orientation of a site template used for video. This will act as// default for new placements created under this site.//// Possible values://   "ANY"//   "LANDSCAPE"//   "PORTRAIT"Orientationstring `json:"orientation,omitempty"`// PublisherSpecificationId: Publisher specification ID used to identify// site-associated publisher requirements and automatically populate transcode// settings. If publisher specification ID is specified, it will take// precedence over transcode settings. Possible values are: * `1`, Hulu * `2`,// NBC * `3`, CBS * `4`, CBS Desktop * `5`, Discovery * `6`, VEVO HD * `7`,// VEVO Vertical * `8`, Fox * `9`, CW Network * `10`, Disney * `11`, IGN *// `12`, NFL.com * `13`, Turner Broadcasting * `14`, Tubi on Fox * `15`, Hearst// Corporation * `16`, Twitch Desktop * `17`, ABC * `18`, Univision * `19`,// MLB.com * `20`, MLB.com Mobile * `21`, MLB.com OTT * `22`, Polsat * `23`,// TVN * `24`, Mediaset * `25`, Antena 3 * `26`, Mediamond * `27`, Sky Italia *// `28`, Tubi on CBS * `29`, Spotify * `30`, Paramount * `31`, MaxPublisherSpecificationIdint64 `json:"publisherSpecificationId,omitempty,string"`// SkippableSettings: Settings for the skippability of video creatives served// to this site. This will act as default for new placements created under this// site.SkippableSettings *SiteSkippableSetting `json:"skippableSettings,omitempty"`// TranscodeSettings: Settings for the transcodes of video creatives served to// this site. This will act as default for new placements created under this// site.TranscodeSettings *SiteTranscodeSetting `json:"transcodeSettings,omitempty"`// ForceSendFields is a list of field names (e.g. "CompanionSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompanionSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SiteVideoSettings: Video Settings

func (SiteVideoSettings)MarshalJSON

func (sSiteVideoSettings) MarshalJSON() ([]byte,error)

typeSitesGetCall

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

func (*SitesGetCall)Context

func (c *SitesGetCall) Context(ctxcontext.Context) *SitesGetCall

Context sets the context to be used in this call's Do method.

func (*SitesGetCall)Do

func (c *SitesGetCall) Do(opts ...googleapi.CallOption) (*Site,error)

Do executes the "dfareporting.sites.get" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SitesGetCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SitesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*SitesGetCall)IfNoneMatch

func (c *SitesGetCall) IfNoneMatch(entityTagstring) *SitesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeSitesInsertCall

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

func (*SitesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*SitesInsertCall)Do

func (c *SitesInsertCall) Do(opts ...googleapi.CallOption) (*Site,error)

Do executes the "dfareporting.sites.insert" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SitesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SitesInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeSitesListCall

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

func (*SitesListCall)AcceptsInStreamVideoPlacements

func (c *SitesListCall) AcceptsInStreamVideoPlacements(acceptsInStreamVideoPlacementsbool) *SitesListCall

AcceptsInStreamVideoPlacements sets the optional parameter"acceptsInStreamVideoPlacements": This search filter is no longer supportedand will have no effect on the results returned.

func (*SitesListCall)AcceptsInterstitialPlacements

func (c *SitesListCall) AcceptsInterstitialPlacements(acceptsInterstitialPlacementsbool) *SitesListCall

AcceptsInterstitialPlacements sets the optional parameter"acceptsInterstitialPlacements": This search filter is no longer supportedand will have no effect on the results returned.

func (*SitesListCall)AcceptsPublisherPaidPlacements

func (c *SitesListCall) AcceptsPublisherPaidPlacements(acceptsPublisherPaidPlacementsbool) *SitesListCall

AcceptsPublisherPaidPlacements sets the optional parameter"acceptsPublisherPaidPlacements": Select only sites that accept publisherpaid placements.

func (*SitesListCall)AdWordsSite

func (c *SitesListCall) AdWordsSite(adWordsSitebool) *SitesListCall

AdWordsSite sets the optional parameter "adWordsSite": Select only AdWordssites.

func (*SitesListCall)Approved

func (c *SitesListCall) Approved(approvedbool) *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 siteswith these campaign IDs.

func (*SitesListCall)Context

Context sets the context to be used in this call's Do method.

func (*SitesListCall)DirectorySiteIds

func (c *SitesListCall) DirectorySiteIds(directorySiteIds ...int64) *SitesListCall

DirectorySiteIds sets the optional parameter "directorySiteIds": Select onlysites with these directory site IDs.

func (*SitesListCall)Do

Do executes the "dfareporting.sites.list" call.Any non-2xx status code is an error. Response headers are in either*SitesListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*SitesListCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SitesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*SitesListCall)Ids

func (c *SitesListCall) Ids(ids ...int64) *SitesListCall

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

func (*SitesListCall)IfNoneMatch

func (c *SitesListCall) IfNoneMatch(entityTagstring) *SitesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*SitesListCall)MaxResults

func (c *SitesListCall) MaxResults(maxResultsint64) *SitesListCall

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

func (*SitesListCall)PageToken

func (c *SitesListCall) PageToken(pageTokenstring) *SitesListCall

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

func (*SitesListCall)Pages

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

func (*SitesListCall)SearchString

func (c *SitesListCall) SearchString(searchStringstring) *SitesListCall

SearchString sets the optional parameter "searchString": Allows searchingfor objects by name, ID or keyName. Wildcards (*) are allowed. For example,"site*2015" will return objects with names like "site June 2015", "siteApril 2015", or simply "site 2015". Most of the searches also add wildcardsimplicitly at the start and the end of the search string. For example, asearch string of "site" will match objects with name "my site", "site 2015",or simply "site".

func (*SitesListCall)SortField

func (c *SitesListCall) SortField(sortFieldstring) *SitesListCall

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

Possible values:

"ID" (default)"NAME"

func (*SitesListCall)SortOrder

func (c *SitesListCall) SortOrder(sortOrderstring) *SitesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*SitesListCall)SubaccountId

func (c *SitesListCall) SubaccountId(subaccountIdint64) *SitesListCall

SubaccountId sets the optional parameter "subaccountId": Select only siteswith this subaccount ID.

func (*SitesListCall)UnmappedSite

func (c *SitesListCall) UnmappedSite(unmappedSitebool) *SitesListCall

UnmappedSite sets the optional parameter "unmappedSite": Select only sitesthat have not been mapped to a directory site.

typeSitesListResponse

type SitesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#sitesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// Sites: Site collection.Sites []*Site `json:"sites,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SitesListResponse: Site List Response

func (SitesListResponse)MarshalJSON

func (sSitesListResponse) MarshalJSON() ([]byte,error)

typeSitesPatchCall

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

func (*SitesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*SitesPatchCall)Do

func (c *SitesPatchCall) Do(opts ...googleapi.CallOption) (*Site,error)

Do executes the "dfareporting.sites.patch" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SitesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SitesPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeSitesService

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

funcNewSitesService

func NewSitesService(s *Service) *SitesService

func (*SitesService)Get

func (r *SitesService) Get(profileIdint64, idint64) *SitesGetCall

Get: Gets one site by ID.

- id: Site ID.- profileId: User profile ID associated with this request.

func (*SitesService)Insert

func (r *SitesService) Insert(profileIdint64, site *Site) *SitesInsertCall

Insert: Inserts a new site.

- profileId: User profile ID associated with this request.

func (*SitesService)List

func (r *SitesService) List(profileIdint64) *SitesListCall

List: Retrieves a list of sites, possibly filtered. This method supportspaging.

- profileId: User profile ID associated with this request.

func (*SitesService)Patch

func (r *SitesService) Patch(profileIdint64, idint64, site *Site) *SitesPatchCall

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

- id: Site ID.- profileId: User profile ID associated with this request.

func (*SitesService)Update

func (r *SitesService) Update(profileIdint64, site *Site) *SitesUpdateCall

Update: Updates an existing site.

- profileId: User profile ID associated with this request.

typeSitesUpdateCall

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

func (*SitesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*SitesUpdateCall)Do

func (c *SitesUpdateCall) Do(opts ...googleapi.CallOption) (*Site,error)

Do executes the "dfareporting.sites.update" call.Any non-2xx status code is an error. Response headers are in either*Site.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SitesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SitesUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeSize

type Size struct {// Height: Height of this size. Acceptable values are 0 to 32767, inclusive.Heightint64 `json:"height,omitempty"`// Iab: IAB standard size. This is a read-only, auto-generated field.Iabbool `json:"iab,omitempty"`// Id: ID of this size. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#size".Kindstring `json:"kind,omitempty"`// Width: Width of this size. Acceptable values are 0 to 32767, inclusive.Widthint64 `json:"width,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Height") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Height") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Size: Represents the dimensions of ads, placements, creatives, or creativeassets.

func (Size)MarshalJSON

func (sSize) MarshalJSON() ([]byte,error)

typeSizesGetCall

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

func (*SizesGetCall)Context

func (c *SizesGetCall) Context(ctxcontext.Context) *SizesGetCall

Context sets the context to be used in this call's Do method.

func (*SizesGetCall)Do

func (c *SizesGetCall) Do(opts ...googleapi.CallOption) (*Size,error)

Do executes the "dfareporting.sizes.get" call.Any non-2xx status code is an error. Response headers are in either*Size.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SizesGetCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SizesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*SizesGetCall)IfNoneMatch

func (c *SizesGetCall) IfNoneMatch(entityTagstring) *SizesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeSizesInsertCall

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

func (*SizesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*SizesInsertCall)Do

func (c *SizesInsertCall) Do(opts ...googleapi.CallOption) (*Size,error)

Do executes the "dfareporting.sizes.insert" call.Any non-2xx status code is an error. Response headers are in either*Size.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SizesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SizesInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeSizesListCall

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

func (*SizesListCall)Context

Context sets the context to be used in this call's Do method.

func (*SizesListCall)Do

Do executes the "dfareporting.sizes.list" call.Any non-2xx status code is an error. Response headers are in either*SizesListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*SizesListCall)Fields

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

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SizesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*SizesListCall)Height

func (c *SizesListCall) Height(heightint64) *SizesListCall

Height sets the optional parameter "height": Select only sizes with thisheight.

func (*SizesListCall)IabStandard

func (c *SizesListCall) IabStandard(iabStandardbool) *SizesListCall

IabStandard sets the optional parameter "iabStandard": Select only IABstandard 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)IfNoneMatch

func (c *SizesListCall) IfNoneMatch(entityTagstring) *SizesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*SizesListCall)Width

func (c *SizesListCall) Width(widthint64) *SizesListCall

Width sets the optional parameter "width": Select only sizes with thiswidth.

typeSizesListResponse

type SizesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#sizesListResponse".Kindstring `json:"kind,omitempty"`// Sizes: Size collection.Sizes []*Size `json:"sizes,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SizesListResponse: Size List Response

func (SizesListResponse)MarshalJSON

func (sSizesListResponse) MarshalJSON() ([]byte,error)

typeSizesService

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

funcNewSizesService

func NewSizesService(s *Service) *SizesService

func (*SizesService)Get

func (r *SizesService) Get(profileIdint64, idint64) *SizesGetCall

Get: Gets one size by ID.

- id: Size ID.- profileId: User profile ID associated with this request.

func (*SizesService)Insert

func (r *SizesService) Insert(profileIdint64, size *Size) *SizesInsertCall

Insert: Inserts a new size.

- profileId: User profile ID associated with this request.

func (*SizesService)List

func (r *SizesService) List(profileIdint64) *SizesListCall

List: Retrieves a list of sizes, possibly filtered. Retrieved sizes areglobally unique and may include values not currently in use by your account.Due to this, the list of sizes returned by this method may differ from thelist seen in the Trafficking UI.

- profileId: User profile ID associated with this request.

typeSkippableSetting

type SkippableSetting struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#skippableSetting".Kindstring `json:"kind,omitempty"`// ProgressOffset: Amount of time to play videos served to this placement// before counting a view. Applicable when skippable is true.ProgressOffset *VideoOffset `json:"progressOffset,omitempty"`// SkipOffset: Amount of time to play videos served to this placement before// the skip button should appear. Applicable when skippable is true.SkipOffset *VideoOffset `json:"skipOffset,omitempty"`// Skippable: Whether the user can skip creatives served to this placement.Skippablebool `json:"skippable,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SkippableSetting: Skippable Settings

func (SkippableSetting)MarshalJSON

func (sSkippableSetting) MarshalJSON() ([]byte,error)

typeSortedDimension

type SortedDimension struct {// Kind: The kind of resource this is, in this case// dfareporting#sortedDimension.Kindstring `json:"kind,omitempty"`// Name: The name of the dimension.Namestring `json:"name,omitempty"`// SortOrder: An optional sort order for the dimension column.//// Possible values://   "ASCENDING"//   "DESCENDING"SortOrderstring `json:"sortOrder,omitempty"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SortedDimension: Represents a sorted dimension.

func (SortedDimension)MarshalJSON

func (sSortedDimension) MarshalJSON() ([]byte,error)

typeStudioCreativeadded inv0.253.0

type StudioCreative struct {// AssetIds: List of assets associated with this studio creative. It is a// required field on insertion.AssetIdsgoogleapi.Int64s `json:"assetIds,omitempty"`// BackupImageAssetId: Backup image asset ID of this studio creative.BackupImageAssetIdint64 `json:"backupImageAssetId,omitempty,string"`// CreatedInfo: The timestamp when the studio creative was created. This is a// read-only, auto-generated field.CreatedInfo *LastModifiedInfo `json:"createdInfo,omitempty"`// Dimension: Dimension of this studio creative. This is a required field on// insertion if format is BANNER or EXPANDING.Dimension *StudioCreativeDimension `json:"dimension,omitempty"`// DynamicProfileId: Dynamic profile ID of this studio creative.DynamicProfileIdint64 `json:"dynamicProfileId,omitempty,string"`// Format: Format of this studio creative. This is a required field on// insertion.//// Possible values://   "UNKNOWN" - The format of the studio creative is unknown. This value is// unused.//   "BANNER" - Banner format.//   "EXPANDING" - Expanding format.//   "INTERSTITIAL" - Intertitial format.//   "VPAID_LINEAR_VIDEO" - VPAID linear video creative format.Formatstring `json:"format,omitempty"`// Id: Output only. Unique ID of this studio creative. This is a read-only,// auto-generated field.Idint64 `json:"id,omitempty,string"`// LastModifiedInfo: The timestamp when the studio creative was last modified.// This is a read-only, auto-generated field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// Name: Identifier. Name of this studio creative. This is a required field on// insertion.Namestring `json:"name,omitempty"`// Status: Output only. Status of this studio creative. It is a read-only// field.//// Possible values://   "UNKNOWN_STATUS" - The status of the studio creative is unknown. This// value is unused.//   "IN_DEVELOPMENT" - The creative is still being developed.//   "PUBLISHED" - The creative has been published and is ready for QA.//   "QA_REJECTED" - The creative has failed QA and must be corrected.//   "QA_APPROVED" - The creative has passed QA and is ready to be trafficked.//   "TRAFFICKED" - The creative has been trafficked to an adserver.Statusstring `json:"status,omitempty"`// StudioAccountId: Studio account ID of this creative. This field, if left// unset, will be auto-populated.StudioAccountIdint64 `json:"studioAccountId,omitempty,string"`// StudioAdvertiserId: Studio advertiser ID of this studio creative. This is a// required field on insertion.StudioAdvertiserIdint64 `json:"studioAdvertiserId,omitempty,string"`// StudioCampaignId: Studio campaign ID of this studio creative. This is a// required field on insertion.StudioCampaignIdint64 `json:"studioCampaignId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssetIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetIds") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StudioCreative: Contains studio creative information.

func (StudioCreative)MarshalJSONadded inv0.253.0

func (sStudioCreative) MarshalJSON() ([]byte,error)

typeStudioCreativeAssetadded inv0.253.0

type StudioCreativeAsset struct {// CreateInfo: Output only. The creation timestamp of the studio creative// asset. This is a read-only field.CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`// Filename: The filename of the studio creative asset. It is default to the// original filename of the asset.Filenamestring `json:"filename,omitempty"`// Filesize: The filesize of the studio creative asset. This is a read-only// field.Filesizeint64 `json:"filesize,omitempty,string"`// Id: Output only. Unique ID of this studio creative asset. This is a// read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// LastModifiedInfo: Output only. The last modified timestamp of the studio// creative asset. This is a read-only field.LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`// StudioAccountId: Studio account ID of this studio creative asset. This// field, if left unset, will be auto-populated..StudioAccountIdint64 `json:"studioAccountId,omitempty,string"`// StudioAdvertiserId: Studio advertiser ID of this studio creative asset. This// is a required field on insertion.StudioAdvertiserIdint64 `json:"studioAdvertiserId,omitempty,string"`// StudioCreativeId: Studio creative ID of this studio creative asset. The// asset will be associated to the creative if creative id is set.StudioCreativeIdint64 `json:"studioCreativeId,omitempty,string"`// Type: The type of the studio creative asset. It is a auto-generated,// read-only field.//// Possible values://   "UNKNOWN_TYPE" - Unknown type of asset.//   "HTML" - The asset is an HTML file.//   "VIDEO" - The asset is a video file.//   "IMAGE" - The asset is an image file.//   "FONT" - The asset is a font file.Typestring `json:"type,omitempty"`// VideoProcessingData: The processing data of the studio creative asset. This// is a read-only field.VideoProcessingData *VideoProcessingData `json:"videoProcessingData,omitempty"`// ForceSendFields is a list of field names (e.g. "CreateInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CreateInfo") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StudioCreativeAsset: Contains studio creative asset information.

func (StudioCreativeAsset)MarshalJSONadded inv0.253.0

func (sStudioCreativeAsset) MarshalJSON() ([]byte,error)

typeStudioCreativeAssetsInsertCalladded inv0.253.0

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

func (*StudioCreativeAssetsInsertCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.

func (*StudioCreativeAssetsInsertCall)Doadded inv0.253.0

Do executes the "dfareporting.studioCreativeAssets.insert" call.Any non-2xx status code is an error. Response headers are in either*StudioCreativeAssetsResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*StudioCreativeAssetsInsertCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StudioCreativeAssetsInsertCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*StudioCreativeAssetsInsertCall)Mediaadded inv0.253.0

Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.

func (*StudioCreativeAssetsInsertCall)ProgressUpdateradded inv0.253.0

ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).

func (*StudioCreativeAssetsInsertCall)ResumableMediadeprecatedadded inv0.253.0

ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.

typeStudioCreativeAssetsResponseadded inv0.253.0

type StudioCreativeAssetsResponse struct {// Assets: The list of studio creative assets.Assets []*StudioCreativeAsset `json:"assets,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Assets") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Assets") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StudioCreativeAssetsResponse: Response message forDfareportingStudioCreativeAssets.Insert.

func (StudioCreativeAssetsResponse)MarshalJSONadded inv0.253.0

func (sStudioCreativeAssetsResponse) MarshalJSON() ([]byte,error)

typeStudioCreativeAssetsServiceadded inv0.253.0

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

funcNewStudioCreativeAssetsServiceadded inv0.253.0

func NewStudioCreativeAssetsService(s *Service) *StudioCreativeAssetsService

func (*StudioCreativeAssetsService)Insertadded inv0.253.0

func (r *StudioCreativeAssetsService) Insert(dfareportingstudiocreativeassetsinsertrequest *DfareportingStudioCreativeAssetsInsertRequest) *StudioCreativeAssetsInsertCall

Insert: Inserts a new studio creative asset.

typeStudioCreativeDimensionadded inv0.253.0

type StudioCreativeDimension struct {// Height: Height of the studio creative.Heightint64 `json:"height,omitempty"`// Width: Width of the studio creative.Widthint64 `json:"width,omitempty"`// ForceSendFields is a list of field names (e.g. "Height") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Height") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StudioCreativeDimension: Dimension information for a studio creative.

func (StudioCreativeDimension)MarshalJSONadded inv0.253.0

func (sStudioCreativeDimension) MarshalJSON() ([]byte,error)

typeStudioCreativesGetCalladded inv0.253.0

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

func (*StudioCreativesGetCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*StudioCreativesGetCall)Doadded inv0.253.0

Do executes the "dfareporting.studioCreatives.get" call.Any non-2xx status code is an error. Response headers are in either*StudioCreative.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StudioCreativesGetCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StudioCreativesGetCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*StudioCreativesGetCall)IfNoneMatchadded inv0.253.0

func (c *StudioCreativesGetCall) IfNoneMatch(entityTagstring) *StudioCreativesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeStudioCreativesInsertCalladded inv0.253.0

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

func (*StudioCreativesInsertCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*StudioCreativesInsertCall)Doadded inv0.253.0

Do executes the "dfareporting.studioCreatives.insert" call.Any non-2xx status code is an error. Response headers are in either*StudioCreative.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StudioCreativesInsertCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StudioCreativesInsertCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStudioCreativesPublishCalladded inv0.253.0

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

func (*StudioCreativesPublishCall)Contextadded inv0.253.0

Context sets the context to be used in this call's Do method.

func (*StudioCreativesPublishCall)Doadded inv0.253.0

Do executes the "dfareporting.studioCreatives.publish" call.

func (*StudioCreativesPublishCall)Fieldsadded inv0.253.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StudioCreativesPublishCall)Headeradded inv0.253.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStudioCreativesServiceadded inv0.253.0

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

funcNewStudioCreativesServiceadded inv0.253.0

func NewStudioCreativesService(s *Service) *StudioCreativesService

func (*StudioCreativesService)Getadded inv0.253.0

func (r *StudioCreativesService) Get(studioCreativeIdint64) *StudioCreativesGetCall

Get: Gets a studio creative by ID.

- studioCreativeId: Studio creative ID.

func (*StudioCreativesService)Insertadded inv0.253.0

Insert: Inserts a new studio creative.

func (*StudioCreativesService)Publishadded inv0.253.0

func (r *StudioCreativesService) Publish(studioCreativeIdint64) *StudioCreativesPublishCall

Publish: Publish for a studio creative.

- studioCreativeId: Studio creative ID.

typeSubaccount

type Subaccount struct {// AccountId: ID of the account that contains this subaccount. This is a// read-only field that can be left blank.AccountIdint64 `json:"accountId,omitempty,string"`// AvailablePermissionIds: IDs of the available user role permissions for this// subaccount.AvailablePermissionIdsgoogleapi.Int64s `json:"availablePermissionIds,omitempty"`// Id: ID of this subaccount. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#subaccount".Kindstring `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.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Subaccount: Contains properties of a Campaign Manager subaccount.

func (Subaccount)MarshalJSON

func (sSubaccount) MarshalJSON() ([]byte,error)

typeSubaccountsGetCall

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

func (*SubaccountsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*SubaccountsGetCall)Do

Do executes the "dfareporting.subaccounts.get" call.Any non-2xx status code is an error. Response headers are in either*Subaccount.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SubaccountsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SubaccountsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*SubaccountsGetCall)IfNoneMatch

func (c *SubaccountsGetCall) IfNoneMatch(entityTagstring) *SubaccountsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeSubaccountsInsertCall

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

func (*SubaccountsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*SubaccountsInsertCall)Do

Do executes the "dfareporting.subaccounts.insert" call.Any non-2xx status code is an error. Response headers are in either*Subaccount.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SubaccountsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SubaccountsInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeSubaccountsListCall

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

func (*SubaccountsListCall)Context

Context sets the context to be used in this call's Do method.

func (*SubaccountsListCall)Do

Do executes the "dfareporting.subaccounts.list" call.Any non-2xx status code is an error. Response headers are in either*SubaccountsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*SubaccountsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SubaccountsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*SubaccountsListCall)Ids

Ids sets the optional parameter "ids": Select only subaccounts with theseIDs.

func (*SubaccountsListCall)IfNoneMatch

func (c *SubaccountsListCall) IfNoneMatch(entityTagstring) *SubaccountsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*SubaccountsListCall)MaxResults

func (c *SubaccountsListCall) MaxResults(maxResultsint64) *SubaccountsListCall

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

func (*SubaccountsListCall)PageToken

func (c *SubaccountsListCall) PageToken(pageTokenstring) *SubaccountsListCall

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

func (*SubaccountsListCall)Pages

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

func (*SubaccountsListCall)SearchString

func (c *SubaccountsListCall) SearchString(searchStringstring) *SubaccountsListCall

SearchString sets the optional parameter "searchString": Allows searchingfor objects by name or ID. Wildcards (*) are allowed. For example,"subaccount*2015" will return objects with names like "subaccount June2015", "subaccount April 2015", or simply "subaccount 2015". Most of thesearches also add wildcards implicitly at the start and the end of thesearch string. For example, a search string of "subaccount" will matchobjects with name "my subaccount", "subaccount 2015", or simply "subaccount".

func (*SubaccountsListCall)SortField

func (c *SubaccountsListCall) SortField(sortFieldstring) *SubaccountsListCall

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

Possible values:

"ID" (default)"NAME"

func (*SubaccountsListCall)SortOrder

func (c *SubaccountsListCall) SortOrder(sortOrderstring) *SubaccountsListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeSubaccountsListResponse

type SubaccountsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#subaccountsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// Subaccounts: Subaccount collection.Subaccounts []*Subaccount `json:"subaccounts,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SubaccountsListResponse: Subaccount List Response

func (SubaccountsListResponse)MarshalJSON

func (sSubaccountsListResponse) MarshalJSON() ([]byte,error)

typeSubaccountsPatchCall

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

func (*SubaccountsPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*SubaccountsPatchCall)Do

Do executes the "dfareporting.subaccounts.patch" call.Any non-2xx status code is an error. Response headers are in either*Subaccount.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SubaccountsPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SubaccountsPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeSubaccountsService

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

funcNewSubaccountsService

func NewSubaccountsService(s *Service) *SubaccountsService

func (*SubaccountsService)Get

func (r *SubaccountsService) Get(profileIdint64, idint64) *SubaccountsGetCall

Get: Gets one subaccount by ID.

- id: Subaccount ID.- profileId: User profile ID associated with this request.

func (*SubaccountsService)Insert

func (r *SubaccountsService) Insert(profileIdint64, subaccount *Subaccount) *SubaccountsInsertCall

Insert: Inserts a new subaccount.

- profileId: User profile ID associated with this request.

func (*SubaccountsService)List

func (r *SubaccountsService) List(profileIdint64) *SubaccountsListCall

List: Gets a list of subaccounts, possibly filtered. This method supportspaging.

- profileId: User profile ID associated with this request.

func (*SubaccountsService)Patch

func (r *SubaccountsService) Patch(profileIdint64, idint64, subaccount *Subaccount) *SubaccountsPatchCall

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

- id: Subaccount ID.- profileId: User profile ID associated with this request.

func (*SubaccountsService)Update

func (r *SubaccountsService) Update(profileIdint64, subaccount *Subaccount) *SubaccountsUpdateCall

Update: Updates an existing subaccount.

- profileId: User profile ID associated with this request.

typeSubaccountsUpdateCall

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

func (*SubaccountsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*SubaccountsUpdateCall)Do

Do executes the "dfareporting.subaccounts.update" call.Any non-2xx status code is an error. Response headers are in either*Subaccount.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*SubaccountsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*SubaccountsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeTagData

type TagData struct {// AdId: Ad associated with this placement tag. Applicable only when format is// PLACEMENT_TAG_TRACKING.AdIdint64 `json:"adId,omitempty,string"`// ClickTag: Tag string to record a click.ClickTagstring `json:"clickTag,omitempty"`// CreativeId: Creative associated with this placement tag. Applicable only// when format is PLACEMENT_TAG_TRACKING.CreativeIdint64 `json:"creativeId,omitempty,string"`// Format: TagData tag format of this tag.//// Possible values://   "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"//   "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_3"//   "PLACEMENT_TAG_IFRAME_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_INTERSTITIAL_IFRAME_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_INTERSTITIAL_JAVASCRIPT_LEGACY"//   "PLACEMENT_TAG_INSTREAM_VIDEO_PREFETCH_VAST_4"//   "PLACEMENT_TAG_TRACKING_THIRD_PARTY_MEASUREMENT"Formatstring `json:"format,omitempty"`// ImpressionTag: Tag string for serving an ad.ImpressionTagstring `json:"impressionTag,omitempty"`// ForceSendFields is a list of field names (e.g. "AdId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdId") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TagData: Placement Tag Data

func (TagData)MarshalJSON

func (sTagData) MarshalJSON() ([]byte,error)

typeTagSetting

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.AdditionalKeyValuesstring `json:"additionalKeyValues,omitempty"`// IncludeClickThroughUrls: Whether static landing page URLs should be included// in the tags. New placements will default to the value set on their site.IncludeClickThroughUrlsbool `json:"includeClickThroughUrls,omitempty"`// IncludeClickTracking: Whether click-tracking string should be included in// the tags.IncludeClickTrackingbool `json:"includeClickTracking,omitempty"`// IncludeUnescapedlpurlMacro: Optional. Indicates that the unescapedlpurl// macro should be included in the tag for the static landing page. New// placements will default to the value set on their site.IncludeUnescapedlpurlMacrobool `json:"includeUnescapedlpurlMacro,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.//// Possible values://   "PLACEHOLDER_WITH_LIST_OF_KEYWORDS" - Creates DART ad tags with a// placeholder, such as kw=[keyword] and a list of keywords. The site// trafficker must replace [keyword] with the keywords targeted by an ad.//   "IGNORE" - Creates DART ad tags that do not have a placeholder for// keywords and creates a list of keywords separately from the DART ad tags.// Use this option if the site uses a keyword referrer or is a site that uses// DART for Publishers.//   "GENERATE_SEPARATE_TAG_FOR_EACH_KEYWORD" - Results in unique tag// generation for each relevant keyword during tag export. For example, an ad// with three keywords will generate three tags with each tag having its kw=// parameter filled in with the relevant keyword values.KeywordOptionstring `json:"keywordOption,omitempty"`// ForceSendFields is a list of field names (e.g. "AdditionalKeyValues") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdditionalKeyValues") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TagSetting: Tag Settings

func (TagSetting)MarshalJSON

func (sTagSetting) MarshalJSON() ([]byte,error)

typeTagSettings

type TagSettings struct {// DynamicTagEnabled: Whether dynamic floodlight tags are enabled.DynamicTagEnabledbool `json:"dynamicTagEnabled,omitempty"`// ImageTagEnabled: Whether image tags are enabled.ImageTagEnabledbool `json:"imageTagEnabled,omitempty"`// ForceSendFields is a list of field names (e.g. "DynamicTagEnabled") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DynamicTagEnabled") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TagSettings: Dynamic and Image Tag Settings.

func (TagSettings)MarshalJSON

func (sTagSettings) MarshalJSON() ([]byte,error)

typeTargetWindow

type TargetWindow struct {// CustomHtml: User-entered value.CustomHtmlstring `json:"customHtml,omitempty"`// TargetWindowOption: Type of browser window for which the backup image of the// flash creative can be displayed.//// Possible values://   "NEW_WINDOW" - Open up a new window to display the backup image// Corresponds to "_blank" in html//   "CURRENT_WINDOW" - Use the current window to display the backup image// Corresponds to "_top" in html//   "CUSTOM" - User-defined HTML used to display the backup image Corresponds// to "other"TargetWindowOptionstring `json:"targetWindowOption,omitempty"`// ForceSendFields is a list of field names (e.g. "CustomHtml") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CustomHtml") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TargetWindow: Target Window.

func (TargetWindow)MarshalJSON

func (sTargetWindow) MarshalJSON() ([]byte,error)

typeTargetableRemarketingList

type TargetableRemarketingList struct {// AccountId: Account ID of this remarketing list. This is a read-only,// auto-generated field that is only returned in GET requests.AccountIdint64 `json:"accountId,omitempty,string"`// Active: Whether this targetable remarketing list is active.Activebool `json:"active,omitempty"`// AdvertiserId: Dimension value for the advertiser ID that owns this// targetable remarketing list.AdvertiserIdint64 `json:"advertiserId,omitempty,string"`// AdvertiserIdDimensionValue: Dimension value for the ID of the advertiser.AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`// Description: Targetable remarketing list description.Descriptionstring `json:"description,omitempty"`// Id: Targetable remarketing list ID.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#targetableRemarketingList".Kindstring `json:"kind,omitempty"`// LifeSpan: Number of days that a user should remain in the targetable// remarketing list without an impression.LifeSpanint64 `json:"lifeSpan,omitempty,string"`// ListSize: Number of users currently in the list. This is a read-only field.ListSizeint64 `json:"listSize,omitempty,string"`// ListSource: Product from which this targetable remarketing list was// originated.//// Possible values://   "REMARKETING_LIST_SOURCE_OTHER" - covers sources not supported in DCM// other than those listed below//   "REMARKETING_LIST_SOURCE_ADX" - ADX//   "REMARKETING_LIST_SOURCE_DFP" - DFP//   "REMARKETING_LIST_SOURCE_XFP" - XFP//   "REMARKETING_LIST_SOURCE_DFA" - DoubleClick Campaign Manager//   "REMARKETING_LIST_SOURCE_GA" - Google Analytics Premium//   "REMARKETING_LIST_SOURCE_YOUTUBE" - Youtube//   "REMARKETING_LIST_SOURCE_DBM" - DoubleClick Bid Manager//   "REMARKETING_LIST_SOURCE_GPLUS" - G+//   "REMARKETING_LIST_SOURCE_DMP" - DoubleClick Audience Center//   "REMARKETING_LIST_SOURCE_PLAY_STORE" - PlaystoreListSourcestring `json:"listSource,omitempty"`// Name: Name of the targetable remarketing list. Is no greater than 128// characters long.Namestring `json:"name,omitempty"`// SubaccountId: Subaccount ID of this remarketing list. This is a read-only,// auto-generated field that is only returned in GET requests.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TargetableRemarketingList: Contains properties of a targetable remarketinglist. Remarketing enables you to create lists of users who have performedspecific actions on a site, then target ads to members of those lists. Thisresource is a read-only view of a remarketing list to be used to facilitatetargeting ads to specific lists. Remarketing lists that are owned by youradvertisers and those that are shared to your advertisers or account areaccessible via this resource. To manage remarketing lists that are owned byyour advertisers, use the RemarketingLists resource.

func (TargetableRemarketingList)MarshalJSON

func (sTargetableRemarketingList) MarshalJSON() ([]byte,error)

typeTargetableRemarketingListsGetCall

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

func (*TargetableRemarketingListsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetableRemarketingListsGetCall)Do

Do executes the "dfareporting.targetableRemarketingLists.get" call.Any non-2xx status code is an error. Response headers are in either*TargetableRemarketingList.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*TargetableRemarketingListsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetableRemarketingListsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*TargetableRemarketingListsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeTargetableRemarketingListsListCall

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

func (*TargetableRemarketingListsListCall)Active

Active sets the optional parameter "active": Select only active or onlyinactive targetable remarketing lists.

func (*TargetableRemarketingListsListCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetableRemarketingListsListCall)Do

Do executes the "dfareporting.targetableRemarketingLists.list" call.Any non-2xx status code is an error. Response headers are in either*TargetableRemarketingListsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*TargetableRemarketingListsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetableRemarketingListsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*TargetableRemarketingListsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*TargetableRemarketingListsListCall)MaxResults

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

func (*TargetableRemarketingListsListCall)Name

Name sets the optional parameter "name": Allows searching for objects byname or ID. Wildcards (*) are allowed. For example, "remarketing list*2015"will return objects with names like "remarketing list June 2015","remarketing list April 2015", or simply "remarketing list 2015". Most ofthe searches also add wildcards implicitly at the start and the end of thesearch string. For example, a search string of "remarketing list" will matchobjects with name "my remarketing list", "remarketing list 2015", or simply"remarketing list".

func (*TargetableRemarketingListsListCall)PageToken

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

func (*TargetableRemarketingListsListCall)Pages

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

func (*TargetableRemarketingListsListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*TargetableRemarketingListsListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeTargetableRemarketingListsListResponse

type TargetableRemarketingListsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#targetableRemarketingListsListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// TargetableRemarketingLists: Targetable remarketing list collection.TargetableRemarketingLists []*TargetableRemarketingList `json:"targetableRemarketingLists,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TargetableRemarketingListsListResponse: Targetable remarketing list response

func (TargetableRemarketingListsListResponse)MarshalJSON

typeTargetableRemarketingListsService

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

funcNewTargetableRemarketingListsService

func NewTargetableRemarketingListsService(s *Service) *TargetableRemarketingListsService

func (*TargetableRemarketingListsService)Get

Get: Gets one remarketing list by ID.

- id: Remarketing list ID.- profileId: User profile ID associated with this request.

func (*TargetableRemarketingListsService)List

List: Retrieves a list of targetable remarketing lists, possibly filtered.This method supports paging.

  • advertiserId: Select only targetable remarketing lists targetable by theseadvertisers.
  • profileId: User profile ID associated with this request.

typeTargetingTemplate

type TargetingTemplate struct {// AccountId: Account ID of this targeting template. This field, if left unset,// will be auto-generated on insert and is read-only after insert.AccountIdint64 `json:"accountId,omitempty,string"`// AdvertiserId: Advertiser ID of this targeting template. This is a required// field on insert and is read-only after insert.AdvertiserIdint64 `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"`// ContextualKeywordTargeting: Optional. Contextual keyword targeting criteria.ContextualKeywordTargeting *ContextualKeywordTargeting `json:"contextualKeywordTargeting,omitempty"`// DayPartTargeting: Time and day targeting criteria.DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`// GeoTargeting: Geographical targeting criteria.GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`// Id: ID of this targeting template. This is a read-only, auto-generated// field.Idint64 `json:"id,omitempty,string"`// KeyValueTargetingExpression: Key-value targeting criteria.KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#targetingTemplate".Kindstring `json:"kind,omitempty"`// LanguageTargeting: Language targeting criteria.LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`// ListTargetingExpression: Remarketing list targeting criteria.ListTargetingExpression *ListTargetingExpression `json:"listTargetingExpression,omitempty"`// Name: Name of this targeting template. This field is required. It must be// less than 256 characters long and unique within an advertiser.Namestring `json:"name,omitempty"`// SubaccountId: Subaccount ID of this targeting template. This field, if left// unset, will be auto-generated on insert and is read-only after insert.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// TechnologyTargeting: Technology platform targeting criteria.TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TargetingTemplate: Contains properties of a targeting template. A targetingtemplate encapsulates targeting information which can be reused acrossmultiple ads.

func (TargetingTemplate)MarshalJSON

func (sTargetingTemplate) MarshalJSON() ([]byte,error)

typeTargetingTemplatesGetCall

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

func (*TargetingTemplatesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetingTemplatesGetCall)Do

Do executes the "dfareporting.targetingTemplates.get" call.Any non-2xx status code is an error. Response headers are in either*TargetingTemplate.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*TargetingTemplatesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetingTemplatesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*TargetingTemplatesGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeTargetingTemplatesInsertCall

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

func (*TargetingTemplatesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetingTemplatesInsertCall)Do

Do executes the "dfareporting.targetingTemplates.insert" call.Any non-2xx status code is an error. Response headers are in either*TargetingTemplate.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*TargetingTemplatesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetingTemplatesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeTargetingTemplatesListCall

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

func (*TargetingTemplatesListCall)AdvertiserId

func (c *TargetingTemplatesListCall) AdvertiserId(advertiserIdint64) *TargetingTemplatesListCall

AdvertiserId sets the optional parameter "advertiserId": Select onlytargeting templates with this advertiser ID.

func (*TargetingTemplatesListCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetingTemplatesListCall)Do

Do executes the "dfareporting.targetingTemplates.list" call.Any non-2xx status code is an error. Response headers are in either*TargetingTemplatesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*TargetingTemplatesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetingTemplatesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*TargetingTemplatesListCall)Ids

Ids sets the optional parameter "ids": Select only targeting templates withthese IDs.

func (*TargetingTemplatesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*TargetingTemplatesListCall)MaxResults

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

func (*TargetingTemplatesListCall)PageToken

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

func (*TargetingTemplatesListCall)Pages

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

func (*TargetingTemplatesListCall)SearchString

func (c *TargetingTemplatesListCall) SearchString(searchStringstring) *TargetingTemplatesListCall

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

func (*TargetingTemplatesListCall)SortField

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

Possible values:

"ID" (default)"NAME"

func (*TargetingTemplatesListCall)SortOrder

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

typeTargetingTemplatesListResponse

type TargetingTemplatesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#targetingTemplatesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// TargetingTemplates: Targeting template collection.TargetingTemplates []*TargetingTemplate `json:"targetingTemplates,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TargetingTemplatesListResponse: Targeting Template List Response

func (TargetingTemplatesListResponse)MarshalJSON

func (sTargetingTemplatesListResponse) MarshalJSON() ([]byte,error)

typeTargetingTemplatesPatchCall

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

func (*TargetingTemplatesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetingTemplatesPatchCall)Do

Do executes the "dfareporting.targetingTemplates.patch" call.Any non-2xx status code is an error. Response headers are in either*TargetingTemplate.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*TargetingTemplatesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetingTemplatesPatchCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeTargetingTemplatesService

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

funcNewTargetingTemplatesService

func NewTargetingTemplatesService(s *Service) *TargetingTemplatesService

func (*TargetingTemplatesService)Get

Get: Gets one targeting template by ID.

- id: Targeting template ID.- profileId: User profile ID associated with this request.

func (*TargetingTemplatesService)Insert

func (r *TargetingTemplatesService) Insert(profileIdint64, targetingtemplate *TargetingTemplate) *TargetingTemplatesInsertCall

Insert: Inserts a new targeting template.

- profileId: User profile ID associated with this request.

func (*TargetingTemplatesService)List

List: Retrieves a list of targeting templates, optionally filtered. Thismethod supports paging.

- profileId: User profile ID associated with this request.

func (*TargetingTemplatesService)Patch

func (r *TargetingTemplatesService) Patch(profileIdint64, idint64, targetingtemplate *TargetingTemplate) *TargetingTemplatesPatchCall

Patch: Updates an existing targeting template. This method supports patchsemantics.

- id: RemarketingList ID.- profileId: User profile ID associated with this request.

func (*TargetingTemplatesService)Update

func (r *TargetingTemplatesService) Update(profileIdint64, targetingtemplate *TargetingTemplate) *TargetingTemplatesUpdateCall

Update: Updates an existing targeting template.

- profileId: User profile ID associated with this request.

typeTargetingTemplatesUpdateCall

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

func (*TargetingTemplatesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*TargetingTemplatesUpdateCall)Do

Do executes the "dfareporting.targetingTemplates.update" call.Any non-2xx status code is an error. Response headers are in either*TargetingTemplate.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*TargetingTemplatesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TargetingTemplatesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeTechnologyTargeting

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"`// ForceSendFields is a list of field names (e.g. "Browsers") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Browsers") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TechnologyTargeting: Technology Targeting.

func (TechnologyTargeting)MarshalJSON

func (sTechnologyTargeting) MarshalJSON() ([]byte,error)

typeThirdPartyAuthenticationToken

type ThirdPartyAuthenticationToken struct {// Name: Name of the third-party authentication token.Namestring `json:"name,omitempty"`// Value: Value of the third-party authentication token. This is a read-only,// auto-generated field.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ThirdPartyAuthenticationToken: Third Party Authentication Token

func (ThirdPartyAuthenticationToken)MarshalJSON

func (sThirdPartyAuthenticationToken) MarshalJSON() ([]byte,error)

typeThirdPartyTrackingUrl

type ThirdPartyTrackingUrl struct {// ThirdPartyUrlType: Third-party URL type for in-stream video and in-stream// audio creatives.//// Possible values://   "IMPRESSION" - Used to count impressions of the ad after video buffering// is complete.//   "CLICK_TRACKING" - Used to track user clicks on the video.//   "VIDEO_START" - Used to track the number of times a user starts a video.//   "VIDEO_FIRST_QUARTILE" - Used to track the number of times the video plays// to 25% of its length.//   "VIDEO_MIDPOINT" - Used to track the number of times the video plays to// 50% of its length.//   "VIDEO_THIRD_QUARTILE" - Used to track the number of times the video plays// to 75% of its length.//   "VIDEO_COMPLETE" - Used to track the number of times the video plays to// the end.//   "VIDEO_MUTE" - Used to track the number of times a user mutes the video.//   "VIDEO_PAUSE" - Used to track the number of times a user pauses the video.//   "VIDEO_REWIND" - Used to track the number of times a user replays the// video.//   "VIDEO_FULLSCREEN" - Used to track the number of times a user expands the// video to full-screen size.//   "VIDEO_STOP" - Used to track the number of times a user stops the video.//   "VIDEO_CUSTOM" - Used to track the number of times a user performs a// custom click, such as clicking on a video hot spot.//   "SURVEY" - Used for DFA6 compatibility, this is deprecating in favor of// event tags.//   "RICH_MEDIA_IMPRESSION" - Used by Studio RichMediaCreative, maps to its// thirdPartyImpressionsUrl//   "RICH_MEDIA_RM_IMPRESSION" - Used by Studio RichMediaCreative, maps to its// thirdPartyRichMediaImpressionsUrl//   "RICH_MEDIA_BACKUP_IMPRESSION" - Used by Studio RichMediaCreative, maps to// its thirdPartyBackupImageImpressionsUrl//   "VIDEO_SKIP" - Used to track the number of times the video was skipped.//   "VIDEO_PROGRESS" - Used to track the number of times the video plays to an// offset determined by the user.ThirdPartyUrlTypestring `json:"thirdPartyUrlType,omitempty"`// Url: URL for the specified third-party URL type.Urlstring `json:"url,omitempty"`// ForceSendFields is a list of field names (e.g. "ThirdPartyUrlType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ThirdPartyUrlType") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ThirdPartyTrackingUrl: Third-party Tracking URL.

func (ThirdPartyTrackingUrl)MarshalJSON

func (sThirdPartyTrackingUrl) MarshalJSON() ([]byte,error)

typeTranscodeSetting

type TranscodeSetting struct {// EnabledVideoFormats: Allowlist of video formats to be served to this// placement. Set this list to null or empty to serve all video formats.EnabledVideoFormats []int64 `json:"enabledVideoFormats,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#transcodeSetting".Kindstring `json:"kind,omitempty"`// ForceSendFields is a list of field names (e.g. "EnabledVideoFormats") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EnabledVideoFormats") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TranscodeSetting: Transcode Settings

func (TranscodeSetting)MarshalJSON

func (sTranscodeSetting) MarshalJSON() ([]byte,error)

typeTvCampaignDetail

type TvCampaignDetail struct {// Id: ID of this TV campaign.Idstring `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#tvCampaignSummary".Kindstring `json:"kind,omitempty"`// Timepoints: The timepoints of the TV campaign.Timepoints []*TvCampaignTimepoint `json:"timepoints,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TvCampaignDetail: TvCampaignDetail contains data from a TV campaign forspecific start dates and date windows.

func (TvCampaignDetail)MarshalJSON

func (sTvCampaignDetail) MarshalJSON() ([]byte,error)

typeTvCampaignDetailsGetCall

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

func (*TvCampaignDetailsGetCall)AccountId

AccountId sets the optional parameter "accountId": Required. Account IDassociated with this request.

func (*TvCampaignDetailsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*TvCampaignDetailsGetCall)Do

Do executes the "dfareporting.tvCampaignDetails.get" call.Any non-2xx status code is an error. Response headers are in either*TvCampaignDetail.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*TvCampaignDetailsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TvCampaignDetailsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*TvCampaignDetailsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeTvCampaignDetailsService

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

funcNewTvCampaignDetailsService

func NewTvCampaignDetailsService(s *Service) *TvCampaignDetailsService

func (*TvCampaignDetailsService)Get

Get: Gets one TvCampaignDetail by ID.

- id: TV Campaign ID.- profileId: User profile ID associated with this request.

typeTvCampaignSummariesListCall

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

func (*TvCampaignSummariesListCall)AccountId

AccountId sets the optional parameter "accountId": Required. Account IDassociated with this request.

func (*TvCampaignSummariesListCall)Context

Context sets the context to be used in this call's Do method.

func (*TvCampaignSummariesListCall)Do

Do executes the "dfareporting.tvCampaignSummaries.list" call.Any non-2xx status code is an error. Response headers are in either*TvCampaignSummariesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*TvCampaignSummariesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*TvCampaignSummariesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*TvCampaignSummariesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*TvCampaignSummariesListCall)Name

Name sets the optional parameter "name": Required. Search string to filterthe list of TV campaign summaries. Matches any substring. Required field.

typeTvCampaignSummariesListResponse

type TvCampaignSummariesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#tvCampaignSummariesListResponse".Kindstring `json:"kind,omitempty"`// TvCampaignSummaries: List of TV campaign summaries.TvCampaignSummaries []*TvCampaignSummary `json:"tvCampaignSummaries,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TvCampaignSummariesListResponse: Response message forTvCampaignSummariesService.List.

func (TvCampaignSummariesListResponse)MarshalJSON

func (sTvCampaignSummariesListResponse) MarshalJSON() ([]byte,error)

typeTvCampaignSummariesService

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

funcNewTvCampaignSummariesService

func NewTvCampaignSummariesService(s *Service) *TvCampaignSummariesService

func (*TvCampaignSummariesService)List

List: Retrieves a list of TV campaign summaries.

- profileId: User profile ID associated with this request.

typeTvCampaignSummary

type TvCampaignSummary struct {// EndDate: The end date of the TV campaign, inclusive. A string of the format:// "yyyy-MM-dd".EndDatestring `json:"endDate,omitempty"`// Grp: GRP of this TV campaign.Grpint64 `json:"grp,omitempty,string"`// Id: ID of this TV campaign.Idstring `json:"id,omitempty"`// Impressions: Impressions across the entire TV campaign.Impressionsint64 `json:"impressions,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#tvCampaignSummary".Kindstring `json:"kind,omitempty"`// Name: Identifier. Name of this TV campaign.Namestring `json:"name,omitempty"`// Spend: Spend across the entire TV campaign.Spendfloat64 `json:"spend,omitempty"`// StartDate: The start date of the TV campaign, inclusive. A string of the// format: "yyyy-MM-dd".StartDatestring `json:"startDate,omitempty"`// Type: "CampaignComponentType" of this TV campaign.//// Possible values://   "CAMPAIGN_COMPONENT_TYPE_UNSPECIFIED" - Required to exist; do not use.//   "COMPANY" - Company.//   "BRAND" - Brand.//   "PRODUCT" - Product.//   "CAMPAIGN" - Campaign.Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "EndDate") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "EndDate") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TvCampaignSummary: TvCampaignSummary contains aggregate data from a TVcampaign.

func (TvCampaignSummary)MarshalJSON

func (sTvCampaignSummary) MarshalJSON() ([]byte,error)

func (*TvCampaignSummary)UnmarshalJSON

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

typeTvCampaignTimepoint

type TvCampaignTimepoint struct {// DateWindow: The date window of the timepoint.//// Possible values://   "WEEKS_UNSPECIFIED" - Default value, should never be set.//   "WEEKS_ONE" - One week.//   "WEEKS_FOUR" - Four weeks.//   "WEEKS_EIGHT" - Eight weeks.//   "WEEKS_TWELVE" - Twelve weeks.DateWindowstring `json:"dateWindow,omitempty"`// Spend: The spend within the time range of the timepoint.Spendfloat64 `json:"spend,omitempty"`// StartDate: The start date of the timepoint. A string in the format of// "yyyy-MM-dd".StartDatestring `json:"startDate,omitempty"`// ForceSendFields is a list of field names (e.g. "DateWindow") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DateWindow") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TvCampaignTimepoint: A single data point for TvCampaignDetail, which holdsinformation about the TV campaign for a specific start date and date window.

func (TvCampaignTimepoint)MarshalJSON

func (sTvCampaignTimepoint) MarshalJSON() ([]byte,error)

func (*TvCampaignTimepoint)UnmarshalJSON

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

typeUniversalAdId

type UniversalAdId struct {// Registry: Registry used for the Ad ID value.//// Possible values://   "OTHER"//   "AD_ID_OFFICIAL"//   "CLEARCAST"//   "DCM"//   "ARPP"//   "CUSV"Registrystring `json:"registry,omitempty"`// Value: ID value for this creative. Only alphanumeric characters and the// following symbols are valid: "_/\-". Maximum length is 64 characters. Read// only when registry is DCM.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "Registry") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Registry") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UniversalAdId: A Universal Ad ID as per the VAST 4.0 spec. Applicable to thefollowing creative types: INSTREAM_AUDIO, INSTREAM_VIDEO and VPAID.

func (UniversalAdId)MarshalJSON

func (sUniversalAdId) MarshalJSON() ([]byte,error)

typeUserDefinedVariableConfiguration

type UserDefinedVariableConfiguration struct {// DataType: Data type for the variable. This is a required field.//// Possible values://   "STRING"//   "NUMBER"DataTypestring `json:"dataType,omitempty"`// ReportName: User-friendly name for the variable which will appear in// reports. This is a required field, must be less than 64 characters long, and// cannot contain the following characters: ""<>".ReportNamestring `json:"reportName,omitempty"`// VariableType: Variable name in the tag. This is a required field.//// Possible values://   "U1"//   "U2"//   "U3"//   "U4"//   "U5"//   "U6"//   "U7"//   "U8"//   "U9"//   "U10"//   "U11"//   "U12"//   "U13"//   "U14"//   "U15"//   "U16"//   "U17"//   "U18"//   "U19"//   "U20"//   "U21"//   "U22"//   "U23"//   "U24"//   "U25"//   "U26"//   "U27"//   "U28"//   "U29"//   "U30"//   "U31"//   "U32"//   "U33"//   "U34"//   "U35"//   "U36"//   "U37"//   "U38"//   "U39"//   "U40"//   "U41"//   "U42"//   "U43"//   "U44"//   "U45"//   "U46"//   "U47"//   "U48"//   "U49"//   "U50"//   "U51"//   "U52"//   "U53"//   "U54"//   "U55"//   "U56"//   "U57"//   "U58"//   "U59"//   "U60"//   "U61"//   "U62"//   "U63"//   "U64"//   "U65"//   "U66"//   "U67"//   "U68"//   "U69"//   "U70"//   "U71"//   "U72"//   "U73"//   "U74"//   "U75"//   "U76"//   "U77"//   "U78"//   "U79"//   "U80"//   "U81"//   "U82"//   "U83"//   "U84"//   "U85"//   "U86"//   "U87"//   "U88"//   "U89"//   "U90"//   "U91"//   "U92"//   "U93"//   "U94"//   "U95"//   "U96"//   "U97"//   "U98"//   "U99"//   "U100"VariableTypestring `json:"variableType,omitempty"`// ForceSendFields is a list of field names (e.g. "DataType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DataType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserDefinedVariableConfiguration: User Defined Variable configuration.

func (UserDefinedVariableConfiguration)MarshalJSON

func (sUserDefinedVariableConfiguration) MarshalJSON() ([]byte,error)

typeUserIdentifier

type UserIdentifier struct {// AddressInfo: Address information.AddressInfo *OfflineUserAddressInfo `json:"addressInfo,omitempty"`// HashedEmail: Hashed email address using SHA-256 hash function after// normalization.HashedEmailstring `json:"hashedEmail,omitempty"`// HashedPhoneNumber: Hashed phone number using SHA-256 hash function after// normalization (E164 standard).HashedPhoneNumberstring `json:"hashedPhoneNumber,omitempty"`// ForceSendFields is a list of field names (e.g. "AddressInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AddressInfo") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserIdentifier: User identifying information. Exactly one type of identifiermust be specified.

func (UserIdentifier)MarshalJSON

func (sUserIdentifier) MarshalJSON() ([]byte,error)

typeUserProfile

type UserProfile struct {// AccountId: The account ID to which this profile belongs.AccountIdint64 `json:"accountId,omitempty,string"`// AccountName: The account name this profile belongs to.AccountNamestring `json:"accountName,omitempty"`// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userProfile".Kindstring `json:"kind,omitempty"`// ProfileId: The unique ID of the user profile.ProfileIdint64 `json:"profileId,omitempty,string"`// SubAccountId: The sub account ID this profile belongs to if applicable.SubAccountIdint64 `json:"subAccountId,omitempty,string"`// SubAccountName: The sub account name this profile belongs to if applicable.SubAccountNamestring `json:"subAccountName,omitempty"`// UserName: The user name.UserNamestring `json:"userName,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserProfile: A UserProfile resource lets you list all DFA user profiles thatare associated with a Google user account. The profile_id needs to bespecified in other API requests.

func (UserProfile)MarshalJSON

func (sUserProfile) MarshalJSON() ([]byte,error)

typeUserProfileList

type UserProfileList struct {// Etag: Etag of this resource.Etagstring `json:"etag,omitempty"`// Items: The user profiles returned in this response.Items []*UserProfile `json:"items,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userProfileList".Kindstring `json:"kind,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Etag") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Etag") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserProfileList: Represents the list of user profiles.

func (UserProfileList)MarshalJSON

func (sUserProfileList) MarshalJSON() ([]byte,error)

typeUserProfilesGetCall

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

func (*UserProfilesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*UserProfilesGetCall)Do

Do executes the "dfareporting.userProfiles.get" call.Any non-2xx status code is an error. Response headers are in either*UserProfile.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UserProfilesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserProfilesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserProfilesGetCall)IfNoneMatch

func (c *UserProfilesGetCall) IfNoneMatch(entityTagstring) *UserProfilesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserProfilesListCall

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

func (*UserProfilesListCall)Context

Context sets the context to be used in this call's Do method.

func (*UserProfilesListCall)Do

Do executes the "dfareporting.userProfiles.list" call.Any non-2xx status code is an error. Response headers are in either*UserProfileList.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*UserProfilesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserProfilesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserProfilesListCall)IfNoneMatch

func (c *UserProfilesListCall) IfNoneMatch(entityTagstring) *UserProfilesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserProfilesService

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

funcNewUserProfilesService

func NewUserProfilesService(s *Service) *UserProfilesService

func (*UserProfilesService)Get

Get: Gets one user profile by ID.

- profileId: The user profile ID.

func (*UserProfilesService)List

List: Retrieves list of user profiles for a user.

typeUserRole

type UserRole struct {// AccountId: Account ID of this user role. This is a read-only field that can// be left blank.AccountIdint64 `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.DefaultUserRolebool `json:"defaultUserRole,omitempty"`// Id: ID of this user role. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userRole".Kindstring `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.Namestring `json:"name,omitempty"`// ParentUserRoleId: ID of the user role that this user role is based on or// copied from. This is a required field.ParentUserRoleIdint64 `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.SubaccountIdint64 `json:"subaccountId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserRole: Contains properties of auser role, which is used to manage useraccess.

func (UserRole)MarshalJSON

func (sUserRole) MarshalJSON() ([]byte,error)

typeUserRolePermission

type UserRolePermission struct {// Availability: Levels of availability for a user role permission.//// Possible values://   "NOT_AVAILABLE_BY_DEFAULT" - Not available by default.//   "ACCOUNT_BY_DEFAULT" - Available by default to accounts only.//   "SUBACCOUNT_AND_ACCOUNT_BY_DEFAULT" - Available by default to both// accounts and subaccounts.//   "ACCOUNT_ALWAYS" - Always available to accounts.//   "SUBACCOUNT_AND_ACCOUNT_ALWAYS" - Always available to both accounts and// subaccounts.//   "USER_PROFILE_ONLY" - Available for user profile permissions only.Availabilitystring `json:"availability,omitempty"`// Id: ID of this user role permission.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userRolePermission".Kindstring `json:"kind,omitempty"`// Name: Name of this user role permission.Namestring `json:"name,omitempty"`// PermissionGroupId: ID of the permission group that this user role permission// belongs to.PermissionGroupIdint64 `json:"permissionGroupId,omitempty,string"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Availability") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Availability") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserRolePermission: Contains properties of a user role permission.

func (UserRolePermission)MarshalJSON

func (sUserRolePermission) MarshalJSON() ([]byte,error)

typeUserRolePermissionGroup

type UserRolePermissionGroup struct {// Id: ID of this user role permission.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userRolePermissionGroup".Kindstring `json:"kind,omitempty"`// Name: Name of this user role permission group.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserRolePermissionGroup: Represents a grouping of related user rolepermissions.

func (UserRolePermissionGroup)MarshalJSON

func (sUserRolePermissionGroup) MarshalJSON() ([]byte,error)

typeUserRolePermissionGroupsGetCall

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

func (*UserRolePermissionGroupsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolePermissionGroupsGetCall)Do

Do executes the "dfareporting.userRolePermissionGroups.get" call.Any non-2xx status code is an error. Response headers are in either*UserRolePermissionGroup.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*UserRolePermissionGroupsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolePermissionGroupsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserRolePermissionGroupsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserRolePermissionGroupsListCall

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

func (*UserRolePermissionGroupsListCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolePermissionGroupsListCall)Do

Do executes the "dfareporting.userRolePermissionGroups.list" call.Any non-2xx status code is an error. Response headers are in either*UserRolePermissionGroupsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*UserRolePermissionGroupsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolePermissionGroupsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserRolePermissionGroupsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserRolePermissionGroupsListResponse

type UserRolePermissionGroupsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userRolePermissionGroupsListResponse".Kindstring `json:"kind,omitempty"`// UserRolePermissionGroups: User role permission group collection.UserRolePermissionGroups []*UserRolePermissionGroup `json:"userRolePermissionGroups,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserRolePermissionGroupsListResponse: User Role Permission Group ListResponse

func (UserRolePermissionGroupsListResponse)MarshalJSON

typeUserRolePermissionGroupsService

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

funcNewUserRolePermissionGroupsService

func NewUserRolePermissionGroupsService(s *Service) *UserRolePermissionGroupsService

func (*UserRolePermissionGroupsService)Get

Get: Gets one user role permission group by ID.

- id: User role permission group ID.- profileId: User profile ID associated with this request.

func (*UserRolePermissionGroupsService)List

List: Gets a list of all supported user role permission groups.

- profileId: User profile ID associated with this request.

typeUserRolePermissionsGetCall

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

func (*UserRolePermissionsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolePermissionsGetCall)Do

Do executes the "dfareporting.userRolePermissions.get" call.Any non-2xx status code is an error. Response headers are in either*UserRolePermission.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*UserRolePermissionsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolePermissionsGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserRolePermissionsGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserRolePermissionsListCall

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

func (*UserRolePermissionsListCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolePermissionsListCall)Do

Do executes the "dfareporting.userRolePermissions.list" call.Any non-2xx status code is an error. Response headers are in either*UserRolePermissionsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*UserRolePermissionsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolePermissionsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserRolePermissionsListCall)Ids

Ids sets the optional parameter "ids": Select only user role permissionswith these IDs.

func (*UserRolePermissionsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserRolePermissionsListResponse

type UserRolePermissionsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userRolePermissionsListResponse".Kindstring `json:"kind,omitempty"`// UserRolePermissions: User role permission collection.UserRolePermissions []*UserRolePermission `json:"userRolePermissions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserRolePermissionsListResponse: User Role Permission List Response

func (UserRolePermissionsListResponse)MarshalJSON

func (sUserRolePermissionsListResponse) MarshalJSON() ([]byte,error)

typeUserRolePermissionsService

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

funcNewUserRolePermissionsService

func NewUserRolePermissionsService(s *Service) *UserRolePermissionsService

func (*UserRolePermissionsService)Get

Get: Gets one user role permission by ID.

- id: User role permission ID.- profileId: User profile ID associated with this request.

func (*UserRolePermissionsService)List

List: Gets a list of user role permissions, possibly filtered.

- profileId: User profile ID associated with this request.

typeUserRolesDeleteCall

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

func (*UserRolesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolesDeleteCall)Do

Do executes the "dfareporting.userRoles.delete" call.

func (*UserRolesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolesDeleteCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUserRolesGetCall

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

func (*UserRolesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolesGetCall)Do

Do executes the "dfareporting.userRoles.get" call.Any non-2xx status code is an error. Response headers are in either*UserRole.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UserRolesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolesGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserRolesGetCall)IfNoneMatch

func (c *UserRolesGetCall) IfNoneMatch(entityTagstring) *UserRolesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUserRolesInsertCall

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

func (*UserRolesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolesInsertCall)Do

Do executes the "dfareporting.userRoles.insert" call.Any non-2xx status code is an error. Response headers are in either*UserRole.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UserRolesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolesInsertCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUserRolesListCall

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

func (*UserRolesListCall)AccountUserRoleOnly

func (c *UserRolesListCall) AccountUserRoleOnly(accountUserRoleOnlybool) *UserRolesListCall

AccountUserRoleOnly sets the optional parameter "accountUserRoleOnly":Select only account level user roles not associated with any specificsubaccount.

func (*UserRolesListCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolesListCall)Do

Do executes the "dfareporting.userRoles.list" call.Any non-2xx status code is an error. Response headers are in either*UserRolesListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*UserRolesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolesListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UserRolesListCall)Ids

Ids sets the optional parameter "ids": Select only user roles with thespecified IDs.

func (*UserRolesListCall)IfNoneMatch

func (c *UserRolesListCall) IfNoneMatch(entityTagstring) *UserRolesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*UserRolesListCall)MaxResults

func (c *UserRolesListCall) MaxResults(maxResultsint64) *UserRolesListCall

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

func (*UserRolesListCall)PageToken

func (c *UserRolesListCall) PageToken(pageTokenstring) *UserRolesListCall

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

func (*UserRolesListCall)Pages

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

func (*UserRolesListCall)SearchString

func (c *UserRolesListCall) SearchString(searchStringstring) *UserRolesListCall

SearchString sets the optional parameter "searchString": Allows searchingfor 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 alsoadd wildcards implicitly at the start and the end of the search string. Forexample, a search string of "userrole" will match objects with name "myuserrole", "userrole 2015", or simply "userrole".

func (*UserRolesListCall)SortField

func (c *UserRolesListCall) SortField(sortFieldstring) *UserRolesListCall

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

Possible values:

"ID" (default)"NAME"

func (*UserRolesListCall)SortOrder

func (c *UserRolesListCall) SortOrder(sortOrderstring) *UserRolesListCall

SortOrder sets the optional parameter "sortOrder": Order of sorted results.

Possible values:

"ASCENDING" (default) - Ascending order."DESCENDING" - Descending order.

func (*UserRolesListCall)SubaccountId

func (c *UserRolesListCall) SubaccountId(subaccountIdint64) *UserRolesListCall

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

typeUserRolesListResponse

type UserRolesListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#userRolesListResponse".Kindstring `json:"kind,omitempty"`// NextPageToken: Pagination token to be used for the next list operation.NextPageTokenstring `json:"nextPageToken,omitempty"`// UserRoles: User role collection.UserRoles []*UserRole `json:"userRoles,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

UserRolesListResponse: User Role List Response

func (UserRolesListResponse)MarshalJSON

func (sUserRolesListResponse) MarshalJSON() ([]byte,error)

typeUserRolesPatchCall

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

func (*UserRolesPatchCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolesPatchCall)Do

Do executes the "dfareporting.userRoles.patch" call.Any non-2xx status code is an error. Response headers are in either*UserRole.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UserRolesPatchCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolesPatchCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUserRolesService

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

funcNewUserRolesService

func NewUserRolesService(s *Service) *UserRolesService

func (*UserRolesService)Delete

func (r *UserRolesService) Delete(profileIdint64, idint64) *UserRolesDeleteCall

Delete: Deletes an existing user role.

- id: User role ID.- profileId: User profile ID associated with this request.

func (*UserRolesService)Get

func (r *UserRolesService) Get(profileIdint64, idint64) *UserRolesGetCall

Get: Gets one user role by ID.

- id: User role ID.- profileId: User profile ID associated with this request.

func (*UserRolesService)Insert

func (r *UserRolesService) Insert(profileIdint64, userrole *UserRole) *UserRolesInsertCall

Insert: Inserts a new user role.

- profileId: User profile ID associated with this request.

func (*UserRolesService)List

func (r *UserRolesService) List(profileIdint64) *UserRolesListCall

List: Retrieves a list of user roles, possibly filtered. This methodsupports paging.

- profileId: User profile ID associated with this request.

func (*UserRolesService)Patch

func (r *UserRolesService) Patch(profileIdint64, idint64, userrole *UserRole) *UserRolesPatchCall

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

- id: UserRole ID.- profileId: User profile ID associated with this request.

func (*UserRolesService)Update

func (r *UserRolesService) Update(profileIdint64, userrole *UserRole) *UserRolesUpdateCall

Update: Updates an existing user role.

- profileId: User profile ID associated with this request.

typeUserRolesUpdateCall

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

func (*UserRolesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*UserRolesUpdateCall)Do

Do executes the "dfareporting.userRoles.update" call.Any non-2xx status code is an error. Response headers are in either*UserRole.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UserRolesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UserRolesUpdateCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeVideoFormat

type VideoFormat struct {// FileType: File type of the video format.//// Possible values://   "FLV"//   "THREEGPP"//   "MP4"//   "WEBM"//   "M3U8"FileTypestring `json:"fileType,omitempty"`// Id: ID of the video format.Idint64 `json:"id,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#videoFormat".Kindstring `json:"kind,omitempty"`// Resolution: The resolution of this video format.Resolution *Size `json:"resolution,omitempty"`// TargetBitRate: The target bit rate of this video format.TargetBitRateint64 `json:"targetBitRate,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "FileType") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "FileType") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

VideoFormat: Contains information about supported video formats.

func (VideoFormat)MarshalJSON

func (sVideoFormat) MarshalJSON() ([]byte,error)

typeVideoFormatsGetCall

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

func (*VideoFormatsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*VideoFormatsGetCall)Do

Do executes the "dfareporting.videoFormats.get" call.Any non-2xx status code is an error. Response headers are in either*VideoFormat.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*VideoFormatsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*VideoFormatsGetCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*VideoFormatsGetCall)IfNoneMatch

func (c *VideoFormatsGetCall) IfNoneMatch(entityTagstring) *VideoFormatsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeVideoFormatsListCall

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

func (*VideoFormatsListCall)Context

Context sets the context to be used in this call's Do method.

func (*VideoFormatsListCall)Do

Do executes the "dfareporting.videoFormats.list" call.Any non-2xx status code is an error. Response headers are in either*VideoFormatsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*VideoFormatsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*VideoFormatsListCall)Header

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

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*VideoFormatsListCall)IfNoneMatch

func (c *VideoFormatsListCall) IfNoneMatch(entityTagstring) *VideoFormatsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeVideoFormatsListResponse

type VideoFormatsListResponse struct {// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#videoFormatsListResponse".Kindstring `json:"kind,omitempty"`// VideoFormats: Video format collection.VideoFormats []*VideoFormat `json:"videoFormats,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

VideoFormatsListResponse: Video Format List Response

func (VideoFormatsListResponse)MarshalJSON

func (sVideoFormatsListResponse) MarshalJSON() ([]byte,error)

typeVideoFormatsService

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

funcNewVideoFormatsService

func NewVideoFormatsService(s *Service) *VideoFormatsService

func (*VideoFormatsService)Get

Get: Gets one video format by ID.

- id: Video format ID.- profileId: User profile ID associated with this request.

func (*VideoFormatsService)List

List: Lists available video formats.

- profileId: User profile ID associated with this request.

typeVideoOffset

type VideoOffset struct {// OffsetPercentage: Duration, as a percentage of video duration. Do not set// when offsetSeconds is set. Acceptable values are 0 to 100, inclusive.OffsetPercentageint64 `json:"offsetPercentage,omitempty"`// OffsetSeconds: Duration, in seconds. Do not set when offsetPercentage is// set. Acceptable values are 0 to 86399, inclusive.OffsetSecondsint64 `json:"offsetSeconds,omitempty"`// ForceSendFields is a list of field names (e.g. "OffsetPercentage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "OffsetPercentage") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

VideoOffset: Video Offset

func (VideoOffset)MarshalJSON

func (sVideoOffset) MarshalJSON() ([]byte,error)

typeVideoProcessingDataadded inv0.253.0

type VideoProcessingData struct {// ErrorReason: For a FAILED processing state, the error reason discovered.ErrorReasonstring `json:"errorReason,omitempty"`// ProcessingState: Output only. The processing state of the studio creative// asset.//// Possible values://   "UNKNOWN" - The processing state is unknown.//   "PROCESSING" - The asset is being processed.//   "SUCCEEDED" - The asset was successfully processed.//   "FAILED" - The asset failed to be processed.ProcessingStatestring `json:"processingState,omitempty"`// ForceSendFields is a list of field names (e.g. "ErrorReason") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ErrorReason") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

VideoProcessingData: Contains processing data for a video asset.

func (VideoProcessingData)MarshalJSONadded inv0.253.0

func (sVideoProcessingData) MarshalJSON() ([]byte,error)

typeVideoSettings

type VideoSettings struct {// CompanionSettings: Settings for the companion creatives of video creatives// served to this placement.CompanionSettings *CompanionSetting `json:"companionSettings,omitempty"`// DurationSeconds: Duration of a video placement in seconds.DurationSecondsint64 `json:"durationSeconds,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#videoSettings".Kindstring `json:"kind,omitempty"`// ObaEnabled: Whether OBA icons are enabled for this placement.ObaEnabledbool `json:"obaEnabled,omitempty"`// ObaSettings: Settings for the OBA icon of video creatives served to this// placement. If this object is provided, the creative-level OBA settings will// be overridden.ObaSettings *ObaIcon `json:"obaSettings,omitempty"`// Orientation: Orientation of a video placement. If this value is set,// placement will return assets matching the specified orientation.//// Possible values://   "ANY"//   "LANDSCAPE"//   "PORTRAIT"Orientationstring `json:"orientation,omitempty"`// PublisherSpecificationId: Publisher specification ID of a video placement.// Possible values are: * `1`, Hulu * `2`, NBC * `3`, CBS * `4`, CBS Desktop *// `5`, Discovery * `6`, VEVO HD * `7`, VEVO Vertical * `8`, Fox * `9`, CW// Network * `10`, Disney * `11`, IGN * `12`, NFL.com * `13`, Turner// Broadcasting * `14`, Tubi on Fox * `15`, Hearst Corporation * `16`, Twitch// Desktop * `17`, ABC * `18`, Univision * `19`, MLB.com * `20`, MLB.com Mobile// * `21`, MLB.com OTT * `22`, Polsat * `23`, TVN * `24`, Mediaset * `25`,// Antena 3 * `26`, Mediamond * `27`, Sky Italia * `28`, Tubi on CBS * `29`,// Spotify * `30`, Paramount * `31`, MaxPublisherSpecificationIdint64 `json:"publisherSpecificationId,omitempty,string"`// SkippableSettings: Settings for the skippability of video creatives served// to this placement. If this object is provided, the creative-level skippable// settings will be overridden.SkippableSettings *SkippableSetting `json:"skippableSettings,omitempty"`// TranscodeSettings: Settings for the transcodes of video creatives served to// this placement. If this object is provided, the creative-level transcode// settings will be overridden.TranscodeSettings *TranscodeSetting `json:"transcodeSettings,omitempty"`// ForceSendFields is a list of field names (e.g. "CompanionSettings") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompanionSettings") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

VideoSettings: Video Settings

func (VideoSettings)MarshalJSON

func (sVideoSettings) MarshalJSON() ([]byte,error)

typeYoutubeSettingsadded inv0.250.0

type YoutubeSettings struct {// BusinessLogoCreativeIds: Optional. The IDs of the creatives to use for the// business logo. Currently only one creative is supported.BusinessLogoCreativeIdsgoogleapi.Int64s `json:"businessLogoCreativeIds,omitempty"`// BusinessName: Optional. The business name.BusinessNamestring `json:"businessName,omitempty"`// CallToActions: Optional. The call to actions. Currently only one call to// action is supported.//// Possible values://   "CALL_TO_ACTION_UNKNOWN"//   "CALL_TO_ACTION_LEARN_MORE"//   "CALL_TO_ACTION_GET_QUOTE"//   "CALL_TO_ACTION_APPLY_NOW"//   "CALL_TO_ACTION_SIGN_UP"//   "CALL_TO_ACTION_CONTACT_US"//   "CALL_TO_ACTION_SUBSCRIBE"//   "CALL_TO_ACTION_DOWNLOAD"//   "CALL_TO_ACTION_BOOK_NOW"//   "CALL_TO_ACTION_GET_OFFER"//   "CALL_TO_ACTION_SHOP_NOW"//   "CALL_TO_ACTION_VISIT_STORE"//   "CALL_TO_ACTION_CALL_NOW"//   "CALL_TO_ACTION_VIEW_MENU"//   "CALL_TO_ACTION_TEST_DRIVE"//   "CALL_TO_ACTION_SCHEDULE_NOW"//   "CALL_TO_ACTION_BUY_NOW"//   "CALL_TO_ACTION_DONATE_NOW"//   "CALL_TO_ACTION_ORDER_NOW"//   "CALL_TO_ACTION_PLAY_NOW"//   "CALL_TO_ACTION_SEE_MORE"//   "CALL_TO_ACTION_START_NOW"//   "CALL_TO_ACTION_VISIT_SITE"//   "CALL_TO_ACTION_WATCH_NOW"CallToActions []string `json:"callToActions,omitempty"`// Descriptions: Optional. The descriptions. Currently only one description is// supported.Descriptions []string `json:"descriptions,omitempty"`// Headlines: Optional. The headlines associated with the call to actions.// Currently only one headline is supported.Headlines []string `json:"headlines,omitempty"`// LongHeadlines: Optional. The long headlines. Currently only one long// headline is supported.LongHeadlines []string `json:"longHeadlines,omitempty"`// ForceSendFields is a list of field names (e.g. "BusinessLogoCreativeIds") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "BusinessLogoCreativeIds") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

YoutubeSettings: Contains the YouTube settings.

func (YoutubeSettings)MarshalJSONadded inv0.250.0

func (sYoutubeSettings) MarshalJSON() ([]byte,error)

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp