Update dependencies

This commit is contained in:
Alexander Neumann 2017-09-13 14:09:48 +02:00
parent f3b49987f8
commit fda563d606
926 changed files with 189726 additions and 98666 deletions

View file

@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/p-RysYnjE2Jp5kxjC09O1FcghzI\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/3Wqk_k4XWB3JARQsnkZ477HngjY\"",
"discoveryVersion": "v1",
"id": "dfareporting:v2.7",
"name": "dfareporting",
"version": "v2.7",
"revision": "20170428",
"revision": "20170818",
"title": "DCM/DFA Reporting And Trafficking API",
"description": "Manages your DoubleClick Campaign Manager ad campaigns and reports.",
"ownerDomain": "google.com",
@ -2229,7 +2229,7 @@
},
"htmlCode": {
"type": "string",
"description": "HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is false. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA."
"description": "HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is true. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA."
},
"htmlCodeLocked": {
"type": "boolean",
@ -4569,7 +4569,7 @@
},
"videoActiveViewOptOut": {
"type": "boolean",
"description": "Whether this directory site has disabled active view for in-stream video creatives."
"description": "Whether this directory site has disabled active view for in-stream video creatives. This is a read-only field."
}
}
},
@ -5200,7 +5200,7 @@
},
"userDefinedVariableTypes": {
"type": "array",
"description": "List of the user-defined variables used by this conversion tag. These map to the \"u[1-20]=\" in the tags. Each of these can have a user defined type.\nAcceptable values are:\n- \"U1\"\n- \"U2\"\n- \"U3\"\n- \"U4\"\n- \"U5\"\n- \"U6\"\n- \"U7\"\n- \"U8\"\n- \"U9\"\n- \"U10\"\n- \"U11\"\n- \"U12\"\n- \"U13\"\n- \"U14\"\n- \"U15\"\n- \"U16\"\n- \"U17\"\n- \"U18\"\n- \"U19\"\n- \"U20\"",
"description": "List of the user-defined variables used by this conversion tag. These map to the \"u[1-100]=\" in the tags. Each of these can have a user defined type.\nAcceptable values are U1 to U100, inclusive.",
"items": {
"type": "string",
"enum": [
@ -7125,7 +7125,7 @@
},
"vpaidAdapterChoice": {
"type": "string",
"description": "VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.",
"description": "VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.\n\nNote: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.",
"enum": [
"BOTH",
"DEFAULT",
@ -9017,7 +9017,7 @@
},
"vpaidAdapterChoiceTemplate": {
"type": "string",
"description": "Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter, and Flash VPAID creatives use the Flash adapter).",
"description": "Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).\n\nNote: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.",
"enum": [
"BOTH",
"DEFAULT",
@ -16824,7 +16824,7 @@
},
"tagFormats": {
"type": "string",
"description": "Tag formats to generate for these placements.",
"description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.",
"enum": [
"PLACEMENT_TAG_CLICK_COMMANDS",
"PLACEMENT_TAG_IFRAME_ILAYER",

View file

@ -3740,7 +3740,7 @@ type Creative struct {
FsCommand *FsCommand `json:"fsCommand,omitempty"`
// HtmlCode: HTML code for the creative. This is a required field when
// applicable. This field is ignored if htmlCodeLocked is false.
// applicable. This field is ignored if htmlCodeLocked is true.
// Applicable to the following creative types: all CUSTOM, FLASH_INPAGE,
// and HTML5_BANNER, and all RICH_MEDIA.
HtmlCode string `json:"htmlCode,omitempty"`
@ -6413,7 +6413,7 @@ type DirectorySiteSettings struct {
VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"`
// VideoActiveViewOptOut: Whether this directory site has disabled
// active view for in-stream video creatives.
// active view for in-stream video creatives. This is a read-only field.
VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to
@ -7228,29 +7228,9 @@ type FloodlightActivity struct {
TagString string `json:"tagString,omitempty"`
// UserDefinedVariableTypes: List of the user-defined variables used by
// this conversion tag. These map to the "u[1-20]=" in the tags. Each of
// these can have a user defined type.
// Acceptable values are:
// - "U1"
// - "U2"
// - "U3"
// - "U4"
// - "U5"
// - "U6"
// - "U7"
// - "U8"
// - "U9"
// - "U10"
// - "U11"
// - "U12"
// - "U13"
// - "U14"
// - "U15"
// - "U16"
// - "U17"
// - "U18"
// - "U19"
// - "U20"
// this conversion tag. These map to the "u[1-100]=" in the tags. Each
// of these can have a user defined type.
// Acceptable values are U1 to U100, inclusive.
//
// Possible values:
// "U1"
@ -9681,6 +9661,9 @@ type Placement struct {
// Controls which VPAID format the measurement adapter will use for
// in-stream video creatives assigned to this placement.
//
// Note: Flash is no longer supported. This field now defaults to HTML5
// when the following values are provided: FLASH, BOTH.
//
// Possible values:
// "BOTH"
// "DEFAULT"
@ -12087,8 +12070,11 @@ type SiteSettings struct {
// measurement adapter will use for in-stream video creatives assigned
// to the placement. The publisher's specifications will typically
// determine this setting. For VPAID creatives, the adapter format will
// match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter,
// and Flash VPAID creatives use the Flash adapter).
// match the VPAID format (HTML5 VPAID creatives use the HTML5
// adapter).
//
// Note: Flash is no longer supported. This field now defaults to HTML5
// when the following values are provided: FLASH, BOTH.
//
// Possible values:
// "BOTH"
@ -23017,11 +23003,7 @@ type CreativeAssetsInsertCall struct {
advertiserId int64
creativeassetmetadata *CreativeAssetMetadata
urlParams_ gensupport.URLParams
media_ io.Reader
mediaBuffer_ *gensupport.MediaBuffer
mediaType_ string
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
progressUpdater_ googleapi.ProgressUpdater
mediaInfo_ *gensupport.MediaInfo
ctx_ context.Context
header_ http.Header
}
@ -23044,12 +23026,7 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea
// supplied.
// At most one of Media and ResumableMedia may be set.
func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall {
opts := googleapi.ProcessMediaOptions(options)
chunkSize := opts.ChunkSize
if !opts.ForceEmptyContentType {
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
}
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
return c
}
@ -23064,11 +23041,7 @@ func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.Media
// supersede any context previously provided to the Context method.
func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall {
c.ctx_ = ctx
rdr := gensupport.ReaderAtToReader(r, size)
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
c.media_ = nil
c.mediaSize_ = size
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
return c
}
@ -23077,7 +23050,7 @@ func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.Read
// not slow down the upload operation. This should only be called when
// using ResumableMedia (as opposed to Media).
func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall {
c.progressUpdater_ = pu
c.mediaInfo_.SetProgressUpdater(pu)
return c
}
@ -23122,27 +23095,16 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error)
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets")
if c.media_ != nil || c.mediaBuffer_ != nil {
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
protocol := "multipart"
if c.mediaBuffer_ != nil {
protocol = "resumable"
}
c.urlParams_.Set("uploadType", protocol)
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
}
if body == nil {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
if c.media_ != nil {
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
defer combined.Close()
reqHeaders.Set("Content-Type", ctype)
body = combined
}
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@ -23179,20 +23141,10 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
if c.mediaBuffer_ != nil {
loc := res.Header.Get("Location")
rx := &gensupport.ResumableUpload{
Client: c.s.client,
UserAgent: c.s.userAgent(),
URI: loc,
Media: c.mediaBuffer_,
MediaType: c.mediaType_,
Callback: func(curr int64) {
if c.progressUpdater_ != nil {
c.progressUpdater_(curr, c.mediaSize_)
}
},
}
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
if rx != nil {
rx.Client = c.s.client
rx.UserAgent = c.s.userAgent()
ctx := c.ctx_
if ctx == nil {
ctx = context.TODO()
@ -38552,6 +38504,9 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem
// TagFormats sets the optional parameter "tagFormats": Tag formats to
// generate for these placements.
//
// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1
// placements.
//
// Possible values:
// "PLACEMENT_TAG_CLICK_COMMANDS"
// "PLACEMENT_TAG_IFRAME_ILAYER"
@ -38686,7 +38641,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen
// "type": "string"
// },
// "tagFormats": {
// "description": "Tag formats to generate for these placements.",
// "description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.",
// "enum": [
// "PLACEMENT_TAG_CLICK_COMMANDS",
// "PLACEMENT_TAG_IFRAME_ILAYER",

View file

@ -1,11 +1,11 @@
{
"kind": "discovery#restDescription",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/mDodB1FWVkZ2kJtHTr6oPPTc9mw\"",
"etag": "\"YWOzh2SDasdU84ArJnpYek-OMdg/emGV_y_FRSYhyMgSPP7gVElVBpw\"",
"discoveryVersion": "v1",
"id": "dfareporting:v2.8",
"name": "dfareporting",
"version": "v2.8",
"revision": "20170428",
"revision": "20170818",
"title": "DCM/DFA Reporting And Trafficking API",
"description": "Manages your DoubleClick Campaign Manager ad campaigns and reports.",
"ownerDomain": "google.com",
@ -1719,11 +1719,11 @@
},
"encryptedUserId": {
"type": "string",
"description": "The alphanumeric encrypted user ID. When set, encryptionInfo should also be specified. This field is mutually exclusive with encryptedUserIdCandidates[] and mobileDeviceId. This or encryptedUserIdCandidates[] or mobileDeviceId is a required field."
"description": "The alphanumeric encrypted user ID. When set, encryptionInfo should also be specified. This field is mutually exclusive with encryptedUserIdCandidates[], mobileDeviceId and gclid. This or encryptedUserIdCandidates[] or mobileDeviceId or gclid is a required field."
},
"encryptedUserIdCandidates": {
"type": "array",
"description": "A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be specified. This field may only be used when calling batchinsert; it is not supported by batchupdate. This field is mutually exclusive with encryptedUserId and mobileDeviceId. This or encryptedUserId or mobileDeviceId is a required field.",
"description": "A list of the alphanumeric encrypted user IDs. Any user ID with exposure prior to the conversion timestamp will be used in the inserted conversion. If no such user ID is found then the conversion will be rejected with NO_COOKIE_MATCH_FOUND error. When set, encryptionInfo should also be specified. This field may only be used when calling batchinsert; it is not supported by batchupdate. This field is mutually exclusive with encryptedUserId, mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId or gclid is a required field.",
"items": {
"type": "string"
}
@ -1738,6 +1738,10 @@
"description": "Floodlight Configuration ID of this conversion. This is a required field.",
"format": "int64"
},
"gclid": {
"type": "string",
"description": "The Google click ID. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId is a required field."
},
"kind": {
"type": "string",
"description": "Identifies what kind of resource this is. Value: the fixed string \"dfareporting#conversion\".",
@ -1749,7 +1753,7 @@
},
"mobileDeviceId": {
"type": "string",
"description": "The mobile device ID. This field is mutually exclusive with encryptedUserId and encryptedUserIdCandidates[]. This or encryptedUserId or encryptedUserIdCandidates[] is a required field."
"description": "The mobile device ID. This field is mutually exclusive with encryptedUserId, encryptedUserIdCandidates[] and gclid. This or encryptedUserId or encryptedUserIdCandidates[] or gclid is a required field."
},
"ordinal": {
"type": "string",
@ -2303,7 +2307,7 @@
},
"htmlCode": {
"type": "string",
"description": "HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is false. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA."
"description": "HTML code for the creative. This is a required field when applicable. This field is ignored if htmlCodeLocked is true. Applicable to the following creative types: all CUSTOM, FLASH_INPAGE, and HTML5_BANNER, and all RICH_MEDIA."
},
"htmlCodeLocked": {
"type": "boolean",
@ -4647,7 +4651,7 @@
},
"videoActiveViewOptOut": {
"type": "boolean",
"description": "Whether this directory site has disabled active view for in-stream video creatives."
"description": "Whether this directory site has disabled active view for in-stream video creatives. This is a read-only field."
}
}
},
@ -5278,7 +5282,7 @@
},
"userDefinedVariableTypes": {
"type": "array",
"description": "List of the user-defined variables used by this conversion tag. These map to the \"u[1-20]=\" in the tags. Each of these can have a user defined type.\nAcceptable values are:\n- \"U1\"\n- \"U2\"\n- \"U3\"\n- \"U4\"\n- \"U5\"\n- \"U6\"\n- \"U7\"\n- \"U8\"\n- \"U9\"\n- \"U10\"\n- \"U11\"\n- \"U12\"\n- \"U13\"\n- \"U14\"\n- \"U15\"\n- \"U16\"\n- \"U17\"\n- \"U18\"\n- \"U19\"\n- \"U20\"",
"description": "List of the user-defined variables used by this conversion tag. These map to the \"u[1-100]=\" in the tags. Each of these can have a user defined type.\nAcceptable values are U1 to U100, inclusive.",
"items": {
"type": "string",
"enum": [
@ -7188,7 +7192,7 @@
},
"vpaidAdapterChoice": {
"type": "string",
"description": "VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.",
"description": "VPAID adapter setting for this placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to this placement.\n\nNote: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.",
"enum": [
"BOTH",
"DEFAULT",
@ -9080,7 +9084,7 @@
},
"vpaidAdapterChoiceTemplate": {
"type": "string",
"description": "Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter, and Flash VPAID creatives use the Flash adapter).",
"description": "Default VPAID adapter setting for new placements created under this site. This value will be used to populate the placements.vpaidAdapterChoice field, when no value is specified for the new placement. Controls which VPAID format the measurement adapter will use for in-stream video creatives assigned to the placement. The publisher's specifications will typically determine this setting. For VPAID creatives, the adapter format will match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter).\n\nNote: Flash is no longer supported. This field now defaults to HTML5 when the following values are provided: FLASH, BOTH.",
"enum": [
"BOTH",
"DEFAULT",
@ -16941,7 +16945,7 @@
},
"tagFormats": {
"type": "string",
"description": "Tag formats to generate for these placements.",
"description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.",
"enum": [
"PLACEMENT_TAG_CLICK_COMMANDS",
"PLACEMENT_TAG_IFRAME_ILAYER",

View file

@ -3175,8 +3175,9 @@ type Conversion struct {
// EncryptedUserId: The alphanumeric encrypted user ID. When set,
// encryptionInfo should also be specified. This field is mutually
// exclusive with encryptedUserIdCandidates[] and mobileDeviceId. This
// or encryptedUserIdCandidates[] or mobileDeviceId is a required field.
// exclusive with encryptedUserIdCandidates[], mobileDeviceId and gclid.
// This or encryptedUserIdCandidates[] or mobileDeviceId or gclid is a
// required field.
EncryptedUserId string `json:"encryptedUserId,omitempty"`
// EncryptedUserIdCandidates: A list of the alphanumeric encrypted user
@ -3185,9 +3186,9 @@ type Conversion struct {
// the conversion will be rejected with NO_COOKIE_MATCH_FOUND error.
// When set, encryptionInfo should also be specified. This field may
// only be used when calling batchinsert; it is not supported by
// batchupdate. This field is mutually exclusive with encryptedUserId
// and mobileDeviceId. This or encryptedUserId or mobileDeviceId is a
// required field.
// batchupdate. This field is mutually exclusive with encryptedUserId,
// mobileDeviceId and gclid. This or encryptedUserId or mobileDeviceId
// or gclid is a required field.
EncryptedUserIdCandidates []string `json:"encryptedUserIdCandidates,omitempty"`
// FloodlightActivityId: Floodlight Activity ID of this conversion. This
@ -3198,6 +3199,12 @@ type Conversion struct {
// conversion. This is a required field.
FloodlightConfigurationId int64 `json:"floodlightConfigurationId,omitempty,string"`
// Gclid: The Google click ID. This field is mutually exclusive with
// encryptedUserId, encryptedUserIdCandidates[] and mobileDeviceId. This
// or encryptedUserId or encryptedUserIdCandidates[] or mobileDeviceId
// is a required field.
Gclid string `json:"gclid,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "dfareporting#conversion".
Kind string `json:"kind,omitempty"`
@ -3208,9 +3215,9 @@ type Conversion struct {
LimitAdTracking bool `json:"limitAdTracking,omitempty"`
// MobileDeviceId: The mobile device ID. This field is mutually
// exclusive with encryptedUserId and encryptedUserIdCandidates[]. This
// or encryptedUserId or encryptedUserIdCandidates[] is a required
// field.
// exclusive with encryptedUserId, encryptedUserIdCandidates[] and
// gclid. This or encryptedUserId or encryptedUserIdCandidates[] or
// gclid is a required field.
MobileDeviceId string `json:"mobileDeviceId,omitempty"`
// Ordinal: The ordinal of the conversion. Use this field to control how
@ -3867,7 +3874,7 @@ type Creative struct {
FsCommand *FsCommand `json:"fsCommand,omitempty"`
// HtmlCode: HTML code for the creative. This is a required field when
// applicable. This field is ignored if htmlCodeLocked is false.
// applicable. This field is ignored if htmlCodeLocked is true.
// Applicable to the following creative types: all CUSTOM, FLASH_INPAGE,
// and HTML5_BANNER, and all RICH_MEDIA.
HtmlCode string `json:"htmlCode,omitempty"`
@ -6544,7 +6551,7 @@ type DirectorySiteSettings struct {
VerificationTagOptOut bool `json:"verificationTagOptOut,omitempty"`
// VideoActiveViewOptOut: Whether this directory site has disabled
// active view for in-stream video creatives.
// active view for in-stream video creatives. This is a read-only field.
VideoActiveViewOptOut bool `json:"videoActiveViewOptOut,omitempty"`
// ForceSendFields is a list of field names (e.g. "ActiveViewOptOut") to
@ -7359,29 +7366,9 @@ type FloodlightActivity struct {
TagString string `json:"tagString,omitempty"`
// UserDefinedVariableTypes: List of the user-defined variables used by
// this conversion tag. These map to the "u[1-20]=" in the tags. Each of
// these can have a user defined type.
// Acceptable values are:
// - "U1"
// - "U2"
// - "U3"
// - "U4"
// - "U5"
// - "U6"
// - "U7"
// - "U8"
// - "U9"
// - "U10"
// - "U11"
// - "U12"
// - "U13"
// - "U14"
// - "U15"
// - "U16"
// - "U17"
// - "U18"
// - "U19"
// - "U20"
// this conversion tag. These map to the "u[1-100]=" in the tags. Each
// of these can have a user defined type.
// Acceptable values are U1 to U100, inclusive.
//
// Possible values:
// "U1"
@ -9803,6 +9790,9 @@ type Placement struct {
// Controls which VPAID format the measurement adapter will use for
// in-stream video creatives assigned to this placement.
//
// Note: Flash is no longer supported. This field now defaults to HTML5
// when the following values are provided: FLASH, BOTH.
//
// Possible values:
// "BOTH"
// "DEFAULT"
@ -12211,8 +12201,11 @@ type SiteSettings struct {
// measurement adapter will use for in-stream video creatives assigned
// to the placement. The publisher's specifications will typically
// determine this setting. For VPAID creatives, the adapter format will
// match the VPAID format (HTML5 VPAID creatives use the HTML5 adapter,
// and Flash VPAID creatives use the Flash adapter).
// match the VPAID format (HTML5 VPAID creatives use the HTML5
// adapter).
//
// Note: Flash is no longer supported. This field now defaults to HTML5
// when the following values are provided: FLASH, BOTH.
//
// Possible values:
// "BOTH"
@ -23315,11 +23308,7 @@ type CreativeAssetsInsertCall struct {
advertiserId int64
creativeassetmetadata *CreativeAssetMetadata
urlParams_ gensupport.URLParams
media_ io.Reader
mediaBuffer_ *gensupport.MediaBuffer
mediaType_ string
mediaSize_ int64 // mediaSize, if known. Used only for calls to progressUpdater_.
progressUpdater_ googleapi.ProgressUpdater
mediaInfo_ *gensupport.MediaInfo
ctx_ context.Context
header_ http.Header
}
@ -23342,12 +23331,7 @@ func (r *CreativeAssetsService) Insert(profileId int64, advertiserId int64, crea
// supplied.
// At most one of Media and ResumableMedia may be set.
func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *CreativeAssetsInsertCall {
opts := googleapi.ProcessMediaOptions(options)
chunkSize := opts.ChunkSize
if !opts.ForceEmptyContentType {
r, c.mediaType_ = gensupport.DetermineContentType(r, opts.ContentType)
}
c.media_, c.mediaBuffer_ = gensupport.PrepareUpload(r, chunkSize)
c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
return c
}
@ -23362,11 +23346,7 @@ func (c *CreativeAssetsInsertCall) Media(r io.Reader, options ...googleapi.Media
// supersede any context previously provided to the Context method.
func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *CreativeAssetsInsertCall {
c.ctx_ = ctx
rdr := gensupport.ReaderAtToReader(r, size)
rdr, c.mediaType_ = gensupport.DetermineContentType(rdr, mediaType)
c.mediaBuffer_ = gensupport.NewMediaBuffer(rdr, googleapi.DefaultUploadChunkSize)
c.media_ = nil
c.mediaSize_ = size
c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
return c
}
@ -23375,7 +23355,7 @@ func (c *CreativeAssetsInsertCall) ResumableMedia(ctx context.Context, r io.Read
// not slow down the upload operation. This should only be called when
// using ResumableMedia (as opposed to Media).
func (c *CreativeAssetsInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *CreativeAssetsInsertCall {
c.progressUpdater_ = pu
c.mediaInfo_.SetProgressUpdater(pu)
return c
}
@ -23420,27 +23400,16 @@ func (c *CreativeAssetsInsertCall) doRequest(alt string) (*http.Response, error)
reqHeaders.Set("Content-Type", "application/json")
c.urlParams_.Set("alt", alt)
urls := googleapi.ResolveRelative(c.s.BasePath, "userprofiles/{profileId}/creativeAssets/{advertiserId}/creativeAssets")
if c.media_ != nil || c.mediaBuffer_ != nil {
if c.mediaInfo_ != nil {
urls = strings.Replace(urls, "https://www.googleapis.com/", "https://www.googleapis.com/upload/", 1)
protocol := "multipart"
if c.mediaBuffer_ != nil {
protocol = "resumable"
}
c.urlParams_.Set("uploadType", protocol)
c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
}
if body == nil {
body = new(bytes.Buffer)
reqHeaders.Set("Content-Type", "application/json")
}
if c.media_ != nil {
combined, ctype := gensupport.CombineBodyMedia(body, "application/json", c.media_, c.mediaType_)
defer combined.Close()
reqHeaders.Set("Content-Type", ctype)
body = combined
}
if c.mediaBuffer_ != nil && c.mediaType_ != "" {
reqHeaders.Set("X-Upload-Content-Type", c.mediaType_)
}
body, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
defer cleanup()
urls += "?" + c.urlParams_.Encode()
req, _ := http.NewRequest("POST", urls, body)
req.Header = reqHeaders
@ -23477,20 +23446,10 @@ func (c *CreativeAssetsInsertCall) Do(opts ...googleapi.CallOption) (*CreativeAs
if err := googleapi.CheckResponse(res); err != nil {
return nil, err
}
if c.mediaBuffer_ != nil {
loc := res.Header.Get("Location")
rx := &gensupport.ResumableUpload{
Client: c.s.client,
UserAgent: c.s.userAgent(),
URI: loc,
Media: c.mediaBuffer_,
MediaType: c.mediaType_,
Callback: func(curr int64) {
if c.progressUpdater_ != nil {
c.progressUpdater_(curr, c.mediaSize_)
}
},
}
rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
if rx != nil {
rx.Client = c.s.client
rx.UserAgent = c.s.userAgent()
ctx := c.ctx_
if ctx == nil {
ctx = context.TODO()
@ -38850,6 +38809,9 @@ func (c *PlacementsGeneratetagsCall) PlacementIds(placementIds ...int64) *Placem
// TagFormats sets the optional parameter "tagFormats": Tag formats to
// generate for these placements.
//
// Note: PLACEMENT_TAG_STANDARD can only be generated for 1x1
// placements.
//
// Possible values:
// "PLACEMENT_TAG_CLICK_COMMANDS"
// "PLACEMENT_TAG_IFRAME_ILAYER"
@ -38984,7 +38946,7 @@ func (c *PlacementsGeneratetagsCall) Do(opts ...googleapi.CallOption) (*Placemen
// "type": "string"
// },
// "tagFormats": {
// "description": "Tag formats to generate for these placements.",
// "description": "Tag formats to generate for these placements.\n\nNote: PLACEMENT_TAG_STANDARD can only be generated for 1x1 placements.",
// "enum": [
// "PLACEMENT_TAG_CLICK_COMMANDS",
// "PLACEMENT_TAG_IFRAME_ILAYER",