diff --git a/api_names_out.yaml b/api_names_out.yaml index dfd53947380..7baf32a6dea 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -230260,6 +230260,12 @@ "/displayvideo:v4/ActiveViewVideoViewabilityMetricConfig/minimumQuartile": minimum_quartile "/displayvideo:v4/ActiveViewVideoViewabilityMetricConfig/minimumViewability": minimum_viewability "/displayvideo:v4/ActiveViewVideoViewabilityMetricConfig/minimumVolume": minimum_volume +"/displayvideo:v4/AdAsset": ad_asset +"/displayvideo:v4/AdAsset/adAssetId": ad_asset_id +"/displayvideo:v4/AdAsset/adAssetType": ad_asset_type +"/displayvideo:v4/AdAsset/entityStatus": entity_status +"/displayvideo:v4/AdAsset/name": name +"/displayvideo:v4/AdAsset/youtubeVideoAsset": youtube_video_asset "/displayvideo:v4/AdGroup": ad_group "/displayvideo:v4/AdGroup/adGroupFormat": ad_group_format "/displayvideo:v4/AdGroup/adGroupId": ad_group_id @@ -230274,6 +230280,7 @@ "/displayvideo:v4/AdGroupAd": ad_group_ad "/displayvideo:v4/AdGroupAd/adGroupAdId": ad_group_ad_id "/displayvideo:v4/AdGroupAd/adGroupId": ad_group_id +"/displayvideo:v4/AdGroupAd/adPolicy": ad_policy "/displayvideo:v4/AdGroupAd/adUrls": ad_urls "/displayvideo:v4/AdGroupAd/adUrls/ad_url": ad_url "/displayvideo:v4/AdGroupAd/advertiserId": advertiser_id @@ -230291,6 +230298,101 @@ "/displayvideo:v4/AdGroupAssignedTargetingOption": ad_group_assigned_targeting_option "/displayvideo:v4/AdGroupAssignedTargetingOption/adGroupId": ad_group_id "/displayvideo:v4/AdGroupAssignedTargetingOption/assignedTargetingOption": assigned_targeting_option +"/displayvideo:v4/AdPolicy": ad_policy +"/displayvideo:v4/AdPolicy/adPolicyApprovalStatus": ad_policy_approval_status +"/displayvideo:v4/AdPolicy/adPolicyReviewStatus": ad_policy_review_status +"/displayvideo:v4/AdPolicy/adPolicyTopicEntry": ad_policy_topic_entry +"/displayvideo:v4/AdPolicy/adPolicyTopicEntry/ad_policy_topic_entry": ad_policy_topic_entry +"/displayvideo:v4/AdPolicyCriterionRestriction": ad_policy_criterion_restriction +"/displayvideo:v4/AdPolicyCriterionRestriction/countryCriterionId": country_criterion_id +"/displayvideo:v4/AdPolicyCriterionRestriction/countryLabel": country_label +"/displayvideo:v4/AdPolicyTopicAppealInfo": ad_policy_topic_appeal_info +"/displayvideo:v4/AdPolicyTopicAppealInfo/appealFormLink": appeal_form_link +"/displayvideo:v4/AdPolicyTopicAppealInfo/appealType": appeal_type +"/displayvideo:v4/AdPolicyTopicConstraint": ad_policy_topic_constraint +"/displayvideo:v4/AdPolicyTopicConstraint/certificateDomainMismatchCountryList": certificate_domain_mismatch_country_list +"/displayvideo:v4/AdPolicyTopicConstraint/certificateMissingCountryList": certificate_missing_country_list +"/displayvideo:v4/AdPolicyTopicConstraint/countryConstraint": country_constraint +"/displayvideo:v4/AdPolicyTopicConstraint/globalCertificateDomainMismatch": global_certificate_domain_mismatch +"/displayvideo:v4/AdPolicyTopicConstraint/globalCertificateMissing": global_certificate_missing +"/displayvideo:v4/AdPolicyTopicConstraint/requestCertificateFormLink": request_certificate_form_link +"/displayvideo:v4/AdPolicyTopicConstraint/resellerConstraint": reseller_constraint +"/displayvideo:v4/AdPolicyTopicConstraintAdPolicyCountryConstraintList": ad_policy_topic_constraint_ad_policy_country_constraint_list +"/displayvideo:v4/AdPolicyTopicConstraintAdPolicyCountryConstraintList/countries": countries +"/displayvideo:v4/AdPolicyTopicConstraintAdPolicyCountryConstraintList/countries/country": country +"/displayvideo:v4/AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint": ad_policy_topic_constraint_ad_policy_global_certificate_domain_mismatch_constraint +"/displayvideo:v4/AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint": ad_policy_topic_constraint_ad_policy_global_certificate_missing_constraint +"/displayvideo:v4/AdPolicyTopicConstraintAdPolicyResellerConstraint": ad_policy_topic_constraint_ad_policy_reseller_constraint +"/displayvideo:v4/AdPolicyTopicEntry": ad_policy_topic_entry +"/displayvideo:v4/AdPolicyTopicEntry/appealInfo": appeal_info +"/displayvideo:v4/AdPolicyTopicEntry/helpCenterLink": help_center_link +"/displayvideo:v4/AdPolicyTopicEntry/policyDecisionType": policy_decision_type +"/displayvideo:v4/AdPolicyTopicEntry/policyEnforcementMeans": policy_enforcement_means +"/displayvideo:v4/AdPolicyTopicEntry/policyLabel": policy_label +"/displayvideo:v4/AdPolicyTopicEntry/policyTopic": policy_topic +"/displayvideo:v4/AdPolicyTopicEntry/policyTopicConstraints": policy_topic_constraints +"/displayvideo:v4/AdPolicyTopicEntry/policyTopicConstraints/policy_topic_constraint": policy_topic_constraint +"/displayvideo:v4/AdPolicyTopicEntry/policyTopicDescription": policy_topic_description +"/displayvideo:v4/AdPolicyTopicEntry/policyTopicEvidences": policy_topic_evidences +"/displayvideo:v4/AdPolicyTopicEntry/policyTopicEvidences/policy_topic_evidence": policy_topic_evidence +"/displayvideo:v4/AdPolicyTopicEntry/policyTopicType": policy_topic_type +"/displayvideo:v4/AdPolicyTopicEvidence": ad_policy_topic_evidence +"/displayvideo:v4/AdPolicyTopicEvidence/counterfeit": counterfeit +"/displayvideo:v4/AdPolicyTopicEvidence/destinationMismatch": destination_mismatch +"/displayvideo:v4/AdPolicyTopicEvidence/destinationNotWorking": destination_not_working +"/displayvideo:v4/AdPolicyTopicEvidence/destinationTextList": destination_text_list +"/displayvideo:v4/AdPolicyTopicEvidence/httpCode": http_code +"/displayvideo:v4/AdPolicyTopicEvidence/languageCode": language_code +"/displayvideo:v4/AdPolicyTopicEvidence/legalRemoval": legal_removal +"/displayvideo:v4/AdPolicyTopicEvidence/regionalRequirements": regional_requirements +"/displayvideo:v4/AdPolicyTopicEvidence/textList": text_list +"/displayvideo:v4/AdPolicyTopicEvidence/trademark": trademark +"/displayvideo:v4/AdPolicyTopicEvidence/websiteList": website_list +"/displayvideo:v4/AdPolicyTopicEvidenceCounterfeit": ad_policy_topic_evidence_counterfeit +"/displayvideo:v4/AdPolicyTopicEvidenceCounterfeit/owners": owners +"/displayvideo:v4/AdPolicyTopicEvidenceCounterfeit/owners/owner": owner +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationMismatch": ad_policy_topic_evidence_destination_mismatch +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationMismatch/uriTypes": uri_types +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationMismatch/uriTypes/uri_type": uri_type +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationNotWorking": ad_policy_topic_evidence_destination_not_working +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationNotWorking/device": device +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationNotWorking/dnsErrorType": dns_error_type +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationNotWorking/expandedUri": expanded_uri +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationNotWorking/httpErrorCode": http_error_code +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationNotWorking/lastCheckedTime": last_checked_time +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationTextList": ad_policy_topic_evidence_destination_text_list +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationTextList/destinationTexts": destination_texts +"/displayvideo:v4/AdPolicyTopicEvidenceDestinationTextList/destinationTexts/destination_text": destination_text +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval": ad_policy_topic_evidence_legal_removal +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/complaintType": complaint_type +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/countryRestrictions": country_restrictions +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/countryRestrictions/country_restriction": country_restriction +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/dmca": dmca +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/localLegal": local_legal +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/restrictedUris": restricted_uris +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemoval/restrictedUris/restricted_uri": restricted_uri +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemovalDmca": ad_policy_topic_evidence_legal_removal_dmca +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemovalDmca/complainant": complainant +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemovalLocalLegal": ad_policy_topic_evidence_legal_removal_local_legal +"/displayvideo:v4/AdPolicyTopicEvidenceLegalRemovalLocalLegal/lawType": law_type +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirements": ad_policy_topic_evidence_regional_requirements +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirements/regionalRequirementsEntries": regional_requirements_entries +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirements/regionalRequirementsEntries/regional_requirements_entry": regional_requirements_entry +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry": ad_policy_topic_evidence_regional_requirements_regional_requirements_entry +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry/countryRestrictions": country_restrictions +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry/countryRestrictions/country_restriction": country_restriction +"/displayvideo:v4/AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry/legalPolicy": legal_policy +"/displayvideo:v4/AdPolicyTopicEvidenceTextList": ad_policy_topic_evidence_text_list +"/displayvideo:v4/AdPolicyTopicEvidenceTextList/texts": texts +"/displayvideo:v4/AdPolicyTopicEvidenceTextList/texts/text": text +"/displayvideo:v4/AdPolicyTopicEvidenceTrademark": ad_policy_topic_evidence_trademark +"/displayvideo:v4/AdPolicyTopicEvidenceTrademark/countryRestrictions": country_restrictions +"/displayvideo:v4/AdPolicyTopicEvidenceTrademark/countryRestrictions/country_restriction": country_restriction +"/displayvideo:v4/AdPolicyTopicEvidenceTrademark/owner": owner +"/displayvideo:v4/AdPolicyTopicEvidenceTrademark/term": term +"/displayvideo:v4/AdPolicyTopicEvidenceWebsiteList": ad_policy_topic_evidence_website_list +"/displayvideo:v4/AdPolicyTopicEvidenceWebsiteList/websites": websites +"/displayvideo:v4/AdPolicyTopicEvidenceWebsiteList/websites/website": website "/displayvideo:v4/AdUrl": ad_url "/displayvideo:v4/AdUrl/type": type "/displayvideo:v4/AdUrl/url": url @@ -230539,6 +230641,12 @@ "/displayvideo:v4/BudgetSummary/prismaCpeCode": prisma_cpe_code "/displayvideo:v4/BudgetSummary/taxAmountMicros": tax_amount_micros "/displayvideo:v4/BudgetSummary/totalAmountMicros": total_amount_micros +"/displayvideo:v4/BulkCreateAdAssetsRequest": bulk_create_ad_assets_request +"/displayvideo:v4/BulkCreateAdAssetsRequest/adAssets": ad_assets +"/displayvideo:v4/BulkCreateAdAssetsRequest/adAssets/ad_asset": ad_asset +"/displayvideo:v4/BulkCreateAdAssetsResponse": bulk_create_ad_assets_response +"/displayvideo:v4/BulkCreateAdAssetsResponse/adAssets": ad_assets +"/displayvideo:v4/BulkCreateAdAssetsResponse/adAssets/ad_asset": ad_asset "/displayvideo:v4/BulkEditAdvertiserAssignedTargetingOptionsRequest": bulk_edit_advertiser_assigned_targeting_options_request "/displayvideo:v4/BulkEditAdvertiserAssignedTargetingOptionsRequest/createRequests": create_requests "/displayvideo:v4/BulkEditAdvertiserAssignedTargetingOptionsRequest/createRequests/create_request": create_request @@ -230803,6 +230911,8 @@ "/displayvideo:v4/CounterEvent": counter_event "/displayvideo:v4/CounterEvent/name": name "/displayvideo:v4/CounterEvent/reportingName": reporting_name +"/displayvideo:v4/CreateAdAssetRequest": create_ad_asset_request +"/displayvideo:v4/CreateAdAssetRequest/adAsset": ad_asset "/displayvideo:v4/CreateAssetRequest": create_asset_request "/displayvideo:v4/CreateAssetRequest/filename": filename "/displayvideo:v4/CreateAssetResponse": create_asset_response @@ -231375,6 +231485,10 @@ "/displayvideo:v4/LineItemFlight": line_item_flight "/displayvideo:v4/LineItemFlight/dateRange": date_range "/displayvideo:v4/LineItemFlight/flightDateType": flight_date_type +"/displayvideo:v4/ListAdAssetsResponse": list_ad_assets_response +"/displayvideo:v4/ListAdAssetsResponse/adAssets": ad_assets +"/displayvideo:v4/ListAdAssetsResponse/adAssets/ad_asset": ad_asset +"/displayvideo:v4/ListAdAssetsResponse/nextPageToken": next_page_token "/displayvideo:v4/ListAdGroupAdsResponse": list_ad_group_ads_response "/displayvideo:v4/ListAdGroupAdsResponse/adGroupAds": ad_group_ads "/displayvideo:v4/ListAdGroupAdsResponse/adGroupAds/ad_group_ad": ad_group_ad @@ -231515,6 +231629,10 @@ "/displayvideo:v4/ListUsersResponse/nextPageToken": next_page_token "/displayvideo:v4/ListUsersResponse/users": users "/displayvideo:v4/ListUsersResponse/users/user": user +"/displayvideo:v4/ListYoutubeAssetAssociationsResponse": list_youtube_asset_associations_response +"/displayvideo:v4/ListYoutubeAssetAssociationsResponse/nextPageToken": next_page_token +"/displayvideo:v4/ListYoutubeAssetAssociationsResponse/youtubeAssetAssociations": youtube_asset_associations +"/displayvideo:v4/ListYoutubeAssetAssociationsResponse/youtubeAssetAssociations/youtube_asset_association": youtube_asset_association "/displayvideo:v4/LocationList": location_list "/displayvideo:v4/LocationList/advertiserId": advertiser_id "/displayvideo:v4/LocationList/displayName": display_name @@ -231864,6 +231982,11 @@ "/displayvideo:v4/UniversalAdId": universal_ad_id "/displayvideo:v4/UniversalAdId/id": id "/displayvideo:v4/UniversalAdId/registry": registry +"/displayvideo:v4/UploadAdAssetRequest": upload_ad_asset_request +"/displayvideo:v4/UploadAdAssetRequest/adAssetType": ad_asset_type +"/displayvideo:v4/UploadAdAssetRequest/filename": filename +"/displayvideo:v4/UploadAdAssetResponse": upload_ad_asset_response +"/displayvideo:v4/UploadAdAssetResponse/adAsset": ad_asset "/displayvideo:v4/UrlAssignedTargetingOptionDetails": url_assigned_targeting_option_details "/displayvideo:v4/UrlAssignedTargetingOptionDetails/negative": negative "/displayvideo:v4/UrlAssignedTargetingOptionDetails/url": url @@ -231949,15 +232072,61 @@ "/displayvideo:v4/YoutubeAndPartnersSettings/videoAdInventoryControl": video_ad_inventory_control "/displayvideo:v4/YoutubeAndPartnersSettings/videoAdSequenceSettings": video_ad_sequence_settings "/displayvideo:v4/YoutubeAndPartnersSettings/viewFrequencyCap": view_frequency_cap +"/displayvideo:v4/YoutubeAssetAssociation": youtube_asset_association +"/displayvideo:v4/YoutubeAssetAssociation/linkedYoutubeAsset": linked_youtube_asset +"/displayvideo:v4/YoutubeAssetAssociation/name": name +"/displayvideo:v4/YoutubeAssetAssociation/youtubeAssetType": youtube_asset_type +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilter": youtube_asset_association_affiliate_location_asset_filter +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilter/affiliateLocationMatchingFunction": affiliate_location_matching_function +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilter/affiliateLocationMatchingType": affiliate_location_matching_type +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilter/assetSetId": asset_set_id +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain": youtube_asset_association_affiliate_location_asset_filter_affiliate_location_chain +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain/chainId": chain_id +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction": youtube_asset_association_affiliate_location_asset_filter_affiliate_location_matching_function +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction/chains": chains +"/displayvideo:v4/YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction/chains/chain": chain +"/displayvideo:v4/YoutubeAssetAssociationLinkedYouTubeAsset": youtube_asset_association_linked_you_tube_asset +"/displayvideo:v4/YoutubeAssetAssociationLinkedYouTubeAsset/affiliateLocationAssetFilter": affiliate_location_asset_filter +"/displayvideo:v4/YoutubeAssetAssociationLinkedYouTubeAsset/locationAssetFilter": location_asset_filter +"/displayvideo:v4/YoutubeAssetAssociationLinkedYouTubeAsset/sitelinkAsset": sitelink_asset +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilter": youtube_asset_association_location_asset_filter +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilter/assetSetId": asset_set_id +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilter/locationMatchingFunction": location_matching_function +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilter/locationMatchingType": location_matching_type +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction": youtube_asset_association_location_asset_filter_location_matching_function +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction/business": business +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction/labels": labels +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction/labels/label": label +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction/locationAssetIds": location_asset_ids +"/displayvideo:v4/YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction/locationAssetIds/location_asset_id": location_asset_id +"/displayvideo:v4/YoutubeAssetAssociationSitelinkAsset": youtube_asset_association_sitelink_asset +"/displayvideo:v4/YoutubeAssetAssociationSitelinkAsset/assetId": asset_id "/displayvideo:v4/YoutubeChannelAssignedTargetingOptionDetails": youtube_channel_assigned_targeting_option_details "/displayvideo:v4/YoutubeChannelAssignedTargetingOptionDetails/channelId": channel_id "/displayvideo:v4/YoutubeChannelAssignedTargetingOptionDetails/negative": negative +"/displayvideo:v4/YoutubeVideoAsset": youtube_video_asset +"/displayvideo:v4/YoutubeVideoAsset/youtubeVideoId": youtube_video_id "/displayvideo:v4/YoutubeVideoAssignedTargetingOptionDetails": youtube_video_assigned_targeting_option_details "/displayvideo:v4/YoutubeVideoAssignedTargetingOptionDetails/negative": negative "/displayvideo:v4/YoutubeVideoAssignedTargetingOptionDetails/videoId": video_id "/displayvideo:v4/YoutubeVideoDetails": youtube_video_details "/displayvideo:v4/YoutubeVideoDetails/id": id "/displayvideo:v4/YoutubeVideoDetails/unavailableReason": unavailable_reason +"/displayvideo:v4/displayvideo.advertisers.adAssets.bulkCreate": bulk_create_ad_assets +"/displayvideo:v4/displayvideo.advertisers.adAssets.bulkCreate/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adAssets.create": create_ad_asset +"/displayvideo:v4/displayvideo.advertisers.adAssets.create/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adAssets.get": get_advertiser_ad_asset +"/displayvideo:v4/displayvideo.advertisers.adAssets.get/adAssetId": ad_asset_id +"/displayvideo:v4/displayvideo.advertisers.adAssets.get/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adAssets.list": list_advertiser_ad_assets +"/displayvideo:v4/displayvideo.advertisers.adAssets.list/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adAssets.list/filter": filter +"/displayvideo:v4/displayvideo.advertisers.adAssets.list/orderBy": order_by +"/displayvideo:v4/displayvideo.advertisers.adAssets.list/pageSize": page_size +"/displayvideo:v4/displayvideo.advertisers.adAssets.list/pageToken": page_token +"/displayvideo:v4/displayvideo.advertisers.adAssets.upload": upload_ad_asset +"/displayvideo:v4/displayvideo.advertisers.adAssets.upload/advertiserId": advertiser_id "/displayvideo:v4/displayvideo.advertisers.adGroupAds.get": get_advertiser_ad_group_ad "/displayvideo:v4/displayvideo.advertisers.adGroupAds.get/adGroupAdId": ad_group_ad_id "/displayvideo:v4/displayvideo.advertisers.adGroupAds.get/advertiserId": advertiser_id @@ -231996,6 +232165,25 @@ "/displayvideo:v4/displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.list/pageSize": page_size "/displayvideo:v4/displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.list/pageToken": page_token "/displayvideo:v4/displayvideo.advertisers.adGroups.targetingTypes.assignedTargetingOptions.list/targetingType": targeting_type +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.create": create_advertiser_ad_group_youtube_asset_type_youtube_asset_association +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.create/adGroupId": ad_group_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.create/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.create/linkedEntity.lineItemId": linked_entity_line_item_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.create/youtubeAssetType": youtube_asset_type +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.delete": delete_advertiser_ad_group_youtube_asset_type_youtube_asset_association +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.delete/adGroupId": ad_group_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.delete/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.delete/linkedEntity.lineItemId": linked_entity_line_item_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.delete/youtubeAssetAssociationId": youtube_asset_association_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.delete/youtubeAssetType": youtube_asset_type +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list": list_advertiser_ad_group_youtube_asset_type_youtube_asset_associations +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/adGroupId": ad_group_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/linkedEntity.lineItemId": linked_entity_line_item_id +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/orderBy": order_by +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/pageSize": page_size +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/pageToken": page_token +"/displayvideo:v4/displayvideo.advertisers.adGroups.youtubeAssetTypes.youtubeAssetAssociations.list/youtubeAssetType": youtube_asset_type "/displayvideo:v4/displayvideo.advertisers.assets.upload": upload_advertiser_asset "/displayvideo:v4/displayvideo.advertisers.assets.upload/advertiserId": advertiser_id "/displayvideo:v4/displayvideo.advertisers.audit": audit_advertiser @@ -232219,6 +232407,25 @@ "/displayvideo:v4/displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list/pageSize": page_size "/displayvideo:v4/displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list/pageToken": page_token "/displayvideo:v4/displayvideo.advertisers.lineItems.targetingTypes.assignedTargetingOptions.list/targetingType": targeting_type +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.create": create_advertiser_line_item_youtube_asset_type_youtube_asset_association +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.create/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.create/lineItemId": line_item_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.create/linkedEntity.adGroupId": linked_entity_ad_group_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.create/youtubeAssetType": youtube_asset_type +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete": delete_advertiser_line_item_youtube_asset_type_youtube_asset_association +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete/lineItemId": line_item_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete/linkedEntity.adGroupId": linked_entity_ad_group_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete/youtubeAssetAssociationId": youtube_asset_association_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.delete/youtubeAssetType": youtube_asset_type +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list": list_advertiser_line_item_youtube_asset_type_youtube_asset_associations +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/advertiserId": advertiser_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/lineItemId": line_item_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/linkedEntity.adGroupId": linked_entity_ad_group_id +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/orderBy": order_by +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/pageSize": page_size +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/pageToken": page_token +"/displayvideo:v4/displayvideo.advertisers.lineItems.youtubeAssetTypes.youtubeAssetAssociations.list/youtubeAssetType": youtube_asset_type "/displayvideo:v4/displayvideo.advertisers.list": list_advertisers "/displayvideo:v4/displayvideo.advertisers.list/filter": filter "/displayvideo:v4/displayvideo.advertisers.list/orderBy": order_by diff --git a/generated/google-apis-displayvideo_v4/CHANGELOG.md b/generated/google-apis-displayvideo_v4/CHANGELOG.md index edb1f2ce531..d6833745be0 100644 --- a/generated/google-apis-displayvideo_v4/CHANGELOG.md +++ b/generated/google-apis-displayvideo_v4/CHANGELOG.md @@ -1,5 +1,9 @@ # Release history for google-apis-displayvideo_v4 +### v0.13.0 (2025-10-26) + +* Regenerated from discovery document revision 20251023 + ### v0.12.0 (2025-09-28) * Regenerated from discovery document revision 20250925 diff --git a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/classes.rb b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/classes.rb index 04a5bcec440..3f0fe6b967c 100644 --- a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/classes.rb +++ b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/classes.rb @@ -73,6 +73,49 @@ def update!(**args) end end + # A single ad asset. Next ID: 6 + class AdAsset + include Google::Apis::Core::Hashable + + # Output only. Asset ID of the ad asset. + # Corresponds to the JSON property `adAssetId` + # @return [Fixnum] + attr_accessor :ad_asset_id + + # Required. The type of the ad asset. + # Corresponds to the JSON property `adAssetType` + # @return [String] + attr_accessor :ad_asset_type + + # Output only. The entity status of the ad asset. + # Corresponds to the JSON property `entityStatus` + # @return [String] + attr_accessor :entity_status + + # Identifier. The resource name of the ad asset. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # The youtube video asset data of the ad asset. + # Corresponds to the JSON property `youtubeVideoAsset` + # @return [Google::Apis::DisplayvideoV4::YoutubeVideoAsset] + attr_accessor :youtube_video_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_asset_id = args[:ad_asset_id] if args.key?(:ad_asset_id) + @ad_asset_type = args[:ad_asset_type] if args.key?(:ad_asset_type) + @entity_status = args[:entity_status] if args.key?(:entity_status) + @name = args[:name] if args.key?(:name) + @youtube_video_asset = args[:youtube_video_asset] if args.key?(:youtube_video_asset) + end + end + # A single ad group associated with a line item. class AdGroup include Google::Apis::Core::Hashable @@ -164,6 +207,11 @@ class AdGroupAd # @return [Fixnum] attr_accessor :ad_group_id + # A single ad policy associated with an ad group ad. + # Corresponds to the JSON property `adPolicy` + # @return [Google::Apis::DisplayvideoV4::AdPolicy] + attr_accessor :ad_policy + # List of URLs used by the ad. # Corresponds to the JSON property `adUrls` # @return [Array] @@ -238,6 +286,7 @@ def initialize(**args) def update!(**args) @ad_group_ad_id = args[:ad_group_ad_id] if args.key?(:ad_group_ad_id) @ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id) + @ad_policy = args[:ad_policy] if args.key?(:ad_policy) @ad_urls = args[:ad_urls] if args.key?(:ad_urls) @advertiser_id = args[:advertiser_id] if args.key?(:advertiser_id) @audio_ad = args[:audio_ad] if args.key?(:audio_ad) @@ -254,21 +303,680 @@ def update!(**args) end end - # Wrapper object associating an AssignedTargetingOption resource and the ad - # group it is assigned to. - class AdGroupAssignedTargetingOption + # Wrapper object associating an AssignedTargetingOption resource and the ad + # group it is assigned to. + class AdGroupAssignedTargetingOption + include Google::Apis::Core::Hashable + + # The ID of the ad group the assigned targeting option is assigned to. + # Corresponds to the JSON property `adGroupId` + # @return [Fixnum] + attr_accessor :ad_group_id + + # A single assigned targeting option, which defines the state of a targeting + # option for an entity with targeting settings. + # Corresponds to the JSON property `assignedTargetingOption` + # @return [Google::Apis::DisplayvideoV4::AssignedTargetingOption] + attr_accessor :assigned_targeting_option + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id) + @assigned_targeting_option = args[:assigned_targeting_option] if args.key?(:assigned_targeting_option) + end + end + + # A single ad policy associated with an ad group ad. + class AdPolicy + include Google::Apis::Core::Hashable + + # The policy approval status of an ad. Indicating the ad policy approval + # decision. + # Corresponds to the JSON property `adPolicyApprovalStatus` + # @return [String] + attr_accessor :ad_policy_approval_status + + # The policy review status of an ad. Indicating where the review process the ad + # is currently at. + # Corresponds to the JSON property `adPolicyReviewStatus` + # @return [String] + attr_accessor :ad_policy_review_status + + # The policy topic entries for the ad, including the topic, restriction level, + # and guidance on how to fix policy issues. + # Corresponds to the JSON property `adPolicyTopicEntry` + # @return [Array] + attr_accessor :ad_policy_topic_entry + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_policy_approval_status = args[:ad_policy_approval_status] if args.key?(:ad_policy_approval_status) + @ad_policy_review_status = args[:ad_policy_review_status] if args.key?(:ad_policy_review_status) + @ad_policy_topic_entry = args[:ad_policy_topic_entry] if args.key?(:ad_policy_topic_entry) + end + end + + # Represents a criterion that is restricted. Today only used to represent a + # country restriction. Used by both policy evidence and policy constraints. + class AdPolicyCriterionRestriction + include Google::Apis::Core::Hashable + + # Only used today to represent a country criterion id. + # Corresponds to the JSON property `countryCriterionId` + # @return [Fixnum] + attr_accessor :country_criterion_id + + # Localized name for the country. Could be empty. + # Corresponds to the JSON property `countryLabel` + # @return [String] + attr_accessor :country_label + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_criterion_id = args[:country_criterion_id] if args.key?(:country_criterion_id) + @country_label = args[:country_label] if args.key?(:country_label) + end + end + + # Appeal related information for a policy topic. + class AdPolicyTopicAppealInfo + include Google::Apis::Core::Hashable + + # Only available when appeal_type is APPEAL_FORM. + # Corresponds to the JSON property `appealFormLink` + # @return [String] + attr_accessor :appeal_form_link + + # Indicate whether the policy topic can be self-service appeal or appeal form. + # Corresponds to the JSON property `appealType` + # @return [String] + attr_accessor :appeal_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @appeal_form_link = args[:appeal_form_link] if args.key?(:appeal_form_link) + @appeal_type = args[:appeal_type] if args.key?(:appeal_type) + end + end + + # Additional constraints information that explains restrictions applied to this + # policy. + class AdPolicyTopicConstraint + include Google::Apis::Core::Hashable + + # A list of countries where the ad cannot serve due to policy constraints. + # Corresponds to the JSON property `certificateDomainMismatchCountryList` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList] + attr_accessor :certificate_domain_mismatch_country_list + + # A list of countries where the ad cannot serve due to policy constraints. + # Corresponds to the JSON property `certificateMissingCountryList` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList] + attr_accessor :certificate_missing_country_list + + # A list of countries where the ad cannot serve due to policy constraints. + # Corresponds to the JSON property `countryConstraint` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList] + attr_accessor :country_constraint + + # Certificate is required to serve in any country and the existing certificate + # does not cover the ad's domain. + # Corresponds to the JSON property `globalCertificateDomainMismatch` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint] + attr_accessor :global_certificate_domain_mismatch + + # Certificate is required to serve in any country. + # Corresponds to the JSON property `globalCertificateMissing` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint] + attr_accessor :global_certificate_missing + + # Link to the form to request a certificate for the policy topic constraint. + # Corresponds to the JSON property `requestCertificateFormLink` + # @return [String] + attr_accessor :request_certificate_form_link + + # Policy topic was constrained due to disapproval of the website for reseller + # purposes. + # Corresponds to the JSON property `resellerConstraint` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyResellerConstraint] + attr_accessor :reseller_constraint + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @certificate_domain_mismatch_country_list = args[:certificate_domain_mismatch_country_list] if args.key?(:certificate_domain_mismatch_country_list) + @certificate_missing_country_list = args[:certificate_missing_country_list] if args.key?(:certificate_missing_country_list) + @country_constraint = args[:country_constraint] if args.key?(:country_constraint) + @global_certificate_domain_mismatch = args[:global_certificate_domain_mismatch] if args.key?(:global_certificate_domain_mismatch) + @global_certificate_missing = args[:global_certificate_missing] if args.key?(:global_certificate_missing) + @request_certificate_form_link = args[:request_certificate_form_link] if args.key?(:request_certificate_form_link) + @reseller_constraint = args[:reseller_constraint] if args.key?(:reseller_constraint) + end + end + + # A list of countries where the ad cannot serve due to policy constraints. + class AdPolicyTopicConstraintAdPolicyCountryConstraintList + include Google::Apis::Core::Hashable + + # Countries where the ad cannot serve. + # Corresponds to the JSON property `countries` + # @return [Array] + attr_accessor :countries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @countries = args[:countries] if args.key?(:countries) + end + end + + # Certificate is required to serve in any country and the existing certificate + # does not cover the ad's domain. + class AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Certificate is required to serve in any country. + class AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Policy topic was constrained due to disapproval of the website for reseller + # purposes. + class AdPolicyTopicConstraintAdPolicyResellerConstraint + include Google::Apis::Core::Hashable + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + end + end + + # Policy topic entry. + class AdPolicyTopicEntry + include Google::Apis::Core::Hashable + + # Appeal related information for a policy topic. + # Corresponds to the JSON property `appealInfo` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicAppealInfo] + attr_accessor :appeal_info + + # Ad policy help center link for the policy topic. + # Corresponds to the JSON property `helpCenterLink` + # @return [String] + attr_accessor :help_center_link + + # The source of the policy decision. + # Corresponds to the JSON property `policyDecisionType` + # @return [String] + attr_accessor :policy_decision_type + + # The policy enforcement means used in the policy review. + # Corresponds to the JSON property `policyEnforcementMeans` + # @return [String] + attr_accessor :policy_enforcement_means + + # Localized label text for policy. (Trademarks in text, Contains Alcohol, etc.) + # Corresponds to the JSON property `policyLabel` + # @return [String] + attr_accessor :policy_label + + # The policy topic of an ad policy topic entry. (TRADEMARKS, ALCOHOL, etc.) + # Corresponds to the JSON property `policyTopic` + # @return [String] + attr_accessor :policy_topic + + # The policy topic constraints. + # Corresponds to the JSON property `policyTopicConstraints` + # @return [Array] + attr_accessor :policy_topic_constraints + + # Short summary description of the policy topic. + # Corresponds to the JSON property `policyTopicDescription` + # @return [String] + attr_accessor :policy_topic_description + + # The policy topic evidences. + # Corresponds to the JSON property `policyTopicEvidences` + # @return [Array] + attr_accessor :policy_topic_evidences + + # The policy topic entry type. + # Corresponds to the JSON property `policyTopicType` + # @return [String] + attr_accessor :policy_topic_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @appeal_info = args[:appeal_info] if args.key?(:appeal_info) + @help_center_link = args[:help_center_link] if args.key?(:help_center_link) + @policy_decision_type = args[:policy_decision_type] if args.key?(:policy_decision_type) + @policy_enforcement_means = args[:policy_enforcement_means] if args.key?(:policy_enforcement_means) + @policy_label = args[:policy_label] if args.key?(:policy_label) + @policy_topic = args[:policy_topic] if args.key?(:policy_topic) + @policy_topic_constraints = args[:policy_topic_constraints] if args.key?(:policy_topic_constraints) + @policy_topic_description = args[:policy_topic_description] if args.key?(:policy_topic_description) + @policy_topic_evidences = args[:policy_topic_evidences] if args.key?(:policy_topic_evidences) + @policy_topic_type = args[:policy_topic_type] if args.key?(:policy_topic_type) + end + end + + # Additional evidence information that explains a policy decision. + class AdPolicyTopicEvidence + include Google::Apis::Core::Hashable + + # Counterfeit enforcement that caused a policy violation. + # Corresponds to the JSON property `counterfeit` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceCounterfeit] + attr_accessor :counterfeit + + # A list of destination mismatch URL types. + # Corresponds to the JSON property `destinationMismatch` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationMismatch] + attr_accessor :destination_mismatch + + # Evidence details for destination not working policy violations. + # Corresponds to the JSON property `destinationNotWorking` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationNotWorking] + attr_accessor :destination_not_working + + # A list of destination text that violated the policy. + # Corresponds to the JSON property `destinationTextList` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationTextList] + attr_accessor :destination_text_list + + # HTTP code returned when the final URL was crawled. + # Corresponds to the JSON property `httpCode` + # @return [Fixnum] + attr_accessor :http_code + + # The language the ad was detected to be written in. This is an IETF language + # tag such as "en-US". + # Corresponds to the JSON property `languageCode` + # @return [String] + attr_accessor :language_code + + # Legal related regulation enforcement, either from DMCA or local legal. + # Corresponds to the JSON property `legalRemoval` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemoval] + attr_accessor :legal_removal + + # T&S proactive enforcement for policies meant to address regional requirements. + # This is considered as Google owned investigation instead of regulation notice + # since it's a T&S proactive enforcement. + # Corresponds to the JSON property `regionalRequirements` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceRegionalRequirements] + attr_accessor :regional_requirements + + # A list of fragments of text that violated the policy. + # Corresponds to the JSON property `textList` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceTextList] + attr_accessor :text_list + + # Trademark terms that caused a policy violation. + # Corresponds to the JSON property `trademark` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceTrademark] + attr_accessor :trademark + + # A list of websites that violated the policy. + # Corresponds to the JSON property `websiteList` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceWebsiteList] + attr_accessor :website_list + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @counterfeit = args[:counterfeit] if args.key?(:counterfeit) + @destination_mismatch = args[:destination_mismatch] if args.key?(:destination_mismatch) + @destination_not_working = args[:destination_not_working] if args.key?(:destination_not_working) + @destination_text_list = args[:destination_text_list] if args.key?(:destination_text_list) + @http_code = args[:http_code] if args.key?(:http_code) + @language_code = args[:language_code] if args.key?(:language_code) + @legal_removal = args[:legal_removal] if args.key?(:legal_removal) + @regional_requirements = args[:regional_requirements] if args.key?(:regional_requirements) + @text_list = args[:text_list] if args.key?(:text_list) + @trademark = args[:trademark] if args.key?(:trademark) + @website_list = args[:website_list] if args.key?(:website_list) + end + end + + # Counterfeit enforcement that caused a policy violation. + class AdPolicyTopicEvidenceCounterfeit + include Google::Apis::Core::Hashable + + # The content or product owners that make the complainants. + # Corresponds to the JSON property `owners` + # @return [Array] + attr_accessor :owners + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @owners = args[:owners] if args.key?(:owners) + end + end + + # A list of destination mismatch URL types. + class AdPolicyTopicEvidenceDestinationMismatch + include Google::Apis::Core::Hashable + + # The set of URLs that do not match each other. The list can include single or + # multiple uri types. Example 1: [DISPLAY_URL, FINAL_URL] means ad display URL + # does not match with the ad final URL. Example 2: [FINAL_URL] means ad final + # URL did not match the crawled url, which is also considered as + # destinationmismatch. + # Corresponds to the JSON property `uriTypes` + # @return [Array] + attr_accessor :uri_types + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @uri_types = args[:uri_types] if args.key?(:uri_types) + end + end + + # Evidence details for destination not working policy violations. + class AdPolicyTopicEvidenceDestinationNotWorking + include Google::Apis::Core::Hashable + + # The device platform of the not working url. + # Corresponds to the JSON property `device` + # @return [String] + attr_accessor :device + + # The type of DNS error. + # Corresponds to the JSON property `dnsErrorType` + # @return [String] + attr_accessor :dns_error_type + + # The full URL that didn't work. + # Corresponds to the JSON property `expandedUri` + # @return [String] + attr_accessor :expanded_uri + + # The HTTP error code. + # Corresponds to the JSON property `httpErrorCode` + # @return [Fixnum] + attr_accessor :http_error_code + + # The last checked time of the not working url. + # Corresponds to the JSON property `lastCheckedTime` + # @return [String] + attr_accessor :last_checked_time + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @device = args[:device] if args.key?(:device) + @dns_error_type = args[:dns_error_type] if args.key?(:dns_error_type) + @expanded_uri = args[:expanded_uri] if args.key?(:expanded_uri) + @http_error_code = args[:http_error_code] if args.key?(:http_error_code) + @last_checked_time = args[:last_checked_time] if args.key?(:last_checked_time) + end + end + + # A list of destination text that violated the policy. + class AdPolicyTopicEvidenceDestinationTextList + include Google::Apis::Core::Hashable + + # Destination text that caused the policy finding. + # Corresponds to the JSON property `destinationTexts` + # @return [Array] + attr_accessor :destination_texts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @destination_texts = args[:destination_texts] if args.key?(:destination_texts) + end + end + + # Legal related regulation enforcement, either from DMCA or local legal. + class AdPolicyTopicEvidenceLegalRemoval + include Google::Apis::Core::Hashable + + # The legal removal complaint type. + # Corresponds to the JSON property `complaintType` + # @return [String] + attr_accessor :complaint_type + + # The restricted countries due to the legal removal. + # Corresponds to the JSON property `countryRestrictions` + # @return [Array] + attr_accessor :country_restrictions + + # DMCA related regulation enforcement. + # Corresponds to the JSON property `dmca` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemovalDmca] + attr_accessor :dmca + + # Local legal related regulation enforcement. + # Corresponds to the JSON property `localLegal` + # @return [Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemovalLocalLegal] + attr_accessor :local_legal + + # The urls that are restricted due to the legal removal. + # Corresponds to the JSON property `restrictedUris` + # @return [Array] + attr_accessor :restricted_uris + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @complaint_type = args[:complaint_type] if args.key?(:complaint_type) + @country_restrictions = args[:country_restrictions] if args.key?(:country_restrictions) + @dmca = args[:dmca] if args.key?(:dmca) + @local_legal = args[:local_legal] if args.key?(:local_legal) + @restricted_uris = args[:restricted_uris] if args.key?(:restricted_uris) + end + end + + # DMCA related regulation enforcement. + class AdPolicyTopicEvidenceLegalRemovalDmca + include Google::Apis::Core::Hashable + + # The entity who makes the legal complaint. + # Corresponds to the JSON property `complainant` + # @return [String] + attr_accessor :complainant + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @complainant = args[:complainant] if args.key?(:complainant) + end + end + + # Local legal related regulation enforcement. + class AdPolicyTopicEvidenceLegalRemovalLocalLegal + include Google::Apis::Core::Hashable + + # Type of law for the legal notice. + # Corresponds to the JSON property `lawType` + # @return [String] + attr_accessor :law_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @law_type = args[:law_type] if args.key?(:law_type) + end + end + + # T&S proactive enforcement for policies meant to address regional requirements. + # This is considered as Google owned investigation instead of regulation notice + # since it's a T&S proactive enforcement. + class AdPolicyTopicEvidenceRegionalRequirements + include Google::Apis::Core::Hashable + + # List of regional requirements. + # Corresponds to the JSON property `regionalRequirementsEntries` + # @return [Array] + attr_accessor :regional_requirements_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @regional_requirements_entries = args[:regional_requirements_entries] if args.key?(:regional_requirements_entries) + end + end + + # Policy level regional legal violation details. + class AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry + include Google::Apis::Core::Hashable + + # The restricted countries due to the legal policy. + # Corresponds to the JSON property `countryRestrictions` + # @return [Array] + attr_accessor :country_restrictions + + # The legal policy that is violated. + # Corresponds to the JSON property `legalPolicy` + # @return [String] + attr_accessor :legal_policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_restrictions = args[:country_restrictions] if args.key?(:country_restrictions) + @legal_policy = args[:legal_policy] if args.key?(:legal_policy) + end + end + + # A list of fragments of text that violated the policy. + class AdPolicyTopicEvidenceTextList + include Google::Apis::Core::Hashable + + # The fragments of text from the resource that caused the policy finding. + # Corresponds to the JSON property `texts` + # @return [Array] + attr_accessor :texts + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @texts = args[:texts] if args.key?(:texts) + end + end + + # Trademark terms that caused a policy violation. + class AdPolicyTopicEvidenceTrademark + include Google::Apis::Core::Hashable + + # Criteria that are geo restrictions. + # Corresponds to the JSON property `countryRestrictions` + # @return [Array] + attr_accessor :country_restrictions + + # The trademark content owner. + # Corresponds to the JSON property `owner` + # @return [String] + attr_accessor :owner + + # The trademark term. + # Corresponds to the JSON property `term` + # @return [String] + attr_accessor :term + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @country_restrictions = args[:country_restrictions] if args.key?(:country_restrictions) + @owner = args[:owner] if args.key?(:owner) + @term = args[:term] if args.key?(:term) + end + end + + # A list of websites that violated the policy. + class AdPolicyTopicEvidenceWebsiteList include Google::Apis::Core::Hashable - # The ID of the ad group the assigned targeting option is assigned to. - # Corresponds to the JSON property `adGroupId` - # @return [Fixnum] - attr_accessor :ad_group_id - - # A single assigned targeting option, which defines the state of a targeting - # option for an entity with targeting settings. - # Corresponds to the JSON property `assignedTargetingOption` - # @return [Google::Apis::DisplayvideoV4::AssignedTargetingOption] - attr_accessor :assigned_targeting_option + # Websites that caused the policy finding. + # Corresponds to the JSON property `websites` + # @return [Array] + attr_accessor :websites def initialize(**args) update!(**args) @@ -276,8 +984,7 @@ def initialize(**args) # Update properties of this object def update!(**args) - @ad_group_id = args[:ad_group_id] if args.key?(:ad_group_id) - @assigned_targeting_option = args[:assigned_targeting_option] if args.key?(:assigned_targeting_option) + @websites = args[:websites] if args.key?(:websites) end end @@ -2344,6 +3051,44 @@ def update!(**args) end end + # A request message for BulkCreateAdAssets. + class BulkCreateAdAssetsRequest + include Google::Apis::Core::Hashable + + # Required. Ad assets to create. Only supports youtube video assets for now. + # Corresponds to the JSON property `adAssets` + # @return [Array] + attr_accessor :ad_assets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_assets = args[:ad_assets] if args.key?(:ad_assets) + end + end + + # A response message for BulkCreateAdAssets. + class BulkCreateAdAssetsResponse + include Google::Apis::Core::Hashable + + # The uploaded video ad assets, if successful. + # Corresponds to the JSON property `adAssets` + # @return [Array] + attr_accessor :ad_assets + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_assets = args[:ad_assets] if args.key?(:ad_assets) + end + end + # Request message for BulkEditAdvertiserAssignedTargetingOptions. class BulkEditAdvertiserAssignedTargetingOptionsRequest include Google::Apis::Core::Hashable @@ -4302,6 +5047,25 @@ def update!(**args) end end + # A request message for CreateAdAsset. + class CreateAdAssetRequest + include Google::Apis::Core::Hashable + + # A single ad asset. Next ID: 6 + # Corresponds to the JSON property `adAsset` + # @return [Google::Apis::DisplayvideoV4::AdAsset] + attr_accessor :ad_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_asset = args[:ad_asset] if args.key?(:ad_asset) + end + end + # A request message for CreateAsset. class CreateAssetRequest include Google::Apis::Core::Hashable @@ -8683,6 +9447,33 @@ def update!(**args) end end + # A response message for ListAdAssets. + class ListAdAssetsResponse + include Google::Apis::Core::Hashable + + # The list of ad assets. This list will be absent if empty. + # Corresponds to the JSON property `adAssets` + # @return [Array] + attr_accessor :ad_assets + + # A token to retrieve the next page of results. Pass this value in the + # page_token field in the subsequent call to `ListAdAssets` method to retrieve + # the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_assets = args[:ad_assets] if args.key?(:ad_assets) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + end + end + # class ListAdGroupAdsResponse include Google::Apis::Core::Hashable @@ -9644,6 +10435,32 @@ def update!(**args) end end + # Response message for YoutubeAssetAssociationService. + # ListYoutubeAssetAssociations. + class ListYoutubeAssetAssociationsResponse + include Google::Apis::Core::Hashable + + # A token to retrieve the next page of results. + # Corresponds to the JSON property `nextPageToken` + # @return [String] + attr_accessor :next_page_token + + # The list of associations. This list will be absent if empty. + # Corresponds to the JSON property `youtubeAssetAssociations` + # @return [Array] + attr_accessor :youtube_asset_associations + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @next_page_token = args[:next_page_token] if args.key?(:next_page_token) + @youtube_asset_associations = args[:youtube_asset_associations] if args.key?(:youtube_asset_associations) + end + end + # A list of locations used for targeting. class LocationList include Google::Apis::Core::Hashable @@ -12542,6 +13359,51 @@ def update!(**args) end end + # A request message for UploadAdAsset. Next ID: 6 + class UploadAdAssetRequest + include Google::Apis::Core::Hashable + + # Required. The type of the ad asset. Only supports image assets for now. + # Corresponds to the JSON property `adAssetType` + # @return [String] + attr_accessor :ad_asset_type + + # Required. The filename of the ad asset, including the file extension. The + # filename must be UTF-8 encoded with a maximum size of 240 bytes. + # Corresponds to the JSON property `filename` + # @return [String] + attr_accessor :filename + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_asset_type = args[:ad_asset_type] if args.key?(:ad_asset_type) + @filename = args[:filename] if args.key?(:filename) + end + end + + # A response message for UploadAdAsset. + class UploadAdAssetResponse + include Google::Apis::Core::Hashable + + # A single ad asset. Next ID: 6 + # Corresponds to the JSON property `adAsset` + # @return [Google::Apis::DisplayvideoV4::AdAsset] + attr_accessor :ad_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ad_asset = args[:ad_asset] if args.key?(:ad_asset) + end + end + # Details for assigned URL targeting option. This will be populated in the # details field of an AssignedTargetingOption when targeting_type is ` # TARGETING_TYPE_URL`. @@ -13162,6 +14024,238 @@ def update!(**args) end end + # A YouTube asset association between one linked entity and one YouTube asset. + class YoutubeAssetAssociation + include Google::Apis::Core::Hashable + + # The YouTube asset linked with the entity in a YouTube asset association. + # Corresponds to the JSON property `linkedYoutubeAsset` + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLinkedYouTubeAsset] + attr_accessor :linked_youtube_asset + + # Identifier. The resource name of the association. For line item level + # associations: The name pattern is `advertisers/`advertiser_id`/lineItems/` + # line_item_id`/youtubeAssetTypes/`youtube_asset_type`/youtubeAssetAssociations/` + # youtube_asset_association_id``. For ad group level associations: The name + # pattern is `advertisers/`advertiser_id`/adGroups/`ad_group_id`/ + # youtubeAssetTypes/`youtube_asset_type`/youtubeAssetAssociations/` + # youtube_asset_association_id``. For location and affiliate location + # associations: `youtube_asset_association_id` is the linked asset set ID if the + # YouTube asset type (location or affiliate location) is enabled on the linked + # line item or ad group, 0 if disabled. For sitelink associations: ` + # youtube_asset_association_id` is the linked asset ID. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The type of the linked YouTube asset in the association. + # Corresponds to the JSON property `youtubeAssetType` + # @return [String] + attr_accessor :youtube_asset_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @linked_youtube_asset = args[:linked_youtube_asset] if args.key?(:linked_youtube_asset) + @name = args[:name] if args.key?(:name) + @youtube_asset_type = args[:youtube_asset_type] if args.key?(:youtube_asset_type) + end + end + + # An asset filter that matches eligible affiliate location assets for serving. + class YoutubeAssetAssociationAffiliateLocationAssetFilter + include Google::Apis::Core::Hashable + + # The matching function for an affiliate location asset filter. + # Corresponds to the JSON property `affiliateLocationMatchingFunction` + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction] + attr_accessor :affiliate_location_matching_function + + # Required. The matching type of this affiliate location asset filter. + # Corresponds to the JSON property `affiliateLocationMatchingType` + # @return [String] + attr_accessor :affiliate_location_matching_type + + # Output only. The ID of the asset set that matches the affiliate location + # assets eligible for serving. + # Corresponds to the JSON property `assetSetId` + # @return [Fixnum] + attr_accessor :asset_set_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @affiliate_location_matching_function = args[:affiliate_location_matching_function] if args.key?(:affiliate_location_matching_function) + @affiliate_location_matching_type = args[:affiliate_location_matching_type] if args.key?(:affiliate_location_matching_type) + @asset_set_id = args[:asset_set_id] if args.key?(:asset_set_id) + end + end + + # A chain for affiliate locations. + class YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain + include Google::Apis::Core::Hashable + + # Required. ID of the affiliate location chain. + # Corresponds to the JSON property `chainId` + # @return [Fixnum] + attr_accessor :chain_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chain_id = args[:chain_id] if args.key?(:chain_id) + end + end + + # The matching function for an affiliate location asset filter. + class YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction + include Google::Apis::Core::Hashable + + # Optional. The chains that match the affiliate location assets for serving. + # This is required to set when linking with affiliate location asset filters of + # AffiliateLocationMatchingType#SELECTED_CHAINS. + # Corresponds to the JSON property `chains` + # @return [Array] + attr_accessor :chains + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @chains = args[:chains] if args.key?(:chains) + end + end + + # The YouTube asset linked with the entity in a YouTube asset association. + class YoutubeAssetAssociationLinkedYouTubeAsset + include Google::Apis::Core::Hashable + + # An asset filter that matches eligible affiliate location assets for serving. + # Corresponds to the JSON property `affiliateLocationAssetFilter` + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilter] + attr_accessor :affiliate_location_asset_filter + + # An asset filter that matches eligible location assets for serving. + # Corresponds to the JSON property `locationAssetFilter` + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLocationAssetFilter] + attr_accessor :location_asset_filter + + # A sitelink asset. + # Corresponds to the JSON property `sitelinkAsset` + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociationSitelinkAsset] + attr_accessor :sitelink_asset + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @affiliate_location_asset_filter = args[:affiliate_location_asset_filter] if args.key?(:affiliate_location_asset_filter) + @location_asset_filter = args[:location_asset_filter] if args.key?(:location_asset_filter) + @sitelink_asset = args[:sitelink_asset] if args.key?(:sitelink_asset) + end + end + + # An asset filter that matches eligible location assets for serving. + class YoutubeAssetAssociationLocationAssetFilter + include Google::Apis::Core::Hashable + + # Output only. The ID of the asset set that matches the location assets eligible + # for serving. + # Corresponds to the JSON property `assetSetId` + # @return [Fixnum] + attr_accessor :asset_set_id + + # The matching function for a location asset filter. + # Corresponds to the JSON property `locationMatchingFunction` + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction] + attr_accessor :location_matching_function + + # Required. The matching type of this location asset filter. + # Corresponds to the JSON property `locationMatchingType` + # @return [String] + attr_accessor :location_matching_type + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_set_id = args[:asset_set_id] if args.key?(:asset_set_id) + @location_matching_function = args[:location_matching_function] if args.key?(:location_matching_function) + @location_matching_type = args[:location_matching_type] if args.key?(:location_matching_type) + end + end + + # The matching function for a location asset filter. + class YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction + include Google::Apis::Core::Hashable + + # Optional. The business name filter. This can be set only when linking with + # location asset filters of LocationMatchingType#FILTER. This is optional when + # linking with location asset filters of LocationMatchingType#FILTER. + # Corresponds to the JSON property `business` + # @return [String] + attr_accessor :business + + # Optional. The label filters. Label filters are OR'ed together. This can be set + # only when linking with location asset filters of LocationMatchingType#FILTER. + # This is optional when linking with location asset filters of + # LocationMatchingType#FILTER. + # Corresponds to the JSON property `labels` + # @return [Array] + attr_accessor :labels + + # Optional. The selected location asset IDs. This is required to set when + # linking with location asset filters of LocationMatchingType#SELECTED_ASSETS. + # Corresponds to the JSON property `locationAssetIds` + # @return [Array] + attr_accessor :location_asset_ids + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @business = args[:business] if args.key?(:business) + @labels = args[:labels] if args.key?(:labels) + @location_asset_ids = args[:location_asset_ids] if args.key?(:location_asset_ids) + end + end + + # A sitelink asset. + class YoutubeAssetAssociationSitelinkAsset + include Google::Apis::Core::Hashable + + # Required. ID of the sitelink asset. + # Corresponds to the JSON property `assetId` + # @return [Fixnum] + attr_accessor :asset_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @asset_id = args[:asset_id] if args.key?(:asset_id) + end + end + # Details for YouTube channel assigned targeting option. This will be populated # in the youtube_channel_details field when targeting_type is ` # TARGETING_TYPE_YOUTUBE_CHANNEL`. @@ -13190,6 +14284,26 @@ def update!(**args) end end + # The youtube video asset data of the ad asset. + class YoutubeVideoAsset + include Google::Apis::Core::Hashable + + # Required. The youtube video id of the asset. This is the 11 char string value + # used in the Youtube video URL. + # Corresponds to the JSON property `youtubeVideoId` + # @return [String] + attr_accessor :youtube_video_id + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @youtube_video_id = args[:youtube_video_id] if args.key?(:youtube_video_id) + end + end + # Details for YouTube video assigned targeting option. This will be populated in # the youtube_video_details field when targeting_type is ` # TARGETING_TYPE_YOUTUBE_VIDEO`. diff --git a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/gem_version.rb b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/gem_version.rb index 90bffe84ae1..e87c9f4a307 100644 --- a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/gem_version.rb +++ b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/gem_version.rb @@ -16,13 +16,13 @@ module Google module Apis module DisplayvideoV4 # Version of the google-apis-displayvideo_v4 gem - GEM_VERSION = "0.12.0" + GEM_VERSION = "0.13.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 = "20250925" + REVISION = "20251023" end end end diff --git a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/representations.rb b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/representations.rb index 6467a1aaa61..e72ccad64e2 100644 --- a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/representations.rb +++ b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/representations.rb @@ -28,6 +28,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AdAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AdGroup class Representation < Google::Apis::Core::JsonRepresentation; end @@ -46,6 +52,138 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class AdPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyCriterionRestriction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicAppealInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicConstraint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicConstraintAdPolicyCountryConstraintList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicConstraintAdPolicyResellerConstraint + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidence + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceCounterfeit + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceDestinationMismatch + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceDestinationNotWorking + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceDestinationTextList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceLegalRemoval + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceLegalRemovalDmca + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceLegalRemovalLocalLegal + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceRegionalRequirements + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceTextList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceTrademark + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class AdPolicyTopicEvidenceWebsiteList + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AdUrl class Representation < Google::Apis::Core::JsonRepresentation; end @@ -298,6 +436,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class BulkCreateAdAssetsRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class BulkCreateAdAssetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BulkEditAdvertiserAssignedTargetingOptionsRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -658,6 +808,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class CreateAdAssetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class CreateAssetRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1270,6 +1426,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListAdAssetsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ListAdGroupAdsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1480,6 +1642,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class ListYoutubeAssetAssociationsResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class LocationList class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1948,6 +2116,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class UploadAdAssetRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class UploadAdAssetResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class UrlAssignedTargetingOptionDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2044,12 +2224,66 @@ class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class YoutubeAssetAssociation + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationAffiliateLocationAssetFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationLinkedYouTubeAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationLocationAssetFilter + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class YoutubeAssetAssociationSitelinkAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class YoutubeChannelAssignedTargetingOptionDetails class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end + class YoutubeVideoAsset + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class YoutubeVideoAssignedTargetingOptionDetails class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2073,6 +2307,18 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class AdAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_asset_id, :numeric_string => true, as: 'adAssetId' + property :ad_asset_type, as: 'adAssetType' + property :entity_status, as: 'entityStatus' + property :name, as: 'name' + property :youtube_video_asset, as: 'youtubeVideoAsset', class: Google::Apis::DisplayvideoV4::YoutubeVideoAsset, decorator: Google::Apis::DisplayvideoV4::YoutubeVideoAsset::Representation + + end + end + class AdGroup # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2097,6 +2343,8 @@ class AdGroupAd class Representation < Google::Apis::Core::JsonRepresentation property :ad_group_ad_id, :numeric_string => true, as: 'adGroupAdId' property :ad_group_id, :numeric_string => true, as: 'adGroupId' + property :ad_policy, as: 'adPolicy', class: Google::Apis::DisplayvideoV4::AdPolicy, decorator: Google::Apis::DisplayvideoV4::AdPolicy::Representation + collection :ad_urls, as: 'adUrls', class: Google::Apis::DisplayvideoV4::AdUrl, decorator: Google::Apis::DisplayvideoV4::AdUrl::Representation property :advertiser_id, :numeric_string => true, as: 'advertiserId' @@ -2131,6 +2379,223 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class AdPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_policy_approval_status, as: 'adPolicyApprovalStatus' + property :ad_policy_review_status, as: 'adPolicyReviewStatus' + collection :ad_policy_topic_entry, as: 'adPolicyTopicEntry', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEntry, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEntry::Representation + + end + end + + class AdPolicyCriterionRestriction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :country_criterion_id, :numeric_string => true, as: 'countryCriterionId' + property :country_label, as: 'countryLabel' + end + end + + class AdPolicyTopicAppealInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :appeal_form_link, as: 'appealFormLink' + property :appeal_type, as: 'appealType' + end + end + + class AdPolicyTopicConstraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :certificate_domain_mismatch_country_list, as: 'certificateDomainMismatchCountryList', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList::Representation + + property :certificate_missing_country_list, as: 'certificateMissingCountryList', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList::Representation + + property :country_constraint, as: 'countryConstraint', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyCountryConstraintList::Representation + + property :global_certificate_domain_mismatch, as: 'globalCertificateDomainMismatch', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint::Representation + + property :global_certificate_missing, as: 'globalCertificateMissing', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint::Representation + + property :request_certificate_form_link, as: 'requestCertificateFormLink' + property :reseller_constraint, as: 'resellerConstraint', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyResellerConstraint, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraintAdPolicyResellerConstraint::Representation + + end + end + + class AdPolicyTopicConstraintAdPolicyCountryConstraintList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :countries, as: 'countries', class: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction, decorator: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction::Representation + + end + end + + class AdPolicyTopicConstraintAdPolicyGlobalCertificateDomainMismatchConstraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class AdPolicyTopicConstraintAdPolicyGlobalCertificateMissingConstraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class AdPolicyTopicConstraintAdPolicyResellerConstraint + # @private + class Representation < Google::Apis::Core::JsonRepresentation + end + end + + class AdPolicyTopicEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :appeal_info, as: 'appealInfo', class: Google::Apis::DisplayvideoV4::AdPolicyTopicAppealInfo, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicAppealInfo::Representation + + property :help_center_link, as: 'helpCenterLink' + property :policy_decision_type, as: 'policyDecisionType' + property :policy_enforcement_means, as: 'policyEnforcementMeans' + property :policy_label, as: 'policyLabel' + property :policy_topic, as: 'policyTopic' + collection :policy_topic_constraints, as: 'policyTopicConstraints', class: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraint, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicConstraint::Representation + + property :policy_topic_description, as: 'policyTopicDescription' + collection :policy_topic_evidences, as: 'policyTopicEvidences', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidence, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidence::Representation + + property :policy_topic_type, as: 'policyTopicType' + end + end + + class AdPolicyTopicEvidence + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :counterfeit, as: 'counterfeit', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceCounterfeit, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceCounterfeit::Representation + + property :destination_mismatch, as: 'destinationMismatch', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationMismatch, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationMismatch::Representation + + property :destination_not_working, as: 'destinationNotWorking', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationNotWorking, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationNotWorking::Representation + + property :destination_text_list, as: 'destinationTextList', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationTextList, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceDestinationTextList::Representation + + property :http_code, as: 'httpCode' + property :language_code, as: 'languageCode' + property :legal_removal, as: 'legalRemoval', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemoval, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemoval::Representation + + property :regional_requirements, as: 'regionalRequirements', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceRegionalRequirements, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceRegionalRequirements::Representation + + property :text_list, as: 'textList', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceTextList, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceTextList::Representation + + property :trademark, as: 'trademark', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceTrademark, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceTrademark::Representation + + property :website_list, as: 'websiteList', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceWebsiteList, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceWebsiteList::Representation + + end + end + + class AdPolicyTopicEvidenceCounterfeit + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :owners, as: 'owners' + end + end + + class AdPolicyTopicEvidenceDestinationMismatch + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :uri_types, as: 'uriTypes' + end + end + + class AdPolicyTopicEvidenceDestinationNotWorking + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :device, as: 'device' + property :dns_error_type, as: 'dnsErrorType' + property :expanded_uri, as: 'expandedUri' + property :http_error_code, :numeric_string => true, as: 'httpErrorCode' + property :last_checked_time, as: 'lastCheckedTime' + end + end + + class AdPolicyTopicEvidenceDestinationTextList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :destination_texts, as: 'destinationTexts' + end + end + + class AdPolicyTopicEvidenceLegalRemoval + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :complaint_type, as: 'complaintType' + collection :country_restrictions, as: 'countryRestrictions', class: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction, decorator: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction::Representation + + property :dmca, as: 'dmca', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemovalDmca, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemovalDmca::Representation + + property :local_legal, as: 'localLegal', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemovalLocalLegal, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceLegalRemovalLocalLegal::Representation + + collection :restricted_uris, as: 'restrictedUris' + end + end + + class AdPolicyTopicEvidenceLegalRemovalDmca + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :complainant, as: 'complainant' + end + end + + class AdPolicyTopicEvidenceLegalRemovalLocalLegal + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :law_type, as: 'lawType' + end + end + + class AdPolicyTopicEvidenceRegionalRequirements + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :regional_requirements_entries, as: 'regionalRequirementsEntries', class: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry, decorator: Google::Apis::DisplayvideoV4::AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry::Representation + + end + end + + class AdPolicyTopicEvidenceRegionalRequirementsRegionalRequirementsEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :country_restrictions, as: 'countryRestrictions', class: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction, decorator: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction::Representation + + property :legal_policy, as: 'legalPolicy' + end + end + + class AdPolicyTopicEvidenceTextList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :texts, as: 'texts' + end + end + + class AdPolicyTopicEvidenceTrademark + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :country_restrictions, as: 'countryRestrictions', class: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction, decorator: Google::Apis::DisplayvideoV4::AdPolicyCriterionRestriction::Representation + + property :owner, as: 'owner' + property :term, as: 'term' + end + end + + class AdPolicyTopicEvidenceWebsiteList + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :websites, as: 'websites' + end + end + class AdUrl # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2667,6 +3132,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class BulkCreateAdAssetsRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ad_assets, as: 'adAssets', class: Google::Apis::DisplayvideoV4::AdAsset, decorator: Google::Apis::DisplayvideoV4::AdAsset::Representation + + end + end + + class BulkCreateAdAssetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ad_assets, as: 'adAssets', class: Google::Apis::DisplayvideoV4::AdAsset, decorator: Google::Apis::DisplayvideoV4::AdAsset::Representation + + end + end + class BulkEditAdvertiserAssignedTargetingOptionsRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3223,6 +3704,14 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class CreateAdAssetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_asset, as: 'adAsset', class: Google::Apis::DisplayvideoV4::AdAsset, decorator: Google::Apis::DisplayvideoV4::AdAsset::Representation + + end + end + class CreateAssetRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4336,6 +4825,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ListAdAssetsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :ad_assets, as: 'adAssets', class: Google::Apis::DisplayvideoV4::AdAsset, decorator: Google::Apis::DisplayvideoV4::AdAsset::Representation + + property :next_page_token, as: 'nextPageToken' + end + end + class ListAdGroupAdsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4651,6 +5149,15 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class ListYoutubeAssetAssociationsResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :next_page_token, as: 'nextPageToken' + collection :youtube_asset_associations, as: 'youtubeAssetAssociations', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociation, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociation::Representation + + end + end + class LocationList # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5439,6 +5946,22 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class UploadAdAssetRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_asset_type, as: 'adAssetType' + property :filename, as: 'filename' + end + end + + class UploadAdAssetResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ad_asset, as: 'adAsset', class: Google::Apis::DisplayvideoV4::AdAsset, decorator: Google::Apis::DisplayvideoV4::AdAsset::Representation + + end + end + class UrlAssignedTargetingOptionDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5605,6 +6128,79 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class YoutubeAssetAssociation + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :linked_youtube_asset, as: 'linkedYoutubeAsset', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLinkedYouTubeAsset, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLinkedYouTubeAsset::Representation + + property :name, as: 'name' + property :youtube_asset_type, as: 'youtubeAssetType' + end + end + + class YoutubeAssetAssociationAffiliateLocationAssetFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :affiliate_location_matching_function, as: 'affiliateLocationMatchingFunction', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction::Representation + + property :affiliate_location_matching_type, as: 'affiliateLocationMatchingType' + property :asset_set_id, :numeric_string => true, as: 'assetSetId' + end + end + + class YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :chain_id, :numeric_string => true, as: 'chainId' + end + end + + class YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationMatchingFunction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :chains, as: 'chains', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilterAffiliateLocationChain::Representation + + end + end + + class YoutubeAssetAssociationLinkedYouTubeAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :affiliate_location_asset_filter, as: 'affiliateLocationAssetFilter', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilter, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationAffiliateLocationAssetFilter::Representation + + property :location_asset_filter, as: 'locationAssetFilter', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLocationAssetFilter, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLocationAssetFilter::Representation + + property :sitelink_asset, as: 'sitelinkAsset', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationSitelinkAsset, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationSitelinkAsset::Representation + + end + end + + class YoutubeAssetAssociationLocationAssetFilter + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_set_id, :numeric_string => true, as: 'assetSetId' + property :location_matching_function, as: 'locationMatchingFunction', class: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction, decorator: Google::Apis::DisplayvideoV4::YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction::Representation + + property :location_matching_type, as: 'locationMatchingType' + end + end + + class YoutubeAssetAssociationLocationAssetFilterLocationMatchingFunction + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :business, as: 'business' + collection :labels, as: 'labels' + collection :location_asset_ids, as: 'locationAssetIds' + end + end + + class YoutubeAssetAssociationSitelinkAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :asset_id, :numeric_string => true, as: 'assetId' + end + end + class YoutubeChannelAssignedTargetingOptionDetails # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -5613,6 +6209,13 @@ class Representation < Google::Apis::Core::JsonRepresentation end end + class YoutubeVideoAsset + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :youtube_video_id, as: 'youtubeVideoId' + end + end + class YoutubeVideoAssignedTargetingOptionDetails # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/service.rb b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/service.rb index 186b34cd894..5d1a3e588a1 100644 --- a/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/service.rb +++ b/generated/google-apis-displayvideo_v4/lib/google/apis/displayvideo_v4/service.rb @@ -384,6 +384,201 @@ def patch_advertiser(advertiser_id, advertiser_object = nil, update_mask: nil, f execute_or_queue_command(command, &block) end + # BulkCreate video assets for Ad. Only supports youtube video assets for now. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this ad asset belongs to. + # @param [Google::Apis::DisplayvideoV4::BulkCreateAdAssetsRequest] bulk_create_ad_assets_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DisplayvideoV4::BulkCreateAdAssetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::BulkCreateAdAssetsResponse] + # + # @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 bulk_create_ad_assets(advertiser_id, bulk_create_ad_assets_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/advertisers/{+advertiserId}/adAssets:bulkCreate', options) + command.request_representation = Google::Apis::DisplayvideoV4::BulkCreateAdAssetsRequest::Representation + command.request_object = bulk_create_ad_assets_request_object + command.response_representation = Google::Apis::DisplayvideoV4::BulkCreateAdAssetsResponse::Representation + command.response_class = Google::Apis::DisplayvideoV4::BulkCreateAdAssetsResponse + command.params['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 + + # Create a video asset for Ad. Only supports youtube video assets for now. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this ad asset belongs to. + # @param [Google::Apis::DisplayvideoV4::CreateAdAssetRequest] create_ad_asset_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 [Google::Apis::RequestOptions] options + # Request-specific options + # + # @yield [result, err] Result & error if block supplied + # @yieldparam result [Google::Apis::DisplayvideoV4::AdAsset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::AdAsset] + # + # @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_ad_asset(advertiser_id, create_ad_asset_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/advertisers/{+advertiserId}/adAssets', options) + command.request_representation = Google::Apis::DisplayvideoV4::CreateAdAssetRequest::Representation + command.request_object = create_ad_asset_request_object + command.response_representation = Google::Apis::DisplayvideoV4::AdAsset::Representation + command.response_class = Google::Apis::DisplayvideoV4::AdAsset + command.params['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 + + # Get an ad asset by ad asset ID. Only supports youtube video assets. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this ad asset belongs to. + # @param [Fixnum] ad_asset_id + # Required. The ID of the ad asset to fetch. + # @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::DisplayvideoV4::AdAsset] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::AdAsset] + # + # @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_advertiser_ad_asset(advertiser_id, ad_asset_id, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/advertisers/{+advertiserId}/adAssets/{+adAssetId}', options) + command.response_representation = Google::Apis::DisplayvideoV4::AdAsset::Representation + command.response_class = Google::Apis::DisplayvideoV4::AdAsset + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['adAssetId'] = ad_asset_id unless ad_asset_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 + + # List ad assets by advertiser ID. Only supports youtube video ad assets. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser to list assets for. + # @param [String] filter + # Optional. Filter expression to restrict the ad assets to return. The supported + # fields are: * `youtubeVideoAsset.youtubeVideoId` * `entityStatus` Examples: * ` + # entityStatus=ENTITY_STATUS_ACTIVE` + # @param [String] order_by + # Optional. Field by which to sort the list. Acceptable values are: * ` + # entityStatus` * `youtubeVideoAsset.youtubeVideoId` * `adAssetId` (default) The + # default sorting order is ascending. To specify descending order for a field, a + # suffix "desc" should be added to the field name. Example: `assetId desc`. + # @param [Fixnum] page_size + # Optional. Requested page size. Must be between `1` and `5000`. If unspecified + # will default to `5000`. Returns error code `INVALID_ARGUMENT` if an invalid + # value is specified. + # @param [String] page_token + # Optional. A token identifying a page of results the server should return. + # Typically, this is the value of next_page_token returned from the previous + # call to `ListAssets` method. If not specified, the first page of results will + # be returned. + # @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::DisplayvideoV4::ListAdAssetsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::ListAdAssetsResponse] + # + # @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 list_advertiser_ad_assets(advertiser_id, filter: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/advertisers/{+advertiserId}/adAssets', options) + command.response_representation = Google::Apis::DisplayvideoV4::ListAdAssetsResponse::Representation + command.response_class = Google::Apis::DisplayvideoV4::ListAdAssetsResponse + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.query['filter'] = filter unless filter.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + + # Uploads an ad asset. Returns the ID of the newly uploaded ad asset if + # successful. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this ad asset belongs to. + # @param [Google::Apis::DisplayvideoV4::UploadAdAssetRequest] upload_ad_asset_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::DisplayvideoV4::UploadAdAssetResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::UploadAdAssetResponse] + # + # @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 upload_ad_asset(advertiser_id, upload_ad_asset_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, 'v4/advertisers/{+advertiserId}/adAssets:uploadAdAsset', options) + else + command = make_upload_command(:post, 'v4/advertisers/{+advertiserId}/adAssets:uploadAdAsset', options) + command.upload_source = upload_source + command.upload_content_type = content_type + end + command.request_representation = Google::Apis::DisplayvideoV4::UploadAdAssetRequest::Representation + command.request_object = upload_ad_asset_request_object + command.response_representation = Google::Apis::DisplayvideoV4::UploadAdAssetResponse::Representation + command.response_class = Google::Apis::DisplayvideoV4::UploadAdAssetResponse + command.params['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 + # Gets an ad group ad. # @param [Fixnum] advertiser_id # Required. The ID of the advertiser this ad group ad belongs to. @@ -757,6 +952,151 @@ def list_advertiser_ad_group_targeting_type_assigned_targeting_options(advertise execute_or_queue_command(command, &block) end + # Creates a new association between an entity (line item or ad group) and a + # YouTube asset. Returns the newly created association if successful. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this request is for. + # @param [Fixnum] ad_group_id + # The unique ID of the ad group linked. + # @param [String] youtube_asset_type + # Required. The type of the linked YouTube asset in the association. + # @param [Google::Apis::DisplayvideoV4::YoutubeAssetAssociation] youtube_asset_association_object + # @param [Fixnum] linked_entity_line_item_id + # The unique ID of the line item linked. + # @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::DisplayvideoV4::YoutubeAssetAssociation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociation] + # + # @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_ad_group_youtube_asset_type_youtube_asset_association(advertiser_id, ad_group_id, youtube_asset_type, youtube_asset_association_object = nil, linked_entity_line_item_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/advertisers/{+advertiserId}/adGroups/{+adGroupId}/youtubeAssetTypes/{+youtubeAssetType}/youtubeAssetAssociations', options) + command.request_representation = Google::Apis::DisplayvideoV4::YoutubeAssetAssociation::Representation + command.request_object = youtube_asset_association_object + command.response_representation = Google::Apis::DisplayvideoV4::YoutubeAssetAssociation::Representation + command.response_class = Google::Apis::DisplayvideoV4::YoutubeAssetAssociation + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['adGroupId'] = ad_group_id unless ad_group_id.nil? + command.params['youtubeAssetType'] = youtube_asset_type unless youtube_asset_type.nil? + command.query['linkedEntity.lineItemId'] = linked_entity_line_item_id unless linked_entity_line_item_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 + + # Deletes an existing association between an entity (line item or ad group) and + # a YouTube asset. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this request is for. + # @param [Fixnum] ad_group_id + # The unique ID of the ad group linked. + # @param [String] youtube_asset_type + # Required. The YouTube asset type this request is for. + # @param [Fixnum] youtube_asset_association_id + # Required. The ID of the YouTube asset in the association. For location + # associations: This should be the ID of the asset set linked, or 0 if the + # association stands for location asset is disabled. For affiliate location + # associations: This should be the ID of the asset set linked, or 0 if the + # association stands for affiliate location asset is disabled. For sitelink + # associations: This should be the ID of the sitelink asset linked. + # @param [Fixnum] linked_entity_line_item_id + # The unique ID of the line item linked. + # @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::DisplayvideoV4::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::Empty] + # + # @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 delete_advertiser_ad_group_youtube_asset_type_youtube_asset_association(advertiser_id, ad_group_id, youtube_asset_type, youtube_asset_association_id, linked_entity_line_item_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v4/advertisers/{+advertiserId}/adGroups/{+adGroupId}/youtubeAssetTypes/{+youtubeAssetType}/youtubeAssetAssociations/{+youtubeAssetAssociationId}', options) + command.response_representation = Google::Apis::DisplayvideoV4::Empty::Representation + command.response_class = Google::Apis::DisplayvideoV4::Empty + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['adGroupId'] = ad_group_id unless ad_group_id.nil? + command.params['youtubeAssetType'] = youtube_asset_type unless youtube_asset_type.nil? + command.params['youtubeAssetAssociationId'] = youtube_asset_association_id unless youtube_asset_association_id.nil? + command.query['linkedEntity.lineItemId'] = linked_entity_line_item_id unless linked_entity_line_item_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 + + # Lists the YouTube asset associations for given resource. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this request is for. + # @param [Fixnum] ad_group_id + # The unique ID of the ad group linked. + # @param [String] youtube_asset_type + # Required. The type of YouTube asset in the association. + # @param [Fixnum] linked_entity_line_item_id + # The unique ID of the line item linked. + # @param [String] order_by + # Optional. Field by which to sort the list. The only acceptable values are: ` + # linkedYoutubeAsset.locationAssetFilter.assetSetId`, `linkedYoutubeAsset. + # affiliateLocationAssetFilter.assetSetId`, `linkedYoutubeAsset.sitelinkAsset. + # assetId` The default sorting order is ascending. To specify descending order + # for a field, a suffix " desc" should be added to the field name. Example: ` + # linkedYoutubeAsset.sitelinkAsset.assetId desc`. + # @param [Fixnum] page_size + # Optional. Requested page size. Must be between `1` and `10000`. If unspecified + # will default to `100`. + # @param [String] page_token + # Optional. A token identifying a page of results the server should return. + # @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::DisplayvideoV4::ListYoutubeAssetAssociationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::ListYoutubeAssetAssociationsResponse] + # + # @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 list_advertiser_ad_group_youtube_asset_type_youtube_asset_associations(advertiser_id, ad_group_id, youtube_asset_type, linked_entity_line_item_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/advertisers/{+advertiserId}/adGroups/{+adGroupId}/youtubeAssetTypes/{+youtubeAssetType}/youtubeAssetAssociations', options) + command.response_representation = Google::Apis::DisplayvideoV4::ListYoutubeAssetAssociationsResponse::Representation + command.response_class = Google::Apis::DisplayvideoV4::ListYoutubeAssetAssociationsResponse + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['adGroupId'] = ad_group_id unless ad_group_id.nil? + command.params['youtubeAssetType'] = youtube_asset_type unless youtube_asset_type.nil? + command.query['linkedEntity.lineItemId'] = linked_entity_line_item_id unless linked_entity_line_item_id.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.nil? + command.query['fields'] = fields unless fields.nil? + command.query['quotaUser'] = quota_user unless quota_user.nil? + execute_or_queue_command(command, &block) + end + # Uploads an asset. Returns the ID of the newly uploaded asset if successful. # The asset file size should be no more than 10 MB for images, 200 MB for ZIP # files, and 1 GB for videos. Must be used within the [multipart media upload @@ -3213,6 +3553,151 @@ def list_advertiser_line_item_targeting_type_assigned_targeting_options(advertis execute_or_queue_command(command, &block) end + # Creates a new association between an entity (line item or ad group) and a + # YouTube asset. Returns the newly created association if successful. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this request is for. + # @param [Fixnum] line_item_id + # The unique ID of the line item linked. + # @param [String] youtube_asset_type + # Required. The type of the linked YouTube asset in the association. + # @param [Google::Apis::DisplayvideoV4::YoutubeAssetAssociation] youtube_asset_association_object + # @param [Fixnum] linked_entity_ad_group_id + # The unique ID of the ad group linked. + # @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::DisplayvideoV4::YoutubeAssetAssociation] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::YoutubeAssetAssociation] + # + # @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_line_item_youtube_asset_type_youtube_asset_association(advertiser_id, line_item_id, youtube_asset_type, youtube_asset_association_object = nil, linked_entity_ad_group_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'v4/advertisers/{+advertiserId}/lineItems/{+lineItemId}/youtubeAssetTypes/{+youtubeAssetType}/youtubeAssetAssociations', options) + command.request_representation = Google::Apis::DisplayvideoV4::YoutubeAssetAssociation::Representation + command.request_object = youtube_asset_association_object + command.response_representation = Google::Apis::DisplayvideoV4::YoutubeAssetAssociation::Representation + command.response_class = Google::Apis::DisplayvideoV4::YoutubeAssetAssociation + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['lineItemId'] = line_item_id unless line_item_id.nil? + command.params['youtubeAssetType'] = youtube_asset_type unless youtube_asset_type.nil? + command.query['linkedEntity.adGroupId'] = linked_entity_ad_group_id unless linked_entity_ad_group_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 + + # Deletes an existing association between an entity (line item or ad group) and + # a YouTube asset. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this request is for. + # @param [Fixnum] line_item_id + # The unique ID of the line item linked. + # @param [String] youtube_asset_type + # Required. The YouTube asset type this request is for. + # @param [Fixnum] youtube_asset_association_id + # Required. The ID of the YouTube asset in the association. For location + # associations: This should be the ID of the asset set linked, or 0 if the + # association stands for location asset is disabled. For affiliate location + # associations: This should be the ID of the asset set linked, or 0 if the + # association stands for affiliate location asset is disabled. For sitelink + # associations: This should be the ID of the sitelink asset linked. + # @param [Fixnum] linked_entity_ad_group_id + # The unique ID of the ad group linked. + # @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::DisplayvideoV4::Empty] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::Empty] + # + # @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 delete_advertiser_line_item_youtube_asset_type_youtube_asset_association(advertiser_id, line_item_id, youtube_asset_type, youtube_asset_association_id, linked_entity_ad_group_id: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'v4/advertisers/{+advertiserId}/lineItems/{+lineItemId}/youtubeAssetTypes/{+youtubeAssetType}/youtubeAssetAssociations/{+youtubeAssetAssociationId}', options) + command.response_representation = Google::Apis::DisplayvideoV4::Empty::Representation + command.response_class = Google::Apis::DisplayvideoV4::Empty + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['lineItemId'] = line_item_id unless line_item_id.nil? + command.params['youtubeAssetType'] = youtube_asset_type unless youtube_asset_type.nil? + command.params['youtubeAssetAssociationId'] = youtube_asset_association_id unless youtube_asset_association_id.nil? + command.query['linkedEntity.adGroupId'] = linked_entity_ad_group_id unless linked_entity_ad_group_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 + + # Lists the YouTube asset associations for given resource. + # @param [Fixnum] advertiser_id + # Required. The ID of the advertiser this request is for. + # @param [Fixnum] line_item_id + # The unique ID of the line item linked. + # @param [String] youtube_asset_type + # Required. The type of YouTube asset in the association. + # @param [Fixnum] linked_entity_ad_group_id + # The unique ID of the ad group linked. + # @param [String] order_by + # Optional. Field by which to sort the list. The only acceptable values are: ` + # linkedYoutubeAsset.locationAssetFilter.assetSetId`, `linkedYoutubeAsset. + # affiliateLocationAssetFilter.assetSetId`, `linkedYoutubeAsset.sitelinkAsset. + # assetId` The default sorting order is ascending. To specify descending order + # for a field, a suffix " desc" should be added to the field name. Example: ` + # linkedYoutubeAsset.sitelinkAsset.assetId desc`. + # @param [Fixnum] page_size + # Optional. Requested page size. Must be between `1` and `10000`. If unspecified + # will default to `100`. + # @param [String] page_token + # Optional. A token identifying a page of results the server should return. + # @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::DisplayvideoV4::ListYoutubeAssetAssociationsResponse] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::DisplayvideoV4::ListYoutubeAssetAssociationsResponse] + # + # @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 list_advertiser_line_item_youtube_asset_type_youtube_asset_associations(advertiser_id, line_item_id, youtube_asset_type, linked_entity_ad_group_id: nil, order_by: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'v4/advertisers/{+advertiserId}/lineItems/{+lineItemId}/youtubeAssetTypes/{+youtubeAssetType}/youtubeAssetAssociations', options) + command.response_representation = Google::Apis::DisplayvideoV4::ListYoutubeAssetAssociationsResponse::Representation + command.response_class = Google::Apis::DisplayvideoV4::ListYoutubeAssetAssociationsResponse + command.params['advertiserId'] = advertiser_id unless advertiser_id.nil? + command.params['lineItemId'] = line_item_id unless line_item_id.nil? + command.params['youtubeAssetType'] = youtube_asset_type unless youtube_asset_type.nil? + command.query['linkedEntity.adGroupId'] = linked_entity_ad_group_id unless linked_entity_ad_group_id.nil? + command.query['orderBy'] = order_by unless order_by.nil? + command.query['pageSize'] = page_size unless page_size.nil? + command.query['pageToken'] = page_token unless page_token.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 location list. Returns the newly created location list if # successful. # @param [Fixnum] advertiser_id