dfareporting
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package dfareporting provides access to the Campaign Manager 360 API.
For product documentation, see:https://developers.google.com/doubleclick-advertisers/
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/dfareporting/v3.5"...ctx := context.Background()dfareportingService, err := dfareporting.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
dfareportingService, err := dfareporting.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)dfareportingService, err := dfareporting.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type ClickTag
- type CreativeAssetId
- type CreativeAssetMetadata
- type CreativeClickThroughUrl
- type CreativeCustomEvent
- type DimensionValue
- type MediaService
- type MediaUploadCall
- func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall
- func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata, error)
- func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall
- func (c *MediaUploadCall) Header() http.Header
- func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall
- func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall
- func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCalldeprecated
- type OffsetPosition
- type PopupWindowProperties
- type Service
- type Size
Constants¶
const (// View and manage your DoubleClick Campaign Manager's (DCM) display ad// campaignsDfatraffickingScope = "https://www.googleapis.com/auth/dfatrafficking")
OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeClickTag¶
type ClickTag struct {// ClickThroughUrl: Parameter value for the specified click tag. This field// contains a click-through url.ClickThroughUrl *CreativeClickThroughUrl `json:"clickThroughUrl,omitempty"`// EventName: Advertiser event name associated with the click tag. This field// is used by DISPLAY_IMAGE_GALLERY and HTML5_BANNER creatives. Applicable to// DISPLAY when the primary asset type is not HTML_IMAGE.EventNamestring `json:"eventName,omitempty"`// Name: Parameter name for the specified click tag. For DISPLAY_IMAGE_GALLERY// creative assets, this field must match the value of the creative asset's// creativeAssetId.name field.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "ClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ClickThroughUrl") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ClickTag: Creative Click Tag.
func (ClickTag)MarshalJSON¶
typeCreativeAssetId¶
type CreativeAssetId struct {// Name: Name of the creative asset. This is a required field while inserting// an asset. After insertion, this assetIdentifier is used to identify the// uploaded asset. Characters in the name must be alphanumeric or one of the// following: ".-_ ". Spaces are allowed.Namestring `json:"name,omitempty"`// Type: Type of asset to upload. This is a required field. FLASH and IMAGE are// no longer supported for new uploads. All image assets should use HTML_IMAGE.//// Possible values:// "IMAGE"// "FLASH"// "VIDEO"// "HTML"// "HTML_IMAGE"// "AUDIO"Typestring `json:"type,omitempty"`// ForceSendFields is a list of field names (e.g. "Name") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Name") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CreativeAssetId: Creative Asset ID.
func (CreativeAssetId)MarshalJSON¶
func (sCreativeAssetId) MarshalJSON() ([]byte,error)
typeCreativeAssetMetadata¶
type CreativeAssetMetadata struct {// AssetIdentifier: ID of the creative asset. This is a required field.AssetIdentifier *CreativeAssetId `json:"assetIdentifier,omitempty"`// ClickTags: List of detected click tags for assets. This is a read-only,// auto-generated field. This field is empty for a rich media asset.ClickTags []*ClickTag `json:"clickTags,omitempty"`// CounterCustomEvents: List of counter events configured for the asset. This// is a read-only, auto-generated field and only applicable to a rich media// asset.CounterCustomEvents []*CreativeCustomEvent `json:"counterCustomEvents,omitempty"`// DetectedFeatures: List of feature dependencies for the creative asset that// are detected by Campaign Manager. Feature dependencies are features that a// browser must be able to support in order to render your HTML5 creative// correctly. This is a read-only, auto-generated field.//// Possible values:// "CSS_FONT_FACE"// "CSS_BACKGROUND_SIZE"// "CSS_BORDER_IMAGE"// "CSS_BORDER_RADIUS"// "CSS_BOX_SHADOW"// "CSS_FLEX_BOX"// "CSS_HSLA"// "CSS_MULTIPLE_BGS"// "CSS_OPACITY"// "CSS_RGBA"// "CSS_TEXT_SHADOW"// "CSS_ANIMATIONS"// "CSS_COLUMNS"// "CSS_GENERATED_CONTENT"// "CSS_GRADIENTS"// "CSS_REFLECTIONS"// "CSS_TRANSFORMS"// "CSS_TRANSFORMS3D"// "CSS_TRANSITIONS"// "APPLICATION_CACHE"// "CANVAS"// "CANVAS_TEXT"// "DRAG_AND_DROP"// "HASH_CHANGE"// "HISTORY"// "AUDIO"// "VIDEO"// "INDEXED_DB"// "INPUT_ATTR_AUTOCOMPLETE"// "INPUT_ATTR_AUTOFOCUS"// "INPUT_ATTR_LIST"// "INPUT_ATTR_PLACEHOLDER"// "INPUT_ATTR_MAX"// "INPUT_ATTR_MIN"// "INPUT_ATTR_MULTIPLE"// "INPUT_ATTR_PATTERN"// "INPUT_ATTR_REQUIRED"// "INPUT_ATTR_STEP"// "INPUT_TYPE_SEARCH"// "INPUT_TYPE_TEL"// "INPUT_TYPE_URL"// "INPUT_TYPE_EMAIL"// "INPUT_TYPE_DATETIME"// "INPUT_TYPE_DATE"// "INPUT_TYPE_MONTH"// "INPUT_TYPE_WEEK"// "INPUT_TYPE_TIME"// "INPUT_TYPE_DATETIME_LOCAL"// "INPUT_TYPE_NUMBER"// "INPUT_TYPE_RANGE"// "INPUT_TYPE_COLOR"// "LOCAL_STORAGE"// "POST_MESSAGE"// "SESSION_STORAGE"// "WEB_SOCKETS"// "WEB_SQL_DATABASE"// "WEB_WORKERS"// "GEO_LOCATION"// "INLINE_SVG"// "SMIL"// "SVG_HREF"// "SVG_CLIP_PATHS"// "TOUCH"// "WEBGL"// "SVG_FILTERS"// "SVG_FE_IMAGE"DetectedFeatures []string `json:"detectedFeatures,omitempty"`// ExitCustomEvents: List of exit events configured for the asset. This is a// read-only, auto-generated field and only applicable to a rich media asset.ExitCustomEvents []*CreativeCustomEvent `json:"exitCustomEvents,omitempty"`// Id: Numeric ID of the asset. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// IdDimensionValue: Dimension value for the numeric ID of the asset. This is a// read-only, auto-generated field.IdDimensionValue *DimensionValue `json:"idDimensionValue,omitempty"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#creativeAssetMetadata".Kindstring `json:"kind,omitempty"`// RichMedia: True if the uploaded asset is a rich media asset. This is a// read-only, auto-generated field.RichMediabool `json:"richMedia,omitempty"`// TimerCustomEvents: List of timer events configured for the asset. This is a// read-only, auto-generated field and only applicable to a rich media asset.TimerCustomEvents []*CreativeCustomEvent `json:"timerCustomEvents,omitempty"`// WarnedValidationRules: Rules validated during code generation that generated// a warning. This is a read-only, auto-generated field. Possible values are: -// "ADMOB_REFERENCED" - "ASSET_FORMAT_UNSUPPORTED_DCM" - "ASSET_INVALID" -// "CLICK_TAG_HARD_CODED" - "CLICK_TAG_INVALID" - "CLICK_TAG_IN_GWD" -// "CLICK_TAG_MISSING" - "CLICK_TAG_MORE_THAN_ONE" - "CLICK_TAG_NON_TOP_LEVEL"// - "COMPONENT_UNSUPPORTED_DCM" - "ENABLER_UNSUPPORTED_METHOD_DCM" -// "EXTERNAL_FILE_REFERENCED" - "FILE_DETAIL_EMPTY" - "FILE_TYPE_INVALID" -// "GWD_PROPERTIES_INVALID" - "HTML5_FEATURE_UNSUPPORTED" -// "LINKED_FILE_NOT_FOUND" - "MAX_FLASH_VERSION_11" - "MRAID_REFERENCED" -// "NOT_SSL_COMPLIANT" - "ORPHANED_ASSET" - "PRIMARY_HTML_MISSING" -// "SVG_INVALID" - "ZIP_INVALID"//// Possible values:// "CLICK_TAG_NON_TOP_LEVEL"// "CLICK_TAG_MISSING"// "CLICK_TAG_MORE_THAN_ONE"// "CLICK_TAG_INVALID"// "ORPHANED_ASSET"// "PRIMARY_HTML_MISSING"// "EXTERNAL_FILE_REFERENCED"// "MRAID_REFERENCED"// "ADMOB_REFERENCED"// "FILE_TYPE_INVALID"// "ZIP_INVALID"// "LINKED_FILE_NOT_FOUND"// "MAX_FLASH_VERSION_11"// "NOT_SSL_COMPLIANT"// "FILE_DETAIL_EMPTY"// "ASSET_INVALID"// "GWD_PROPERTIES_INVALID"// "ENABLER_UNSUPPORTED_METHOD_DCM"// "ASSET_FORMAT_UNSUPPORTED_DCM"// "COMPONENT_UNSUPPORTED_DCM"// "HTML5_FEATURE_UNSUPPORTED"// "CLICK_TAG_IN_GWD"// "CLICK_TAG_HARD_CODED"// "SVG_INVALID"// "CLICK_TAG_IN_RICH_MEDIA"// "MISSING_ENABLER_REFERENCE"WarnedValidationRules []string `json:"warnedValidationRules,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AssetIdentifier") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AssetIdentifier") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CreativeAssetMetadata: CreativeAssets contains properties of a creativeasset file which will be uploaded or has already been uploaded. Refer to thecreative sample code for how to upload assets and insert a creative.
func (CreativeAssetMetadata)MarshalJSON¶
func (sCreativeAssetMetadata) MarshalJSON() ([]byte,error)
typeCreativeClickThroughUrl¶
type CreativeClickThroughUrl struct {// ComputedClickThroughUrl: Read-only convenience field representing the actual// URL that will be used for this click-through. The URL is computed as// follows: - If landingPageId is specified then that landing page's URL is// assigned to this field. - Otherwise, the customClickThroughUrl is assigned// to this field.ComputedClickThroughUrlstring `json:"computedClickThroughUrl,omitempty"`// CustomClickThroughUrl: Custom click-through URL. Applicable if the// landingPageId field is left unset.CustomClickThroughUrlstring `json:"customClickThroughUrl,omitempty"`// LandingPageId: ID of the landing page for the click-through URL.LandingPageIdint64 `json:"landingPageId,omitempty,string"`// ForceSendFields is a list of field names (e.g. "ComputedClickThroughUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ComputedClickThroughUrl") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CreativeClickThroughUrl: Click-through URL
func (CreativeClickThroughUrl)MarshalJSON¶
func (sCreativeClickThroughUrl) MarshalJSON() ([]byte,error)
typeCreativeCustomEvent¶
type CreativeCustomEvent struct {// AdvertiserCustomEventId: Unique ID of this event used by Reporting and Data// Transfer. This is a read-only field.AdvertiserCustomEventIdint64 `json:"advertiserCustomEventId,omitempty,string"`// AdvertiserCustomEventName: User-entered name for the event.AdvertiserCustomEventNamestring `json:"advertiserCustomEventName,omitempty"`// AdvertiserCustomEventType: Type of the event. This is a read-only field.//// Possible values:// "ADVERTISER_EVENT_TIMER"// "ADVERTISER_EVENT_EXIT"// "ADVERTISER_EVENT_COUNTER"AdvertiserCustomEventTypestring `json:"advertiserCustomEventType,omitempty"`// ArtworkLabel: Artwork label column, used to link events in Campaign Manager// back to events in Studio. This is a required field and should not be// modified after insertion.ArtworkLabelstring `json:"artworkLabel,omitempty"`// ArtworkType: Artwork type used by the creative.This is a read-only field.//// Possible values:// "ARTWORK_TYPE_FLASH"// "ARTWORK_TYPE_HTML5"// "ARTWORK_TYPE_MIXED"// "ARTWORK_TYPE_IMAGE"ArtworkTypestring `json:"artworkType,omitempty"`// ExitClickThroughUrl: Exit click-through URL for the event. This field is// used only for exit events.ExitClickThroughUrl *CreativeClickThroughUrl `json:"exitClickThroughUrl,omitempty"`// Id: ID of this event. This is a required field and should not be modified// after insertion.Idint64 `json:"id,omitempty,string"`// PopupWindowProperties: Properties for rich media popup windows. This field// is used only for exit events.PopupWindowProperties *PopupWindowProperties `json:"popupWindowProperties,omitempty"`// TargetType: Target type used by the event.//// Possible values:// "TARGET_BLANK"// "TARGET_TOP"// "TARGET_SELF"// "TARGET_PARENT"// "TARGET_POPUP"TargetTypestring `json:"targetType,omitempty"`// VideoReportingId: Video reporting ID, used to differentiate multiple videos// in a single creative. This is a read-only field.VideoReportingIdstring `json:"videoReportingId,omitempty"`// ForceSendFields is a list of field names (e.g. "AdvertiserCustomEventId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AdvertiserCustomEventId") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}CreativeCustomEvent: Creative Custom Event.
func (CreativeCustomEvent)MarshalJSON¶
func (sCreativeCustomEvent) MarshalJSON() ([]byte,error)
typeDimensionValue¶
type DimensionValue struct {// DimensionName: The name of the dimension.DimensionNamestring `json:"dimensionName,omitempty"`// Etag: The eTag of this response for caching purposes.Etagstring `json:"etag,omitempty"`// Id: The ID associated with the value if available.Idstring `json:"id,omitempty"`// Kind: The kind of resource this is, in this case// dfareporting#dimensionValue.Kindstring `json:"kind,omitempty"`// MatchType: Determines how the 'value' field is matched when filtering. If// not specified, defaults to EXACT. If set to WILDCARD_EXPRESSION, '*' is// allowed as a placeholder for variable length character sequences, and it can// be escaped with a backslash. Note, only paid search dimensions// ('dfa:paidSearch*') allow a matchType other than EXACT.//// Possible values:// "EXACT"// "BEGINS_WITH"// "CONTAINS"// "WILDCARD_EXPRESSION"MatchTypestring `json:"matchType,omitempty"`// Value: The value of the dimension.Valuestring `json:"value,omitempty"`// ForceSendFields is a list of field names (e.g. "DimensionName") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DimensionName") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DimensionValue: Represents a DimensionValue resource.
func (DimensionValue)MarshalJSON¶
func (sDimensionValue) MarshalJSON() ([]byte,error)
typeMediaService¶added inv0.129.0
type MediaService struct {// contains filtered or unexported fields}funcNewMediaService¶added inv0.129.0
func NewMediaService(s *Service) *MediaService
func (*MediaService)Upload¶added inv0.129.0
func (r *MediaService) Upload(profileIdint64, advertiserIdint64, creativeassetmetadata *CreativeAssetMetadata) *MediaUploadCall
Upload: Inserts a new creative asset.
- advertiserId: Advertiser ID of this creative. This is a required field.- profileId: User profile ID associated with this request.
typeMediaUploadCall¶added inv0.129.0
type MediaUploadCall struct {// contains filtered or unexported fields}func (*MediaUploadCall)Context¶added inv0.129.0
func (c *MediaUploadCall) Context(ctxcontext.Context) *MediaUploadCall
Context sets the context to be used in this call's Do method.This context will supersede any context previously provided to theResumableMedia method.
func (*MediaUploadCall)Do¶added inv0.129.0
func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*CreativeAssetMetadata,error)
Do executes the "dfareporting.media.upload" call.Any non-2xx status code is an error. Response headers are in either*CreativeAssetMetadata.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*MediaUploadCall)Fields¶added inv0.129.0
func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*MediaUploadCall)Header¶added inv0.129.0
func (c *MediaUploadCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*MediaUploadCall)Media¶added inv0.129.0
func (c *MediaUploadCall) Media(rio.Reader, options ...googleapi.MediaOption) *MediaUploadCall
Media specifies the media to upload in one or more chunks. The chunk sizemay be controlled by supplying a MediaOption generated bygoogleapi.ChunkSize. The chunk size defaults togoogleapi.DefaultUploadChunkSize.The Content-Type header used in the uploadrequest will be determined by sniffing the contents of r, unless aMediaOption generated by googleapi.ContentType is supplied.At most one of Media and ResumableMedia may be set.
func (*MediaUploadCall)ProgressUpdater¶added inv0.129.0
func (c *MediaUploadCall) ProgressUpdater(pugoogleapi.ProgressUpdater) *MediaUploadCall
ProgressUpdater provides a callback function that will be called after everychunk. It should be a low-latency function in order to not slow down theupload operation. This should only be called when using ResumableMedia (asopposed to Media).
func (*MediaUploadCall)ResumableMediadeprecatedadded inv0.129.0
func (c *MediaUploadCall) ResumableMedia(ctxcontext.Context, rio.ReaderAt, sizeint64, mediaTypestring) *MediaUploadCall
ResumableMedia specifies the media to upload in chunks and can be canceledwith ctx.
Deprecated: use Media instead.
At most one of Media and ResumableMedia may be set. mediaType identifies theMIME media type of the upload, such as "image/png". If mediaType is "", itwill be auto-detected. The provided ctx will supersede any contextpreviously provided to the Context method.
typeOffsetPosition¶
type OffsetPosition struct {// Left: Offset distance from left side of an asset or a window.Leftint64 `json:"left,omitempty"`// Top: Offset distance from top side of an asset or a window.Topint64 `json:"top,omitempty"`// ForceSendFields is a list of field names (e.g. "Left") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Left") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}OffsetPosition: Offset Position.
func (OffsetPosition)MarshalJSON¶
func (sOffsetPosition) MarshalJSON() ([]byte,error)
typePopupWindowProperties¶
type PopupWindowProperties struct {// Dimension: Popup dimension for a creative. This is a read-only field.// Applicable to the following creative types: all RICH_MEDIA and all VPAIDDimension *Size `json:"dimension,omitempty"`// Offset: Upper-left corner coordinates of the popup window. Applicable if// positionType is COORDINATES.Offset *OffsetPosition `json:"offset,omitempty"`// PositionType: Popup window position either centered or at specific// coordinate.//// Possible values:// "CENTER"// "COORDINATES"PositionTypestring `json:"positionType,omitempty"`// ShowAddressBar: Whether to display the browser address bar.ShowAddressBarbool `json:"showAddressBar,omitempty"`// ShowMenuBar: Whether to display the browser menu bar.ShowMenuBarbool `json:"showMenuBar,omitempty"`// ShowScrollBar: Whether to display the browser scroll bar.ShowScrollBarbool `json:"showScrollBar,omitempty"`// ShowStatusBar: Whether to display the browser status bar.ShowStatusBarbool `json:"showStatusBar,omitempty"`// ShowToolBar: Whether to display the browser tool bar.ShowToolBarbool `json:"showToolBar,omitempty"`// Title: Title of popup window.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "Dimension") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Dimension") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PopupWindowProperties: Popup Window Properties.
func (PopupWindowProperties)MarshalJSON¶
func (sPopupWindowProperties) MarshalJSON() ([]byte,error)
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentMedia *MediaService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶
NewService creates a new Service.
typeSize¶
type Size struct {// Height: Height of this size. Acceptable values are 0 to 32767, inclusive.Heightint64 `json:"height,omitempty"`// Iab: IAB standard size. This is a read-only, auto-generated field.Iabbool `json:"iab,omitempty"`// Id: ID of this size. This is a read-only, auto-generated field.Idint64 `json:"id,omitempty,string"`// Kind: Identifies what kind of resource this is. Value: the fixed string// "dfareporting#size".Kindstring `json:"kind,omitempty"`// Width: Width of this size. Acceptable values are 0 to 32767, inclusive.Widthint64 `json:"width,omitempty"`// ForceSendFields is a list of field names (e.g. "Height") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Height") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Size: Represents the dimensions of ads, placements, creatives, or creativeassets.