api: google.golang.org/api/dfareporting/v3.3 Index | Files

package dfareporting

import "google.golang.org/api/dfareporting/v3.3"

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

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

Creating a client

Usage example:

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

In this example, Google Application Default Credentials are used for authentication.

For information on how to create and obtain Application Default Credentials, see https://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, use option.WithScopes:

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

To use an API key for authentication (note: some APIs do not support API keys), use 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 OAuth flow), use option.WithTokenSource:

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

See https://godoc.org/google.golang.org/api/option/ for details on options.

Index

Package Files

dfareporting-gen.go

Constants

const (
    // Manage DoubleClick Digital Marketing conversions
    DdmconversionsScope = "https://www.googleapis.com/auth/ddmconversions"

    // View and manage DoubleClick for Advertisers reports
    DfareportingScope = "https://www.googleapis.com/auth/dfareporting"

    // View and manage your DoubleClick Campaign Manager's (DCM) display ad
    // campaigns
    DfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking"
)

OAuth2 scopes used by this API.

type Account Uses

type Account struct {
    // AccountPermissionIds: Account permissions assigned to this account.
    AccountPermissionIds googleapi.Int64s `json:"accountPermissionIds,omitempty"`

    // AccountProfile: Profile for this account. This is a read-only field
    // that can be left blank.
    //
    // Possible values:
    //   "ACCOUNT_PROFILE_BASIC"
    //   "ACCOUNT_PROFILE_STANDARD"
    AccountProfile string `json:"accountProfile,omitempty"`

    // Active: Whether this account is active.
    Active bool `json:"active,omitempty"`

    // ActiveAdsLimitTier: Maximum number of active ads allowed for this
    // account.
    //
    // Possible values:
    //   "ACTIVE_ADS_TIER_100K"
    //   "ACTIVE_ADS_TIER_1M"
    //   "ACTIVE_ADS_TIER_200K"
    //   "ACTIVE_ADS_TIER_300K"
    //   "ACTIVE_ADS_TIER_40K"
    //   "ACTIVE_ADS_TIER_500K"
    //   "ACTIVE_ADS_TIER_750K"
    //   "ACTIVE_ADS_TIER_75K"
    ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`

    // ActiveViewOptOut: Whether to serve creatives with Active View tags.
    // If disabled, viewability data will not be available for any
    // impressions.
    ActiveViewOptOut bool `json:"activeViewOptOut,omitempty"`

    // AvailablePermissionIds: User role permissions available to the user
    // roles of this account.
    AvailablePermissionIds googleapi.Int64s `json:"availablePermissionIds,omitempty"`

    // CountryId: ID of the country associated with this account.
    CountryId int64 `json:"countryId,omitempty,string"`

    // CurrencyId: ID of currency associated with this account. This is a
    // required field.
    // Acceptable values are:
    // - "1" for USD
    // - "2" for GBP
    // - "3" for ESP
    // - "4" for SEK
    // - "5" for CAD
    // - "6" for JPY
    // - "7" for DEM
    // - "8" for AUD
    // - "9" for FRF
    // - "10" for ITL
    // - "11" for DKK
    // - "12" for NOK
    // - "13" for FIM
    // - "14" for ZAR
    // - "15" for IEP
    // - "16" for NLG
    // - "17" for EUR
    // - "18" for KRW
    // - "19" for TWD
    // - "20" for SGD
    // - "21" for CNY
    // - "22" for HKD
    // - "23" for NZD
    // - "24" for MYR
    // - "25" for BRL
    // - "26" for PTE
    // - "27" for MXP
    // - "28" for CLP
    // - "29" for TRY
    // - "30" for ARS
    // - "31" for PEN
    // - "32" for ILS
    // - "33" for CHF
    // - "34" for VEF
    // - "35" for COP
    // - "36" for GTQ
    // - "37" for PLN
    // - "39" for INR
    // - "40" for THB
    // - "41" for IDR
    // - "42" for CZK
    // - "43" for RON
    // - "44" for HUF
    // - "45" for RUB
    // - "46" for AED
    // - "47" for BGN
    // - "48" for HRK
    // - "49" for MXN
    // - "50" for NGN
    CurrencyId int64 `json:"currencyId,omitempty,string"`

    // DefaultCreativeSizeId: Default placement dimensions for this account.
    DefaultCreativeSizeId int64 `json:"defaultCreativeSizeId,omitempty,string"`

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

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

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

    // Locale: Locale of this account.
    // Acceptable values are:
    // - "cs" (Czech)
    // - "de" (German)
    // - "en" (English)
    // - "en-GB" (English United Kingdom)
    // - "es" (Spanish)
    // - "fr" (French)
    // - "it" (Italian)
    // - "ja" (Japanese)
    // - "ko" (Korean)
    // - "pl" (Polish)
    // - "pt-BR" (Portuguese Brazil)
    // - "ru" (Russian)
    // - "sv" (Swedish)
    // - "tr" (Turkish)
    // - "zh-CN" (Chinese Simplified)
    // - "zh-TW" (Chinese Traditional)
    Locale string `json:"locale,omitempty"`

    // MaximumImageSize: Maximum image size allowed for this account, in
    // kilobytes. Value must be greater than or equal to 1.
    MaximumImageSize int64 `json:"maximumImageSize,omitempty,string"`

    // Name: Name of this account. This is a required field, and must be
    // less than 128 characters long and be globally unique.
    Name string `json:"name,omitempty"`

    // NielsenOcrEnabled: Whether campaigns created in this account will be
    // enabled for Nielsen OCR reach ratings by default.
    NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`

    // ReportsConfiguration: Reporting configuration of this account.
    ReportsConfiguration *ReportsConfiguration `json:"reportsConfiguration,omitempty"`

    // ShareReportsWithTwitter: Share Path to Conversion reports with
    // Twitter.
    ShareReportsWithTwitter bool `json:"shareReportsWithTwitter,omitempty"`

    // TeaserSizeLimit: File size limit in kilobytes of Rich Media teaser
    // creatives. Acceptable values are 1 to 10240, inclusive.
    TeaserSizeLimit int64 `json:"teaserSizeLimit,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "AccountPermissionIds") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountPermissionIds") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

Account: Contains properties of a Campaign Manager account.

func (*Account) MarshalJSON Uses

func (s *Account) MarshalJSON() ([]byte, error)

type AccountActiveAdSummariesGetCall Uses

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

func (*AccountActiveAdSummariesGetCall) Context Uses

func (c *AccountActiveAdSummariesGetCall) Context(ctx context.Context) *AccountActiveAdSummariesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountActiveAdSummariesGetCall) Do Uses

func (c *AccountActiveAdSummariesGetCall) Do(opts ...googleapi.CallOption) (*AccountActiveAdSummary, error)

Do executes the "dfareporting.accountActiveAdSummaries.get" call. Exactly one of *AccountActiveAdSummary or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountActiveAdSummary.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountActiveAdSummariesGetCall) Fields Uses

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

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

func (*AccountActiveAdSummariesGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountActiveAdSummariesGetCall) IfNoneMatch Uses

func (c *AccountActiveAdSummariesGetCall) IfNoneMatch(entityTag string) *AccountActiveAdSummariesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountActiveAdSummariesService Uses

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

func NewAccountActiveAdSummariesService Uses

func NewAccountActiveAdSummariesService(s *Service) *AccountActiveAdSummariesService

func (*AccountActiveAdSummariesService) Get Uses

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

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

type AccountActiveAdSummary Uses

type AccountActiveAdSummary struct {
    // AccountId: ID of the account.
    AccountId int64 `json:"accountId,omitempty,string"`

    // ActiveAds: Ads that have been activated for the account
    ActiveAds int64 `json:"activeAds,omitempty,string"`

    // ActiveAdsLimitTier: Maximum number of active ads allowed for the
    // account.
    //
    // Possible values:
    //   "ACTIVE_ADS_TIER_100K"
    //   "ACTIVE_ADS_TIER_1M"
    //   "ACTIVE_ADS_TIER_200K"
    //   "ACTIVE_ADS_TIER_300K"
    //   "ACTIVE_ADS_TIER_40K"
    //   "ACTIVE_ADS_TIER_500K"
    //   "ACTIVE_ADS_TIER_750K"
    //   "ACTIVE_ADS_TIER_75K"
    ActiveAdsLimitTier string `json:"activeAdsLimitTier,omitempty"`

    // AvailableAds: Ads that can be activated for the account.
    AvailableAds int64 `json:"availableAds,omitempty,string"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*AccountActiveAdSummary) MarshalJSON Uses

func (s *AccountActiveAdSummary) MarshalJSON() ([]byte, error)

type AccountPermission Uses

type AccountPermission struct {
    // AccountProfiles: Account profiles associated with this account
    // permission.
    //
    // Possible values are:
    // - "ACCOUNT_PROFILE_BASIC"
    // - "ACCOUNT_PROFILE_STANDARD"
    //
    // Possible values:
    //   "ACCOUNT_PROFILE_BASIC"
    //   "ACCOUNT_PROFILE_STANDARD"
    AccountProfiles []string `json:"accountProfiles,omitempty"`

    // Id: ID of this account permission.
    Id  int64 `json:"id,omitempty,string"`

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

    // Level: Administrative level required to enable this account
    // permission.
    //
    // Possible values:
    //   "ADMINISTRATOR"
    //   "USER"
    Level string `json:"level,omitempty"`

    // Name: Name of this account permission.
    Name string `json:"name,omitempty"`

    // PermissionGroupId: Permission group of this account permission.
    PermissionGroupId int64 `json:"permissionGroupId,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountProfiles") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountProfiles") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

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

func (*AccountPermission) MarshalJSON Uses

func (s *AccountPermission) MarshalJSON() ([]byte, error)

type AccountPermissionGroup Uses

type AccountPermissionGroup struct {
    // Id: ID of this account permission group.
    Id  int64 `json:"id,omitempty,string"`

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

    // Name: Name of this account permission group.
    Name string `json:"name,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*AccountPermissionGroup) MarshalJSON Uses

func (s *AccountPermissionGroup) MarshalJSON() ([]byte, error)

type AccountPermissionGroupsGetCall Uses

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

func (*AccountPermissionGroupsGetCall) Context Uses

func (c *AccountPermissionGroupsGetCall) Context(ctx context.Context) *AccountPermissionGroupsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountPermissionGroupsGetCall) Do Uses

func (c *AccountPermissionGroupsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroup, error)

Do executes the "dfareporting.accountPermissionGroups.get" call. Exactly one of *AccountPermissionGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountPermissionGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountPermissionGroupsGetCall) Fields Uses

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

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

func (*AccountPermissionGroupsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountPermissionGroupsGetCall) IfNoneMatch Uses

func (c *AccountPermissionGroupsGetCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountPermissionGroupsListCall Uses

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

func (*AccountPermissionGroupsListCall) Context Uses

func (c *AccountPermissionGroupsListCall) Context(ctx context.Context) *AccountPermissionGroupsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountPermissionGroupsListCall) Do Uses

func (c *AccountPermissionGroupsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionGroupsListResponse, error)

Do executes the "dfareporting.accountPermissionGroups.list" call. Exactly one of *AccountPermissionGroupsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountPermissionGroupsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountPermissionGroupsListCall) Fields Uses

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

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

func (*AccountPermissionGroupsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountPermissionGroupsListCall) IfNoneMatch Uses

func (c *AccountPermissionGroupsListCall) IfNoneMatch(entityTag string) *AccountPermissionGroupsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountPermissionGroupsListResponse Uses

type AccountPermissionGroupsListResponse struct {
    // AccountPermissionGroups: Account permission group collection.
    AccountPermissionGroups []*AccountPermissionGroup `json:"accountPermissionGroups,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "AccountPermissionGroups") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountPermissionGroups")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AccountPermissionGroupsListResponse: Account Permission Group List Response

func (*AccountPermissionGroupsListResponse) MarshalJSON Uses

func (s *AccountPermissionGroupsListResponse) MarshalJSON() ([]byte, error)

type AccountPermissionGroupsService Uses

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

func NewAccountPermissionGroupsService Uses

func NewAccountPermissionGroupsService(s *Service) *AccountPermissionGroupsService

func (*AccountPermissionGroupsService) Get Uses

func (r *AccountPermissionGroupsService) Get(profileId int64, id int64) *AccountPermissionGroupsGetCall

Get: Gets one account permission group by ID.

func (*AccountPermissionGroupsService) List Uses

func (r *AccountPermissionGroupsService) List(profileId int64) *AccountPermissionGroupsListCall

List: Retrieves the list of account permission groups.

type AccountPermissionsGetCall Uses

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

func (*AccountPermissionsGetCall) Context Uses

func (c *AccountPermissionsGetCall) Context(ctx context.Context) *AccountPermissionsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountPermissionsGetCall) Do Uses

func (c *AccountPermissionsGetCall) Do(opts ...googleapi.CallOption) (*AccountPermission, error)

Do executes the "dfareporting.accountPermissions.get" call. Exactly one of *AccountPermission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountPermission.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountPermissionsGetCall) Fields Uses

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

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

func (*AccountPermissionsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountPermissionsGetCall) IfNoneMatch Uses

func (c *AccountPermissionsGetCall) IfNoneMatch(entityTag string) *AccountPermissionsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountPermissionsListCall Uses

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

func (*AccountPermissionsListCall) Context Uses

func (c *AccountPermissionsListCall) Context(ctx context.Context) *AccountPermissionsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountPermissionsListCall) Do Uses

func (c *AccountPermissionsListCall) Do(opts ...googleapi.CallOption) (*AccountPermissionsListResponse, error)

Do executes the "dfareporting.accountPermissions.list" call. Exactly one of *AccountPermissionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountPermissionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountPermissionsListCall) Fields Uses

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

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

func (*AccountPermissionsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountPermissionsListCall) IfNoneMatch Uses

func (c *AccountPermissionsListCall) IfNoneMatch(entityTag string) *AccountPermissionsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountPermissionsListResponse Uses

type AccountPermissionsListResponse struct {
    // AccountPermissions: Account permission collection.
    AccountPermissions []*AccountPermission `json:"accountPermissions,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountPermissions")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountPermissions") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AccountPermissionsListResponse: Account Permission List Response

func (*AccountPermissionsListResponse) MarshalJSON Uses

func (s *AccountPermissionsListResponse) MarshalJSON() ([]byte, error)

type AccountPermissionsService Uses

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

func NewAccountPermissionsService Uses

func NewAccountPermissionsService(s *Service) *AccountPermissionsService

func (*AccountPermissionsService) Get Uses

func (r *AccountPermissionsService) Get(profileId int64, id int64) *AccountPermissionsGetCall

Get: Gets one account permission by ID.

func (*AccountPermissionsService) List Uses

func (r *AccountPermissionsService) List(profileId int64) *AccountPermissionsListCall

List: Retrieves the list of account permissions.

type AccountUserProfile Uses

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

    // Active: Whether this user profile is active. This defaults to false,
    // and must be set true on insert for the user profile to be usable.
    Active bool `json:"active,omitempty"`

    // AdvertiserFilter: Filter that describes which advertisers are visible
    // to the user profile.
    AdvertiserFilter *ObjectFilter `json:"advertiserFilter,omitempty"`

    // CampaignFilter: Filter that describes which campaigns are visible to
    // the user profile.
    CampaignFilter *ObjectFilter `json:"campaignFilter,omitempty"`

    // Comments: Comments for this user profile.
    Comments string `json:"comments,omitempty"`

    // Email: Email of the user profile. The email addresss must be linked
    // to a Google Account. This field is required on insertion and is
    // read-only after insertion.
    Email string `json:"email,omitempty"`

    // Id: ID of the user profile. This is a read-only, auto-generated
    // field.
    Id  int64 `json:"id,omitempty,string"`

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

    // Locale: Locale of the user profile. This is a required
    // field.
    // Acceptable values are:
    // - "cs" (Czech)
    // - "de" (German)
    // - "en" (English)
    // - "en-GB" (English United Kingdom)
    // - "es" (Spanish)
    // - "fr" (French)
    // - "it" (Italian)
    // - "ja" (Japanese)
    // - "ko" (Korean)
    // - "pl" (Polish)
    // - "pt-BR" (Portuguese Brazil)
    // - "ru" (Russian)
    // - "sv" (Swedish)
    // - "tr" (Turkish)
    // - "zh-CN" (Chinese Simplified)
    // - "zh-TW" (Chinese Traditional)
    Locale string `json:"locale,omitempty"`

    // Name: Name of the user profile. This is a required field. Must be
    // less than 64 characters long, must be globally unique, and cannot
    // contain whitespace or any of the following characters: "&;"#%,".
    Name string `json:"name,omitempty"`

    // SiteFilter: Filter that describes which sites are visible to the user
    // profile.
    SiteFilter *ObjectFilter `json:"siteFilter,omitempty"`

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

    // TraffickerType: Trafficker type of this user profile. This is a
    // read-only field.
    //
    // Possible values:
    //   "EXTERNAL_TRAFFICKER"
    //   "INTERNAL_NON_TRAFFICKER"
    //   "INTERNAL_TRAFFICKER"
    TraffickerType string `json:"traffickerType,omitempty"`

    // UserAccessType: User type of the user profile. This is a read-only
    // field that can be left blank.
    //
    // Possible values:
    //   "INTERNAL_ADMINISTRATOR"
    //   "NORMAL_USER"
    //   "READ_ONLY_SUPER_USER"
    //   "SUPER_USER"
    UserAccessType string `json:"userAccessType,omitempty"`

    // UserRoleFilter: Filter that describes which user roles are visible to
    // the user profile.
    UserRoleFilter *ObjectFilter `json:"userRoleFilter,omitempty"`

    // UserRoleId: User role ID of the user profile. This is a required
    // field.
    UserRoleId int64 `json:"userRoleId,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*AccountUserProfile) MarshalJSON Uses

func (s *AccountUserProfile) MarshalJSON() ([]byte, error)

type AccountUserProfilesGetCall Uses

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

func (*AccountUserProfilesGetCall) Context Uses

func (c *AccountUserProfilesGetCall) Context(ctx context.Context) *AccountUserProfilesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountUserProfilesGetCall) Do Uses

func (c *AccountUserProfilesGetCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error)

Do executes the "dfareporting.accountUserProfiles.get" call. Exactly one of *AccountUserProfile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountUserProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountUserProfilesGetCall) Fields Uses

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

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

func (*AccountUserProfilesGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountUserProfilesGetCall) IfNoneMatch Uses

func (c *AccountUserProfilesGetCall) IfNoneMatch(entityTag string) *AccountUserProfilesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountUserProfilesInsertCall Uses

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

func (*AccountUserProfilesInsertCall) Context Uses

func (c *AccountUserProfilesInsertCall) Context(ctx context.Context) *AccountUserProfilesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountUserProfilesInsertCall) Do Uses

func (c *AccountUserProfilesInsertCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error)

Do executes the "dfareporting.accountUserProfiles.insert" call. Exactly one of *AccountUserProfile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountUserProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountUserProfilesInsertCall) Fields Uses

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

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

func (*AccountUserProfilesInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountUserProfilesListCall Uses

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

func (*AccountUserProfilesListCall) Active Uses

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

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

func (*AccountUserProfilesListCall) Context Uses

func (c *AccountUserProfilesListCall) Context(ctx context.Context) *AccountUserProfilesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountUserProfilesListCall) Do Uses

func (c *AccountUserProfilesListCall) Do(opts ...googleapi.CallOption) (*AccountUserProfilesListResponse, error)

Do executes the "dfareporting.accountUserProfiles.list" call. Exactly one of *AccountUserProfilesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountUserProfilesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountUserProfilesListCall) Fields Uses

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

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

func (*AccountUserProfilesListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountUserProfilesListCall) Ids Uses

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

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

func (*AccountUserProfilesListCall) IfNoneMatch Uses

func (c *AccountUserProfilesListCall) IfNoneMatch(entityTag string) *AccountUserProfilesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AccountUserProfilesListCall) MaxResults Uses

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

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

func (*AccountUserProfilesListCall) PageToken Uses

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

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

func (*AccountUserProfilesListCall) Pages Uses

func (c *AccountUserProfilesListCall) Pages(ctx context.Context, f func(*AccountUserProfilesListResponse) 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 (*AccountUserProfilesListCall) SearchString Uses

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

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

func (*AccountUserProfilesListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*AccountUserProfilesListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

func (*AccountUserProfilesListCall) SubaccountId Uses

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

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

func (*AccountUserProfilesListCall) UserRoleId Uses

func (c *AccountUserProfilesListCall) UserRoleId(userRoleId int64) *AccountUserProfilesListCall

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

type AccountUserProfilesListResponse Uses

type AccountUserProfilesListResponse struct {
    // AccountUserProfiles: Account user profile collection.
    AccountUserProfiles []*AccountUserProfile `json:"accountUserProfiles,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountUserProfiles")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountUserProfiles") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AccountUserProfilesListResponse: Account User Profile List Response

func (*AccountUserProfilesListResponse) MarshalJSON Uses

func (s *AccountUserProfilesListResponse) MarshalJSON() ([]byte, error)

type AccountUserProfilesPatchCall Uses

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

func (*AccountUserProfilesPatchCall) Context Uses

func (c *AccountUserProfilesPatchCall) Context(ctx context.Context) *AccountUserProfilesPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountUserProfilesPatchCall) Do Uses

func (c *AccountUserProfilesPatchCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error)

Do executes the "dfareporting.accountUserProfiles.patch" call. Exactly one of *AccountUserProfile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountUserProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountUserProfilesPatchCall) Fields Uses

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

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

func (*AccountUserProfilesPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountUserProfilesService Uses

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

func NewAccountUserProfilesService Uses

func NewAccountUserProfilesService(s *Service) *AccountUserProfilesService

func (*AccountUserProfilesService) Get Uses

func (r *AccountUserProfilesService) Get(profileId int64, id int64) *AccountUserProfilesGetCall

Get: Gets one account user profile by ID.

func (*AccountUserProfilesService) Insert Uses

func (r *AccountUserProfilesService) Insert(profileId int64, accountuserprofile *AccountUserProfile) *AccountUserProfilesInsertCall

Insert: Inserts a new account user profile.

func (*AccountUserProfilesService) List Uses

func (r *AccountUserProfilesService) List(profileId int64) *AccountUserProfilesListCall

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

func (*AccountUserProfilesService) Patch Uses

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

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

func (*AccountUserProfilesService) Update Uses

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

Update: Updates an existing account user profile.

type AccountUserProfilesUpdateCall Uses

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

func (*AccountUserProfilesUpdateCall) Context Uses

func (c *AccountUserProfilesUpdateCall) Context(ctx context.Context) *AccountUserProfilesUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountUserProfilesUpdateCall) Do Uses

func (c *AccountUserProfilesUpdateCall) Do(opts ...googleapi.CallOption) (*AccountUserProfile, error)

Do executes the "dfareporting.accountUserProfiles.update" call. Exactly one of *AccountUserProfile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountUserProfile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountUserProfilesUpdateCall) Fields Uses

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

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

func (*AccountUserProfilesUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsGetCall Uses

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

func (*AccountsGetCall) Context Uses

func (c *AccountsGetCall) Context(ctx context.Context) *AccountsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsGetCall) Do Uses

func (c *AccountsGetCall) Do(opts ...googleapi.CallOption) (*Account, error)

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

func (*AccountsGetCall) Fields Uses

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

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

func (*AccountsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsGetCall) IfNoneMatch Uses

func (c *AccountsGetCall) IfNoneMatch(entityTag string) *AccountsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AccountsListCall Uses

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

func (*AccountsListCall) Active Uses

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

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

func (*AccountsListCall) Context Uses

func (c *AccountsListCall) Context(ctx context.Context) *AccountsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsListCall) Do Uses

func (c *AccountsListCall) Do(opts ...googleapi.CallOption) (*AccountsListResponse, error)

Do executes the "dfareporting.accounts.list" call. Exactly one of *AccountsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AccountsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AccountsListCall) Fields Uses

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

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

func (*AccountsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AccountsListCall) Ids Uses

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

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

func (*AccountsListCall) IfNoneMatch Uses

func (c *AccountsListCall) IfNoneMatch(entityTag string) *AccountsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AccountsListCall) MaxResults Uses

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

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

func (*AccountsListCall) PageToken Uses

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

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

func (*AccountsListCall) Pages Uses

func (c *AccountsListCall) Pages(ctx context.Context, f func(*AccountsListResponse) 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 (*AccountsListCall) SearchString Uses

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

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

func (*AccountsListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*AccountsListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

type AccountsListResponse Uses

type AccountsListResponse struct {
    // Accounts: Account collection.
    Accounts []*Account `json:"accounts,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Accounts") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Accounts") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AccountsListResponse: Account List Response

func (*AccountsListResponse) MarshalJSON Uses

func (s *AccountsListResponse) MarshalJSON() ([]byte, error)

type AccountsPatchCall Uses

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

func (*AccountsPatchCall) Context Uses

func (c *AccountsPatchCall) Context(ctx context.Context) *AccountsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsPatchCall) Do Uses

func (c *AccountsPatchCall) Do(opts ...googleapi.CallOption) (*Account, error)

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

func (*AccountsPatchCall) Fields Uses

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

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

func (*AccountsPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AccountsService Uses

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

func NewAccountsService Uses

func NewAccountsService(s *Service) *AccountsService

func (*AccountsService) Get Uses

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

Get: Gets one account by ID.

func (*AccountsService) List Uses

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

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

func (*AccountsService) Patch Uses

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

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

func (*AccountsService) Update Uses

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

Update: Updates an existing account.

type AccountsUpdateCall Uses

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

func (*AccountsUpdateCall) Context Uses

func (c *AccountsUpdateCall) Context(ctx context.Context) *AccountsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AccountsUpdateCall) Do Uses

func (c *AccountsUpdateCall) Do(opts ...googleapi.CallOption) (*Account, error)

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

func (*AccountsUpdateCall) Fields Uses

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

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

func (*AccountsUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Activities Uses

type Activities struct {
    // Filters: List of activity filters. The dimension values need to be
    // all either of type "dfa:activity" or "dfa:activityGroup".
    Filters []*DimensionValue `json:"filters,omitempty"`

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

    // MetricNames: List of names of floodlight activity metrics.
    MetricNames []string `json:"metricNames,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Filters") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Filters") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Activities: Represents an activity group.

func (*Activities) MarshalJSON Uses

func (s *Activities) MarshalJSON() ([]byte, error)
type Ad struct {
    // AccountId: Account ID of this ad. This is a read-only field that can
    // be left blank.
    AccountId int64 `json:"accountId,omitempty,string"`

    // Active: Whether this ad is active. When true, archived must be false.
    Active bool `json:"active,omitempty"`

    // AdvertiserId: Advertiser ID of this ad. This is a required field on
    // insertion.
    AdvertiserId int64 `json:"advertiserId,omitempty,string"`

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

    // Archived: Whether this ad is archived. When true, active must be
    // false.
    Archived bool `json:"archived,omitempty"`

    // AudienceSegmentId: Audience segment ID that is being targeted for
    // this ad. Applicable when type is AD_SERVING_STANDARD_AD.
    AudienceSegmentId int64 `json:"audienceSegmentId,omitempty,string"`

    // CampaignId: Campaign ID of this ad. This is a required field on
    // insertion.
    CampaignId int64 `json:"campaignId,omitempty,string"`

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

    // ClickThroughUrl: Click-through URL for this ad. This is a required
    // field on insertion. Applicable when type is AD_SERVING_CLICK_TRACKER.
    ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`

    // ClickThroughUrlSuffixProperties: Click-through URL suffix properties
    // for this ad. Applies to the URL in the ad or (if overriding ad
    // properties) the URL in the creative.
    ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`

    // Comments: Comments for this ad.
    Comments string `json:"comments,omitempty"`

    // Compatibility: Compatibility of this ad. Applicable when type is
    // AD_SERVING_DEFAULT_AD. DISPLAY and DISPLAY_INTERSTITIAL refer to
    // either rendering on desktop or on mobile devices or in mobile apps
    // for regular or interstitial ads, respectively. APP and
    // APP_INTERSTITIAL are only used for existing default ads. New mobile
    // placements must be assigned DISPLAY or DISPLAY_INTERSTITIAL and
    // default ads created for those placements will be limited to those
    // compatibility types. IN_STREAM_VIDEO refers to rendering in-stream
    // video ads developed with the VAST standard.
    //
    // Possible values:
    //   "APP"
    //   "APP_INTERSTITIAL"
    //   "DISPLAY"
    //   "DISPLAY_INTERSTITIAL"
    //   "IN_STREAM_AUDIO"
    //   "IN_STREAM_VIDEO"
    Compatibility string `json:"compatibility,omitempty"`

    // CreateInfo: Information about the creation of this ad. This is a
    // read-only field.
    CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`

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

    // CreativeRotation: Creative rotation for this ad. Applicable when type
    // is AD_SERVING_DEFAULT_AD, AD_SERVING_STANDARD_AD, or
    // AD_SERVING_TRACKING. When type is AD_SERVING_DEFAULT_AD, this field
    // should have exactly one creativeAssignment.
    CreativeRotation *CreativeRotation `json:"creativeRotation,omitempty"`

    // DayPartTargeting: Time and day targeting information for this ad.
    // This field must be left blank if the ad is using a targeting
    // template. Applicable when type is AD_SERVING_STANDARD_AD.
    DayPartTargeting *DayPartTargeting `json:"dayPartTargeting,omitempty"`

    // DefaultClickThroughEventTagProperties: Default click-through event
    // tag properties for this ad.
    DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`

    // DeliverySchedule: Delivery schedule information for this ad.
    // Applicable when type is AD_SERVING_STANDARD_AD or
    // AD_SERVING_TRACKING. This field along with subfields priority and
    // impressionRatio are required on insertion when type is
    // AD_SERVING_STANDARD_AD.
    DeliverySchedule *DeliverySchedule `json:"deliverySchedule,omitempty"`

    // DynamicClickTracker: Whether this ad is a dynamic click tracker.
    // Applicable when type is AD_SERVING_CLICK_TRACKER. This is a required
    // field on insert, and is read-only after insert.
    DynamicClickTracker bool `json:"dynamicClickTracker,omitempty"`

    // EndTime: Date and time that this ad should stop serving. Must be
    // later than the start time. This is a required field on insertion.
    EndTime string `json:"endTime,omitempty"`

    // EventTagOverrides: Event tag overrides for this ad.
    EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`

    // GeoTargeting: Geographical targeting information for this ad. This
    // field must be left blank if the ad is using a targeting template.
    // Applicable when type is AD_SERVING_STANDARD_AD.
    GeoTargeting *GeoTargeting `json:"geoTargeting,omitempty"`

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

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

    // KeyValueTargetingExpression: Key-value targeting information for this
    // ad. This field must be left blank if the ad is using a targeting
    // template. Applicable when type is AD_SERVING_STANDARD_AD.
    KeyValueTargetingExpression *KeyValueTargetingExpression `json:"keyValueTargetingExpression,omitempty"`

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

    // LanguageTargeting: Language targeting information for this ad. This
    // field must be left blank if the ad is using a targeting template.
    // Applicable when type is AD_SERVING_STANDARD_AD.
    LanguageTargeting *LanguageTargeting `json:"languageTargeting,omitempty"`

    // LastModifiedInfo: Information about the most recent modification of
    // this ad. This is a read-only field.
    LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`

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

    // PlacementAssignments: Placement assignments for this ad.
    PlacementAssignments []*PlacementAssignment `json:"placementAssignments,omitempty"`

    // RemarketingListExpression: Remarketing list targeting expression for
    // this ad. This field must be left blank if the ad is using a targeting
    // template. Applicable when type is AD_SERVING_STANDARD_AD.
    RemarketingListExpression *ListTargetingExpression `json:"remarketingListExpression,omitempty"`

    // Size: Size of this ad. Applicable when type is AD_SERVING_DEFAULT_AD.
    Size *Size `json:"size,omitempty"`

    // SslCompliant: Whether this ad is ssl compliant. This is a read-only
    // field that is auto-generated when the ad is inserted or updated.
    SslCompliant bool `json:"sslCompliant,omitempty"`

    // SslRequired: Whether this ad requires ssl. This is a read-only field
    // that is auto-generated when the ad is inserted or updated.
    SslRequired bool `json:"sslRequired,omitempty"`

    // StartTime: Date and time that this ad should start serving. If
    // creating an ad, this field must be a time in the future. This is a
    // required field on insertion.
    StartTime string `json:"startTime,omitempty"`

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

    // TargetingTemplateId: Targeting template ID, used to apply
    // preconfigured targeting information to this ad. This cannot be set
    // while any of dayPartTargeting, geoTargeting,
    // keyValueTargetingExpression, languageTargeting,
    // remarketingListExpression, or technologyTargeting are set. Applicable
    // when type is AD_SERVING_STANDARD_AD.
    TargetingTemplateId int64 `json:"targetingTemplateId,omitempty,string"`

    // TechnologyTargeting: Technology platform targeting information for
    // this ad. This field must be left blank if the ad is using a targeting
    // template. Applicable when type is AD_SERVING_STANDARD_AD.
    TechnologyTargeting *TechnologyTargeting `json:"technologyTargeting,omitempty"`

    // Type: Type of ad. This is a required field on insertion. Note that
    // default ads (AD_SERVING_DEFAULT_AD) cannot be created directly (see
    // Creative resource).
    //
    // Possible values:
    //   "AD_SERVING_CLICK_TRACKER"
    //   "AD_SERVING_DEFAULT_AD"
    //   "AD_SERVING_STANDARD_AD"
    //   "AD_SERVING_TRACKING"
    Type string `json:"type,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Ad: Contains properties of a Campaign Manager ad.

func (*Ad) MarshalJSON Uses

func (s *Ad) MarshalJSON() ([]byte, error)

type AdBlockingConfiguration Uses

type AdBlockingConfiguration struct {
    // ClickThroughUrl: Click-through URL used by brand-neutral ads. This is
    // a required field when overrideClickThroughUrl is set to true.
    ClickThroughUrl string `json:"clickThroughUrl,omitempty"`

    // CreativeBundleId: ID of a creative bundle to use for this campaign.
    // If set, brand-neutral ads will select creatives from this bundle.
    // Otherwise, a default transparent pixel will be used.
    CreativeBundleId int64 `json:"creativeBundleId,omitempty,string"`

    // Enabled: Whether this campaign has enabled ad blocking. When true, ad
    // blocking is enabled for placements in the campaign, but this may be
    // overridden by site and placement settings. When false, ad blocking is
    // disabled for all placements under the campaign, regardless of site
    // and placement settings.
    Enabled bool `json:"enabled,omitempty"`

    // OverrideClickThroughUrl: Whether the brand-neutral ad's click-through
    // URL comes from the campaign's creative bundle or the override URL.
    // Must be set to true if ad blocking is enabled and no creative bundle
    // is configured.
    OverrideClickThroughUrl bool `json:"overrideClickThroughUrl,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClickThroughUrl") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AdBlockingConfiguration: Campaign ad blocking settings.

func (*AdBlockingConfiguration) MarshalJSON Uses

func (s *AdBlockingConfiguration) MarshalJSON() ([]byte, error)

type AdSlot Uses

type AdSlot struct {
    // Comment: Comment for this ad slot.
    Comment string `json:"comment,omitempty"`

    // Compatibility: Ad slot compatibility. DISPLAY and
    // DISPLAY_INTERSTITIAL refer to rendering either on desktop, mobile
    // devices or in mobile apps for regular or interstitial ads
    // respectively. APP and APP_INTERSTITIAL are for rendering in mobile
    // apps. IN_STREAM_VIDEO refers to rendering in in-stream video ads
    // developed with the VAST standard.
    //
    // Possible values:
    //   "APP"
    //   "APP_INTERSTITIAL"
    //   "DISPLAY"
    //   "DISPLAY_INTERSTITIAL"
    //   "IN_STREAM_AUDIO"
    //   "IN_STREAM_VIDEO"
    Compatibility string `json:"compatibility,omitempty"`

    // Height: Height of this ad slot.
    Height int64 `json:"height,omitempty,string"`

    // LinkedPlacementId: ID of the placement from an external platform that
    // is linked to this ad slot.
    LinkedPlacementId int64 `json:"linkedPlacementId,omitempty,string"`

    // Name: Name of this ad slot.
    Name string `json:"name,omitempty"`

    // PaymentSourceType: Payment source type of this ad slot.
    //
    // Possible values:
    //   "PLANNING_PAYMENT_SOURCE_TYPE_AGENCY_PAID"
    //   "PLANNING_PAYMENT_SOURCE_TYPE_PUBLISHER_PAID"
    PaymentSourceType string `json:"paymentSourceType,omitempty"`

    // Primary: Primary ad slot of a roadblock inventory item.
    Primary bool `json:"primary,omitempty"`

    // Width: Width of this ad slot.
    Width int64 `json:"width,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "Comment") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Comment") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AdSlot: Ad Slot

func (*AdSlot) MarshalJSON Uses

func (s *AdSlot) MarshalJSON() ([]byte, error)

type AdsGetCall Uses

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

func (*AdsGetCall) Context Uses

func (c *AdsGetCall) Context(ctx context.Context) *AdsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdsGetCall) Do Uses

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

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

func (*AdsGetCall) Fields Uses

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

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

func (*AdsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdsGetCall) IfNoneMatch Uses

func (c *AdsGetCall) IfNoneMatch(entityTag string) *AdsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AdsInsertCall Uses

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

func (*AdsInsertCall) Context Uses

func (c *AdsInsertCall) Context(ctx context.Context) *AdsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdsInsertCall) Do Uses

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

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

func (*AdsInsertCall) Fields Uses

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

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

func (*AdsInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdsListCall Uses

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

func (*AdsListCall) Active Uses

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

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

func (*AdsListCall) AdvertiserId Uses

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

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

func (*AdsListCall) Archived Uses

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

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

func (*AdsListCall) AudienceSegmentIds Uses

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

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

func (*AdsListCall) CampaignIds Uses

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

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

func (*AdsListCall) Compatibility Uses

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

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

Possible values:

"APP"
"APP_INTERSTITIAL"
"DISPLAY"
"DISPLAY_INTERSTITIAL"
"IN_STREAM_AUDIO"
"IN_STREAM_VIDEO"

func (*AdsListCall) Context Uses

func (c *AdsListCall) Context(ctx context.Context) *AdsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdsListCall) CreativeIds Uses

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

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

func (*AdsListCall) CreativeOptimizationConfigurationIds Uses

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

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

func (*AdsListCall) Do Uses

func (c *AdsListCall) Do(opts ...googleapi.CallOption) (*AdsListResponse, error)

Do executes the "dfareporting.ads.list" call. Exactly one of *AdsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdsListCall) DynamicClickTracker Uses

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

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

func (*AdsListCall) Fields Uses

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

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

func (*AdsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdsListCall) Ids Uses

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

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

func (*AdsListCall) IfNoneMatch Uses

func (c *AdsListCall) IfNoneMatch(entityTag string) *AdsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AdsListCall) LandingPageIds Uses

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

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

func (*AdsListCall) MaxResults Uses

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

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

func (*AdsListCall) OverriddenEventTagId Uses

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

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

func (*AdsListCall) PageToken Uses

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

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

func (*AdsListCall) Pages Uses

func (c *AdsListCall) Pages(ctx context.Context, f func(*AdsListResponse) 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 (*AdsListCall) PlacementIds Uses

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

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

func (*AdsListCall) RemarketingListIds Uses

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

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

func (*AdsListCall) SearchString Uses

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

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

func (*AdsListCall) SizeIds Uses

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

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

func (*AdsListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*AdsListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

func (*AdsListCall) SslCompliant Uses

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

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

func (*AdsListCall) SslRequired Uses

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

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

func (*AdsListCall) Type Uses

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

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

Possible values:

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

type AdsListResponse Uses

type AdsListResponse struct {
    // Ads: Ad collection.
    Ads []*Ad `json:"ads,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Ads") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Ads") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AdsListResponse: Ad List Response

func (*AdsListResponse) MarshalJSON Uses

func (s *AdsListResponse) MarshalJSON() ([]byte, error)

type AdsPatchCall Uses

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

func (*AdsPatchCall) Context Uses

func (c *AdsPatchCall) Context(ctx context.Context) *AdsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdsPatchCall) Do Uses

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

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

func (*AdsPatchCall) Fields Uses

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

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

func (*AdsPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdsService Uses

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

func NewAdsService Uses

func NewAdsService(s *Service) *AdsService

func (*AdsService) Get Uses

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

Get: Gets one ad by ID.

func (*AdsService) Insert Uses

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

Insert: Inserts a new ad.

func (*AdsService) List Uses

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

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

func (*AdsService) Patch Uses

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

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

func (*AdsService) Update Uses

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

Update: Updates an existing ad.

type AdsUpdateCall Uses

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

func (*AdsUpdateCall) Context Uses

func (c *AdsUpdateCall) Context(ctx context.Context) *AdsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdsUpdateCall) Do Uses

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

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

func (*AdsUpdateCall) Fields Uses

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

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

func (*AdsUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Advertiser Uses

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

    // AdvertiserGroupId: ID of the advertiser group this advertiser belongs
    // to. You can group advertisers for reporting purposes, allowing you to
    // see aggregated information for all advertisers in each group.
    AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`

    // ClickThroughUrlSuffix: Suffix added to click-through URL of ad
    // creative associations under this advertiser. Must be less than 129
    // characters long.
    ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`

    // DefaultClickThroughEventTagId: ID of the click-through event tag to
    // apply by default to the landing pages of this advertiser's campaigns.
    DefaultClickThroughEventTagId int64 `json:"defaultClickThroughEventTagId,omitempty,string"`

    // DefaultEmail: Default email address used in sender field for tag
    // emails.
    DefaultEmail string `json:"defaultEmail,omitempty"`

    // FloodlightConfigurationId: Floodlight configuration ID of this
    // advertiser. The floodlight configuration ID will be created
    // automatically, so on insert this field should be left blank. This
    // field can be set to another advertiser's floodlight configuration ID
    // in order to share that advertiser's floodlight configuration with
    // this advertiser, so long as:
    // - This advertiser's original floodlight configuration is not already
    // associated with floodlight activities or floodlight activity groups.
    //
    // - This advertiser's original floodlight configuration is not already
    // shared with another advertiser.
    FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`

    // FloodlightConfigurationIdDimensionValue: Dimension value for the ID
    // of the floodlight configuration. This is a read-only, auto-generated
    // field.
    FloodlightConfigurationIdDimensionValue *DimensionValue `json:"floodlightConfigurationIdDimensionValue,omitempty"`

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

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

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

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

    // OriginalFloodlightConfigurationId: Original floodlight configuration
    // before any sharing occurred. Set the floodlightConfigurationId of
    // this advertiser to originalFloodlightConfigurationId to unshare the
    // advertiser's current floodlight configuration. You cannot unshare an
    // advertiser's floodlight configuration if the shared configuration has
    // activities associated with any campaign or placement.
    OriginalFloodlightConfigurationId int64 `json:"originalFloodlightConfigurationId,omitempty,string"`

    // Status: Status of this advertiser.
    //
    // Possible values:
    //   "APPROVED"
    //   "ON_HOLD"
    Status string `json:"status,omitempty"`

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

    // Suspended: Suspension status of this advertiser.
    Suspended bool `json:"suspended,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Advertiser: Contains properties of a Campaign Manager advertiser.

func (*Advertiser) MarshalJSON Uses

func (s *Advertiser) MarshalJSON() ([]byte, error)

type AdvertiserGroup Uses

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

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

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*AdvertiserGroup) MarshalJSON Uses

func (s *AdvertiserGroup) MarshalJSON() ([]byte, error)

type AdvertiserGroupsDeleteCall Uses

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

func (*AdvertiserGroupsDeleteCall) Context Uses

func (c *AdvertiserGroupsDeleteCall) Context(ctx context.Context) *AdvertiserGroupsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserGroupsDeleteCall) Do Uses

func (c *AdvertiserGroupsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*AdvertiserGroupsDeleteCall) Fields Uses

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

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

func (*AdvertiserGroupsDeleteCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertiserGroupsGetCall Uses

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

func (*AdvertiserGroupsGetCall) Context Uses

func (c *AdvertiserGroupsGetCall) Context(ctx context.Context) *AdvertiserGroupsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserGroupsGetCall) Do Uses

func (c *AdvertiserGroupsGetCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error)

Do executes the "dfareporting.advertiserGroups.get" call. Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertiserGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserGroupsGetCall) Fields Uses

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

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

func (*AdvertiserGroupsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdvertiserGroupsGetCall) IfNoneMatch Uses

func (c *AdvertiserGroupsGetCall) IfNoneMatch(entityTag string) *AdvertiserGroupsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AdvertiserGroupsInsertCall Uses

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

func (*AdvertiserGroupsInsertCall) Context Uses

func (c *AdvertiserGroupsInsertCall) Context(ctx context.Context) *AdvertiserGroupsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserGroupsInsertCall) Do Uses

func (c *AdvertiserGroupsInsertCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error)

Do executes the "dfareporting.advertiserGroups.insert" call. Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertiserGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserGroupsInsertCall) Fields Uses

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

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

func (*AdvertiserGroupsInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertiserGroupsListCall Uses

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

func (*AdvertiserGroupsListCall) Context Uses

func (c *AdvertiserGroupsListCall) Context(ctx context.Context) *AdvertiserGroupsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserGroupsListCall) Do Uses

func (c *AdvertiserGroupsListCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroupsListResponse, error)

Do executes the "dfareporting.advertiserGroups.list" call. Exactly one of *AdvertiserGroupsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertiserGroupsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserGroupsListCall) Fields Uses

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

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

func (*AdvertiserGroupsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdvertiserGroupsListCall) Ids Uses

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

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

func (*AdvertiserGroupsListCall) IfNoneMatch Uses

func (c *AdvertiserGroupsListCall) IfNoneMatch(entityTag string) *AdvertiserGroupsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AdvertiserGroupsListCall) MaxResults Uses

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

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

func (*AdvertiserGroupsListCall) PageToken Uses

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

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

func (*AdvertiserGroupsListCall) Pages Uses

func (c *AdvertiserGroupsListCall) Pages(ctx context.Context, f func(*AdvertiserGroupsListResponse) 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 (*AdvertiserGroupsListCall) SearchString Uses

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

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

func (*AdvertiserGroupsListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*AdvertiserGroupsListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

type AdvertiserGroupsListResponse Uses

type AdvertiserGroupsListResponse struct {
    // AdvertiserGroups: Advertiser group collection.
    AdvertiserGroups []*AdvertiserGroup `json:"advertiserGroups,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AdvertiserGroups") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AdvertiserGroups") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AdvertiserGroupsListResponse: Advertiser Group List Response

func (*AdvertiserGroupsListResponse) MarshalJSON Uses

func (s *AdvertiserGroupsListResponse) MarshalJSON() ([]byte, error)

type AdvertiserGroupsPatchCall Uses

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

func (*AdvertiserGroupsPatchCall) Context Uses

func (c *AdvertiserGroupsPatchCall) Context(ctx context.Context) *AdvertiserGroupsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserGroupsPatchCall) Do Uses

func (c *AdvertiserGroupsPatchCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error)

Do executes the "dfareporting.advertiserGroups.patch" call. Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertiserGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserGroupsPatchCall) Fields Uses

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

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

func (*AdvertiserGroupsPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertiserGroupsService Uses

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

func NewAdvertiserGroupsService Uses

func NewAdvertiserGroupsService(s *Service) *AdvertiserGroupsService

func (*AdvertiserGroupsService) Delete Uses

func (r *AdvertiserGroupsService) Delete(profileId int64, id int64) *AdvertiserGroupsDeleteCall

Delete: Deletes an existing advertiser group.

func (*AdvertiserGroupsService) Get Uses

func (r *AdvertiserGroupsService) Get(profileId int64, id int64) *AdvertiserGroupsGetCall

Get: Gets one advertiser group by ID.

func (*AdvertiserGroupsService) Insert Uses

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

Insert: Inserts a new advertiser group.

func (*AdvertiserGroupsService) List Uses

func (r *AdvertiserGroupsService) List(profileId int64) *AdvertiserGroupsListCall

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

func (*AdvertiserGroupsService) Patch Uses

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

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

func (*AdvertiserGroupsService) Update Uses

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

Update: Updates an existing advertiser group.

type AdvertiserGroupsUpdateCall Uses

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

func (*AdvertiserGroupsUpdateCall) Context Uses

func (c *AdvertiserGroupsUpdateCall) Context(ctx context.Context) *AdvertiserGroupsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserGroupsUpdateCall) Do Uses

func (c *AdvertiserGroupsUpdateCall) Do(opts ...googleapi.CallOption) (*AdvertiserGroup, error)

Do executes the "dfareporting.advertiserGroups.update" call. Exactly one of *AdvertiserGroup or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertiserGroup.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserGroupsUpdateCall) Fields Uses

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

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

func (*AdvertiserGroupsUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertiserLandingPagesGetCall Uses

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

func (*AdvertiserLandingPagesGetCall) Context Uses

func (c *AdvertiserLandingPagesGetCall) Context(ctx context.Context) *AdvertiserLandingPagesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserLandingPagesGetCall) Do Uses

func (c *AdvertiserLandingPagesGetCall) Do(opts ...googleapi.CallOption) (*LandingPage, error)

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

func (*AdvertiserLandingPagesGetCall) Fields Uses

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

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

func (*AdvertiserLandingPagesGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdvertiserLandingPagesGetCall) IfNoneMatch Uses

func (c *AdvertiserLandingPagesGetCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AdvertiserLandingPagesInsertCall Uses

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

func (*AdvertiserLandingPagesInsertCall) Context Uses

func (c *AdvertiserLandingPagesInsertCall) Context(ctx context.Context) *AdvertiserLandingPagesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserLandingPagesInsertCall) Do Uses

func (c *AdvertiserLandingPagesInsertCall) Do(opts ...googleapi.CallOption) (*LandingPage, error)

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

func (*AdvertiserLandingPagesInsertCall) Fields Uses

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

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

func (*AdvertiserLandingPagesInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertiserLandingPagesListCall Uses

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

func (*AdvertiserLandingPagesListCall) AdvertiserIds Uses

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

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

func (*AdvertiserLandingPagesListCall) Archived Uses

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

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

func (*AdvertiserLandingPagesListCall) CampaignIds Uses

func (c *AdvertiserLandingPagesListCall) CampaignIds(campaignIds ...int64) *AdvertiserLandingPagesListCall

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

func (*AdvertiserLandingPagesListCall) Context Uses

func (c *AdvertiserLandingPagesListCall) Context(ctx context.Context) *AdvertiserLandingPagesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserLandingPagesListCall) Do Uses

func (c *AdvertiserLandingPagesListCall) Do(opts ...googleapi.CallOption) (*AdvertiserLandingPagesListResponse, error)

Do executes the "dfareporting.advertiserLandingPages.list" call. Exactly one of *AdvertiserLandingPagesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertiserLandingPagesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertiserLandingPagesListCall) Fields Uses

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

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

func (*AdvertiserLandingPagesListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdvertiserLandingPagesListCall) Ids Uses

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

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

func (*AdvertiserLandingPagesListCall) IfNoneMatch Uses

func (c *AdvertiserLandingPagesListCall) IfNoneMatch(entityTag string) *AdvertiserLandingPagesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AdvertiserLandingPagesListCall) MaxResults Uses

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

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

func (*AdvertiserLandingPagesListCall) PageToken Uses

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

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

func (*AdvertiserLandingPagesListCall) Pages Uses

func (c *AdvertiserLandingPagesListCall) Pages(ctx context.Context, f func(*AdvertiserLandingPagesListResponse) 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 (*AdvertiserLandingPagesListCall) SearchString Uses

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

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

func (*AdvertiserLandingPagesListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*AdvertiserLandingPagesListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

func (*AdvertiserLandingPagesListCall) SubaccountId Uses

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

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

type AdvertiserLandingPagesListResponse Uses

type AdvertiserLandingPagesListResponse struct {
    // Kind: Identifies what kind of resource this is. Value: the fixed
    // string "dfareporting#advertiserLandingPagesListResponse".
    Kind string `json:"kind,omitempty"`

    // LandingPages: Landing page collection
    LandingPages []*LandingPage `json:"landingPages,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Kind") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Kind") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AdvertiserLandingPagesListResponse: Landing Page List Response

func (*AdvertiserLandingPagesListResponse) MarshalJSON Uses

func (s *AdvertiserLandingPagesListResponse) MarshalJSON() ([]byte, error)

type AdvertiserLandingPagesPatchCall Uses

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

func (*AdvertiserLandingPagesPatchCall) Context Uses

func (c *AdvertiserLandingPagesPatchCall) Context(ctx context.Context) *AdvertiserLandingPagesPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserLandingPagesPatchCall) Do Uses

func (c *AdvertiserLandingPagesPatchCall) Do(opts ...googleapi.CallOption) (*LandingPage, error)

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

func (*AdvertiserLandingPagesPatchCall) Fields Uses

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

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

func (*AdvertiserLandingPagesPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertiserLandingPagesService Uses

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

func NewAdvertiserLandingPagesService Uses

func NewAdvertiserLandingPagesService(s *Service) *AdvertiserLandingPagesService

func (*AdvertiserLandingPagesService) Get Uses

func (r *AdvertiserLandingPagesService) Get(profileId int64, id int64) *AdvertiserLandingPagesGetCall

Get: Gets one landing page by ID.

func (*AdvertiserLandingPagesService) Insert Uses

func (r *AdvertiserLandingPagesService) Insert(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesInsertCall

Insert: Inserts a new landing page.

func (*AdvertiserLandingPagesService) List Uses

func (r *AdvertiserLandingPagesService) List(profileId int64) *AdvertiserLandingPagesListCall

List: Retrieves a list of landing pages.

func (*AdvertiserLandingPagesService) Patch Uses

func (r *AdvertiserLandingPagesService) Patch(profileId int64, id int64, landingpage *LandingPage) *AdvertiserLandingPagesPatchCall

Patch: Updates an existing landing page. This method supports patch semantics.

func (*AdvertiserLandingPagesService) Update Uses

func (r *AdvertiserLandingPagesService) Update(profileId int64, landingpage *LandingPage) *AdvertiserLandingPagesUpdateCall

Update: Updates an existing landing page.

type AdvertiserLandingPagesUpdateCall Uses

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

func (*AdvertiserLandingPagesUpdateCall) Context Uses

func (c *AdvertiserLandingPagesUpdateCall) Context(ctx context.Context) *AdvertiserLandingPagesUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertiserLandingPagesUpdateCall) Do Uses

func (c *AdvertiserLandingPagesUpdateCall) Do(opts ...googleapi.CallOption) (*LandingPage, error)

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

func (*AdvertiserLandingPagesUpdateCall) Fields Uses

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

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

func (*AdvertiserLandingPagesUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertisersGetCall Uses

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

func (*AdvertisersGetCall) Context Uses

func (c *AdvertisersGetCall) Context(ctx context.Context) *AdvertisersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertisersGetCall) Do Uses

func (c *AdvertisersGetCall) Do(opts ...googleapi.CallOption) (*Advertiser, error)

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

func (*AdvertisersGetCall) Fields Uses

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

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

func (*AdvertisersGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdvertisersGetCall) IfNoneMatch Uses

func (c *AdvertisersGetCall) IfNoneMatch(entityTag string) *AdvertisersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type AdvertisersInsertCall Uses

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

func (*AdvertisersInsertCall) Context Uses

func (c *AdvertisersInsertCall) Context(ctx context.Context) *AdvertisersInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertisersInsertCall) Do Uses

func (c *AdvertisersInsertCall) Do(opts ...googleapi.CallOption) (*Advertiser, error)

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

func (*AdvertisersInsertCall) Fields Uses

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

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

func (*AdvertisersInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertisersListCall Uses

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

func (*AdvertisersListCall) AdvertiserGroupIds Uses

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

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

func (*AdvertisersListCall) Context Uses

func (c *AdvertisersListCall) Context(ctx context.Context) *AdvertisersListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertisersListCall) Do Uses

func (c *AdvertisersListCall) Do(opts ...googleapi.CallOption) (*AdvertisersListResponse, error)

Do executes the "dfareporting.advertisers.list" call. Exactly one of *AdvertisersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AdvertisersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*AdvertisersListCall) Fields Uses

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

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

func (*AdvertisersListCall) FloodlightConfigurationIds Uses

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

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

func (*AdvertisersListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AdvertisersListCall) Ids Uses

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

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

func (*AdvertisersListCall) IfNoneMatch Uses

func (c *AdvertisersListCall) IfNoneMatch(entityTag string) *AdvertisersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AdvertisersListCall) IncludeAdvertisersWithoutGroupsOnly Uses

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

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

func (*AdvertisersListCall) MaxResults Uses

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

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

func (*AdvertisersListCall) OnlyParent Uses

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

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

func (*AdvertisersListCall) PageToken Uses

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

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

func (*AdvertisersListCall) Pages Uses

func (c *AdvertisersListCall) Pages(ctx context.Context, f func(*AdvertisersListResponse) 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 (*AdvertisersListCall) SearchString Uses

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

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

func (*AdvertisersListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*AdvertisersListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

func (*AdvertisersListCall) Status Uses

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

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

Possible values:

"APPROVED"
"ON_HOLD"

func (*AdvertisersListCall) SubaccountId Uses

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

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

type AdvertisersListResponse Uses

type AdvertisersListResponse struct {
    // Advertisers: Advertiser collection.
    Advertisers []*Advertiser `json:"advertisers,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Advertisers") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Advertisers") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AdvertisersListResponse: Advertiser List Response

func (*AdvertisersListResponse) MarshalJSON Uses

func (s *AdvertisersListResponse) MarshalJSON() ([]byte, error)

type AdvertisersPatchCall Uses

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

func (*AdvertisersPatchCall) Context Uses

func (c *AdvertisersPatchCall) Context(ctx context.Context) *AdvertisersPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertisersPatchCall) Do Uses

func (c *AdvertisersPatchCall) Do(opts ...googleapi.CallOption) (*Advertiser, error)

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

func (*AdvertisersPatchCall) Fields Uses

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

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

func (*AdvertisersPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AdvertisersService Uses

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

func NewAdvertisersService Uses

func NewAdvertisersService(s *Service) *AdvertisersService

func (*AdvertisersService) Get Uses

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

Get: Gets one advertiser by ID.

func (*AdvertisersService) Insert Uses

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

Insert: Inserts a new advertiser.

func (*AdvertisersService) List Uses

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

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

func (*AdvertisersService) Patch Uses

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

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

func (*AdvertisersService) Update Uses

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

Update: Updates an existing advertiser.

type AdvertisersUpdateCall Uses

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

func (*AdvertisersUpdateCall) Context Uses

func (c *AdvertisersUpdateCall) Context(ctx context.Context) *AdvertisersUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AdvertisersUpdateCall) Do Uses

func (c *AdvertisersUpdateCall) Do(opts ...googleapi.CallOption) (*Advertiser, error)

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

func (*AdvertisersUpdateCall) Fields Uses

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

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

func (*AdvertisersUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AudienceSegment Uses

type AudienceSegment struct {
    // Allocation: Weight allocated to this segment. The weight assigned
    // will be understood in proportion to the weights assigned to other
    // segments in the same segment group. Acceptable values are 1 to 1000,
    // inclusive.
    Allocation int64 `json:"allocation,omitempty"`

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

    // Name: Name of this audience segment. This is a required field and
    // must be less than 65 characters long.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Allocation") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Allocation") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AudienceSegment: Audience Segment.

func (*AudienceSegment) MarshalJSON Uses

func (s *AudienceSegment) MarshalJSON() ([]byte, error)

type AudienceSegmentGroup Uses

type AudienceSegmentGroup struct {
    // AudienceSegments: Audience segments assigned to this group. The
    // number of segments must be between 2 and 100.
    AudienceSegments []*AudienceSegment `json:"audienceSegments,omitempty"`

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

    // Name: Name of this audience segment group. This is a required field
    // and must be less than 65 characters long.
    Name string `json:"name,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AudienceSegments") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AudienceSegments") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

AudienceSegmentGroup: Audience Segment Group.

func (*AudienceSegmentGroup) MarshalJSON Uses

func (s *AudienceSegmentGroup) MarshalJSON() ([]byte, error)

type Browser Uses

type Browser struct {
    // BrowserVersionId: ID referring to this grouping of browser and
    // version numbers. This is the ID used for targeting.
    BrowserVersionId int64 `json:"browserVersionId,omitempty,string"`

    // DartId: DART ID of this browser. This is the ID used when generating
    // reports.
    DartId int64 `json:"dartId,omitempty,string"`

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

    // MajorVersion: Major version number (leftmost number) of this browser.
    // For example, for Chrome 5.0.376.86 beta, this field should be set to
    // 5. An asterisk (*) may be used to target any version number, and a
    // question mark (?) may be used to target cases where the version
    // number cannot be identified. For example, Chrome *.* targets any
    // version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets
    // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad
    // server knows the browser is Firefox but can't tell which version it
    // is.
    MajorVersion string `json:"majorVersion,omitempty"`

    // MinorVersion: Minor version number (number after first dot on left)
    // of this browser. For example, for Chrome 5.0.375.86 beta, this field
    // should be set to 0. An asterisk (*) may be used to target any version
    // number, and a question mark (?) may be used to target cases where the
    // version number cannot be identified. For example, Chrome *.* targets
    // any version of Chrome: 1.2, 2.5, 3.5, and so on. Chrome 3.* targets
    // Chrome 3.1, 3.5, but not 4.0. Firefox ?.? targets cases where the ad
    // server knows the browser is Firefox but can't tell which version it
    // is.
    MinorVersion string `json:"minorVersion,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "BrowserVersionId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "BrowserVersionId") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

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

func (*Browser) MarshalJSON Uses

func (s *Browser) MarshalJSON() ([]byte, error)

type BrowsersListCall Uses

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

func (*BrowsersListCall) Context Uses

func (c *BrowsersListCall) Context(ctx context.Context) *BrowsersListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*BrowsersListCall) Do Uses

func (c *BrowsersListCall) Do(opts ...googleapi.CallOption) (*BrowsersListResponse, error)

Do executes the "dfareporting.browsers.list" call. Exactly one of *BrowsersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *BrowsersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*BrowsersListCall) Fields Uses

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

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

func (*BrowsersListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*BrowsersListCall) IfNoneMatch Uses

func (c *BrowsersListCall) IfNoneMatch(entityTag string) *BrowsersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type BrowsersListResponse Uses

type BrowsersListResponse struct {
    // Browsers: Browser collection.
    Browsers []*Browser `json:"browsers,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Browsers") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Browsers") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

BrowsersListResponse: Browser List Response

func (*BrowsersListResponse) MarshalJSON Uses

func (s *BrowsersListResponse) MarshalJSON() ([]byte, error)

type BrowsersService Uses

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

func NewBrowsersService Uses

func NewBrowsersService(s *Service) *BrowsersService

func (*BrowsersService) List Uses

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

List: Retrieves a list of browsers.

type Campaign Uses

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

    // AdBlockingConfiguration: Ad blocking settings for this campaign.
    AdBlockingConfiguration *AdBlockingConfiguration `json:"adBlockingConfiguration,omitempty"`

    // AdditionalCreativeOptimizationConfigurations: Additional creative
    // optimization configurations for the campaign.
    AdditionalCreativeOptimizationConfigurations []*CreativeOptimizationConfiguration `json:"additionalCreativeOptimizationConfigurations,omitempty"`

    // AdvertiserGroupId: Advertiser group ID of the associated advertiser.
    AdvertiserGroupId int64 `json:"advertiserGroupId,omitempty,string"`

    // AdvertiserId: Advertiser ID of this campaign. This is a required
    // field.
    AdvertiserId int64 `json:"advertiserId,omitempty,string"`

    // AdvertiserIdDimensionValue: Dimension value for the advertiser ID of
    // this campaign. This is a read-only, auto-generated field.
    AdvertiserIdDimensionValue *DimensionValue `json:"advertiserIdDimensionValue,omitempty"`

    // Archived: Whether this campaign has been archived.
    Archived bool `json:"archived,omitempty"`

    // AudienceSegmentGroups: Audience segment groups assigned to this
    // campaign. Cannot have more than 300 segment groups.
    AudienceSegmentGroups []*AudienceSegmentGroup `json:"audienceSegmentGroups,omitempty"`

    // BillingInvoiceCode: Billing invoice code included in the Campaign
    // Manager client billing invoices associated with the campaign.
    BillingInvoiceCode string `json:"billingInvoiceCode,omitempty"`

    // ClickThroughUrlSuffixProperties: Click-through URL suffix override
    // properties for this campaign.
    ClickThroughUrlSuffixProperties *ClickThroughUrlSuffixProperties `json:"clickThroughUrlSuffixProperties,omitempty"`

    // Comment: Arbitrary comments about this campaign. Must be less than
    // 256 characters long.
    Comment string `json:"comment,omitempty"`

    // CreateInfo: Information about the creation of this campaign. This is
    // a read-only field.
    CreateInfo *LastModifiedInfo `json:"createInfo,omitempty"`

    // CreativeGroupIds: List of creative group IDs that are assigned to the
    // campaign.
    CreativeGroupIds googleapi.Int64s `json:"creativeGroupIds,omitempty"`

    // CreativeOptimizationConfiguration: Creative optimization
    // configuration for the campaign.
    CreativeOptimizationConfiguration *CreativeOptimizationConfiguration `json:"creativeOptimizationConfiguration,omitempty"`

    // DefaultClickThroughEventTagProperties: Click-through event tag ID
    // override properties for this campaign.
    DefaultClickThroughEventTagProperties *DefaultClickThroughEventTagProperties `json:"defaultClickThroughEventTagProperties,omitempty"`

    // DefaultLandingPageId: The default landing page ID for this campaign.
    DefaultLandingPageId int64 `json:"defaultLandingPageId,omitempty,string"`

    // EndDate: Date on which the campaign will stop running. On insert, the
    // end date must be today or a future date. The end date must be later
    // than or be the same as the start date. If, for example, you set
    // 6/25/2015 as both the start and end dates, the effective campaign run
    // date is just that day only, 6/25/2015. The hours, minutes, and
    // seconds of the end date should not be set, as doing so will result in
    // an error. This is a required field.
    EndDate string `json:"endDate,omitempty"`

    // EventTagOverrides: Overrides that can be used to activate or
    // deactivate advertiser event tags.
    EventTagOverrides []*EventTagOverride `json:"eventTagOverrides,omitempty"`

    // ExternalId: External ID for this campaign.
    ExternalId string `json:"externalId,omitempty"`

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

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

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

    // LastModifiedInfo: Information about the most recent modification of
    // this campaign. This is a read-only field.
    LastModifiedInfo *LastModifiedInfo `json:"lastModifiedInfo,omitempty"`

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

    // NielsenOcrEnabled: Whether Nielsen reports are enabled for this
    // campaign.
    NielsenOcrEnabled bool `json:"nielsenOcrEnabled,omitempty"`

    // StartDate: Date on which the campaign starts running. The start date
    // can be any date. The hours, minutes, and seconds of the start date
    // should not be set, as doing so will result in an error. This is a
    // required field.
    StartDate string `json:"startDate,omitempty"`

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

    // TraffickerEmails: Campaign trafficker contact emails.
    TraffickerEmails []string `json:"traffickerEmails,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Campaign: Contains properties of a Campaign Manager campaign.

func (*Campaign) MarshalJSON Uses

func (s *Campaign) MarshalJSON() ([]byte, error)

type CampaignCreativeAssociation Uses

type CampaignCreativeAssociation struct {
    // CreativeId: ID of the creative associated with the campaign. This is
    // a required field.
    CreativeId int64 `json:"creativeId,omitempty,string"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "CreativeId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CreativeId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CampaignCreativeAssociation: Identifies a creative which has been associated with a given campaign.

func (*CampaignCreativeAssociation) MarshalJSON Uses

func (s *CampaignCreativeAssociation) MarshalJSON() ([]byte, error)

type CampaignCreativeAssociationsInsertCall Uses

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

func (*CampaignCreativeAssociationsInsertCall) Context Uses

func (c *CampaignCreativeAssociationsInsertCall) Context(ctx context.Context) *CampaignCreativeAssociationsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignCreativeAssociationsInsertCall) Do Uses

func (c *CampaignCreativeAssociationsInsertCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociation, error)

Do executes the "dfareporting.campaignCreativeAssociations.insert" call. Exactly one of *CampaignCreativeAssociation or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CampaignCreativeAssociation.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CampaignCreativeAssociationsInsertCall) Fields Uses

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

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

func (*CampaignCreativeAssociationsInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CampaignCreativeAssociationsListCall Uses

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

func (*CampaignCreativeAssociationsListCall) Context Uses

func (c *CampaignCreativeAssociationsListCall) Context(ctx context.Context) *CampaignCreativeAssociationsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignCreativeAssociationsListCall) Do Uses

func (c *CampaignCreativeAssociationsListCall) Do(opts ...googleapi.CallOption) (*CampaignCreativeAssociationsListResponse, error)

Do executes the "dfareporting.campaignCreativeAssociations.list" call. Exactly one of *CampaignCreativeAssociationsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CampaignCreativeAssociationsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CampaignCreativeAssociationsListCall) Fields Uses

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

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

func (*CampaignCreativeAssociationsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CampaignCreativeAssociationsListCall) IfNoneMatch Uses

func (c *CampaignCreativeAssociationsListCall) IfNoneMatch(entityTag string) *CampaignCreativeAssociationsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*CampaignCreativeAssociationsListCall) MaxResults Uses

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

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

func (*CampaignCreativeAssociationsListCall) PageToken Uses

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

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

func (*CampaignCreativeAssociationsListCall) Pages Uses

func (c *CampaignCreativeAssociationsListCall) Pages(ctx context.Context, f func(*CampaignCreativeAssociationsListResponse) 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 (*CampaignCreativeAssociationsListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

type CampaignCreativeAssociationsListResponse Uses

type CampaignCreativeAssociationsListResponse struct {
    // CampaignCreativeAssociations: Campaign creative association
    // collection
    CampaignCreativeAssociations []*CampaignCreativeAssociation `json:"campaignCreativeAssociations,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "CampaignCreativeAssociations") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "CampaignCreativeAssociations") to include in API requests with the
    // JSON null value. By default, fields with empty values are omitted
    // from API requests. However, any field with an empty value appearing
    // in NullFields will be sent to the server as null. It is an error if a
    // field in this list has a non-empty value. This may be used to include
    // null fields in Patch requests.
    NullFields []string `json:"-"`
}

CampaignCreativeAssociationsListResponse: Campaign Creative Association List Response

func (*CampaignCreativeAssociationsListResponse) MarshalJSON Uses

func (s *CampaignCreativeAssociationsListResponse) MarshalJSON() ([]byte, error)

type CampaignCreativeAssociationsService Uses

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

func NewCampaignCreativeAssociationsService Uses

func NewCampaignCreativeAssociationsService(s *Service) *CampaignCreativeAssociationsService

func (*CampaignCreativeAssociationsService) Insert Uses

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

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

func (*CampaignCreativeAssociationsService) List Uses

func (r *CampaignCreativeAssociationsService) List(profileId int64, campaignId int64) *CampaignCreativeAssociationsListCall

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

type CampaignsGetCall Uses

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

func (*CampaignsGetCall) Context Uses

func (c *CampaignsGetCall) Context(ctx context.Context) *CampaignsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignsGetCall) Do Uses

func (c *CampaignsGetCall) Do(opts ...googleapi.CallOption) (*Campaign, error)

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

func (*CampaignsGetCall) Fields Uses

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

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

func (*CampaignsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CampaignsGetCall) IfNoneMatch Uses

func (c *CampaignsGetCall) IfNoneMatch(entityTag string) *CampaignsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type CampaignsInsertCall Uses

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

func (*CampaignsInsertCall) Context Uses

func (c *CampaignsInsertCall) Context(ctx context.Context) *CampaignsInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignsInsertCall) Do Uses

func (c *CampaignsInsertCall) Do(opts ...googleapi.CallOption) (*Campaign, error)

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

func (*CampaignsInsertCall) Fields Uses

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

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

func (*CampaignsInsertCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CampaignsListCall Uses

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

func (*CampaignsListCall) AdvertiserGroupIds Uses

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

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

func (*CampaignsListCall) AdvertiserIds Uses

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

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

func (*CampaignsListCall) Archived Uses

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

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

func (*CampaignsListCall) AtLeastOneOptimizationActivity Uses

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

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

func (*CampaignsListCall) Context Uses

func (c *CampaignsListCall) Context(ctx context.Context) *CampaignsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignsListCall) Do Uses

func (c *CampaignsListCall) Do(opts ...googleapi.CallOption) (*CampaignsListResponse, error)

Do executes the "dfareporting.campaigns.list" call. Exactly one of *CampaignsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CampaignsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CampaignsListCall) ExcludedIds Uses

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

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

func (*CampaignsListCall) Fields Uses

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

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

func (*CampaignsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CampaignsListCall) Ids Uses

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

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

func (*CampaignsListCall) IfNoneMatch Uses

func (c *CampaignsListCall) IfNoneMatch(entityTag string) *CampaignsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*CampaignsListCall) MaxResults Uses

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

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

func (*CampaignsListCall) OverriddenEventTagId Uses

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

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

func (*CampaignsListCall) PageToken Uses

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

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

func (*CampaignsListCall) Pages Uses

func (c *CampaignsListCall) Pages(ctx context.Context, f func(*CampaignsListResponse) 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 (*CampaignsListCall) SearchString Uses

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

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

func (*CampaignsListCall) SortField Uses

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

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

Possible values:

"ID" (default)
"NAME"

func (*CampaignsListCall) SortOrder Uses

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

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

Possible values:

"ASCENDING" (default)
"DESCENDING"

func (*CampaignsListCall) SubaccountId Uses

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

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

type CampaignsListResponse Uses

type CampaignsListResponse struct {
    // Campaigns: Campaign collection.
    Campaigns []*Campaign `json:"campaigns,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Campaigns") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Campaigns") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CampaignsListResponse: Campaign List Response

func (*CampaignsListResponse) MarshalJSON Uses

func (s *CampaignsListResponse) MarshalJSON() ([]byte, error)

type CampaignsPatchCall Uses

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

func (*CampaignsPatchCall) Context Uses

func (c *CampaignsPatchCall) Context(ctx context.Context) *CampaignsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignsPatchCall) Do Uses

func (c *CampaignsPatchCall) Do(opts ...googleapi.CallOption) (*Campaign, error)

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

func (*CampaignsPatchCall) Fields Uses

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

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

func (*CampaignsPatchCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CampaignsService Uses

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

func NewCampaignsService Uses

func NewCampaignsService(s *Service) *CampaignsService

func (*CampaignsService) Get Uses

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

Get: Gets one campaign by ID.

func (*CampaignsService) Insert Uses

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

Insert: Inserts a new campaign.

func (*CampaignsService) List Uses

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

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

func (*CampaignsService) Patch Uses

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

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

func (*CampaignsService) Update Uses

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

Update: Updates an existing campaign.

type CampaignsUpdateCall Uses

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

func (*CampaignsUpdateCall) Context Uses

func (c *CampaignsUpdateCall) Context(ctx context.Context) *CampaignsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CampaignsUpdateCall) Do Uses

func (c *CampaignsUpdateCall) Do(opts ...googleapi.CallOption) (*Campaign, error)

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

func (*CampaignsUpdateCall) Fields Uses

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

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

func (*CampaignsUpdateCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ChangeLog Uses

type ChangeLog struct {
    // AccountId: Account ID of the modified object.
    AccountId int64 `json:"accountId,omitempty,string"`

    // Action: Action which caused the change.
    Action string `json:"action,omitempty"`

    // ChangeTime: Time when the object was modified.
    ChangeTime string `json:"changeTime,omitempty"`

    // FieldName: Field name of the object which changed.
    FieldName string `json:"fieldName,omitempty"`

    // Id: ID of this change log.
    Id  int64 `json:"id,omitempty,string"`

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

    // NewValue: New value of the object field.
    NewValue string `json:"newValue,omitempty"`

    // ObjectId: ID of the object of this change log. The object could be a
    // campaign, placement, ad, or other type.
    ObjectId int64 `json:"objectId,omitempty,string"`

    // ObjectType: Object type of the change log.
    ObjectType string `json:"objectType,omitempty"`

    // OldValue: Old value of the object field.
    OldValue string `json:"oldValue,omitempty"`

    // SubaccountId: Subaccount ID of the modified object.
    SubaccountId int64 `json:"subaccountId,omitempty,string"`

    // TransactionId: Transaction ID of this change log. When a single API
    // call results in many changes, each change will have a separate ID in
    // the change log but will share the same transactionId.
    TransactionId int64 `json:"transactionId,omitempty,string"`

    // UserProfileId: ID of the user who modified the object.
    UserProfileId int64 `json:"userProfileId,omitempty,string"`

    // UserProfileName: User profile name of the user who modified the
    // object.
    UserProfileName string `json:"userProfileName,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccountId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccountId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*ChangeLog) MarshalJSON Uses

func (s *ChangeLog) MarshalJSON() ([]byte, error)

type ChangeLogsGetCall Uses

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

func (*ChangeLogsGetCall) Context Uses

func (c *ChangeLogsGetCall) Context(ctx context.Context) *ChangeLogsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChangeLogsGetCall) Do Uses

func (c *ChangeLogsGetCall) Do(opts ...googleapi.CallOption) (*ChangeLog, error)

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

func (*ChangeLogsGetCall) Fields Uses

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

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

func (*ChangeLogsGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ChangeLogsGetCall) IfNoneMatch Uses

func (c *ChangeLogsGetCall) IfNoneMatch(entityTag string) *ChangeLogsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ChangeLogsListCall Uses

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

func (*ChangeLogsListCall) Action Uses

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

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

Possible values:

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

func (*ChangeLogsListCall) Context Uses

func (c *ChangeLogsListCall) Context(ctx context.Context) *ChangeLogsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChangeLogsListCall) Do Uses

func (c *ChangeLogsListCall) Do(opts ...googleapi.CallOption) (*ChangeLogsListResponse, error)

Do executes the "dfareporting.changeLogs.list" call. Exactly one of *ChangeLogsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ChangeLogsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ChangeLogsListCall) Fields Uses

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

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

func (*ChangeLogsListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ChangeLogsListCall) Ids Uses

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

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

func (*ChangeLogsListCall) IfNoneMatch Uses

func (c *ChangeLogsListCall) IfNoneMatch(entityTag string) *ChangeLogsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ChangeLogsListCall) MaxChangeTime Uses

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

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

func (*ChangeLogsListCall) MaxResults Uses

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

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

func (*ChangeLogsListCall) MinChangeTime Uses

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

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

func (*ChangeLogsListCall) ObjectIds Uses

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

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

func (*ChangeLogsListCall) ObjectType Uses

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

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

Possible values:

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

func (*ChangeLogsListCall) PageToken Uses

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

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

func (*ChangeLogsListCall) Pages Uses

func (c *ChangeLogsListCall) Pages(ctx context.Context, f func(*ChangeLogsListResponse) 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 (*ChangeLogsListCall) SearchString Uses

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

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

func (*ChangeLogsListCall) UserProfileIds Uses

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

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

type ChangeLogsListResponse Uses

type ChangeLogsListResponse struct {
    // ChangeLogs: Change log collection.
    ChangeLogs []*ChangeLog `json:"changeLogs,omitempty"`

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

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ChangeLogs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ChangeLogs") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ChangeLogsListResponse: Change Log List Response

func (*ChangeLogsListResponse) MarshalJSON Uses

func (s *ChangeLogsListResponse) MarshalJSON() ([]byte, error)

type ChangeLogsService Uses

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

func NewChangeLogsService Uses

func NewChangeLogsService(s *Service) *ChangeLogsService

func (*ChangeLogsService) Get Uses

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

Get: Gets one change log by ID.

func (*ChangeLogsService) List Uses

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

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

type CitiesListCall Uses

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

func (*CitiesListCall) Context Uses

func (c *CitiesListCall) Context(ctx context.Context) *CitiesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CitiesListCall) CountryDartIds Uses

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

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

func (*CitiesListCall) DartIds Uses

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

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

func (*CitiesListCall) Do Uses

func (c *CitiesListCall) Do(opts ...googleapi.CallOption) (*CitiesListResponse, error)

Do executes the "dfareporting.cities.list" call. Exactly one of *CitiesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CitiesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CitiesListCall) Fields Uses

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

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

func (*CitiesListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CitiesListCall) IfNoneMatch Uses

func (c *CitiesListCall) IfNoneMatch(entityTag string) *CitiesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*CitiesListCall) NamePrefix Uses

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

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

func (*CitiesListCall) RegionDartIds Uses

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

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

type CitiesListResponse Uses

type CitiesListResponse struct {
    // Cities: City collection.
    Cities []*City `json:"cities,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Cities") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Cities") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CitiesListResponse: City List Response

func (*CitiesListResponse) MarshalJSON Uses

func (s *CitiesListResponse) MarshalJSON() ([]byte, error)

type CitiesService Uses

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

func NewCitiesService Uses

func NewCitiesService(s *Service) *CitiesService

func (*CitiesService) List Uses

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

List: Retrieves a list of cities, possibly filtered.

type City Uses

type City struct {
    // CountryCode: Country code of the country to which this city belongs.
    CountryCode string `json:"countryCode,omitempty"`

    // CountryDartId: DART ID of the country to which this city belongs.
    CountryDartId int64 `json:"countryDartId,omitempty,string"`

    // DartId: DART ID of this city. This is the ID used for targeting and
    // generating reports.
    DartId int64 `json:"dartId,omitempty,string"`

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

    // MetroCode: Metro region code of the metro region (DMA) to which this
    // city belongs.
    MetroCode string `json:"metroCode,omitempty"`

    // MetroDmaId: ID of the metro region (DMA) to which this city belongs.
    MetroDmaId int64 `json:"metroDmaId,omitempty,string"`

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

    // RegionCode: Region code of the region to which this city belongs.
    RegionCode string `json:"regionCode,omitempty"`

    // RegionDartId: DART ID of the region to which this city belongs.
    RegionDartId int64 `json:"regionDartId,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "CountryCode") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CountryCode") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*City) MarshalJSON Uses

func (s *City) MarshalJSON() ([]byte, error)

type ClickTag Uses

type ClickTag struct {
    // ClickThroughUrl: Parameter value for the specified click tag. This
    // field contains a click-through url.
    ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"`

    // EventName: Advertiser event name associated with the click tag. This
    // field is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives.
    // Applicable to DISPLAY when the primary asset type is not HTML_IMAGE.
    EventName string `json:"eventName,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClickThroughUrl") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ClickTag: Creative Click Tag.

func (*ClickTag) MarshalJSON Uses

func (s *ClickTag) MarshalJSON() ([]byte, error)

type ClickThroughUrl Uses

type ClickThroughUrl struct {
    // ComputedClickThroughUrl: Read-only convenience field representing the
    // actual URL that will be used for this click-through. The URL is
    // computed as follows:
    // - If defaultLandingPage is enabled then the campaign's default
    // landing page URL is assigned to this field.
    // - If defaultLandingPage is not enabled and a landingPageId is
    // specified then that landing page's URL is assigned to this field.
    // - If neither of the above cases apply, then the customClickThroughUrl
    // is assigned to this field.
    ComputedClickThroughUrl string `json:"computedClickThroughUrl,omitempty"`

    // CustomClickThroughUrl: Custom click-through URL. Applicable if the
    // defaultLandingPage field is set to false and the landingPageId field
    // is left unset.
    CustomClickThroughUrl string `json:"customClickThroughUrl,omitempty"`

    // DefaultLandingPage: Whether the campaign default landing page is
    // used.
    DefaultLandingPage bool `json:"defaultLandingPage,omitempty"`

    // LandingPageId: ID of the landing page for the click-through URL.
    // Applicable if the defaultLandingPage field is set to false.
    LandingPageId int64 `json:"landingPageId,omitempty,string"`

    // ForceSendFields is a list of field names (e.g.
    // "ComputedClickThroughUrl") to unconditionally include in API
    // requests. By default, fields with empty values are omitted from API
    // requests. However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ComputedClickThroughUrl")
    // to include in API requests with the JSON null value. By default,
    // fields with empty values are omitted from API requests. However, any
    // field with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ClickThroughUrl: Click-through URL

func (*ClickThroughUrl) MarshalJSON Uses

func (s *ClickThroughUrl) MarshalJSON() ([]byte, error)

type ClickThroughUrlSuffixProperties Uses

type ClickThroughUrlSuffixProperties struct {
    // ClickThroughUrlSuffix: Click-through URL suffix to apply to all ads
    // in this entity's scope. Must be less than 128 characters long.
    ClickThroughUrlSuffix string `json:"clickThroughUrlSuffix,omitempty"`

    // OverrideInheritedSuffix: Whether this entity should override the
    // inherited click-through URL suffix with its own defined value.
    OverrideInheritedSuffix bool `json:"overrideInheritedSuffix,omitempty"`

    // ForceSendFields is a list of field names (e.g.
    // "ClickThroughUrlSuffix") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClickThroughUrlSuffix") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ClickThroughUrlSuffixProperties: Click Through URL Suffix settings.

func (*ClickThroughUrlSuffixProperties) MarshalJSON Uses

func (s *ClickThroughUrlSuffixProperties) MarshalJSON() ([]byte, error)

type CompanionClickThroughOverride Uses

type CompanionClickThroughOverride struct {
    // ClickThroughUrl: Click-through URL of this companion click-through
    // override.
    ClickThroughUrl *ClickThroughUrl `json:"clickThroughUrl,omitempty"`

    // CreativeId: ID of the creative for this companion click-through
    // override.
    CreativeId int64 `json:"creativeId,omitempty,string"`

    // ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ClickThroughUrl") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

CompanionClickThroughOverride: Companion Click-through override.

func (*CompanionClickThroughOverride) MarshalJSON Uses

func (s *CompanionClickThroughOverride) MarshalJSON() ([]byte, error)

type CompanionSetting Uses

type CompanionSetting struct {
    // CompanionsDisabled: Whether companions are disabled for this
    // placement.
    CompanionsDisabled bool `json:"companionsDisabled,omitempty"`

    // EnabledSizes: Whitelist of companion sizes to be served to this
    // placement. Set this list to null or empty to serve all companion
    // sizes.
    EnabledSizes []*Size `json:"enabledSizes,omitempty"`

    // ImageOnly: Whether to serve only static images as companions.
    ImageOnly bool `json:"imageOnly,omitempty"`

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

    // ForceSendFields is a list of field names (e.g. "CompanionsDisabled")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "CompanionsDisabled") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

CompanionSetting: Companion Settings

func (*CompanionSetting) MarshalJSON Uses

func (s *CompanionSetting) MarshalJSON() ([]byte, error)

type CompatibleFields Uses

type CompatibleFields struct {
    // CrossDimensionReachReportCompatibleFields: Contains items that are
    // compatible to be selected for a report of type
    // "CROSS_DIMENSION_REACH".
    CrossDimensionReachReportCompatibleFields *CrossDimensionReachReportCompatibleFields `json:"crossDimensionReachReportCompatibleFields,omitempty"`

    // FloodlightReportCompatibleFields: Contains items that are compatible
    // to be selected for a report of type "FLOODLIGHT".
    FloodlightReportCompatibleFields *FloodlightReportCompatibleFields `json:"floodlightReportCompatibleFields,omitempty"`

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

    // PathToConversionReportCompatibleFields: Contains items that are
    // compatible to be selected for a report of type "PATH_TO_CONVERSION".
    PathToConversionReportCompatibleFields *PathToConversionReportCompatibleFields `json:"pathToConversionReportCompatibleFields,omitempty"`

    // ReachReportCompatibleFields: Contains items that are compatible to be
    // selected for a report of type "REACH".
    ReachReportCompatibleFields *ReachReportCompatibleFields `json:"reachReportCompatibleFields,omitempty"`

    // ReportCompatibleFields: Contains items that are compatible to be
    // selected for a report of type "STANDARD".
    ReportCompatibleFields *ReportCompatibleFields `json:"reportCompatibleFields,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "CrossDimensionReachReportCompatibleFields") to unconditionally
    // include in API requests. By default, fields with empty values are
    // omitted from API requests. However, any non-pointer, non-interface
    // field appearing in ForceSendFields will be sent to the server
    // regardless of whether the field is empty or not. This may be used to
    // include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g.
    // "CrossDimensionReachReportCompatibleFields") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

CompatibleFields: Represents a response to the queryCompatibleFields method.

func (*CompatibleFields) MarshalJSON Uses

func (s *CompatibleFields) MarshalJSON() ([]byte, error)

type ConnectionType Uses

type ConnectionType struct {
    // Id: ID of this connection type.
    Id  int64 `json:"id,omitempty,string"`

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

    // Name: Name of this connection type.
    Name string `json:"name,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

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

func (*ConnectionType) MarshalJSON Uses

func (s *ConnectionType) MarshalJSON() ([]byte, error)

type ConnectionTypesGetCall Uses

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

func (*ConnectionTypesGetCall) Context Uses

func (c *ConnectionTypesGetCall) Context(ctx context.Context) *ConnectionTypesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ConnectionTypesGetCall) Do Uses

func (c *ConnectionTypesGetCall) Do(opts ...googleapi.CallOption) (*ConnectionType, error)

Do executes the "dfareporting.connectionTypes.get" call. Exactly one of *ConnectionType or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.

func (*ConnectionTypesGetCall) Fields Uses

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

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

func (*ConnectionTypesGetCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ConnectionTypesGetCall) IfNoneMatch Uses

func (c *ConnectionTypesGetCall) IfNoneMatch(entityTag string) *ConnectionTypesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ConnectionTypesListCall Uses

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

func (*ConnectionTypesListCall) Context Uses

func (c *ConnectionTypesListCall) Context(ctx context.Context) *ConnectionTypesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ConnectionTypesListCall) Do Uses

func (c *ConnectionTypesListCall) Do(opts ...googleapi.CallOption) (*ConnectionTypesListResponse, error)

Do executes the "dfareporting.connectionTypes.list" call. Exactly one of *ConnectionTypesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ConnectionTypesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ConnectionTypesListCall) Fields Uses

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

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

func (*ConnectionTypesListCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ConnectionTypesListCall) IfNoneMatch Uses

func (c *ConnectionTypesListCall) IfNoneMatch(entityTag string) *ConnectionTypesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type ConnectionTypesListResponse Uses

type ConnectionTypesListResponse struct {
    // ConnectionTypes: Collection of connection types such as broadband and
    // mobile.
    ConnectionTypes []*ConnectionType `json:"connectionTypes,omitempty"`

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

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ConnectionTypes") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ConnectionTypes") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ConnectionTypesListResponse: Connection Type List Response

func (*ConnectionTypesListResponse) MarshalJSON Uses

func (s *ConnectionTypesListResponse) MarshalJSON() ([]byte, error)

type ConnectionTypesService Uses

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

func NewConnectionTypesService Uses

func NewConnectionTypesService(s *Service) *ConnectionTypesService

func (*ConnectionTypesService) Get Uses

func (r *ConnectionTypesService) Get(profileId int64, id int64) *ConnectionTypesGetCall

Get: Gets one connection type by ID.

func (*ConnectionTypesService) List Uses

func (r *ConnectionTypesService) List(profileId int64) *ConnectionTypesListCall

List: Retrieves a list of connection types.

type ContentCategoriesDeleteCall Uses

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

func (*ContentCategoriesDeleteCall) Context Uses

func (c *ContentCategoriesDeleteCall) Context(ctx context.Context) *ContentCategoriesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ContentCategoriesDeleteCall) Do Uses

func (c *ContentCategoriesDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*ContentCategoriesDeleteCall) Fields Uses

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

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

func (*ContentCategoriesDeleteCall) Header Uses

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

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ContentCategoriesGetCall Uses

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

func (*ContentCategoriesGetCall) Context Uses

func (c *ContentCategoriesGetCall) Context(ctx context.Context) *ContentCategoriesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ContentCategoriesGetCall) Do Uses

func (c *ContentCategoriesGetCall) Do(opts ...googleapi.CallOption) (*