diff --git a/api_names_out.yaml b/api_names_out.yaml index 3e72c8b351a..4578d1750c4 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -185793,6 +185793,10 @@ "/dfareporting:v4/DependentFieldValue": dependent_field_value "/dfareporting:v4/DependentFieldValue/elementId": element_id "/dfareporting:v4/DependentFieldValue/fieldId": field_id +"/dfareporting:v4/DfareportingStudioCreativeAssetsInsertRequest": dfareporting_studio_creative_assets_insert_request +"/dfareporting:v4/DfareportingStudioCreativeAssetsInsertRequest/studioAccountId": studio_account_id +"/dfareporting:v4/DfareportingStudioCreativeAssetsInsertRequest/studioAdvertiserId": studio_advertiser_id +"/dfareporting:v4/DfareportingStudioCreativeAssetsInsertRequest/studioCreativeId": studio_creative_id "/dfareporting:v4/DfpSettings": dfp_settings "/dfareporting:v4/DfpSettings/dfpNetworkCode": dfp_network_code "/dfareporting:v4/DfpSettings/dfpNetworkName": dfp_network_name @@ -185883,6 +185887,8 @@ "/dfareporting:v4/DynamicProfileFeedSettings/dynamicFeedId": dynamic_feed_id "/dfareporting:v4/DynamicProfileFeedSettings/dynamicRules": dynamic_rules "/dfareporting:v4/DynamicProfileFeedSettings/quantity": quantity +"/dfareporting:v4/DynamicProfileGenerateCodeResponse": dynamic_profile_generate_code_response +"/dfareporting:v4/DynamicProfileGenerateCodeResponse/code": code "/dfareporting:v4/DynamicProfileVersion": dynamic_profile_version "/dfareporting:v4/DynamicProfileVersion/dynamicProfileFeedSettings": dynamic_profile_feed_settings "/dfareporting:v4/DynamicProfileVersion/dynamicProfileFeedSettings/dynamic_profile_feed_setting": dynamic_profile_feed_setting @@ -186955,6 +186961,38 @@ "/dfareporting:v4/SortedDimension/kind": kind "/dfareporting:v4/SortedDimension/name": name "/dfareporting:v4/SortedDimension/sortOrder": sort_order +"/dfareporting:v4/StudioCreative": studio_creative +"/dfareporting:v4/StudioCreative/assetIds": asset_ids +"/dfareporting:v4/StudioCreative/assetIds/asset_id": asset_id +"/dfareporting:v4/StudioCreative/backupImageAssetId": backup_image_asset_id +"/dfareporting:v4/StudioCreative/createdInfo": created_info +"/dfareporting:v4/StudioCreative/dimension": dimension +"/dfareporting:v4/StudioCreative/dynamicProfileId": dynamic_profile_id +"/dfareporting:v4/StudioCreative/format": format +"/dfareporting:v4/StudioCreative/id": id +"/dfareporting:v4/StudioCreative/lastModifiedInfo": last_modified_info +"/dfareporting:v4/StudioCreative/name": name +"/dfareporting:v4/StudioCreative/status": status +"/dfareporting:v4/StudioCreative/studioAccountId": studio_account_id +"/dfareporting:v4/StudioCreative/studioAdvertiserId": studio_advertiser_id +"/dfareporting:v4/StudioCreative/studioCampaignId": studio_campaign_id +"/dfareporting:v4/StudioCreativeAsset": studio_creative_asset +"/dfareporting:v4/StudioCreativeAsset/createInfo": create_info +"/dfareporting:v4/StudioCreativeAsset/filename": filename +"/dfareporting:v4/StudioCreativeAsset/filesize": filesize +"/dfareporting:v4/StudioCreativeAsset/id": id +"/dfareporting:v4/StudioCreativeAsset/lastModifiedInfo": last_modified_info +"/dfareporting:v4/StudioCreativeAsset/studioAccountId": studio_account_id +"/dfareporting:v4/StudioCreativeAsset/studioAdvertiserId": studio_advertiser_id +"/dfareporting:v4/StudioCreativeAsset/studioCreativeId": studio_creative_id +"/dfareporting:v4/StudioCreativeAsset/type": type +"/dfareporting:v4/StudioCreativeAsset/videoProcessingData": video_processing_data +"/dfareporting:v4/StudioCreativeAssetsResponse": studio_creative_assets_response +"/dfareporting:v4/StudioCreativeAssetsResponse/assets": assets +"/dfareporting:v4/StudioCreativeAssetsResponse/assets/asset": asset +"/dfareporting:v4/StudioCreativeDimension": studio_creative_dimension +"/dfareporting:v4/StudioCreativeDimension/height": height +"/dfareporting:v4/StudioCreativeDimension/width": width "/dfareporting:v4/Subaccount": subaccount "/dfareporting:v4/Subaccount/accountId": account_id "/dfareporting:v4/Subaccount/availablePermissionIds": available_permission_ids @@ -187146,6 +187184,9 @@ "/dfareporting:v4/VideoOffset": video_offset "/dfareporting:v4/VideoOffset/offsetPercentage": offset_percentage "/dfareporting:v4/VideoOffset/offsetSeconds": offset_seconds +"/dfareporting:v4/VideoProcessingData": video_processing_data +"/dfareporting:v4/VideoProcessingData/errorReason": error_reason +"/dfareporting:v4/VideoProcessingData/processingState": processing_state "/dfareporting:v4/VideoSettings": video_settings "/dfareporting:v4/VideoSettings/companionSettings": companion_settings "/dfareporting:v4/VideoSettings/durationSeconds": duration_seconds @@ -187570,9 +187611,16 @@ "/dfareporting:v4/dfareporting.dynamicFeeds.get": get_dynamic_feed "/dfareporting:v4/dfareporting.dynamicFeeds.get/dynamicFeedId": dynamic_feed_id "/dfareporting:v4/dfareporting.dynamicFeeds.insert": insert_dynamic_feed +"/dfareporting:v4/dfareporting.dynamicFeeds.retransform": retransform_dynamic_feed +"/dfareporting:v4/dfareporting.dynamicFeeds.retransform/dynamicFeedId": dynamic_feed_id +"/dfareporting:v4/dfareporting.dynamicFeeds.update": update_dynamic_feed +"/dfareporting:v4/dfareporting.dynamicProfiles.generateCode": generate_dynamic_profile_code +"/dfareporting:v4/dfareporting.dynamicProfiles.generateCode/dynamicProfileId": dynamic_profile_id "/dfareporting:v4/dfareporting.dynamicProfiles.get": get_dynamic_profile "/dfareporting:v4/dfareporting.dynamicProfiles.get/dynamicProfileId": dynamic_profile_id "/dfareporting:v4/dfareporting.dynamicProfiles.insert": insert_dynamic_profile +"/dfareporting:v4/dfareporting.dynamicProfiles.publish": publish_dynamic_profile +"/dfareporting:v4/dfareporting.dynamicProfiles.publish/dynamicProfileId": dynamic_profile_id "/dfareporting:v4/dfareporting.dynamicProfiles.update": update_dynamic_profile "/dfareporting:v4/dfareporting.dynamicTargetingKeys.delete": delete_dynamic_targeting_key "/dfareporting:v4/dfareporting.dynamicTargetingKeys.delete/name": name @@ -187979,6 +188027,12 @@ "/dfareporting:v4/dfareporting.sizes.list/ids": ids "/dfareporting:v4/dfareporting.sizes.list/profileId": profile_id "/dfareporting:v4/dfareporting.sizes.list/width": width +"/dfareporting:v4/dfareporting.studioCreativeAssets.insert": insert_studio_creative_asset +"/dfareporting:v4/dfareporting.studioCreatives.get": get_studio_creative +"/dfareporting:v4/dfareporting.studioCreatives.get/studioCreativeId": studio_creative_id +"/dfareporting:v4/dfareporting.studioCreatives.insert": insert_studio_creative +"/dfareporting:v4/dfareporting.studioCreatives.publish": publish_studio_creative +"/dfareporting:v4/dfareporting.studioCreatives.publish/studioCreativeId": studio_creative_id "/dfareporting:v4/dfareporting.subaccounts.get": get_subaccount "/dfareporting:v4/dfareporting.subaccounts.get/id": id "/dfareporting:v4/dfareporting.subaccounts.get/profileId": profile_id diff --git a/generated/google-apis-dfareporting_v4/CHANGELOG.md b/generated/google-apis-dfareporting_v4/CHANGELOG.md index 6dec5d45cab..992058689f4 100644 --- a/generated/google-apis-dfareporting_v4/CHANGELOG.md +++ b/generated/google-apis-dfareporting_v4/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-dfareporting_v4 +### v0.25.0 (2025-10-19) + +* Regenerated from discovery document revision 20251009 + ### v0.24.0 (2025-09-14) * Regenerated from discovery document revision 20250902 diff --git a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/classes.rb b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/classes.rb index b4dc4ba36e0..258e5aef1a7 100644 --- a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/classes.rb +++ b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/classes.rb @@ -5583,6 +5583,39 @@ def update!(**args) end end + # Request message for DfareportingStudioCreativeAssets.Insert. + class DfareportingStudioCreativeAssetsInsertRequest + include Google::Apis::Core::Hashable + + # Optional. Studio account ID of the studio creative asset. It is a optional. + # Corresponds to the JSON property `studioAccountId` + # @return [Fixnum] + attr_accessor :studio_account_id + + # Required. Studio advertiser ID of the studio creative asset. It is a required + # field on insertion. + # Corresponds to the JSON property `studioAdvertiserId` + # @return [Fixnum] + attr_accessor :studio_advertiser_id + + # Optional. Studio creative ID of the studio creative asset. It is a optional + # field. If it is set, the asset will be associated to the creative. + # Corresponds to the JSON property `studioCreativeId` + # @return [Fixnum] + attr_accessor :studio_creative_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @studio_account_id = args[:studio_account_id] if args.key?(:studio_account_id) + @studio_advertiser_id = args[:studio_advertiser_id] if args.key?(:studio_advertiser_id) + @studio_creative_id = args[:studio_creative_id] if args.key?(:studio_creative_id) + end + end + # Google Ad Manager Settings class DfpSettings include Google::Apis::Core::Hashable @@ -6066,8 +6099,7 @@ def update!(**args) # Dynamic profile ID is required for dynamic feed insert as the current GPA API # only can create a dynamic feed under profile context,even though the dynnamic - # feed itself don't need the dynamic profile id. See go/cm3-dco-display-api- - # interface + # feed itself don't need the dynamic profile id. See class DynamicFeedsInsertRequest include Google::Apis::Core::Hashable @@ -6207,6 +6239,25 @@ def update!(**args) end end + # Response message for DfareportingDynamicProfiles.GenerateCode. + class DynamicProfileGenerateCodeResponse + include Google::Apis::Core::Hashable + + # Generated code for the dynamic profile. + # Corresponds to the JSON property `code` + # @return [String] + attr_accessor :code + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @code = args[:code] if args.key?(:code) + end + end + # Contains dynamic profile version information. class DynamicProfileVersion include Google::Apis::Core::Hashable @@ -13035,6 +13086,225 @@ def update!(**args) end end + # Contains studio creative information. + class StudioCreative + include Google::Apis::Core::Hashable + + # List of assets associated with this studio creative. It is a required field on + # insertion. + # Corresponds to the JSON property `assetIds` + # @return [Array] + attr_accessor :asset_ids + + # Backup image asset ID of this studio creative. + # Corresponds to the JSON property `backupImageAssetId` + # @return [Fixnum] + attr_accessor :backup_image_asset_id + + # Modification timestamp. + # Corresponds to the JSON property `createdInfo` + # @return [Google::Apis::DfareportingV4::LastModifiedInfo] + attr_accessor :created_info + + # Dimension information for a studio creative. + # Corresponds to the JSON property `dimension` + # @return [Google::Apis::DfareportingV4::StudioCreativeDimension] + attr_accessor :dimension + + # Dynamic profile ID of this studio creative. + # Corresponds to the JSON property `dynamicProfileId` + # @return [Fixnum] + attr_accessor :dynamic_profile_id + + # Format of this studio creative. This is a required field on insertion. + # Corresponds to the JSON property `format` + # @return [String] + attr_accessor :format + + # Output only. Unique ID of this studio creative. This is a read-only, auto- + # generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV4::LastModifiedInfo] + attr_accessor :last_modified_info + + # Identifier. Name of this studio creative. This is a required field on + # insertion. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Output only. Status of this studio creative. It is a read-only field. + # Corresponds to the JSON property `status` + # @return [String] + attr_accessor :status + + # Studio account ID of this creative. This field, if left unset, will be auto- + # populated. + # Corresponds to the JSON property `studioAccountId` + # @return [Fixnum] + attr_accessor :studio_account_id + + # Studio advertiser ID of this studio creative. This is a required field on + # insertion. + # Corresponds to the JSON property `studioAdvertiserId` + # @return [Fixnum] + attr_accessor :studio_advertiser_id + + # Studio campaign ID of this studio creative. This is a required field on + # insertion. + # Corresponds to the JSON property `studioCampaignId` + # @return [Fixnum] + attr_accessor :studio_campaign_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_ids = args[:asset_ids] if args.key?(:asset_ids) + @backup_image_asset_id = args[:backup_image_asset_id] if args.key?(:backup_image_asset_id) + @created_info = args[:created_info] if args.key?(:created_info) + @dimension = args[:dimension] if args.key?(:dimension) + @dynamic_profile_id = args[:dynamic_profile_id] if args.key?(:dynamic_profile_id) + @format = args[:format] if args.key?(:format) + @id = args[:id] if args.key?(:id) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @name = args[:name] if args.key?(:name) + @status = args[:status] if args.key?(:status) + @studio_account_id = args[:studio_account_id] if args.key?(:studio_account_id) + @studio_advertiser_id = args[:studio_advertiser_id] if args.key?(:studio_advertiser_id) + @studio_campaign_id = args[:studio_campaign_id] if args.key?(:studio_campaign_id) + end + end + + # Contains studio creative asset information. + class StudioCreativeAsset + include Google::Apis::Core::Hashable + + # Modification timestamp. + # Corresponds to the JSON property `createInfo` + # @return [Google::Apis::DfareportingV4::LastModifiedInfo] + attr_accessor :create_info + + # The filename of the studio creative asset. It is default to the original + # filename of the asset. + # Corresponds to the JSON property `filename` + # @return [String] + attr_accessor :filename + + # The filesize of the studio creative asset. This is a read-only field. + # Corresponds to the JSON property `filesize` + # @return [Fixnum] + attr_accessor :filesize + + # Output only. Unique ID of this studio creative asset. This is a read-only, + # auto-generated field. + # Corresponds to the JSON property `id` + # @return [Fixnum] + attr_accessor :id + + # Modification timestamp. + # Corresponds to the JSON property `lastModifiedInfo` + # @return [Google::Apis::DfareportingV4::LastModifiedInfo] + attr_accessor :last_modified_info + + # Studio account ID of this studio creative asset. This field, if left unset, + # will be auto-populated.. + # Corresponds to the JSON property `studioAccountId` + # @return [Fixnum] + attr_accessor :studio_account_id + + # Studio advertiser ID of this studio creative asset. This is a required field + # on insertion. + # Corresponds to the JSON property `studioAdvertiserId` + # @return [Fixnum] + attr_accessor :studio_advertiser_id + + # Studio creative ID of this studio creative asset. The asset will be associated + # to the creative if creative id is set. + # Corresponds to the JSON property `studioCreativeId` + # @return [Fixnum] + attr_accessor :studio_creative_id + + # The type of the studio creative asset. It is a auto-generated, read-only field. + # Corresponds to the JSON property `type` + # @return [String] + attr_accessor :type + + # Contains processing data for a video asset. + # Corresponds to the JSON property `videoProcessingData` + # @return [Google::Apis::DfareportingV4::VideoProcessingData] + attr_accessor :video_processing_data + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @create_info = args[:create_info] if args.key?(:create_info) + @filename = args[:filename] if args.key?(:filename) + @filesize = args[:filesize] if args.key?(:filesize) + @id = args[:id] if args.key?(:id) + @last_modified_info = args[:last_modified_info] if args.key?(:last_modified_info) + @studio_account_id = args[:studio_account_id] if args.key?(:studio_account_id) + @studio_advertiser_id = args[:studio_advertiser_id] if args.key?(:studio_advertiser_id) + @studio_creative_id = args[:studio_creative_id] if args.key?(:studio_creative_id) + @type = args[:type] if args.key?(:type) + @video_processing_data = args[:video_processing_data] if args.key?(:video_processing_data) + end + end + + # Response message for DfareportingStudioCreativeAssets.Insert. + class StudioCreativeAssetsResponse + include Google::Apis::Core::Hashable + + # The list of studio creative assets. + # Corresponds to the JSON property `assets` + # @return [Array] + attr_accessor :assets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @assets = args[:assets] if args.key?(:assets) + end + end + + # Dimension information for a studio creative. + class StudioCreativeDimension + include Google::Apis::Core::Hashable + + # Height of the studio creative. + # Corresponds to the JSON property `height` + # @return [Fixnum] + attr_accessor :height + + # Width of the studio creative. + # Corresponds to the JSON property `width` + # @return [Fixnum] + attr_accessor :width + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @height = args[:height] if args.key?(:height) + @width = args[:width] if args.key?(:width) + end + end + # Contains properties of a Campaign Manager subaccount. class Subaccount include Google::Apis::Core::Hashable @@ -14348,6 +14618,31 @@ def update!(**args) end end + # Contains processing data for a video asset. + class VideoProcessingData + include Google::Apis::Core::Hashable + + # For a FAILED processing state, the error reason discovered. + # Corresponds to the JSON property `errorReason` + # @return [String] + attr_accessor :error_reason + + # Output only. The processing state of the studio creative asset. + # Corresponds to the JSON property `processingState` + # @return [String] + attr_accessor :processing_state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @error_reason = args[:error_reason] if args.key?(:error_reason) + @processing_state = args[:processing_state] if args.key?(:processing_state) + end + end + # Video Settings class VideoSettings include Google::Apis::Core::Hashable diff --git a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/gem_version.rb b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/gem_version.rb index eaac599198c..78167deafb6 100644 --- a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/gem_version.rb +++ b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DfareportingV4 # Version of the google-apis-dfareporting_v4 gem - GEM_VERSION = "0.24.0" + GEM_VERSION = "0.25.0" # Version of the code generator used to generate this client GENERATOR_VERSION = "0.18.0" # Revision of the discovery document this client was generated from - REVISION = "20250902" + REVISION = "20251009" end end end diff --git a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/representations.rb b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/representations.rb index e6a0ca4aec3..d6a0f47ed00 100644 --- a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/representations.rb +++ b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/representations.rb @@ -598,6 +598,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DfareportingStudioCreativeAssetsInsertRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DfpSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -676,6 +682,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class DynamicProfileGenerateCodeResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class DynamicProfileVersion class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1462,6 +1474,30 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class StudioCreative + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StudioCreativeAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StudioCreativeAssetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class StudioCreativeDimension + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Subaccount class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1654,6 +1690,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class VideoProcessingData + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class VideoSettings class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3011,6 +3053,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class DfareportingStudioCreativeAssetsInsertRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :studio_account_id, :numeric_string => true, as: 'studioAccountId' + property :studio_advertiser_id, :numeric_string => true, as: 'studioAdvertiserId' + property :studio_creative_id, :numeric_string => true, as: 'studioCreativeId' + end + end + class DfpSettings # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3177,6 +3228,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class DynamicProfileGenerateCodeResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :code, as: 'code' + end + end + class DynamicProfileVersion # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4925,6 +4983,63 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class StudioCreative + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :asset_ids, as: 'assetIds' + property :backup_image_asset_id, :numeric_string => true, as: 'backupImageAssetId' + property :created_info, as: 'createdInfo', class: Google::Apis::DfareportingV4::LastModifiedInfo, decorator: Google::Apis::DfareportingV4::LastModifiedInfo::Representation + + property :dimension, as: 'dimension', class: Google::Apis::DfareportingV4::StudioCreativeDimension, decorator: Google::Apis::DfareportingV4::StudioCreativeDimension::Representation + + property :dynamic_profile_id, :numeric_string => true, as: 'dynamicProfileId' + property :format, as: 'format' + property :id, :numeric_string => true, as: 'id' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV4::LastModifiedInfo, decorator: Google::Apis::DfareportingV4::LastModifiedInfo::Representation + + property :name, as: 'name' + property :status, as: 'status' + property :studio_account_id, :numeric_string => true, as: 'studioAccountId' + property :studio_advertiser_id, :numeric_string => true, as: 'studioAdvertiserId' + property :studio_campaign_id, :numeric_string => true, as: 'studioCampaignId' + end + end + + class StudioCreativeAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :create_info, as: 'createInfo', class: Google::Apis::DfareportingV4::LastModifiedInfo, decorator: Google::Apis::DfareportingV4::LastModifiedInfo::Representation + + property :filename, as: 'filename' + property :filesize, :numeric_string => true, as: 'filesize' + property :id, :numeric_string => true, as: 'id' + property :last_modified_info, as: 'lastModifiedInfo', class: Google::Apis::DfareportingV4::LastModifiedInfo, decorator: Google::Apis::DfareportingV4::LastModifiedInfo::Representation + + property :studio_account_id, :numeric_string => true, as: 'studioAccountId' + property :studio_advertiser_id, :numeric_string => true, as: 'studioAdvertiserId' + property :studio_creative_id, :numeric_string => true, as: 'studioCreativeId' + property :type, as: 'type' + property :video_processing_data, as: 'videoProcessingData', class: Google::Apis::DfareportingV4::VideoProcessingData, decorator: Google::Apis::DfareportingV4::VideoProcessingData::Representation + + end + end + + class StudioCreativeAssetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :assets, as: 'assets', class: Google::Apis::DfareportingV4::StudioCreativeAsset, decorator: Google::Apis::DfareportingV4::StudioCreativeAsset::Representation + + end + end + + class StudioCreativeDimension + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :height, as: 'height' + property :width, as: 'width' + end + end + class Subaccount # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5277,6 +5392,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class VideoProcessingData + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :error_reason, as: 'errorReason' + property :processing_state, as: 'processingState' + end + end + class VideoSettings # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/service.rb b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/service.rb index c2e75a91aa9..1562037f583 100644 --- a/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/service.rb +++ b/generated/google-apis-dfareporting_v4/lib/google/apis/dfareporting_v4/service.rb @@ -3769,6 +3769,96 @@ def insert_dynamic_feed(dynamic_feeds_insert_request_object = nil, fields: nil, execute_or_queue_command(command, &block) end + # Retransforms a dynamic feed. + # @param [Fixnum] dynamic_feed_id + # Required. Dynamic feed ID. + # @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::DfareportingV4::DynamicFeed] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV4::DynamicFeed] + # + # @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 retransform_dynamic_feed(dynamic_feed_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'studio/dynamicFeeds/{+dynamicFeedId}/retransform', options) + command.response_representation = Google::Apis::DfareportingV4::DynamicFeed::Representation + command.response_class = Google::Apis::DfareportingV4::DynamicFeed + command.params['dynamicFeedId'] = dynamic_feed_id unless dynamic_feed_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 a new dynamic feed. + # @param [Google::Apis::DfareportingV4::DynamicFeed] dynamic_feed_object + # @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::DfareportingV4::DynamicFeed] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV4::DynamicFeed] + # + # @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 update_dynamic_feed(dynamic_feed_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'studio/dynamicFeeds', options) + command.request_representation = Google::Apis::DfareportingV4::DynamicFeed::Representation + command.request_object = dynamic_feed_object + command.response_representation = Google::Apis::DfareportingV4::DynamicFeed::Representation + command.response_class = Google::Apis::DfareportingV4::DynamicFeed + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Generates code for a dynamic profile. + # @param [Fixnum] dynamic_profile_id + # Required. Dynamic profile ID. + # @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::DfareportingV4::DynamicProfileGenerateCodeResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV4::DynamicProfileGenerateCodeResponse] + # + # @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 generate_dynamic_profile_code(dynamic_profile_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'studio/dynamicProfiles/{+dynamicProfileId}/generateCode', options) + command.response_representation = Google::Apis::DfareportingV4::DynamicProfileGenerateCodeResponse::Representation + command.response_class = Google::Apis::DfareportingV4::DynamicProfileGenerateCodeResponse + command.params['dynamicProfileId'] = dynamic_profile_id unless dynamic_profile_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 + # Gets a dynamic profile by ID. # @param [Fixnum] dynamic_profile_id # Required. Dynamic profile ID. @@ -3829,6 +3919,34 @@ def insert_dynamic_profile(dynamic_profile_object = nil, fields: nil, quota_user execute_or_queue_command(command, &block) end + # Publish for a dynamic profile. + # @param [Fixnum] dynamic_profile_id + # Required. Dynamic profile ID. + # @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 [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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 publish_dynamic_profile(dynamic_profile_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'studio/dynamicProfiles/{+dynamicProfileId}/publish', options) + command.params['dynamicProfileId'] = dynamic_profile_id unless dynamic_profile_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 dynamic profile. # @param [Google::Apis::DfareportingV4::DynamicProfile] dynamic_profile_object # @param [String] fields @@ -7449,6 +7567,134 @@ def list_sizes(profile_id, height: nil, iab_standard: nil, ids: nil, width: nil, execute_or_queue_command(command, &block) end + # Inserts a new studio creative asset. + # @param [Google::Apis::DfareportingV4::DfareportingStudioCreativeAssetsInsertRequest] dfareporting_studio_creative_assets_insert_request_object + # @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 [IO, String] upload_source + # IO stream or filename containing content to upload + # @param [String] content_type + # Content type of the uploaded content. + # @param [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DfareportingV4::StudioCreativeAssetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV4::StudioCreativeAssetsResponse] + # + # @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 insert_studio_creative_asset(dfareporting_studio_creative_assets_insert_request_object = nil, fields: nil, quota_user: nil, upload_source: nil, content_type: nil, options: nil, &block) + if upload_source.nil? + command = make_simple_command(:post, 'studio/creativeAssets', options) + else + command = make_upload_command(:post, 'studio/creativeAssets', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.request_representation = Google::Apis::DfareportingV4::DfareportingStudioCreativeAssetsInsertRequest::Representation + command.request_object = dfareporting_studio_creative_assets_insert_request_object + command.response_representation = Google::Apis::DfareportingV4::StudioCreativeAssetsResponse::Representation + command.response_class = Google::Apis::DfareportingV4::StudioCreativeAssetsResponse + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Gets a studio creative by ID. + # @param [Fixnum] studio_creative_id + # Required. Studio creative ID. + # @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::DfareportingV4::StudioCreative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV4::StudioCreative] + # + # @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 get_studio_creative(studio_creative_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'studio/creatives/{+studioCreativeId}', options) + command.response_representation = Google::Apis::DfareportingV4::StudioCreative::Representation + command.response_class = Google::Apis::DfareportingV4::StudioCreative + command.params['studioCreativeId'] = studio_creative_id unless studio_creative_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 + + # Inserts a new studio creative. + # @param [Google::Apis::DfareportingV4::StudioCreative] studio_creative_object + # @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::DfareportingV4::StudioCreative] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DfareportingV4::StudioCreative] + # + # @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 insert_studio_creative(studio_creative_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'studio/creatives', options) + command.request_representation = Google::Apis::DfareportingV4::StudioCreative::Representation + command.request_object = studio_creative_object + command.response_representation = Google::Apis::DfareportingV4::StudioCreative::Representation + command.response_class = Google::Apis::DfareportingV4::StudioCreative + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Publish for a studio creative. + # @param [Fixnum] studio_creative_id + # Required. Studio creative ID. + # @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 [NilClass] No result returned for this method + # @yieldparam err [StandardError] error object if request failed + # + # @return [void] + # + # @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 publish_studio_creative(studio_creative_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'studio/creatives/{+studioCreativeId}/publish', options) + command.params['studioCreativeId'] = studio_creative_id unless studio_creative_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 + # Gets one subaccount by ID. # @param [Fixnum] profile_id # User profile ID associated with this request.