Skip to content

Commit

Permalink
google-api-go-client: update all APIs
Browse files Browse the repository at this point in the history
Change-Id: If32e320fc93c1118a8e36f629dc1db12cbc89e23
Reviewed-on: https://code-review.googlesource.com/3411
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
gmlewis committed Sep 10, 2015
1 parent 85c9280 commit e7c0934
Show file tree
Hide file tree
Showing 58 changed files with 11,843 additions and 9,812 deletions.
9 changes: 7 additions & 2 deletions adexchangebuyer/v1.2/adexchangebuyer-api.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/5rQ3R89cFbP476zd39r7SRislEg\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/NUnz0H_oWow0qcTRC55iG-5RpbM\"",
"discoveryVersion": "v1",
"id": "adexchangebuyer:v1.2",
"name": "adexchangebuyer",
"canonicalName": "Ad Exchange Buyer",
"version": "v1.2",
"revision": "20150822",
"revision": "20150909",
"title": "Ad Exchange Buyer API",
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
"ownerDomain": "google.com",
Expand Down Expand Up @@ -199,6 +199,11 @@
"description": "The agency id for this creative.",
"format": "int64"
},
"api_upload_timestamp": {
"type": "string",
"description": "The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).",
"format": "date-time"
},
"attribute": {
"type": "array",
"description": "All attributes for the ads that may be shown from this snippet.",
Expand Down
6 changes: 6 additions & 0 deletions adexchangebuyer/v1.2/adexchangebuyer-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,12 @@ type Creative struct {
// AgencyId: The agency id for this creative.
AgencyId int64 `json:"agencyId,omitempty,string"`

// ApiUploadTimestamp: The last upload timestamp of this creative if it
// was uploaded via API. Read-only. The value of this field is
// generated, and will be ignored for uploads. (formatted RFC 3339
// timestamp).
ApiUploadTimestamp string `json:"api_upload_timestamp,omitempty"`

// Attribute: All attributes for the ads that may be shown from this
// snippet.
Attribute []int64 `json:"attribute,omitempty"`
Expand Down
105 changes: 103 additions & 2 deletions adexchangebuyer/v1.3/adexchangebuyer-api.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/FAPpLW1Ujfy6AKjixZl25akuukg\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/s43VGxh95gMJhn2XULgCPUEFl2w\"",
"discoveryVersion": "v1",
"id": "adexchangebuyer:v1.3",
"name": "adexchangebuyer",
"canonicalName": "Ad Exchange Buyer",
"version": "v1.3",
"revision": "20150822",
"revision": "20150909",
"title": "Ad Exchange Buyer API",
"description": "Accesses your bidding-account information, submits creatives for validation, finds available direct deals, and retrieves performance reports.",
"ownerDomain": "google.com",
Expand Down Expand Up @@ -281,6 +281,11 @@
"description": "The agency id for this creative.",
"format": "int64"
},
"api_upload_timestamp": {
"type": "string",
"description": "The last upload timestamp of this creative if it was uploaded via API. Read-only. The value of this field is generated, and will be ignored for uploads. (formatted RFC 3339 timestamp).",
"format": "date-time"
},
"attribute": {
"type": "array",
"description": "All attributes for the ads that may be shown from this snippet.",
Expand Down Expand Up @@ -401,6 +406,102 @@
"description": "Resource type.",
"default": "adexchangebuyer#creative"
},
"nativeAd": {
"type": "object",
"description": "If nativeAd is set, HTMLSnippet and videoURL should not be set.",
"properties": {
"advertiser": {
"type": "string"
},
"appIcon": {
"type": "object",
"description": "The app icon, for app download ads.",
"properties": {
"height": {
"type": "integer",
"format": "int32"
},
"url": {
"type": "string"
},
"width": {
"type": "integer",
"format": "int32"
}
}
},
"body": {
"type": "string",
"description": "A long description of the ad."
},
"callToAction": {
"type": "string",
"description": "A label for the button that the user is supposed to click."
},
"clickTrackingUrl": {
"type": "string",
"description": "The URL to use for click tracking."
},
"headline": {
"type": "string",
"description": "A short title for the ad."
},
"image": {
"type": "object",
"description": "A large image.",
"properties": {
"height": {
"type": "integer",
"format": "int32"
},
"url": {
"type": "string"
},
"width": {
"type": "integer",
"format": "int32"
}
}
},
"impressionTrackingUrl": {
"type": "array",
"description": "The URLs are called when the impression is rendered.",
"items": {
"type": "string"
}
},
"logo": {
"type": "object",
"description": "A smaller image, for the advertiser logo.",
"properties": {
"height": {
"type": "integer",
"format": "int32"
},
"url": {
"type": "string"
},
"width": {
"type": "integer",
"format": "int32"
}
}
},
"price": {
"type": "string",
"description": "The price of the promoted app including the currency info."
},
"starRating": {
"type": "number",
"description": "The app rating in the app store. Must be in the range [0-5].",
"format": "double"
},
"store": {
"type": "string",
"description": "The URL to the app store to purchase/download the promoted app."
}
}
},
"productCategories": {
"type": "array",
"description": "Detected product categories, if any. Read-only. This field should not be set in requests.",
Expand Down
80 changes: 80 additions & 0 deletions adexchangebuyer/v1.3/adexchangebuyer-gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,12 @@ type Creative struct {
// AgencyId: The agency id for this creative.
AgencyId int64 `json:"agencyId,omitempty,string"`

// ApiUploadTimestamp: The last upload timestamp of this creative if it
// was uploaded via API. Read-only. The value of this field is
// generated, and will be ignored for uploads. (formatted RFC 3339
// timestamp).
ApiUploadTimestamp string `json:"api_upload_timestamp,omitempty"`

// Attribute: All attributes for the ads that may be shown from this
// snippet.
Attribute []int64 `json:"attribute,omitempty"`
Expand Down Expand Up @@ -325,6 +331,10 @@ type Creative struct {
// Kind: Resource type.
Kind string `json:"kind,omitempty"`

// NativeAd: If nativeAd is set, HTMLSnippet and videoURL should not be
// set.
NativeAd *CreativeNativeAd `json:"nativeAd,omitempty"`

// ProductCategories: Detected product categories, if any. Read-only.
// This field should not be set in requests.
ProductCategories []int64 `json:"productCategories,omitempty"`
Expand Down Expand Up @@ -395,6 +405,76 @@ type CreativeFilteringReasonsReasons struct {
FilteringStatus int64 `json:"filteringStatus,omitempty"`
}

// CreativeNativeAd: If nativeAd is set, HTMLSnippet and videoURL should
// not be set.
type CreativeNativeAd struct {
Advertiser string `json:"advertiser,omitempty"`

// AppIcon: The app icon, for app download ads.
AppIcon *CreativeNativeAdAppIcon `json:"appIcon,omitempty"`

// Body: A long description of the ad.
Body string `json:"body,omitempty"`

// CallToAction: A label for the button that the user is supposed to
// click.
CallToAction string `json:"callToAction,omitempty"`

// ClickTrackingUrl: The URL to use for click tracking.
ClickTrackingUrl string `json:"clickTrackingUrl,omitempty"`

// Headline: A short title for the ad.
Headline string `json:"headline,omitempty"`

// Image: A large image.
Image *CreativeNativeAdImage `json:"image,omitempty"`

// ImpressionTrackingUrl: The URLs are called when the impression is
// rendered.
ImpressionTrackingUrl []string `json:"impressionTrackingUrl,omitempty"`

// Logo: A smaller image, for the advertiser logo.
Logo *CreativeNativeAdLogo `json:"logo,omitempty"`

// Price: The price of the promoted app including the currency info.
Price string `json:"price,omitempty"`

// StarRating: The app rating in the app store. Must be in the range
// [0-5].
StarRating float64 `json:"starRating,omitempty"`

// Store: The URL to the app store to purchase/download the promoted
// app.
Store string `json:"store,omitempty"`
}

// CreativeNativeAdAppIcon: The app icon, for app download ads.
type CreativeNativeAdAppIcon struct {
Height int64 `json:"height,omitempty"`

Url string `json:"url,omitempty"`

Width int64 `json:"width,omitempty"`
}

// CreativeNativeAdImage: A large image.
type CreativeNativeAdImage struct {
Height int64 `json:"height,omitempty"`

Url string `json:"url,omitempty"`

Width int64 `json:"width,omitempty"`
}

// CreativeNativeAdLogo: A smaller image, for the advertiser logo.
type CreativeNativeAdLogo struct {
Height int64 `json:"height,omitempty"`

Url string `json:"url,omitempty"`

Width int64 `json:"width,omitempty"`
}

// CreativesList: The creatives feed lists the active creatives for the
// Ad Exchange buyer accounts that the user has access to. Each entry in
// the feed corresponds to a single creative.
Expand Down
Loading

0 comments on commit e7c0934

Please sign in to comment.