generated/google/apis/displayvideo_v1/service.rb in google-api-client-0.41.0 vs generated/google/apis/displayvideo_v1/service.rb in google-api-client-0.41.1

- old
+ new

@@ -613,10 +613,46 @@ command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end + # Creates a new channel. Returns the newly created channel if successful. + # @param [Fixnum] advertiser_id + # The ID of the advertiser that owns the created channel. + # @param [Google::Apis::DisplayvideoV1::Channel] channel_object + # @param [Fixnum] partner_id + # The ID of the partner that owns the created channel. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV1::Channel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_advertiser_channel(advertiser_id, channel_object = nil, partner_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/advertisers/{+advertiserId}/channels', options) + command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation + command.request_object = channel_object + command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation + command.response_class = Google::Apis::DisplayvideoV1::Channel + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['partnerId'] = partner_id unless partner_id.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Updates an existing inventory source. # Returns the updated inventory source if successful. # Gets a channel for a partner or advertiser. # @param [Fixnum] advertiser_id # The ID of the advertiser that owns the fetched channel. @@ -1077,10 +1113,11 @@ # - `minDuration` # - `maxDuration` # - `approvalStatus` # - `exchangeReviewStatus` # - `dynamic` + # - `creativeId` # * The operator must be `HAS (:)` for the following fields: # - `lineItemIds` # * For `entityStatus`, `minDuration`, `maxDuration`, and `dynamic` there may # be at most one restriction. # * For `dimensions`, the value is in the form of `"`width`x`height`"`. @@ -1088,10 +1125,12 @@ # ``exchange`-`reviewStatus``. # * For `minDuration` and `maxDuration`, the value is in the form of # `"`duration`s"`. Only seconds are supported with millisecond granularity. # * There may be multiple `lineItemIds` restrictions in order to search # against multiple possible line item IDs. + # * There may be multiple `creativeId` restrictions in order to search + # against multiple possible creative IDs. # Examples: # * All native creatives: `creativeType="CREATIVE_TYPE_NATIVE"` # * All active creatives with 300x400 or 50x100 dimensions: # `entityStatus="ENTITY_STATUS_ACTIVE" AND (dimensions="300x400" # OR dimensions="50x100")` @@ -1099,11 +1138,13 @@ # AppNexus, with a minimum duration of 5 seconds and 200ms. # `dynamic="true" AND minDuration="5.2s" AND # (exchangeReviewStatus="EXCHANGE_GOOGLE_AD_MANAGER-REVIEW_STATUS_APPROVED" # OR exchangeReviewStatus="EXCHANGE_APPNEXUS-REVIEW_STATUS_APPROVED")` # * All video creatives that are associated with line item ID 1 or 2: - # creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2) + # `creativeType="CREATIVE_TYPE_VIDEO" AND (lineItemIds:1 OR lineItemIds:2)` + # * Find creatives by multiple creative IDs: + # `creativeId=1 OR creativeId=2` # The length of this field should be no more than 500 characters. # @param [String] order_by # Field by which to sort the list. # Acceptable values are: # * `creativeId` (default) @@ -3944,9 +3985,45 @@ command.download_dest = download_dest end command.response_representation = Google::Apis::DisplayvideoV1::GoogleBytestreamMedia::Representation command.response_class = Google::Apis::DisplayvideoV1::GoogleBytestreamMedia command.params['resourceName'] = resource_name unless resource_name.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Creates a new channel. Returns the newly created channel if successful. + # @param [Fixnum] partner_id + # The ID of the partner that owns the created channel. + # @param [Google::Apis::DisplayvideoV1::Channel] channel_object + # @param [Fixnum] advertiser_id + # The ID of the advertiser that owns the created channel. + # @param [String] fields + # Selector specifying which fields to include in a partial response. + # @param [String] quota_user + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DisplayvideoV1::Channel] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV1::Channel] + # + # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried + # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification + # @raise [Google::Apis::AuthorizationError] Authorization is required + def create_partner_channel(partner_id, channel_object = nil, advertiser_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v1/partners/{+partnerId}/channels', options) + command.request_representation = Google::Apis::DisplayvideoV1::Channel::Representation + command.request_object = channel_object + command.response_representation = Google::Apis::DisplayvideoV1::Channel::Representation + command.response_class = Google::Apis::DisplayvideoV1::Channel + command.params['partnerId'] = partner_id unless partner_id.nil? + command.query['advertiserId'] = advertiser_id unless advertiser_id.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end