527 lines
20 KiB
Ruby
527 lines
20 KiB
Ruby
# Copyright 2015 Google Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
# you may not use this file except in compliance with the License.
|
|
# You may obtain a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
# See the License for the specific language governing permissions and
|
|
# limitations under the License.
|
|
|
|
require 'date'
|
|
require 'google/apis/core/base_service'
|
|
require 'google/apis/core/json_representation'
|
|
require 'google/apis/core/hashable'
|
|
require 'google/apis/errors'
|
|
|
|
module Google
|
|
module Apis
|
|
module Adexchangebuyer2V2beta1
|
|
|
|
class Empty
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class WatchCreativeRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class AppContext
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListClientsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class NativeContent
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class SecurityContext
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListCreativesResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class HtmlContent
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ServingContext
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Image
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Reason
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class VideoContent
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ClientUserInvitation
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class AuctionContext
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListClientUsersResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListClientUserInvitationsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class LocationContext
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class PlatformContext
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ClientUser
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class CreativeDealAssociation
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class FilteringStats
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Creative
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class RemoveDealAssociationRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Client
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Correction
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ListDealAssociationsResponse
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class AddDealAssociationRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class StopWatchingCreativeRequest
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Disapproval
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class ServingRestriction
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Date
|
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
|
|
include Google::Apis::Core::JsonObjectSupport
|
|
end
|
|
|
|
class Empty
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
end
|
|
end
|
|
|
|
class WatchCreativeRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :topic, as: 'topic'
|
|
end
|
|
end
|
|
|
|
class AppContext
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :app_types, as: 'appTypes'
|
|
end
|
|
end
|
|
|
|
class ListClientsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :clients, as: 'clients', class: Google::Apis::Adexchangebuyer2V2beta1::Client, decorator: Google::Apis::Adexchangebuyer2V2beta1::Client::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class NativeContent
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :store_url, as: 'storeUrl'
|
|
property :headline, as: 'headline'
|
|
property :app_icon, as: 'appIcon', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
|
|
|
property :call_to_action, as: 'callToAction'
|
|
property :body, as: 'body'
|
|
property :star_rating, as: 'starRating'
|
|
property :video_url, as: 'videoUrl'
|
|
property :click_link_url, as: 'clickLinkUrl'
|
|
property :logo, as: 'logo', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
|
|
|
property :price_display_text, as: 'priceDisplayText'
|
|
property :click_tracking_url, as: 'clickTrackingUrl'
|
|
property :image, as: 'image', class: Google::Apis::Adexchangebuyer2V2beta1::Image, decorator: Google::Apis::Adexchangebuyer2V2beta1::Image::Representation
|
|
|
|
property :advertiser_name, as: 'advertiserName'
|
|
end
|
|
end
|
|
|
|
class SecurityContext
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :securities, as: 'securities'
|
|
end
|
|
end
|
|
|
|
class ListCreativesResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :creatives, as: 'creatives', class: Google::Apis::Adexchangebuyer2V2beta1::Creative, decorator: Google::Apis::Adexchangebuyer2V2beta1::Creative::Representation
|
|
|
|
property :next_page_token, as: 'nextPageToken'
|
|
end
|
|
end
|
|
|
|
class HtmlContent
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :width, as: 'width'
|
|
property :snippet, as: 'snippet'
|
|
property :height, as: 'height'
|
|
end
|
|
end
|
|
|
|
class ServingContext
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :platform, as: 'platform', class: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::PlatformContext::Representation
|
|
|
|
property :location, as: 'location', class: Google::Apis::Adexchangebuyer2V2beta1::LocationContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::LocationContext::Representation
|
|
|
|
property :auction_type, as: 'auctionType', class: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AuctionContext::Representation
|
|
|
|
property :all, as: 'all'
|
|
property :app_type, as: 'appType', class: Google::Apis::Adexchangebuyer2V2beta1::AppContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::AppContext::Representation
|
|
|
|
property :security_type, as: 'securityType', class: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::SecurityContext::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class Image
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :width, as: 'width'
|
|
property :url, as: 'url'
|
|
property :height, as: 'height'
|
|
end
|
|
end
|
|
|
|
class Reason
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :count, as: 'count'
|
|
property :status, as: 'status'
|
|
end
|
|
end
|
|
|
|
class VideoContent
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :video_url, as: 'videoUrl'
|
|
end
|
|
end
|
|
|
|
class ClientUserInvitation
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :email, as: 'email'
|
|
property :client_account_id, as: 'clientAccountId'
|
|
property :invitation_id, as: 'invitationId'
|
|
end
|
|
end
|
|
|
|
class AuctionContext
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :auction_types, as: 'auctionTypes'
|
|
end
|
|
end
|
|
|
|
class ListClientUsersResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :users, as: 'users', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUser, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUser::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class ListClientUserInvitationsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :invitations, as: 'invitations', class: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation, decorator: Google::Apis::Adexchangebuyer2V2beta1::ClientUserInvitation::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class LocationContext
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :geo_criteria_ids, as: 'geoCriteriaIds'
|
|
end
|
|
end
|
|
|
|
class PlatformContext
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :platforms, as: 'platforms'
|
|
end
|
|
end
|
|
|
|
class ClientUser
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :user_id, as: 'userId'
|
|
property :email, as: 'email'
|
|
property :client_account_id, as: 'clientAccountId'
|
|
property :status, as: 'status'
|
|
end
|
|
end
|
|
|
|
class CreativeDealAssociation
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :account_id, as: 'accountId'
|
|
property :creative_id, as: 'creativeId'
|
|
property :deals_id, as: 'dealsId'
|
|
end
|
|
end
|
|
|
|
class FilteringStats
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :date, as: 'date', class: Google::Apis::Adexchangebuyer2V2beta1::Date, decorator: Google::Apis::Adexchangebuyer2V2beta1::Date::Representation
|
|
|
|
collection :reasons, as: 'reasons', class: Google::Apis::Adexchangebuyer2V2beta1::Reason, decorator: Google::Apis::Adexchangebuyer2V2beta1::Reason::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class Creative
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :agency_id, as: 'agencyId'
|
|
collection :click_through_urls, as: 'clickThroughUrls'
|
|
property :ad_choices_destination_url, as: 'adChoicesDestinationUrl'
|
|
collection :detected_sensitive_categories, as: 'detectedSensitiveCategories'
|
|
collection :restricted_categories, as: 'restrictedCategories'
|
|
collection :corrections, as: 'corrections', class: Google::Apis::Adexchangebuyer2V2beta1::Correction, decorator: Google::Apis::Adexchangebuyer2V2beta1::Correction::Representation
|
|
|
|
property :version, as: 'version'
|
|
collection :vendor_ids, as: 'vendorIds'
|
|
collection :impression_tracking_urls, as: 'impressionTrackingUrls'
|
|
property :html, as: 'html', class: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::HtmlContent::Representation
|
|
|
|
collection :detected_product_categories, as: 'detectedProductCategories'
|
|
property :deals_status, as: 'dealsStatus'
|
|
property :open_auction_status, as: 'openAuctionStatus'
|
|
property :advertiser_name, as: 'advertiserName'
|
|
collection :detected_advertiser_ids, as: 'detectedAdvertiserIds'
|
|
collection :detected_domains, as: 'detectedDomains'
|
|
property :filtering_stats, as: 'filteringStats', class: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats, decorator: Google::Apis::Adexchangebuyer2V2beta1::FilteringStats::Representation
|
|
|
|
collection :attributes, as: 'attributes'
|
|
property :api_update_time, as: 'apiUpdateTime'
|
|
collection :detected_languages, as: 'detectedLanguages'
|
|
property :creative_id, as: 'creativeId'
|
|
property :account_id, as: 'accountId'
|
|
property :native, as: 'native', class: Google::Apis::Adexchangebuyer2V2beta1::NativeContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::NativeContent::Representation
|
|
|
|
property :video, as: 'video', class: Google::Apis::Adexchangebuyer2V2beta1::VideoContent, decorator: Google::Apis::Adexchangebuyer2V2beta1::VideoContent::Representation
|
|
|
|
collection :serving_restrictions, as: 'servingRestrictions', class: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingRestriction::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class RemoveDealAssociationRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class Client
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :entity_type, as: 'entityType'
|
|
property :client_name, as: 'clientName'
|
|
property :role, as: 'role'
|
|
property :visible_to_seller, as: 'visibleToSeller'
|
|
property :entity_id, as: 'entityId'
|
|
property :client_account_id, as: 'clientAccountId'
|
|
property :entity_name, as: 'entityName'
|
|
property :status, as: 'status'
|
|
end
|
|
end
|
|
|
|
class Correction
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
|
|
|
collection :details, as: 'details'
|
|
property :type, as: 'type'
|
|
end
|
|
end
|
|
|
|
class ListDealAssociationsResponse
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :next_page_token, as: 'nextPageToken'
|
|
collection :associations, as: 'associations', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class AddDealAssociationRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :association, as: 'association', class: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation, decorator: Google::Apis::Adexchangebuyer2V2beta1::CreativeDealAssociation::Representation
|
|
|
|
end
|
|
end
|
|
|
|
class StopWatchingCreativeRequest
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
end
|
|
end
|
|
|
|
class Disapproval
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :details, as: 'details'
|
|
property :reason, as: 'reason'
|
|
end
|
|
end
|
|
|
|
class ServingRestriction
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
collection :disapproval_reasons, as: 'disapprovalReasons', class: Google::Apis::Adexchangebuyer2V2beta1::Disapproval, decorator: Google::Apis::Adexchangebuyer2V2beta1::Disapproval::Representation
|
|
|
|
collection :contexts, as: 'contexts', class: Google::Apis::Adexchangebuyer2V2beta1::ServingContext, decorator: Google::Apis::Adexchangebuyer2V2beta1::ServingContext::Representation
|
|
|
|
property :status, as: 'status'
|
|
end
|
|
end
|
|
|
|
class Date
|
|
# @private
|
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
property :year, as: 'year'
|
|
property :day, as: 'day'
|
|
property :month, as: 'month'
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|