diff --git a/AdsAdManager/metadata/V1/AdUnitEnums.php b/AdsAdManager/metadata/V1/AdUnitEnums.php index 4ade07be3adb..9df7bbec6e0e 100644 --- a/AdsAdManager/metadata/V1/AdUnitEnums.php +++ b/AdsAdManager/metadata/V1/AdUnitEnums.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xCD\x04\x0A+google/ads/admanager/v1/ad_unit_enums.proto\x12\x17google.ads.admanager.v1\"j\x0A\x10AdUnitStatusEnum\"V\x0A\x0CAdUnitStatus\x12\x1E\x0A\x1AAD_UNIT_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08INACTIVE\x10\x02\x12\x0C\x0A\x08ARCHIVED\x10\x03\"s\x0A\x11SmartSizeModeEnum\"^\x0A\x0DSmartSizeMode\x12\x1F\x0A\x1BSMART_SIZE_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x10\x0A\x0CSMART_BANNER\x10\x02\x12\x10\x0A\x0CDYNAMIC_SIZE\x10\x03\"U\x0A\x10TargetWindowEnum\"A\x0A\x0CTargetWindow\x12\x1D\x0A\x19TARGET_WINDOW_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x09\x0A\x05BLANK\x10\x02B\xC4\x01\x0A\x1Bcom.google.ads.admanager.v1B\x10AdUnitEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xCB\x05\x0A+google/ads/admanager/v1/ad_unit_enums.proto\x12\x17google.ads.admanager.v1\"j\x0A\x10AdUnitStatusEnum\"V\x0A\x0CAdUnitStatus\x12\x1E\x0A\x1AAD_UNIT_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08INACTIVE\x10\x02\x12\x0C\x0A\x08ARCHIVED\x10\x03\"s\x0A\x11SmartSizeModeEnum\"^\x0A\x0DSmartSizeMode\x12\x1F\x0A\x1BSMART_SIZE_MODE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04NONE\x10\x01\x12\x10\x0A\x0CSMART_BANNER\x10\x02\x12\x10\x0A\x0CDYNAMIC_SIZE\x10\x03\"U\x0A\x10TargetWindowEnum\"A\x0A\x0CTargetWindow\x12\x1D\x0A\x19TARGET_WINDOW_UNSPECIFIED\x10\x00\x12\x07\x0A\x03TOP\x10\x01\x12\x09\x0A\x05BLANK\x10\x02\"|\x0A\x13RefreshRateTypeEnum\"e\x0A\x0FRefreshRateType\x12!\x0A\x1DREFRESH_RATE_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DISABLED\x10\x01\x12\x0D\x0A\x09OPTIMIZED\x10\x02\x12\x12\x0A\x0EFIXED_INTERVAL\x10\x03B\xC4\x01\x0A\x1Bcom.google.ads.admanager.v1B\x10AdUnitEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/AdUnitMessages.php b/AdsAdManager/metadata/V1/AdUnitMessages.php index 68a884dc7183..80de9c5fb3e1 100644 --- a/AdsAdManager/metadata/V1/AdUnitMessages.php +++ b/AdsAdManager/metadata/V1/AdUnitMessages.php @@ -24,7 +24,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xC6\x18\x0A.google/ads/admanager/v1/ad_unit_messages.proto\x12\x17google.ads.admanager.v1\x1A+google/ads/admanager/v1/applied_label.proto\x1A3google/ads/admanager/v1/environment_type_enum.proto\x1A+google/ads/admanager/v1/frequency_cap.proto\x1A\"google/ads/admanager/v1/size.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x82\x0F\x0A\x06AdUnit\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Aad_unit_id\x18\x0F \x01(\x03B\x05\x18\x01\xE0A\x03\x12G\x0A\x0Eparent_ad_unit\x18\x0A \x01(\x09B*\xE0A\x02\xE0A\x05\xFAA!\x0A\x1Fadmanager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12?\x0A\x0Bparent_path\x18\x0B \x03(\x0B2%.google.ads.admanager.v1.AdUnitParentB\x03\xE0A\x03\x12\x1E\x0A\x0Cdisplay_name\x18\x09 \x01(\x09B\x03\xE0A\x02H\x01\x88\x01\x01\x12!\x0A\x0Cad_unit_code\x18\x02 \x01(\x09B\x06\xE0A\x01\xE0A\x05H\x02\x88\x01\x01\x12P\x0A\x06status\x18\x0D \x01(\x0E26.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\x03\xE0A\x03H\x03\x88\x01\x01\x12_\x0A\x15applied_target_window\x18, \x01(\x0E26.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x03\xE0A\x01H\x04\x88\x01\x01\x12d\x0A\x17effective_target_window\x18- \x01(\x0E26.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x06\xE0A\x07\xE0A\x03H\x05\x88\x01\x01\x12<\x0A\x0Dapplied_teams\x18\x03 \x03(\x09B%\xE0A\x01\xFAA\x1F\x0A\x1Dadmanager.googleapis.com/Team\x124\x0A\x05teams\x18\x04 \x03(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dadmanager.googleapis.com/Team\x12\x1D\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01H\x06\x88\x01\x01\x12%\x0A\x13explicitly_targeted\x18\x06 \x01(\x08B\x03\xE0A\x01H\x07\x88\x01\x01\x12\x1E\x0A\x0Chas_children\x18\x07 \x01(\x08B\x03\xE0A\x03H\x08\x88\x01\x01\x129\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03H\x09\x88\x01\x01\x12?\x0A\x0Dad_unit_sizes\x18\x0E \x03(\x0B2#.google.ads.admanager.v1.AdUnitSizeB\x03\xE0A\x01\x123\x0A\x1Fexternal_set_top_box_channel_id\x18\x11 \x01(\x09B\x05\x18\x01\xE0A\x01H\x0A\x88\x01\x01\x12:\x0A\x0Drefresh_delay\x18\x13 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0B\x88\x01\x01\x12B\x0A\x0Eapplied_labels\x18\x15 \x03(\x0B2%.google.ads.admanager.v1.AppliedLabelB\x03\xE0A\x01\x12L\x0A\x18effective_applied_labels\x18\x16 \x03(\x0B2%.google.ads.admanager.v1.AppliedLabelB\x03\xE0A\x03\x12U\x0A\x1Capplied_label_frequency_caps\x18\x17 \x03(\x0B2*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xE0A\x01\x12W\x0A\x1Eeffective_label_frequency_caps\x18\x18 \x03(\x0B2*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xE0A\x03\x12^\x0A\x0Fsmart_size_mode\x18\x19 \x01(\x0E28.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\x06\xE0A\x01\xE0A\x07H\x0C\x88\x01\x01\x12)\x0A\x17applied_adsense_enabled\x18\x1A \x01(\x08B\x03\xE0A\x01H\x0D\x88\x01\x01\x12+\x0A\x19effective_adsense_enabled\x18\x1B \x01(\x08B\x03\xE0A\x03H\x0E\x88\x01\x01:`\xEAA]\x0A\x1Fadmanager.googleapis.com/AdUnit\x12)networks/{network_code}/adUnits/{ad_unit}*\x07adUnits2\x06adUnitB\x11\x0A\x0F_parent_ad_unitB\x0F\x0A\x0D_display_nameB\x0F\x0A\x0D_ad_unit_codeB\x09\x0A\x07_statusB\x18\x0A\x16_applied_target_windowB\x1A\x0A\x18_effective_target_windowB\x0E\x0A\x0C_descriptionB\x16\x0A\x14_explicitly_targetedB\x0F\x0A\x0D_has_childrenB\x0E\x0A\x0C_update_timeB\"\x0A _external_set_top_box_channel_idB\x10\x0A\x0E_refresh_delayB\x12\x0A\x10_smart_size_modeB\x1A\x0A\x18_applied_adsense_enabledB\x1C\x0A\x1A_effective_adsense_enabled\"\xF6\x01\x0A\x0AAdUnitSize\x125\x0A\x04size\x18\x01 \x01(\x0B2\x1D.google.ads.admanager.v1.SizeB\x03\xE0A\x02H\x00\x88\x01\x01\x12`\x0A\x10environment_type\x18\x02 \x01(\x0E2<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\x03\xE0A\x02H\x01\x88\x01\x01\x121\x0A\x0Acompanions\x18\x03 \x03(\x0B2\x1D.google.ads.admanager.v1.SizeB\x07\x0A\x05_sizeB\x13\x0A\x11_environment_type\"\xC9\x01\x0A\x0CAdUnitParent\x12D\x0A\x0Eparent_ad_unit\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fadmanager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12\x1E\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12\x1E\x0A\x0Cad_unit_code\x18\x03 \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01B\x11\x0A\x0F_parent_ad_unitB\x0F\x0A\x0D_display_nameB\x0F\x0A\x0D_ad_unit_code\"\xAE\x01\x0A\x11LabelFrequencyCap\x12:\x0A\x05label\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Eadmanager.googleapis.com/LabelH\x00\x88\x01\x01\x12A\x0A\x0Dfrequency_cap\x18\x02 \x01(\x0B2%.google.ads.admanager.v1.FrequencyCapH\x01\x88\x01\x01B\x08\x0A\x06_labelB\x10\x0A\x0E_frequency_capB\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13AdUnitMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xC2\x19\x0A.google/ads/admanager/v1/ad_unit_messages.proto\x12\x17google.ads.admanager.v1\x1A+google/ads/admanager/v1/applied_label.proto\x1A3google/ads/admanager/v1/environment_type_enum.proto\x1A+google/ads/admanager/v1/frequency_cap.proto\x1A\"google/ads/admanager/v1/size.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFE\x0F\x0A\x06AdUnit\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x19\x0A\x0Aad_unit_id\x18\x0F \x01(\x03B\x05\x18\x01\xE0A\x03\x12G\x0A\x0Eparent_ad_unit\x18\x0A \x01(\x09B*\xE0A\x02\xE0A\x05\xFAA!\x0A\x1Fadmanager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12?\x0A\x0Bparent_path\x18\x0B \x03(\x0B2%.google.ads.admanager.v1.AdUnitParentB\x03\xE0A\x03\x12\x1E\x0A\x0Cdisplay_name\x18\x09 \x01(\x09B\x03\xE0A\x02H\x01\x88\x01\x01\x12!\x0A\x0Cad_unit_code\x18\x02 \x01(\x09B\x06\xE0A\x01\xE0A\x05H\x02\x88\x01\x01\x12P\x0A\x06status\x18\x0D \x01(\x0E26.google.ads.admanager.v1.AdUnitStatusEnum.AdUnitStatusB\x03\xE0A\x03H\x03\x88\x01\x01\x12_\x0A\x15applied_target_window\x18, \x01(\x0E26.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x03\xE0A\x01H\x04\x88\x01\x01\x12d\x0A\x17effective_target_window\x18- \x01(\x0E26.google.ads.admanager.v1.TargetWindowEnum.TargetWindowB\x06\xE0A\x07\xE0A\x03H\x05\x88\x01\x01\x12<\x0A\x0Dapplied_teams\x18\x03 \x03(\x09B%\xE0A\x01\xFAA\x1F\x0A\x1Dadmanager.googleapis.com/Team\x124\x0A\x05teams\x18\x04 \x03(\x09B%\xE0A\x03\xFAA\x1F\x0A\x1Dadmanager.googleapis.com/Team\x12\x1D\x0A\x0Bdescription\x18\x05 \x01(\x09B\x03\xE0A\x01H\x06\x88\x01\x01\x12%\x0A\x13explicitly_targeted\x18\x06 \x01(\x08B\x03\xE0A\x01H\x07\x88\x01\x01\x12\x1E\x0A\x0Chas_children\x18\x07 \x01(\x08B\x03\xE0A\x03H\x08\x88\x01\x01\x129\x0A\x0Bupdate_time\x18\x08 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03H\x09\x88\x01\x01\x12?\x0A\x0Dad_unit_sizes\x18\x0E \x03(\x0B2#.google.ads.admanager.v1.AdUnitSizeB\x03\xE0A\x01\x123\x0A\x1Fexternal_set_top_box_channel_id\x18\x11 \x01(\x09B\x05\x18\x01\xE0A\x01H\x0A\x88\x01\x01\x12:\x0A\x0Drefresh_delay\x18\x13 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0B\x88\x01\x01\x12B\x0A\x0Eapplied_labels\x18\x15 \x03(\x0B2%.google.ads.admanager.v1.AppliedLabelB\x03\xE0A\x01\x12L\x0A\x18effective_applied_labels\x18\x16 \x03(\x0B2%.google.ads.admanager.v1.AppliedLabelB\x03\xE0A\x03\x12U\x0A\x1Capplied_label_frequency_caps\x18\x17 \x03(\x0B2*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xE0A\x01\x12W\x0A\x1Eeffective_label_frequency_caps\x18\x18 \x03(\x0B2*.google.ads.admanager.v1.LabelFrequencyCapB\x03\xE0A\x03\x12^\x0A\x0Fsmart_size_mode\x18\x19 \x01(\x0E28.google.ads.admanager.v1.SmartSizeModeEnum.SmartSizeModeB\x06\xE0A\x01\xE0A\x07H\x0C\x88\x01\x01\x12)\x0A\x17applied_adsense_enabled\x18\x1A \x01(\x08B\x03\xE0A\x01H\x0D\x88\x01\x01\x12+\x0A\x19effective_adsense_enabled\x18\x1B \x01(\x08B\x03\xE0A\x03H\x0E\x88\x01\x01\x12d\x0A\x11refresh_rate_type\x18N \x01(\x0E2<.google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateTypeB\x06\xE0A\x01\xE0A\x07H\x0F\x88\x01\x01:`\xEAA]\x0A\x1Fadmanager.googleapis.com/AdUnit\x12)networks/{network_code}/adUnits/{ad_unit}*\x07adUnits2\x06adUnitB\x11\x0A\x0F_parent_ad_unitB\x0F\x0A\x0D_display_nameB\x0F\x0A\x0D_ad_unit_codeB\x09\x0A\x07_statusB\x18\x0A\x16_applied_target_windowB\x1A\x0A\x18_effective_target_windowB\x0E\x0A\x0C_descriptionB\x16\x0A\x14_explicitly_targetedB\x0F\x0A\x0D_has_childrenB\x0E\x0A\x0C_update_timeB\"\x0A _external_set_top_box_channel_idB\x10\x0A\x0E_refresh_delayB\x12\x0A\x10_smart_size_modeB\x1A\x0A\x18_applied_adsense_enabledB\x1C\x0A\x1A_effective_adsense_enabledB\x14\x0A\x12_refresh_rate_type\"\xF6\x01\x0A\x0AAdUnitSize\x125\x0A\x04size\x18\x01 \x01(\x0B2\x1D.google.ads.admanager.v1.SizeB\x03\xE0A\x02H\x00\x88\x01\x01\x12`\x0A\x10environment_type\x18\x02 \x01(\x0E2<.google.ads.admanager.v1.EnvironmentTypeEnum.EnvironmentTypeB\x03\xE0A\x02H\x01\x88\x01\x01\x121\x0A\x0Acompanions\x18\x03 \x03(\x0B2\x1D.google.ads.admanager.v1.SizeB\x07\x0A\x05_sizeB\x13\x0A\x11_environment_type\"\xC9\x01\x0A\x0CAdUnitParent\x12D\x0A\x0Eparent_ad_unit\x18\x01 \x01(\x09B'\xE0A\x03\xFAA!\x0A\x1Fadmanager.googleapis.com/AdUnitH\x00\x88\x01\x01\x12\x1E\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x03H\x01\x88\x01\x01\x12\x1E\x0A\x0Cad_unit_code\x18\x03 \x01(\x09B\x03\xE0A\x03H\x02\x88\x01\x01B\x11\x0A\x0F_parent_ad_unitB\x0F\x0A\x0D_display_nameB\x0F\x0A\x0D_ad_unit_code\"\xAE\x01\x0A\x11LabelFrequencyCap\x12:\x0A\x05label\x18\x01 \x01(\x09B&\xE0A\x02\xFAA \x0A\x1Eadmanager.googleapis.com/LabelH\x00\x88\x01\x01\x12A\x0A\x0Dfrequency_cap\x18\x02 \x01(\x0B2%.google.ads.admanager.v1.FrequencyCapH\x01\x88\x01\x01B\x08\x0A\x06_labelB\x10\x0A\x0E_frequency_capB\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13AdUnitMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/ChildPublisherMessages.php b/AdsAdManager/metadata/V1/ChildPublisherMessages.php index 0e1567c5ecbe..9f14c50e5b12 100644 --- a/AdsAdManager/metadata/V1/ChildPublisherMessages.php +++ b/AdsAdManager/metadata/V1/ChildPublisherMessages.php @@ -14,10 +14,11 @@ public static function initOnce() { if (static::$is_initialized == true) { return; } + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xF8\x03\x0A6google/ads/admanager/v1/child_publisher_messages.proto\x12\x17google.ads.admanager.v1\x1A\x19google/api/resource.proto\"\xAF\x01\x0A\x0EChildPublisher\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08:\x89\x01\xEAA\x85\x01\x0A'admanager.googleapis.com/ChildPublisher\x129networks/{network_code}/childPublishers/{child_publisher}*\x0FchildPublishers2\x0EchildPublisherB\xCF\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1BChildPublisherMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xD0\x10\x0A6google/ads/admanager/v1/child_publisher_messages.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\xE6\x0D\x0A\x0EChildPublisher\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1E\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12\x17\x0A\x05email\x18\x04 \x01(\x09B\x03\xE0A\x02H\x01\x88\x01\x01\x12D\x0A\x0Dchild_network\x18\x05 \x01(\x09B(\xE0A\x05\xFAA\"\x0A admanager.googleapis.com/NetworkH\x02\x88\x01\x01\x12]\x0A\x0Fdelegation_type\x18\x09 \x01(\x0E2:.google.ads.admanager.v1.DelegationTypeEnum.DelegationTypeB\x03\xE0A\x02H\x03\x88\x01\x01\x123\x0A!parent_revenue_share_millipercent\x18\x0A \x01(\x03B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1B\x0A\x09seller_id\x18\x0B \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01\x12f\x0A\x10readiness_status\x18\x0C \x01(\x0E2B.google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatusB\x03\xE0A\x03H\x06\x88\x01\x01\x12w\x0A\x11invitation_status\x18\x0D \x01(\x0E2R.google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatusB\x03\xE0A\x03H\x07\x88\x01\x01\x12q\x0A\x0Fapproval_status\x18\x0F \x01(\x0E2N.google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatusB\x03\xE0A\x03H\x08\x88\x01\x01\x12\x9E\x01\x0A\x1Cidentity_verification_status\x18\x11 \x01(\x0E2n.google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatusB\x03\xE0A\x03H\x09\x88\x01\x01\x12\x9B\x01\x0A\x1Baddress_verification_status\x18\x13 \x01(\x0E2l.google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatusB\x03\xE0A\x03H\x0A\x88\x01\x01\x12}\x0A\x18pending_onboarding_tasks\x18\x16 \x03(\x0E2V.google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTaskB\x03\xE0A\x03\x12n\x0A\x0Eaccount_status\x18\x1A \x01(\x0E2L.google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatusB\x03\xE0A\x03H\x0B\x88\x01\x01\x12D\x0A2approved_manage_account_revenue_share_millipercent\x18\x1D \x01(\x03B\x03\xE0A\x03H\x0C\x88\x01\x01:\x89\x01\xEAA\x85\x01\x0A'admanager.googleapis.com/ChildPublisher\x129networks/{network_code}/childPublishers/{child_publisher}*\x0FchildPublishers2\x0EchildPublisherB\x0F\x0A\x0D_display_nameB\x08\x0A\x06_emailB\x10\x0A\x0E_child_networkB\x12\x0A\x10_delegation_typeB\$\x0A\"_parent_revenue_share_millipercentB\x0C\x0A\x0A_seller_idB\x13\x0A\x11_readiness_statusB\x14\x0A\x12_invitation_statusB\x12\x0A\x10_approval_statusB\x1F\x0A\x1D_identity_verification_statusB\x1E\x0A\x1C_address_verification_statusB\x11\x0A\x0F_account_statusB5\x0A3_approved_manage_account_revenue_share_millipercentB\xCF\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1BChildPublisherMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/ChildPublisherService.php b/AdsAdManager/metadata/V1/ChildPublisherService.php new file mode 100644 index 000000000000..3a15a943a32c --- /dev/null +++ b/AdsAdManager/metadata/V1/ChildPublisherService.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xE8\x18\x0A5google/ads/admanager/v1/child_publisher_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"Y\x0A\x18GetChildPublisherRequest\x12=\x0A\x04name\x18\x01 \x01(\x09B/\xE0A\x02\xFAA)\x0A'admanager.googleapis.com/ChildPublisher\"\xC6\x01\x0A\x1AListChildPublishersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"\x8D\x01\x0A\x1BListChildPublishersResponse\x12A\x0A\x10child_publishers\x18\x01 \x03(\x0B2'.google.ads.admanager.v1.ChildPublisher\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\x9E\x01\x0A\x1BCreateChildPublisherRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12E\x0A\x0Fchild_publisher\x18\x02 \x01(\x0B2'.google.ads.admanager.v1.ChildPublisherB\x03\xE0A\x02\"\xAA\x01\x0A!BatchCreateChildPublishersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.ads.admanager.v1.CreateChildPublisherRequestB\x03\xE0A\x02\"g\x0A\"BatchCreateChildPublishersResponse\x12A\x0A\x10child_publishers\x18\x01 \x03(\x0B2'.google.ads.admanager.v1.ChildPublisher\"\x9A\x01\x0A\x1BUpdateChildPublisherRequest\x12E\x0A\x0Fchild_publisher\x18\x01 \x01(\x0B2'.google.ads.admanager.v1.ChildPublisherB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xAA\x01\x0A!BatchUpdateChildPublishersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12K\x0A\x08requests\x18\x02 \x03(\x0B24.google.ads.admanager.v1.UpdateChildPublisherRequestB\x03\xE0A\x02\"g\x0A\"BatchUpdateChildPublishersResponse\x12A\x0A\x10child_publishers\x18\x01 \x03(\x0B2'.google.ads.admanager.v1.ChildPublisher2\x89\x0B\x0A\x15ChildPublisherService\x12\xA7\x01\x0A\x11GetChildPublisher\x121.google.ads.admanager.v1.GetChildPublisherRequest\x1A'.google.ads.admanager.v1.ChildPublisher\"6\xDAA\x04name\x82\xD3\xE4\x93\x02)\x12'/v1/{name=networks/*/childPublishers/*}\x12\xBA\x01\x0A\x13ListChildPublishers\x123.google.ads.admanager.v1.ListChildPublishersRequest\x1A4.google.ads.admanager.v1.ListChildPublishersResponse\"8\xDAA\x06parent\x82\xD3\xE4\x93\x02)\x12'/v1/{parent=networks/*}/childPublishers\x12\xD0\x01\x0A\x14CreateChildPublisher\x124.google.ads.admanager.v1.CreateChildPublisherRequest\x1A'.google.ads.admanager.v1.ChildPublisher\"Y\xDAA\x16parent,child_publisher\x82\xD3\xE4\x93\x02:\"'/v1/{parent=networks/*}/childPublishers:\x0Fchild_publisher\x12\xE7\x01\x0A\x1ABatchCreateChildPublishers\x12:.google.ads.admanager.v1.BatchCreateChildPublishersRequest\x1A;.google.ads.admanager.v1.BatchCreateChildPublishersResponse\"P\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x028\"3/v1/{parent=networks/*}/childPublishers:batchCreate:\x01*\x12\xE5\x01\x0A\x14UpdateChildPublisher\x124.google.ads.admanager.v1.UpdateChildPublisherRequest\x1A'.google.ads.admanager.v1.ChildPublisher\"n\xDAA\x1Bchild_publisher,update_mask\x82\xD3\xE4\x93\x02J27/v1/{child_publisher.name=networks/*/childPublishers/*}:\x0Fchild_publisher\x12\xE7\x01\x0A\x1ABatchUpdateChildPublishers\x12:.google.ads.admanager.v1.BatchUpdateChildPublishersRequest\x1A;.google.ads.admanager.v1.BatchUpdateChildPublishersResponse\"P\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x028\"3/v1/{parent=networks/*}/childPublishers:batchUpdate:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xCE\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1AChildPublisherServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/CompanyService.php b/AdsAdManager/metadata/V1/CompanyService.php index 8ca12a11dd16..833b7d122bd4 100644 --- a/AdsAdManager/metadata/V1/CompanyService.php +++ b/AdsAdManager/metadata/V1/CompanyService.php @@ -19,8 +19,9 @@ public static function initOnce() { \GPBMetadata\Google\Api\Client::initOnce(); \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); + \GPBMetadata\Google\Protobuf\FieldMask::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xDB\x09\x0A-google/ads/admanager/v1/company_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"K\x0A\x11GetCompanyRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Company\"\xC0\x01\x0A\x14ListCompaniesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"y\x0A\x15ListCompaniesResponse\x123\x0A\x09companies\x18\x01 \x03(\x0B2 .google.ads.admanager.v1.Company\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x052\xC0\x03\x0A\x0ECompanyService\x12\x8C\x01\x0A\x0AGetCompany\x12*.google.ads.admanager.v1.GetCompanyRequest\x1A .google.ads.admanager.v1.Company\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#\x12!/v1/{name=networks/*/companies/*}\x12\xA2\x01\x0A\x0DListCompanies\x12-.google.ads.admanager.v1.ListCompaniesRequest\x1A..google.ads.admanager.v1.ListCompaniesResponse\"2\xDAA\x06parent\x82\xD3\xE4\x93\x02#\x12!/v1/{parent=networks/*}/companies\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13CompanyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xFA\x15\x0A-google/ads/admanager/v1/company_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"K\x0A\x11GetCompanyRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Company\"\xC0\x01\x0A\x14ListCompaniesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"y\x0A\x15ListCompaniesResponse\x123\x0A\x09companies\x18\x01 \x03(\x0B2 .google.ads.admanager.v1.Company\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\x88\x01\x0A\x14CreateCompanyRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x126\x0A\x07company\x18\x02 \x01(\x0B2 .google.ads.admanager.v1.CompanyB\x03\xE0A\x02\"\x9D\x01\x0A\x1BBatchCreateCompaniesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12D\x0A\x08requests\x18\x02 \x03(\x0B2-.google.ads.admanager.v1.CreateCompanyRequestB\x03\xE0A\x02\"S\x0A\x1CBatchCreateCompaniesResponse\x123\x0A\x09companies\x18\x01 \x03(\x0B2 .google.ads.admanager.v1.Company\"\x84\x01\x0A\x14UpdateCompanyRequest\x126\x0A\x07company\x18\x01 \x01(\x0B2 .google.ads.admanager.v1.CompanyB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\x9D\x01\x0A\x1BBatchUpdateCompaniesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12D\x0A\x08requests\x18\x02 \x03(\x0B2-.google.ads.admanager.v1.UpdateCompanyRequestB\x03\xE0A\x02\"S\x0A\x1CBatchUpdateCompaniesResponse\x123\x0A\x09companies\x18\x01 \x03(\x0B2 .google.ads.admanager.v1.Company2\xC1\x09\x0A\x0ECompanyService\x12\x8C\x01\x0A\x0AGetCompany\x12*.google.ads.admanager.v1.GetCompanyRequest\x1A .google.ads.admanager.v1.Company\"0\xDAA\x04name\x82\xD3\xE4\x93\x02#\x12!/v1/{name=networks/*/companies/*}\x12\xA2\x01\x0A\x0DListCompanies\x12-.google.ads.admanager.v1.ListCompaniesRequest\x1A..google.ads.admanager.v1.ListCompaniesResponse\"2\xDAA\x06parent\x82\xD3\xE4\x93\x02#\x12!/v1/{parent=networks/*}/companies\x12\xA5\x01\x0A\x0DCreateCompany\x12-.google.ads.admanager.v1.CreateCompanyRequest\x1A .google.ads.admanager.v1.Company\"C\xDAA\x0Eparent,company\x82\xD3\xE4\x93\x02,\"!/v1/{parent=networks/*}/companies:\x07company\x12\xCF\x01\x0A\x14BatchCreateCompanies\x124.google.ads.admanager.v1.BatchCreateCompaniesRequest\x1A5.google.ads.admanager.v1.BatchCreateCompaniesResponse\"J\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x022\"-/v1/{parent=networks/*}/companies:batchCreate:\x01*\x12\xB2\x01\x0A\x0DUpdateCompany\x12-.google.ads.admanager.v1.UpdateCompanyRequest\x1A .google.ads.admanager.v1.Company\"P\xDAA\x13company,update_mask\x82\xD3\xE4\x93\x0242)/v1/{company.name=networks/*/companies/*}:\x07company\x12\xCF\x01\x0A\x14BatchUpdateCompanies\x124.google.ads.admanager.v1.BatchUpdateCompaniesRequest\x1A5.google.ads.admanager.v1.BatchUpdateCompaniesResponse\"J\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x022\"-/v1/{parent=networks/*}/companies:batchUpdate:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13CompanyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/ConversionEventEnum.php b/AdsAdManager/metadata/V1/ConversionEventEnum.php new file mode 100644 index 000000000000..c5c677fa644a --- /dev/null +++ b/AdsAdManager/metadata/V1/ConversionEventEnum.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB7\x06\x0A3google/ads/admanager/v1/conversion_event_enum.proto\x12\x17google.ads.admanager.v1\"\x8F\x04\x0A\x13ConversionEventEnum\"\xF7\x03\x0A\x0FConversionEvent\x12 \x0A\x1CCONVERSION_EVENT_UNSPECIFIED\x10\x00\x12\x15\x0A\x11ACCEPT_INVITATION\x10\x01\x12\x12\x0A\x0ECLICK_TRACKING\x10\x02\x12\x09\x0A\x05CLOSE\x10\x03\x12\x0C\x0A\x08COLLAPSE\x10\x04\x12\x0C\x0A\x08COMPLETE\x10\x05\x12\x11\x0A\x0DCREATIVE_VIEW\x10\x06\x12\x10\x0A\x0CCUSTOM_CLICK\x10\x07\x12\x10\x0A\x0CENGAGED_VIEW\x10\x08\x12\x0A\x0A\x06EXPAND\x10\x09\x12\x12\x0A\x0EFIRST_QUARTILE\x10\x0A\x12\x0E\x0A\x0AFULLSCREEN\x10\x0B\x123\x0A/FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION\x10\x0C\x12\x19\x0A\x15MEASURABLE_IMPRESSION\x10\x0D\x12\x0C\x0A\x08MIDPOINT\x10\x0E\x12\x08\x0A\x04MUTE\x10\x0F\x12\x09\x0A\x05PAUSE\x10\x10\x12\x0A\x0A\x06RESUME\x10\x11\x12\x0A\x0A\x06REWIND\x10\x12\x12\x0B\x0A\x07SKIPPED\x10\x13\x12\x0E\x0A\x0ASKIP_SHOWN\x10\x14\x12\x09\x0A\x05START\x10\x15\x12\x0A\x0A\x06SURVEY\x10\x16\x12\x12\x0A\x0ETHIRD_QUARTILE\x10\x17\x12\x0A\x0A\x06UNMUTE\x10\x18\x12\x11\x0A\x0DVIDEO_ABANDON\x10\x19\x12\x17\x0A\x13VIEWABLE_IMPRESSION\x10\x1AB\xCC\x01\x0A\x1Bcom.google.ads.admanager.v1B\x18ConversionEventEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/CreativeWrapperEnums.php b/AdsAdManager/metadata/V1/CreativeWrapperEnums.php new file mode 100644 index 000000000000..202497acc617 --- /dev/null +++ b/AdsAdManager/metadata/V1/CreativeWrapperEnums.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xAA\x05\x0A4google/ads/admanager/v1/creative_wrapper_enums.proto\x12\x17google.ads.admanager.v1\"y\x0A\x17CreativeWrapperTypeEnum\"^\x0A\x13CreativeWrapperType\x12%\x0A!CREATIVE_WRAPPER_TYPE_UNSPECIFIED\x10\x00\x12\x08\x0A\x04HTML\x10\x01\x12\x16\x0A\x12VIDEO_TRACKING_URL\x10\x02\"w\x0A\x19CreativeWrapperStatusEnum\"Z\x0A\x15CreativeWrapperStatus\x12'\x0A#CREATIVE_WRAPPER_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08INACTIVE\x10\x02\"\x8C\x01\x0A\x1BCreativeWrapperOrderingEnum\"m\x0A\x17CreativeWrapperOrdering\x12)\x0A%CREATIVE_WRAPPER_ORDERING_UNSPECIFIED\x10\x00\x12\x09\x0A\x05INNER\x10\x01\x12\x11\x0A\x0DNO_PREFERENCE\x10\x02\x12\x09\x0A\x05OUTER\x10\x03B\xCD\x01\x0A\x1Bcom.google.ads.admanager.v1B\x19CreativeWrapperEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/CreativeWrapperMessages.php b/AdsAdManager/metadata/V1/CreativeWrapperMessages.php new file mode 100644 index 000000000000..0041660d2dfe --- /dev/null +++ b/AdsAdManager/metadata/V1/CreativeWrapperMessages.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xFC\x0C\x0A7google/ads/admanager/v1/creative_wrapper_messages.proto\x12\x17google.ads.admanager.v1\x1A:google/ads/admanager/v1/third_party_data_declaration.proto\x1A0google/ads/admanager/v1/video_tracking_url.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\xA2\x09\x0A\x0FCreativeWrapper\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x128\x0A\x05label\x18\x04 \x01(\x09B)\xE0A\x05\xE0A\x02\xFAA \x0A\x1Eadmanager.googleapis.com/Label\x12m\x0A\x15creative_wrapper_type\x18\x05 \x01(\x0E2D.google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperTypeB\x03\xE0A\x02H\x00\x88\x01\x01\x12G\x0A\x0Fheader_creative\x18\x07 \x01(\x09B)\xE0A\x03\xFAA#\x0A!admanager.googleapis.com/CreativeH\x01\x88\x01\x01\x12G\x0A\x0Ffooter_creative\x18\x09 \x01(\x09B)\xE0A\x03\xFAA#\x0A!admanager.googleapis.com/CreativeH\x02\x88\x01\x01\x12\x1D\x0A\x0Bhtml_header\x18\x0B \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x1D\x0A\x0Bhtml_footer\x18\x0C \x01(\x09B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1C\x0A\x0Aamp_header\x18\x0D \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01\x12\x1C\x0A\x0Aamp_footer\x18\x0E \x01(\x09B\x03\xE0A\x01H\x06\x88\x01\x01\x12K\x0A\x13video_tracking_urls\x18\x0F \x03(\x0B2).google.ads.admanager.v1.VideoTrackingUrlB\x03\xE0A\x01\x12b\x0A\x1Cthird_party_data_declaration\x18\x10 \x01(\x0B22.google.ads.admanager.v1.ThirdPartyDataDeclarationB\x03\xE0A\x01H\x07\x88\x01\x01\x12h\x0A\x08ordering\x18\x14 \x01(\x0E2L.google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrderingB\x03\xE0A\x01H\x08\x88\x01\x01\x12b\x0A\x06status\x18\x15 \x01(\x0E2H.google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatusB\x03\xE0A\x03H\x09\x88\x01\x01:\x8E\x01\xEAA\x8A\x01\x0A(admanager.googleapis.com/CreativeWrapper\x12;networks/{network_code}/creativeWrappers/{creative_wrapper}*\x10creativeWrappers2\x0FcreativeWrapperB\x18\x0A\x16_creative_wrapper_typeB\x12\x0A\x10_header_creativeB\x12\x0A\x10_footer_creativeB\x0E\x0A\x0C_html_headerB\x0E\x0A\x0C_html_footerB\x0D\x0A\x0B_amp_headerB\x0D\x0A\x0B_amp_footerB\x1F\x0A\x1D_third_party_data_declarationB\x0B\x0A\x09_orderingB\x09\x0A\x07_statusB\xD0\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1CCreativeWrapperMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/CreativeWrapperService.php b/AdsAdManager/metadata/V1/CreativeWrapperService.php new file mode 100644 index 000000000000..9c99fd6bfb28 --- /dev/null +++ b/AdsAdManager/metadata/V1/CreativeWrapperService.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xAA \x0A6google/ads/admanager/v1/creative_wrapper_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"[\x0A\x19GetCreativeWrapperRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/CreativeWrapper\"\xC7\x01\x0A\x1BListCreativeWrappersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"\x90\x01\x0A\x1CListCreativeWrappersResponse\x12C\x0A\x11creative_wrappers\x18\x01 \x03(\x0B2(.google.ads.admanager.v1.CreativeWrapper\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\xA1\x01\x0A\x1CCreateCreativeWrapperRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12G\x0A\x10creative_wrapper\x18\x02 \x01(\x0B2(.google.ads.admanager.v1.CreativeWrapperB\x03\xE0A\x02\"\xAC\x01\x0A\"BatchCreateCreativeWrappersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12L\x0A\x08requests\x18\x02 \x03(\x0B25.google.ads.admanager.v1.CreateCreativeWrapperRequestB\x03\xE0A\x02\"j\x0A#BatchCreateCreativeWrappersResponse\x12C\x0A\x11creative_wrappers\x18\x01 \x03(\x0B2(.google.ads.admanager.v1.CreativeWrapper\"\x9D\x01\x0A\x1CUpdateCreativeWrapperRequest\x12G\x0A\x10creative_wrapper\x18\x01 \x01(\x0B2(.google.ads.admanager.v1.CreativeWrapperB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xAC\x01\x0A\"BatchUpdateCreativeWrappersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12L\x0A\x08requests\x18\x02 \x03(\x0B25.google.ads.admanager.v1.UpdateCreativeWrapperRequestB\x03\xE0A\x02\"j\x0A#BatchUpdateCreativeWrappersResponse\x12C\x0A\x11creative_wrappers\x18\x01 \x03(\x0B2(.google.ads.admanager.v1.CreativeWrapper\"\xA1\x01\x0A\$BatchActivateCreativeWrappersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12?\x0A\x05names\x18\x02 \x03(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/CreativeWrapper\"'\x0A%BatchActivateCreativeWrappersResponse\"\xA3\x01\x0A&BatchDeactivateCreativeWrappersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12?\x0A\x05names\x18\x02 \x03(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/CreativeWrapper\")\x0A'BatchDeactivateCreativeWrappersResponse2\x95\x0F\x0A\x16CreativeWrapperService\x12\xAB\x01\x0A\x12GetCreativeWrapper\x122.google.ads.admanager.v1.GetCreativeWrapperRequest\x1A(.google.ads.admanager.v1.CreativeWrapper\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=networks/*/creativeWrappers/*}\x12\xBE\x01\x0A\x14ListCreativeWrappers\x124.google.ads.admanager.v1.ListCreativeWrappersRequest\x1A5.google.ads.admanager.v1.ListCreativeWrappersResponse\"9\xDAA\x06parent\x82\xD3\xE4\x93\x02*\x12(/v1/{parent=networks/*}/creativeWrappers\x12\xD6\x01\x0A\x15CreateCreativeWrapper\x125.google.ads.admanager.v1.CreateCreativeWrapperRequest\x1A(.google.ads.admanager.v1.CreativeWrapper\"\\\xDAA\x17parent,creative_wrapper\x82\xD3\xE4\x93\x02<\"(/v1/{parent=networks/*}/creativeWrappers:\x10creative_wrapper\x12\xEB\x01\x0A\x1BBatchCreateCreativeWrappers\x12;.google.ads.admanager.v1.BatchCreateCreativeWrappersRequest\x1A<.google.ads.admanager.v1.BatchCreateCreativeWrappersResponse\"Q\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x029\"4/v1/{parent=networks/*}/creativeWrappers:batchCreate:\x01*\x12\xEC\x01\x0A\x15UpdateCreativeWrapper\x125.google.ads.admanager.v1.UpdateCreativeWrapperRequest\x1A(.google.ads.admanager.v1.CreativeWrapper\"r\xDAA\x1Ccreative_wrapper,update_mask\x82\xD3\xE4\x93\x02M29/v1/{creative_wrapper.name=networks/*/creativeWrappers/*}:\x10creative_wrapper\x12\xEB\x01\x0A\x1BBatchUpdateCreativeWrappers\x12;.google.ads.admanager.v1.BatchUpdateCreativeWrappersRequest\x1A<.google.ads.admanager.v1.BatchUpdateCreativeWrappersResponse\"Q\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x029\"4/v1/{parent=networks/*}/creativeWrappers:batchUpdate:\x01*\x12\xF0\x01\x0A\x1DBatchActivateCreativeWrappers\x12=.google.ads.admanager.v1.BatchActivateCreativeWrappersRequest\x1A>.google.ads.admanager.v1.BatchActivateCreativeWrappersResponse\"P\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02;\"6/v1/{parent=networks/*}/creativeWrappers:batchActivate:\x01*\x12\xF8\x01\x0A\x1FBatchDeactivateCreativeWrappers\x12?.google.ads.admanager.v1.BatchDeactivateCreativeWrappersRequest\x1A@.google.ads.admanager.v1.BatchDeactivateCreativeWrappersResponse\"R\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02=\"8/v1/{parent=networks/*}/creativeWrappers:batchDeactivate:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xCF\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1BCreativeWrapperServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/DaiAuthenticationKeyEnums.php b/AdsAdManager/metadata/V1/DaiAuthenticationKeyEnums.php new file mode 100644 index 000000000000..ac3d097cc121 --- /dev/null +++ b/AdsAdManager/metadata/V1/DaiAuthenticationKeyEnums.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB8\x04\x0A:google/ads/admanager/v1/dai_authentication_key_enums.proto\x12\x17google.ads.admanager.v1\"\x87\x01\x0A\x1EDaiAuthenticationKeyStatusEnum\"e\x0A\x1ADaiAuthenticationKeyStatus\x12-\x0A)DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08INACTIVE\x10\x02\"z\x0A\x1CDaiAuthenticationKeyTypeEnum\"Z\x0A\x18DaiAuthenticationKeyType\x12+\x0A'DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED\x10\x00\x12\x07\x0A\x03API\x10\x01\x12\x08\x0A\x04HMAC\x10\x02B\xD2\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1EDaiAuthenticationKeyEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/DaiAuthenticationKeyMessages.php b/AdsAdManager/metadata/V1/DaiAuthenticationKeyMessages.php new file mode 100644 index 000000000000..278832a84a75 --- /dev/null +++ b/AdsAdManager/metadata/V1/DaiAuthenticationKeyMessages.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xEE\x06\x0A=google/ads/admanager/v1/dai_authentication_key_messages.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\xF7\x03\x0A\x14DaiAuthenticationKey\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12l\x0A\x06status\x18\x04 \x01(\x0E2R.google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatusB\x03\xE0A\x03H\x00\x88\x01\x01\x12\x1E\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x02H\x01\x88\x01\x01\x12j\x0A\x08key_type\x18\x06 \x01(\x0E2N.google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyTypeB\x03\xE0A\x01H\x02\x88\x01\x01:\xA8\x01\xEAA\xA4\x01\x0A-admanager.googleapis.com/DaiAuthenticationKey\x12Fnetworks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}*\x15daiAuthenticationKeys2\x14daiAuthenticationKeyB\x09\x0A\x07_statusB\x0F\x0A\x0D_display_nameB\x0B\x0A\x09_key_typeB\xD5\x01\x0A\x1Bcom.google.ads.admanager.v1B!DaiAuthenticationKeyMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/DaiAuthenticationKeyService.php b/AdsAdManager/metadata/V1/DaiAuthenticationKeyService.php new file mode 100644 index 000000000000..8f9345f4cc0e --- /dev/null +++ b/AdsAdManager/metadata/V1/DaiAuthenticationKeyService.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\x8A#\x0A\xDAA\x06parent\x82\xD3\xE4\x93\x02/\x12-/v1/{parent=networks/*}/daiAuthenticationKeys\x12\xF6\x01\x0A\x1ACreateDaiAuthenticationKey\x12:.google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest\x1A-.google.ads.admanager.v1.DaiAuthenticationKey\"m\xDAA\x1Dparent,dai_authentication_key\x82\xD3\xE4\x93\x02G\"-/v1/{parent=networks/*}/daiAuthenticationKeys:\x16dai_authentication_key\x12\xFF\x01\x0A BatchCreateDaiAuthenticationKeys\x12@.google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysRequest\x1AA.google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysResponse\"V\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02>\"9/v1/{parent=networks/*}/daiAuthenticationKeys:batchCreate:\x01*\x12\x93\x02\x0A\x1AUpdateDaiAuthenticationKey\x12:.google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest\x1A-.google.ads.admanager.v1.DaiAuthenticationKey\"\x89\x01\xDAA\"dai_authentication_key,update_mask\x82\xD3\xE4\x93\x02^2D/v1/{dai_authentication_key.name=networks/*/daiAuthenticationKeys/*}:\x16dai_authentication_key\x12\xFF\x01\x0A BatchUpdateDaiAuthenticationKeys\x12@.google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysRequest\x1AA.google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysResponse\"V\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02>\"9/v1/{parent=networks/*}/daiAuthenticationKeys:batchUpdate:\x01*\x12\x84\x02\x0A\"BatchActivateDaiAuthenticationKeys\x12B.google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysRequest\x1AC.google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysResponse\"U\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02@\";/v1/{parent=networks/*}/daiAuthenticationKeys:batchActivate:\x01*\x12\x8C\x02\x0A\$BatchDeactivateDaiAuthenticationKeys\x12D.google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysRequest\x1AE.google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysResponse\"W\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02B\"=/v1/{parent=networks/*}/daiAuthenticationKeys:batchDeactivate:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xD4\x01\x0A\x1Bcom.google.ads.admanager.v1B DaiAuthenticationKeyServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/DaiEncodingProfileEnums.php b/AdsAdManager/metadata/V1/DaiEncodingProfileEnums.php new file mode 100644 index 000000000000..62c8e937f757 --- /dev/null +++ b/AdsAdManager/metadata/V1/DaiEncodingProfileEnums.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xB9\x05\x0A8google/ads/admanager/v1/dai_encoding_profile_enums.proto\x12\x17google.ads.admanager.v1\"e\x0A\x11ContainerTypeEnum\"P\x0A\x0DContainerType\x12\x1E\x0A\x1ACONTAINER_TYPE_UNSPECIFIED\x10\x00\x12\x06\x0A\x02TS\x10\x01\x12\x08\x0A\x04FMP4\x10\x02\x12\x0D\x0A\x09HLS_AUDIO\x10\x03\"\x81\x01\x0A\x1CDaiEncodingProfileStatusEnum\"a\x0A\x18DaiEncodingProfileStatus\x12+\x0A'DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06ACTIVE\x10\x01\x12\x0C\x0A\x08ARCHIVED\x10\x02\"\x9D\x01\x0A!DaiEncodingProfileVariantTypeEnum\"x\x0A\x1DDaiEncodingProfileVariantType\x121\x0A-DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05MEDIA\x10\x01\x12\x0A\x0A\x06IFRAME\x10\x02\x12\x0D\x0A\x09SUBTITLES\x10\x03B\xD0\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1CDaiEncodingProfileEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/DaiEncodingProfileMessages.php b/AdsAdManager/metadata/V1/DaiEncodingProfileMessages.php new file mode 100644 index 000000000000..0d0878632388 --- /dev/null +++ b/AdsAdManager/metadata/V1/DaiEncodingProfileMessages.php @@ -0,0 +1,28 @@ +internalAddGeneratedFile( + "\x0A\xAC\x0C\x0A;google/ads/admanager/v1/dai_encoding_profile_messages.proto\x12\x17google.ads.admanager.v1\x1A\"google/ads/admanager/v1/size.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\xF2\x05\x0A\x12DaiEncodingProfile\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1E\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12h\x0A\x06status\x18\x04 \x01(\x0E2N.google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatusB\x03\xE0A\x03H\x01\x88\x01\x01\x12x\x0A\x0Cvariant_type\x18\x05 \x01(\x0E2X.google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantTypeB\x03\xE0A\x02H\x02\x88\x01\x01\x12Z\x0A\x0Econtainer_type\x18\x06 \x01(\x0E28.google.ads.admanager.v1.ContainerTypeEnum.ContainerTypeB\x03\xE0A\x02H\x03\x88\x01\x01\x12C\x0A\x0Evideo_settings\x18\x07 \x01(\x0B2&.google.ads.admanager.v1.VideoSettingsB\x03\xE0A\x01\x12C\x0A\x0Eaudio_settings\x18\x08 \x01(\x0B2&.google.ads.admanager.v1.AudioSettingsB\x03\xE0A\x01:\x9E\x01\xEAA\x9A\x01\x0A+admanager.googleapis.com/DaiEncodingProfile\x12Bnetworks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}*\x13daiEncodingProfiles2\x12daiEncodingProfileB\x0F\x0A\x0D_display_nameB\x09\x0A\x07_statusB\x0F\x0A\x0D_variant_typeB\x11\x0A\x0F_container_type\"\xBD\x01\x0A\x0DAudioSettings\x12\x17\x0A\x05codec\x18\x01 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12\x19\x0A\x07bitrate\x18\x02 \x01(\x03B\x03\xE0A\x02H\x01\x88\x01\x01\x12\x1A\x0A\x08channels\x18\x03 \x01(\x03B\x03\xE0A\x02H\x02\x88\x01\x01\x12#\x0A\x11sample_rate_hertz\x18\x04 \x01(\x03B\x03\xE0A\x02H\x03\x88\x01\x01B\x08\x0A\x06_codecB\x0A\x0A\x08_bitrateB\x0B\x0A\x09_channelsB\x14\x0A\x12_sample_rate_hertz\"\xE0\x01\x0A\x0DVideoSettings\x12\x17\x0A\x05codec\x18\x01 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12\x19\x0A\x07bitrate\x18\x02 \x01(\x03B\x03\xE0A\x02H\x01\x88\x01\x01\x12#\x0A\x11frames_per_second\x18\x03 \x01(\x01B\x03\xE0A\x02H\x02\x88\x01\x01\x12;\x0A\x0Aresolution\x18\x04 \x01(\x0B2\x1D.google.ads.admanager.v1.SizeB\x03\xE0A\x02H\x03\x88\x01\x01B\x08\x0A\x06_codecB\x0A\x0A\x08_bitrateB\x14\x0A\x12_frames_per_secondB\x0D\x0A\x0B_resolutionB\xD3\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1FDaiEncodingProfileMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/DaiEncodingProfileService.php b/AdsAdManager/metadata/V1/DaiEncodingProfileService.php new file mode 100644 index 000000000000..1538054a954e --- /dev/null +++ b/AdsAdManager/metadata/V1/DaiEncodingProfileService.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xE2#\x0A:google/ads/admanager/v1/dai_encoding_profile_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"a\x0A\x1CGetDaiEncodingProfileRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+admanager.googleapis.com/DaiEncodingProfile\"\xCA\x01\x0A\x1EListDaiEncodingProfilesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"\x9A\x01\x0A\x1FListDaiEncodingProfilesResponse\x12J\x0A\x15dai_encoding_profiles\x18\x01 \x03(\x0B2+.google.ads.admanager.v1.DaiEncodingProfile\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\xAB\x01\x0A\x1FCreateDaiEncodingProfileRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12N\x0A\x14dai_encoding_profile\x18\x02 \x01(\x0B2+.google.ads.admanager.v1.DaiEncodingProfileB\x03\xE0A\x02\"\xB2\x01\x0A%BatchCreateDaiEncodingProfilesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12O\x0A\x08requests\x18\x02 \x03(\x0B28.google.ads.admanager.v1.CreateDaiEncodingProfileRequestB\x03\xE0A\x02\"t\x0A&BatchCreateDaiEncodingProfilesResponse\x12J\x0A\x15dai_encoding_profiles\x18\x01 \x03(\x0B2+.google.ads.admanager.v1.DaiEncodingProfile\"\xA7\x01\x0A\x1FUpdateDaiEncodingProfileRequest\x12N\x0A\x14dai_encoding_profile\x18\x01 \x01(\x0B2+.google.ads.admanager.v1.DaiEncodingProfileB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xB2\x01\x0A%BatchUpdateDaiEncodingProfilesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12O\x0A\x08requests\x18\x02 \x03(\x0B28.google.ads.admanager.v1.UpdateDaiEncodingProfileRequestB\x03\xE0A\x02\"t\x0A&BatchUpdateDaiEncodingProfilesResponse\x12J\x0A\x15dai_encoding_profiles\x18\x01 \x03(\x0B2+.google.ads.admanager.v1.DaiEncodingProfile\"\xB6\x01\x0A'BatchActivateDaiEncodingProfilesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12Q\x0A\x08requests\x18\x02 \x03(\x0B2:.google.ads.admanager.v1.ActivateDaiEncodingProfileRequestB\x03\xE0A\x02\"*\x0A(BatchActivateDaiEncodingProfilesResponse\"f\x0A!ActivateDaiEncodingProfileRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+admanager.googleapis.com/DaiEncodingProfile\"\xB4\x01\x0A&BatchArchiveDaiEncodingProfilesRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12P\x0A\x08requests\x18\x02 \x03(\x0B29.google.ads.admanager.v1.ArchiveDaiEncodingProfileRequestB\x03\xE0A\x02\")\x0A'BatchArchiveDaiEncodingProfilesResponse\"e\x0A ArchiveDaiEncodingProfileRequest\x12A\x0A\x04name\x18\x01 \x01(\x09B3\xE0A\x02\xFAA-\x0A+admanager.googleapis.com/DaiEncodingProfile2\x87\x10\x0A\x19DaiEncodingProfileService\x12\xB7\x01\x0A\x15GetDaiEncodingProfile\x125.google.ads.admanager.v1.GetDaiEncodingProfileRequest\x1A+.google.ads.admanager.v1.DaiEncodingProfile\":\xDAA\x04name\x82\xD3\xE4\x93\x02-\x12+/v1/{name=networks/*/daiEncodingProfiles/*}\x12\xCA\x01\x0A\x17ListDaiEncodingProfiles\x127.google.ads.admanager.v1.ListDaiEncodingProfilesRequest\x1A8.google.ads.admanager.v1.ListDaiEncodingProfilesResponse\"<\xDAA\x06parent\x82\xD3\xE4\x93\x02-\x12+/v1/{parent=networks/*}/daiEncodingProfiles\x12\xEA\x01\x0A\x18CreateDaiEncodingProfile\x128.google.ads.admanager.v1.CreateDaiEncodingProfileRequest\x1A+.google.ads.admanager.v1.DaiEncodingProfile\"g\xDAA\x1Bparent,dai_encoding_profile\x82\xD3\xE4\x93\x02C\"+/v1/{parent=networks/*}/daiEncodingProfiles:\x14dai_encoding_profile\x12\xF7\x01\x0A\x1EBatchCreateDaiEncodingProfiles\x12>.google.ads.admanager.v1.BatchCreateDaiEncodingProfilesRequest\x1A?.google.ads.admanager.v1.BatchCreateDaiEncodingProfilesResponse\"T\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02<\"7/v1/{parent=networks/*}/daiEncodingProfiles:batchCreate:\x01*\x12\x85\x02\x0A\x18UpdateDaiEncodingProfile\x128.google.ads.admanager.v1.UpdateDaiEncodingProfileRequest\x1A+.google.ads.admanager.v1.DaiEncodingProfile\"\x81\x01\xDAA dai_encoding_profile,update_mask\x82\xD3\xE4\x93\x02X2@/v1/{dai_encoding_profile.name=networks/*/daiEncodingProfiles/*}:\x14dai_encoding_profile\x12\xF7\x01\x0A\x1EBatchUpdateDaiEncodingProfiles\x12>.google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesRequest\x1A?.google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesResponse\"T\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02<\"7/v1/{parent=networks/*}/daiEncodingProfiles:batchUpdate:\x01*\x12\xFF\x01\x0A BatchActivateDaiEncodingProfiles\x12@.google.ads.admanager.v1.BatchActivateDaiEncodingProfilesRequest\x1AA.google.ads.admanager.v1.BatchActivateDaiEncodingProfilesResponse\"V\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02>\"9/v1/{parent=networks/*}/daiEncodingProfiles:batchActivate:\x01*\x12\xFB\x01\x0A\x1FBatchArchiveDaiEncodingProfiles\x12?.google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesRequest\x1A@.google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesResponse\"U\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02=\"8/v1/{parent=networks/*}/daiEncodingProfiles:batchArchive:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xD2\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1EDaiEncodingProfileServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/LiveStreamMessages.php b/AdsAdManager/metadata/V1/LiveStreamMessages.php index b249eb3d44d1..06b0148bf072 100644 --- a/AdsAdManager/metadata/V1/LiveStreamMessages.php +++ b/AdsAdManager/metadata/V1/LiveStreamMessages.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Protobuf\Duration::initOnce(); \GPBMetadata\Google\Protobuf\Timestamp::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\x94\$\x0A2google/ads/admanager/v1/live_stream_messages.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xFC\x19\x0A\x0ALiveStream\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1E\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12b\x0A\x06status\x18\x03 \x01(\x0E2H.google.ads.admanager.v1.LiveStreamEventStatusEnum.LiveStreamEventStatusB\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x121\x0A\x08end_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\$\x0A\x12end_time_unlimited\x18\x08 \x01(\x08B\x03\xE0A\x01H\x02\x88\x01\x01\x12\x19\x0A\x0Ccontent_urls\x18\x09 \x03(\x09B\x03\xE0A\x02\x12\x14\x0A\x07ad_tags\x18\x0A \x03(\x09B\x03\xE0A\x02\x12\x1B\x0A\x09asset_key\x18\x0B \x01(\x09B\x03\xE0A\x03H\x03\x88\x01\x01\x120\x0A\x1Eenable_dai_authentication_keys\x18\x0E \x01(\x08B\x03\xE0A\x01H\x04\x88\x01\x01\x12b\x0A\x12ad_break_fill_type\x18\x0F \x01(\x0E2<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xE0A\x01H\x05\x88\x01\x01\x12l\x0A\x1Cunderfill_ad_break_fill_type\x18\x10 \x01(\x0E2<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xE0A\x01H\x06\x88\x01\x01\x12@\x0A\x13ad_holiday_duration\x18\x11 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x07\x88\x01\x01\x12,\x0A\x1Aenable_max_filler_duration\x18\x12 \x01(\x08B\x03\xE0A\x01H\x08\x88\x01\x01\x12@\x0A\x13max_filler_duration\x18\x13 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x09\x88\x01\x01\x12I\x0A\x1Cpod_serving_segment_duration\x18\x14 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0A\x88\x01\x01\x12/\x0A\x1Denable_durationless_ad_breaks\x18\x15 \x01(\x08B\x03\xE0A\x01H\x0B\x88\x01\x01\x12F\x0A\x19default_ad_break_duration\x18\x16 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0C\x88\x01\x01\x12Q\x0A\x1Dsource_content_configurations\x18\x1A \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"admanager.googleapis.com/CdnConfig\x12Q\x0A\x18ad_media_delivery_config\x18\x1B \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"admanager.googleapis.com/CdnConfigH\x0D\x88\x01\x01\x12G\x0A\x10preroll_settings\x18\x1C \x01(\x0B2(.google.ads.admanager.v1.PrerollSettingsB\x03\xE0A\x01\x12?\x0A\x0Chls_settings\x18\x1D \x01(\x0B2\$.google.ads.admanager.v1.HlsSettingsB\x03\xE0A\x01\x12)\x0A\x17allowlisted_ips_enabled\x18\x1E \x01(\x08B\x03\xE0A\x01H\x0E\x88\x01\x01\x12w\x0A\x19dynamic_ad_insertion_type\x18\x1F \x01(\x0E2J.google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionTypeB\x03\xE0A\x05H\x0F\x88\x01\x01\x124\x0A\"relative_playlist_delivery_enabled\x18! \x01(\x08B\x03\xE0A\x01H\x10\x88\x01\x01\x12~\x0A\x10streaming_format\x18\" \x01(\x0E2Z.google.ads.admanager.v1.LiveStreamEventStreamingFormatEnum.LiveStreamEventStreamingFormatB\x03\xE0A\x05H\x11\x88\x01\x01\x12\"\x0A\x10prefetch_enabled\x18# \x01(\x08B\x03\xE0A\x01H\x12\x88\x01\x01\x12I\x0A\x11prefetch_settings\x18\$ \x01(\x0B2).google.ads.admanager.v1.PrefetchSettingsB\x03\xE0A\x01\x12'\x0A\x15forced_cue_in_enabled\x18% \x01(\x08B\x03\xE0A\x01H\x13\x88\x01\x01\x120\x0A\x1Eshort_segment_dropping_enabled\x18& \x01(\x08B\x03\xE0A\x01H\x14\x88\x01\x01\x12\"\x0A\x10custom_asset_key\x18' \x01(\x09B\x03\xE0A\x05H\x15\x88\x01\x01\x12_\x0A\x10ad_break_markups\x18* \x03(\x0E2@.google.ads.admanager.v1.AdBreakMarkupTypeEnum.AdBreakMarkupTypeB\x03\xE0A\x01\x12/\x0A\x1Dad_break_markup_types_enabled\x18+ \x01(\x08B\x03\xE0A\x01H\x16\x88\x01\x01\x12V\x0A\x18live_stream_conditioning\x18. \x01(\x0B2/.google.ads.admanager.v1.LiveStreamConditioningB\x03\xE0A\x01\x12I\x0A7early_break_notification_multi_break_scheduling_enabled\x186 \x01(\x08B\x03\xE0A\x01H\x17\x88\x01\x01\x12=\x0A\x15ad_pod_trim_tolerance\x187 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12%\x0A\x13effective_asset_key\x188 \x01(\x09B\x03\xE0A\x03H\x18\x88\x01\x01\x12P\x0A\x15auxiliary_ad_settings\x189 \x01(\x0B2,.google.ads.admanager.v1.AuxiliaryAdSettingsB\x03\xE0A\x01:t\xEAAq\x0A#admanager.googleapis.com/LiveStream\x121networks/{network_code}/liveStreams/{live_stream}*\x0BliveStreams2\x0AliveStreamB\x0F\x0A\x0D_display_nameB\x09\x0A\x07_statusB\x15\x0A\x13_end_time_unlimitedB\x0C\x0A\x0A_asset_keyB!\x0A\x1F_enable_dai_authentication_keysB\x15\x0A\x13_ad_break_fill_typeB\x1F\x0A\x1D_underfill_ad_break_fill_typeB\x16\x0A\x14_ad_holiday_durationB\x1D\x0A\x1B_enable_max_filler_durationB\x16\x0A\x14_max_filler_durationB\x1F\x0A\x1D_pod_serving_segment_durationB \x0A\x1E_enable_durationless_ad_breaksB\x1C\x0A\x1A_default_ad_break_durationB\x1B\x0A\x19_ad_media_delivery_configB\x1A\x0A\x18_allowlisted_ips_enabledB\x1C\x0A\x1A_dynamic_ad_insertion_typeB%\x0A#_relative_playlist_delivery_enabledB\x13\x0A\x11_streaming_formatB\x13\x0A\x11_prefetch_enabledB\x18\x0A\x16_forced_cue_in_enabledB!\x0A\x1F_short_segment_dropping_enabledB\x13\x0A\x11_custom_asset_keyB \x0A\x1E_ad_break_markup_types_enabledB:\x0A8_early_break_notification_multi_break_scheduling_enabledB\x16\x0A\x14_effective_asset_key\"\x80\x01\x0A\x10PrefetchSettings\x12J\x0A\x1Dstage_one_ad_request_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_stage_one_ad_request_duration\"W\x0A\x16LiveStreamConditioning\x12=\x0A\x0Bdash_bridge\x18\x01 \x01(\x0B2#.google.ads.admanager.v1.DashBridgeB\x03\xE0A\x01\"\xE6\x01\x0A\x0BHlsSettings\x12m\x0A\x0Dplaylist_type\x18\x01 \x01(\x0E2L.google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistTypeB\x03\xE0A\x05H\x00\x88\x01\x01\x12V\x0A\x18master_playlist_settings\x18\x02 \x01(\x0B2/.google.ads.admanager.v1.MasterPlaylistSettingsB\x03\xE0A\x01B\x10\x0A\x0E_playlist_type\"3\x0A\x0ADashBridge\x12\x19\x0A\x07enabled\x18\x02 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01B\x0A\x0A\x08_enabled\"\x90\x01\x0A\x0FPrerollSettings\x12\x18\x0A\x06ad_tag\x18\x01 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12@\x0A\x13max_ad_pod_duration\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02H\x01\x88\x01\x01B\x09\x0A\x07_ad_tagB\x16\x0A\x14_max_ad_pod_duration\"B\x0A\x13AuxiliaryAdSettings\x12\x1C\x0A\x0Aad_tag_url\x18\x01 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01B\x0D\x0A\x0B_ad_tag_url\"\xA1\x01\x0A\x16MasterPlaylistSettings\x12v\x0A\x0Crefresh_type\x18\x01 \x01(\x0E2V.google.ads.admanager.v1.HlsMasterPlaylistRefreshTypeEnum.HlsMasterPlaylistRefreshTypeB\x03\xE0A\x01H\x00\x88\x01\x01B\x0F\x0A\x0D_refresh_typeB\xCB\x01\x0A\x1Bcom.google.ads.admanager.v1B\x17LiveStreamMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xC0'\x0A2google/ads/admanager/v1/live_stream_messages.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Egoogle/protobuf/duration.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA8\x1D\x0A\x0ALiveStream\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1E\x0A\x0Cdisplay_name\x18\x02 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12b\x0A\x06status\x18\x03 \x01(\x0E2H.google.ads.admanager.v1.LiveStreamEventStatusEnum.LiveStreamEventStatusB\x03\xE0A\x03H\x01\x88\x01\x01\x124\x0A\x0Bcreate_time\x18\x04 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bupdate_time\x18\x05 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x123\x0A\x0Astart_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x121\x0A\x08end_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x01\x12\$\x0A\x12end_time_unlimited\x18\x08 \x01(\x08B\x03\xE0A\x01H\x02\x88\x01\x01\x12\x19\x0A\x0Ccontent_urls\x18\x09 \x03(\x09B\x03\xE0A\x02\x12\x14\x0A\x07ad_tags\x18\x0A \x03(\x09B\x03\xE0A\x02\x12\x1B\x0A\x09asset_key\x18\x0B \x01(\x09B\x03\xE0A\x03H\x03\x88\x01\x01\x12:\x0A\x05slate\x18\x0C \x01(\x09B&\xE0A\x01\xFAA \x0A\x1Eadmanager.googleapis.com/SlateH\x04\x88\x01\x01\x12@\x0A\x13dvr_window_duration\x18; \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x05\x88\x01\x01\x120\x0A\x1Eenable_dai_authentication_keys\x18\x0E \x01(\x08B\x03\xE0A\x01H\x06\x88\x01\x01\x12b\x0A\x12ad_break_fill_type\x18\x0F \x01(\x0E2<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xE0A\x01H\x07\x88\x01\x01\x12l\x0A\x1Cunderfill_ad_break_fill_type\x18\x10 \x01(\x0E2<.google.ads.admanager.v1.AdBreakFillTypeEnum.AdBreakFillTypeB\x03\xE0A\x01H\x08\x88\x01\x01\x12@\x0A\x13ad_holiday_duration\x18\x11 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x09\x88\x01\x01\x12,\x0A\x1Aenable_max_filler_duration\x18\x12 \x01(\x08B\x03\xE0A\x01H\x0A\x88\x01\x01\x12@\x0A\x13max_filler_duration\x18\x13 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0B\x88\x01\x01\x12I\x0A\x1Cpod_serving_segment_duration\x18\x14 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0C\x88\x01\x01\x12/\x0A\x1Denable_durationless_ad_breaks\x18\x15 \x01(\x08B\x03\xE0A\x01H\x0D\x88\x01\x01\x12F\x0A\x19default_ad_break_duration\x18\x16 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x0E\x88\x01\x01\x12V\x0A\x17dai_authentication_keys\x18\x18 \x03(\x09B5\xE0A\x01\xFAA/\x0A-admanager.googleapis.com/DaiAuthenticationKey\x12Q\x0A\x1Dsource_content_configurations\x18\x1A \x03(\x09B*\xE0A\x01\xFAA\$\x0A\"admanager.googleapis.com/CdnConfig\x12Q\x0A\x18ad_media_delivery_config\x18\x1B \x01(\x09B*\xE0A\x01\xFAA\$\x0A\"admanager.googleapis.com/CdnConfigH\x0F\x88\x01\x01\x12G\x0A\x10preroll_settings\x18\x1C \x01(\x0B2(.google.ads.admanager.v1.PrerollSettingsB\x03\xE0A\x01\x12?\x0A\x0Chls_settings\x18\x1D \x01(\x0B2\$.google.ads.admanager.v1.HlsSettingsB\x03\xE0A\x01\x12)\x0A\x17allowlisted_ips_enabled\x18\x1E \x01(\x08B\x03\xE0A\x01H\x10\x88\x01\x01\x12w\x0A\x19dynamic_ad_insertion_type\x18\x1F \x01(\x0E2J.google.ads.admanager.v1.DynamicAdInsertionTypeEnum.DynamicAdInsertionTypeB\x03\xE0A\x05H\x11\x88\x01\x01\x124\x0A\"relative_playlist_delivery_enabled\x18! \x01(\x08B\x03\xE0A\x01H\x12\x88\x01\x01\x12~\x0A\x10streaming_format\x18\" \x01(\x0E2Z.google.ads.admanager.v1.LiveStreamEventStreamingFormatEnum.LiveStreamEventStreamingFormatB\x03\xE0A\x05H\x13\x88\x01\x01\x12\"\x0A\x10prefetch_enabled\x18# \x01(\x08B\x03\xE0A\x01H\x14\x88\x01\x01\x12I\x0A\x11prefetch_settings\x18\$ \x01(\x0B2).google.ads.admanager.v1.PrefetchSettingsB\x03\xE0A\x01\x12'\x0A\x15forced_cue_in_enabled\x18% \x01(\x08B\x03\xE0A\x01H\x15\x88\x01\x01\x120\x0A\x1Eshort_segment_dropping_enabled\x18& \x01(\x08B\x03\xE0A\x01H\x16\x88\x01\x01\x12\"\x0A\x10custom_asset_key\x18' \x01(\x09B\x03\xE0A\x05H\x17\x88\x01\x01\x12R\x0A\x15dai_encoding_profiles\x18( \x03(\x09B3\xE0A\x01\xFAA-\x0A+admanager.googleapis.com/DaiEncodingProfile\x12^\x0A\x1Fsegment_url_authentication_keys\x18) \x03(\x09B5\xE0A\x01\xFAA/\x0A-admanager.googleapis.com/DaiAuthenticationKey\x12_\x0A\x10ad_break_markups\x18* \x03(\x0E2@.google.ads.admanager.v1.AdBreakMarkupTypeEnum.AdBreakMarkupTypeB\x03\xE0A\x01\x12/\x0A\x1Dad_break_markup_types_enabled\x18+ \x01(\x08B\x03\xE0A\x01H\x18\x88\x01\x01\x12V\x0A\x18live_stream_conditioning\x18. \x01(\x0B2/.google.ads.admanager.v1.LiveStreamConditioningB\x03\xE0A\x01\x12I\x0A7early_break_notification_multi_break_scheduling_enabled\x186 \x01(\x08B\x03\xE0A\x01H\x19\x88\x01\x01\x12=\x0A\x15ad_pod_trim_tolerance\x187 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01\x12%\x0A\x13effective_asset_key\x188 \x01(\x09B\x03\xE0A\x03H\x1A\x88\x01\x01\x12P\x0A\x15auxiliary_ad_settings\x189 \x01(\x0B2,.google.ads.admanager.v1.AuxiliaryAdSettingsB\x03\xE0A\x01:t\xEAAq\x0A#admanager.googleapis.com/LiveStream\x121networks/{network_code}/liveStreams/{live_stream}*\x0BliveStreams2\x0AliveStreamB\x0F\x0A\x0D_display_nameB\x09\x0A\x07_statusB\x15\x0A\x13_end_time_unlimitedB\x0C\x0A\x0A_asset_keyB\x08\x0A\x06_slateB\x16\x0A\x14_dvr_window_durationB!\x0A\x1F_enable_dai_authentication_keysB\x15\x0A\x13_ad_break_fill_typeB\x1F\x0A\x1D_underfill_ad_break_fill_typeB\x16\x0A\x14_ad_holiday_durationB\x1D\x0A\x1B_enable_max_filler_durationB\x16\x0A\x14_max_filler_durationB\x1F\x0A\x1D_pod_serving_segment_durationB \x0A\x1E_enable_durationless_ad_breaksB\x1C\x0A\x1A_default_ad_break_durationB\x1B\x0A\x19_ad_media_delivery_configB\x1A\x0A\x18_allowlisted_ips_enabledB\x1C\x0A\x1A_dynamic_ad_insertion_typeB%\x0A#_relative_playlist_delivery_enabledB\x13\x0A\x11_streaming_formatB\x13\x0A\x11_prefetch_enabledB\x18\x0A\x16_forced_cue_in_enabledB!\x0A\x1F_short_segment_dropping_enabledB\x13\x0A\x11_custom_asset_keyB \x0A\x1E_ad_break_markup_types_enabledB:\x0A8_early_break_notification_multi_break_scheduling_enabledB\x16\x0A\x14_effective_asset_key\"\x80\x01\x0A\x10PrefetchSettings\x12J\x0A\x1Dstage_one_ad_request_duration\x18\x01 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x01H\x00\x88\x01\x01B \x0A\x1E_stage_one_ad_request_duration\"W\x0A\x16LiveStreamConditioning\x12=\x0A\x0Bdash_bridge\x18\x01 \x01(\x0B2#.google.ads.admanager.v1.DashBridgeB\x03\xE0A\x01\"\xE6\x01\x0A\x0BHlsSettings\x12m\x0A\x0Dplaylist_type\x18\x01 \x01(\x0E2L.google.ads.admanager.v1.HlsSettingsPlaylistTypeEnum.HlsSettingsPlaylistTypeB\x03\xE0A\x05H\x00\x88\x01\x01\x12V\x0A\x18master_playlist_settings\x18\x02 \x01(\x0B2/.google.ads.admanager.v1.MasterPlaylistSettingsB\x03\xE0A\x01B\x10\x0A\x0E_playlist_type\"3\x0A\x0ADashBridge\x12\x19\x0A\x07enabled\x18\x02 \x01(\x08B\x03\xE0A\x01H\x00\x88\x01\x01B\x0A\x0A\x08_enabled\"\x90\x01\x0A\x0FPrerollSettings\x12\x18\x0A\x06ad_tag\x18\x01 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12@\x0A\x13max_ad_pod_duration\x18\x02 \x01(\x0B2\x19.google.protobuf.DurationB\x03\xE0A\x02H\x01\x88\x01\x01B\x09\x0A\x07_ad_tagB\x16\x0A\x14_max_ad_pod_duration\"B\x0A\x13AuxiliaryAdSettings\x12\x1C\x0A\x0Aad_tag_url\x18\x01 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01B\x0D\x0A\x0B_ad_tag_url\"\xA1\x01\x0A\x16MasterPlaylistSettings\x12v\x0A\x0Crefresh_type\x18\x01 \x01(\x0E2V.google.ads.admanager.v1.HlsMasterPlaylistRefreshTypeEnum.HlsMasterPlaylistRefreshTypeB\x03\xE0A\x01H\x00\x88\x01\x01B\x0F\x0A\x0D_refresh_typeB\xCB\x01\x0A\x1Bcom.google.ads.admanager.v1B\x17LiveStreamMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/McmEnums.php b/AdsAdManager/metadata/V1/McmEnums.php index 27de4ac97313..d8d76f2757c7 100644 --- a/AdsAdManager/metadata/V1/McmEnums.php +++ b/AdsAdManager/metadata/V1/McmEnums.php @@ -15,7 +15,7 @@ public static function initOnce() { return; } $pool->internalAddGeneratedFile( - "\x0A\xB0\x06\x0A'google/ads/admanager/v1/mcm_enums.proto\x12\x17google.ads.admanager.v1\"q\x0A\x12DelegationTypeEnum\"[\x0A\x0EDelegationType\x12\x1F\x0A\x1BDELEGATION_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EMANAGE_ACCOUNT\x10\x01\x12\x14\x0A\x10MANAGE_INVENTORY\x10\x02\"\xAC\x03\x0A\x1AMcmEarningsProductTypeEnum\"\x8D\x03\x0A\x16McmEarningsProductType\x12)\x0A%MCM_EARNINGS_PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13AD_EXCHANGE_CONTENT\x10\x01\x12\x1C\x0A\x18AD_EXCHANGE_CONTENT_HOST\x10\x02\x12\x15\x0A\x11AD_EXCHANGE_GAMES\x10\x03\x12\x1A\x0A\x16AD_EXCHANGE_GAMES_HOST\x10\x04\x12\"\x0A\x1EAD_EXCHANGE_MOBILE_CONTENT_APP\x10\x05\x12'\x0A#AD_EXCHANGE_MOBILE_CONTENT_APP_HOST\x10\x06\x12\x15\x0A\x11AD_EXCHANGE_VIDEO\x10\x07\x12\x1A\x0A\x16AD_EXCHANGE_VIDEO_HOST\x10\x08\x12\x1C\x0A\x18AD_EXCHANGE_RESERVATIONS\x10\x09\x12\x1F\x0A\x1BAD_EXCHANGE_PREFERRED_DEALS\x10\x0A\x12\x0D\x0A\x09OFFERWALL\x10\x0B\x12\x10\x0A\x0CBUYER_DIRECT\x10\x0CB\xC1\x01\x0A\x1Bcom.google.ads.admanager.v1B\x0DMcmEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xE9\x13\x0A'google/ads/admanager/v1/mcm_enums.proto\x12\x17google.ads.admanager.v1\"q\x0A\x12DelegationTypeEnum\"[\x0A\x0EDelegationType\x12\x1F\x0A\x1BDELEGATION_TYPE_UNSPECIFIED\x10\x00\x12\x12\x0A\x0EMANAGE_ACCOUNT\x10\x01\x12\x14\x0A\x10MANAGE_INVENTORY\x10\x02\"|\x0A\x16McmReadinessStatusEnum\"b\x0A\x12McmReadinessStatus\x12\$\x0A MCM_READINESS_STATUS_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08INACTIVE\x10\x01\x12\x0D\x0A\x09NOT_READY\x10\x02\x12\x09\x0A\x05READY\x10\x03\"\xD1\x01\x0A\x1EDelegationInvitationStatusEnum\"\xAE\x01\x0A\x1ADelegationInvitationStatus\x12,\x0A(DELEGATION_INVITATION_STATUS_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08ACCEPTED\x10\x01\x12\x0B\x0A\x07EXPIRED\x10\x02\x12\x0B\x0A\x07PENDING\x10\x03\x12\x0C\x0A\x08REJECTED\x10\x04\x12\x0D\x0A\x09WITHDRAWN\x10\x05\x12\x1D\x0A\x19DEACTIVATED_BY_AD_MANAGER\x10\x06\"\xF6\x02\x0A\x1BDelegationAccountStatusEnum\"\xD6\x02\x0A\x17DelegationAccountStatus\x12)\x0A%DELEGATION_ACCOUNT_STATUS_UNSPECIFIED\x10\x00\x12\x0B\x0A\x07INVITED\x10\x01\x12\x0C\x0A\x08DECLINED\x10\x02\x12\x0C\x0A\x08APPROVED\x10\x03\x12\x17\x0A\x13CLOSED_BY_PUBLISHER\x10\x04\x12\x1B\x0A\x17CLOSED_INVALID_ACTIVITY\x10\x05\x12\x1B\x0A\x17CLOSED_POLICY_VIOLATION\x10\x06\x12\x1D\x0A\x19DEACTIVATED_BY_AD_MANAGER\x10\x07\x12!\x0A\x1DDISAPPROVED_DUPLICATE_ACCOUNT\x10\x08\x12\x1A\x0A\x16DISAPPROVED_INELIGIBLE\x10\x09\x12\x1B\x0A\x17PENDING_GOOGLE_APPROVAL\x10\x0A\x12\x0B\x0A\x07EXPIRED\x10\x0B\x12\x0C\x0A\x08INACTIVE\x10\x0C\"\xC3\x02\x0A\x1CDelegationApprovalStatusEnum\"\xA2\x02\x0A\x18DelegationApprovalStatus\x12*\x0A&DELEGATION_APPROVAL_STATUS_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08APPROVED\x10\x01\x12\x17\x0A\x13CLOSED_BY_PUBLISHER\x10\x02\x12\x1B\x0A\x17CLOSED_INVALID_ACTIVITY\x10\x03\x12\x1B\x0A\x17CLOSED_POLICY_VIOLATION\x10\x04\x12\x1D\x0A\x19DEACTIVATED_BY_AD_MANAGER\x10\x05\x12!\x0A\x1DDISAPPROVED_DUPLICATE_ACCOUNT\x10\x06\x12\x1A\x0A\x16DISAPPROVED_INELIGIBLE\x10\x07\x12\x1B\x0A\x17PENDING_GOOGLE_APPROVAL\x10\x08\"\xEB\x01\x0A,ChildPublisherIdentityVerificationStatusEnum\"\xBA\x01\x0A(ChildPublisherIdentityVerificationStatus\x12<\x0A8CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06EXEMPT\x10\x01\x12\x0B\x0A\x07EXPIRED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0B\x0A\x07PENDING\x10\x04\x12\x10\x0A\x0CNOT_ELIGIBLE\x10\x05\x12\x0C\x0A\x08VERIFIED\x10\x06\"\xE8\x01\x0A+ChildPublisherAddressVerificationStatusEnum\"\xB8\x01\x0A'ChildPublisherAddressVerificationStatus\x12;\x0A7CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED\x10\x00\x12\x0A\x0A\x06EXEMPT\x10\x01\x12\x0B\x0A\x07EXPIRED\x10\x02\x12\x0A\x0A\x06FAILED\x10\x03\x12\x0B\x0A\x07PENDING\x10\x04\x12\x10\x0A\x0CNOT_ELIGIBLE\x10\x05\x12\x0C\x0A\x08VERIFIED\x10\x06\"\xCC\x01\x0A ChildPublisherOnboardingTaskEnum\"\xA7\x01\x0A\x1CChildPublisherOnboardingTask\x12/\x0A+CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED\x10\x00\x12\x1C\x0A\x18BILLING_PROFILE_CREATION\x10\x01\x12\x1A\x0A\x16PHONE_PIN_VERIFICATION\x10\x02\x12\x1C\x0A\x18AD_MANAGER_ACCOUNT_SETUP\x10\x04\"\xAC\x03\x0A\x1AMcmEarningsProductTypeEnum\"\x8D\x03\x0A\x16McmEarningsProductType\x12)\x0A%MCM_EARNINGS_PRODUCT_TYPE_UNSPECIFIED\x10\x00\x12\x17\x0A\x13AD_EXCHANGE_CONTENT\x10\x01\x12\x1C\x0A\x18AD_EXCHANGE_CONTENT_HOST\x10\x02\x12\x15\x0A\x11AD_EXCHANGE_GAMES\x10\x03\x12\x1A\x0A\x16AD_EXCHANGE_GAMES_HOST\x10\x04\x12\"\x0A\x1EAD_EXCHANGE_MOBILE_CONTENT_APP\x10\x05\x12'\x0A#AD_EXCHANGE_MOBILE_CONTENT_APP_HOST\x10\x06\x12\x15\x0A\x11AD_EXCHANGE_VIDEO\x10\x07\x12\x1A\x0A\x16AD_EXCHANGE_VIDEO_HOST\x10\x08\x12\x1C\x0A\x18AD_EXCHANGE_RESERVATIONS\x10\x09\x12\x1F\x0A\x1BAD_EXCHANGE_PREFERRED_DEALS\x10\x0A\x12\x0D\x0A\x09OFFERWALL\x10\x0B\x12\x10\x0A\x0CBUYER_DIRECT\x10\x0CB\xC1\x01\x0A\x1Bcom.google.ads.admanager.v1B\x0DMcmEnumsProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/PartnerMessages.php b/AdsAdManager/metadata/V1/PartnerMessages.php new file mode 100644 index 000000000000..ae10837f5811 --- /dev/null +++ b/AdsAdManager/metadata/V1/PartnerMessages.php @@ -0,0 +1,29 @@ +internalAddGeneratedFile( + "\x0A\xCB\x09\x0A.google/ads/admanager/v1/partner_messages.proto\x12\x17google.ads.admanager.v1\x1A+google/ads/admanager/v1/company_enums.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xA2\x06\x0A\x07Partner\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1E\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12\x19\x0A\x07address\x18\x04 \x01(\x09B\x03\xE0A\x01H\x01\x88\x01\x01\x12\x17\x0A\x05email\x18\x05 \x01(\x09B\x03\xE0A\x01H\x02\x88\x01\x01\x12\x15\x0A\x03fax\x18\x06 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12\x17\x0A\x05phone\x18\x07 \x01(\x09B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x1D\x0A\x0Bexternal_id\x18\x08 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01\x12\x19\x0A\x07comment\x18\x09 \x01(\x09B\x03\xE0A\x01H\x06\x88\x01\x01\x12B\x0A\x0Eapplied_labels\x18\x0A \x03(\x0B2%.google.ads.admanager.v1.AppliedLabelB\x03\xE0A\x01\x12F\x0A\x0Fprimary_contact\x18\x0B \x01(\x09B(\xE0A\x01\xFAA\"\x0A admanager.googleapis.com/ContactH\x07\x88\x01\x01\x12<\x0A\x0Dapplied_teams\x18\x0D \x03(\x09B%\xE0A\x01\xFAA\x1F\x0A\x1Dadmanager.googleapis.com/Team\x124\x0A\x0Bupdate_time\x18\x0F \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12e\x0A\x0Dcredit_status\x18\x10 \x01(\x0E2D.google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatusB\x03\xE0A\x01H\x08\x88\x01\x01:d\xEAAa\x0A admanager.googleapis.com/Partner\x12*networks/{network_code}/partners/{partner}*\x08partners2\x07partnerB\x0F\x0A\x0D_display_nameB\x0A\x0A\x08_addressB\x08\x0A\x06_emailB\x06\x0A\x04_faxB\x08\x0A\x06_phoneB\x0E\x0A\x0C_external_idB\x0A\x0A\x08_commentB\x12\x0A\x10_primary_contactB\x10\x0A\x0E_credit_statusB\xC8\x01\x0A\x1Bcom.google.ads.admanager.v1B\x14PartnerMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/PartnerService.php b/AdsAdManager/metadata/V1/PartnerService.php new file mode 100644 index 000000000000..6c1f6a6576e0 --- /dev/null +++ b/AdsAdManager/metadata/V1/PartnerService.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xF0\x0F\x0A-google/ads/admanager/v1/partner_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"K\x0A\x11GetPartnerRequest\x126\x0A\x04name\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Partner\"\xBF\x01\x0A\x13ListPartnersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"w\x0A\x14ListPartnersResponse\x122\x0A\x08partners\x18\x01 \x03(\x0B2 .google.ads.admanager.v1.Partner\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\x84\x01\x0A\x14UpdatePartnerRequest\x126\x0A\x07partner\x18\x01 \x01(\x0B2 .google.ads.admanager.v1.PartnerB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\x9C\x01\x0A\x1ABatchUpdatePartnersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12D\x0A\x08requests\x18\x02 \x03(\x0B2-.google.ads.admanager.v1.UpdatePartnerRequestB\x03\xE0A\x02\"Q\x0A\x1BBatchUpdatePartnersResponse\x122\x0A\x08partners\x18\x01 \x03(\x0B2 .google.ads.admanager.v1.Partner2\xBD\x06\x0A\x0EPartnerService\x12\x8B\x01\x0A\x0AGetPartner\x12*.google.ads.admanager.v1.GetPartnerRequest\x1A .google.ads.admanager.v1.Partner\"/\xDAA\x04name\x82\xD3\xE4\x93\x02\"\x12 /v1/{name=networks/*/partners/*}\x12\x9E\x01\x0A\x0CListPartners\x12,.google.ads.admanager.v1.ListPartnersRequest\x1A-.google.ads.admanager.v1.ListPartnersResponse\"1\xDAA\x06parent\x82\xD3\xE4\x93\x02\"\x12 /v1/{parent=networks/*}/partners\x12\xB1\x01\x0A\x0DUpdatePartner\x12-.google.ads.admanager.v1.UpdatePartnerRequest\x1A .google.ads.admanager.v1.Partner\"O\xDAA\x13partner,update_mask\x82\xD3\xE4\x93\x0232(/v1/{partner.name=networks/*/partners/*}:\x07partner\x12\xCB\x01\x0A\x13BatchUpdatePartners\x123.google.ads.admanager.v1.BatchUpdatePartnersRequest\x1A4.google.ads.admanager.v1.BatchUpdatePartnersResponse\"I\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x021\",/v1/{parent=networks/*}/partners:batchUpdate:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13PartnerServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/ReportDefinition.php b/AdsAdManager/metadata/V1/ReportDefinition.php index 743151c80dcf..308f3fef6015 100644 --- a/AdsAdManager/metadata/V1/ReportDefinition.php +++ b/AdsAdManager/metadata/V1/ReportDefinition.php @@ -18,7 +18,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Type\Date::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xDC\x86\x03\x0A/google/ads/admanager/v1/report_definition.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x16google/type/date.proto\"\x81\x84\x03\x0A\x10ReportDefinition\x12L\x0A\x0Adimensions\x18\x01 \x03(\x0E23.google.ads.admanager.v1.ReportDefinition.DimensionB\x03\xE0A\x02\x12F\x0A\x07metrics\x18\x02 \x03(\x0E20.google.ads.admanager.v1.ReportDefinition.MetricB\x03\xE0A\x02\x12F\x0A\x07filters\x18\x03 \x03(\x0B20.google.ads.admanager.v1.ReportDefinition.FilterB\x03\xE0A\x01\x12W\x0A\x10time_zone_source\x18\x14 \x01(\x0E28.google.ads.admanager.v1.ReportDefinition.TimeZoneSourceB\x03\xE0A\x01\x12\x16\x0A\x09time_zone\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x1A\x0A\x0Dcurrency_code\x18\x05 \x01(\x09B\x03\xE0A\x01\x12L\x0A\x0Adate_range\x18\x06 \x01(\x0B23.google.ads.admanager.v1.ReportDefinition.DateRangeB\x03\xE0A\x02\x12\\\x0A\x15comparison_date_range\x18\x09 \x01(\x0B23.google.ads.admanager.v1.ReportDefinition.DateRangeB\x03\xE0A\x01H\x00\x88\x01\x01\x12+\x0A\x1Ecms_metadata_dimension_key_ids\x18\x13 \x03(\x03B\x03\xE0A\x01\x12%\x0A\x18custom_dimension_key_ids\x18\x07 \x03(\x03B\x03\xE0A\x01\x12\"\x0A\x15ekv_dimension_key_ids\x18\x15 \x03(\x03B\x03\xE0A\x01\x12'\x0A\x1Aline_item_custom_field_ids\x18\x0B \x03(\x03B\x03\xE0A\x01\x12#\x0A\x16order_custom_field_ids\x18\x0C \x03(\x03B\x03\xE0A\x01\x12&\x0A\x19creative_custom_field_ids\x18\x0D \x03(\x03B\x03\xE0A\x01\x12N\x0A\x0Breport_type\x18\x08 \x01(\x0E24.google.ads.admanager.v1.ReportDefinition.ReportTypeB\x03\xE0A\x02\x12[\x0A\x12time_period_column\x18\x0A \x01(\x0E2:.google.ads.admanager.v1.ReportDefinition.TimePeriodColumnB\x03\xE0A\x01\x12B\x0A\x05flags\x18\x0E \x03(\x0B2..google.ads.admanager.v1.ReportDefinition.FlagB\x03\xE0A\x01\x12B\x0A\x05sorts\x18\x0F \x03(\x0B2..google.ads.admanager.v1.ReportDefinition.SortB\x03\xE0A\x01\x12#\x0A\x16expanded_compatibility\x18\x16 \x01(\x08B\x03\xE0A\x01\x1A\x9E\x01\x0A\x05Field\x12H\x0A\x09dimension\x18\x01 \x01(\x0E23.google.ads.admanager.v1.ReportDefinition.DimensionH\x00\x12B\x0A\x06metric\x18\x02 \x01(\x0E20.google.ads.admanager.v1.ReportDefinition.MetricH\x00B\x07\x0A\x05field\x1A\xA3\x09\x0A\x09DateRange\x12S\x0A\x05fixed\x18\x01 \x01(\x0B2B.google.ads.admanager.v1.ReportDefinition.DateRange.FixedDateRangeH\x00\x12Y\x0A\x08relative\x18\x02 \x01(\x0E2E.google.ads.admanager.v1.ReportDefinition.DateRange.RelativeDateRangeH\x00\x1Af\x0A\x0EFixedDateRange\x12*\x0A\x0Astart_date\x18\x01 \x01(\x0B2\x11.google.type.DateB\x03\xE0A\x02\x12(\x0A\x08end_date\x18\x02 \x01(\x0B2\x11.google.type.DateB\x03\xE0A\x02\"\xEA\x06\x0A\x11RelativeDateRange\x12#\x0A\x1FRELATIVE_DATE_RANGE_UNSPECIFIED\x10\x00\x12\x09\x0A\x05TODAY\x10\x01\x12\x0D\x0A\x09YESTERDAY\x10\x02\x12\x0D\x0A\x09THIS_WEEK\x10\x03\x12\x15\x0A\x11THIS_WEEK_TO_DATE\x10\x1D\x12\x1A\x0A\x16THIS_WEEK_TO_YESTERDAY\x10(\x12\x0E\x0A\x0ATHIS_MONTH\x10\x04\x12\x16\x0A\x12THIS_MONTH_TO_DATE\x10\x1A\x12\x1B\x0A\x17THIS_MONTH_TO_YESTERDAY\x10)\x12\x10\x0A\x0CTHIS_QUARTER\x10\x05\x12\x18\x0A\x14THIS_QUARTER_TO_DATE\x10\x1B\x12\x1D\x0A\x19THIS_QUARTER_TO_YESTERDAY\x10*\x12\x0D\x0A\x09THIS_YEAR\x10\x06\x12\x15\x0A\x11THIS_YEAR_TO_DATE\x10\x1C\x12\x1A\x0A\x16THIS_YEAR_TO_YESTERDAY\x10+\x12\x0D\x0A\x09LAST_WEEK\x10\x07\x12\x1D\x0A\x19LAST_WEEK_STARTING_SUNDAY\x10'\x12\x0E\x0A\x0ALAST_MONTH\x10\x08\x12\x10\x0A\x0CLAST_QUARTER\x10\x09\x12\x0D\x0A\x09LAST_YEAR\x10\x0A\x12\x0F\x0A\x0BLAST_7_DAYS\x10\x0B\x12\x10\x0A\x0CLAST_30_DAYS\x10\x0C\x12\x10\x0A\x0CLAST_60_DAYS\x10\x0D\x12\x10\x0A\x0CLAST_90_DAYS\x10\x0E\x12\x10\x0A\x0CLAST_93_DAYS\x10&\x12\x11\x0A\x0DLAST_180_DAYS\x10\x0F\x12\x11\x0A\x0DLAST_360_DAYS\x10\x10\x12\x11\x0A\x0DLAST_365_DAYS\x10\x11\x12\x11\x0A\x0DLAST_3_MONTHS\x10\x12\x12\x11\x0A\x0DLAST_6_MONTHS\x10\x13\x12\x12\x0A\x0ELAST_12_MONTHS\x10\x14\x12\x11\x0A\x0DALL_AVAILABLE\x10\x15\x12\x0C\x0A\x08TOMORROW\x10\x1E\x12\x10\x0A\x0CNEXT_90_DAYS\x10\x1F\x12\x0E\x0A\x0ANEXT_MONTH\x10 \x12\x11\x0A\x0DNEXT_3_MONTHS\x10!\x12\x12\x0A\x0ENEXT_12_MONTHS\x10\"\x12\x0D\x0A\x09NEXT_WEEK\x10#\x12\x10\x0A\x0CNEXT_QUARTER\x10\$\x12\x18\x0A\x14TO_END_OF_NEXT_MONTH\x10%\x12\x13\x0A\x0FPREVIOUS_PERIOD\x10\x16\x12\x1D\x0A\x19SAME_PERIOD_PREVIOUS_YEAR\x10\x18B\x11\x0A\x0Fdate_range_type\x1A\xCF\x08\x0A\x06Filter\x12T\x0A\x0Cfield_filter\x18\x01 \x01(\x0B2<.google.ads.admanager.v1.ReportDefinition.Filter.FieldFilterH\x00\x12F\x0A\x0Anot_filter\x18\x02 \x01(\x0B20.google.ads.admanager.v1.ReportDefinition.FilterH\x00\x12Q\x0A\x0Aand_filter\x18\x03 \x01(\x0B2;.google.ads.admanager.v1.ReportDefinition.Filter.FilterListH\x00\x12P\x0A\x09or_filter\x18\x04 \x01(\x0B2;.google.ads.admanager.v1.ReportDefinition.Filter.FilterListH\x00\x1A\xE6\x03\x0A\x0BFieldFilter\x12C\x0A\x05field\x18\x01 \x01(\x0B2/.google.ads.admanager.v1.ReportDefinition.FieldB\x03\xE0A\x02\x12R\x0A\x09operation\x18\x02 \x01(\x0E2:.google.ads.admanager.v1.ReportDefinition.Filter.OperationB\x03\xE0A\x02\x129\x0A\x06values\x18\x03 \x03(\x0B2\$.google.ads.admanager.v1.ReportValueB\x03\xE0A\x02\x12H\x0A\x05slice\x18\x04 \x01(\x0B2/.google.ads.admanager.v1.ReportDefinition.SliceB\x03\xE0A\x01H\x00\x88\x01\x01\x12#\x0A\x11time_period_index\x18\x05 \x01(\x05B\x03\xE0A\x01H\x01\x88\x01\x01\x12^\x0A\x11metric_value_type\x18\x06 \x01(\x0E29.google.ads.admanager.v1.ReportDefinition.MetricValueTypeB\x03\xE0A\x01H\x02\x88\x01\x01B\x08\x0A\x06_sliceB\x14\x0A\x12_time_period_indexB\x14\x0A\x12_metric_value_type\x1AT\x0A\x0AFilterList\x12F\x0A\x07filters\x18\x01 \x03(\x0B20.google.ads.admanager.v1.ReportDefinition.FilterB\x03\xE0A\x02\"\xBA\x01\x0A\x09Operation\x12\x06\x0A\x02IN\x10\x00\x12\x0A\x0A\x06NOT_IN\x10\x01\x12\x0C\x0A\x08CONTAINS\x10\x02\x12\x10\x0A\x0CNOT_CONTAINS\x10\x03\x12\x0D\x0A\x09LESS_THAN\x10\x04\x12\x14\x0A\x10LESS_THAN_EQUALS\x10\x05\x12\x10\x0A\x0CGREATER_THAN\x10\x06\x12\x17\x0A\x13GREATER_THAN_EQUALS\x10\x07\x12\x0B\x0A\x07BETWEEN\x10\x08\x12\x0B\x0A\x07MATCHES\x10\x09\x12\x0F\x0A\x0BNOT_MATCHES\x10\x0AB\x06\x0A\x04type\x1A\xE9\x02\x0A\x04Sort\x12C\x0A\x05field\x18\x01 \x01(\x0B2/.google.ads.admanager.v1.ReportDefinition.FieldB\x03\xE0A\x02\x12\x17\x0A\x0Adescending\x18\x02 \x01(\x08B\x03\xE0A\x01\x12H\x0A\x05slice\x18\x03 \x01(\x0B2/.google.ads.admanager.v1.ReportDefinition.SliceB\x03\xE0A\x01H\x00\x88\x01\x01\x12#\x0A\x11time_period_index\x18\x04 \x01(\x05B\x03\xE0A\x01H\x01\x88\x01\x01\x12^\x0A\x11metric_value_type\x18\x05 \x01(\x0E29.google.ads.admanager.v1.ReportDefinition.MetricValueTypeB\x03\xE0A\x01H\x02\x88\x01\x01B\x08\x0A\x06_sliceB\x14\x0A\x12_time_period_indexB\x14\x0A\x12_metric_value_type\x1A\x8E\x01\x0A\x05Slice\x12K\x0A\x09dimension\x18\x01 \x01(\x0E23.google.ads.admanager.v1.ReportDefinition.DimensionB\x03\xE0A\x02\x128\x0A\x05value\x18\x02 \x01(\x0B2\$.google.ads.admanager.v1.ReportValueB\x03\xE0A\x02\x1Aa\x0A\x04Flag\x12F\x0A\x07filters\x18\x01 \x03(\x0B20.google.ads.admanager.v1.ReportDefinition.FilterB\x03\xE0A\x02\x12\x11\x0A\x04name\x18\x02 \x01(\x09B\x03\xE0A\x01\"\xB6\x02\x0A\x0AReportType\x12\x1B\x0A\x17REPORT_TYPE_UNSPECIFIED\x10\x00\x12\x0E\x0A\x0AHISTORICAL\x10\x01\x12\x17\x0A\x13FUTURE_SELL_THROUGH\x10\x04\x12\x09\x0A\x05REACH\x10\x05\x12\x19\x0A\x15PRIVACY_AND_MESSAGING\x10\x06\x12\x18\x0A\x14REVENUE_VERIFICATION\x10\x07\x12\x13\x0A\x0FPARTNER_FINANCE\x10\x08\x12\x0C\x0A\x08AD_SPEED\x10\x0D\x12\x13\x0A\x0FREAL_TIME_VIDEO\x10\x0F\x12\x18\x0A\x14YOUTUBE_CONSOLIDATED\x10\x10\x12\x19\x0A\x15ADS_TRAFFIC_NAVIGATOR\x10\x15\x12\x1A\x0A\x16OFF_PROPERTY_CAMPAIGNS\x10\x16\x12\x19\x0A\x15ON_PLATFORM_MULTICALL\x10\x18\"\xFD\xBF\x01\x0A\x09Dimension\x12\x19\x0A\x15DIMENSION_UNSPECIFIED\x10\x00\x12#\x0A\x1EACTIVE_VIEW_MEASUREMENT_SOURCE\x10\xBF\x04\x12(\x0A#ACTIVE_VIEW_MEASUREMENT_SOURCE_NAME\x10\xC0\x04\x12\x1D\x0A\x18ADVERTISER_CREDIT_STATUS\x10\xDB\x03\x12\"\x0A\x1DADVERTISER_CREDIT_STATUS_NAME\x10\xDC\x03\x12\x1B\x0A\x16ADVERTISER_DOMAIN_NAME\x10\xF2\x01\x12\x1B\x0A\x16ADVERTISER_EXTERNAL_ID\x10\xE4\x01\x12\x12\x0A\x0DADVERTISER_ID\x10\x83\x01\x12\x16\x0A\x11ADVERTISER_LABELS\x10\xE6\x01\x12\x19\x0A\x14ADVERTISER_LABEL_IDS\x10\xE5\x01\x12\x14\x0A\x0FADVERTISER_NAME\x10\x84\x01\x12\x1F\x0A\x1AADVERTISER_PRIMARY_CONTACT\x10\xE3\x01\x12\x16\x0A\x11ADVERTISER_STATUS\x10\xD7\x03\x12\x1B\x0A\x16ADVERTISER_STATUS_NAME\x10\xD8\x03\x12\x14\x0A\x0FADVERTISER_TYPE\x10\xD9\x03\x12\x19\x0A\x14ADVERTISER_TYPE_NAME\x10\xDA\x03\x12\x18\x0A\x13ADVERTISER_VERTICAL\x10\xC4\x04\x12\x10\x0A\x0BADX_PRODUCT\x10\xF3\x03\x12\x15\x0A\x10ADX_PRODUCT_NAME\x10\xF4\x03\x12\x18\x0A\x13AD_EXPERIENCES_TYPE\x10\x81\x05\x12\x1D\x0A\x18AD_EXPERIENCES_TYPE_NAME\x10\x82\x05\x12\x10\x0A\x0BAD_LOCATION\x10\x86\x03\x12\x15\x0A\x10AD_LOCATION_NAME\x10\x87\x03\x12\x15\x0A\x10AD_REQUEST_SIZES\x10\x9D\x04\x12\"\x0A\x1DAD_TECHNOLOGY_PROVIDER_DOMAIN\x10\xEC\x04\x12\x1E\x0A\x19AD_TECHNOLOGY_PROVIDER_ID\x10\xED\x04\x12 \x0A\x1BAD_TECHNOLOGY_PROVIDER_NAME\x10\xEE\x04\x12\x0C\x0A\x07AD_TYPE\x10\xF1\x03\x12\x11\x0A\x0CAD_TYPE_NAME\x10\xF2\x03\x12\x10\x0A\x0CAD_UNIT_CODE\x10@\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_1\x10A\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_10\x10J\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_11\x10K\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_12\x10L\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_13\x10M\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_14\x10N\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_15\x10O\x12\x19\x0A\x15AD_UNIT_CODE_LEVEL_16\x10P\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_2\x10B\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_3\x10C\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_4\x10D\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_5\x10E\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_6\x10F\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_7\x10G\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_8\x10H\x12\x18\x0A\x14AD_UNIT_CODE_LEVEL_9\x10I\x12\x0E\x0A\x0AAD_UNIT_ID\x10\x19\x12\x18\x0A\x14AD_UNIT_ID_ALL_LEVEL\x10\x1B\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_1\x10\x1E\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_10\x100\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_11\x102\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_12\x104\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_13\x106\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_14\x108\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_15\x10:\x12\x17\x0A\x13AD_UNIT_ID_LEVEL_16\x10<\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_2\x10 \x12\x16\x0A\x12AD_UNIT_ID_LEVEL_3\x10\"\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_4\x10\$\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_5\x10&\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_6\x10(\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_7\x10*\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_8\x10,\x12\x16\x0A\x12AD_UNIT_ID_LEVEL_9\x10.\x12\x19\x0A\x14AD_UNIT_ID_TOP_LEVEL\x10\x8E\x01\x12\x10\x0A\x0CAD_UNIT_NAME\x10\x1A\x12\x1A\x0A\x16AD_UNIT_NAME_ALL_LEVEL\x10\x1D\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_1\x10\x1F\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_10\x101\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_11\x103\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_12\x105\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_13\x107\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_14\x109\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_15\x10;\x12\x19\x0A\x15AD_UNIT_NAME_LEVEL_16\x10=\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_2\x10!\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_3\x10#\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_4\x10%\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_5\x10'\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_6\x10)\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_7\x10+\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_8\x10-\x12\x18\x0A\x14AD_UNIT_NAME_LEVEL_9\x10/\x12\x1B\x0A\x16AD_UNIT_NAME_TOP_LEVEL\x10\x8F\x01\x12\x19\x0A\x15AD_UNIT_REWARD_AMOUNT\x10?\x12\x17\x0A\x13AD_UNIT_REWARD_TYPE\x10>\x12\x13\x0A\x0EAD_UNIT_STATUS\x10\xCE\x01\x12\x18\x0A\x13AD_UNIT_STATUS_NAME\x10\xCF\x01\x12\x16\x0A\x11AGENCY_LEVEL_1_ID\x10\xB5\x04\x12\x18\x0A\x13AGENCY_LEVEL_1_NAME\x10\xB6\x04\x12\x16\x0A\x11AGENCY_LEVEL_2_ID\x10\xB7\x04\x12\x18\x0A\x13AGENCY_LEVEL_2_NAME\x10\xB8\x04\x12\x16\x0A\x11AGENCY_LEVEL_3_ID\x10\xB9\x04\x12\x18\x0A\x13AGENCY_LEVEL_3_NAME\x10\xBA\x04\x12\x10\x0A\x0BAGE_BRACKET\x10\xFC\x03\x12\x15\x0A\x10AGE_BRACKET_NAME\x10\xC6\x04\x12\x1A\x0A\x15ANALYTICS_PROPERTY_ID\x10\xDD\x05\x12\x1C\x0A\x17ANALYTICS_PROPERTY_NAME\x10\xFF\x05\x12-\x0A(APP_TRACKING_TRANSPARENCY_CONSENT_STATUS\x10\xBA\x03\x122\x0A-APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME\x10\xBB\x03\x12\x10\x0A\x0BAPP_VERSION\x10\x88\x03\x12\x19\x0A\x14AUCTION_PACKAGE_DEAL\x10\xC3\x04\x12\x1C\x0A\x17AUCTION_PACKAGE_DEAL_ID\x10\xBB\x04\x12\x1E\x0A\x19AUDIENCE_SEGMENT_BILLABLE\x10\xD2\x04\x12&\x0A!AUDIENCE_SEGMENT_DATA_PROVIDER_ID\x10\xE5\x04\x12(\x0A#AUDIENCE_SEGMENT_DATA_PROVIDER_NAME\x10\xE6\x04\x12!\x0A\x1CAUDIENCE_SEGMENT_ID_BILLABLE\x10\xD3\x04\x12!\x0A\x1CAUDIENCE_SEGMENT_ID_TARGETED\x10\xC8\x04\x12\x1E\x0A\x19AUDIENCE_SEGMENT_TARGETED\x10\xC9\x04\x12.\x0A)AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE\x10\xDD\x04\x124\x0A/AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE\x10\xDE\x04\x123\x0A.AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE\x10\xDF\x04\x121\x0A,AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE\x10\xE0\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE\x10\xE1\x04\x123\x0A.AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE\x10\xE2\x04\x124\x0A/AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE\x10\xE3\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE\x10\xE4\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE\x10\xE7\x04\x123\x0A.AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE\x10\xE8\x04\x12#\x0A\x1EAUDIENCE_SEGMENT_TARGETED_SIZE\x10\xEA\x04\x12%\x0A AUDIENCE_SEGMENT_TARGETED_STATUS\x10\xF4\x04\x12*\x0A%AUDIENCE_SEGMENT_TARGETED_STATUS_NAME\x10\xE9\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE\x10\xEB\x04\x12\x1B\x0A\x16AUTO_REFRESHED_TRAFFIC\x10\xA5\x03\x12 \x0A\x1BAUTO_REFRESHED_TRAFFIC_NAME\x10\xA6\x03\x12\x18\x0A\x13BIDDER_ENCRYPTED_ID\x10\xED\x03\x12\x10\x0A\x0BBIDDER_NAME\x10\xEE\x03\x12\x0E\x0A\x09BID_RANGE\x10\xA7\x05\x12\x19\x0A\x14BID_REJECTION_REASON\x10\xD7\x04\x12\x1E\x0A\x19BID_REJECTION_REASON_NAME\x10\xD8\x04\x12\x12\x0A\x0DBRANDING_TYPE\x10\xFF\x02\x12\x17\x0A\x12BRANDING_TYPE_NAME\x10\x80\x03\x12\x14\x0A\x10BROWSER_CATEGORY\x10w\x12\x19\x0A\x15BROWSER_CATEGORY_NAME\x10x\x12\x0F\x0A\x0ABROWSER_ID\x10\xEB\x01\x12\x11\x0A\x0CBROWSER_NAME\x10\xEC\x01\x12\x15\x0A\x10BUYER_NETWORK_ID\x10\xC0\x03\x12\x17\x0A\x12BUYER_NETWORK_NAME\x10\xC1\x03\x12!\x0A\x1CCALLOUT_STATUS_CATEGORY_NAME\x10\xCD\x04\x12\x0F\x0A\x0ACARRIER_ID\x10\xF1\x02\x12\x11\x0A\x0CCARRIER_NAME\x10\xF0\x02\x12\x0C\x0A\x07CHANNEL\x10\xF5\x03\x12\x17\x0A\x12CHILD_NETWORK_CODE\x10\x9E\x04\x12\x15\x0A\x10CHILD_NETWORK_ID\x10\xA0\x04\x12\x17\x0A\x12CHILD_PARTNER_NAME\x10\x9F\x04\x12\x0C\x0A\x07CITY_ID\x10\xCB\x03\x12\x0E\x0A\x09CITY_NAME\x10\xC4\x03\x12\x1D\x0A\x18CLASSIFIED_ADVERTISER_ID\x10\x85\x01\x12\x1F\x0A\x1ACLASSIFIED_ADVERTISER_NAME\x10\x86\x01\x12\x18\x0A\x13CLASSIFIED_BRAND_ID\x10\xF3\x01\x12\x1A\x0A\x15CLASSIFIED_BRAND_NAME\x10\xF4\x01\x12\x16\x0A\x11CONTENT_BUNDLE_ID\x10\xCC\x03\x12\x18\x0A\x13CONTENT_BUNDLE_NAME\x10\xCD\x03\x12)\x0A\$CONTENT_CMS_METADATA_KV_NAMESPACE_ID\x10\xCE\x03\x12+\x0A&CONTENT_CMS_METADATA_KV_NAMESPACE_NAME\x10\xCF\x03\x12\x15\x0A\x10CONTENT_CMS_NAME\x10\x83\x05\x12\x19\x0A\x14CONTENT_CMS_VIDEO_ID\x10\x84\x05\x12\x0F\x0A\x0ACONTENT_ID\x10\xF6\x01\x12\x1D\x0A\x18CONTENT_MAPPING_PRESENCE\x10\xDB\x05\x12\"\x0A\x1DCONTENT_MAPPING_PRESENCE_NAME\x10\xDC\x05\x12\x11\x0A\x0CCONTENT_NAME\x10\xF7\x01\x12\x0E\x0A\x09CONTINENT\x10\xD5\x03\x12\x13\x0A\x0ECONTINENT_NAME\x10\xD6\x03\x12\x11\x0A\x0CCOUNTRY_CODE\x10\xD2\x03\x12\x0E\x0A\x0ACOUNTRY_ID\x10\x0B\x12\x10\x0A\x0CCOUNTRY_NAME\x10\x0C\x12\x1A\x0A\x15CREATIVE_BILLING_TYPE\x10\xEE\x02\x12\x1F\x0A\x1ACREATIVE_BILLING_TYPE_NAME\x10\xEF\x02\x12\x1F\x0A\x1ACREATIVE_CLICK_THROUGH_URL\x10\xAE\x01\x12\x10\x0A\x0BCREATIVE_ID\x10\x8A\x01\x12\x12\x0A\x0DCREATIVE_NAME\x10\x8B\x01\x12\x1D\x0A\x18CREATIVE_OR_CREATIVE_SET\x10\xAA\x05\x12\"\x0A\x1DCREATIVE_OR_CREATIVE_SET_NAME\x10\xAB\x05\x12 \x0A\x1BCREATIVE_POLICIES_FILTERING\x10\xC7\x05\x12%\x0A CREATIVE_POLICIES_FILTERING_NAME\x10\xC8\x05\x12#\x0A\x1ECREATIVE_PROTECTIONS_FILTERING\x10\xC0\x05\x12(\x0A#CREATIVE_PROTECTIONS_FILTERING_NAME\x10\xC1\x05\x12\x1B\x0A\x16CREATIVE_SET_ROLE_TYPE\x10\xAE\x05\x12 \x0A\x1BCREATIVE_SET_ROLE_TYPE_NAME\x10\xAF\x05\x12%\x0A CREATIVE_SSL_COMPLIANCE_OVERRIDE\x10\x90\x06\x12*\x0A%CREATIVE_SSL_COMPLIANCE_OVERRIDE_NAME\x10\x92\x06\x12\x1D\x0A\x18CREATIVE_SSL_SCAN_RESULT\x10\x91\x06\x12\"\x0A\x1DCREATIVE_SSL_SCAN_RESULT_NAME\x10\x93\x06\x12!\x0A\x1CCREATIVE_TARGET_AD_UNIT_SIZE\x10\x82\x06\x12\x18\x0A\x13CREATIVE_TECHNOLOGY\x10\x94\x01\x12\x1D\x0A\x18CREATIVE_TECHNOLOGY_NAME\x10\x95\x01\x12 \x0A\x1BCREATIVE_THIRD_PARTY_VENDOR\x10\xE9\x02\x12\x12\x0A\x0DCREATIVE_TYPE\x10\xD8\x02\x12\x17\x0A\x12CREATIVE_TYPE_NAME\x10\xD9\x02\x12\x17\x0A\x12CREATIVE_VENDOR_ID\x10\xC2\x05\x12\x19\x0A\x14CREATIVE_VENDOR_NAME\x10\xC3\x05\x12(\x0A#CREATIVE_VIDEO_REDIRECT_THIRD_PARTY\x10\xB2\x04\x12\x0F\x0A\x0ACURATOR_ID\x10\xBC\x04\x12\x11\x0A\x0CCURATOR_NAME\x10\xBD\x04\x12\x14\x0A\x0FCUSTOM_EVENT_ID\x10\xE1\x05\x12\x16\x0A\x11CUSTOM_EVENT_NAME\x10\xDF\x05\x12\x16\x0A\x11CUSTOM_EVENT_TYPE\x10\xE0\x05\x12\x1B\x0A\x16CUSTOM_EVENT_TYPE_NAME\x10\xE2\x05\x12\x13\x0A\x0ECUSTOM_SPOT_ID\x10\xA7\x03\x12\x15\x0A\x10CUSTOM_SPOT_NAME\x10\xA8\x03\x12\x08\x0A\x04DATE\x10\x03\x12\x0F\x0A\x0BDAY_OF_WEEK\x10\x04\x12\x12\x0A\x0DDEAL_BUYER_ID\x10\xF0\x01\x12\x14\x0A\x0FDEAL_BUYER_NAME\x10\xF1\x01\x12\x0C\x0A\x07DEAL_ID\x10\xB4\x03\x12\x10\x0A\x0BDEAL_ID_ALL\x10\x8D\x06\x12\x0E\x0A\x09DEAL_NAME\x10\xB5\x03\x12\x1F\x0A\x1ADECLARED_ADVERTISER_DOMAIN\x10\x9C\x06\x12\x1F\x0A\x1ADELIVERED_SECURE_SIGNAL_ID\x10\xB5\x02\x12!\x0A\x1CDELIVERED_SECURE_SIGNAL_NAME\x10\xB6\x02\x12\x12\x0A\x0EDEMAND_CHANNEL\x10\x09\x12\x17\x0A\x13DEMAND_CHANNEL_NAME\x10\x0A\x12\x12\x0A\x0DDEMAND_SOURCE\x10\xD0\x04\x12\x16\x0A\x11DEMAND_SOURCE_ALL\x10\x8E\x06\x12\x17\x0A\x12DEMAND_SOURCE_NAME\x10\xD1\x04\x12\x15\x0A\x11DEMAND_SUBCHANNEL\x10\x16\x12\x1A\x0A\x16DEMAND_SUBCHANNEL_NAME\x10\x17\x12\x0B\x0A\x06DEVICE\x10\xE2\x01\x12\x13\x0A\x0FDEVICE_CATEGORY\x10\x0F\x12\x18\x0A\x14DEVICE_CATEGORY_NAME\x10\x10\x12\x1B\x0A\x16DEVICE_MANUFACTURER_ID\x10\x8D\x04\x12\x1D\x0A\x18DEVICE_MANUFACTURER_NAME\x10\x8E\x04\x12\x14\x0A\x0FDEVICE_MODEL_ID\x10\x8F\x04\x12\x16\x0A\x11DEVICE_MODEL_NAME\x10\x90\x04\x12\x14\x0A\x0BDEVICE_NAME\x10\xE1\x01\x1A\x02\x08\x01\x12\x10\x0A\x0BDSP_SEAT_ID\x10\xB4\x04\x12\x1C\x0A\x17DYNAMIC_ALLOCATION_TYPE\x10\xF6\x03\x12!\x0A\x1CDYNAMIC_ALLOCATION_TYPE_NAME\x10\xF7\x03\x12\x11\x0A\x0CESP_DELIVERY\x10\xEF\x04\x12\x16\x0A\x11ESP_DELIVERY_NAME\x10\xF0\x04\x12\x11\x0A\x0CESP_PRESENCE\x10\xF1\x04\x12\x16\x0A\x11ESP_PRESENCE_NAME\x10\xF2\x04\x12\x1D\x0A\x18EXCHANGE_BIDDING_DEAL_ID\x10\xCB\x05\x12\x1F\x0A\x1AEXCHANGE_BIDDING_DEAL_TYPE\x10\xCA\x05\x12\$\x0A\x1FEXCHANGE_BIDDING_DEAL_TYPE_NAME\x10\xD3\x05\x12\$\x0A\x1FEXCHANGE_THIRD_PARTY_COMPANY_ID\x10\xB9\x01\x12&\x0A!EXCHANGE_THIRD_PARTY_COMPANY_NAME\x10\xBA\x01\x12\x1F\x0A\x1AFIRST_LOOK_PRICING_RULE_ID\x10\xF8\x01\x12!\x0A\x1CFIRST_LOOK_PRICING_RULE_NAME\x10\xF9\x01\x12\x1A\x0A\x15FIRST_PARTY_ID_STATUS\x10\x94\x03\x12\x1F\x0A\x1AFIRST_PARTY_ID_STATUS_NAME\x10\x95\x03\x12\x0B\x0A\x06GENDER\x10\xFD\x03\x12\x10\x0A\x0BGENDER_NAME\x10\xC7\x04\x12\x1F\x0A\x1AGOOGLE_ANALYTICS_STREAM_ID\x10\x87\x04\x12!\x0A\x1CGOOGLE_ANALYTICS_STREAM_NAME\x10\x88\x04\x12\x19\x0A\x14HBT_YIELD_PARTNER_ID\x10\x93\x05\x12\x1B\x0A\x16HBT_YIELD_PARTNER_NAME\x10\x94\x05\x12#\x0A\x1EHEADER_BIDDER_INTEGRATION_TYPE\x10\xCE\x05\x12(\x0A#HEADER_BIDDER_INTEGRATION_TYPE_NAME\x10\xCF\x05\x12\x08\x0A\x04HOUR\x10d\x12\x1F\x0A\x1AIMPRESSION_COUNTING_METHOD\x10\xC1\x04\x12\$\x0A\x1FIMPRESSION_COUNTING_METHOD_NAME\x10\xC2\x04\x12\x15\x0A\x10INTERACTION_TYPE\x10\xDF\x01\x12\x1A\x0A\x15INTERACTION_TYPE_NAME\x10\xE0\x01\x12\x0D\x0A\x08INTEREST\x10\xFE\x03\x12\x14\x0A\x10INVENTORY_FORMAT\x10\x11\x12\x19\x0A\x15INVENTORY_FORMAT_NAME\x10\x12\x12\"\x0A\x1DINVENTORY_SHARE_ASSIGNMENT_ID\x10\x88\x05\x12\$\x0A\x1FINVENTORY_SHARE_ASSIGNMENT_NAME\x10\x89\x05\x12\x1C\x0A\x17INVENTORY_SHARE_OUTCOME\x10\xDB\x04\x12!\x0A\x1CINVENTORY_SHARE_OUTCOME_NAME\x10\xDC\x04\x12&\x0A!INVENTORY_SHARE_PARTNER_AD_SERVER\x10\x8C\x05\x12+\x0A&INVENTORY_SHARE_PARTNER_AD_SERVER_NAME\x10\x8D\x05\x12)\x0A\$INVENTORY_SHARE_TARGET_SHARE_PERCENT\x10\x8E\x05\x12\x19\x0A\x14INVENTORY_SHARE_TYPE\x10\x8A\x05\x12\x1E\x0A\x19INVENTORY_SHARE_TYPE_NAME\x10\x8B\x05\x12\x12\x0A\x0EINVENTORY_TYPE\x10\x13\x12\x17\x0A\x13INVENTORY_TYPE_NAME\x10\x14\x12\x12\x0A\x0DIS_ADX_DIRECT\x10\xFE\x02\x12\x19\x0A\x14IS_CURATION_TARGETED\x10\xBE\x04\x12\x0F\x0A\x0AIS_DROPPED\x10\xD0\x03\x12\x17\x0A\x12IS_FIRST_LOOK_DEAL\x10\x91\x03\x12\x12\x0A\x0DKEY_VALUES_ID\x10\xD6\x01\x12\x14\x0A\x0FKEY_VALUES_NAME\x10\xD7\x01\x12\x13\x0A\x0EKEY_VALUES_SET\x10\xC9\x05\x12\x15\x0A\x10LINE_ITEM_AGENCY\x10\x97\x05\x12\x17\x0A\x12LINE_ITEM_ARCHIVED\x10\xBC\x01\x12(\x0A#LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS\x10\xB6\x05\x12(\x0A#LINE_ITEM_COMPANION_DELIVERY_OPTION\x10\xCC\x01\x12-\x0A(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\x10\xCD\x01\x12\x1E\x0A\x19LINE_ITEM_COMPUTED_STATUS\x10\xFA\x01\x12#\x0A\x1ELINE_ITEM_COMPUTED_STATUS_NAME\x10\xFB\x01\x12!\x0A\x1DLINE_ITEM_CONTRACTED_QUANTITY\x10\\\x12\x1B\x0A\x17LINE_ITEM_COST_PER_UNIT\x10U\x12\x18\x0A\x13LINE_ITEM_COST_TYPE\x10\xD4\x01\x12\x1D\x0A\x18LINE_ITEM_COST_TYPE_NAME\x10\xD5\x01\x12 \x0A\x1BLINE_ITEM_CREATIVE_END_DATE\x10\xB0\x01\x12%\x0A LINE_ITEM_CREATIVE_ROTATION_TYPE\x10\xBD\x01\x12*\x0A%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\x10\xBE\x01\x12\"\x0A\x1DLINE_ITEM_CREATIVE_START_DATE\x10\xAF\x01\x12\x1C\x0A\x17LINE_ITEM_CURRENCY_CODE\x10\xB4\x01\x12 \x0A\x1CLINE_ITEM_DELIVERY_INDICATOR\x10W\x12!\x0A\x1CLINE_ITEM_DELIVERY_RATE_TYPE\x10\xBF\x01\x12&\x0A!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\x10\xC0\x01\x12 \x0A\x1BLINE_ITEM_DISCOUNT_ABSOLUTE\x10\xC3\x01\x12\"\x0A\x1DLINE_ITEM_DISCOUNT_PERCENTAGE\x10\xC4\x01\x12\x16\x0A\x12LINE_ITEM_END_DATE\x10Q\x12\x1B\x0A\x17LINE_ITEM_END_DATE_TIME\x10S\x12\x1F\x0A\x1ALINE_ITEM_ENVIRONMENT_TYPE\x10\xC9\x01\x12\$\x0A\x1FLINE_ITEM_ENVIRONMENT_TYPE_NAME\x10\xCA\x01\x12\x1E\x0A\x1ALINE_ITEM_EXTERNAL_DEAL_ID\x10a\x12\x19\x0A\x15LINE_ITEM_EXTERNAL_ID\x10V\x12\x1C\x0A\x17LINE_ITEM_FREQUENCY_CAP\x10\x80\x02\x12\x10\x0A\x0CLINE_ITEM_ID\x10\x01\x12\x15\x0A\x10LINE_ITEM_LABELS\x10\x9B\x05\x12\x18\x0A\x13LINE_ITEM_LABEL_IDS\x10\x99\x05\x12#\x0A\x1ELINE_ITEM_LAST_MODIFIED_BY_APP\x10\xB5\x01\x12\x1D\x0A\x19LINE_ITEM_LIFETIME_CLICKS\x10_\x12\"\x0A\x1ELINE_ITEM_LIFETIME_IMPRESSIONS\x10^\x12+\x0A'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\x10`\x12\x16\x0A\x12LINE_ITEM_MAKEGOOD\x10Y\x12\x12\x0A\x0ELINE_ITEM_NAME\x10\x02\x12\$\x0A LINE_ITEM_NON_CPD_BOOKED_REVENUE\x10b\x12\x19\x0A\x15LINE_ITEM_OPTIMIZABLE\x10Z\x12\x18\x0A\x13LINE_ITEM_PO_NUMBER\x10\x9D\x05\x12 \x0A\x1BLINE_ITEM_PRIMARY_GOAL_TYPE\x10\xD2\x01\x12%\x0A LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\x10\xD3\x01\x12)\x0A%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\x10]\x12,\x0A'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\x10\x8C\x03\x12%\x0A LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\x10\xD0\x01\x12*\x0A%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\x10\xD1\x01\x12\x16\x0A\x12LINE_ITEM_PRIORITY\x10\x18\x12!\x0A\x1CLINE_ITEM_RESERVATION_STATUS\x10\xB0\x02\x12&\x0A!LINE_ITEM_RESERVATION_STATUS_NAME\x10\xB1\x02\x12\x1A\x0A\x15LINE_ITEM_SALESPERSON\x10\x9F\x05\x12\$\x0A\x1FLINE_ITEM_SECONDARY_SALESPEOPLE\x10\xA1\x05\x12\$\x0A\x1FLINE_ITEM_SECONDARY_TRAFFICKERS\x10\xA3\x05\x12\x18\x0A\x14LINE_ITEM_START_DATE\x10R\x12\x1D\x0A\x19LINE_ITEM_START_DATE_TIME\x10T\x12\x19\x0A\x14LINE_ITEM_TRAFFICKER\x10\xA5\x05\x12\x13\x0A\x0ELINE_ITEM_TYPE\x10\xC1\x01\x12\x18\x0A\x13LINE_ITEM_TYPE_NAME\x10\xC2\x01\x12\x1C\x0A\x17LINE_ITEM_UNLIMITED_END\x10\xBB\x01\x12!\x0A\x1DLINE_ITEM_VALUE_COST_PER_UNIT\x10X\x12 \x0A\x1BLINE_ITEM_WEB_PROPERTY_CODE\x10\xB3\x01\x12!\x0A\x1CMASTER_COMPANION_CREATIVE_ID\x10\x8C\x01\x12#\x0A\x1EMASTER_COMPANION_CREATIVE_NAME\x10\x8D\x01\x12\x13\x0A\x0EMEDIATION_TYPE\x10\xBD\x05\x12\x18\x0A\x13MEDIATION_TYPE_NAME\x10\xF2\x05\x12\x1F\x0A\x1AMEDIATION_YIELD_PARTNER_ID\x10\x95\x05\x12!\x0A\x1CMEDIATION_YIELD_PARTNER_NAME\x10\x96\x05\x12\x0D\x0A\x08METRO_ID\x10\xC5\x03\x12\x0F\x0A\x0AMETRO_NAME\x10\xC6\x03\x12\x14\x0A\x0FMOBILE_APP_FREE\x10\x80\x01\x12\x18\x0A\x13MOBILE_APP_ICON_URL\x10\x81\x01\x12\x11\x0A\x0DMOBILE_APP_ID\x10{\x12\x13\x0A\x0FMOBILE_APP_NAME\x10\x7F\x12 \x0A\x1BMOBILE_APP_OWNERSHIP_STATUS\x10\xB7\x02\x12%\x0A MOBILE_APP_OWNERSHIP_STATUS_NAME\x10\xB8\x02\x12\x14\x0A\x10MOBILE_APP_STORE\x10}\x12\x1A\x0A\x15MOBILE_APP_STORE_NAME\x10\xF5\x01\x12\x19\x0A\x15MOBILE_INVENTORY_TYPE\x10c\x12\x1E\x0A\x1AMOBILE_INVENTORY_TYPE_NAME\x10\x15\x12\x19\x0A\x14MOBILE_RENDERING_SDK\x10\x86\x05\x12\x1E\x0A\x19MOBILE_RENDERING_SDK_NAME\x10\x87\x05\x12\x1D\x0A\x18MOBILE_SDK_MAJOR_VERSION\x10\xB4\x05\x12\x1D\x0A\x18MOBILE_SDK_MINOR_VERSION\x10\xB5\x05\x12\x1C\x0A\x17MOBILE_SDK_VERSION_NAME\x10\x82\x01\x12\x0E\x0A\x0AMONTH_YEAR\x10\x06\x12\x18\x0A\x13NATIVE_AD_FORMAT_ID\x10\xFF\x01\x12\x1A\x0A\x15NATIVE_AD_FORMAT_NAME\x10\xFE\x01\x12\x14\x0A\x0FNATIVE_STYLE_ID\x10\xFD\x01\x12\x16\x0A\x11NATIVE_STYLE_NAME\x10\xFC\x01\x12\x19\x0A\x14NIELSEN_DEMOGRAPHICS\x10\xB7\x05\x12\x1E\x0A\x19NIELSEN_DEMOGRAPHICS_NAME\x10\x80\x06\x12\x13\x0A\x0ENIELSEN_DEVICE\x10\xB8\x05\x12\x18\x0A\x13NIELSEN_DEVICE_NAME\x10\xB9\x05\x12\x16\x0A\x11NIELSEN_IN_TARGET\x10\x81\x06\x12\x1D\x0A\x18NIELSEN_RESTATEMENT_DATE\x10\xBA\x05\x12\x14\x0A\x0FNIELSEN_SEGMENT\x10\xBB\x05\x12\x15\x0A\x10NIELSEN_SITE_URL\x10\xBC\x05\x12!\x0A\x1CNO_FILL_REASON_CATEGORY_NAME\x10\xCB\x04\x12\x1D\x0A\x19OPERATING_SYSTEM_CATEGORY\x10u\x12\"\x0A\x1EOPERATING_SYSTEM_CATEGORY_NAME\x10v\x12 \x0A\x1BOPERATING_SYSTEM_VERSION_ID\x10\xEE\x01\x12\"\x0A\x1DOPERATING_SYSTEM_VERSION_NAME\x10\xED\x01\x12\x16\x0A\x11OPTIMIZATION_TYPE\x10\xFF\x04\x12\x1B\x0A\x16OPTIMIZATION_TYPE_NAME\x10\x80\x05\x12\x11\x0A\x0CORDER_AGENCY\x10\x96\x01\x12\x14\x0A\x0FORDER_AGENCY_ID\x10\x97\x01\x12\x15\x0A\x10ORDER_BOOKED_CPC\x10\x98\x01\x12\x15\x0A\x10ORDER_BOOKED_CPM\x10\x99\x01\x12\x1A\x0A\x15ORDER_DELIVERY_STATUS\x10\xE7\x01\x12\x1F\x0A\x1AORDER_DELIVERY_STATUS_NAME\x10\xEF\x01\x12\x13\x0A\x0EORDER_END_DATE\x10\x9A\x01\x12\x18\x0A\x13ORDER_END_DATE_TIME\x10\x9B\x01\x12\x16\x0A\x11ORDER_EXTERNAL_ID\x10\x9C\x01\x12\x0C\x0A\x08ORDER_ID\x10\x07\x12\x11\x0A\x0CORDER_LABELS\x10\xAA\x01\x12\x14\x0A\x0FORDER_LABEL_IDS\x10\xAB\x01\x12\x1A\x0A\x15ORDER_LIFETIME_CLICKS\x10\x9E\x01\x12\x1F\x0A\x1AORDER_LIFETIME_IMPRESSIONS\x10\x9F\x01\x12\x0E\x0A\x0AORDER_NAME\x10\x08\x12\x14\x0A\x0FORDER_PO_NUMBER\x10\xA0\x01\x12\x17\x0A\x12ORDER_PROGRAMMATIC\x10\x9D\x01\x12\x16\x0A\x11ORDER_SALESPERSON\x10\xA1\x01\x12\x19\x0A\x14ORDER_SALESPERSON_ID\x10\xF5\x04\x12 \x0A\x1BORDER_SECONDARY_SALESPEOPLE\x10\xA4\x01\x12#\x0A\x1EORDER_SECONDARY_SALESPEOPLE_ID\x10\xA5\x01\x12 \x0A\x1BORDER_SECONDARY_TRAFFICKERS\x10\xA6\x01\x12#\x0A\x1EORDER_SECONDARY_TRAFFICKERS_ID\x10\xA7\x01\x12\x15\x0A\x10ORDER_START_DATE\x10\xA8\x01\x12\x1A\x0A\x15ORDER_START_DATE_TIME\x10\xA9\x01\x12\x15\x0A\x10ORDER_TRAFFICKER\x10\xA2\x01\x12\x18\x0A\x13ORDER_TRAFFICKER_ID\x10\xA3\x01\x12\x18\x0A\x13ORDER_UNLIMITED_END\x10\xCB\x01\x12\x0E\x0A\x09PAGE_PATH\x10\xFF\x03\x12 \x0A\x1BPAGE_TITLE_AND_SCREEN_CLASS\x10\x80\x04\x12\x1F\x0A\x1APAGE_TITLE_AND_SCREEN_NAME\x10\x81\x04\x12%\x0A PARTNER_MANAGEMENT_ASSIGNMENT_ID\x10\x91\x05\x12'\x0A\"PARTNER_MANAGEMENT_ASSIGNMENT_NAME\x10\x92\x05\x12\"\x0A\x1DPARTNER_MANAGEMENT_PARTNER_ID\x10\x8F\x05\x12\$\x0A\x1FPARTNER_MANAGEMENT_PARTNER_NAME\x10\x90\x05\x12\x10\x0A\x0CPLACEMENT_ID\x10q\x12\x15\x0A\x10PLACEMENT_ID_ALL\x10\x90\x01\x12\x12\x0A\x0EPLACEMENT_NAME\x10r\x12\x17\x0A\x12PLACEMENT_NAME_ALL\x10\x91\x01\x12\x15\x0A\x10PLACEMENT_STATUS\x10\xEA\x02\x12\x1A\x0A\x15PLACEMENT_STATUS_NAME\x10\xEC\x02\x12\x1E\x0A\x19PLACEMENT_STATUS_NAME_ALL\x10\xED\x02\x12\x13\x0A\x0EPOSTAL_CODE_ID\x10\xC7\x03\x12\x15\x0A\x10POSTAL_CODE_NAME\x10\xC8\x03\x12\x10\x0A\x0BPPID_STATUS\x10\x96\x03\x12\x15\x0A\x10PPID_STATUS_NAME\x10\x97\x03\x12!\x0A\x1CPREDICTED_VIEWABILITY_BUCKET\x10\xF9\x04\x12&\x0A!PREDICTED_VIEWABILITY_BUCKET_NAME\x10\xFA\x04\x12\x1F\x0A\x1APRESENTED_SECURE_SIGNAL_ID\x10\xEF\x03\x12!\x0A\x1CPRESENTED_SECURE_SIGNAL_NAME\x10\xF0\x03\x12\x14\x0A\x0FPRICING_RULE_ID\x10\x89\x03\x12\x16\x0A\x11PRICING_RULE_NAME\x10\x8A\x03\x12\$\x0A\x1FPRIMARY_PERSONALIZATION_ID_TYPE\x10\x98\x03\x12)\x0A\$PRIMARY_PERSONALIZATION_ID_TYPE_NAME\x10\x99\x03\x12\x18\x0A\x14PROGRAMMATIC_CHANNEL\x10\x0D\x12\x1D\x0A\x19PROGRAMMATIC_CHANNEL_NAME\x10\x0E\x128\x0A3PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE\x10\x9A\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS\x10\xA2\x04\x12/\x0A*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME\x10\x9C\x03\x12/\x0A*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER\x10\x9D\x03\x12/\x0A*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE\x10\x9E\x03\x127\x0A2PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE\x10\xA9\x03\x12-\x0A(PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS\x10\xA1\x04\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME\x10\xAB\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER\x10\xAC\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE\x10\xAD\x03\x127\x0A2PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE\x10\x9F\x03\x12,\x0A'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID\x10\xA0\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME\x10\xA1\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER\x10\xA2\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE\x10\xA3\x03\x12/\x0A*PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID\x10\x88\x01\x121\x0A,PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME\x10\x89\x01\x12\x0E\x0A\x09REGION_ID\x10\xC9\x03\x12\x10\x0A\x0BREGION_NAME\x10\xCA\x03\x12\"\x0A\x1DREJECTION_CLASS_CATEGORY_NAME\x10\xCF\x04\x12\x1B\x0A\x16RENDERED_CREATIVE_SIZE\x10\xD7\x02\x12\x17\x0A\x12REQUESTED_AD_SIZES\x10\xE0\x02\x12\x11\x0A\x0CREQUEST_TYPE\x10\x92\x01\x12\x16\x0A\x11REQUEST_TYPE_NAME\x10\x93\x01\x12\x1C\x0A\x17REVENUE_VERIFICATION_ID\x10\x85\x05\x12\$\x0A\x1FSERVER_SIDE_UNWRAPPING_ELIGIBLE\x10\xD5\x04\x12\x18\x0A\x13SERVING_RESTRICTION\x10\xF7\x04\x12\x1D\x0A\x18SERVING_RESTRICTION_NAME\x10\xF8\x04\x12\x09\x0A\x04SITE\x10\x83\x03\x12\x11\x0A\x0CTARGETING_ID\x10\xE8\x01\x12\x13\x0A\x0ETARGETING_NAME\x10\xE9\x01\x12\x13\x0A\x0ETARGETING_TYPE\x10\x81\x03\x12\x18\x0A\x13TARGETING_TYPE_NAME\x10\x82\x03\x12#\x0A\x1ETARGETS_CUSTOMER_MATCHING_LIST\x10\x95\x06\x12\x1A\x0A\x15THIRD_PARTY_ID_STATUS\x10\x92\x03\x12\x1F\x0A\x1ATHIRD_PARTY_ID_STATUS_NAME\x10\x93\x03\x12\x12\x0A\x0DTOPICS_STATUS\x10\xF8\x03\x12\x17\x0A\x12TOPICS_STATUS_NAME\x10\xF9\x03\x12\x17\x0A\x12TOP_PRIVATE_DOMAIN\x10\xBC\x03\x12\x13\x0A\x0ETRAFFIC_SOURCE\x10\x84\x03\x12\x18\x0A\x13TRAFFIC_SOURCE_NAME\x10\x85\x03\x12\x08\x0A\x03URL\x10\xFA\x03\x12\x0B\x0A\x06URL_ID\x10\xFB\x03\x12\x19\x0A\x14USER_MESSAGES_CHOICE\x10\xBE\x05\x12\x1E\x0A\x19USER_MESSAGES_CHOICE_NAME\x10\xBF\x05\x12%\x0A USER_MESSAGES_ENTITLEMENT_SOURCE\x10\xFB\x04\x12*\x0A%USER_MESSAGES_ENTITLEMENT_SOURCE_NAME\x10\xFC\x04\x12/\x0A*USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID\x10\xFD\x04\x121\x0A,USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME\x10\xFE\x04\x12\x11\x0A\x0CVAST_VERSION\x10\xAA\x04\x12\x16\x0A\x11VAST_VERSION_NAME\x10\xAB\x04\x12\x18\x0A\x13VIDEO_AD_BREAK_TYPE\x10\xAC\x04\x12\x1D\x0A\x18VIDEO_AD_BREAK_TYPE_NAME\x10\xAD\x04\x12\x16\x0A\x11VIDEO_AD_DURATION\x10\xC2\x03\x12\x1A\x0A\x15VIDEO_AD_FORMATS_RULE\x10\xB1\x04\x12\x1D\x0A\x18VIDEO_AD_FORMATS_RULE_ID\x10\xB0\x04\x12\x1E\x0A\x19VIDEO_AD_REQUEST_DURATION\x10\xAE\x04\x12,\x0A'VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME\x10\xEF\x05\x12#\x0A\x1EVIDEO_AD_REQUEST_DURATION_NAME\x10\xAF\x04\x12\x1C\x0A\x17VIDEO_AD_REQUEST_SOURCE\x10\xB6\x03\x12!\x0A\x1CVIDEO_AD_REQUEST_SOURCE_NAME\x10\xB7\x03\x12\x12\x0A\x0DVIDEO_AD_TYPE\x10\xB0\x03\x12\x17\x0A\x12VIDEO_AD_TYPE_NAME\x10\xB1\x03\x12\x1F\x0A\x1AVIDEO_CONTINUOUS_PLAY_TYPE\x10\xD1\x05\x12\$\x0A\x1FVIDEO_CONTINUOUS_PLAY_TYPE_NAME\x10\xD2\x05\x12\x1C\x0A\x17VIDEO_FALLBACK_POSITION\x10\x92\x04\x12.\x0A)VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION\x10\xA3\x04\x12(\x0A#VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID\x10\xA4\x04\x12*\x0A%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME\x10\xA5\x04\x12*\x0A%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME\x10\xA6\x04\x12\x1F\x0A\x1AVIDEO_LIVE_STREAM_EVENT_ID\x10\xA7\x04\x12!\x0A\x1CVIDEO_LIVE_STREAM_EVENT_NAME\x10\xA8\x04\x12\x1D\x0A\x18VIDEO_MEASUREMENT_SOURCE\x10\xD9\x04\x12\"\x0A\x1DVIDEO_MEASUREMENT_SOURCE_NAME\x10\xDA\x04\x12\x10\x0A\x0BVIDEO_PLCMT\x10\xAC\x01\x12\x15\x0A\x10VIDEO_PLCMT_NAME\x10\xAD\x01\x12\x1A\x0A\x15VIDEO_POSITION_IN_POD\x10\x9A\x04\x12\x1A\x0A\x15VIDEO_POSITION_OF_POD\x10\x9B\x04\x12\x16\x0A\x11VIDEO_SDK_VERSION\x10\xB8\x03\x12\x1B\x0A\x16VIDEO_SDK_VERSION_NAME\x10\xB9\x03\x12\x18\x0A\x13VIDEO_STITCHER_TYPE\x10\xF0\x05\x12\x1D\x0A\x18VIDEO_STITCHER_TYPE_NAME\x10\xF1\x05\x12\x16\x0A\x11WEB_PROPERTY_CODE\x10\xDA\x05\x12\x08\x0A\x04WEEK\x10\x05\x12\x1B\x0A\x16YIELD_GROUP_BUYER_NAME\x10\xB8\x01\x12\x1F\x0A\x1AYIELD_GROUP_BUYER_TAG_NAME\x10\xF3\x04\x12\x13\x0A\x0EYIELD_GROUP_ID\x10\xB6\x01\x12\x15\x0A\x10YIELD_GROUP_NAME\x10\xB7\x01\x12\x1F\x0A\x1AYOUTUBE_AD_DURATION_BUCKET\x10\xAE\x03\x12\$\x0A\x1FYOUTUBE_AD_DURATION_BUCKET_NAME\x10\xAF\x03\x12\x14\x0A\x0FYOUTUBE_AD_TYPE\x10\x8F\x03\x12\x19\x0A\x14YOUTUBE_AD_TYPE_NAME\x10\x90\x03\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\x10\x90N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\x10\x91N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\x10\x92N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\x10\x93N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\x10\x94N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\x10\x95N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\x10\x96N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\x10\x97N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\x10\x98N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\x10\x99N\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\x10\x9AN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\x10\x9BN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\x10\x9CN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\x10\x9DN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\x10\x9EN\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_0_VALUE\x10\xF8U\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_1_VALUE\x10\xF9U\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_2_VALUE\x10\xFAU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_3_VALUE\x10\xFBU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_4_VALUE\x10\xFCU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_5_VALUE\x10\xFDU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_6_VALUE\x10\xFEU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_7_VALUE\x10\xFFU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_8_VALUE\x10\x80V\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_9_VALUE\x10\x81V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_10_VALUE\x10\x82V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_11_VALUE\x10\x83V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_12_VALUE\x10\x84V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_13_VALUE\x10\x85V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_14_VALUE\x10\x86V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\x87V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\x88V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\x89V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\x8AV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\x8BV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\x8CV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\x8DV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\x8EV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\x8FV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\x90V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\x91V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\x92V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\x93V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\x94V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\x95V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_0_VALUE_BOOL\x10\x96V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_1_VALUE_BOOL\x10\x97V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_2_VALUE_BOOL\x10\x98V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_3_VALUE_BOOL\x10\x99V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_4_VALUE_BOOL\x10\x9AV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_5_VALUE_BOOL\x10\x9BV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_6_VALUE_BOOL\x10\x9CV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_7_VALUE_BOOL\x10\x9DV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_8_VALUE_BOOL\x10\x9EV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_9_VALUE_BOOL\x10\x9FV\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_10_VALUE_BOOL\x10\xA0V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_11_VALUE_BOOL\x10\xA1V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_12_VALUE_BOOL\x10\xA2V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_13_VALUE_BOOL\x10\xA3V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_14_VALUE_BOOL\x10\xA4V\x12#\x0A\x1EORDER_CUSTOM_FIELD_0_OPTION_ID\x10\xE0]\x12#\x0A\x1EORDER_CUSTOM_FIELD_1_OPTION_ID\x10\xE1]\x12#\x0A\x1EORDER_CUSTOM_FIELD_2_OPTION_ID\x10\xE2]\x12#\x0A\x1EORDER_CUSTOM_FIELD_3_OPTION_ID\x10\xE3]\x12#\x0A\x1EORDER_CUSTOM_FIELD_4_OPTION_ID\x10\xE4]\x12#\x0A\x1EORDER_CUSTOM_FIELD_5_OPTION_ID\x10\xE5]\x12#\x0A\x1EORDER_CUSTOM_FIELD_6_OPTION_ID\x10\xE6]\x12#\x0A\x1EORDER_CUSTOM_FIELD_7_OPTION_ID\x10\xE7]\x12#\x0A\x1EORDER_CUSTOM_FIELD_8_OPTION_ID\x10\xE8]\x12#\x0A\x1EORDER_CUSTOM_FIELD_9_OPTION_ID\x10\xE9]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_10_OPTION_ID\x10\xEA]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_11_OPTION_ID\x10\xEB]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_12_OPTION_ID\x10\xEC]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_13_OPTION_ID\x10\xED]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_14_OPTION_ID\x10\xEE]\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_0_VALUE\x10\xC8e\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_1_VALUE\x10\xC9e\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_2_VALUE\x10\xCAe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_3_VALUE\x10\xCBe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_4_VALUE\x10\xCCe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_5_VALUE\x10\xCDe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_6_VALUE\x10\xCEe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_7_VALUE\x10\xCFe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_8_VALUE\x10\xD0e\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_9_VALUE\x10\xD1e\x12 \x0A\x1BORDER_CUSTOM_FIELD_10_VALUE\x10\xD2e\x12 \x0A\x1BORDER_CUSTOM_FIELD_11_VALUE\x10\xD3e\x12 \x0A\x1BORDER_CUSTOM_FIELD_12_VALUE\x10\xD4e\x12 \x0A\x1BORDER_CUSTOM_FIELD_13_VALUE\x10\xD5e\x12 \x0A\x1BORDER_CUSTOM_FIELD_14_VALUE\x10\xD6e\x12&\x0A!ORDER_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xD7e\x12&\x0A!ORDER_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xD8e\x12&\x0A!ORDER_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xD9e\x12&\x0A!ORDER_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xDAe\x12&\x0A!ORDER_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xDBe\x12&\x0A!ORDER_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xDCe\x12&\x0A!ORDER_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xDDe\x12&\x0A!ORDER_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xDEe\x12&\x0A!ORDER_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xDFe\x12&\x0A!ORDER_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xE0e\x12'\x0A\"ORDER_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xE1e\x12'\x0A\"ORDER_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xE2e\x12'\x0A\"ORDER_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xE3e\x12'\x0A\"ORDER_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xE4e\x12'\x0A\"ORDER_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xE5e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_0_VALUE_BOOL\x10\xE6e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_1_VALUE_BOOL\x10\xE7e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_2_VALUE_BOOL\x10\xE8e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_3_VALUE_BOOL\x10\xE9e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_4_VALUE_BOOL\x10\xEAe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_5_VALUE_BOOL\x10\xEBe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_6_VALUE_BOOL\x10\xECe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_7_VALUE_BOOL\x10\xEDe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_8_VALUE_BOOL\x10\xEEe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_9_VALUE_BOOL\x10\xEFe\x12%\x0A ORDER_CUSTOM_FIELD_10_VALUE_BOOL\x10\xF0e\x12%\x0A ORDER_CUSTOM_FIELD_11_VALUE_BOOL\x10\xF1e\x12%\x0A ORDER_CUSTOM_FIELD_12_VALUE_BOOL\x10\xF2e\x12%\x0A ORDER_CUSTOM_FIELD_13_VALUE_BOOL\x10\xF3e\x12%\x0A ORDER_CUSTOM_FIELD_14_VALUE_BOOL\x10\xF4e\x12&\x0A!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\x10\xB0m\x12&\x0A!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\x10\xB1m\x12&\x0A!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\x10\xB2m\x12&\x0A!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\x10\xB3m\x12&\x0A!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\x10\xB4m\x12&\x0A!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\x10\xB5m\x12&\x0A!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\x10\xB6m\x12&\x0A!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\x10\xB7m\x12&\x0A!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\x10\xB8m\x12&\x0A!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\x10\xB9m\x12'\x0A\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\x10\xBAm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\x10\xBBm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\x10\xBCm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\x10\xBDm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\x10\xBEm\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_0_VALUE\x10\x98u\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_1_VALUE\x10\x99u\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_2_VALUE\x10\x9Au\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_3_VALUE\x10\x9Bu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_4_VALUE\x10\x9Cu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_5_VALUE\x10\x9Du\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_6_VALUE\x10\x9Eu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_7_VALUE\x10\x9Fu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_8_VALUE\x10\xA0u\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_9_VALUE\x10\xA1u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_10_VALUE\x10\xA2u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_11_VALUE\x10\xA3u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_12_VALUE\x10\xA4u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_13_VALUE\x10\xA5u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_14_VALUE\x10\xA6u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xA7u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xA8u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xA9u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xAAu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xABu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xACu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xADu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xAEu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xAFu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xB0u\x12*\x0A%CREATIVE_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xB1u\x12*\x0A%CREATIVE_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xB2u\x12*\x0A%CREATIVE_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xB3u\x12*\x0A%CREATIVE_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xB4u\x12*\x0A%CREATIVE_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xB5u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_0_VALUE_BOOL\x10\xB6u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_1_VALUE_BOOL\x10\xB7u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_2_VALUE_BOOL\x10\xB8u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_3_VALUE_BOOL\x10\xB9u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_4_VALUE_BOOL\x10\xBAu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_5_VALUE_BOOL\x10\xBBu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_6_VALUE_BOOL\x10\xBCu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_7_VALUE_BOOL\x10\xBDu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_8_VALUE_BOOL\x10\xBEu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_9_VALUE_BOOL\x10\xBFu\x12(\x0A#CREATIVE_CUSTOM_FIELD_10_VALUE_BOOL\x10\xC0u\x12(\x0A#CREATIVE_CUSTOM_FIELD_11_VALUE_BOOL\x10\xC1u\x12(\x0A#CREATIVE_CUSTOM_FIELD_12_VALUE_BOOL\x10\xC2u\x12(\x0A#CREATIVE_CUSTOM_FIELD_13_VALUE_BOOL\x10\xC3u\x12(\x0A#CREATIVE_CUSTOM_FIELD_14_VALUE_BOOL\x10\xC4u\x12'\x0A!CMS_METADATA_DIMENSION_0_VALUE_ID\x10\xF0\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_1_VALUE_ID\x10\xF1\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_2_VALUE_ID\x10\xF2\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_3_VALUE_ID\x10\xF3\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_4_VALUE_ID\x10\xF4\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_5_VALUE_ID\x10\xF5\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_6_VALUE_ID\x10\xF6\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_7_VALUE_ID\x10\xF7\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_8_VALUE_ID\x10\xF8\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_9_VALUE_ID\x10\xF9\x9C\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_0_VALUE\x10\xD8\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_1_VALUE\x10\xD9\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_2_VALUE\x10\xDA\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_3_VALUE\x10\xDB\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_4_VALUE\x10\xDC\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_5_VALUE\x10\xDD\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_6_VALUE\x10\xDE\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_7_VALUE\x10\xDF\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_8_VALUE\x10\xE0\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_9_VALUE\x10\xE1\xA4\x06\x12!\x0A\x1BCUSTOM_DIMENSION_0_VALUE_ID\x10\xA0\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_1_VALUE_ID\x10\xA1\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_2_VALUE_ID\x10\xA2\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_3_VALUE_ID\x10\xA3\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_4_VALUE_ID\x10\xA4\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_5_VALUE_ID\x10\xA5\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_6_VALUE_ID\x10\xA6\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_7_VALUE_ID\x10\xA7\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_8_VALUE_ID\x10\xA8\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_9_VALUE_ID\x10\xA9\x8D\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_0_VALUE\x10\x88\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_1_VALUE\x10\x89\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_2_VALUE\x10\x8A\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_3_VALUE\x10\x8B\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_4_VALUE\x10\x8C\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_5_VALUE\x10\x8D\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_6_VALUE\x10\x8E\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_7_VALUE\x10\x8F\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_8_VALUE\x10\x90\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_9_VALUE\x10\x91\x95\x06\x12\x1E\x0A\x18EKV_DIMENSION_0_VALUE_ID\x10\xA8\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_1_VALUE_ID\x10\xA9\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_2_VALUE_ID\x10\xAA\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_3_VALUE_ID\x10\xAB\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_4_VALUE_ID\x10\xAC\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_5_VALUE_ID\x10\xAD\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_6_VALUE_ID\x10\xAE\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_7_VALUE_ID\x10\xAF\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_8_VALUE_ID\x10\xB0\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_9_VALUE_ID\x10\xB1\xB4\x06\x12\x1B\x0A\x15EKV_DIMENSION_0_VALUE\x10\x90\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_1_VALUE\x10\x91\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_2_VALUE\x10\x92\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_3_VALUE\x10\x93\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_4_VALUE\x10\x94\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_5_VALUE\x10\x95\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_6_VALUE\x10\x96\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_7_VALUE\x10\x97\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_8_VALUE\x10\x98\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_9_VALUE\x10\x99\xBC\x06\"\x89\x9D\x01\x0A\x06Metric\x12\x16\x0A\x12METRIC_UNSPECIFIED\x10\x00\x12\x11\x0A\x0CACTIVE_USERS\x10\xDF\x01\x12)\x0A\$ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT\x10\xBD\x03\x12\$\x0A\x1FACTIVE_VIEW_AUDIBLE_IMPRESSIONS\x10\x93\x05\x123\x0A.ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT\x10\xBE\x03\x127\x0A2ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT\x10\xBF\x03\x121\x0A,ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT\x10\xC0\x03\x127\x0A2ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT\x10\xC1\x03\x12*\x0A%ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS\x10\x94\x05\x12-\x0A(ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS\x10\x95\x05\x12%\x0A!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10=\x12\$\x0A ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10:\x122\x0A-ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT\x10\xC2\x03\x12%\x0A ACTIVE_VIEW_EVER_AUDIBLE_PERCENT\x10\xC3\x03\x12*\x0A%ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT\x10\xC4\x03\x12#\x0A\x1EACTIVE_VIEW_EVER_MUTED_PERCENT\x10\xC5\x03\x12?\x0A:ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION\x10\x9B\x03\x12&\x0A\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x109\x12+\x0A'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10<\x12+\x0A&ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x96\x05\x12)\x0A\$ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x97\x05\x126\x0A1ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x98\x05\x12,\x0A'ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS\x10\x99\x05\x12&\x0A!ACTIVE_VIEW_PLUS_MEASURABLE_COUNT\x10\xC6\x03\x12\x18\x0A\x13ACTIVE_VIEW_REVENUE\x10\x9E\x03\x126\x0A1ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x9A\x05\x12\$\x0A ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x108\x122\x0A-ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x9B\x05\x12)\x0A%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10;\x12-\x0A)ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10I\x12,\x0A(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10F\x12.\x0A*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10E\x123\x0A/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10H\x123\x0A.ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x82\x05\x121\x0A,ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x83\x05\x12>\x0A9ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x84\x05\x12>\x0A9ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x85\x05\x12,\x0A(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10D\x12:\x0A5ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x86\x05\x121\x0A-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10G\x12\x18\x0A\x14ADSENSE_AVERAGE_ECPM\x10\x1A\x12\x12\x0A\x0EADSENSE_CLICKS\x10\x17\x12\x0F\x0A\x0BADSENSE_CTR\x10\x18\x12\x17\x0A\x13ADSENSE_IMPRESSIONS\x10\x16\x12\x1A\x0A\x16ADSENSE_PERCENT_CLICKS\x10\x1C\x12\x1F\x0A\x1BADSENSE_PERCENT_IMPRESSIONS\x10\x1B\x12\x1B\x0A\x17ADSENSE_PERCENT_REVENUE\x10\x1D\x12'\x0A#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1E\x12\x1C\x0A\x18ADSENSE_RESPONSES_SERVED\x10)\x12\x13\x0A\x0FADSENSE_REVENUE\x10\x19\x121\x0A-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10O\x120\x0A,AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10L\x122\x0A.AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10K\x127\x0A3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10N\x127\x0A2AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x8E\x05\x125\x0A0AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x8F\x05\x12B\x0A=AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x90\x05\x12B\x0A=AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x91\x05\x120\x0A,AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10J\x12>\x0A9AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x92\x05\x125\x0A1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10M\x12\x1C\x0A\x18AD_EXCHANGE_AVERAGE_ECPM\x10\x12\x12\x16\x0A\x12AD_EXCHANGE_CLICKS\x10\x0F\x12\x14\x0A\x0FAD_EXCHANGE_CPC\x10\xF4\x01\x12\x13\x0A\x0FAD_EXCHANGE_CTR\x10\x10\x12\x1E\x0A\x19AD_EXCHANGE_DELIVERY_RATE\x10\xF5\x01\x12\x1B\x0A\x17AD_EXCHANGE_IMPRESSIONS\x10\x0E\x12*\x0A%AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER\x10\xAB\x03\x12(\x0A#AD_EXCHANGE_IMPRESSIONS_PER_SESSION\x10\xAC\x03\x12\x15\x0A\x10AD_EXCHANGE_LIFT\x10\xF6\x01\x12\$\x0A\x1FAD_EXCHANGE_MATCHED_REQUEST_CTR\x10\xF7\x01\x12%\x0A AD_EXCHANGE_MATCHED_REQUEST_ECPM\x10\xF8\x01\x12\x1B\x0A\x16AD_EXCHANGE_MATCH_RATE\x10\xF9\x01\x12*\x0A%AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS\x10\xFA\x01\x12/\x0A*AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xFB\x01\x12\x1E\x0A\x1AAD_EXCHANGE_PERCENT_CLICKS\x10\x14\x12#\x0A\x1FAD_EXCHANGE_PERCENT_IMPRESSIONS\x10\x13\x12\x1F\x0A\x1BAD_EXCHANGE_PERCENT_REVENUE\x10\x15\x12+\x0A'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1F\x12&\x0A!AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM\x10\xFC\x01\x12-\x0A(AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS\x10\xFD\x01\x12)\x0A\$AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE\x10\xFE\x01\x12 \x0A\x1CAD_EXCHANGE_RESPONSES_SERVED\x10*\x12\x17\x0A\x13AD_EXCHANGE_REVENUE\x10\x11\x125\x0A0AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xD4\x01\x12&\x0A!AD_EXCHANGE_REVENUE_PER_AD_VIEWER\x10\xAD\x03\x12\x1F\x0A\x1AAD_EXCHANGE_TOTAL_REQUESTS\x10\xFF\x01\x12\"\x0A\x1DAD_EXCHANGE_TOTAL_REQUEST_CTR\x10\x80\x02\x12#\x0A\x1EAD_EXCHANGE_TOTAL_REQUEST_ECPM\x10\x81\x02\x12\x18\x0A\x13AD_EXPOSURE_SECONDS\x10\xF1\x01\x12\x0F\x0A\x0BAD_REQUESTS\x10&\x12/\x0A+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10C\x12.\x0A*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10@\x120\x0A,AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10?\x125\x0A1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10B\x125\x0A0AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\xCC\x02\x123\x0A.AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\xCB\x02\x12@\x0A;AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xCE\x02\x12\"\x0A\x1DAD_SERVER_ACTIVE_VIEW_REVENUE\x10\xC0\x05\x12@\x0A;AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\xCF\x02\x12.\x0A*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10>\x12<\x0A7AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xCD\x02\x123\x0A/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10A\x12\x1A\x0A\x16AD_SERVER_AVERAGE_ECPM\x10\"\x12&\x0A\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\x10\x0A\x12*\x0A%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\x10\x86\x02\x12\x14\x0A\x10AD_SERVER_CLICKS\x10\x07\x12\x1E\x0A\x19AD_SERVER_COMPLETED_VIEWS\x10\xAF\x03\x12#\x0A\x1EAD_SERVER_COVIEWED_IMPRESSIONS\x10\xAA\x04\x12\x19\x0A\x15AD_SERVER_CPD_REVENUE\x10 \x12\x11\x0A\x0DAD_SERVER_CTR\x10\x08\x12\x1C\x0A\x17AD_SERVER_GROSS_REVENUE\x10\xE3\x03\x12(\x0A#AD_SERVER_GROSS_REVENUE_WITHOUT_CPD\x10\xE4\x03\x12\x19\x0A\x15AD_SERVER_IMPRESSIONS\x10\x06\x12)\x0A\$AD_SERVER_IMPRESSIONS_WITH_COMPANION\x10\xDE\x01\x123\x0A.AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\xD2\x02\x12(\x0A#AD_SERVER_OPPORTUNITIES_FROM_ERRORS\x10\xCD\x03\x12-\x0A(AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xCE\x03\x12\x1C\x0A\x18AD_SERVER_PERCENT_CLICKS\x10\x0C\x12!\x0A\x1DAD_SERVER_PERCENT_IMPRESSIONS\x10\x0B\x12\x1D\x0A\x19AD_SERVER_PERCENT_REVENUE\x10#\x12)\x0A%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\x10\x0D\x12\x1E\x0A\x1AAD_SERVER_RESPONSES_SERVED\x10(\x12\x15\x0A\x11AD_SERVER_REVENUE\x10!\x123\x0A.AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xD5\x01\x12!\x0A\x1DAD_SERVER_REVENUE_WITHOUT_CPD\x10\x09\x12\x1E\x0A\x19AD_SERVER_TARGETED_CLICKS\x10\x92\x02\x12#\x0A\x1EAD_SERVER_TARGETED_IMPRESSIONS\x10\x93\x02\x12\x1A\x0A\x15AD_SERVER_TRACKED_ADS\x10\x88\x02\x125\x0A0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\x10\x85\x02\x12 \x0A\x1BAD_SERVER_UNFILTERED_CLICKS\x10\x83\x02\x120\x0A+AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS\x10\x84\x02\x12)\x0A AD_SERVER_UNFILTERED_IMPRESSIONS\x10\x84\x02\x1A\x02\x08\x01\x12%\x0A AD_SERVER_UNFILTERED_TRACKED_ADS\x10\x87\x02\x12\x1D\x0A\x18AD_UNIT_EXPOSURE_SECONDS\x10\xF2\x01\x12\x0F\x0A\x0AAD_VIEWERS\x10\xA9\x03\x12\x1D\x0A\x18ATN_ADS_FAILED_TO_RENDER\x10\xAE\x03\x12\x1C\x0A\x17ATN_ELIGIBLE_LINE_ITEMS\x10\xD6\x02\x12(\x0A#ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS\x10\xD7\x02\x12 \x0A\x1BATN_HBT_ALLOWED_AD_REQUESTS\x10\xD8\x02\x12\x1C\x0A\x17ATN_HBT_BIDS_IN_AUCTION\x10\xD9\x02\x12(\x0A#ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS\x10\xDA\x02\x12\x1B\x0A\x16ATN_HBT_CANDIDATE_BIDS\x10\xDB\x02\x12 \x0A\x1BATN_HBT_INVALID_AD_REQUESTS\x10\xDC\x02\x12 \x0A\x1BATN_HBT_NO_BIDS_AD_REQUESTS\x10\xD8\x03\x12\x1A\x0A\x15ATN_HBT_REJECTED_BIDS\x10\xDD\x02\x12\x1E\x0A\x19ATN_HBT_VALID_AD_REQUESTS\x10\xDE\x02\x12\"\x0A\x1DATN_HBT_WITH_BIDS_AD_REQUESTS\x10\xD9\x03\x12\x1C\x0A\x17ATN_INVALID_AD_REQUESTS\x10\xDF\x02\x12*\x0A%ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED\x10\xDC\x03\x12\x1E\x0A\x19ATN_LINE_ITEMS_IN_AUCTION\x10\xE0\x02\x12!\x0A\x1CATN_LINE_ITEMS_NOT_COMPETING\x10\x83\x04\x12 \x0A\x1BATN_LINE_ITEMS_NOT_SELECTED\x10\xE1\x02\x12)\x0A\$ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS\x10\xE2\x02\x12'\x0A\"ATN_LINE_ITEM_TARGETED_AD_REQUESTS\x10\xE3\x02\x12&\x0A!ATN_MEDIATION_ALLOWED_AD_REQUESTS\x10\xE4\x02\x12&\x0A!ATN_MEDIATION_INVALID_AD_REQUESTS\x10\xE5\x02\x12)\x0A\$ATN_MEDIATION_LOADED_ADS_FROM_CHAINS\x10\xE6\x02\x12)\x0A\$ATN_MEDIATION_NO_PARTNER_AD_REQUESTS\x10\xDA\x03\x12&\x0A!ATN_MEDIATION_PARTNERS_IN_AUCTION\x10\xE7\x02\x122\x0A-ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS\x10\xE8\x02\x12\$\x0A\x1FATN_MEDIATION_REJECTED_PARTNERS\x10\xE9\x02\x12\$\x0A\x1FATN_MEDIATION_TARGETED_PARTNERS\x10\xEA\x02\x12&\x0A!ATN_MEDIATION_TOTAL_ADS_IN_CHAINS\x10\xBF\x05\x12+\x0A&ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS\x10\xEB\x02\x12*\x0A%ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS\x10\xEC\x02\x12\$\x0A\x1FATN_MEDIATION_VALID_AD_REQUESTS\x10\xED\x02\x12,\x0A'ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS\x10\xDB\x03\x12+\x0A&ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS\x10\xEE\x02\x128\x0A3ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT\x10\xEF\x02\x12)\x0A\$ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS\x10\xF0\x02\x12%\x0A ATN_PROGRAMMATIC_BIDS_IN_AUCTION\x10\xF1\x02\x120\x0A+ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS\x10\xF2\x02\x12'\x0A\"ATN_PROGRAMMATIC_BID_REQUESTS_SENT\x10\xF3\x02\x120\x0A+ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE\x10\xF4\x02\x12,\x0A'ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES\x10\xF5\x02\x12(\x0A#ATN_PROGRAMMATIC_BID_REQUEST_ERRORS\x10\xF6\x02\x12,\x0A'ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS\x10\xF7\x02\x12#\x0A\x1EATN_PROGRAMMATIC_REJECTED_BIDS\x10\xF8\x02\x12*\x0A%ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS\x10\xF9\x02\x12 \x0A\x1BATN_PROGRAMMATIC_TOTAL_BIDS\x10\xFA\x02\x12'\x0A\"ATN_PROGRAMMATIC_VALID_AD_REQUESTS\x10\xFB\x02\x12\x1C\x0A\x17ATN_REJECTED_LINE_ITEMS\x10\xFC\x02\x12 \x0A\x1BATN_SERVED_MEDIATION_CHAINS\x10\xFD\x02\x12\x1A\x0A\x15ATN_SERVED_SINGLE_ADS\x10\xFE\x02\x12\x1C\x0A\x17ATN_TARGETED_LINE_ITEMS\x10\xFF\x02\x12\x1A\x0A\x15ATN_TOTAL_AD_REQUESTS\x10\x80\x03\x12\x19\x0A\x14ATN_TOTAL_LOADED_ADS\x10\x83\x03\x12\x1A\x0A\x15ATN_VALID_AD_REQUESTS\x10\x85\x03\x12(\x0A#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\x10\x86\x03\x12\x1A\x0A\x15AUDIENCE_SEGMENT_COST\x10\xAE\x04\x12\x10\x0A\x0CAVERAGE_ECPM\x10%\x12\x1C\x0A\x18AVERAGE_ECPM_WITHOUT_CPD\x10\x05\x12+\x0A&AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION\x10\xE0\x01\x12(\x0A#AVERAGE_ENGAGEMENT_SECONDS_PER_USER\x10\xE1\x01\x12+\x0A&AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR\x10\xA2\x03\x12-\x0A(AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER\x10\xE2\x01\x12\x1D\x0A\x18AVERAGE_REVENUE_PER_USER\x10\xE3\x01\x12\x1C\x0A\x17AVERAGE_SESSION_SECONDS\x10\xE4\x01\x12\x09\x0A\x04BIDS\x10\xBB\x03\x12\x14\x0A\x0FBID_AVERAGE_CPM\x10\xBC\x03\x12\x10\x0A\x0BBOUNCE_RATE\x10\xB1\x03\x12\x0A\x0A\x06CLICKS\x10\x02\x12\x15\x0A\x11CODE_SERVED_COUNT\x10,\x12\x10\x0A\x0BCPC_REVENUE\x10\xB8\x03\x12\x10\x0A\x0BCPM_REVENUE\x10\xB9\x03\x12%\x0A CREATIVE_LOAD_TIME_0_500_PERCENT\x10\xC4\x02\x12)\x0A\$CREATIVE_LOAD_TIME_1000_2000_PERCENT\x10\xC6\x02\x12)\x0A\$CREATIVE_LOAD_TIME_2000_4000_PERCENT\x10\xC7\x02\x12)\x0A\$CREATIVE_LOAD_TIME_4000_8000_PERCENT\x10\xC8\x02\x12(\x0A#CREATIVE_LOAD_TIME_500_1000_PERCENT\x10\xC5\x02\x12'\x0A\"CREATIVE_LOAD_TIME_GT_8000_PERCENT\x10\xC9\x02\x12\x07\x0A\x03CTR\x10\x03\x12\x0F\x0A\x0ADEALS_BIDS\x10\x9E\x04\x12\x13\x0A\x0EDEALS_BID_RATE\x10\x9F\x04\x12\x17\x0A\x12DEALS_BID_REQUESTS\x10\xA0\x04\x12\x17\x0A\x12DEALS_WINNING_BIDS\x10\xA1\x04\x12\x13\x0A\x0EDEALS_WIN_RATE\x10\xA2\x04\x12/\x0A*DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\x89\x04\x123\x0A.DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\x8A\x04\x123\x0A.DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\x8B\x04\x123\x0A.DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\x8C\x04\x122\x0A-DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\x8D\x04\x121\x0A,DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\x88\x04\x12,\x0A'DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT\x10\x8E\x04\x120\x0A+DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT\x10\x8F\x04\x120\x0A+DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT\x10\x90\x04\x120\x0A+DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT\x10\x91\x04\x12/\x0A*DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT\x10\x93\x04\x12.\x0A)DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT\x10\x92\x04\x12\x11\x0A\x0CDROPOFF_RATE\x10\x9F\x03\x12\x15\x0A\x10ENGAGED_SESSIONS\x10\xE5\x01\x12\x1E\x0A\x19ENGAGED_SESSIONS_PER_USER\x10\xE6\x01\x12\x14\x0A\x0FENGAGEMENT_RATE\x10\xAA\x03\x12&\x0A!EUROPEAN_REGULATIONS_CONSENT_RATE\x10\x8E\x02\x12-\x0A(EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE\x10\x8F\x02\x12(\x0A#EUROPEAN_REGULATIONS_MESSAGES_SHOWN\x10\x90\x02\x12)\x0A\$EUROPEAN_REGULATIONS_NO_CONSENT_RATE\x10\x91\x02\x12\x0E\x0A\x09FILL_RATE\x10\x82\x02\x12\x1C\x0A\x17GOOGLE_ANALYTICS_CLICKS\x10\xE7\x01\x12\x19\x0A\x14GOOGLE_ANALYTICS_CTR\x10\xE8\x01\x12\x1A\x0A\x15GOOGLE_ANALYTICS_ECPM\x10\xE9\x01\x12!\x0A\x1CGOOGLE_ANALYTICS_IMPRESSIONS\x10\xEA\x01\x12\x1D\x0A\x18GOOGLE_ANALYTICS_REVENUE\x10\xEB\x01\x12\x1B\x0A\x16GOOGLE_ANALYTICS_VIEWS\x10\xEC\x01\x12\$\x0A\x1FGOOGLE_ANALYTICS_VIEWS_PER_USER\x10\xED\x01\x12-\x0A(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\x10\x81\x01\x12\$\x0A\x1FGOOGLE_SOLD_AUCTION_IMPRESSIONS\x10\x80\x01\x12%\x0A GOOGLE_SOLD_COVIEWED_IMPRESSIONS\x10\x83\x01\x12\x1C\x0A\x17GOOGLE_SOLD_IMPRESSIONS\x10\x82\x01\x120\x0A,GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\x10\x7F\x12'\x0A#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\x10~\x12\x0F\x0A\x0BIMPRESSIONS\x10\x01\x12)\x0A\$INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\x97\x03\x12\x15\x0A\x10INVENTORY_SHARES\x10\xA3\x04\x123\x0A.INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES\x10\xA4\x04\x12\x19\x0A\x14INVOICED_IMPRESSIONS\x10\x94\x03\x12\"\x0A\x1DINVOICED_UNFILLED_IMPRESSIONS\x10\x95\x03\x12\x1C\x0A\x17MEDIATION_CHAINS_FILLED\x10\xC8\x04\x12\x16\x0A\x11MUTED_IMPRESSIONS\x10\x9C\x03\x12\x1E\x0A\x19MUTE_ELIGIBLE_IMPRESSIONS\x10\x99\x03\x12\x1B\x0A\x16NIELSEN_AUDIENCE_INDEX\x10\xB8\x04\x12\x1E\x0A\x19NIELSEN_AVERAGE_FREQUENCY\x10\xB9\x04\x12&\x0A!NIELSEN_AVERAGE_NUMBER_OF_VIEWERS\x10\xBA\x04\x12 \x0A\x1BNIELSEN_GROSS_RATING_POINTS\x10\xBB\x04\x12\x18\x0A\x13NIELSEN_IMPRESSIONS\x10\xBC\x04\x12\x1E\x0A\x19NIELSEN_IMPRESSIONS_INDEX\x10\xBD\x04\x12\x1C\x0A\x17NIELSEN_IN_TARGET_RATIO\x10\xC0\x04\x12#\x0A\x1ENIELSEN_PERCENT_AUDIENCE_REACH\x10\xC2\x04\x12#\x0A\x1ENIELSEN_PERCENT_AUDIENCE_SHARE\x10\xC3\x04\x12&\x0A!NIELSEN_PERCENT_IMPRESSIONS_SHARE\x10\xC4\x04\x12%\x0A NIELSEN_PERCENT_POPULATION_SHARE\x10\xC5\x04\x12\x1C\x0A\x17NIELSEN_POPULATION_BASE\x10\xC6\x04\x12\x1C\x0A\x17NIELSEN_UNIQUE_AUDIENCE\x10\xC7\x04\x124\x0A/OFF_PROPERTY_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x8B\x03\x122\x0A-OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x8C\x03\x127\x0A2OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10\x8D\x03\x12\x18\x0A\x13OFF_PROPERTY_CLICKS\x10\x8E\x03\x12\x15\x0A\x10OFF_PROPERTY_CTR\x10\x8F\x03\x12\x1D\x0A\x18OFF_PROPERTY_IMPRESSIONS\x10\x90\x03\x12\x19\x0A\x14OFF_PROPERTY_REVENUE\x10\x91\x03\x12\x17\x0A\x12OFF_PROPERTY_SPEND\x10\x92\x03\x12\x1C\x0A\x17OFF_PROPERTY_SPEND_ECPM\x10\x93\x03\x12#\x0A\x1EON_PLATFORM_MULTIPLE_CALL_ECPM\x10\xA6\x05\x12*\x0A%ON_PLATFORM_MULTIPLE_CALL_IMPRESSIONS\x10\xA4\x05\x12&\x0A!ON_PLATFORM_MULTIPLE_CALL_REVENUE\x10\xA5\x05\x12\x12\x0A\x0DOPPORTUNITIES\x10\xCF\x03\x12\x1E\x0A\x19OVERDELIVERED_IMPRESSIONS\x10\xB0\x03\x12\"\x0A\x1DPARTNER_FINANCE_GROSS_REVENUE\x10\x88\x05\x12\x1E\x0A\x19PARTNER_FINANCE_HOST_ECPM\x10\x89\x05\x12%\x0A PARTNER_FINANCE_HOST_IMPRESSIONS\x10\x8A\x05\x12!\x0A\x1CPARTNER_FINANCE_HOST_REVENUE\x10\x8B\x05\x12!\x0A\x1CPARTNER_FINANCE_PARTNER_ECPM\x10\x8C\x05\x12\$\x0A\x1FPARTNER_FINANCE_PARTNER_REVENUE\x10\x8D\x05\x12%\x0A PARTNER_MANAGEMENT_GROSS_REVENUE\x10\x95\x04\x12#\x0A\x1EPARTNER_MANAGEMENT_HOST_CLICKS\x10\x96\x04\x12 \x0A\x1BPARTNER_MANAGEMENT_HOST_CTR\x10\x97\x04\x12(\x0A#PARTNER_MANAGEMENT_HOST_IMPRESSIONS\x10\x98\x04\x12&\x0A!PARTNER_MANAGEMENT_PARTNER_CLICKS\x10\x99\x04\x12#\x0A\x1EPARTNER_MANAGEMENT_PARTNER_CTR\x10\x9A\x04\x12+\x0A&PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS\x10\x9B\x04\x12+\x0A&PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS\x10\x9C\x04\x12,\x0A'PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS\x10\x9D\x04\x12&\x0A!PARTNER_SALES_FILLED_POD_REQUESTS\x10\x87\x01\x12\x1C\x0A\x17PARTNER_SALES_FILL_RATE\x10\x88\x01\x12%\x0A PARTNER_SALES_PARTNER_MATCH_RATE\x10\x89\x01\x12\x1A\x0A\x15PARTNER_SALES_QUERIES\x10\x84\x01\x12'\x0A\"PARTNER_SALES_UNFILLED_IMPRESSIONS\x10\x85\x01\x12\$\x0A\x1FPARTNER_SALES_UNMATCHED_QUERIES\x10\x86\x01\x12\x1C\x0A\x18PARTNER_SOLD_CODE_SERVED\x10}\x12%\x0A!PARTNER_SOLD_COVIEWED_IMPRESSIONS\x10|\x12\x1C\x0A\x18PARTNER_SOLD_IMPRESSIONS\x10{\x12&\x0A!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\x10\xB1\x01\x12\x1C\x0A\x17PROGRAMMATIC_MATCH_RATE\x10\xB2\x01\x12\"\x0A\x1DPROGRAMMATIC_RESPONSES_SERVED\x10\xB0\x01\x12\x16\x0A\x11REACH_IMPRESSIONS\x10\xA0\x03\x12\x14\x0A\x10RESPONSES_SERVED\x10'\x12\x0E\x0A\x09RETENTION\x10\xEE\x01\x12\x0B\x0A\x07REVENUE\x10\$\x12)\x0A\$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xD6\x01\x12%\x0A REVENUE_VERIFICATION_CPD_REVENUE\x10\xB0\x04\x12+\x0A&REVENUE_VERIFICATION_GROSS_CPD_REVENUE\x10\xAF\x04\x123\x0A.REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD\x10\xB1\x04\x12%\x0A REVENUE_VERIFICATION_IMPRESSIONS\x10\xB4\x04\x12-\x0A(REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD\x10\xB7\x04\x12\x17\x0A\x13REVENUE_WITHOUT_CPD\x10\x04\x12\x14\x0A\x0FREWARDS_GRANTED\x10\x9D\x03\x12\$\x0A\x1FRICH_MEDIA_AVERAGE_DISPLAY_TIME\x10\xCB\x04\x12(\x0A#RICH_MEDIA_AVERAGE_INTERACTION_TIME\x10\xCC\x04\x12\x1D\x0A\x18RICH_MEDIA_BACKUP_IMAGES\x10\xCD\x04\x12\"\x0A\x1DRICH_MEDIA_CUSTOM_EVENT_COUNT\x10\xD7\x04\x12!\x0A\x1CRICH_MEDIA_CUSTOM_EVENT_TIME\x10\xD8\x04\x12\x1C\x0A\x17RICH_MEDIA_DISPLAY_TIME\x10\xCE\x04\x12\x1E\x0A\x19RICH_MEDIA_EXPANDING_TIME\x10\xCF\x04\x12\x1A\x0A\x15RICH_MEDIA_EXPANSIONS\x10\xD0\x04\x12'\x0A\"RICH_MEDIA_FULL_SCREEN_IMPRESSIONS\x10\xD1\x04\x12!\x0A\x1CRICH_MEDIA_INTERACTION_COUNT\x10\xD2\x04\x12 \x0A\x1BRICH_MEDIA_INTERACTION_RATE\x10\xD3\x04\x12 \x0A\x1BRICH_MEDIA_INTERACTION_TIME\x10\xD4\x04\x12'\x0A\"RICH_MEDIA_INTERACTIVE_IMPRESSIONS\x10\xD5\x04\x12\x1D\x0A\x18RICH_MEDIA_MANUAL_CLOSES\x10\xD6\x04\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_COMPLETES\x10\xF7\x03\x12\"\x0A\x1DRICH_MEDIA_VIDEO_INTERACTIONS\x10\xF9\x03\x12&\x0A!RICH_MEDIA_VIDEO_INTERACTION_RATE\x10\xF8\x03\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_MIDPOINTS\x10\xFA\x03\x12\x1B\x0A\x16RICH_MEDIA_VIDEO_MUTES\x10\xFB\x03\x12\x1C\x0A\x17RICH_MEDIA_VIDEO_PAUSES\x10\xFC\x03\x12\x1B\x0A\x16RICH_MEDIA_VIDEO_PLAYS\x10\xFD\x03\x12\x1D\x0A\x18RICH_MEDIA_VIDEO_REPLAYS\x10\xFE\x03\x12\x1B\x0A\x16RICH_MEDIA_VIDEO_STOPS\x10\xFF\x03\x12\x1D\x0A\x18RICH_MEDIA_VIDEO_UNMUTES\x10\x80\x04\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_VIEW_RATE\x10\x81\x04\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_VIEW_TIME\x10\x82\x04\x12'\x0A\"SELL_THROUGH_AVAILABLE_IMPRESSIONS\x10\xDD\x03\x12(\x0A#SELL_THROUGH_FORECASTED_IMPRESSIONS\x10\xDE\x03\x12&\x0A!SELL_THROUGH_RESERVED_IMPRESSIONS\x10\xDF\x03\x12#\x0A\x1ESELL_THROUGH_SELL_THROUGH_RATE\x10\xE0\x03\x12.\x0A)SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\x10\xB2\x03\x12\$\x0A\x1FSERVER_SIDE_UNWRAPPING_CALLOUTS\x10\xB3\x03\x12+\x0A&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\x10\xB4\x03\x12+\x0A&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\x10\xB5\x03\x120\x0A+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\x10\xB6\x03\x12\$\x0A\x1FSERVER_SIDE_UNWRAPPING_TIMEOUTS\x10\xB7\x03\x12\x0D\x0A\x08SESSIONS\x10\xEF\x01\x12/\x0A*TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\xC7\x03\x123\x0A.TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\xC9\x03\x123\x0A.TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\xCA\x03\x123\x0A.TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\xCB\x03\x122\x0A-TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\xC8\x03\x121\x0A,TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\xCC\x03\x12\x14\x0A\x0FTARGETED_CLICKS\x10\x94\x02\x12\x19\x0A\x14TARGETED_IMPRESSIONS\x10\x95\x02\x12\x18\x0A\x14UNFILLED_IMPRESSIONS\x10-\x12\x14\x0A\x0FUNIQUE_VISITORS\x10\xA1\x03\x12\$\x0A\x1FUNLOADED_IMPRESSIONS_DUE_TO_CPU\x10\x98\x03\x12(\x0A#UNLOADED_IMPRESSIONS_DUE_TO_NETWORK\x10\x96\x03\x12\x19\x0A\x15UNMATCHED_AD_REQUESTS\x10+\x12\"\x0A\x1DUNVIEWED_REASON_OTHER_PERCENT\x10\xA6\x04\x128\x0A3UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT\x10\xA9\x04\x12;\x0A6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT\x10\xA7\x04\x12;\x0A6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT\x10\xA8\x04\x12<\x0A7UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT\x10\xA5\x04\x12(\x0A#USER_ENGAGEMENT_DURATION_IN_SECONDS\x10\xF0\x01\x12-\x0A(USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE\x10\xE6\x03\x129\x0A4USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT\x10\xE7\x03\x126\x0A1USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN\x10\xE8\x03\x12&\x0A!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\x10\xE9\x03\x12(\x0A#USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN\x10\xEB\x03\x12#\x0A\x1EUSER_MESSAGES_IDFA_ATT_CONSENT\x10\xEC\x03\x12(\x0A#USER_MESSAGES_IDFA_ATT_CONSENT_RATE\x10\xED\x03\x12+\x0A&USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT\x10\xEE\x03\x12(\x0A#USER_MESSAGES_IDFA_ATT_DECLINE_RATE\x10\xEF\x03\x12(\x0A#USER_MESSAGES_IDFA_EXPLAINERS_SHOWN\x10\xF0\x03\x12*\x0A%USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN\x10\xF1\x03\x12#\x0A\x1EUSER_MESSAGES_IDFA_NO_DECISION\x10\xF2\x03\x12*\x0A&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\x10y\x122\x0A.USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\x10z\x12+\x0A&USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS\x10\xF3\x03\x12*\x0A%USER_MESSAGES_TOTAL_ESTIMATED_REVENUE\x10\xF4\x03\x12&\x0A!USER_MESSAGES_UPTC_MESSAGES_SHOWN\x10\xF5\x03\x125\x0A0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\x10\xF6\x03\x12+\x0A&USER_MESSAGES_US_STATES_MESSAGES_SHOWN\x10\xEA\x03\x12/\x0A*USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS\x10\xCA\x04\x12\x1A\x0A\x15VIDEO_ERROR_100_COUNT\x10\xB4\x01\x12\x1A\x0A\x15VIDEO_ERROR_101_COUNT\x10\xB5\x01\x12\x1A\x0A\x15VIDEO_ERROR_102_COUNT\x10\xB6\x01\x12\x1A\x0A\x15VIDEO_ERROR_200_COUNT\x10\xB7\x01\x12\x1A\x0A\x15VIDEO_ERROR_201_COUNT\x10\xB8\x01\x12\x1A\x0A\x15VIDEO_ERROR_202_COUNT\x10\xB9\x01\x12\x1A\x0A\x15VIDEO_ERROR_203_COUNT\x10\xBA\x01\x12\x1A\x0A\x15VIDEO_ERROR_300_COUNT\x10\xBB\x01\x12\x1A\x0A\x15VIDEO_ERROR_301_COUNT\x10\xBC\x01\x12\x1A\x0A\x15VIDEO_ERROR_302_COUNT\x10\xBD\x01\x12\x1A\x0A\x15VIDEO_ERROR_303_COUNT\x10\xBE\x01\x12\x1A\x0A\x15VIDEO_ERROR_400_COUNT\x10\xBF\x01\x12\x1A\x0A\x15VIDEO_ERROR_401_COUNT\x10\xC0\x01\x12\x1A\x0A\x15VIDEO_ERROR_402_COUNT\x10\xC1\x01\x12\x1A\x0A\x15VIDEO_ERROR_403_COUNT\x10\xC2\x01\x12\x1A\x0A\x15VIDEO_ERROR_405_COUNT\x10\xC3\x01\x12\x1A\x0A\x15VIDEO_ERROR_406_COUNT\x10\xC4\x01\x12\x1A\x0A\x15VIDEO_ERROR_407_COUNT\x10\xC5\x01\x12\x1A\x0A\x15VIDEO_ERROR_408_COUNT\x10\xC6\x01\x12\x1A\x0A\x15VIDEO_ERROR_409_COUNT\x10\xC7\x01\x12\x1A\x0A\x15VIDEO_ERROR_410_COUNT\x10\xC8\x01\x12\x1A\x0A\x15VIDEO_ERROR_500_COUNT\x10\xC9\x01\x12\x1A\x0A\x15VIDEO_ERROR_501_COUNT\x10\xCA\x01\x12\x1A\x0A\x15VIDEO_ERROR_502_COUNT\x10\xCB\x01\x12\x1A\x0A\x15VIDEO_ERROR_503_COUNT\x10\xCC\x01\x12\x1A\x0A\x15VIDEO_ERROR_600_COUNT\x10\xCD\x01\x12\x1A\x0A\x15VIDEO_ERROR_601_COUNT\x10\xCE\x01\x12\x1A\x0A\x15VIDEO_ERROR_602_COUNT\x10\xCF\x01\x12\x1A\x0A\x15VIDEO_ERROR_603_COUNT\x10\xD0\x01\x12\x1A\x0A\x15VIDEO_ERROR_604_COUNT\x10\xD1\x01\x12\x1A\x0A\x15VIDEO_ERROR_900_COUNT\x10\xD2\x01\x12\x1A\x0A\x15VIDEO_ERROR_901_COUNT\x10\xD3\x01\x12.\x0A*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\x10\\\x12\x1F\x0A\x1BVIDEO_INTERACTION_COLLAPSES\x10]\x12\x1D\x0A\x19VIDEO_INTERACTION_EXPANDS\x10_\x12\"\x0A\x1EVIDEO_INTERACTION_FULL_SCREENS\x10`\x12\x1B\x0A\x17VIDEO_INTERACTION_MUTES\x10a\x12\x1C\x0A\x18VIDEO_INTERACTION_PAUSES\x10b\x12\x1D\x0A\x19VIDEO_INTERACTION_RESUMES\x10c\x12\x1D\x0A\x19VIDEO_INTERACTION_REWINDS\x10d\x12\x1D\x0A\x19VIDEO_INTERACTION_UNMUTES\x10e\x12!\x0A\x1DVIDEO_INTERACTION_VIDEO_SKIPS\x10f\x12\$\x0A\x1FVIDEO_MONETIZABLE_CONTENT_VIEWS\x10\xD9\x04\x12\$\x0A\x1FVIDEO_REAL_TIME_CREATIVE_SERVES\x10\x8B\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_100_COUNT\x10\x8F\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_101_COUNT\x10\x90\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_102_COUNT\x10\x91\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_200_COUNT\x10\x92\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_201_COUNT\x10\x93\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_202_COUNT\x10\x94\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_203_COUNT\x10\x95\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_300_COUNT\x10\x96\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_301_COUNT\x10\x97\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_302_COUNT\x10\x98\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_303_COUNT\x10\x99\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_400_COUNT\x10\x9A\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_401_COUNT\x10\x9B\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_402_COUNT\x10\x9C\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_403_COUNT\x10\x9D\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_405_COUNT\x10\x9E\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_406_COUNT\x10\x9F\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_407_COUNT\x10\xA0\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_408_COUNT\x10\xA1\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_409_COUNT\x10\xA2\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_410_COUNT\x10\xA3\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_500_COUNT\x10\xA4\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_501_COUNT\x10\xA5\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_502_COUNT\x10\xA6\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_503_COUNT\x10\xA7\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_600_COUNT\x10\xA8\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_601_COUNT\x10\xA9\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_602_COUNT\x10\xAA\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_603_COUNT\x10\xAB\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_604_COUNT\x10\xAC\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_900_COUNT\x10\xAD\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_901_COUNT\x10\xAE\x01\x12 \x0A\x1BVIDEO_REAL_TIME_IMPRESSIONS\x10\x8A\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_MATCHED_QUERIES\x10\x8C\x01\x12&\x0A!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\x10\xAF\x01\x12\"\x0A\x1DVIDEO_REAL_TIME_TOTAL_QUERIES\x10\x8E\x01\x12&\x0A!VIDEO_REAL_TIME_UNMATCHED_QUERIES\x10\x8D\x01\x12-\x0A(VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END\x10\x97\x02\x12/\x0A*VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START\x10\x98\x02\x12@\x0A;VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK\x10\x99\x02\x12?\x0A:VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_SUBPOD\x10\x9A\x02\x124\x0A/VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK\x10\x9B\x02\x123\x0A.VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_SUBPOD\x10\x9C\x02\x12<\x0A7VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK\x10\x9D\x02\x12;\x0A6VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_SUBPOD\x10\x9E\x02\x12A\x0A\x12\x13\x0A\x0EAD_UNIT_STATUS\x10\xCE\x01\x12\x18\x0A\x13AD_UNIT_STATUS_NAME\x10\xCF\x01\x12\x16\x0A\x11AGENCY_LEVEL_1_ID\x10\xB5\x04\x12\x18\x0A\x13AGENCY_LEVEL_1_NAME\x10\xB6\x04\x12\x16\x0A\x11AGENCY_LEVEL_2_ID\x10\xB7\x04\x12\x18\x0A\x13AGENCY_LEVEL_2_NAME\x10\xB8\x04\x12\x16\x0A\x11AGENCY_LEVEL_3_ID\x10\xB9\x04\x12\x18\x0A\x13AGENCY_LEVEL_3_NAME\x10\xBA\x04\x12\x10\x0A\x0BAGE_BRACKET\x10\xFC\x03\x12\x15\x0A\x10AGE_BRACKET_NAME\x10\xC6\x04\x12\x1A\x0A\x15ANALYTICS_PROPERTY_ID\x10\xDD\x05\x12\x1C\x0A\x17ANALYTICS_PROPERTY_NAME\x10\xFF\x05\x12-\x0A(APP_TRACKING_TRANSPARENCY_CONSENT_STATUS\x10\xBA\x03\x122\x0A-APP_TRACKING_TRANSPARENCY_CONSENT_STATUS_NAME\x10\xBB\x03\x12\x10\x0A\x0BAPP_VERSION\x10\x88\x03\x12\x19\x0A\x14AUCTION_PACKAGE_DEAL\x10\xC3\x04\x12\x1C\x0A\x17AUCTION_PACKAGE_DEAL_ID\x10\xBB\x04\x12\x1E\x0A\x19AUDIENCE_SEGMENT_BILLABLE\x10\xD2\x04\x12&\x0A!AUDIENCE_SEGMENT_DATA_PROVIDER_ID\x10\xE5\x04\x12(\x0A#AUDIENCE_SEGMENT_DATA_PROVIDER_NAME\x10\xE6\x04\x12!\x0A\x1CAUDIENCE_SEGMENT_ID_BILLABLE\x10\xD3\x04\x12!\x0A\x1CAUDIENCE_SEGMENT_ID_TARGETED\x10\xC8\x04\x12\x1E\x0A\x19AUDIENCE_SEGMENT_TARGETED\x10\xC9\x04\x12.\x0A)AUDIENCE_SEGMENT_TARGETED_AD_ID_USER_SIZE\x10\xDD\x04\x124\x0A/AUDIENCE_SEGMENT_TARGETED_AMAZON_FIRE_USER_SIZE\x10\xDE\x04\x123\x0A.AUDIENCE_SEGMENT_TARGETED_ANDROID_TV_USER_SIZE\x10\xDF\x04\x121\x0A,AUDIENCE_SEGMENT_TARGETED_APPLE_TV_USER_SIZE\x10\xE0\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_IDFA_USER_SIZE\x10\xE1\x04\x123\x0A.AUDIENCE_SEGMENT_TARGETED_MOBILE_WEB_USER_SIZE\x10\xE2\x04\x124\x0A/AUDIENCE_SEGMENT_TARGETED_PLAYSTATION_USER_SIZE\x10\xE3\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_PPID_USER_SIZE\x10\xE4\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_ROKU_USER_SIZE\x10\xE7\x04\x123\x0A.AUDIENCE_SEGMENT_TARGETED_SAMSUNG_TV_USER_SIZE\x10\xE8\x04\x12#\x0A\x1EAUDIENCE_SEGMENT_TARGETED_SIZE\x10\xEA\x04\x12%\x0A AUDIENCE_SEGMENT_TARGETED_STATUS\x10\xF4\x04\x12*\x0A%AUDIENCE_SEGMENT_TARGETED_STATUS_NAME\x10\xE9\x04\x12-\x0A(AUDIENCE_SEGMENT_TARGETED_XBOX_USER_SIZE\x10\xEB\x04\x12\x1B\x0A\x16AUTO_REFRESHED_TRAFFIC\x10\xA5\x03\x12 \x0A\x1BAUTO_REFRESHED_TRAFFIC_NAME\x10\xA6\x03\x12\x18\x0A\x13BIDDER_ENCRYPTED_ID\x10\xED\x03\x12\x10\x0A\x0BBIDDER_NAME\x10\xEE\x03\x12\x0E\x0A\x09BID_RANGE\x10\xA7\x05\x12\x19\x0A\x14BID_REJECTION_REASON\x10\xD7\x04\x12\x1E\x0A\x19BID_REJECTION_REASON_NAME\x10\xD8\x04\x12\x12\x0A\x0DBRANDING_TYPE\x10\xFF\x02\x12\x17\x0A\x12BRANDING_TYPE_NAME\x10\x80\x03\x12\x14\x0A\x10BROWSER_CATEGORY\x10w\x12\x19\x0A\x15BROWSER_CATEGORY_NAME\x10x\x12\x0F\x0A\x0ABROWSER_ID\x10\xEB\x01\x12\x11\x0A\x0CBROWSER_NAME\x10\xEC\x01\x12\x15\x0A\x10BUYER_NETWORK_ID\x10\xC0\x03\x12\x17\x0A\x12BUYER_NETWORK_NAME\x10\xC1\x03\x12!\x0A\x1CCALLOUT_STATUS_CATEGORY_NAME\x10\xCD\x04\x12\x0F\x0A\x0ACARRIER_ID\x10\xF1\x02\x12\x11\x0A\x0CCARRIER_NAME\x10\xF0\x02\x12\x0C\x0A\x07CHANNEL\x10\xF5\x03\x12\x17\x0A\x12CHILD_NETWORK_CODE\x10\x9E\x04\x12\x15\x0A\x10CHILD_NETWORK_ID\x10\xA0\x04\x12\x17\x0A\x12CHILD_PARTNER_NAME\x10\x9F\x04\x12\x0C\x0A\x07CITY_ID\x10\xCB\x03\x12\x0E\x0A\x09CITY_NAME\x10\xC4\x03\x12\x1D\x0A\x18CLASSIFIED_ADVERTISER_ID\x10\x85\x01\x12\x1F\x0A\x1ACLASSIFIED_ADVERTISER_NAME\x10\x86\x01\x12\x18\x0A\x13CLASSIFIED_BRAND_ID\x10\xF3\x01\x12\x1A\x0A\x15CLASSIFIED_BRAND_NAME\x10\xF4\x01\x12\x16\x0A\x11CONTENT_BUNDLE_ID\x10\xCC\x03\x12\x18\x0A\x13CONTENT_BUNDLE_NAME\x10\xCD\x03\x12)\x0A\$CONTENT_CMS_METADATA_KV_NAMESPACE_ID\x10\xCE\x03\x12+\x0A&CONTENT_CMS_METADATA_KV_NAMESPACE_NAME\x10\xCF\x03\x12\x15\x0A\x10CONTENT_CMS_NAME\x10\x83\x05\x12\x19\x0A\x14CONTENT_CMS_VIDEO_ID\x10\x84\x05\x12\x0F\x0A\x0ACONTENT_ID\x10\xF6\x01\x12\x1D\x0A\x18CONTENT_MAPPING_PRESENCE\x10\xDB\x05\x12\"\x0A\x1DCONTENT_MAPPING_PRESENCE_NAME\x10\xDC\x05\x12\x11\x0A\x0CCONTENT_NAME\x10\xF7\x01\x12\x0E\x0A\x09CONTINENT\x10\xD5\x03\x12\x13\x0A\x0ECONTINENT_NAME\x10\xD6\x03\x12\x11\x0A\x0CCOUNTRY_CODE\x10\xD2\x03\x12\x0E\x0A\x0ACOUNTRY_ID\x10\x0B\x12\x10\x0A\x0CCOUNTRY_NAME\x10\x0C\x12\x1A\x0A\x15CREATIVE_BILLING_TYPE\x10\xEE\x02\x12\x1F\x0A\x1ACREATIVE_BILLING_TYPE_NAME\x10\xEF\x02\x12\x1F\x0A\x1ACREATIVE_CLICK_THROUGH_URL\x10\xAE\x01\x12\x10\x0A\x0BCREATIVE_ID\x10\x8A\x01\x12\x12\x0A\x0DCREATIVE_NAME\x10\x8B\x01\x12\x1D\x0A\x18CREATIVE_OR_CREATIVE_SET\x10\xAA\x05\x12\"\x0A\x1DCREATIVE_OR_CREATIVE_SET_NAME\x10\xAB\x05\x12 \x0A\x1BCREATIVE_POLICIES_FILTERING\x10\xC7\x05\x12%\x0A CREATIVE_POLICIES_FILTERING_NAME\x10\xC8\x05\x12#\x0A\x1ECREATIVE_PROTECTIONS_FILTERING\x10\xC0\x05\x12(\x0A#CREATIVE_PROTECTIONS_FILTERING_NAME\x10\xC1\x05\x12\x1B\x0A\x16CREATIVE_SET_ROLE_TYPE\x10\xAE\x05\x12 \x0A\x1BCREATIVE_SET_ROLE_TYPE_NAME\x10\xAF\x05\x12%\x0A CREATIVE_SSL_COMPLIANCE_OVERRIDE\x10\x90\x06\x12*\x0A%CREATIVE_SSL_COMPLIANCE_OVERRIDE_NAME\x10\x92\x06\x12\x1D\x0A\x18CREATIVE_SSL_SCAN_RESULT\x10\x91\x06\x12\"\x0A\x1DCREATIVE_SSL_SCAN_RESULT_NAME\x10\x93\x06\x12!\x0A\x1CCREATIVE_TARGET_AD_UNIT_SIZE\x10\x82\x06\x12\x18\x0A\x13CREATIVE_TECHNOLOGY\x10\x94\x01\x12\x1D\x0A\x18CREATIVE_TECHNOLOGY_NAME\x10\x95\x01\x12 \x0A\x1BCREATIVE_THIRD_PARTY_VENDOR\x10\xE9\x02\x12\x12\x0A\x0DCREATIVE_TYPE\x10\xD8\x02\x12\x17\x0A\x12CREATIVE_TYPE_NAME\x10\xD9\x02\x12\x17\x0A\x12CREATIVE_VENDOR_ID\x10\xC2\x05\x12\x19\x0A\x14CREATIVE_VENDOR_NAME\x10\xC3\x05\x12(\x0A#CREATIVE_VIDEO_REDIRECT_THIRD_PARTY\x10\xB2\x04\x12\x0F\x0A\x0ACURATOR_ID\x10\xBC\x04\x12\x11\x0A\x0CCURATOR_NAME\x10\xBD\x04\x12\x14\x0A\x0FCUSTOM_EVENT_ID\x10\xE1\x05\x12\x16\x0A\x11CUSTOM_EVENT_NAME\x10\xDF\x05\x12\x16\x0A\x11CUSTOM_EVENT_TYPE\x10\xE0\x05\x12\x1B\x0A\x16CUSTOM_EVENT_TYPE_NAME\x10\xE2\x05\x12\x13\x0A\x0ECUSTOM_SPOT_ID\x10\xA7\x03\x12\x15\x0A\x10CUSTOM_SPOT_NAME\x10\xA8\x03\x12\x08\x0A\x04DATE\x10\x03\x12\x0F\x0A\x0BDAY_OF_WEEK\x10\x04\x12\x12\x0A\x0DDEAL_BUYER_ID\x10\xF0\x01\x12\x14\x0A\x0FDEAL_BUYER_NAME\x10\xF1\x01\x12\x0C\x0A\x07DEAL_ID\x10\xB4\x03\x12\x10\x0A\x0BDEAL_ID_ALL\x10\x8D\x06\x12\x0E\x0A\x09DEAL_NAME\x10\xB5\x03\x12\x1F\x0A\x1ADECLARED_ADVERTISER_DOMAIN\x10\x9C\x06\x12\x1F\x0A\x1ADELIVERED_SECURE_SIGNAL_ID\x10\xB5\x02\x12!\x0A\x1CDELIVERED_SECURE_SIGNAL_NAME\x10\xB6\x02\x12\x12\x0A\x0EDEMAND_CHANNEL\x10\x09\x12\x17\x0A\x13DEMAND_CHANNEL_NAME\x10\x0A\x12\x12\x0A\x0DDEMAND_SOURCE\x10\xD0\x04\x12\x16\x0A\x11DEMAND_SOURCE_ALL\x10\x8E\x06\x12\x17\x0A\x12DEMAND_SOURCE_NAME\x10\xD1\x04\x12\x15\x0A\x11DEMAND_SUBCHANNEL\x10\x16\x12\x1A\x0A\x16DEMAND_SUBCHANNEL_NAME\x10\x17\x12\x0B\x0A\x06DEVICE\x10\xE2\x01\x12\x13\x0A\x0FDEVICE_CATEGORY\x10\x0F\x12\x18\x0A\x14DEVICE_CATEGORY_NAME\x10\x10\x12\x1B\x0A\x16DEVICE_MANUFACTURER_ID\x10\x8D\x04\x12\x1D\x0A\x18DEVICE_MANUFACTURER_NAME\x10\x8E\x04\x12\x14\x0A\x0FDEVICE_MODEL_ID\x10\x8F\x04\x12\x16\x0A\x11DEVICE_MODEL_NAME\x10\x90\x04\x12\x14\x0A\x0BDEVICE_NAME\x10\xE1\x01\x1A\x02\x08\x01\x12\x10\x0A\x0BDSP_SEAT_ID\x10\xB4\x04\x12\x1C\x0A\x17DYNAMIC_ALLOCATION_TYPE\x10\xF6\x03\x12!\x0A\x1CDYNAMIC_ALLOCATION_TYPE_NAME\x10\xF7\x03\x12\x11\x0A\x0CESP_DELIVERY\x10\xEF\x04\x12\x16\x0A\x11ESP_DELIVERY_NAME\x10\xF0\x04\x12\x11\x0A\x0CESP_PRESENCE\x10\xF1\x04\x12\x16\x0A\x11ESP_PRESENCE_NAME\x10\xF2\x04\x12\x1D\x0A\x18EXCHANGE_BIDDING_DEAL_ID\x10\xCB\x05\x12\x1F\x0A\x1AEXCHANGE_BIDDING_DEAL_TYPE\x10\xCA\x05\x12\$\x0A\x1FEXCHANGE_BIDDING_DEAL_TYPE_NAME\x10\xD3\x05\x12\$\x0A\x1FEXCHANGE_THIRD_PARTY_COMPANY_ID\x10\xB9\x01\x12&\x0A!EXCHANGE_THIRD_PARTY_COMPANY_NAME\x10\xBA\x01\x12\x1F\x0A\x1AFIRST_LOOK_PRICING_RULE_ID\x10\xF8\x01\x12!\x0A\x1CFIRST_LOOK_PRICING_RULE_NAME\x10\xF9\x01\x12\x1A\x0A\x15FIRST_PARTY_ID_STATUS\x10\x94\x03\x12\x1F\x0A\x1AFIRST_PARTY_ID_STATUS_NAME\x10\x95\x03\x12\x0B\x0A\x06GENDER\x10\xFD\x03\x12\x10\x0A\x0BGENDER_NAME\x10\xC7\x04\x12\x1F\x0A\x1AGOOGLE_ANALYTICS_STREAM_ID\x10\x87\x04\x12!\x0A\x1CGOOGLE_ANALYTICS_STREAM_NAME\x10\x88\x04\x12\x19\x0A\x14HBT_YIELD_PARTNER_ID\x10\x93\x05\x12\x1B\x0A\x16HBT_YIELD_PARTNER_NAME\x10\x94\x05\x12#\x0A\x1EHEADER_BIDDER_INTEGRATION_TYPE\x10\xCE\x05\x12(\x0A#HEADER_BIDDER_INTEGRATION_TYPE_NAME\x10\xCF\x05\x12\x08\x0A\x04HOUR\x10d\x12\x1F\x0A\x1AIMPRESSION_COUNTING_METHOD\x10\xC1\x04\x12\$\x0A\x1FIMPRESSION_COUNTING_METHOD_NAME\x10\xC2\x04\x12\x15\x0A\x10INTERACTION_TYPE\x10\xDF\x01\x12\x1A\x0A\x15INTERACTION_TYPE_NAME\x10\xE0\x01\x12\x0D\x0A\x08INTEREST\x10\xFE\x03\x12\x14\x0A\x10INVENTORY_FORMAT\x10\x11\x12\x19\x0A\x15INVENTORY_FORMAT_NAME\x10\x12\x12\"\x0A\x1DINVENTORY_SHARE_ASSIGNMENT_ID\x10\x88\x05\x12\$\x0A\x1FINVENTORY_SHARE_ASSIGNMENT_NAME\x10\x89\x05\x12\x1C\x0A\x17INVENTORY_SHARE_OUTCOME\x10\xDB\x04\x12!\x0A\x1CINVENTORY_SHARE_OUTCOME_NAME\x10\xDC\x04\x12&\x0A!INVENTORY_SHARE_PARTNER_AD_SERVER\x10\x8C\x05\x12+\x0A&INVENTORY_SHARE_PARTNER_AD_SERVER_NAME\x10\x8D\x05\x12)\x0A\$INVENTORY_SHARE_TARGET_SHARE_PERCENT\x10\x8E\x05\x12\x19\x0A\x14INVENTORY_SHARE_TYPE\x10\x8A\x05\x12\x1E\x0A\x19INVENTORY_SHARE_TYPE_NAME\x10\x8B\x05\x12\x12\x0A\x0EINVENTORY_TYPE\x10\x13\x12\x17\x0A\x13INVENTORY_TYPE_NAME\x10\x14\x12\x12\x0A\x0DIS_ADX_DIRECT\x10\xFE\x02\x12\x19\x0A\x14IS_CURATION_TARGETED\x10\xBE\x04\x12\x0F\x0A\x0AIS_DROPPED\x10\xD0\x03\x12\x17\x0A\x12IS_FIRST_LOOK_DEAL\x10\x91\x03\x12\x12\x0A\x0DKEY_VALUES_ID\x10\xD6\x01\x12\x14\x0A\x0FKEY_VALUES_NAME\x10\xD7\x01\x12\x13\x0A\x0EKEY_VALUES_SET\x10\xC9\x05\x12\x18\x0A\x13LANDING_PAGE_DOMAIN\x10\xF2\x01\x12\x15\x0A\x10LINE_ITEM_AGENCY\x10\x97\x05\x12\x17\x0A\x12LINE_ITEM_ARCHIVED\x10\xBC\x01\x12(\x0A#LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS\x10\xB6\x05\x12(\x0A#LINE_ITEM_COMPANION_DELIVERY_OPTION\x10\xCC\x01\x12-\x0A(LINE_ITEM_COMPANION_DELIVERY_OPTION_NAME\x10\xCD\x01\x12\x1E\x0A\x19LINE_ITEM_COMPUTED_STATUS\x10\xFA\x01\x12#\x0A\x1ELINE_ITEM_COMPUTED_STATUS_NAME\x10\xFB\x01\x12!\x0A\x1DLINE_ITEM_CONTRACTED_QUANTITY\x10\\\x12\x1B\x0A\x17LINE_ITEM_COST_PER_UNIT\x10U\x12\x18\x0A\x13LINE_ITEM_COST_TYPE\x10\xD4\x01\x12\x1D\x0A\x18LINE_ITEM_COST_TYPE_NAME\x10\xD5\x01\x12 \x0A\x1BLINE_ITEM_CREATIVE_END_DATE\x10\xB0\x01\x12%\x0A LINE_ITEM_CREATIVE_ROTATION_TYPE\x10\xBD\x01\x12*\x0A%LINE_ITEM_CREATIVE_ROTATION_TYPE_NAME\x10\xBE\x01\x12\"\x0A\x1DLINE_ITEM_CREATIVE_START_DATE\x10\xAF\x01\x12\x1C\x0A\x17LINE_ITEM_CURRENCY_CODE\x10\xB4\x01\x12 \x0A\x1CLINE_ITEM_DELIVERY_INDICATOR\x10W\x12!\x0A\x1CLINE_ITEM_DELIVERY_RATE_TYPE\x10\xBF\x01\x12&\x0A!LINE_ITEM_DELIVERY_RATE_TYPE_NAME\x10\xC0\x01\x12 \x0A\x1BLINE_ITEM_DISCOUNT_ABSOLUTE\x10\xC3\x01\x12\"\x0A\x1DLINE_ITEM_DISCOUNT_PERCENTAGE\x10\xC4\x01\x12\x16\x0A\x12LINE_ITEM_END_DATE\x10Q\x12\x1B\x0A\x17LINE_ITEM_END_DATE_TIME\x10S\x12\x1F\x0A\x1ALINE_ITEM_ENVIRONMENT_TYPE\x10\xC9\x01\x12\$\x0A\x1FLINE_ITEM_ENVIRONMENT_TYPE_NAME\x10\xCA\x01\x12\x1E\x0A\x1ALINE_ITEM_EXTERNAL_DEAL_ID\x10a\x12\x19\x0A\x15LINE_ITEM_EXTERNAL_ID\x10V\x12\x1C\x0A\x17LINE_ITEM_FREQUENCY_CAP\x10\x80\x02\x12\x10\x0A\x0CLINE_ITEM_ID\x10\x01\x12\x15\x0A\x10LINE_ITEM_LABELS\x10\x9B\x05\x12\x18\x0A\x13LINE_ITEM_LABEL_IDS\x10\x99\x05\x12#\x0A\x1ELINE_ITEM_LAST_MODIFIED_BY_APP\x10\xB5\x01\x12\x1D\x0A\x19LINE_ITEM_LIFETIME_CLICKS\x10_\x12\"\x0A\x1ELINE_ITEM_LIFETIME_IMPRESSIONS\x10^\x12+\x0A'LINE_ITEM_LIFETIME_VIEWABLE_IMPRESSIONS\x10`\x12\x16\x0A\x12LINE_ITEM_MAKEGOOD\x10Y\x12\x12\x0A\x0ELINE_ITEM_NAME\x10\x02\x12\$\x0A LINE_ITEM_NON_CPD_BOOKED_REVENUE\x10b\x12\x19\x0A\x15LINE_ITEM_OPTIMIZABLE\x10Z\x12\x18\x0A\x13LINE_ITEM_PO_NUMBER\x10\x9D\x05\x12 \x0A\x1BLINE_ITEM_PRIMARY_GOAL_TYPE\x10\xD2\x01\x12%\x0A LINE_ITEM_PRIMARY_GOAL_TYPE_NAME\x10\xD3\x01\x12)\x0A%LINE_ITEM_PRIMARY_GOAL_UNITS_ABSOLUTE\x10]\x12,\x0A'LINE_ITEM_PRIMARY_GOAL_UNITS_PERCENTAGE\x10\x8C\x03\x12%\x0A LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE\x10\xD0\x01\x12*\x0A%LINE_ITEM_PRIMARY_GOAL_UNIT_TYPE_NAME\x10\xD1\x01\x12\x16\x0A\x12LINE_ITEM_PRIORITY\x10\x18\x12!\x0A\x1CLINE_ITEM_RESERVATION_STATUS\x10\xB0\x02\x12&\x0A!LINE_ITEM_RESERVATION_STATUS_NAME\x10\xB1\x02\x12\x1A\x0A\x15LINE_ITEM_SALESPERSON\x10\x9F\x05\x12\$\x0A\x1FLINE_ITEM_SECONDARY_SALESPEOPLE\x10\xA1\x05\x12\$\x0A\x1FLINE_ITEM_SECONDARY_TRAFFICKERS\x10\xA3\x05\x12\x18\x0A\x14LINE_ITEM_START_DATE\x10R\x12\x1D\x0A\x19LINE_ITEM_START_DATE_TIME\x10T\x12\x19\x0A\x14LINE_ITEM_TRAFFICKER\x10\xA5\x05\x12\x13\x0A\x0ELINE_ITEM_TYPE\x10\xC1\x01\x12\x18\x0A\x13LINE_ITEM_TYPE_NAME\x10\xC2\x01\x12\x1C\x0A\x17LINE_ITEM_UNLIMITED_END\x10\xBB\x01\x12!\x0A\x1DLINE_ITEM_VALUE_COST_PER_UNIT\x10X\x12 \x0A\x1BLINE_ITEM_WEB_PROPERTY_CODE\x10\xB3\x01\x12!\x0A\x1CMASTER_COMPANION_CREATIVE_ID\x10\x8C\x01\x12#\x0A\x1EMASTER_COMPANION_CREATIVE_NAME\x10\x8D\x01\x12\x13\x0A\x0EMEDIATION_TYPE\x10\xBD\x05\x12\x18\x0A\x13MEDIATION_TYPE_NAME\x10\xF2\x05\x12\x1F\x0A\x1AMEDIATION_YIELD_PARTNER_ID\x10\x95\x05\x12!\x0A\x1CMEDIATION_YIELD_PARTNER_NAME\x10\x96\x05\x12\x0D\x0A\x08METRO_ID\x10\xC5\x03\x12\x0F\x0A\x0AMETRO_NAME\x10\xC6\x03\x12\x14\x0A\x0FMOBILE_APP_FREE\x10\x80\x01\x12\x18\x0A\x13MOBILE_APP_ICON_URL\x10\x81\x01\x12\x11\x0A\x0DMOBILE_APP_ID\x10{\x12\x13\x0A\x0FMOBILE_APP_NAME\x10\x7F\x12 \x0A\x1BMOBILE_APP_OWNERSHIP_STATUS\x10\xB7\x02\x12%\x0A MOBILE_APP_OWNERSHIP_STATUS_NAME\x10\xB8\x02\x12\x14\x0A\x10MOBILE_APP_STORE\x10}\x12\x1A\x0A\x15MOBILE_APP_STORE_NAME\x10\xF5\x01\x12\x19\x0A\x15MOBILE_INVENTORY_TYPE\x10c\x12\x1E\x0A\x1AMOBILE_INVENTORY_TYPE_NAME\x10\x15\x12\x19\x0A\x14MOBILE_RENDERING_SDK\x10\x86\x05\x12\x1E\x0A\x19MOBILE_RENDERING_SDK_NAME\x10\x87\x05\x12\x1D\x0A\x18MOBILE_SDK_MAJOR_VERSION\x10\xB4\x05\x12\x1D\x0A\x18MOBILE_SDK_MINOR_VERSION\x10\xB5\x05\x12\x1C\x0A\x17MOBILE_SDK_VERSION_NAME\x10\x82\x01\x12\x0E\x0A\x0AMONTH_YEAR\x10\x06\x12\x18\x0A\x13NATIVE_AD_FORMAT_ID\x10\xFF\x01\x12\x1A\x0A\x15NATIVE_AD_FORMAT_NAME\x10\xFE\x01\x12\x14\x0A\x0FNATIVE_STYLE_ID\x10\xFD\x01\x12\x16\x0A\x11NATIVE_STYLE_NAME\x10\xFC\x01\x12\x19\x0A\x14NIELSEN_DEMOGRAPHICS\x10\xB7\x05\x12\x1E\x0A\x19NIELSEN_DEMOGRAPHICS_NAME\x10\x80\x06\x12\x13\x0A\x0ENIELSEN_DEVICE\x10\xB8\x05\x12\x18\x0A\x13NIELSEN_DEVICE_NAME\x10\xB9\x05\x12\x16\x0A\x11NIELSEN_IN_TARGET\x10\x81\x06\x12\x1D\x0A\x18NIELSEN_RESTATEMENT_DATE\x10\xBA\x05\x12\x14\x0A\x0FNIELSEN_SEGMENT\x10\xBB\x05\x12\x15\x0A\x10NIELSEN_SITE_URL\x10\xBC\x05\x12!\x0A\x1CNO_FILL_REASON_CATEGORY_NAME\x10\xCB\x04\x12\x13\x0A\x0ENUM_ADS_IN_POD\x10\xA4\x06\x12\x1D\x0A\x19OPERATING_SYSTEM_CATEGORY\x10u\x12\"\x0A\x1EOPERATING_SYSTEM_CATEGORY_NAME\x10v\x12 \x0A\x1BOPERATING_SYSTEM_VERSION_ID\x10\xEE\x01\x12\"\x0A\x1DOPERATING_SYSTEM_VERSION_NAME\x10\xED\x01\x12\x16\x0A\x11OPTIMIZATION_TYPE\x10\xFF\x04\x12\x1B\x0A\x16OPTIMIZATION_TYPE_NAME\x10\x80\x05\x12\x11\x0A\x0CORDER_AGENCY\x10\x96\x01\x12\x14\x0A\x0FORDER_AGENCY_ID\x10\x97\x01\x12\x15\x0A\x10ORDER_BOOKED_CPC\x10\x98\x01\x12\x15\x0A\x10ORDER_BOOKED_CPM\x10\x99\x01\x12\x1A\x0A\x15ORDER_DELIVERY_STATUS\x10\xE7\x01\x12\x1F\x0A\x1AORDER_DELIVERY_STATUS_NAME\x10\xEF\x01\x12\x13\x0A\x0EORDER_END_DATE\x10\x9A\x01\x12\x18\x0A\x13ORDER_END_DATE_TIME\x10\x9B\x01\x12\x16\x0A\x11ORDER_EXTERNAL_ID\x10\x9C\x01\x12\x0C\x0A\x08ORDER_ID\x10\x07\x12\x11\x0A\x0CORDER_LABELS\x10\xAA\x01\x12\x14\x0A\x0FORDER_LABEL_IDS\x10\xAB\x01\x12\x1A\x0A\x15ORDER_LIFETIME_CLICKS\x10\x9E\x01\x12\x1F\x0A\x1AORDER_LIFETIME_IMPRESSIONS\x10\x9F\x01\x12\x0E\x0A\x0AORDER_NAME\x10\x08\x12\x14\x0A\x0FORDER_PO_NUMBER\x10\xA0\x01\x12\x17\x0A\x12ORDER_PROGRAMMATIC\x10\x9D\x01\x12\x16\x0A\x11ORDER_SALESPERSON\x10\xA1\x01\x12\x19\x0A\x14ORDER_SALESPERSON_ID\x10\xF5\x04\x12 \x0A\x1BORDER_SECONDARY_SALESPEOPLE\x10\xA4\x01\x12#\x0A\x1EORDER_SECONDARY_SALESPEOPLE_ID\x10\xA5\x01\x12 \x0A\x1BORDER_SECONDARY_TRAFFICKERS\x10\xA6\x01\x12#\x0A\x1EORDER_SECONDARY_TRAFFICKERS_ID\x10\xA7\x01\x12\x15\x0A\x10ORDER_START_DATE\x10\xA8\x01\x12\x1A\x0A\x15ORDER_START_DATE_TIME\x10\xA9\x01\x12\x15\x0A\x10ORDER_TRAFFICKER\x10\xA2\x01\x12\x18\x0A\x13ORDER_TRAFFICKER_ID\x10\xA3\x01\x12\x18\x0A\x13ORDER_UNLIMITED_END\x10\xCB\x01\x12\x0E\x0A\x09PAGE_PATH\x10\xFF\x03\x12 \x0A\x1BPAGE_TITLE_AND_SCREEN_CLASS\x10\x80\x04\x12\x1F\x0A\x1APAGE_TITLE_AND_SCREEN_NAME\x10\x81\x04\x12%\x0A PARTNER_MANAGEMENT_ASSIGNMENT_ID\x10\x91\x05\x12'\x0A\"PARTNER_MANAGEMENT_ASSIGNMENT_NAME\x10\x92\x05\x12\"\x0A\x1DPARTNER_MANAGEMENT_PARTNER_ID\x10\x8F\x05\x12\$\x0A\x1FPARTNER_MANAGEMENT_PARTNER_NAME\x10\x90\x05\x12\x10\x0A\x0CPLACEMENT_ID\x10q\x12\x15\x0A\x10PLACEMENT_ID_ALL\x10\x90\x01\x12\x12\x0A\x0EPLACEMENT_NAME\x10r\x12\x17\x0A\x12PLACEMENT_NAME_ALL\x10\x91\x01\x12\x15\x0A\x10PLACEMENT_STATUS\x10\xEA\x02\x12\x1A\x0A\x15PLACEMENT_STATUS_NAME\x10\xEC\x02\x12\x1E\x0A\x19PLACEMENT_STATUS_NAME_ALL\x10\xED\x02\x12\x13\x0A\x0EPOSTAL_CODE_ID\x10\xC7\x03\x12\x15\x0A\x10POSTAL_CODE_NAME\x10\xC8\x03\x12\x10\x0A\x0BPPID_STATUS\x10\x96\x03\x12\x15\x0A\x10PPID_STATUS_NAME\x10\x97\x03\x12!\x0A\x1CPREDICTED_VIEWABILITY_BUCKET\x10\xF9\x04\x12&\x0A!PREDICTED_VIEWABILITY_BUCKET_NAME\x10\xFA\x04\x12\x1F\x0A\x1APRESENTED_SECURE_SIGNAL_ID\x10\xEF\x03\x12!\x0A\x1CPRESENTED_SECURE_SIGNAL_NAME\x10\xF0\x03\x12\x14\x0A\x0FPRICING_RULE_ID\x10\x89\x03\x12\x16\x0A\x11PRICING_RULE_NAME\x10\x8A\x03\x12\$\x0A\x1FPRIMARY_PERSONALIZATION_ID_TYPE\x10\x98\x03\x12)\x0A\$PRIMARY_PERSONALIZATION_ID_TYPE_NAME\x10\x99\x03\x12\x18\x0A\x14PROGRAMMATIC_CHANNEL\x10\x0D\x12\x1D\x0A\x19PROGRAMMATIC_CHANNEL_NAME\x10\x0E\x128\x0A3PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_EXTERNAL_CODE\x10\x9A\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_IDS\x10\xA2\x04\x12/\x0A*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_NAME\x10\x9C\x03\x12/\x0A*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TIER\x10\x9D\x03\x12/\x0A*PUBLISHER_PROVIDED_SIGNALS_ALL_LEVELS_TYPE\x10\x9E\x03\x127\x0A2PUBLISHER_PROVIDED_SIGNALS_DELIVERED_EXTERNAL_CODE\x10\xA9\x03\x12-\x0A(PUBLISHER_PROVIDED_SIGNALS_DELIVERED_IDS\x10\xA1\x04\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_NAME\x10\xAB\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TIER\x10\xAC\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_DELIVERED_TYPE\x10\xAD\x03\x127\x0A2PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_EXTERNAL_CODE\x10\x9F\x03\x12,\x0A'PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_ID\x10\xA0\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_NAME\x10\xA1\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TIER\x10\xA2\x03\x12.\x0A)PUBLISHER_PROVIDED_SIGNALS_TOP_LEVEL_TYPE\x10\xA3\x03\x12/\x0A*PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_ID\x10\x88\x01\x121\x0A,PUBLISHER_PROVIDED_SIGNAL_DATA_PROVIDER_NAME\x10\x89\x01\x12\x0E\x0A\x09REGION_ID\x10\xC9\x03\x12\x10\x0A\x0BREGION_NAME\x10\xCA\x03\x12\"\x0A\x1DREJECTION_CLASS_CATEGORY_NAME\x10\xCF\x04\x12\x1B\x0A\x16RENDERED_CREATIVE_SIZE\x10\xD7\x02\x12\x17\x0A\x12REQUESTED_AD_SIZES\x10\xE0\x02\x12#\x0A\x1EREQUESTED_CREATIVE_ORIENTATION\x10\xBC\x06\x12(\x0A#REQUESTED_CREATIVE_ORIENTATION_NAME\x10\xBD\x06\x12\x11\x0A\x0CREQUEST_TYPE\x10\x92\x01\x12\x16\x0A\x11REQUEST_TYPE_NAME\x10\x93\x01\x12\x1C\x0A\x17REVENUE_VERIFICATION_ID\x10\x85\x05\x12\$\x0A\x1FSERVER_SIDE_UNWRAPPING_ELIGIBLE\x10\xD5\x04\x12\x18\x0A\x13SERVING_RESTRICTION\x10\xF7\x04\x12\x1D\x0A\x18SERVING_RESTRICTION_NAME\x10\xF8\x04\x12\x09\x0A\x04SITE\x10\x83\x03\x12\x11\x0A\x0CTARGETING_ID\x10\xE8\x01\x12\x13\x0A\x0ETARGETING_NAME\x10\xE9\x01\x12\x13\x0A\x0ETARGETING_TYPE\x10\x81\x03\x12\x18\x0A\x13TARGETING_TYPE_NAME\x10\x82\x03\x12#\x0A\x1ETARGETS_CUSTOMER_MATCHING_LIST\x10\x95\x06\x12\x1A\x0A\x15THIRD_PARTY_ID_STATUS\x10\x92\x03\x12\x1F\x0A\x1ATHIRD_PARTY_ID_STATUS_NAME\x10\x93\x03\x12\x12\x0A\x0DTOPICS_STATUS\x10\xF8\x03\x12\x17\x0A\x12TOPICS_STATUS_NAME\x10\xF9\x03\x12\x17\x0A\x12TOP_PRIVATE_DOMAIN\x10\xBC\x03\x12\x13\x0A\x0ETRAFFIC_SOURCE\x10\x84\x03\x12\x18\x0A\x13TRAFFIC_SOURCE_NAME\x10\x85\x03\x12\x08\x0A\x03URL\x10\xFA\x03\x12\x0B\x0A\x06URL_ID\x10\xFB\x03\x12\x19\x0A\x14USER_MESSAGES_CHOICE\x10\xBE\x05\x12\x1E\x0A\x19USER_MESSAGES_CHOICE_NAME\x10\xBF\x05\x12%\x0A USER_MESSAGES_ENTITLEMENT_SOURCE\x10\xFB\x04\x12*\x0A%USER_MESSAGES_ENTITLEMENT_SOURCE_NAME\x10\xFC\x04\x12/\x0A*USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_ID\x10\xFD\x04\x121\x0A,USER_MESSAGES_OPERATING_SYSTEM_CRITERIA_NAME\x10\xFE\x04\x12\x11\x0A\x0CVAST_VERSION\x10\xAA\x04\x12\x16\x0A\x11VAST_VERSION_NAME\x10\xAB\x04\x12\x18\x0A\x13VIDEO_AD_BREAK_TYPE\x10\xAC\x04\x12\x1D\x0A\x18VIDEO_AD_BREAK_TYPE_NAME\x10\xAD\x04\x12\x16\x0A\x11VIDEO_AD_DURATION\x10\xC2\x03\x12\x1A\x0A\x15VIDEO_AD_FORMATS_RULE\x10\xB1\x04\x12\x1D\x0A\x18VIDEO_AD_FORMATS_RULE_ID\x10\xB0\x04\x12\x1E\x0A\x19VIDEO_AD_REQUEST_DURATION\x10\xAE\x04\x12,\x0A'VIDEO_AD_REQUEST_DURATION_MIDPOINT_NAME\x10\xEF\x05\x12#\x0A\x1EVIDEO_AD_REQUEST_DURATION_NAME\x10\xAF\x04\x12\x1C\x0A\x17VIDEO_AD_REQUEST_SOURCE\x10\xB6\x03\x12!\x0A\x1CVIDEO_AD_REQUEST_SOURCE_NAME\x10\xB7\x03\x12\x12\x0A\x0DVIDEO_AD_TYPE\x10\xB0\x03\x12\x17\x0A\x12VIDEO_AD_TYPE_NAME\x10\xB1\x03\x12\x1F\x0A\x1AVIDEO_CONTINUOUS_PLAY_TYPE\x10\xD1\x05\x12\$\x0A\x1FVIDEO_CONTINUOUS_PLAY_TYPE_NAME\x10\xD2\x05\x12\x1C\x0A\x17VIDEO_FALLBACK_POSITION\x10\x92\x04\x12.\x0A)VIDEO_LIVE_STREAM_EVENT_AD_BREAK_DURATION\x10\xA3\x04\x12(\x0A#VIDEO_LIVE_STREAM_EVENT_AD_BREAK_ID\x10\xA4\x04\x12*\x0A%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_NAME\x10\xA5\x04\x12*\x0A%VIDEO_LIVE_STREAM_EVENT_AD_BREAK_TIME\x10\xA6\x04\x12\x1F\x0A\x1AVIDEO_LIVE_STREAM_EVENT_ID\x10\xA7\x04\x12!\x0A\x1CVIDEO_LIVE_STREAM_EVENT_NAME\x10\xA8\x04\x12\x1D\x0A\x18VIDEO_MEASUREMENT_SOURCE\x10\xD9\x04\x12\"\x0A\x1DVIDEO_MEASUREMENT_SOURCE_NAME\x10\xDA\x04\x12\x10\x0A\x0BVIDEO_PLCMT\x10\xAC\x01\x12\x15\x0A\x10VIDEO_PLCMT_NAME\x10\xAD\x01\x12\x1A\x0A\x15VIDEO_POSITION_IN_POD\x10\x9A\x04\x12\x1A\x0A\x15VIDEO_POSITION_OF_POD\x10\x9B\x04\x12\x16\x0A\x11VIDEO_SDK_VERSION\x10\xB8\x03\x12\x1B\x0A\x16VIDEO_SDK_VERSION_NAME\x10\xB9\x03\x12\x18\x0A\x13VIDEO_STITCHER_TYPE\x10\xF0\x05\x12\x1D\x0A\x18VIDEO_STITCHER_TYPE_NAME\x10\xF1\x05\x12\x16\x0A\x11WEB_PROPERTY_CODE\x10\xDA\x05\x12\x08\x0A\x04WEEK\x10\x05\x12\x1B\x0A\x16YIELD_GROUP_BUYER_NAME\x10\xB8\x01\x12\x1F\x0A\x1AYIELD_GROUP_BUYER_TAG_NAME\x10\xF3\x04\x12\x13\x0A\x0EYIELD_GROUP_ID\x10\xB6\x01\x12\x15\x0A\x10YIELD_GROUP_NAME\x10\xB7\x01\x12\x1F\x0A\x1AYOUTUBE_AD_DURATION_BUCKET\x10\xAE\x03\x12\$\x0A\x1FYOUTUBE_AD_DURATION_BUCKET_NAME\x10\xAF\x03\x12\x14\x0A\x0FYOUTUBE_AD_TYPE\x10\x8F\x03\x12\x19\x0A\x14YOUTUBE_AD_TYPE_NAME\x10\x90\x03\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_0_OPTION_ID\x10\x90N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_1_OPTION_ID\x10\x91N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_2_OPTION_ID\x10\x92N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_3_OPTION_ID\x10\x93N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_4_OPTION_ID\x10\x94N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_5_OPTION_ID\x10\x95N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_6_OPTION_ID\x10\x96N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_7_OPTION_ID\x10\x97N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_8_OPTION_ID\x10\x98N\x12'\x0A\"LINE_ITEM_CUSTOM_FIELD_9_OPTION_ID\x10\x99N\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_10_OPTION_ID\x10\x9AN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_11_OPTION_ID\x10\x9BN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_12_OPTION_ID\x10\x9CN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_13_OPTION_ID\x10\x9DN\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_14_OPTION_ID\x10\x9EN\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_0_VALUE\x10\xF8U\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_1_VALUE\x10\xF9U\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_2_VALUE\x10\xFAU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_3_VALUE\x10\xFBU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_4_VALUE\x10\xFCU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_5_VALUE\x10\xFDU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_6_VALUE\x10\xFEU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_7_VALUE\x10\xFFU\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_8_VALUE\x10\x80V\x12#\x0A\x1ELINE_ITEM_CUSTOM_FIELD_9_VALUE\x10\x81V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_10_VALUE\x10\x82V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_11_VALUE\x10\x83V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_12_VALUE\x10\x84V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_13_VALUE\x10\x85V\x12\$\x0A\x1FLINE_ITEM_CUSTOM_FIELD_14_VALUE\x10\x86V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\x87V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\x88V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\x89V\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\x8AV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\x8BV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\x8CV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\x8DV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\x8EV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\x8FV\x12*\x0A%LINE_ITEM_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\x90V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\x91V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\x92V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\x93V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\x94V\x12+\x0A&LINE_ITEM_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\x95V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_0_VALUE_BOOL\x10\x96V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_1_VALUE_BOOL\x10\x97V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_2_VALUE_BOOL\x10\x98V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_3_VALUE_BOOL\x10\x99V\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_4_VALUE_BOOL\x10\x9AV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_5_VALUE_BOOL\x10\x9BV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_6_VALUE_BOOL\x10\x9CV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_7_VALUE_BOOL\x10\x9DV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_8_VALUE_BOOL\x10\x9EV\x12(\x0A#LINE_ITEM_CUSTOM_FIELD_9_VALUE_BOOL\x10\x9FV\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_10_VALUE_BOOL\x10\xA0V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_11_VALUE_BOOL\x10\xA1V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_12_VALUE_BOOL\x10\xA2V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_13_VALUE_BOOL\x10\xA3V\x12)\x0A\$LINE_ITEM_CUSTOM_FIELD_14_VALUE_BOOL\x10\xA4V\x12#\x0A\x1EORDER_CUSTOM_FIELD_0_OPTION_ID\x10\xE0]\x12#\x0A\x1EORDER_CUSTOM_FIELD_1_OPTION_ID\x10\xE1]\x12#\x0A\x1EORDER_CUSTOM_FIELD_2_OPTION_ID\x10\xE2]\x12#\x0A\x1EORDER_CUSTOM_FIELD_3_OPTION_ID\x10\xE3]\x12#\x0A\x1EORDER_CUSTOM_FIELD_4_OPTION_ID\x10\xE4]\x12#\x0A\x1EORDER_CUSTOM_FIELD_5_OPTION_ID\x10\xE5]\x12#\x0A\x1EORDER_CUSTOM_FIELD_6_OPTION_ID\x10\xE6]\x12#\x0A\x1EORDER_CUSTOM_FIELD_7_OPTION_ID\x10\xE7]\x12#\x0A\x1EORDER_CUSTOM_FIELD_8_OPTION_ID\x10\xE8]\x12#\x0A\x1EORDER_CUSTOM_FIELD_9_OPTION_ID\x10\xE9]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_10_OPTION_ID\x10\xEA]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_11_OPTION_ID\x10\xEB]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_12_OPTION_ID\x10\xEC]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_13_OPTION_ID\x10\xED]\x12\$\x0A\x1FORDER_CUSTOM_FIELD_14_OPTION_ID\x10\xEE]\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_0_VALUE\x10\xC8e\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_1_VALUE\x10\xC9e\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_2_VALUE\x10\xCAe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_3_VALUE\x10\xCBe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_4_VALUE\x10\xCCe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_5_VALUE\x10\xCDe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_6_VALUE\x10\xCEe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_7_VALUE\x10\xCFe\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_8_VALUE\x10\xD0e\x12\x1F\x0A\x1AORDER_CUSTOM_FIELD_9_VALUE\x10\xD1e\x12 \x0A\x1BORDER_CUSTOM_FIELD_10_VALUE\x10\xD2e\x12 \x0A\x1BORDER_CUSTOM_FIELD_11_VALUE\x10\xD3e\x12 \x0A\x1BORDER_CUSTOM_FIELD_12_VALUE\x10\xD4e\x12 \x0A\x1BORDER_CUSTOM_FIELD_13_VALUE\x10\xD5e\x12 \x0A\x1BORDER_CUSTOM_FIELD_14_VALUE\x10\xD6e\x12&\x0A!ORDER_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xD7e\x12&\x0A!ORDER_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xD8e\x12&\x0A!ORDER_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xD9e\x12&\x0A!ORDER_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xDAe\x12&\x0A!ORDER_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xDBe\x12&\x0A!ORDER_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xDCe\x12&\x0A!ORDER_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xDDe\x12&\x0A!ORDER_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xDEe\x12&\x0A!ORDER_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xDFe\x12&\x0A!ORDER_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xE0e\x12'\x0A\"ORDER_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xE1e\x12'\x0A\"ORDER_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xE2e\x12'\x0A\"ORDER_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xE3e\x12'\x0A\"ORDER_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xE4e\x12'\x0A\"ORDER_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xE5e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_0_VALUE_BOOL\x10\xE6e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_1_VALUE_BOOL\x10\xE7e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_2_VALUE_BOOL\x10\xE8e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_3_VALUE_BOOL\x10\xE9e\x12\$\x0A\x1FORDER_CUSTOM_FIELD_4_VALUE_BOOL\x10\xEAe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_5_VALUE_BOOL\x10\xEBe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_6_VALUE_BOOL\x10\xECe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_7_VALUE_BOOL\x10\xEDe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_8_VALUE_BOOL\x10\xEEe\x12\$\x0A\x1FORDER_CUSTOM_FIELD_9_VALUE_BOOL\x10\xEFe\x12%\x0A ORDER_CUSTOM_FIELD_10_VALUE_BOOL\x10\xF0e\x12%\x0A ORDER_CUSTOM_FIELD_11_VALUE_BOOL\x10\xF1e\x12%\x0A ORDER_CUSTOM_FIELD_12_VALUE_BOOL\x10\xF2e\x12%\x0A ORDER_CUSTOM_FIELD_13_VALUE_BOOL\x10\xF3e\x12%\x0A ORDER_CUSTOM_FIELD_14_VALUE_BOOL\x10\xF4e\x12&\x0A!CREATIVE_CUSTOM_FIELD_0_OPTION_ID\x10\xB0m\x12&\x0A!CREATIVE_CUSTOM_FIELD_1_OPTION_ID\x10\xB1m\x12&\x0A!CREATIVE_CUSTOM_FIELD_2_OPTION_ID\x10\xB2m\x12&\x0A!CREATIVE_CUSTOM_FIELD_3_OPTION_ID\x10\xB3m\x12&\x0A!CREATIVE_CUSTOM_FIELD_4_OPTION_ID\x10\xB4m\x12&\x0A!CREATIVE_CUSTOM_FIELD_5_OPTION_ID\x10\xB5m\x12&\x0A!CREATIVE_CUSTOM_FIELD_6_OPTION_ID\x10\xB6m\x12&\x0A!CREATIVE_CUSTOM_FIELD_7_OPTION_ID\x10\xB7m\x12&\x0A!CREATIVE_CUSTOM_FIELD_8_OPTION_ID\x10\xB8m\x12&\x0A!CREATIVE_CUSTOM_FIELD_9_OPTION_ID\x10\xB9m\x12'\x0A\"CREATIVE_CUSTOM_FIELD_10_OPTION_ID\x10\xBAm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_11_OPTION_ID\x10\xBBm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_12_OPTION_ID\x10\xBCm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_13_OPTION_ID\x10\xBDm\x12'\x0A\"CREATIVE_CUSTOM_FIELD_14_OPTION_ID\x10\xBEm\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_0_VALUE\x10\x98u\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_1_VALUE\x10\x99u\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_2_VALUE\x10\x9Au\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_3_VALUE\x10\x9Bu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_4_VALUE\x10\x9Cu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_5_VALUE\x10\x9Du\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_6_VALUE\x10\x9Eu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_7_VALUE\x10\x9Fu\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_8_VALUE\x10\xA0u\x12\"\x0A\x1DCREATIVE_CUSTOM_FIELD_9_VALUE\x10\xA1u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_10_VALUE\x10\xA2u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_11_VALUE\x10\xA3u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_12_VALUE\x10\xA4u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_13_VALUE\x10\xA5u\x12#\x0A\x1ECREATIVE_CUSTOM_FIELD_14_VALUE\x10\xA6u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_0_VALUE_DOUBLE\x10\xA7u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_1_VALUE_DOUBLE\x10\xA8u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_2_VALUE_DOUBLE\x10\xA9u\x12)\x0A\$CREATIVE_CUSTOM_FIELD_3_VALUE_DOUBLE\x10\xAAu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_4_VALUE_DOUBLE\x10\xABu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_5_VALUE_DOUBLE\x10\xACu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_6_VALUE_DOUBLE\x10\xADu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_7_VALUE_DOUBLE\x10\xAEu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_8_VALUE_DOUBLE\x10\xAFu\x12)\x0A\$CREATIVE_CUSTOM_FIELD_9_VALUE_DOUBLE\x10\xB0u\x12*\x0A%CREATIVE_CUSTOM_FIELD_10_VALUE_DOUBLE\x10\xB1u\x12*\x0A%CREATIVE_CUSTOM_FIELD_11_VALUE_DOUBLE\x10\xB2u\x12*\x0A%CREATIVE_CUSTOM_FIELD_12_VALUE_DOUBLE\x10\xB3u\x12*\x0A%CREATIVE_CUSTOM_FIELD_13_VALUE_DOUBLE\x10\xB4u\x12*\x0A%CREATIVE_CUSTOM_FIELD_14_VALUE_DOUBLE\x10\xB5u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_0_VALUE_BOOL\x10\xB6u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_1_VALUE_BOOL\x10\xB7u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_2_VALUE_BOOL\x10\xB8u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_3_VALUE_BOOL\x10\xB9u\x12'\x0A\"CREATIVE_CUSTOM_FIELD_4_VALUE_BOOL\x10\xBAu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_5_VALUE_BOOL\x10\xBBu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_6_VALUE_BOOL\x10\xBCu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_7_VALUE_BOOL\x10\xBDu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_8_VALUE_BOOL\x10\xBEu\x12'\x0A\"CREATIVE_CUSTOM_FIELD_9_VALUE_BOOL\x10\xBFu\x12(\x0A#CREATIVE_CUSTOM_FIELD_10_VALUE_BOOL\x10\xC0u\x12(\x0A#CREATIVE_CUSTOM_FIELD_11_VALUE_BOOL\x10\xC1u\x12(\x0A#CREATIVE_CUSTOM_FIELD_12_VALUE_BOOL\x10\xC2u\x12(\x0A#CREATIVE_CUSTOM_FIELD_13_VALUE_BOOL\x10\xC3u\x12(\x0A#CREATIVE_CUSTOM_FIELD_14_VALUE_BOOL\x10\xC4u\x12'\x0A!CMS_METADATA_DIMENSION_0_VALUE_ID\x10\xF0\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_1_VALUE_ID\x10\xF1\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_2_VALUE_ID\x10\xF2\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_3_VALUE_ID\x10\xF3\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_4_VALUE_ID\x10\xF4\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_5_VALUE_ID\x10\xF5\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_6_VALUE_ID\x10\xF6\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_7_VALUE_ID\x10\xF7\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_8_VALUE_ID\x10\xF8\x9C\x06\x12'\x0A!CMS_METADATA_DIMENSION_9_VALUE_ID\x10\xF9\x9C\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_0_VALUE\x10\xD8\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_1_VALUE\x10\xD9\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_2_VALUE\x10\xDA\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_3_VALUE\x10\xDB\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_4_VALUE\x10\xDC\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_5_VALUE\x10\xDD\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_6_VALUE\x10\xDE\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_7_VALUE\x10\xDF\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_8_VALUE\x10\xE0\xA4\x06\x12\$\x0A\x1ECMS_METADATA_DIMENSION_9_VALUE\x10\xE1\xA4\x06\x12!\x0A\x1BCUSTOM_DIMENSION_0_VALUE_ID\x10\xA0\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_1_VALUE_ID\x10\xA1\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_2_VALUE_ID\x10\xA2\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_3_VALUE_ID\x10\xA3\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_4_VALUE_ID\x10\xA4\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_5_VALUE_ID\x10\xA5\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_6_VALUE_ID\x10\xA6\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_7_VALUE_ID\x10\xA7\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_8_VALUE_ID\x10\xA8\x8D\x06\x12!\x0A\x1BCUSTOM_DIMENSION_9_VALUE_ID\x10\xA9\x8D\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_0_VALUE\x10\x88\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_1_VALUE\x10\x89\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_2_VALUE\x10\x8A\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_3_VALUE\x10\x8B\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_4_VALUE\x10\x8C\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_5_VALUE\x10\x8D\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_6_VALUE\x10\x8E\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_7_VALUE\x10\x8F\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_8_VALUE\x10\x90\x95\x06\x12\x1E\x0A\x18CUSTOM_DIMENSION_9_VALUE\x10\x91\x95\x06\x12\x1E\x0A\x18EKV_DIMENSION_0_VALUE_ID\x10\xA8\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_1_VALUE_ID\x10\xA9\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_2_VALUE_ID\x10\xAA\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_3_VALUE_ID\x10\xAB\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_4_VALUE_ID\x10\xAC\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_5_VALUE_ID\x10\xAD\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_6_VALUE_ID\x10\xAE\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_7_VALUE_ID\x10\xAF\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_8_VALUE_ID\x10\xB0\xB4\x06\x12\x1E\x0A\x18EKV_DIMENSION_9_VALUE_ID\x10\xB1\xB4\x06\x12\x1B\x0A\x15EKV_DIMENSION_0_VALUE\x10\x90\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_1_VALUE\x10\x91\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_2_VALUE\x10\x92\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_3_VALUE\x10\x93\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_4_VALUE\x10\x94\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_5_VALUE\x10\x95\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_6_VALUE\x10\x96\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_7_VALUE\x10\x97\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_8_VALUE\x10\x98\xBC\x06\x12\x1B\x0A\x15EKV_DIMENSION_9_VALUE\x10\x99\xBC\x06\x1A\x02\x10\x01\"\xFD\x9D\x01\x0A\x06Metric\x12\x16\x0A\x12METRIC_UNSPECIFIED\x10\x00\x12\x11\x0A\x0CACTIVE_USERS\x10\xDF\x01\x12)\x0A\$ACTIVE_VIEW_AUDIBLE_AT_START_PERCENT\x10\xBD\x03\x12\$\x0A\x1FACTIVE_VIEW_AUDIBLE_IMPRESSIONS\x10\x93\x05\x123\x0A.ACTIVE_VIEW_AUDIBLE_THROUGH_COMPLETION_PERCENT\x10\xBE\x03\x127\x0A2ACTIVE_VIEW_AUDIBLE_THROUGH_FIRST_QUARTILE_PERCENT\x10\xBF\x03\x121\x0A,ACTIVE_VIEW_AUDIBLE_THROUGH_MIDPOINT_PERCENT\x10\xC0\x03\x127\x0A2ACTIVE_VIEW_AUDIBLE_THROUGH_THIRD_QUARTILE_PERCENT\x10\xC1\x03\x12*\x0A%ACTIVE_VIEW_AUDIO_ENABLED_IMPRESSIONS\x10\x94\x05\x12-\x0A(ACTIVE_VIEW_AUDIO_MEASURABLE_IMPRESSIONS\x10\x95\x05\x12%\x0A!ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10=\x12\$\x0A ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10:\x122\x0A-ACTIVE_VIEW_EVER_AUDIBLE_BACKGROUNDED_PERCENT\x10\xC2\x03\x12%\x0A ACTIVE_VIEW_EVER_AUDIBLE_PERCENT\x10\xC3\x03\x12*\x0A%ACTIVE_VIEW_EVER_BACKGROUNDED_PERCENT\x10\xC4\x03\x12#\x0A\x1EACTIVE_VIEW_EVER_MUTED_PERCENT\x10\xC5\x03\x12?\x0A:ACTIVE_VIEW_IMPRESSIONS_AUDIBLE_AND_VISIBLIE_AT_COMPLETION\x10\x9B\x03\x12&\x0A\"ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x109\x12+\x0A'ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10<\x12+\x0A&ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x96\x05\x12)\x0A\$ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x97\x05\x126\x0A1ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x98\x05\x12,\x0A'ACTIVE_VIEW_PERCENT_AUDIBLE_IMPRESSIONS\x10\x99\x05\x12&\x0A!ACTIVE_VIEW_PLUS_MEASURABLE_COUNT\x10\xC6\x03\x12\x18\x0A\x13ACTIVE_VIEW_REVENUE\x10\x9E\x03\x126\x0A1ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x9A\x05\x12\$\x0A ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x108\x122\x0A-ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x9B\x05\x12)\x0A%ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10;\x12-\x0A)ADSENSE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10I\x12,\x0A(ADSENSE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10F\x12.\x0A*ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10E\x123\x0A/ADSENSE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10H\x123\x0A.ADSENSE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x82\x05\x121\x0A,ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x83\x05\x12>\x0A9ADSENSE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x84\x05\x12>\x0A9ADSENSE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x85\x05\x12,\x0A(ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10D\x12:\x0A5ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x86\x05\x121\x0A-ADSENSE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10G\x12\x18\x0A\x14ADSENSE_AVERAGE_ECPM\x10\x1A\x12\x12\x0A\x0EADSENSE_CLICKS\x10\x17\x12\x0F\x0A\x0BADSENSE_CTR\x10\x18\x12\x17\x0A\x13ADSENSE_IMPRESSIONS\x10\x16\x12\x1A\x0A\x16ADSENSE_PERCENT_CLICKS\x10\x1C\x12\x1F\x0A\x1BADSENSE_PERCENT_IMPRESSIONS\x10\x1B\x12\x1B\x0A\x17ADSENSE_PERCENT_REVENUE\x10\x1D\x12'\x0A#ADSENSE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1E\x12\x1C\x0A\x18ADSENSE_RESPONSES_SERVED\x10)\x12\x13\x0A\x0FADSENSE_REVENUE\x10\x19\x121\x0A-AD_EXCHANGE_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10O\x120\x0A,AD_EXCHANGE_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10L\x122\x0A.AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10K\x127\x0A3AD_EXCHANGE_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10N\x127\x0A2AD_EXCHANGE_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\x8E\x05\x125\x0A0AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\x8F\x05\x12B\x0A=AD_EXCHANGE_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x90\x05\x12B\x0A=AD_EXCHANGE_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\x91\x05\x120\x0A,AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10J\x12>\x0A9AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\x92\x05\x125\x0A1AD_EXCHANGE_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10M\x12\x1C\x0A\x18AD_EXCHANGE_AVERAGE_ECPM\x10\x12\x12\x16\x0A\x12AD_EXCHANGE_CLICKS\x10\x0F\x12\x14\x0A\x0FAD_EXCHANGE_CPC\x10\xF4\x01\x12\x13\x0A\x0FAD_EXCHANGE_CTR\x10\x10\x12\x1E\x0A\x19AD_EXCHANGE_DELIVERY_RATE\x10\xF5\x01\x12\x1B\x0A\x17AD_EXCHANGE_IMPRESSIONS\x10\x0E\x12*\x0A%AD_EXCHANGE_IMPRESSIONS_PER_AD_VIEWER\x10\xAB\x03\x12(\x0A#AD_EXCHANGE_IMPRESSIONS_PER_SESSION\x10\xAC\x03\x12\x15\x0A\x10AD_EXCHANGE_LIFT\x10\xF6\x01\x12\$\x0A\x1FAD_EXCHANGE_MATCHED_REQUEST_CTR\x10\xF7\x01\x12%\x0A AD_EXCHANGE_MATCHED_REQUEST_ECPM\x10\xF8\x01\x12\x1B\x0A\x16AD_EXCHANGE_MATCH_RATE\x10\xF9\x01\x12*\x0A%AD_EXCHANGE_OPPORTUNITIES_FROM_ERRORS\x10\xFA\x01\x12/\x0A*AD_EXCHANGE_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xFB\x01\x12\x1E\x0A\x1AAD_EXCHANGE_PERCENT_CLICKS\x10\x14\x12#\x0A\x1FAD_EXCHANGE_PERCENT_IMPRESSIONS\x10\x13\x12\x1F\x0A\x1BAD_EXCHANGE_PERCENT_REVENUE\x10\x15\x12+\x0A'AD_EXCHANGE_PERCENT_REVENUE_WITHOUT_CPD\x10\x1F\x12&\x0A!AD_EXCHANGE_PLUS_YIELD_GROUP_ECPM\x10\xFC\x01\x12-\x0A(AD_EXCHANGE_PLUS_YIELD_GROUP_IMPRESSIONS\x10\xFD\x01\x12)\x0A\$AD_EXCHANGE_PLUS_YIELD_GROUP_REVENUE\x10\xFE\x01\x12 \x0A\x1CAD_EXCHANGE_RESPONSES_SERVED\x10*\x12\x17\x0A\x13AD_EXCHANGE_REVENUE\x10\x11\x125\x0A0AD_EXCHANGE_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xD4\x01\x12&\x0A!AD_EXCHANGE_REVENUE_PER_AD_VIEWER\x10\xAD\x03\x12\x1F\x0A\x1AAD_EXCHANGE_TOTAL_REQUESTS\x10\xFF\x01\x12\"\x0A\x1DAD_EXCHANGE_TOTAL_REQUEST_CTR\x10\x80\x02\x12#\x0A\x1EAD_EXCHANGE_TOTAL_REQUEST_ECPM\x10\x81\x02\x12\x18\x0A\x13AD_EXPOSURE_SECONDS\x10\xF1\x01\x12\x0F\x0A\x0BAD_REQUESTS\x10&\x12/\x0A+AD_SERVER_ACTIVE_VIEW_AVERAGE_VIEWABLE_TIME\x10C\x12.\x0A*AD_SERVER_ACTIVE_VIEW_ELIGIBLE_IMPRESSIONS\x10@\x120\x0A,AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10?\x125\x0A1AD_SERVER_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS_RATE\x10B\x125\x0A0AD_SERVER_ACTIVE_VIEW_NON_MEASURABLE_IMPRESSIONS\x10\xCC\x02\x123\x0A.AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS\x10\xCB\x02\x12@\x0A;AD_SERVER_ACTIVE_VIEW_NON_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xCE\x02\x12\"\x0A\x1DAD_SERVER_ACTIVE_VIEW_REVENUE\x10\xC0\x05\x12@\x0A;AD_SERVER_ACTIVE_VIEW_UNDETERMINED_IMPRESSIONS_DISTRIBUTION\x10\xCF\x02\x12.\x0A*AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10>\x12<\x0A7AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_DISTRIBUTION\x10\xCD\x02\x123\x0A/AD_SERVER_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10A\x12\x1A\x0A\x16AD_SERVER_AVERAGE_ECPM\x10\"\x12&\x0A\"AD_SERVER_AVERAGE_ECPM_WITHOUT_CPD\x10\x0A\x12*\x0A%AD_SERVER_BEGIN_TO_RENDER_IMPRESSIONS\x10\x86\x02\x12\x14\x0A\x10AD_SERVER_CLICKS\x10\x07\x12\x1E\x0A\x19AD_SERVER_COMPLETED_VIEWS\x10\xAF\x03\x12#\x0A\x1EAD_SERVER_COVIEWED_IMPRESSIONS\x10\xAA\x04\x12\x19\x0A\x15AD_SERVER_CPD_REVENUE\x10 \x12\x11\x0A\x0DAD_SERVER_CTR\x10\x08\x12\x1C\x0A\x17AD_SERVER_GROSS_REVENUE\x10\xE3\x03\x12(\x0A#AD_SERVER_GROSS_REVENUE_WITHOUT_CPD\x10\xE4\x03\x12\x19\x0A\x15AD_SERVER_IMPRESSIONS\x10\x06\x12)\x0A\$AD_SERVER_IMPRESSIONS_WITH_COMPANION\x10\xDE\x01\x123\x0A.AD_SERVER_INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\xD2\x02\x12(\x0A#AD_SERVER_OPPORTUNITIES_FROM_ERRORS\x10\xCD\x03\x12-\x0A(AD_SERVER_OPPORTUNITIES_FROM_IMPRESSIONS\x10\xCE\x03\x12\x1C\x0A\x18AD_SERVER_PERCENT_CLICKS\x10\x0C\x12!\x0A\x1DAD_SERVER_PERCENT_IMPRESSIONS\x10\x0B\x12\x1D\x0A\x19AD_SERVER_PERCENT_REVENUE\x10#\x12)\x0A%AD_SERVER_PERCENT_REVENUE_WITHOUT_CPD\x10\x0D\x12\x1E\x0A\x1AAD_SERVER_RESPONSES_SERVED\x10(\x12\x15\x0A\x11AD_SERVER_REVENUE\x10!\x123\x0A.AD_SERVER_REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xD5\x01\x12!\x0A\x1DAD_SERVER_REVENUE_WITHOUT_CPD\x10\x09\x12\x1E\x0A\x19AD_SERVER_TARGETED_CLICKS\x10\x92\x02\x12#\x0A\x1EAD_SERVER_TARGETED_IMPRESSIONS\x10\x93\x02\x12\x1A\x0A\x15AD_SERVER_TRACKED_ADS\x10\x88\x02\x125\x0A0AD_SERVER_UNFILTERED_BEGIN_TO_RENDER_IMPRESSIONS\x10\x85\x02\x12 \x0A\x1BAD_SERVER_UNFILTERED_CLICKS\x10\x83\x02\x120\x0A+AD_SERVER_UNFILTERED_DOWNLOADED_IMPRESSIONS\x10\x84\x02\x12)\x0A AD_SERVER_UNFILTERED_IMPRESSIONS\x10\x84\x02\x1A\x02\x08\x01\x12%\x0A AD_SERVER_UNFILTERED_TRACKED_ADS\x10\x87\x02\x12\x1D\x0A\x18AD_UNIT_EXPOSURE_SECONDS\x10\xF2\x01\x12\x0F\x0A\x0AAD_VIEWERS\x10\xA9\x03\x12\x1D\x0A\x18ATN_ADS_FAILED_TO_RENDER\x10\xAE\x03\x12\x1C\x0A\x17ATN_ELIGIBLE_LINE_ITEMS\x10\xD6\x02\x12(\x0A#ATN_ELIGIBLE_LINE_ITEMS_AD_REQUESTS\x10\xD7\x02\x12 \x0A\x1BATN_HBT_ALLOWED_AD_REQUESTS\x10\xD8\x02\x12\x1C\x0A\x17ATN_HBT_BIDS_IN_AUCTION\x10\xD9\x02\x12(\x0A#ATN_HBT_BIDS_IN_AUCTION_AD_REQUESTS\x10\xDA\x02\x12\x1B\x0A\x16ATN_HBT_CANDIDATE_BIDS\x10\xDB\x02\x12 \x0A\x1BATN_HBT_INVALID_AD_REQUESTS\x10\xDC\x02\x12 \x0A\x1BATN_HBT_NO_BIDS_AD_REQUESTS\x10\xD8\x03\x12\x1A\x0A\x15ATN_HBT_REJECTED_BIDS\x10\xDD\x02\x12\x1E\x0A\x19ATN_HBT_VALID_AD_REQUESTS\x10\xDE\x02\x12\"\x0A\x1DATN_HBT_WITH_BIDS_AD_REQUESTS\x10\xD9\x03\x12\x1C\x0A\x17ATN_INVALID_AD_REQUESTS\x10\xDF\x02\x12*\x0A%ATN_LINE_ITEMS_CREATIVE_NOT_RETRIEVED\x10\xDC\x03\x12\x1E\x0A\x19ATN_LINE_ITEMS_IN_AUCTION\x10\xE0\x02\x12!\x0A\x1CATN_LINE_ITEMS_NOT_COMPETING\x10\x83\x04\x12 \x0A\x1BATN_LINE_ITEMS_NOT_SELECTED\x10\xE1\x02\x12)\x0A\$ATN_LINE_ITEM_IN_AUCTION_AD_REQUESTS\x10\xE2\x02\x12'\x0A\"ATN_LINE_ITEM_TARGETED_AD_REQUESTS\x10\xE3\x02\x12&\x0A!ATN_MEDIATION_ALLOWED_AD_REQUESTS\x10\xE4\x02\x12&\x0A!ATN_MEDIATION_INVALID_AD_REQUESTS\x10\xE5\x02\x12)\x0A\$ATN_MEDIATION_LOADED_ADS_FROM_CHAINS\x10\xE6\x02\x12)\x0A\$ATN_MEDIATION_NO_PARTNER_AD_REQUESTS\x10\xDA\x03\x12&\x0A!ATN_MEDIATION_PARTNERS_IN_AUCTION\x10\xE7\x02\x122\x0A-ATN_MEDIATION_PARTNERS_IN_AUCTION_AD_REQUESTS\x10\xE8\x02\x12\$\x0A\x1FATN_MEDIATION_REJECTED_PARTNERS\x10\xE9\x02\x12\$\x0A\x1FATN_MEDIATION_TARGETED_PARTNERS\x10\xEA\x02\x12&\x0A!ATN_MEDIATION_TOTAL_ADS_IN_CHAINS\x10\xBF\x05\x12+\x0A&ATN_MEDIATION_UNLOADED_ADS_FROM_CHAINS\x10\xEB\x02\x12*\x0A%ATN_MEDIATION_UNUSED_BIDS_OR_PARTNERS\x10\xEC\x02\x12\$\x0A\x1FATN_MEDIATION_VALID_AD_REQUESTS\x10\xED\x02\x12,\x0A'ATN_MEDIATION_WITH_PARTNERS_AD_REQUESTS\x10\xDB\x03\x12+\x0A&ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BIDS\x10\xEE\x02\x128\x0A3ATN_PROGRAMMATIC_AD_REQUESTS_WITH_BID_REQUESTS_SENT\x10\xEF\x02\x12)\x0A\$ATN_PROGRAMMATIC_ALLOWED_AD_REQUESTS\x10\xF0\x02\x12%\x0A ATN_PROGRAMMATIC_BIDS_IN_AUCTION\x10\xF1\x02\x120\x0A+ATN_PROGRAMMATIC_BID_IN_AUCTION_AD_REQUESTS\x10\xF2\x02\x12'\x0A\"ATN_PROGRAMMATIC_BID_REQUESTS_SENT\x10\xF3\x02\x120\x0A+ATN_PROGRAMMATIC_BID_REQUESTS_WITH_RESPONSE\x10\xF4\x02\x12,\x0A'ATN_PROGRAMMATIC_BID_REQUEST_CANDIDATES\x10\xF5\x02\x12(\x0A#ATN_PROGRAMMATIC_BID_REQUEST_ERRORS\x10\xF6\x02\x12,\x0A'ATN_PROGRAMMATIC_INELIGIBLE_AD_REQUESTS\x10\xF7\x02\x12#\x0A\x1EATN_PROGRAMMATIC_REJECTED_BIDS\x10\xF8\x02\x12*\x0A%ATN_PROGRAMMATIC_SKIPPED_BID_REQUESTS\x10\xF9\x02\x12 \x0A\x1BATN_PROGRAMMATIC_TOTAL_BIDS\x10\xFA\x02\x12'\x0A\"ATN_PROGRAMMATIC_VALID_AD_REQUESTS\x10\xFB\x02\x12\x1C\x0A\x17ATN_REJECTED_LINE_ITEMS\x10\xFC\x02\x12 \x0A\x1BATN_SERVED_MEDIATION_CHAINS\x10\xFD\x02\x12\x1A\x0A\x15ATN_SERVED_SINGLE_ADS\x10\xFE\x02\x12\x1C\x0A\x17ATN_TARGETED_LINE_ITEMS\x10\xFF\x02\x12\x1A\x0A\x15ATN_TOTAL_AD_REQUESTS\x10\x80\x03\x12\x19\x0A\x14ATN_TOTAL_LOADED_ADS\x10\x83\x03\x12\x1A\x0A\x15ATN_VALID_AD_REQUESTS\x10\x85\x03\x12(\x0A#ATN_YIELD_GROUP_MEDIATION_PASSBACKS\x10\x86\x03\x12\x1A\x0A\x15AUDIENCE_SEGMENT_COST\x10\xAE\x04\x12\x10\x0A\x0CAVERAGE_ECPM\x10%\x12\x1C\x0A\x18AVERAGE_ECPM_WITHOUT_CPD\x10\x05\x12+\x0A&AVERAGE_ENGAGEMENT_SECONDS_PER_SESSION\x10\xE0\x01\x12(\x0A#AVERAGE_ENGAGEMENT_SECONDS_PER_USER\x10\xE1\x01\x12+\x0A&AVERAGE_IMPRESSIONS_PER_UNIQUE_VISITOR\x10\xA2\x03\x12-\x0A(AVERAGE_PURCHASE_REVENUE_PER_PAYING_USER\x10\xE2\x01\x12\x1D\x0A\x18AVERAGE_REVENUE_PER_USER\x10\xE3\x01\x12\x1C\x0A\x17AVERAGE_SESSION_SECONDS\x10\xE4\x01\x12\x09\x0A\x04BIDS\x10\xBB\x03\x12\x14\x0A\x0FBID_AVERAGE_CPM\x10\xBC\x03\x12\x10\x0A\x0BBOUNCE_RATE\x10\xB1\x03\x12\x0A\x0A\x06CLICKS\x10\x02\x12\x15\x0A\x11CODE_SERVED_COUNT\x10,\x12\x10\x0A\x0BCPC_REVENUE\x10\xB8\x03\x12\x10\x0A\x0BCPM_REVENUE\x10\xB9\x03\x12%\x0A CREATIVE_LOAD_TIME_0_500_PERCENT\x10\xC4\x02\x12)\x0A\$CREATIVE_LOAD_TIME_1000_2000_PERCENT\x10\xC6\x02\x12)\x0A\$CREATIVE_LOAD_TIME_2000_4000_PERCENT\x10\xC7\x02\x12)\x0A\$CREATIVE_LOAD_TIME_4000_8000_PERCENT\x10\xC8\x02\x12(\x0A#CREATIVE_LOAD_TIME_500_1000_PERCENT\x10\xC5\x02\x12'\x0A\"CREATIVE_LOAD_TIME_GT_8000_PERCENT\x10\xC9\x02\x12\x07\x0A\x03CTR\x10\x03\x12\x17\x0A\x12CTR_WITH_COMPANION\x10\xE6\x05\x12\x0F\x0A\x0ADEALS_BIDS\x10\x9E\x04\x12\x13\x0A\x0EDEALS_BID_RATE\x10\x9F\x04\x12\x17\x0A\x12DEALS_BID_REQUESTS\x10\xA0\x04\x12\x17\x0A\x12DEALS_WINNING_BIDS\x10\xA1\x04\x12\x13\x0A\x0EDEALS_WIN_RATE\x10\xA2\x04\x12/\x0A*DOM_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\x89\x04\x123\x0A.DOM_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\x8A\x04\x123\x0A.DOM_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\x8B\x04\x123\x0A.DOM_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\x8C\x04\x122\x0A-DOM_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\x8D\x04\x121\x0A,DOM_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\x88\x04\x12,\x0A'DOM_LOAD_TO_TAG_LOAD_TIME_0_500_PERCENT\x10\x8E\x04\x120\x0A+DOM_LOAD_TO_TAG_LOAD_TIME_1000_2000_PERCENT\x10\x8F\x04\x120\x0A+DOM_LOAD_TO_TAG_LOAD_TIME_2000_4000_PERCENT\x10\x90\x04\x120\x0A+DOM_LOAD_TO_TAG_LOAD_TIME_4000_8000_PERCENT\x10\x91\x04\x12/\x0A*DOM_LOAD_TO_TAG_LOAD_TIME_500_1000_PERCENT\x10\x93\x04\x12.\x0A)DOM_LOAD_TO_TAG_LOAD_TIME_GT_8000_PERCENT\x10\x92\x04\x12\x11\x0A\x0CDROPOFF_RATE\x10\x9F\x03\x12\x15\x0A\x10ENGAGED_SESSIONS\x10\xE5\x01\x12\x1E\x0A\x19ENGAGED_SESSIONS_PER_USER\x10\xE6\x01\x12\x14\x0A\x0FENGAGEMENT_RATE\x10\xAA\x03\x12&\x0A!EUROPEAN_REGULATIONS_CONSENT_RATE\x10\x8E\x02\x12-\x0A(EUROPEAN_REGULATIONS_CUSTOM_CONSENT_RATE\x10\x8F\x02\x12(\x0A#EUROPEAN_REGULATIONS_MESSAGES_SHOWN\x10\x90\x02\x12)\x0A\$EUROPEAN_REGULATIONS_NO_CONSENT_RATE\x10\x91\x02\x12\x0E\x0A\x09FILL_RATE\x10\x82\x02\x12\x1C\x0A\x17GOOGLE_ANALYTICS_CLICKS\x10\xE7\x01\x12\x19\x0A\x14GOOGLE_ANALYTICS_CTR\x10\xE8\x01\x12\x1A\x0A\x15GOOGLE_ANALYTICS_ECPM\x10\xE9\x01\x12!\x0A\x1CGOOGLE_ANALYTICS_IMPRESSIONS\x10\xEA\x01\x12\x1D\x0A\x18GOOGLE_ANALYTICS_REVENUE\x10\xEB\x01\x12\x1B\x0A\x16GOOGLE_ANALYTICS_VIEWS\x10\xEC\x01\x12\$\x0A\x1FGOOGLE_ANALYTICS_VIEWS_PER_USER\x10\xED\x01\x12-\x0A(GOOGLE_SOLD_AUCTION_COVIEWED_IMPRESSIONS\x10\x81\x01\x12\$\x0A\x1FGOOGLE_SOLD_AUCTION_IMPRESSIONS\x10\x80\x01\x12%\x0A GOOGLE_SOLD_COVIEWED_IMPRESSIONS\x10\x83\x01\x12\x1C\x0A\x17GOOGLE_SOLD_IMPRESSIONS\x10\x82\x01\x120\x0A,GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS\x10\x7F\x12'\x0A#GOOGLE_SOLD_RESERVATION_IMPRESSIONS\x10~\x12\x0F\x0A\x0BIMPRESSIONS\x10\x01\x12\x1F\x0A\x1AIMPRESSIONS_WITH_COMPANION\x10\xE5\x05\x12)\x0A\$INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS\x10\x97\x03\x12\x15\x0A\x10INVENTORY_SHARES\x10\xA3\x04\x123\x0A.INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES\x10\xA4\x04\x12\x19\x0A\x14INVOICED_IMPRESSIONS\x10\x94\x03\x12\"\x0A\x1DINVOICED_UNFILLED_IMPRESSIONS\x10\x95\x03\x12\x1C\x0A\x17MEDIATION_CHAINS_FILLED\x10\xC8\x04\x12\x16\x0A\x11MUTED_IMPRESSIONS\x10\x9C\x03\x12\x1E\x0A\x19MUTE_ELIGIBLE_IMPRESSIONS\x10\x99\x03\x12\x1B\x0A\x16NIELSEN_AUDIENCE_INDEX\x10\xB8\x04\x12\x1E\x0A\x19NIELSEN_AVERAGE_FREQUENCY\x10\xB9\x04\x12&\x0A!NIELSEN_AVERAGE_NUMBER_OF_VIEWERS\x10\xBA\x04\x12 \x0A\x1BNIELSEN_GROSS_RATING_POINTS\x10\xBB\x04\x12\x18\x0A\x13NIELSEN_IMPRESSIONS\x10\xBC\x04\x12\x1E\x0A\x19NIELSEN_IMPRESSIONS_INDEX\x10\xBD\x04\x12\x1C\x0A\x17NIELSEN_IN_TARGET_RATIO\x10\xC0\x04\x12#\x0A\x1ENIELSEN_PERCENT_AUDIENCE_REACH\x10\xC2\x04\x12#\x0A\x1ENIELSEN_PERCENT_AUDIENCE_SHARE\x10\xC3\x04\x12&\x0A!NIELSEN_PERCENT_IMPRESSIONS_SHARE\x10\xC4\x04\x12%\x0A NIELSEN_PERCENT_POPULATION_SHARE\x10\xC5\x04\x12\x1C\x0A\x17NIELSEN_POPULATION_BASE\x10\xC6\x04\x12\x1C\x0A\x17NIELSEN_UNIQUE_AUDIENCE\x10\xC7\x04\x124\x0A/OFF_PROPERTY_ACTIVE_VIEW_MEASURABLE_IMPRESSIONS\x10\x8B\x03\x122\x0A-OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS\x10\x8C\x03\x127\x0A2OFF_PROPERTY_ACTIVE_VIEW_VIEWABLE_IMPRESSIONS_RATE\x10\x8D\x03\x12\x18\x0A\x13OFF_PROPERTY_CLICKS\x10\x8E\x03\x12\x15\x0A\x10OFF_PROPERTY_CTR\x10\x8F\x03\x12\x1D\x0A\x18OFF_PROPERTY_IMPRESSIONS\x10\x90\x03\x12\x19\x0A\x14OFF_PROPERTY_REVENUE\x10\x91\x03\x12\x17\x0A\x12OFF_PROPERTY_SPEND\x10\x92\x03\x12\x1C\x0A\x17OFF_PROPERTY_SPEND_ECPM\x10\x93\x03\x12#\x0A\x1EON_PLATFORM_MULTIPLE_CALL_ECPM\x10\xA6\x05\x12*\x0A%ON_PLATFORM_MULTIPLE_CALL_IMPRESSIONS\x10\xA4\x05\x12&\x0A!ON_PLATFORM_MULTIPLE_CALL_REVENUE\x10\xA5\x05\x12\x12\x0A\x0DOPPORTUNITIES\x10\xCF\x03\x12\x1E\x0A\x19OVERDELIVERED_IMPRESSIONS\x10\xB0\x03\x12\"\x0A\x1DPARTNER_FINANCE_GROSS_REVENUE\x10\x88\x05\x12\x1E\x0A\x19PARTNER_FINANCE_HOST_ECPM\x10\x89\x05\x12%\x0A PARTNER_FINANCE_HOST_IMPRESSIONS\x10\x8A\x05\x12!\x0A\x1CPARTNER_FINANCE_HOST_REVENUE\x10\x8B\x05\x12!\x0A\x1CPARTNER_FINANCE_PARTNER_ECPM\x10\x8C\x05\x12\$\x0A\x1FPARTNER_FINANCE_PARTNER_REVENUE\x10\x8D\x05\x12%\x0A PARTNER_MANAGEMENT_GROSS_REVENUE\x10\x95\x04\x12#\x0A\x1EPARTNER_MANAGEMENT_HOST_CLICKS\x10\x96\x04\x12 \x0A\x1BPARTNER_MANAGEMENT_HOST_CTR\x10\x97\x04\x12(\x0A#PARTNER_MANAGEMENT_HOST_IMPRESSIONS\x10\x98\x04\x12&\x0A!PARTNER_MANAGEMENT_PARTNER_CLICKS\x10\x99\x04\x12#\x0A\x1EPARTNER_MANAGEMENT_PARTNER_CTR\x10\x9A\x04\x12+\x0A&PARTNER_MANAGEMENT_PARTNER_IMPRESSIONS\x10\x9B\x04\x12+\x0A&PARTNER_MANAGEMENT_TOTAL_CONTENT_VIEWS\x10\x9C\x04\x12,\x0A'PARTNER_MANAGEMENT_UNFILLED_IMPRESSIONS\x10\x9D\x04\x12&\x0A!PARTNER_SALES_FILLED_POD_REQUESTS\x10\x87\x01\x12\x1C\x0A\x17PARTNER_SALES_FILL_RATE\x10\x88\x01\x12%\x0A PARTNER_SALES_PARTNER_MATCH_RATE\x10\x89\x01\x12\x1A\x0A\x15PARTNER_SALES_QUERIES\x10\x84\x01\x12'\x0A\"PARTNER_SALES_UNFILLED_IMPRESSIONS\x10\x85\x01\x12\$\x0A\x1FPARTNER_SALES_UNMATCHED_QUERIES\x10\x86\x01\x12\x1C\x0A\x18PARTNER_SOLD_CODE_SERVED\x10}\x12%\x0A!PARTNER_SOLD_COVIEWED_IMPRESSIONS\x10|\x12\x1C\x0A\x18PARTNER_SOLD_IMPRESSIONS\x10{\x12\x0D\x0A\x08POD_ECPM\x10\xE2\x05\x12\x19\x0A\x14POD_ECPM_WITHOUT_CPD\x10\xE3\x05\x12\x0E\x0A\x09POD_VIEWS\x10\xE4\x05\x12&\x0A!PROGRAMMATIC_ELIGIBLE_AD_REQUESTS\x10\xB1\x01\x12\x1C\x0A\x17PROGRAMMATIC_MATCH_RATE\x10\xB2\x01\x12\"\x0A\x1DPROGRAMMATIC_RESPONSES_SERVED\x10\xB0\x01\x12\x16\x0A\x11REACH_IMPRESSIONS\x10\xA0\x03\x12\x14\x0A\x10RESPONSES_SERVED\x10'\x12\x0E\x0A\x09RETENTION\x10\xEE\x01\x12\x0B\x0A\x07REVENUE\x10\$\x12)\x0A\$REVENUE_PAID_THROUGH_MCM_AUTOPAYMENT\x10\xD6\x01\x12%\x0A REVENUE_VERIFICATION_CPD_REVENUE\x10\xB0\x04\x12+\x0A&REVENUE_VERIFICATION_GROSS_CPD_REVENUE\x10\xAF\x04\x123\x0A.REVENUE_VERIFICATION_GROSS_REVENUE_WITHOUT_CPD\x10\xB1\x04\x12%\x0A REVENUE_VERIFICATION_IMPRESSIONS\x10\xB4\x04\x12-\x0A(REVENUE_VERIFICATION_REVENUE_WITHOUT_CPD\x10\xB7\x04\x12\x17\x0A\x13REVENUE_WITHOUT_CPD\x10\x04\x12\x14\x0A\x0FREWARDS_GRANTED\x10\x9D\x03\x12\$\x0A\x1FRICH_MEDIA_AVERAGE_DISPLAY_TIME\x10\xCB\x04\x12(\x0A#RICH_MEDIA_AVERAGE_INTERACTION_TIME\x10\xCC\x04\x12\x1D\x0A\x18RICH_MEDIA_BACKUP_IMAGES\x10\xCD\x04\x12\"\x0A\x1DRICH_MEDIA_CUSTOM_EVENT_COUNT\x10\xD7\x04\x12!\x0A\x1CRICH_MEDIA_CUSTOM_EVENT_TIME\x10\xD8\x04\x12\x1C\x0A\x17RICH_MEDIA_DISPLAY_TIME\x10\xCE\x04\x12\x1E\x0A\x19RICH_MEDIA_EXPANDING_TIME\x10\xCF\x04\x12\x1A\x0A\x15RICH_MEDIA_EXPANSIONS\x10\xD0\x04\x12'\x0A\"RICH_MEDIA_FULL_SCREEN_IMPRESSIONS\x10\xD1\x04\x12!\x0A\x1CRICH_MEDIA_INTERACTION_COUNT\x10\xD2\x04\x12 \x0A\x1BRICH_MEDIA_INTERACTION_RATE\x10\xD3\x04\x12 \x0A\x1BRICH_MEDIA_INTERACTION_TIME\x10\xD4\x04\x12'\x0A\"RICH_MEDIA_INTERACTIVE_IMPRESSIONS\x10\xD5\x04\x12\x1D\x0A\x18RICH_MEDIA_MANUAL_CLOSES\x10\xD6\x04\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_COMPLETES\x10\xF7\x03\x12\"\x0A\x1DRICH_MEDIA_VIDEO_INTERACTIONS\x10\xF9\x03\x12&\x0A!RICH_MEDIA_VIDEO_INTERACTION_RATE\x10\xF8\x03\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_MIDPOINTS\x10\xFA\x03\x12\x1B\x0A\x16RICH_MEDIA_VIDEO_MUTES\x10\xFB\x03\x12\x1C\x0A\x17RICH_MEDIA_VIDEO_PAUSES\x10\xFC\x03\x12\x1B\x0A\x16RICH_MEDIA_VIDEO_PLAYS\x10\xFD\x03\x12\x1D\x0A\x18RICH_MEDIA_VIDEO_REPLAYS\x10\xFE\x03\x12\x1B\x0A\x16RICH_MEDIA_VIDEO_STOPS\x10\xFF\x03\x12\x1D\x0A\x18RICH_MEDIA_VIDEO_UNMUTES\x10\x80\x04\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_VIEW_RATE\x10\x81\x04\x12\x1F\x0A\x1ARICH_MEDIA_VIDEO_VIEW_TIME\x10\x82\x04\x12'\x0A\"SELL_THROUGH_AVAILABLE_IMPRESSIONS\x10\xDD\x03\x12(\x0A#SELL_THROUGH_FORECASTED_IMPRESSIONS\x10\xDE\x03\x12&\x0A!SELL_THROUGH_RESERVED_IMPRESSIONS\x10\xDF\x03\x12#\x0A\x1ESELL_THROUGH_SELL_THROUGH_RATE\x10\xE0\x03\x12.\x0A)SERVER_SIDE_UNWRAPPING_AVERAGE_LATENCY_MS\x10\xB2\x03\x12\$\x0A\x1FSERVER_SIDE_UNWRAPPING_CALLOUTS\x10\xB3\x03\x12+\x0A&SERVER_SIDE_UNWRAPPING_EMPTY_RESPONSES\x10\xB4\x03\x12+\x0A&SERVER_SIDE_UNWRAPPING_ERROR_RESPONSES\x10\xB5\x03\x120\x0A+SERVER_SIDE_UNWRAPPING_SUCCESSFUL_RESPONSES\x10\xB6\x03\x12\$\x0A\x1FSERVER_SIDE_UNWRAPPING_TIMEOUTS\x10\xB7\x03\x12\x0D\x0A\x08SESSIONS\x10\xEF\x01\x12/\x0A*TAG_LOAD_TO_FIRST_AD_REQUEST_0_500_PERCENT\x10\xC7\x03\x123\x0A.TAG_LOAD_TO_FIRST_AD_REQUEST_1000_2000_PERCENT\x10\xC9\x03\x123\x0A.TAG_LOAD_TO_FIRST_AD_REQUEST_2000_4000_PERCENT\x10\xCA\x03\x123\x0A.TAG_LOAD_TO_FIRST_AD_REQUEST_4000_8000_PERCENT\x10\xCB\x03\x122\x0A-TAG_LOAD_TO_FIRST_AD_REQUEST_500_1000_PERCENT\x10\xC8\x03\x121\x0A,TAG_LOAD_TO_FIRST_AD_REQUEST_GT_8000_PERCENT\x10\xCC\x03\x12\x14\x0A\x0FTARGETED_CLICKS\x10\x94\x02\x12\x19\x0A\x14TARGETED_IMPRESSIONS\x10\x95\x02\x12\x18\x0A\x14UNFILLED_IMPRESSIONS\x10-\x12\x14\x0A\x0FUNIQUE_VISITORS\x10\xA1\x03\x12\$\x0A\x1FUNLOADED_IMPRESSIONS_DUE_TO_CPU\x10\x98\x03\x12(\x0A#UNLOADED_IMPRESSIONS_DUE_TO_NETWORK\x10\x96\x03\x12\x19\x0A\x15UNMATCHED_AD_REQUESTS\x10+\x12\"\x0A\x1DUNVIEWED_REASON_OTHER_PERCENT\x10\xA6\x04\x128\x0A3UNVIEWED_REASON_SLOT_NEVER_ENTERED_VIEWPORT_PERCENT\x10\xA9\x04\x12;\x0A6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_FILLED_PERCENT\x10\xA7\x04\x12;\x0A6UNVIEWED_REASON_USER_SCROLLED_BEFORE_AD_LOADED_PERCENT\x10\xA8\x04\x12<\x0A7UNVIEWED_REASON_USER_SCROLLED_BEFORE_ONE_SECOND_PERCENT\x10\xA5\x04\x12(\x0A#USER_ENGAGEMENT_DURATION_IN_SECONDS\x10\xF0\x01\x12-\x0A(USER_MESSAGES_AD_BLOCKING_EXTENSION_RATE\x10\xE6\x03\x129\x0A4USER_MESSAGES_AD_BLOCKING_RECOVERY_ALLOWLISTED_COUNT\x10\xE7\x03\x126\x0A1USER_MESSAGES_AD_BLOCKING_RECOVERY_MESSAGES_SHOWN\x10\xE8\x03\x12&\x0A!USER_MESSAGES_ALLOW_ADS_PAGEVIEWS\x10\xE9\x03\x12(\x0A#USER_MESSAGES_IDFA_ATT_ALERTS_SHOWN\x10\xEB\x03\x12#\x0A\x1EUSER_MESSAGES_IDFA_ATT_CONSENT\x10\xEC\x03\x12(\x0A#USER_MESSAGES_IDFA_ATT_CONSENT_RATE\x10\xED\x03\x12+\x0A&USER_MESSAGES_IDFA_ATT_DECLINE_CONSENT\x10\xEE\x03\x12(\x0A#USER_MESSAGES_IDFA_ATT_DECLINE_RATE\x10\xEF\x03\x12(\x0A#USER_MESSAGES_IDFA_EXPLAINERS_SHOWN\x10\xF0\x03\x12*\x0A%USER_MESSAGES_IDFA_IAB_MESSAGES_SHOWN\x10\xF1\x03\x12#\x0A\x1EUSER_MESSAGES_IDFA_NO_DECISION\x10\xF2\x03\x12*\x0A&USER_MESSAGES_OFFERWALL_MESSAGES_SHOWN\x10y\x122\x0A.USER_MESSAGES_OFFERWALL_SUCCESSFUL_ENGAGEMENTS\x10z\x12+\x0A&USER_MESSAGES_POST_OFFERWALL_PAGEVIEWS\x10\xF3\x03\x12*\x0A%USER_MESSAGES_TOTAL_ESTIMATED_REVENUE\x10\xF4\x03\x12&\x0A!USER_MESSAGES_UPTC_MESSAGES_SHOWN\x10\xF5\x03\x125\x0A0USER_MESSAGES_UPTC_PERSONALIZATION_OPT_OUT_RATIO\x10\xF6\x03\x12+\x0A&USER_MESSAGES_US_STATES_MESSAGES_SHOWN\x10\xEA\x03\x12/\x0A*USER_MESSAGES_US_STATES_OPT_OUT_SELECTIONS\x10\xCA\x04\x12\x1A\x0A\x15VIDEO_ERROR_100_COUNT\x10\xB4\x01\x12\x1A\x0A\x15VIDEO_ERROR_101_COUNT\x10\xB5\x01\x12\x1A\x0A\x15VIDEO_ERROR_102_COUNT\x10\xB6\x01\x12\x1A\x0A\x15VIDEO_ERROR_200_COUNT\x10\xB7\x01\x12\x1A\x0A\x15VIDEO_ERROR_201_COUNT\x10\xB8\x01\x12\x1A\x0A\x15VIDEO_ERROR_202_COUNT\x10\xB9\x01\x12\x1A\x0A\x15VIDEO_ERROR_203_COUNT\x10\xBA\x01\x12\x1A\x0A\x15VIDEO_ERROR_300_COUNT\x10\xBB\x01\x12\x1A\x0A\x15VIDEO_ERROR_301_COUNT\x10\xBC\x01\x12\x1A\x0A\x15VIDEO_ERROR_302_COUNT\x10\xBD\x01\x12\x1A\x0A\x15VIDEO_ERROR_303_COUNT\x10\xBE\x01\x12\x1A\x0A\x15VIDEO_ERROR_400_COUNT\x10\xBF\x01\x12\x1A\x0A\x15VIDEO_ERROR_401_COUNT\x10\xC0\x01\x12\x1A\x0A\x15VIDEO_ERROR_402_COUNT\x10\xC1\x01\x12\x1A\x0A\x15VIDEO_ERROR_403_COUNT\x10\xC2\x01\x12\x1A\x0A\x15VIDEO_ERROR_405_COUNT\x10\xC3\x01\x12\x1A\x0A\x15VIDEO_ERROR_406_COUNT\x10\xC4\x01\x12\x1A\x0A\x15VIDEO_ERROR_407_COUNT\x10\xC5\x01\x12\x1A\x0A\x15VIDEO_ERROR_408_COUNT\x10\xC6\x01\x12\x1A\x0A\x15VIDEO_ERROR_409_COUNT\x10\xC7\x01\x12\x1A\x0A\x15VIDEO_ERROR_410_COUNT\x10\xC8\x01\x12\x1A\x0A\x15VIDEO_ERROR_500_COUNT\x10\xC9\x01\x12\x1A\x0A\x15VIDEO_ERROR_501_COUNT\x10\xCA\x01\x12\x1A\x0A\x15VIDEO_ERROR_502_COUNT\x10\xCB\x01\x12\x1A\x0A\x15VIDEO_ERROR_503_COUNT\x10\xCC\x01\x12\x1A\x0A\x15VIDEO_ERROR_600_COUNT\x10\xCD\x01\x12\x1A\x0A\x15VIDEO_ERROR_601_COUNT\x10\xCE\x01\x12\x1A\x0A\x15VIDEO_ERROR_602_COUNT\x10\xCF\x01\x12\x1A\x0A\x15VIDEO_ERROR_603_COUNT\x10\xD0\x01\x12\x1A\x0A\x15VIDEO_ERROR_604_COUNT\x10\xD1\x01\x12\x1A\x0A\x15VIDEO_ERROR_900_COUNT\x10\xD2\x01\x12\x1A\x0A\x15VIDEO_ERROR_901_COUNT\x10\xD3\x01\x12.\x0A*VIDEO_INTERACTION_AVERAGE_INTERACTION_RATE\x10\\\x12\x1F\x0A\x1BVIDEO_INTERACTION_COLLAPSES\x10]\x12\x1D\x0A\x19VIDEO_INTERACTION_EXPANDS\x10_\x12\"\x0A\x1EVIDEO_INTERACTION_FULL_SCREENS\x10`\x12\x1B\x0A\x17VIDEO_INTERACTION_MUTES\x10a\x12\x1C\x0A\x18VIDEO_INTERACTION_PAUSES\x10b\x12\x1D\x0A\x19VIDEO_INTERACTION_RESUMES\x10c\x12\x1D\x0A\x19VIDEO_INTERACTION_REWINDS\x10d\x12\x1D\x0A\x19VIDEO_INTERACTION_UNMUTES\x10e\x12!\x0A\x1DVIDEO_INTERACTION_VIDEO_SKIPS\x10f\x12\$\x0A\x1FVIDEO_MONETIZABLE_CONTENT_VIEWS\x10\xD9\x04\x12\$\x0A\x1FVIDEO_REAL_TIME_CREATIVE_SERVES\x10\x8B\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_100_COUNT\x10\x8F\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_101_COUNT\x10\x90\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_102_COUNT\x10\x91\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_200_COUNT\x10\x92\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_201_COUNT\x10\x93\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_202_COUNT\x10\x94\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_203_COUNT\x10\x95\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_300_COUNT\x10\x96\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_301_COUNT\x10\x97\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_302_COUNT\x10\x98\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_303_COUNT\x10\x99\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_400_COUNT\x10\x9A\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_401_COUNT\x10\x9B\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_402_COUNT\x10\x9C\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_403_COUNT\x10\x9D\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_405_COUNT\x10\x9E\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_406_COUNT\x10\x9F\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_407_COUNT\x10\xA0\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_408_COUNT\x10\xA1\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_409_COUNT\x10\xA2\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_410_COUNT\x10\xA3\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_500_COUNT\x10\xA4\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_501_COUNT\x10\xA5\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_502_COUNT\x10\xA6\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_503_COUNT\x10\xA7\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_600_COUNT\x10\xA8\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_601_COUNT\x10\xA9\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_602_COUNT\x10\xAA\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_603_COUNT\x10\xAB\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_604_COUNT\x10\xAC\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_900_COUNT\x10\xAD\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_ERROR_901_COUNT\x10\xAE\x01\x12 \x0A\x1BVIDEO_REAL_TIME_IMPRESSIONS\x10\x8A\x01\x12\$\x0A\x1FVIDEO_REAL_TIME_MATCHED_QUERIES\x10\x8C\x01\x12&\x0A!VIDEO_REAL_TIME_TOTAL_ERROR_COUNT\x10\xAF\x01\x12\"\x0A\x1DVIDEO_REAL_TIME_TOTAL_QUERIES\x10\x8E\x01\x12&\x0A!VIDEO_REAL_TIME_UNMATCHED_QUERIES\x10\x8D\x01\x12-\x0A(VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_END\x10\x97\x02\x12/\x0A*VIDEO_TRUE_OPPORTUNITIES_TOTAL_BREAK_START\x10\x98\x02\x12@\x0A;VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_ADBREAK\x10\x99\x02\x12?\x0A:VIDEO_TRUE_OPPORTUNITIES_TOTAL_CAPPED_OPPORTUNITIES_SUBPOD\x10\x9A\x02\x124\x0A/VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_ADBREAK\x10\x9B\x02\x123\x0A.VIDEO_TRUE_OPPORTUNITIES_TOTAL_DURATION_SUBPOD\x10\x9C\x02\x12<\x0A7VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_ADBREAK\x10\x9D\x02\x12;\x0A6VIDEO_TRUE_OPPORTUNITIES_TOTAL_MATCHED_DURATION_SUBPOD\x10\x9E\x02\x12A\x0AinternalAddGeneratedFile( - "\x0A\xAD\x0D\x0A-google/ads/admanager/v1/report_messages.proto\x12\x17google.ads.admanager.v1\x1A-google/ads/admanager/v1/report_delivery.proto\x1A*google/ads/admanager/v1/report_value.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xCE\x04\x0A\x06Report\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x16\x0A\x09report_id\x18\x03 \x01(\x03B\x03\xE0A\x03\x12C\x0A\x0Avisibility\x18\x02 \x01(\x0E2*.google.ads.admanager.v1.Report.VisibilityB\x03\xE0A\x01\x12I\x0A\x11report_definition\x18\x04 \x01(\x0B2).google.ads.admanager.v1.ReportDefinitionB\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06locale\x18\x08 \x01(\x09B\x03\xE0A\x03\x12G\x0A\x10schedule_options\x18\x09 \x01(\x0B2(.google.ads.admanager.v1.ScheduleOptionsB\x03\xE0A\x01\"C\x0A\x0AVisibility\x12\x0A\x0A\x06HIDDEN\x10\x00\x12\x09\x0A\x05DRAFT\x10\x01\x12\x0B\x0A\x07VISIBLE\x10\x02\x12\x0D\x0A\x05SAVED\x10\x02\x1A\x02\x08\x01\x1A\x02\x10\x01:_\xEAA\\\x0A\x1Fadmanager.googleapis.com/Report\x12(networks/{network_code}/reports/{report}*\x07reports2\x06report\"\x87\x05\x0A\x0FReportDataTable\x1A\x9D\x01\x0A\x03Row\x12>\x0A\x10dimension_values\x18\x01 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12V\x0A\x13metric_value_groups\x18\x02 \x03(\x0B29.google.ads.admanager.v1.ReportDataTable.MetricValueGroup\x1A\xD3\x03\x0A\x10MetricValueGroup\x12<\x0A\x0Eprimary_values\x18\x01 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12M\x0A\x1Fprimary_percent_of_total_values\x18\x02 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12?\x0A\x11comparison_values\x18\x03 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12P\x0A\"comparison_percent_of_total_values\x18\x04 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12D\x0A\x16absolute_change_values\x18\x05 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12D\x0A\x16relative_change_values\x18\x06 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12\x13\x0A\x0Bflag_values\x18\x07 \x03(\x08B\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13ReportMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xB2\x0D\x0A-google/ads/admanager/v1/report_messages.proto\x12\x17google.ads.admanager.v1\x1A-google/ads/admanager/v1/report_delivery.proto\x1A*google/ads/admanager/v1/report_value.proto\x1A4google/ads/admanager/v1/report_visibility_enum.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\x9D\x04\x0A\x06Report\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x16\x0A\x09report_id\x18\x03 \x01(\x03B\x03\xE0A\x03\x12W\x0A\x0Avisibility\x18\x02 \x01(\x0E2>.google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibilityB\x03\xE0A\x01\x12I\x0A\x11report_definition\x18\x04 \x01(\x0B2).google.ads.admanager.v1.ReportDefinitionB\x03\xE0A\x02\x12\x19\x0A\x0Cdisplay_name\x18\x05 \x01(\x09B\x03\xE0A\x01\x124\x0A\x0Bupdate_time\x18\x06 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x124\x0A\x0Bcreate_time\x18\x07 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03\x12\x13\x0A\x06locale\x18\x08 \x01(\x09B\x03\xE0A\x03\x12G\x0A\x10schedule_options\x18\x09 \x01(\x0B2(.google.ads.admanager.v1.ScheduleOptionsB\x03\xE0A\x01:_\xEAA\\\x0A\x1Fadmanager.googleapis.com/Report\x12(networks/{network_code}/reports/{report}*\x07reports2\x06report\"\x87\x05\x0A\x0FReportDataTable\x1A\x9D\x01\x0A\x03Row\x12>\x0A\x10dimension_values\x18\x01 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12V\x0A\x13metric_value_groups\x18\x02 \x03(\x0B29.google.ads.admanager.v1.ReportDataTable.MetricValueGroup\x1A\xD3\x03\x0A\x10MetricValueGroup\x12<\x0A\x0Eprimary_values\x18\x01 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12M\x0A\x1Fprimary_percent_of_total_values\x18\x02 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12?\x0A\x11comparison_values\x18\x03 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12P\x0A\"comparison_percent_of_total_values\x18\x04 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12D\x0A\x16absolute_change_values\x18\x05 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12D\x0A\x16relative_change_values\x18\x06 \x03(\x0B2\$.google.ads.admanager.v1.ReportValue\x12\x13\x0A\x0Bflag_values\x18\x07 \x03(\x08B\xC7\x01\x0A\x1Bcom.google.ads.admanager.v1B\x13ReportMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/ReportVisibilityEnum.php b/AdsAdManager/metadata/V1/ReportVisibilityEnum.php new file mode 100644 index 000000000000..900dc707eedf --- /dev/null +++ b/AdsAdManager/metadata/V1/ReportVisibilityEnum.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xEC\x02\x0A4google/ads/admanager/v1/report_visibility_enum.proto\x12\x17google.ads.admanager.v1\"C\x0A\x14ReportVisibilityEnum\"+\x0A\x10ReportVisibility\x12\x0A\x0A\x06HIDDEN\x10\x00\x12\x0B\x0A\x07VISIBLE\x10\x02B\xCD\x01\x0A\x1Bcom.google.ads.admanager.v1B\x19ReportVisibilityEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/SuggestedAdUnitService.php b/AdsAdManager/metadata/V1/SuggestedAdUnitService.php index d53c74aa7ea9..c16e3680cf9a 100644 --- a/AdsAdManager/metadata/V1/SuggestedAdUnitService.php +++ b/AdsAdManager/metadata/V1/SuggestedAdUnitService.php @@ -20,7 +20,7 @@ public static function initOnce() { \GPBMetadata\Google\Api\FieldBehavior::initOnce(); \GPBMetadata\Google\Api\Resource::initOnce(); $pool->internalAddGeneratedFile( - "\x0A\xD9\x0E\x0A7google/ads/admanager/v1/suggested_ad_unit_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"[\x0A\x19GetSuggestedAdUnitRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/SuggestedAdUnit\"\xC7\x01\x0A\x1BListSuggestedAdUnitsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"\x91\x01\x0A\x1CListSuggestedAdUnitsResponse\x12D\x0A\x12suggested_ad_units\x18\x01 \x03(\x0B2(.google.ads.admanager.v1.SuggestedAdUnit\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\xA0\x01\x0A#BatchApproveSuggestedAdUnitsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12?\x0A\x05names\x18\x02 \x03(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/SuggestedAdUnit\"f\x0A\$BatchApproveSuggestedAdUnitsResponse\x12>\x0A\x10created_ad_units\x18\x01 \x03(\x09B\$\xFAA!\x0A\x1Fadmanager.googleapis.com/AdUnit2\xF1\x05\x0A\x16SuggestedAdUnitService\x12\xAB\x01\x0A\x12GetSuggestedAdUnit\x122.google.ads.admanager.v1.GetSuggestedAdUnitRequest\x1A(.google.ads.admanager.v1.SuggestedAdUnit\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=networks/*/suggestedAdUnits/*}\x12\xBE\x01\x0A\x14ListSuggestedAdUnits\x124.google.ads.admanager.v1.ListSuggestedAdUnitsRequest\x1A5.google.ads.admanager.v1.ListSuggestedAdUnitsResponse\"9\xDAA\x06parent\x82\xD3\xE4\x93\x02*\x12(/v1/{parent=networks/*}/suggestedAdUnits\x12\xEB\x01\x0A\x1CBatchApproveSuggestedAdUnits\x12<.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsRequest\x1A=.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsResponse\"N\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x029\"4/v1/{parent=networks/*}/suggestedAdUnit:batchApprove:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xCF\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1BSuggestedAdUnitServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + "\x0A\xDA\x0E\x0A7google/ads/admanager/v1/suggested_ad_unit_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"[\x0A\x19GetSuggestedAdUnitRequest\x12>\x0A\x04name\x18\x01 \x01(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/SuggestedAdUnit\"\xC7\x01\x0A\x1BListSuggestedAdUnitsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"\x91\x01\x0A\x1CListSuggestedAdUnitsResponse\x12D\x0A\x12suggested_ad_units\x18\x01 \x03(\x0B2(.google.ads.admanager.v1.SuggestedAdUnit\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\xA0\x01\x0A#BatchApproveSuggestedAdUnitsRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12?\x0A\x05names\x18\x02 \x03(\x09B0\xE0A\x02\xFAA*\x0A(admanager.googleapis.com/SuggestedAdUnit\"f\x0A\$BatchApproveSuggestedAdUnitsResponse\x12>\x0A\x10created_ad_units\x18\x01 \x03(\x09B\$\xFAA!\x0A\x1Fadmanager.googleapis.com/AdUnit2\xF2\x05\x0A\x16SuggestedAdUnitService\x12\xAB\x01\x0A\x12GetSuggestedAdUnit\x122.google.ads.admanager.v1.GetSuggestedAdUnitRequest\x1A(.google.ads.admanager.v1.SuggestedAdUnit\"7\xDAA\x04name\x82\xD3\xE4\x93\x02*\x12(/v1/{name=networks/*/suggestedAdUnits/*}\x12\xBE\x01\x0A\x14ListSuggestedAdUnits\x124.google.ads.admanager.v1.ListSuggestedAdUnitsRequest\x1A5.google.ads.admanager.v1.ListSuggestedAdUnitsResponse\"9\xDAA\x06parent\x82\xD3\xE4\x93\x02*\x12(/v1/{parent=networks/*}/suggestedAdUnits\x12\xEC\x01\x0A\x1CBatchApproveSuggestedAdUnits\x12<.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsRequest\x1A=.google.ads.admanager.v1.BatchApproveSuggestedAdUnitsResponse\"O\xDAA\x0Cparent,names\x82\xD3\xE4\x93\x02:\"5/v1/{parent=networks/*}/suggestedAdUnits:batchApprove:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xCF\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1BSuggestedAdUnitServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" , true); static::$is_initialized = true; diff --git a/AdsAdManager/metadata/V1/ThirdPartyDataDeclaration.php b/AdsAdManager/metadata/V1/ThirdPartyDataDeclaration.php new file mode 100644 index 000000000000..2f9ef16f28c2 --- /dev/null +++ b/AdsAdManager/metadata/V1/ThirdPartyDataDeclaration.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xD8\x04\x0A:google/ads/admanager/v1/third_party_data_declaration.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\"\xE7\x01\x0A\x19ThirdPartyDataDeclaration\x12w\x0A\x10declaration_type\x18\x01 \x01(\x0E2X.google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationTypeB\x03\xE0A\x01\x12Q\x0A\x15third_party_companies\x18\x02 \x03(\x09B2\xE0A\x01\xFAA,\x0A*admanager.googleapis.com/ThirdPartyCompanyB\xD2\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1EThirdPartyDataDeclarationProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/ThirdPartyDataDeclarationTypeEnum.php b/AdsAdManager/metadata/V1/ThirdPartyDataDeclarationTypeEnum.php new file mode 100644 index 000000000000..0d3ed6dd1833 --- /dev/null +++ b/AdsAdManager/metadata/V1/ThirdPartyDataDeclarationTypeEnum.php @@ -0,0 +1,24 @@ +internalAddGeneratedFile( + "\x0A\xD6\x03\x0ADgoogle/ads/admanager/v1/third_party_data_declaration_type_enum.proto\x12\x17google.ads.admanager.v1\"\x8F\x01\x0A!ThirdPartyDataDeclarationTypeEnum\"j\x0A\x1DThirdPartyDataDeclarationType\x121\x0A-THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED\x10\x00\x12\x0C\x0A\x08DECLARED\x10\x01\x12\x08\x0A\x04NONE\x10\x02B\xDA\x01\x0A\x1Bcom.google.ads.admanager.v1B&ThirdPartyDataDeclarationTypeEnumProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/VideoTrackingUrl.php b/AdsAdManager/metadata/V1/VideoTrackingUrl.php new file mode 100644 index 000000000000..9dd58ba54bf2 --- /dev/null +++ b/AdsAdManager/metadata/V1/VideoTrackingUrl.php @@ -0,0 +1,26 @@ +internalAddGeneratedFile( + "\x0A\xC4\x03\x0A0google/ads/admanager/v1/video_tracking_url.proto\x12\x17google.ads.admanager.v1\x1A\x1Fgoogle/api/field_behavior.proto\"\x81\x01\x0A\x10VideoTrackingUrl\x12[\x0A\x10conversion_event\x18\x01 \x01(\x0E2<.google.ads.admanager.v1.ConversionEventEnum.ConversionEventB\x03\xE0A\x02\x12\x10\x0A\x03url\x18\x02 \x01(\x09B\x03\xE0A\x01B\xC9\x01\x0A\x1Bcom.google.ads.admanager.v1B\x15VideoTrackingUrlProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/ViewabilityProviderMessages.php b/AdsAdManager/metadata/V1/ViewabilityProviderMessages.php new file mode 100644 index 000000000000..b704f44b3e7c --- /dev/null +++ b/AdsAdManager/metadata/V1/ViewabilityProviderMessages.php @@ -0,0 +1,27 @@ +internalAddGeneratedFile( + "\x0A\xB8\x0A\x0A;google/ads/admanager/v1/viewability_provider_messages.proto\x12\x17google.ads.admanager.v1\x1A\x19google/api/resource.proto\x1A\x1Fgoogle/protobuf/timestamp.proto\"\xC4\x07\x0A\x13ViewabilityProvider\x12\x11\x0A\x04name\x18\x01 \x01(\x09B\x03\xE0A\x08\x12\x1E\x0A\x0Cdisplay_name\x18\x03 \x01(\x09B\x03\xE0A\x02H\x00\x88\x01\x01\x12\x1C\x0A\x0Avendor_key\x18\x04 \x01(\x09B\x03\xE0A\x02H\x01\x88\x01\x01\x12)\x0A\x17verification_script_url\x18\x05 \x01(\x09B\x03\xE0A\x02H\x02\x88\x01\x01\x124\x0A\"verification_script_url_parameters\x18\x06 \x01(\x09B\x03\xE0A\x01H\x03\x88\x01\x01\x12'\x0A\x15rejection_tracker_url\x18\x07 \x01(\x09B\x03\xE0A\x01H\x04\x88\x01\x01\x12\x19\x0A\x07address\x18\x08 \x01(\x09B\x03\xE0A\x01H\x05\x88\x01\x01\x12\x17\x0A\x05email\x18\x09 \x01(\x09B\x03\xE0A\x01H\x06\x88\x01\x01\x12\x15\x0A\x03fax\x18\x0A \x01(\x09B\x03\xE0A\x01H\x07\x88\x01\x01\x12\x17\x0A\x05phone\x18\x0B \x01(\x09B\x03\xE0A\x01H\x08\x88\x01\x01\x12\x1D\x0A\x0Bexternal_id\x18\x0C \x01(\x09B\x03\xE0A\x01H\x09\x88\x01\x01\x12\x19\x0A\x07comment\x18\x0D \x01(\x09B\x03\xE0A\x01H\x0A\x88\x01\x01\x12F\x0A\x0Fprimary_contact\x18\x0E \x01(\x09B(\xE0A\x01\xFAA\"\x0A admanager.googleapis.com/ContactH\x0B\x88\x01\x01\x12<\x0A\x0Dapplied_teams\x18\x10 \x03(\x09B%\xE0A\x01\xFAA\x1F\x0A\x1Dadmanager.googleapis.com/Team\x124\x0A\x0Bupdate_time\x18\x12 \x01(\x0B2\x1A.google.protobuf.TimestampB\x03\xE0A\x03:\xA2\x01\xEAA\x9E\x01\x0A,admanager.googleapis.com/ViewabilityProvider\x12Cnetworks/{network_code}/viewabilityProviders/{viewability_provider}*\x14viewabilityProviders2\x13viewabilityProviderB\x0F\x0A\x0D_display_nameB\x0D\x0A\x0B_vendor_keyB\x1A\x0A\x18_verification_script_urlB%\x0A#_verification_script_url_parametersB\x18\x0A\x16_rejection_tracker_urlB\x0A\x0A\x08_addressB\x08\x0A\x06_emailB\x06\x0A\x04_faxB\x08\x0A\x06_phoneB\x0E\x0A\x0C_external_idB\x0A\x0A\x08_commentB\x12\x0A\x10_primary_contactB\xD4\x01\x0A\x1Bcom.google.ads.admanager.v1B ViewabilityProviderMessagesProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/metadata/V1/ViewabilityProviderService.php b/AdsAdManager/metadata/V1/ViewabilityProviderService.php new file mode 100644 index 000000000000..d825ea345403 --- /dev/null +++ b/AdsAdManager/metadata/V1/ViewabilityProviderService.php @@ -0,0 +1,30 @@ +internalAddGeneratedFile( + "\x0A\xF7\x1A\x0A:google/ads/admanager/v1/viewability_provider_service.proto\x12\x17google.ads.admanager.v1\x1A\x1Cgoogle/api/annotations.proto\x1A\x17google/api/client.proto\x1A\x1Fgoogle/api/field_behavior.proto\x1A\x19google/api/resource.proto\x1A google/protobuf/field_mask.proto\"c\x0A\x1DGetViewabilityProviderRequest\x12B\x0A\x04name\x18\x01 \x01(\x09B4\xE0A\x02\xFAA.\x0A,admanager.googleapis.com/ViewabilityProvider\"\xCB\x01\x0A\x1FListViewabilityProvidersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12\x16\x0A\x09page_size\x18\x02 \x01(\x05B\x03\xE0A\x01\x12\x17\x0A\x0Apage_token\x18\x03 \x01(\x09B\x03\xE0A\x01\x12\x13\x0A\x06filter\x18\x04 \x01(\x09B\x03\xE0A\x01\x12\x15\x0A\x08order_by\x18\x05 \x01(\x09B\x03\xE0A\x01\x12\x11\x0A\x04skip\x18\x06 \x01(\x05B\x03\xE0A\x01\"\x9C\x01\x0A ListViewabilityProvidersResponse\x12K\x0A\x15viewability_providers\x18\x01 \x03(\x0B2,.google.ads.admanager.v1.ViewabilityProvider\x12\x17\x0A\x0Fnext_page_token\x18\x02 \x01(\x09\x12\x12\x0A\x0Atotal_size\x18\x03 \x01(\x05\"\xAD\x01\x0A CreateViewabilityProviderRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12O\x0A\x14viewability_provider\x18\x02 \x01(\x0B2,.google.ads.admanager.v1.ViewabilityProviderB\x03\xE0A\x02\"\xB4\x01\x0A&BatchCreateViewabilityProvidersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12P\x0A\x08requests\x18\x02 \x03(\x0B29.google.ads.admanager.v1.CreateViewabilityProviderRequestB\x03\xE0A\x02\"v\x0A'BatchCreateViewabilityProvidersResponse\x12K\x0A\x15viewability_providers\x18\x01 \x03(\x0B2,.google.ads.admanager.v1.ViewabilityProvider\"\xA9\x01\x0A UpdateViewabilityProviderRequest\x12O\x0A\x14viewability_provider\x18\x01 \x01(\x0B2,.google.ads.admanager.v1.ViewabilityProviderB\x03\xE0A\x02\x124\x0A\x0Bupdate_mask\x18\x02 \x01(\x0B2\x1A.google.protobuf.FieldMaskB\x03\xE0A\x01\"\xB4\x01\x0A&BatchUpdateViewabilityProvidersRequest\x128\x0A\x06parent\x18\x01 \x01(\x09B(\xE0A\x02\xFAA\"\x0A admanager.googleapis.com/Network\x12P\x0A\x08requests\x18\x02 \x03(\x0B29.google.ads.admanager.v1.UpdateViewabilityProviderRequestB\x03\xE0A\x02\"v\x0A'BatchUpdateViewabilityProvidersResponse\x12K\x0A\x15viewability_providers\x18\x01 \x03(\x0B2,.google.ads.admanager.v1.ViewabilityProvider2\xA0\x0C\x0A\x1AViewabilityProviderService\x12\xBB\x01\x0A\x16GetViewabilityProvider\x126.google.ads.admanager.v1.GetViewabilityProviderRequest\x1A,.google.ads.admanager.v1.ViewabilityProvider\";\xDAA\x04name\x82\xD3\xE4\x93\x02.\x12,/v1/{name=networks/*/viewabilityProviders/*}\x12\xCE\x01\x0A\x18ListViewabilityProviders\x128.google.ads.admanager.v1.ListViewabilityProvidersRequest\x1A9.google.ads.admanager.v1.ListViewabilityProvidersResponse\"=\xDAA\x06parent\x82\xD3\xE4\x93\x02.\x12,/v1/{parent=networks/*}/viewabilityProviders\x12\xEE\x01\x0A\x19CreateViewabilityProvider\x129.google.ads.admanager.v1.CreateViewabilityProviderRequest\x1A,.google.ads.admanager.v1.ViewabilityProvider\"h\xDAA\x1Bparent,viewability_provider\x82\xD3\xE4\x93\x02D\",/v1/{parent=networks/*}/viewabilityProviders:\x14viewability_provider\x12\xFB\x01\x0A\x1FBatchCreateViewabilityProviders\x12?.google.ads.admanager.v1.BatchCreateViewabilityProvidersRequest\x1A@.google.ads.admanager.v1.BatchCreateViewabilityProvidersResponse\"U\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02=\"8/v1/{parent=networks/*}/viewabilityProviders:batchCreate:\x01*\x12\x89\x02\x0A\x19UpdateViewabilityProvider\x129.google.ads.admanager.v1.UpdateViewabilityProviderRequest\x1A,.google.ads.admanager.v1.ViewabilityProvider\"\x82\x01\xDAA viewability_provider,update_mask\x82\xD3\xE4\x93\x02Y2A/v1/{viewability_provider.name=networks/*/viewabilityProviders/*}:\x14viewability_provider\x12\xFB\x01\x0A\x1FBatchUpdateViewabilityProviders\x12?.google.ads.admanager.v1.BatchUpdateViewabilityProvidersRequest\x1A@.google.ads.admanager.v1.BatchUpdateViewabilityProvidersResponse\"U\xDAA\x0Fparent,requests\x82\xD3\xE4\x93\x02=\"8/v1/{parent=networks/*}/viewabilityProviders:batchUpdate:\x01*\x1Az\xCAA\x18admanager.googleapis.com\xD2A\\https://www.googleapis.com/auth/admanager,https://www.googleapis.com/auth/admanager.readonlyB\xD3\x01\x0A\x1Bcom.google.ads.admanager.v1B\x1FViewabilityProviderServiceProtoP\x01Z@google.golang.org/genproto/googleapis/ads/admanager/v1;admanager\xAA\x02\x17Google.Ads.AdManager.V1\xCA\x02\x17Google\\Ads\\AdManager\\V1\xEA\x02\x1AGoogle::Ads::AdManager::V1b\x06proto3" + , true); + + static::$is_initialized = true; + } +} + diff --git a/AdsAdManager/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php b/AdsAdManager/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php index e7f8dd5fdc36..6d22ef943f99 100644 --- a/AdsAdManager/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php +++ b/AdsAdManager/samples/V1/AudienceSegmentServiceClient/get_audience_segment.php @@ -29,7 +29,7 @@ use Google\ApiCore\ApiException; /** - * API to retrieve an `AudienceSegment` object. + * Retrieves an `AudienceSegment` object. * * @param string $formattedName The resource name of the AudienceSegment. * Format: `networks/{network_code}/audienceSegments/{audience_segment_id}` diff --git a/AdsAdManager/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php b/AdsAdManager/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php index a892f2ee4269..136eead07030 100644 --- a/AdsAdManager/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php +++ b/AdsAdManager/samples/V1/AudienceSegmentServiceClient/list_audience_segments.php @@ -29,7 +29,7 @@ use Google\ApiCore\PagedListResponse; /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * * @param string $formattedParent The parent publisher network associated with these audience * segments. Format: `networks/{network_code}` diff --git a/AdsAdManager/samples/V1/ChildPublisherServiceClient/batch_create_child_publishers.php b/AdsAdManager/samples/V1/ChildPublisherServiceClient/batch_create_child_publishers.php new file mode 100644 index 000000000000..f6f7c1aec6b4 --- /dev/null +++ b/AdsAdManager/samples/V1/ChildPublisherServiceClient/batch_create_child_publishers.php @@ -0,0 +1,114 @@ +setDisplayName($requestsChildPublisherDisplayName) + ->setEmail($requestsChildPublisherEmail) + ->setDelegationType($requestsChildPublisherDelegationType); + $createChildPublisherRequest = (new CreateChildPublisherRequest()) + ->setParent($formattedRequestsParent) + ->setChildPublisher($requestsChildPublisher); + $requests = [$createChildPublisherRequest,]; + $request = (new BatchCreateChildPublishersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateChildPublishersResponse $response */ + $response = $childPublisherServiceClient->batchCreateChildPublishers($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChildPublisherServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = ChildPublisherServiceClient::networkName('[NETWORK_CODE]'); + $requestsChildPublisherDisplayName = '[DISPLAY_NAME]'; + $requestsChildPublisherEmail = '[EMAIL]'; + $requestsChildPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + + batch_create_child_publishers_sample( + $formattedParent, + $formattedRequestsParent, + $requestsChildPublisherDisplayName, + $requestsChildPublisherEmail, + $requestsChildPublisherDelegationType + ); +} +// [END admanager_v1_generated_ChildPublisherService_BatchCreateChildPublishers_sync] diff --git a/AdsAdManager/samples/V1/ChildPublisherServiceClient/batch_update_child_publishers.php b/AdsAdManager/samples/V1/ChildPublisherServiceClient/batch_update_child_publishers.php new file mode 100644 index 000000000000..9738c5309736 --- /dev/null +++ b/AdsAdManager/samples/V1/ChildPublisherServiceClient/batch_update_child_publishers.php @@ -0,0 +1,107 @@ +setDisplayName($requestsChildPublisherDisplayName) + ->setEmail($requestsChildPublisherEmail) + ->setDelegationType($requestsChildPublisherDelegationType); + $updateChildPublisherRequest = (new UpdateChildPublisherRequest()) + ->setChildPublisher($requestsChildPublisher); + $requests = [$updateChildPublisherRequest,]; + $request = (new BatchUpdateChildPublishersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateChildPublishersResponse $response */ + $response = $childPublisherServiceClient->batchUpdateChildPublishers($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChildPublisherServiceClient::networkName('[NETWORK_CODE]'); + $requestsChildPublisherDisplayName = '[DISPLAY_NAME]'; + $requestsChildPublisherEmail = '[EMAIL]'; + $requestsChildPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + + batch_update_child_publishers_sample( + $formattedParent, + $requestsChildPublisherDisplayName, + $requestsChildPublisherEmail, + $requestsChildPublisherDelegationType + ); +} +// [END admanager_v1_generated_ChildPublisherService_BatchUpdateChildPublishers_sync] diff --git a/AdsAdManager/samples/V1/ChildPublisherServiceClient/create_child_publisher.php b/AdsAdManager/samples/V1/ChildPublisherServiceClient/create_child_publisher.php new file mode 100644 index 000000000000..939e5bbbc7e0 --- /dev/null +++ b/AdsAdManager/samples/V1/ChildPublisherServiceClient/create_child_publisher.php @@ -0,0 +1,99 @@ +setDisplayName($childPublisherDisplayName) + ->setEmail($childPublisherEmail) + ->setDelegationType($childPublisherDelegationType); + $request = (new CreateChildPublisherRequest()) + ->setParent($formattedParent) + ->setChildPublisher($childPublisher); + + // Call the API and handle any network failures. + try { + /** @var ChildPublisher $response */ + $response = $childPublisherServiceClient->createChildPublisher($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChildPublisherServiceClient::networkName('[NETWORK_CODE]'); + $childPublisherDisplayName = '[DISPLAY_NAME]'; + $childPublisherEmail = '[EMAIL]'; + $childPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + + create_child_publisher_sample( + $formattedParent, + $childPublisherDisplayName, + $childPublisherEmail, + $childPublisherDelegationType + ); +} +// [END admanager_v1_generated_ChildPublisherService_CreateChildPublisher_sync] diff --git a/AdsAdManager/samples/V1/ChildPublisherServiceClient/get_child_publisher.php b/AdsAdManager/samples/V1/ChildPublisherServiceClient/get_child_publisher.php new file mode 100644 index 000000000000..9874669c8a40 --- /dev/null +++ b/AdsAdManager/samples/V1/ChildPublisherServiceClient/get_child_publisher.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ChildPublisher $response */ + $response = $childPublisherServiceClient->getChildPublisher($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ChildPublisherServiceClient::childPublisherName( + '[NETWORK_CODE]', + '[CHILD_PUBLISHER]' + ); + + get_child_publisher_sample($formattedName); +} +// [END admanager_v1_generated_ChildPublisherService_GetChildPublisher_sync] diff --git a/AdsAdManager/samples/V1/ChildPublisherServiceClient/list_child_publishers.php b/AdsAdManager/samples/V1/ChildPublisherServiceClient/list_child_publishers.php new file mode 100644 index 000000000000..cfe34aad1c54 --- /dev/null +++ b/AdsAdManager/samples/V1/ChildPublisherServiceClient/list_child_publishers.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $childPublisherServiceClient->listChildPublishers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ChildPublisherServiceClient::networkName('[NETWORK_CODE]'); + + list_child_publishers_sample($formattedParent); +} +// [END admanager_v1_generated_ChildPublisherService_ListChildPublishers_sync] diff --git a/AdsAdManager/samples/V1/ChildPublisherServiceClient/update_child_publisher.php b/AdsAdManager/samples/V1/ChildPublisherServiceClient/update_child_publisher.php new file mode 100644 index 000000000000..a8e542d1a727 --- /dev/null +++ b/AdsAdManager/samples/V1/ChildPublisherServiceClient/update_child_publisher.php @@ -0,0 +1,91 @@ +setDisplayName($childPublisherDisplayName) + ->setEmail($childPublisherEmail) + ->setDelegationType($childPublisherDelegationType); + $request = (new UpdateChildPublisherRequest()) + ->setChildPublisher($childPublisher); + + // Call the API and handle any network failures. + try { + /** @var ChildPublisher $response */ + $response = $childPublisherServiceClient->updateChildPublisher($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $childPublisherDisplayName = '[DISPLAY_NAME]'; + $childPublisherEmail = '[EMAIL]'; + $childPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + + update_child_publisher_sample( + $childPublisherDisplayName, + $childPublisherEmail, + $childPublisherDelegationType + ); +} +// [END admanager_v1_generated_ChildPublisherService_UpdateChildPublisher_sync] diff --git a/AdsAdManager/samples/V1/CompanyServiceClient/batch_create_companies.php b/AdsAdManager/samples/V1/CompanyServiceClient/batch_create_companies.php new file mode 100644 index 000000000000..2eab4ce85d4e --- /dev/null +++ b/AdsAdManager/samples/V1/CompanyServiceClient/batch_create_companies.php @@ -0,0 +1,106 @@ +setDisplayName($requestsCompanyDisplayName) + ->setType($requestsCompanyType); + $createCompanyRequest = (new CreateCompanyRequest()) + ->setParent($formattedRequestsParent) + ->setCompany($requestsCompany); + $requests = [$createCompanyRequest,]; + $request = (new BatchCreateCompaniesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateCompaniesResponse $response */ + $response = $companyServiceClient->batchCreateCompanies($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); + $requestsCompanyDisplayName = '[DISPLAY_NAME]'; + $requestsCompanyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + + batch_create_companies_sample( + $formattedParent, + $formattedRequestsParent, + $requestsCompanyDisplayName, + $requestsCompanyType + ); +} +// [END admanager_v1_generated_CompanyService_BatchCreateCompanies_sync] diff --git a/AdsAdManager/samples/V1/CompanyServiceClient/batch_update_companies.php b/AdsAdManager/samples/V1/CompanyServiceClient/batch_update_companies.php new file mode 100644 index 000000000000..641aca2a33f3 --- /dev/null +++ b/AdsAdManager/samples/V1/CompanyServiceClient/batch_update_companies.php @@ -0,0 +1,94 @@ +setDisplayName($requestsCompanyDisplayName) + ->setType($requestsCompanyType); + $updateCompanyRequest = (new UpdateCompanyRequest()) + ->setCompany($requestsCompany); + $requests = [$updateCompanyRequest,]; + $request = (new BatchUpdateCompaniesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateCompaniesResponse $response */ + $response = $companyServiceClient->batchUpdateCompanies($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); + $requestsCompanyDisplayName = '[DISPLAY_NAME]'; + $requestsCompanyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + + batch_update_companies_sample($formattedParent, $requestsCompanyDisplayName, $requestsCompanyType); +} +// [END admanager_v1_generated_CompanyService_BatchUpdateCompanies_sync] diff --git a/AdsAdManager/samples/V1/CompanyServiceClient/create_company.php b/AdsAdManager/samples/V1/CompanyServiceClient/create_company.php new file mode 100644 index 000000000000..57cb55d1606d --- /dev/null +++ b/AdsAdManager/samples/V1/CompanyServiceClient/create_company.php @@ -0,0 +1,88 @@ +setDisplayName($companyDisplayName) + ->setType($companyType); + $request = (new CreateCompanyRequest()) + ->setParent($formattedParent) + ->setCompany($company); + + // Call the API and handle any network failures. + try { + /** @var Company $response */ + $response = $companyServiceClient->createCompany($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CompanyServiceClient::networkName('[NETWORK_CODE]'); + $companyDisplayName = '[DISPLAY_NAME]'; + $companyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + + create_company_sample($formattedParent, $companyDisplayName, $companyType); +} +// [END admanager_v1_generated_CompanyService_CreateCompany_sync] diff --git a/AdsAdManager/samples/V1/CompanyServiceClient/get_company.php b/AdsAdManager/samples/V1/CompanyServiceClient/get_company.php index 4c3060d9ccad..e6d7a591058f 100644 --- a/AdsAdManager/samples/V1/CompanyServiceClient/get_company.php +++ b/AdsAdManager/samples/V1/CompanyServiceClient/get_company.php @@ -29,7 +29,7 @@ use Google\ApiCore\ApiException; /** - * Retrieves a `Company` object. + * Retrieves a [Company][google.ads.admanager.v1.Company] object. * * @param string $formattedName The resource name of the Company. * Format: `networks/{network_code}/companies/{company_id}` diff --git a/AdsAdManager/samples/V1/CompanyServiceClient/list_companies.php b/AdsAdManager/samples/V1/CompanyServiceClient/list_companies.php index bbbde9ba86b7..8d4dc43d8cc2 100644 --- a/AdsAdManager/samples/V1/CompanyServiceClient/list_companies.php +++ b/AdsAdManager/samples/V1/CompanyServiceClient/list_companies.php @@ -29,9 +29,9 @@ use Google\ApiCore\PagedListResponse; /** - * Lists `Company` objects. + * Lists [Company][google.ads.admanager.v1.Company] objects. * - * @param string $formattedParent The parent, which owns this collection of Companies. + * @param string $formattedParent The parent, which owns this collection of [Companies][]. * Format: `networks/{network_code}` * Please see {@see CompanyServiceClient::networkName()} for help formatting this field. */ diff --git a/AdsAdManager/samples/V1/CompanyServiceClient/update_company.php b/AdsAdManager/samples/V1/CompanyServiceClient/update_company.php new file mode 100644 index 000000000000..c73e77619669 --- /dev/null +++ b/AdsAdManager/samples/V1/CompanyServiceClient/update_company.php @@ -0,0 +1,79 @@ +setDisplayName($companyDisplayName) + ->setType($companyType); + $request = (new UpdateCompanyRequest()) + ->setCompany($company); + + // Call the API and handle any network failures. + try { + /** @var Company $response */ + $response = $companyServiceClient->updateCompany($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $companyDisplayName = '[DISPLAY_NAME]'; + $companyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + + update_company_sample($companyDisplayName, $companyType); +} +// [END admanager_v1_generated_CompanyService_UpdateCompany_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_activate_creative_wrappers.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_activate_creative_wrappers.php new file mode 100644 index 000000000000..3cad044671de --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_activate_creative_wrappers.php @@ -0,0 +1,82 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchActivateCreativeWrappersResponse $response */ + $response = $creativeWrapperServiceClient->batchActivateCreativeWrappers($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = CreativeWrapperServiceClient::creativeWrapperName( + '[NETWORK_CODE]', + '[CREATIVE_WRAPPER]' + ); + + batch_activate_creative_wrappers_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_CreativeWrapperService_BatchActivateCreativeWrappers_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_create_creative_wrappers.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_create_creative_wrappers.php new file mode 100644 index 000000000000..1be9752de051 --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_create_creative_wrappers.php @@ -0,0 +1,113 @@ +setLabel($formattedRequestsCreativeWrapperLabel) + ->setCreativeWrapperType($requestsCreativeWrapperCreativeWrapperType); + $createCreativeWrapperRequest = (new CreateCreativeWrapperRequest()) + ->setParent($formattedRequestsParent) + ->setCreativeWrapper($requestsCreativeWrapper); + $requests = [$createCreativeWrapperRequest,]; + $request = (new BatchCreateCreativeWrappersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateCreativeWrappersResponse $response */ + $response = $creativeWrapperServiceClient->batchCreateCreativeWrappers($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsCreativeWrapperLabel = CreativeWrapperServiceClient::labelName( + '[NETWORK_CODE]', + '[LABEL]' + ); + $requestsCreativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + + batch_create_creative_wrappers_sample( + $formattedParent, + $formattedRequestsParent, + $formattedRequestsCreativeWrapperLabel, + $requestsCreativeWrapperCreativeWrapperType + ); +} +// [END admanager_v1_generated_CreativeWrapperService_BatchCreateCreativeWrappers_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_deactivate_creative_wrappers.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_deactivate_creative_wrappers.php new file mode 100644 index 000000000000..baf98f9632c0 --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_deactivate_creative_wrappers.php @@ -0,0 +1,83 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchDeactivateCreativeWrappersResponse $response */ + $response = $creativeWrapperServiceClient->batchDeactivateCreativeWrappers($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = CreativeWrapperServiceClient::creativeWrapperName( + '[NETWORK_CODE]', + '[CREATIVE_WRAPPER]' + ); + + batch_deactivate_creative_wrappers_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_CreativeWrapperService_BatchDeactivateCreativeWrappers_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_update_creative_wrappers.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_update_creative_wrappers.php new file mode 100644 index 000000000000..0d0a66dd81de --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/batch_update_creative_wrappers.php @@ -0,0 +1,106 @@ +setLabel($formattedRequestsCreativeWrapperLabel) + ->setCreativeWrapperType($requestsCreativeWrapperCreativeWrapperType); + $updateCreativeWrapperRequest = (new UpdateCreativeWrapperRequest()) + ->setCreativeWrapper($requestsCreativeWrapper); + $requests = [$updateCreativeWrapperRequest,]; + $request = (new BatchUpdateCreativeWrappersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateCreativeWrappersResponse $response */ + $response = $creativeWrapperServiceClient->batchUpdateCreativeWrappers($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsCreativeWrapperLabel = CreativeWrapperServiceClient::labelName( + '[NETWORK_CODE]', + '[LABEL]' + ); + $requestsCreativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + + batch_update_creative_wrappers_sample( + $formattedParent, + $formattedRequestsCreativeWrapperLabel, + $requestsCreativeWrapperCreativeWrapperType + ); +} +// [END admanager_v1_generated_CreativeWrapperService_BatchUpdateCreativeWrappers_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/create_creative_wrapper.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/create_creative_wrapper.php new file mode 100644 index 000000000000..822db4d114c1 --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/create_creative_wrapper.php @@ -0,0 +1,99 @@ +setLabel($formattedCreativeWrapperLabel) + ->setCreativeWrapperType($creativeWrapperCreativeWrapperType); + $request = (new CreateCreativeWrapperRequest()) + ->setParent($formattedParent) + ->setCreativeWrapper($creativeWrapper); + + // Call the API and handle any network failures. + try { + /** @var CreativeWrapper $response */ + $response = $creativeWrapperServiceClient->createCreativeWrapper($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + $formattedCreativeWrapperLabel = CreativeWrapperServiceClient::labelName( + '[NETWORK_CODE]', + '[LABEL]' + ); + $creativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + + create_creative_wrapper_sample( + $formattedParent, + $formattedCreativeWrapperLabel, + $creativeWrapperCreativeWrapperType + ); +} +// [END admanager_v1_generated_CreativeWrapperService_CreateCreativeWrapper_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/get_creative_wrapper.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/get_creative_wrapper.php new file mode 100644 index 000000000000..e4c5e7412d0b --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/get_creative_wrapper.php @@ -0,0 +1,75 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var CreativeWrapper $response */ + $response = $creativeWrapperServiceClient->getCreativeWrapper($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = CreativeWrapperServiceClient::creativeWrapperName( + '[NETWORK_CODE]', + '[CREATIVE_WRAPPER]' + ); + + get_creative_wrapper_sample($formattedName); +} +// [END admanager_v1_generated_CreativeWrapperService_GetCreativeWrapper_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/list_creative_wrappers.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/list_creative_wrappers.php new file mode 100644 index 000000000000..c3d419a79c3a --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/list_creative_wrappers.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $creativeWrapperServiceClient->listCreativeWrappers($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = CreativeWrapperServiceClient::networkName('[NETWORK_CODE]'); + + list_creative_wrappers_sample($formattedParent); +} +// [END admanager_v1_generated_CreativeWrapperService_ListCreativeWrappers_sync] diff --git a/AdsAdManager/samples/V1/CreativeWrapperServiceClient/update_creative_wrapper.php b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/update_creative_wrapper.php new file mode 100644 index 000000000000..e968b23f6b31 --- /dev/null +++ b/AdsAdManager/samples/V1/CreativeWrapperServiceClient/update_creative_wrapper.php @@ -0,0 +1,89 @@ +setLabel($formattedCreativeWrapperLabel) + ->setCreativeWrapperType($creativeWrapperCreativeWrapperType); + $request = (new UpdateCreativeWrapperRequest()) + ->setCreativeWrapper($creativeWrapper); + + // Call the API and handle any network failures. + try { + /** @var CreativeWrapper $response */ + $response = $creativeWrapperServiceClient->updateCreativeWrapper($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedCreativeWrapperLabel = CreativeWrapperServiceClient::labelName( + '[NETWORK_CODE]', + '[LABEL]' + ); + $creativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + + update_creative_wrapper_sample($formattedCreativeWrapperLabel, $creativeWrapperCreativeWrapperType); +} +// [END admanager_v1_generated_CreativeWrapperService_UpdateCreativeWrapper_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_activate_dai_authentication_keys.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_activate_dai_authentication_keys.php new file mode 100644 index 000000000000..e1779a05e6ee --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_activate_dai_authentication_keys.php @@ -0,0 +1,83 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchActivateDaiAuthenticationKeysResponse $response */ + $response = $daiAuthenticationKeyServiceClient->batchActivateDaiAuthenticationKeys($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = DaiAuthenticationKeyServiceClient::daiAuthenticationKeyName( + '[NETWORK_CODE]', + '[DAI_AUTHENTICATION_KEY]' + ); + + batch_activate_dai_authentication_keys_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_BatchActivateDaiAuthenticationKeys_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_create_dai_authentication_keys.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_create_dai_authentication_keys.php new file mode 100644 index 000000000000..b735bd6d0ff2 --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_create_dai_authentication_keys.php @@ -0,0 +1,95 @@ +setDisplayName($requestsDaiAuthenticationKeyDisplayName); + $createDaiAuthenticationKeyRequest = (new CreateDaiAuthenticationKeyRequest()) + ->setParent($formattedRequestsParent) + ->setDaiAuthenticationKey($requestsDaiAuthenticationKey); + $requests = [$createDaiAuthenticationKeyRequest,]; + $request = (new BatchCreateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateDaiAuthenticationKeysResponse $response */ + $response = $daiAuthenticationKeyServiceClient->batchCreateDaiAuthenticationKeys($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + $requestsDaiAuthenticationKeyDisplayName = '[DISPLAY_NAME]'; + + batch_create_dai_authentication_keys_sample( + $formattedParent, + $formattedRequestsParent, + $requestsDaiAuthenticationKeyDisplayName + ); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_BatchCreateDaiAuthenticationKeys_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_deactivate_dai_authentication_keys.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_deactivate_dai_authentication_keys.php new file mode 100644 index 000000000000..9b290510f80e --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_deactivate_dai_authentication_keys.php @@ -0,0 +1,83 @@ +setParent($formattedParent) + ->setNames($formattedNames); + + // Call the API and handle any network failures. + try { + /** @var BatchDeactivateDaiAuthenticationKeysResponse $response */ + $response = $daiAuthenticationKeyServiceClient->batchDeactivateDaiAuthenticationKeys($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + $formattedNamesElement = DaiAuthenticationKeyServiceClient::daiAuthenticationKeyName( + '[NETWORK_CODE]', + '[DAI_AUTHENTICATION_KEY]' + ); + + batch_deactivate_dai_authentication_keys_sample($formattedParent, $formattedNamesElement); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_BatchDeactivateDaiAuthenticationKeys_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_update_dai_authentication_keys.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_update_dai_authentication_keys.php new file mode 100644 index 000000000000..ff0900321f6c --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/batch_update_dai_authentication_keys.php @@ -0,0 +1,88 @@ +setDisplayName($requestsDaiAuthenticationKeyDisplayName); + $updateDaiAuthenticationKeyRequest = (new UpdateDaiAuthenticationKeyRequest()) + ->setDaiAuthenticationKey($requestsDaiAuthenticationKey); + $requests = [$updateDaiAuthenticationKeyRequest,]; + $request = (new BatchUpdateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateDaiAuthenticationKeysResponse $response */ + $response = $daiAuthenticationKeyServiceClient->batchUpdateDaiAuthenticationKeys($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + $requestsDaiAuthenticationKeyDisplayName = '[DISPLAY_NAME]'; + + batch_update_dai_authentication_keys_sample( + $formattedParent, + $requestsDaiAuthenticationKeyDisplayName + ); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_BatchUpdateDaiAuthenticationKeys_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/create_dai_authentication_key.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/create_dai_authentication_key.php new file mode 100644 index 000000000000..0f0ba87ad9ec --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/create_dai_authentication_key.php @@ -0,0 +1,79 @@ +setDisplayName($daiAuthenticationKeyDisplayName); + $request = (new CreateDaiAuthenticationKeyRequest()) + ->setParent($formattedParent) + ->setDaiAuthenticationKey($daiAuthenticationKey); + + // Call the API and handle any network failures. + try { + /** @var DaiAuthenticationKey $response */ + $response = $daiAuthenticationKeyServiceClient->createDaiAuthenticationKey($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + $daiAuthenticationKeyDisplayName = '[DISPLAY_NAME]'; + + create_dai_authentication_key_sample($formattedParent, $daiAuthenticationKeyDisplayName); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_CreateDaiAuthenticationKey_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/get_dai_authentication_key.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/get_dai_authentication_key.php new file mode 100644 index 000000000000..e88f249149ad --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/get_dai_authentication_key.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DaiAuthenticationKey $response */ + $response = $daiAuthenticationKeyServiceClient->getDaiAuthenticationKey($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DaiAuthenticationKeyServiceClient::daiAuthenticationKeyName( + '[NETWORK_CODE]', + '[DAI_AUTHENTICATION_KEY]' + ); + + get_dai_authentication_key_sample($formattedName); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_GetDaiAuthenticationKey_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/list_dai_authentication_keys.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/list_dai_authentication_keys.php new file mode 100644 index 000000000000..e1072641534d --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/list_dai_authentication_keys.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $daiAuthenticationKeyServiceClient->listDaiAuthenticationKeys($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiAuthenticationKeyServiceClient::networkName('[NETWORK_CODE]'); + + list_dai_authentication_keys_sample($formattedParent); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_ListDaiAuthenticationKeys_sync] diff --git a/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/update_dai_authentication_key.php b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/update_dai_authentication_key.php new file mode 100644 index 000000000000..625e62f51b83 --- /dev/null +++ b/AdsAdManager/samples/V1/DaiAuthenticationKeyServiceClient/update_dai_authentication_key.php @@ -0,0 +1,72 @@ +setDisplayName($daiAuthenticationKeyDisplayName); + $request = (new UpdateDaiAuthenticationKeyRequest()) + ->setDaiAuthenticationKey($daiAuthenticationKey); + + // Call the API and handle any network failures. + try { + /** @var DaiAuthenticationKey $response */ + $response = $daiAuthenticationKeyServiceClient->updateDaiAuthenticationKey($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $daiAuthenticationKeyDisplayName = '[DISPLAY_NAME]'; + + update_dai_authentication_key_sample($daiAuthenticationKeyDisplayName); +} +// [END admanager_v1_generated_DaiAuthenticationKeyService_UpdateDaiAuthenticationKey_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_activate_dai_encoding_profiles.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_activate_dai_encoding_profiles.php new file mode 100644 index 000000000000..23a7155a1d4b --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_activate_dai_encoding_profiles.php @@ -0,0 +1,86 @@ +setName($formattedRequestsName); + $requests = [$activateDaiEncodingProfileRequest,]; + $request = (new BatchActivateDaiEncodingProfilesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchActivateDaiEncodingProfilesResponse $response */ + $response = $daiEncodingProfileServiceClient->batchActivateDaiEncodingProfiles($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsName = DaiEncodingProfileServiceClient::daiEncodingProfileName( + '[NETWORK_CODE]', + '[DAI_ENCODING_PROFILE]' + ); + + batch_activate_dai_encoding_profiles_sample($formattedParent, $formattedRequestsName); +} +// [END admanager_v1_generated_DaiEncodingProfileService_BatchActivateDaiEncodingProfiles_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_archive_dai_encoding_profiles.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_archive_dai_encoding_profiles.php new file mode 100644 index 000000000000..9b279b8a404f --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_archive_dai_encoding_profiles.php @@ -0,0 +1,86 @@ +setName($formattedRequestsName); + $requests = [$archiveDaiEncodingProfileRequest,]; + $request = (new BatchArchiveDaiEncodingProfilesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchArchiveDaiEncodingProfilesResponse $response */ + $response = $daiEncodingProfileServiceClient->batchArchiveDaiEncodingProfiles($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsName = DaiEncodingProfileServiceClient::daiEncodingProfileName( + '[NETWORK_CODE]', + '[DAI_ENCODING_PROFILE]' + ); + + batch_archive_dai_encoding_profiles_sample($formattedParent, $formattedRequestsName); +} +// [END admanager_v1_generated_DaiEncodingProfileService_BatchArchiveDaiEncodingProfiles_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_create_dai_encoding_profiles.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_create_dai_encoding_profiles.php new file mode 100644 index 000000000000..0e7982281bbb --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_create_dai_encoding_profiles.php @@ -0,0 +1,113 @@ +, [, ], + * the white space character. + * @param int $requestsDaiEncodingProfileVariantType The variant playlist type that this DaiEncodingProfile + * represents. + * @param int $requestsDaiEncodingProfileContainerType The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + */ +function batch_create_dai_encoding_profiles_sample( + string $formattedParent, + string $formattedRequestsParent, + string $requestsDaiEncodingProfileDisplayName, + int $requestsDaiEncodingProfileVariantType, + int $requestsDaiEncodingProfileContainerType +): void { + // Create a client. + $daiEncodingProfileServiceClient = new DaiEncodingProfileServiceClient(); + + // Prepare the request message. + $requestsDaiEncodingProfile = (new DaiEncodingProfile()) + ->setDisplayName($requestsDaiEncodingProfileDisplayName) + ->setVariantType($requestsDaiEncodingProfileVariantType) + ->setContainerType($requestsDaiEncodingProfileContainerType); + $createDaiEncodingProfileRequest = (new CreateDaiEncodingProfileRequest()) + ->setParent($formattedRequestsParent) + ->setDaiEncodingProfile($requestsDaiEncodingProfile); + $requests = [$createDaiEncodingProfileRequest,]; + $request = (new BatchCreateDaiEncodingProfilesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateDaiEncodingProfilesResponse $response */ + $response = $daiEncodingProfileServiceClient->batchCreateDaiEncodingProfiles($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + $requestsDaiEncodingProfileDisplayName = '[DISPLAY_NAME]'; + $requestsDaiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $requestsDaiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + + batch_create_dai_encoding_profiles_sample( + $formattedParent, + $formattedRequestsParent, + $requestsDaiEncodingProfileDisplayName, + $requestsDaiEncodingProfileVariantType, + $requestsDaiEncodingProfileContainerType + ); +} +// [END admanager_v1_generated_DaiEncodingProfileService_BatchCreateDaiEncodingProfiles_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_update_dai_encoding_profiles.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_update_dai_encoding_profiles.php new file mode 100644 index 000000000000..04d52723a88c --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/batch_update_dai_encoding_profiles.php @@ -0,0 +1,106 @@ +, [, ], + * the white space character. + * @param int $requestsDaiEncodingProfileVariantType The variant playlist type that this DaiEncodingProfile + * represents. + * @param int $requestsDaiEncodingProfileContainerType The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + */ +function batch_update_dai_encoding_profiles_sample( + string $formattedParent, + string $requestsDaiEncodingProfileDisplayName, + int $requestsDaiEncodingProfileVariantType, + int $requestsDaiEncodingProfileContainerType +): void { + // Create a client. + $daiEncodingProfileServiceClient = new DaiEncodingProfileServiceClient(); + + // Prepare the request message. + $requestsDaiEncodingProfile = (new DaiEncodingProfile()) + ->setDisplayName($requestsDaiEncodingProfileDisplayName) + ->setVariantType($requestsDaiEncodingProfileVariantType) + ->setContainerType($requestsDaiEncodingProfileContainerType); + $updateDaiEncodingProfileRequest = (new UpdateDaiEncodingProfileRequest()) + ->setDaiEncodingProfile($requestsDaiEncodingProfile); + $requests = [$updateDaiEncodingProfileRequest,]; + $request = (new BatchUpdateDaiEncodingProfilesRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateDaiEncodingProfilesResponse $response */ + $response = $daiEncodingProfileServiceClient->batchUpdateDaiEncodingProfiles($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + $requestsDaiEncodingProfileDisplayName = '[DISPLAY_NAME]'; + $requestsDaiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $requestsDaiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + + batch_update_dai_encoding_profiles_sample( + $formattedParent, + $requestsDaiEncodingProfileDisplayName, + $requestsDaiEncodingProfileVariantType, + $requestsDaiEncodingProfileContainerType + ); +} +// [END admanager_v1_generated_DaiEncodingProfileService_BatchUpdateDaiEncodingProfiles_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/create_dai_encoding_profile.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/create_dai_encoding_profile.php new file mode 100644 index 000000000000..ea6f652fe6c2 --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/create_dai_encoding_profile.php @@ -0,0 +1,99 @@ +, [, ], + * the white space character. + * @param int $daiEncodingProfileVariantType The variant playlist type that this DaiEncodingProfile + * represents. + * @param int $daiEncodingProfileContainerType The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + */ +function create_dai_encoding_profile_sample( + string $formattedParent, + string $daiEncodingProfileDisplayName, + int $daiEncodingProfileVariantType, + int $daiEncodingProfileContainerType +): void { + // Create a client. + $daiEncodingProfileServiceClient = new DaiEncodingProfileServiceClient(); + + // Prepare the request message. + $daiEncodingProfile = (new DaiEncodingProfile()) + ->setDisplayName($daiEncodingProfileDisplayName) + ->setVariantType($daiEncodingProfileVariantType) + ->setContainerType($daiEncodingProfileContainerType); + $request = (new CreateDaiEncodingProfileRequest()) + ->setParent($formattedParent) + ->setDaiEncodingProfile($daiEncodingProfile); + + // Call the API and handle any network failures. + try { + /** @var DaiEncodingProfile $response */ + $response = $daiEncodingProfileServiceClient->createDaiEncodingProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + $daiEncodingProfileDisplayName = '[DISPLAY_NAME]'; + $daiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $daiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + + create_dai_encoding_profile_sample( + $formattedParent, + $daiEncodingProfileDisplayName, + $daiEncodingProfileVariantType, + $daiEncodingProfileContainerType + ); +} +// [END admanager_v1_generated_DaiEncodingProfileService_CreateDaiEncodingProfile_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/get_dai_encoding_profile.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/get_dai_encoding_profile.php new file mode 100644 index 000000000000..baa386e6111b --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/get_dai_encoding_profile.php @@ -0,0 +1,76 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var DaiEncodingProfile $response */ + $response = $daiEncodingProfileServiceClient->getDaiEncodingProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = DaiEncodingProfileServiceClient::daiEncodingProfileName( + '[NETWORK_CODE]', + '[DAI_ENCODING_PROFILE]' + ); + + get_dai_encoding_profile_sample($formattedName); +} +// [END admanager_v1_generated_DaiEncodingProfileService_GetDaiEncodingProfile_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/list_dai_encoding_profiles.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/list_dai_encoding_profiles.php new file mode 100644 index 000000000000..14850c365691 --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/list_dai_encoding_profiles.php @@ -0,0 +1,75 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $daiEncodingProfileServiceClient->listDaiEncodingProfiles($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = DaiEncodingProfileServiceClient::networkName('[NETWORK_CODE]'); + + list_dai_encoding_profiles_sample($formattedParent); +} +// [END admanager_v1_generated_DaiEncodingProfileService_ListDaiEncodingProfiles_sync] diff --git a/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/update_dai_encoding_profile.php b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/update_dai_encoding_profile.php new file mode 100644 index 000000000000..605411827c38 --- /dev/null +++ b/AdsAdManager/samples/V1/DaiEncodingProfileServiceClient/update_dai_encoding_profile.php @@ -0,0 +1,92 @@ +, [, ], + * the white space character. + * @param int $daiEncodingProfileVariantType The variant playlist type that this DaiEncodingProfile + * represents. + * @param int $daiEncodingProfileContainerType The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + */ +function update_dai_encoding_profile_sample( + string $daiEncodingProfileDisplayName, + int $daiEncodingProfileVariantType, + int $daiEncodingProfileContainerType +): void { + // Create a client. + $daiEncodingProfileServiceClient = new DaiEncodingProfileServiceClient(); + + // Prepare the request message. + $daiEncodingProfile = (new DaiEncodingProfile()) + ->setDisplayName($daiEncodingProfileDisplayName) + ->setVariantType($daiEncodingProfileVariantType) + ->setContainerType($daiEncodingProfileContainerType); + $request = (new UpdateDaiEncodingProfileRequest()) + ->setDaiEncodingProfile($daiEncodingProfile); + + // Call the API and handle any network failures. + try { + /** @var DaiEncodingProfile $response */ + $response = $daiEncodingProfileServiceClient->updateDaiEncodingProfile($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $daiEncodingProfileDisplayName = '[DISPLAY_NAME]'; + $daiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $daiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + + update_dai_encoding_profile_sample( + $daiEncodingProfileDisplayName, + $daiEncodingProfileVariantType, + $daiEncodingProfileContainerType + ); +} +// [END admanager_v1_generated_DaiEncodingProfileService_UpdateDaiEncodingProfile_sync] diff --git a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php index ef0480374089..fb6132071c6a 100644 --- a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php +++ b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_create_entity_signals_mappings.php @@ -31,7 +31,7 @@ use Google\ApiCore\ApiException; /** - * API to batch create `EntitySignalsMapping` objects. + * Creates `EntitySignalsMapping` objects. * * @param string $formattedParent The parent resource where `EntitySignalsMappings` will be * created. Format: `networks/{network_code}` The parent field in the diff --git a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php index 002e8416c274..9520149c9480 100644 --- a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php +++ b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/batch_update_entity_signals_mappings.php @@ -31,7 +31,7 @@ use Google\ApiCore\ApiException; /** - * API to batch update `EntitySignalsMapping` objects. + * Batch updates `EntitySignalsMapping` objects. * * @param string $formattedParent The parent resource where `EntitySignalsMappings` will be * updated. Format: `networks/{network_code}` The parent field in the diff --git a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php index 152de6a72dc3..50720282248c 100644 --- a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php +++ b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/create_entity_signals_mapping.php @@ -29,7 +29,7 @@ use Google\ApiCore\ApiException; /** - * API to create an `EntitySignalsMapping` object. + * Creates an `EntitySignalsMapping` object. * * @param string $formattedParent The parent resource where this EntitySignalsMapping will be * created. Format: `networks/{network_code}` diff --git a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php index 7b7aaf4d0295..cab830f32665 100644 --- a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php +++ b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/get_entity_signals_mapping.php @@ -29,7 +29,7 @@ use Google\ApiCore\ApiException; /** - * API to retrieve a `EntitySignalsMapping` object. + * Retrieves a `EntitySignalsMapping` object. * * @param string $formattedName The resource name of the EntitySignalsMapping. * Format: diff --git a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php index d52e3906c8af..071543bb0cae 100644 --- a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php +++ b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/list_entity_signals_mappings.php @@ -29,7 +29,7 @@ use Google\ApiCore\PagedListResponse; /** - * API to retrieve a list of `EntitySignalsMapping` objects. + * Lists `EntitySignalsMapping` objects. * * @param string $formattedParent The parent, which owns this collection of EntitySignalsMappings. * Format: `networks/{network_code}` diff --git a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php index 3a7ea050bbbb..35b740df7452 100644 --- a/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php +++ b/AdsAdManager/samples/V1/EntitySignalsMappingServiceClient/update_entity_signals_mapping.php @@ -29,7 +29,7 @@ use Google\ApiCore\ApiException; /** - * API to update an `EntitySignalsMapping` object. + * Updates an `EntitySignalsMapping` object. * * This sample has been automatically generated and should be regarded as a code * template only. It will require modifications to work: diff --git a/AdsAdManager/samples/V1/PartnerServiceClient/batch_update_partners.php b/AdsAdManager/samples/V1/PartnerServiceClient/batch_update_partners.php new file mode 100644 index 000000000000..65bcf2948d96 --- /dev/null +++ b/AdsAdManager/samples/V1/PartnerServiceClient/batch_update_partners.php @@ -0,0 +1,88 @@ +setDisplayName($requestsPartnerDisplayName); + $updatePartnerRequest = (new UpdatePartnerRequest()) + ->setPartner($requestsPartner); + $requests = [$updatePartnerRequest,]; + $request = (new BatchUpdatePartnersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdatePartnersResponse $response */ + $response = $partnerServiceClient->batchUpdatePartners($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PartnerServiceClient::networkName('[NETWORK_CODE]'); + $requestsPartnerDisplayName = '[DISPLAY_NAME]'; + + batch_update_partners_sample($formattedParent, $requestsPartnerDisplayName); +} +// [END admanager_v1_generated_PartnerService_BatchUpdatePartners_sync] diff --git a/AdsAdManager/samples/V1/PartnerServiceClient/get_partner.php b/AdsAdManager/samples/V1/PartnerServiceClient/get_partner.php new file mode 100644 index 000000000000..9550c0e16431 --- /dev/null +++ b/AdsAdManager/samples/V1/PartnerServiceClient/get_partner.php @@ -0,0 +1,73 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var Partner $response */ + $response = $partnerServiceClient->getPartner($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = PartnerServiceClient::partnerName('[NETWORK_CODE]', '[PARTNER]'); + + get_partner_sample($formattedName); +} +// [END admanager_v1_generated_PartnerService_GetPartner_sync] diff --git a/AdsAdManager/samples/V1/PartnerServiceClient/list_partners.php b/AdsAdManager/samples/V1/PartnerServiceClient/list_partners.php new file mode 100644 index 000000000000..885ca0766b79 --- /dev/null +++ b/AdsAdManager/samples/V1/PartnerServiceClient/list_partners.php @@ -0,0 +1,76 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $partnerServiceClient->listPartners($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = PartnerServiceClient::networkName('[NETWORK_CODE]'); + + list_partners_sample($formattedParent); +} +// [END admanager_v1_generated_PartnerService_ListPartners_sync] diff --git a/AdsAdManager/samples/V1/PartnerServiceClient/update_partner.php b/AdsAdManager/samples/V1/PartnerServiceClient/update_partner.php new file mode 100644 index 000000000000..49c3c7672a66 --- /dev/null +++ b/AdsAdManager/samples/V1/PartnerServiceClient/update_partner.php @@ -0,0 +1,73 @@ +setDisplayName($partnerDisplayName); + $request = (new UpdatePartnerRequest()) + ->setPartner($partner); + + // Call the API and handle any network failures. + try { + /** @var Partner $response */ + $response = $partnerServiceClient->updatePartner($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $partnerDisplayName = '[DISPLAY_NAME]'; + + update_partner_sample($partnerDisplayName); +} +// [END admanager_v1_generated_PartnerService_UpdatePartner_sync] diff --git a/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php b/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php index b0688bd41755..579a979f9a18 100644 --- a/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php +++ b/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/get_taxonomy_category.php @@ -29,7 +29,7 @@ use Google\ApiCore\ApiException; /** - * API to retrieve a `TaxonomyCategory` object. + * Retrieves a `TaxonomyCategory` object. * * @param string $formattedName The resource name of the TaxonomyCategory. * Format: `networks/{network_code}/taxonomyCategories/{taxonomy_category_id}` diff --git a/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php b/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php index 285ee42ebaf4..16d668266514 100644 --- a/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php +++ b/AdsAdManager/samples/V1/TaxonomyCategoryServiceClient/list_taxonomy_categories.php @@ -29,7 +29,7 @@ use Google\ApiCore\PagedListResponse; /** - * API to retrieve a list of `TaxonomyCategory` objects. + * Lists `TaxonomyCategory` objects. * * @param string $formattedParent The parent, which owns this collection of TaxonomyCategories. * Format: `networks/{network_code}` diff --git a/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/batch_create_viewability_providers.php b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/batch_create_viewability_providers.php new file mode 100644 index 000000000000..6cc19fa26b1d --- /dev/null +++ b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/batch_create_viewability_providers.php @@ -0,0 +1,111 @@ +setDisplayName($requestsViewabilityProviderDisplayName) + ->setVendorKey($requestsViewabilityProviderVendorKey) + ->setVerificationScriptUrl($requestsViewabilityProviderVerificationScriptUrl); + $createViewabilityProviderRequest = (new CreateViewabilityProviderRequest()) + ->setParent($formattedRequestsParent) + ->setViewabilityProvider($requestsViewabilityProvider); + $requests = [$createViewabilityProviderRequest,]; + $request = (new BatchCreateViewabilityProvidersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchCreateViewabilityProvidersResponse $response */ + $response = $viewabilityProviderServiceClient->batchCreateViewabilityProviders($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ViewabilityProviderServiceClient::networkName('[NETWORK_CODE]'); + $formattedRequestsParent = ViewabilityProviderServiceClient::networkName('[NETWORK_CODE]'); + $requestsViewabilityProviderDisplayName = '[DISPLAY_NAME]'; + $requestsViewabilityProviderVendorKey = '[VENDOR_KEY]'; + $requestsViewabilityProviderVerificationScriptUrl = '[VERIFICATION_SCRIPT_URL]'; + + batch_create_viewability_providers_sample( + $formattedParent, + $formattedRequestsParent, + $requestsViewabilityProviderDisplayName, + $requestsViewabilityProviderVendorKey, + $requestsViewabilityProviderVerificationScriptUrl + ); +} +// [END admanager_v1_generated_ViewabilityProviderService_BatchCreateViewabilityProviders_sync] diff --git a/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/batch_update_viewability_providers.php b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/batch_update_viewability_providers.php new file mode 100644 index 000000000000..d8da0e835899 --- /dev/null +++ b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/batch_update_viewability_providers.php @@ -0,0 +1,103 @@ +setDisplayName($requestsViewabilityProviderDisplayName) + ->setVendorKey($requestsViewabilityProviderVendorKey) + ->setVerificationScriptUrl($requestsViewabilityProviderVerificationScriptUrl); + $updateViewabilityProviderRequest = (new UpdateViewabilityProviderRequest()) + ->setViewabilityProvider($requestsViewabilityProvider); + $requests = [$updateViewabilityProviderRequest,]; + $request = (new BatchUpdateViewabilityProvidersRequest()) + ->setParent($formattedParent) + ->setRequests($requests); + + // Call the API and handle any network failures. + try { + /** @var BatchUpdateViewabilityProvidersResponse $response */ + $response = $viewabilityProviderServiceClient->batchUpdateViewabilityProviders($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ViewabilityProviderServiceClient::networkName('[NETWORK_CODE]'); + $requestsViewabilityProviderDisplayName = '[DISPLAY_NAME]'; + $requestsViewabilityProviderVendorKey = '[VENDOR_KEY]'; + $requestsViewabilityProviderVerificationScriptUrl = '[VERIFICATION_SCRIPT_URL]'; + + batch_update_viewability_providers_sample( + $formattedParent, + $requestsViewabilityProviderDisplayName, + $requestsViewabilityProviderVendorKey, + $requestsViewabilityProviderVerificationScriptUrl + ); +} +// [END admanager_v1_generated_ViewabilityProviderService_BatchUpdateViewabilityProviders_sync] diff --git a/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/create_viewability_provider.php b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/create_viewability_provider.php new file mode 100644 index 000000000000..dcf37be74a9c --- /dev/null +++ b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/create_viewability_provider.php @@ -0,0 +1,97 @@ +setDisplayName($viewabilityProviderDisplayName) + ->setVendorKey($viewabilityProviderVendorKey) + ->setVerificationScriptUrl($viewabilityProviderVerificationScriptUrl); + $request = (new CreateViewabilityProviderRequest()) + ->setParent($formattedParent) + ->setViewabilityProvider($viewabilityProvider); + + // Call the API and handle any network failures. + try { + /** @var ViewabilityProvider $response */ + $response = $viewabilityProviderServiceClient->createViewabilityProvider($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ViewabilityProviderServiceClient::networkName('[NETWORK_CODE]'); + $viewabilityProviderDisplayName = '[DISPLAY_NAME]'; + $viewabilityProviderVendorKey = '[VENDOR_KEY]'; + $viewabilityProviderVerificationScriptUrl = '[VERIFICATION_SCRIPT_URL]'; + + create_viewability_provider_sample( + $formattedParent, + $viewabilityProviderDisplayName, + $viewabilityProviderVendorKey, + $viewabilityProviderVerificationScriptUrl + ); +} +// [END admanager_v1_generated_ViewabilityProviderService_CreateViewabilityProvider_sync] diff --git a/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/get_viewability_provider.php b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/get_viewability_provider.php new file mode 100644 index 000000000000..0f860f75ff24 --- /dev/null +++ b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/get_viewability_provider.php @@ -0,0 +1,77 @@ +setName($formattedName); + + // Call the API and handle any network failures. + try { + /** @var ViewabilityProvider $response */ + $response = $viewabilityProviderServiceClient->getViewabilityProvider($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedName = ViewabilityProviderServiceClient::viewabilityProviderName( + '[NETWORK_CODE]', + '[VIEWABILITY_PROVIDER]' + ); + + get_viewability_provider_sample($formattedName); +} +// [END admanager_v1_generated_ViewabilityProviderService_GetViewabilityProvider_sync] diff --git a/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/list_viewability_providers.php b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/list_viewability_providers.php new file mode 100644 index 000000000000..75b3078836a4 --- /dev/null +++ b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/list_viewability_providers.php @@ -0,0 +1,77 @@ +setParent($formattedParent); + + // Call the API and handle any network failures. + try { + /** @var PagedListResponse $response */ + $response = $viewabilityProviderServiceClient->listViewabilityProviders($request); + + foreach ($response as $element) { + printf('Element data: %s' . PHP_EOL, $element->serializeToJsonString()); + } + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $formattedParent = ViewabilityProviderServiceClient::networkName('[NETWORK_CODE]'); + + list_viewability_providers_sample($formattedParent); +} +// [END admanager_v1_generated_ViewabilityProviderService_ListViewabilityProviders_sync] diff --git a/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/update_viewability_provider.php b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/update_viewability_provider.php new file mode 100644 index 000000000000..559e825e047b --- /dev/null +++ b/AdsAdManager/samples/V1/ViewabilityProviderServiceClient/update_viewability_provider.php @@ -0,0 +1,89 @@ +setDisplayName($viewabilityProviderDisplayName) + ->setVendorKey($viewabilityProviderVendorKey) + ->setVerificationScriptUrl($viewabilityProviderVerificationScriptUrl); + $request = (new UpdateViewabilityProviderRequest()) + ->setViewabilityProvider($viewabilityProvider); + + // Call the API and handle any network failures. + try { + /** @var ViewabilityProvider $response */ + $response = $viewabilityProviderServiceClient->updateViewabilityProvider($request); + printf('Response data: %s' . PHP_EOL, $response->serializeToJsonString()); + } catch (ApiException $ex) { + printf('Call failed with message: %s' . PHP_EOL, $ex->getMessage()); + } +} + +/** + * Helper to execute the sample. + * + * This sample has been automatically generated and should be regarded as a code + * template only. It will require modifications to work: + * - It may require correct/in-range values for request initialization. + * - It may require specifying regional endpoints when creating the service client, + * please see the apiEndpoint client configuration option for more details. + */ +function callSample(): void +{ + $viewabilityProviderDisplayName = '[DISPLAY_NAME]'; + $viewabilityProviderVendorKey = '[VENDOR_KEY]'; + $viewabilityProviderVerificationScriptUrl = '[VERIFICATION_SCRIPT_URL]'; + + update_viewability_provider_sample( + $viewabilityProviderDisplayName, + $viewabilityProviderVendorKey, + $viewabilityProviderVerificationScriptUrl + ); +} +// [END admanager_v1_generated_ViewabilityProviderService_UpdateViewabilityProvider_sync] diff --git a/AdsAdManager/src/V1/ActivateDaiEncodingProfileRequest.php b/AdsAdManager/src/V1/ActivateDaiEncodingProfileRequest.php new file mode 100644 index 000000000000..7688781a45ce --- /dev/null +++ b/AdsAdManager/src/V1/ActivateDaiEncodingProfileRequest.php @@ -0,0 +1,75 @@ +google.ads.admanager.v1.ActivateDaiEncodingProfileRequest + */ +class ActivateDaiEncodingProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DaiEncodingProfile to activate. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the DaiEncodingProfile to activate. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DaiEncodingProfile to activate. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the DaiEncodingProfile to activate. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/AdUnit.php b/AdsAdManager/src/V1/AdUnit.php index fed45a305b1f..5b1788ba2d29 100644 --- a/AdsAdManager/src/V1/AdUnit.php +++ b/AdsAdManager/src/V1/AdUnit.php @@ -201,6 +201,13 @@ class AdUnit extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional bool effective_adsense_enabled = 27 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $effective_adsense_enabled = null; + /** + * Optional. Non-empty default. Defines the type of refresh rate control for + * this ad unit. This field defaults to `DISABLED`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateType refresh_rate_type = 78 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + */ + protected $refresh_rate_type = null; /** * Constructor. @@ -292,6 +299,9 @@ class AdUnit extends \Google\Protobuf\Internal\Message * from the AdSense content network. This attribute defaults to the ad unit's * parent or ancestor's setting if one has been set. If no ancestor of the ad * unit has set appliedAdsenseEnabled, the attribute is defaulted to true. + * @type int $refresh_rate_type + * Optional. Non-empty default. Defines the type of refresh rate control for + * this ad unit. This field defaults to `DISABLED`. * } */ public function __construct($data = NULL) { @@ -1183,5 +1193,43 @@ public function setEffectiveAdsenseEnabled($var) return $this; } + /** + * Optional. Non-empty default. Defines the type of refresh rate control for + * this ad unit. This field defaults to `DISABLED`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateType refresh_rate_type = 78 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * @return int + */ + public function getRefreshRateType() + { + return isset($this->refresh_rate_type) ? $this->refresh_rate_type : 0; + } + + public function hasRefreshRateType() + { + return isset($this->refresh_rate_type); + } + + public function clearRefreshRateType() + { + unset($this->refresh_rate_type); + } + + /** + * Optional. Non-empty default. Defines the type of refresh rate control for + * this ad unit. This field defaults to `DISABLED`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateType refresh_rate_type = 78 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = NON_EMPTY_DEFAULT]; + * @param int $var + * @return $this + */ + public function setRefreshRateType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\RefreshRateTypeEnum\RefreshRateType::class); + $this->refresh_rate_type = $var; + + return $this; + } + } diff --git a/AdsAdManager/src/V1/ArchiveDaiEncodingProfileRequest.php b/AdsAdManager/src/V1/ArchiveDaiEncodingProfileRequest.php new file mode 100644 index 000000000000..7b026ddf36d8 --- /dev/null +++ b/AdsAdManager/src/V1/ArchiveDaiEncodingProfileRequest.php @@ -0,0 +1,75 @@ +google.ads.admanager.v1.ArchiveDaiEncodingProfileRequest + */ +class ArchiveDaiEncodingProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DaiEncodingProfile to archive. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the DaiEncodingProfile to archive. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DaiEncodingProfile to archive. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the DaiEncodingProfile to archive. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/AudioSettings.php b/AdsAdManager/src/V1/AudioSettings.php new file mode 100644 index 000000000000..b054b395046b --- /dev/null +++ b/AdsAdManager/src/V1/AudioSettings.php @@ -0,0 +1,217 @@ +google.ads.admanager.v1.AudioSettings + */ +class AudioSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The RFC6381 codec string of the audio. + * + * Generated from protobuf field optional string codec = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $codec = null; + /** + * Required. The bitrate of the audio, in bits per second. This value must be + * between 8kbps and 250 Mbps. + * + * Generated from protobuf field optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bitrate = null; + /** + * Required. The number of audio channels, including low frequency channels. + * This value has a maximum of 8. + * + * Generated from protobuf field optional int64 channels = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $channels = null; + /** + * Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz. + * + * Generated from protobuf field optional int64 sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $sample_rate_hertz = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $codec + * Required. The RFC6381 codec string of the audio. + * @type int|string $bitrate + * Required. The bitrate of the audio, in bits per second. This value must be + * between 8kbps and 250 Mbps. + * @type int|string $channels + * Required. The number of audio channels, including low frequency channels. + * This value has a maximum of 8. + * @type int|string $sample_rate_hertz + * Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileMessages::initOnce(); + parent::__construct($data); + } + + /** + * Required. The RFC6381 codec string of the audio. + * + * Generated from protobuf field optional string codec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCodec() + { + return isset($this->codec) ? $this->codec : ''; + } + + public function hasCodec() + { + return isset($this->codec); + } + + public function clearCodec() + { + unset($this->codec); + } + + /** + * Required. The RFC6381 codec string of the audio. + * + * Generated from protobuf field optional string codec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCodec($var) + { + GPBUtil::checkString($var, True); + $this->codec = $var; + + return $this; + } + + /** + * Required. The bitrate of the audio, in bits per second. This value must be + * between 8kbps and 250 Mbps. + * + * Generated from protobuf field optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getBitrate() + { + return isset($this->bitrate) ? $this->bitrate : 0; + } + + public function hasBitrate() + { + return isset($this->bitrate); + } + + public function clearBitrate() + { + unset($this->bitrate); + } + + /** + * Required. The bitrate of the audio, in bits per second. This value must be + * between 8kbps and 250 Mbps. + * + * Generated from protobuf field optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setBitrate($var) + { + GPBUtil::checkInt64($var); + $this->bitrate = $var; + + return $this; + } + + /** + * Required. The number of audio channels, including low frequency channels. + * This value has a maximum of 8. + * + * Generated from protobuf field optional int64 channels = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getChannels() + { + return isset($this->channels) ? $this->channels : 0; + } + + public function hasChannels() + { + return isset($this->channels); + } + + public function clearChannels() + { + unset($this->channels); + } + + /** + * Required. The number of audio channels, including low frequency channels. + * This value has a maximum of 8. + * + * Generated from protobuf field optional int64 channels = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setChannels($var) + { + GPBUtil::checkInt64($var); + $this->channels = $var; + + return $this; + } + + /** + * Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz. + * + * Generated from protobuf field optional int64 sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getSampleRateHertz() + { + return isset($this->sample_rate_hertz) ? $this->sample_rate_hertz : 0; + } + + public function hasSampleRateHertz() + { + return isset($this->sample_rate_hertz); + } + + public function clearSampleRateHertz() + { + unset($this->sample_rate_hertz); + } + + /** + * Required. The audio sample rate in hertz. Must be between 44kHz and 100kHz. + * + * Generated from protobuf field optional int64 sample_rate_hertz = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setSampleRateHertz($var) + { + GPBUtil::checkInt64($var); + $this->sample_rate_hertz = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchActivateCreativeWrappersRequest.php b/AdsAdManager/src/V1/BatchActivateCreativeWrappersRequest.php new file mode 100644 index 000000000000..344c6ea7681b --- /dev/null +++ b/AdsAdManager/src/V1/BatchActivateCreativeWrappersRequest.php @@ -0,0 +1,123 @@ +google.ads.admanager.v1.BatchActivateCreativeWrappersRequest + */ +class BatchActivateCreativeWrappersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `CreativeWrapper` objects to activate. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see CreativeWrapperServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `CreativeWrapper` objects to activate. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * Please see {@see CreativeWrapperServiceClient::creativeWrapperName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchActivateCreativeWrappersRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type string[] $names + * Required. The resource names of the `CreativeWrapper` objects to activate. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `CreativeWrapper` objects to activate. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `CreativeWrapper` objects to activate. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchActivateCreativeWrappersResponse.php b/AdsAdManager/src/V1/BatchActivateCreativeWrappersResponse.php new file mode 100644 index 000000000000..44dbe31db1c5 --- /dev/null +++ b/AdsAdManager/src/V1/BatchActivateCreativeWrappersResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchActivateCreativeWrappersResponse + */ +class BatchActivateCreativeWrappersResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/BatchActivateDaiAuthenticationKeysRequest.php b/AdsAdManager/src/V1/BatchActivateDaiAuthenticationKeysRequest.php new file mode 100644 index 000000000000..07cad5cf1943 --- /dev/null +++ b/AdsAdManager/src/V1/BatchActivateDaiAuthenticationKeysRequest.php @@ -0,0 +1,128 @@ +google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysRequest + */ +class BatchActivateDaiAuthenticationKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see DaiAuthenticationKeyServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * Please see {@see DaiAuthenticationKeyServiceClient::daiAuthenticationKeyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchActivateDaiAuthenticationKeysRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type string[] $names + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchActivateDaiAuthenticationKeysResponse.php b/AdsAdManager/src/V1/BatchActivateDaiAuthenticationKeysResponse.php new file mode 100644 index 000000000000..9aa2ad4aa5fa --- /dev/null +++ b/AdsAdManager/src/V1/BatchActivateDaiAuthenticationKeysResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchActivateDaiAuthenticationKeysResponse + */ +class BatchActivateDaiAuthenticationKeysResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/BatchActivateDaiEncodingProfilesRequest.php b/AdsAdManager/src/V1/BatchActivateDaiEncodingProfilesRequest.php new file mode 100644 index 000000000000..4872737fad38 --- /dev/null +++ b/AdsAdManager/src/V1/BatchActivateDaiEncodingProfilesRequest.php @@ -0,0 +1,122 @@ +google.ads.admanager.v1.BatchActivateDaiEncodingProfilesRequest + */ +class BatchActivateDaiEncodingProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiEncodingProfile` objects to activate. + * A maximum of 100 objects can be activated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ActivateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see DaiEncodingProfileServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\ActivateDaiEncodingProfileRequest[] $requests Required. The `DaiEncodingProfile` objects to activate. + * A maximum of 100 objects can be activated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchActivateDaiEncodingProfilesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\ActivateDaiEncodingProfileRequest[] $requests + * Required. The `DaiEncodingProfile` objects to activate. + * A maximum of 100 objects can be activated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiEncodingProfile` objects to activate. + * A maximum of 100 objects can be activated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ActivateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\ActivateDaiEncodingProfileRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `DaiEncodingProfile` objects to activate. + * A maximum of 100 objects can be activated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ActivateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ActivateDaiEncodingProfileRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ActivateDaiEncodingProfileRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchActivateDaiEncodingProfilesResponse.php b/AdsAdManager/src/V1/BatchActivateDaiEncodingProfilesResponse.php new file mode 100644 index 000000000000..c87609b13066 --- /dev/null +++ b/AdsAdManager/src/V1/BatchActivateDaiEncodingProfilesResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchActivateDaiEncodingProfilesResponse + */ +class BatchActivateDaiEncodingProfilesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/BatchArchiveDaiEncodingProfilesRequest.php b/AdsAdManager/src/V1/BatchArchiveDaiEncodingProfilesRequest.php new file mode 100644 index 000000000000..0d0277a346ea --- /dev/null +++ b/AdsAdManager/src/V1/BatchArchiveDaiEncodingProfilesRequest.php @@ -0,0 +1,122 @@ +google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesRequest + */ +class BatchArchiveDaiEncodingProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiEncodingProfile` objects to archive. + * A maximum of 100 objects can be archived in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ArchiveDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see DaiEncodingProfileServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\ArchiveDaiEncodingProfileRequest[] $requests Required. The `DaiEncodingProfile` objects to archive. + * A maximum of 100 objects can be archived in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchArchiveDaiEncodingProfilesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\ArchiveDaiEncodingProfileRequest[] $requests + * Required. The `DaiEncodingProfile` objects to archive. + * A maximum of 100 objects can be archived in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiEncodingProfile` objects to archive. + * A maximum of 100 objects can be archived in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ArchiveDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\ArchiveDaiEncodingProfileRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `DaiEncodingProfile` objects to archive. + * A maximum of 100 objects can be archived in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ArchiveDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ArchiveDaiEncodingProfileRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ArchiveDaiEncodingProfileRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchArchiveDaiEncodingProfilesResponse.php b/AdsAdManager/src/V1/BatchArchiveDaiEncodingProfilesResponse.php new file mode 100644 index 000000000000..d1520441ffcb --- /dev/null +++ b/AdsAdManager/src/V1/BatchArchiveDaiEncodingProfilesResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchArchiveDaiEncodingProfilesResponse + */ +class BatchArchiveDaiEncodingProfilesResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateChildPublishersRequest.php b/AdsAdManager/src/V1/BatchCreateChildPublishersRequest.php new file mode 100644 index 000000000000..06dee17e04b5 --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateChildPublishersRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.BatchCreateChildPublishersRequest + */ +class BatchCreateChildPublishersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateChildPublisherRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to create. A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateChildPublisherRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateChildPublisherRequest must match this + * field. Please see + * {@see ChildPublisherServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateChildPublisherRequest[] $requests Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to create. A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateChildPublishersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateChildPublisherRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\CreateChildPublisherRequest[] $requests + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to create. A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateChildPublisherRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateChildPublisherRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to create. A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateChildPublisherRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreateChildPublisherRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to create. A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateChildPublisherRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreateChildPublisherRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateChildPublisherRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateChildPublishersResponse.php b/AdsAdManager/src/V1/BatchCreateChildPublishersResponse.php new file mode 100644 index 000000000000..205a5eb1611e --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateChildPublishersResponse.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.BatchCreateChildPublishersResponse + */ +class BatchCreateChildPublishersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + */ + private $child_publishers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ChildPublisher[] $child_publishers + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\ChildPublisher> + */ + public function getChildPublishers() + { + return $this->child_publishers; + } + + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + * @param \Google\Ads\AdManager\V1\ChildPublisher[] $var + * @return $this + */ + public function setChildPublishers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ChildPublisher::class); + $this->child_publishers = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateCompaniesRequest.php b/AdsAdManager/src/V1/BatchCreateCompaniesRequest.php new file mode 100644 index 000000000000..a9aec8368dfb --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateCompaniesRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateCompaniesRequest + */ +class BatchCreateCompaniesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where [Companies][] will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCompanyRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [Company][google.ads.admanager.v1.Company] objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCompanyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where [Companies][] will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCompanyRequest must match this + * field. Please see + * {@see CompanyServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateCompanyRequest[] $requests Required. The [Company][google.ads.admanager.v1.Company] objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateCompaniesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where [Companies][] will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCompanyRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\CreateCompanyRequest[] $requests + * Required. The [Company][google.ads.admanager.v1.Company] objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where [Companies][] will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCompanyRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where [Companies][] will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCompanyRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCompanyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreateCompanyRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCompanyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreateCompanyRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateCompanyRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateCompaniesResponse.php b/AdsAdManager/src/V1/BatchCreateCompaniesResponse.php new file mode 100644 index 000000000000..39c3f8d63420 --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateCompaniesResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateCompaniesResponse + */ +class BatchCreateCompaniesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [Company][google.ads.admanager.v1.Company] objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + */ + private $companies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Company[] $companies + * The [Company][google.ads.admanager.v1.Company] objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * The [Company][google.ads.admanager.v1.Company] objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\Company> + */ + public function getCompanies() + { + return $this->companies; + } + + /** + * The [Company][google.ads.admanager.v1.Company] objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + * @param \Google\Ads\AdManager\V1\Company[] $var + * @return $this + */ + public function setCompanies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Company::class); + $this->companies = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateCreativeWrappersRequest.php b/AdsAdManager/src/V1/BatchCreateCreativeWrappersRequest.php new file mode 100644 index 000000000000..f882bf46ee4d --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateCreativeWrappersRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateCreativeWrappersRequest + */ +class BatchCreateCreativeWrappersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `CreativeWrappers` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCreativeWrapperRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `CreativeWrapper` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCreativeWrapperRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `CreativeWrappers` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCreativeWrapperRequest must match this + * field. Please see + * {@see CreativeWrapperServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateCreativeWrapperRequest[] $requests Required. The `CreativeWrapper` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateCreativeWrappersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `CreativeWrappers` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCreativeWrapperRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\CreateCreativeWrapperRequest[] $requests + * Required. The `CreativeWrapper` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `CreativeWrappers` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCreativeWrapperRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `CreativeWrappers` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateCreativeWrapperRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `CreativeWrapper` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCreativeWrapperRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreateCreativeWrapperRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `CreativeWrapper` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateCreativeWrapperRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreateCreativeWrapperRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateCreativeWrapperRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateCreativeWrappersResponse.php b/AdsAdManager/src/V1/BatchCreateCreativeWrappersResponse.php new file mode 100644 index 000000000000..32032463d709 --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateCreativeWrappersResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateCreativeWrappersResponse + */ +class BatchCreateCreativeWrappersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CreativeWrapper` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + */ + private $creative_wrappers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\CreativeWrapper[] $creative_wrappers + * The `CreativeWrapper` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * The `CreativeWrapper` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreativeWrapper> + */ + public function getCreativeWrappers() + { + return $this->creative_wrappers; + } + + /** + * The `CreativeWrapper` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + * @param \Google\Ads\AdManager\V1\CreativeWrapper[] $var + * @return $this + */ + public function setCreativeWrappers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreativeWrapper::class); + $this->creative_wrappers = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateDaiAuthenticationKeysRequest.php b/AdsAdManager/src/V1/BatchCreateDaiAuthenticationKeysRequest.php new file mode 100644 index 000000000000..56df3a03dfc3 --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateDaiAuthenticationKeysRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysRequest + */ +class BatchCreateDaiAuthenticationKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `DaiAuthenticationKeys` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateDaiAuthenticationKeyRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiAuthenticationKey` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `DaiAuthenticationKeys` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateDaiAuthenticationKeyRequest must match this field. Please see + * {@see DaiAuthenticationKeyServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateDaiAuthenticationKeyRequest[] $requests Required. The `DaiAuthenticationKey` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateDaiAuthenticationKeysRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `DaiAuthenticationKeys` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateDaiAuthenticationKeyRequest must match this field. + * @type \Google\Ads\AdManager\V1\CreateDaiAuthenticationKeyRequest[] $requests + * Required. The `DaiAuthenticationKey` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `DaiAuthenticationKeys` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateDaiAuthenticationKeyRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `DaiAuthenticationKeys` will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateDaiAuthenticationKeyRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiAuthenticationKey` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreateDaiAuthenticationKeyRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `DaiAuthenticationKey` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreateDaiAuthenticationKeyRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateDaiAuthenticationKeyRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateDaiAuthenticationKeysResponse.php b/AdsAdManager/src/V1/BatchCreateDaiAuthenticationKeysResponse.php new file mode 100644 index 000000000000..d90c76f415fa --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateDaiAuthenticationKeysResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateDaiAuthenticationKeysResponse + */ +class BatchCreateDaiAuthenticationKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DaiAuthenticationKey` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + */ + private $dai_authentication_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiAuthenticationKey[] $dai_authentication_keys + * The `DaiAuthenticationKey` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * The `DaiAuthenticationKey` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\DaiAuthenticationKey> + */ + public function getDaiAuthenticationKeys() + { + return $this->dai_authentication_keys; + } + + /** + * The `DaiAuthenticationKey` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey[] $var + * @return $this + */ + public function setDaiAuthenticationKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DaiAuthenticationKey::class); + $this->dai_authentication_keys = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateDaiEncodingProfilesRequest.php b/AdsAdManager/src/V1/BatchCreateDaiEncodingProfilesRequest.php new file mode 100644 index 000000000000..3ef7bd637f87 --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateDaiEncodingProfilesRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchCreateDaiEncodingProfilesRequest + */ +class BatchCreateDaiEncodingProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `DaiEncodingProfiles` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateDaiEncodingProfileRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiEncodingProfile` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `DaiEncodingProfiles` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateDaiEncodingProfileRequest must match this + * field. Please see + * {@see DaiEncodingProfileServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateDaiEncodingProfileRequest[] $requests Required. The `DaiEncodingProfile` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateDaiEncodingProfilesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `DaiEncodingProfiles` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateDaiEncodingProfileRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\CreateDaiEncodingProfileRequest[] $requests + * Required. The `DaiEncodingProfile` objects to create. + * A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `DaiEncodingProfiles` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateDaiEncodingProfileRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `DaiEncodingProfiles` will be created. + * Format: `networks/{network_code}` + * The parent field in the CreateDaiEncodingProfileRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiEncodingProfile` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreateDaiEncodingProfileRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `DaiEncodingProfile` objects to create. + * A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreateDaiEncodingProfileRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateDaiEncodingProfileRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateDaiEncodingProfilesResponse.php b/AdsAdManager/src/V1/BatchCreateDaiEncodingProfilesResponse.php new file mode 100644 index 000000000000..c40fcc25ab6c --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateDaiEncodingProfilesResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchCreateDaiEncodingProfilesResponse + */ +class BatchCreateDaiEncodingProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DaiEncodingProfile` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + */ + private $dai_encoding_profiles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiEncodingProfile[] $dai_encoding_profiles + * The `DaiEncodingProfile` objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * The `DaiEncodingProfile` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\DaiEncodingProfile> + */ + public function getDaiEncodingProfiles() + { + return $this->dai_encoding_profiles; + } + + /** + * The `DaiEncodingProfile` objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile[] $var + * @return $this + */ + public function setDaiEncodingProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DaiEncodingProfile::class); + $this->dai_encoding_profiles = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateViewabilityProvidersRequest.php b/AdsAdManager/src/V1/BatchCreateViewabilityProvidersRequest.php new file mode 100644 index 000000000000..a04e7ac183cb --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateViewabilityProvidersRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.BatchCreateViewabilityProvidersRequest + */ +class BatchCreateViewabilityProvidersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateViewabilityProviderRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to create. A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateViewabilityProviderRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateViewabilityProviderRequest must match this field. Please see + * {@see ViewabilityProviderServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreateViewabilityProviderRequest[] $requests Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to create. A maximum of 100 objects can be created in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchCreateViewabilityProvidersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateViewabilityProviderRequest must match this field. + * @type \Google\Ads\AdManager\V1\CreateViewabilityProviderRequest[] $requests + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to create. A maximum of 100 objects can be created in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateViewabilityProviderRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * created. Format: `networks/{network_code}` The parent field in the + * CreateViewabilityProviderRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to create. A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateViewabilityProviderRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreateViewabilityProviderRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to create. A maximum of 100 objects can be created in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreateViewabilityProviderRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreateViewabilityProviderRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreateViewabilityProviderRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchCreateViewabilityProvidersResponse.php b/AdsAdManager/src/V1/BatchCreateViewabilityProvidersResponse.php new file mode 100644 index 000000000000..035987805267 --- /dev/null +++ b/AdsAdManager/src/V1/BatchCreateViewabilityProvidersResponse.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.BatchCreateViewabilityProvidersResponse + */ +class BatchCreateViewabilityProvidersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + */ + private $viewability_providers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ViewabilityProvider[] $viewability_providers + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects created. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\ViewabilityProvider> + */ + public function getViewabilityProviders() + { + return $this->viewability_providers; + } + + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects created. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + * @param \Google\Ads\AdManager\V1\ViewabilityProvider[] $var + * @return $this + */ + public function setViewabilityProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ViewabilityProvider::class); + $this->viewability_providers = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchDeactivateCreativeWrappersRequest.php b/AdsAdManager/src/V1/BatchDeactivateCreativeWrappersRequest.php new file mode 100644 index 000000000000..1d998cbb4cd6 --- /dev/null +++ b/AdsAdManager/src/V1/BatchDeactivateCreativeWrappersRequest.php @@ -0,0 +1,128 @@ +google.ads.admanager.v1.BatchDeactivateCreativeWrappersRequest + */ +class BatchDeactivateCreativeWrappersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The resource names of the `CreativeWrapper` objects to + * deactivate. Format: + * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see CreativeWrapperServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. The resource names of the `CreativeWrapper` objects to + * deactivate. Format: + * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * Please see {@see CreativeWrapperServiceClient::creativeWrapperName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchDeactivateCreativeWrappersRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type string[] $names + * Required. The resource names of the `CreativeWrapper` objects to + * deactivate. Format: + * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The resource names of the `CreativeWrapper` objects to + * deactivate. Format: + * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. The resource names of the `CreativeWrapper` objects to + * deactivate. Format: + * `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchDeactivateCreativeWrappersResponse.php b/AdsAdManager/src/V1/BatchDeactivateCreativeWrappersResponse.php new file mode 100644 index 000000000000..c479419d365f --- /dev/null +++ b/AdsAdManager/src/V1/BatchDeactivateCreativeWrappersResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchDeactivateCreativeWrappersResponse + */ +class BatchDeactivateCreativeWrappersResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/BatchDeactivateDaiAuthenticationKeysRequest.php b/AdsAdManager/src/V1/BatchDeactivateDaiAuthenticationKeysRequest.php new file mode 100644 index 000000000000..3139aa684fcd --- /dev/null +++ b/AdsAdManager/src/V1/BatchDeactivateDaiAuthenticationKeysRequest.php @@ -0,0 +1,128 @@ +google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysRequest + */ +class BatchDeactivateDaiAuthenticationKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + private $names; + + /** + * @param string $parent Required. Format: `networks/{network_code}` + * Please see {@see DaiAuthenticationKeyServiceClient::networkName()} for help formatting this field. + * @param string[] $names Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * Please see {@see DaiAuthenticationKeyServiceClient::daiAuthenticationKeyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\BatchDeactivateDaiAuthenticationKeysRequest + * + * @experimental + */ + public static function build(string $parent, array $names): self + { + return (new self()) + ->setParent($parent) + ->setNames($names); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. Format: `networks/{network_code}` + * @type string[] $names + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getNames() + { + return $this->names; + } + + /** + * Required. Resource names for the DaiAuthenticationKey. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setNames($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->names = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchDeactivateDaiAuthenticationKeysResponse.php b/AdsAdManager/src/V1/BatchDeactivateDaiAuthenticationKeysResponse.php new file mode 100644 index 000000000000..84f7240795ff --- /dev/null +++ b/AdsAdManager/src/V1/BatchDeactivateDaiAuthenticationKeysResponse.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.BatchDeactivateDaiAuthenticationKeysResponse + */ +class BatchDeactivateDaiAuthenticationKeysResponse extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateChildPublishersRequest.php b/AdsAdManager/src/V1/BatchUpdateChildPublishersRequest.php new file mode 100644 index 000000000000..58b227342961 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateChildPublishersRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.BatchUpdateChildPublishersRequest + */ +class BatchUpdateChildPublishersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateChildPublisherRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to update. A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateChildPublisherRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateChildPublisherRequest must match this + * field. Please see + * {@see ChildPublisherServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateChildPublisherRequest[] $requests Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to update. A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateChildPublishersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateChildPublisherRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\UpdateChildPublisherRequest[] $requests + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to update. A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateChildPublisherRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateChildPublisherRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to update. A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateChildPublisherRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdateChildPublisherRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects to update. A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateChildPublisherRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdateChildPublisherRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateChildPublisherRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateChildPublishersResponse.php b/AdsAdManager/src/V1/BatchUpdateChildPublishersResponse.php new file mode 100644 index 000000000000..9935f370cb22 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateChildPublishersResponse.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.BatchUpdateChildPublishersResponse + */ +class BatchUpdateChildPublishersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + */ + private $child_publishers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ChildPublisher[] $child_publishers + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\ChildPublisher> + */ + public function getChildPublishers() + { + return $this->child_publishers; + } + + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects + * updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + * @param \Google\Ads\AdManager\V1\ChildPublisher[] $var + * @return $this + */ + public function setChildPublishers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ChildPublisher::class); + $this->child_publishers = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateCompaniesRequest.php b/AdsAdManager/src/V1/BatchUpdateCompaniesRequest.php new file mode 100644 index 000000000000..d49c6e8fab92 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateCompaniesRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateCompaniesRequest + */ +class BatchUpdateCompaniesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where [Companies][] will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCompanyRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [Company][google.ads.admanager.v1.Company] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCompanyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where [Companies][] will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCompanyRequest must match this + * field. Please see + * {@see CompanyServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateCompanyRequest[] $requests Required. The [Company][google.ads.admanager.v1.Company] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateCompaniesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where [Companies][] will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCompanyRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\UpdateCompanyRequest[] $requests + * Required. The [Company][google.ads.admanager.v1.Company] objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where [Companies][] will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCompanyRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where [Companies][] will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCompanyRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCompanyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdateCompanyRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCompanyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdateCompanyRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateCompanyRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateCompaniesResponse.php b/AdsAdManager/src/V1/BatchUpdateCompaniesResponse.php new file mode 100644 index 000000000000..de51a01c309c --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateCompaniesResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateCompaniesResponse + */ +class BatchUpdateCompaniesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [Company][google.ads.admanager.v1.Company] objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + */ + private $companies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Company[] $companies + * The [Company][google.ads.admanager.v1.Company] objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * The [Company][google.ads.admanager.v1.Company] objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\Company> + */ + public function getCompanies() + { + return $this->companies; + } + + /** + * The [Company][google.ads.admanager.v1.Company] objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; + * @param \Google\Ads\AdManager\V1\Company[] $var + * @return $this + */ + public function setCompanies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Company::class); + $this->companies = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateCreativeWrappersRequest.php b/AdsAdManager/src/V1/BatchUpdateCreativeWrappersRequest.php new file mode 100644 index 000000000000..81269d2dbcac --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateCreativeWrappersRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateCreativeWrappersRequest + */ +class BatchUpdateCreativeWrappersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `CreativeWrappers` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCreativeWrapperRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `CreativeWrapper` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCreativeWrapperRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `CreativeWrappers` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCreativeWrapperRequest must match this + * field. Please see + * {@see CreativeWrapperServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateCreativeWrapperRequest[] $requests Required. The `CreativeWrapper` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateCreativeWrappersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `CreativeWrappers` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCreativeWrapperRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\UpdateCreativeWrapperRequest[] $requests + * Required. The `CreativeWrapper` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `CreativeWrappers` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCreativeWrapperRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `CreativeWrappers` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateCreativeWrapperRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `CreativeWrapper` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCreativeWrapperRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdateCreativeWrapperRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `CreativeWrapper` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateCreativeWrapperRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdateCreativeWrapperRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateCreativeWrapperRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateCreativeWrappersResponse.php b/AdsAdManager/src/V1/BatchUpdateCreativeWrappersResponse.php new file mode 100644 index 000000000000..a7870bcb9174 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateCreativeWrappersResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateCreativeWrappersResponse + */ +class BatchUpdateCreativeWrappersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CreativeWrapper` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + */ + private $creative_wrappers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\CreativeWrapper[] $creative_wrappers + * The `CreativeWrapper` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * The `CreativeWrapper` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreativeWrapper> + */ + public function getCreativeWrappers() + { + return $this->creative_wrappers; + } + + /** + * The `CreativeWrapper` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + * @param \Google\Ads\AdManager\V1\CreativeWrapper[] $var + * @return $this + */ + public function setCreativeWrappers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreativeWrapper::class); + $this->creative_wrappers = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateDaiAuthenticationKeysRequest.php b/AdsAdManager/src/V1/BatchUpdateDaiAuthenticationKeysRequest.php new file mode 100644 index 000000000000..054305719604 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateDaiAuthenticationKeysRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysRequest + */ +class BatchUpdateDaiAuthenticationKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `DaiAuthenticationKeys` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateDaiAuthenticationKeyRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiAuthenticationKey` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `DaiAuthenticationKeys` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateDaiAuthenticationKeyRequest must match this field. Please see + * {@see DaiAuthenticationKeyServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateDaiAuthenticationKeyRequest[] $requests Required. The `DaiAuthenticationKey` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateDaiAuthenticationKeysRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `DaiAuthenticationKeys` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateDaiAuthenticationKeyRequest must match this field. + * @type \Google\Ads\AdManager\V1\UpdateDaiAuthenticationKeyRequest[] $requests + * Required. The `DaiAuthenticationKey` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `DaiAuthenticationKeys` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateDaiAuthenticationKeyRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `DaiAuthenticationKeys` will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateDaiAuthenticationKeyRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiAuthenticationKey` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdateDaiAuthenticationKeyRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `DaiAuthenticationKey` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdateDaiAuthenticationKeyRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateDaiAuthenticationKeyRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateDaiAuthenticationKeysResponse.php b/AdsAdManager/src/V1/BatchUpdateDaiAuthenticationKeysResponse.php new file mode 100644 index 000000000000..277fa68f6942 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateDaiAuthenticationKeysResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateDaiAuthenticationKeysResponse + */ +class BatchUpdateDaiAuthenticationKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DaiAuthenticationKey` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + */ + private $dai_authentication_keys; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiAuthenticationKey[] $dai_authentication_keys + * The `DaiAuthenticationKey` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * The `DaiAuthenticationKey` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\DaiAuthenticationKey> + */ + public function getDaiAuthenticationKeys() + { + return $this->dai_authentication_keys; + } + + /** + * The `DaiAuthenticationKey` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey[] $var + * @return $this + */ + public function setDaiAuthenticationKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DaiAuthenticationKey::class); + $this->dai_authentication_keys = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateDaiEncodingProfilesRequest.php b/AdsAdManager/src/V1/BatchUpdateDaiEncodingProfilesRequest.php new file mode 100644 index 000000000000..4e36ea92306a --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateDaiEncodingProfilesRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesRequest + */ +class BatchUpdateDaiEncodingProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where `DaiEncodingProfiles` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateDaiEncodingProfileRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiEncodingProfile` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where `DaiEncodingProfiles` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateDaiEncodingProfileRequest must match this + * field. Please see + * {@see DaiEncodingProfileServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateDaiEncodingProfileRequest[] $requests Required. The `DaiEncodingProfile` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateDaiEncodingProfilesRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where `DaiEncodingProfiles` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateDaiEncodingProfileRequest must match this + * field. + * @type \Google\Ads\AdManager\V1\UpdateDaiEncodingProfileRequest[] $requests + * Required. The `DaiEncodingProfile` objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where `DaiEncodingProfiles` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateDaiEncodingProfileRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where `DaiEncodingProfiles` will be updated. + * Format: `networks/{network_code}` + * The parent field in the UpdateDaiEncodingProfileRequest must match this + * field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiEncodingProfile` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdateDaiEncodingProfileRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The `DaiEncodingProfile` objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateDaiEncodingProfileRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdateDaiEncodingProfileRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateDaiEncodingProfileRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateDaiEncodingProfilesResponse.php b/AdsAdManager/src/V1/BatchUpdateDaiEncodingProfilesResponse.php new file mode 100644 index 000000000000..00e8c28223d8 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateDaiEncodingProfilesResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdateDaiEncodingProfilesResponse + */ +class BatchUpdateDaiEncodingProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DaiEncodingProfile` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + */ + private $dai_encoding_profiles; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiEncodingProfile[] $dai_encoding_profiles + * The `DaiEncodingProfile` objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * The `DaiEncodingProfile` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\DaiEncodingProfile> + */ + public function getDaiEncodingProfiles() + { + return $this->dai_encoding_profiles; + } + + /** + * The `DaiEncodingProfile` objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile[] $var + * @return $this + */ + public function setDaiEncodingProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DaiEncodingProfile::class); + $this->dai_encoding_profiles = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdatePartnersRequest.php b/AdsAdManager/src/V1/BatchUpdatePartnersRequest.php new file mode 100644 index 000000000000..ecede7180b3f --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdatePartnersRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.BatchUpdatePartnersRequest + */ +class BatchUpdatePartnersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where + * [Partner][google.ads.admanager.v1.Partner]s will be updated. Format: + * `networks/{network_code}` The parent field in the + * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [Partner][google.ads.admanager.v1.Partner] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdatePartnerRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where + * [Partner][google.ads.admanager.v1.Partner]s will be updated. Format: + * `networks/{network_code}` The parent field in the + * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must + * match this field. Please see + * {@see PartnerServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdatePartnerRequest[] $requests Required. The [Partner][google.ads.admanager.v1.Partner] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdatePartnersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where + * [Partner][google.ads.admanager.v1.Partner]s will be updated. Format: + * `networks/{network_code}` The parent field in the + * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must + * match this field. + * @type \Google\Ads\AdManager\V1\UpdatePartnerRequest[] $requests + * Required. The [Partner][google.ads.admanager.v1.Partner] objects to update. + * A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where + * [Partner][google.ads.admanager.v1.Partner]s will be updated. Format: + * `networks/{network_code}` The parent field in the + * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where + * [Partner][google.ads.admanager.v1.Partner]s will be updated. Format: + * `networks/{network_code}` The parent field in the + * [UpdatePartnerRequest][google.ads.admanager.v1.UpdatePartnerRequest] must + * match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [Partner][google.ads.admanager.v1.Partner] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdatePartnerRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdatePartnerRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The [Partner][google.ads.admanager.v1.Partner] objects to update. + * A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdatePartnerRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdatePartnerRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdatePartnerRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdatePartnersResponse.php b/AdsAdManager/src/V1/BatchUpdatePartnersResponse.php new file mode 100644 index 000000000000..cc34198fcb94 --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdatePartnersResponse.php @@ -0,0 +1,67 @@ +google.ads.admanager.v1.BatchUpdatePartnersResponse + */ +class BatchUpdatePartnersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [Partner][google.ads.admanager.v1.Partner] objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Partner partners = 1; + */ + private $partners; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Partner[] $partners + * The [Partner][google.ads.admanager.v1.Partner] objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerService::initOnce(); + parent::__construct($data); + } + + /** + * The [Partner][google.ads.admanager.v1.Partner] objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Partner partners = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\Partner> + */ + public function getPartners() + { + return $this->partners; + } + + /** + * The [Partner][google.ads.admanager.v1.Partner] objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Partner partners = 1; + * @param \Google\Ads\AdManager\V1\Partner[] $var + * @return $this + */ + public function setPartners($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Partner::class); + $this->partners = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateViewabilityProvidersRequest.php b/AdsAdManager/src/V1/BatchUpdateViewabilityProvidersRequest.php new file mode 100644 index 000000000000..bbeac9bf8cfd --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateViewabilityProvidersRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.BatchUpdateViewabilityProvidersRequest + */ +class BatchUpdateViewabilityProvidersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateViewabilityProviderRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to update. A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateViewabilityProviderRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + private $requests; + + /** + * @param string $parent Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateViewabilityProviderRequest must match this field. Please see + * {@see ViewabilityProviderServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\UpdateViewabilityProviderRequest[] $requests Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to update. A maximum of 100 objects can be updated in a batch. + * + * @return \Google\Ads\AdManager\V1\BatchUpdateViewabilityProvidersRequest + * + * @experimental + */ + public static function build(string $parent, array $requests): self + { + return (new self()) + ->setParent($parent) + ->setRequests($requests); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateViewabilityProviderRequest must match this field. + * @type \Google\Ads\AdManager\V1\UpdateViewabilityProviderRequest[] $requests + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to update. A maximum of 100 objects can be updated in a batch. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateViewabilityProviderRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s will be + * updated. Format: `networks/{network_code}` The parent field in the + * UpdateViewabilityProviderRequest must match this field. + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to update. A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateViewabilityProviderRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return RepeatedField<\Google\Ads\AdManager\V1\UpdateViewabilityProviderRequest> + */ + public function getRequests() + { + return $this->requests; + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects + * to update. A maximum of 100 objects can be updated in a batch. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.UpdateViewabilityProviderRequest requests = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\UpdateViewabilityProviderRequest[] $var + * @return $this + */ + public function setRequests($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\UpdateViewabilityProviderRequest::class); + $this->requests = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/BatchUpdateViewabilityProvidersResponse.php b/AdsAdManager/src/V1/BatchUpdateViewabilityProvidersResponse.php new file mode 100644 index 000000000000..21acfba9b60e --- /dev/null +++ b/AdsAdManager/src/V1/BatchUpdateViewabilityProvidersResponse.php @@ -0,0 +1,71 @@ +google.ads.admanager.v1.BatchUpdateViewabilityProvidersResponse + */ +class BatchUpdateViewabilityProvidersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + */ + private $viewability_providers; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ViewabilityProvider[] $viewability_providers + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\ViewabilityProvider> + */ + public function getViewabilityProviders() + { + return $this->viewability_providers; + } + + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects updated. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + * @param \Google\Ads\AdManager\V1\ViewabilityProvider[] $var + * @return $this + */ + public function setViewabilityProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ViewabilityProvider::class); + $this->viewability_providers = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ChildPublisher.php b/AdsAdManager/src/V1/ChildPublisher.php index 8d303fa0c7ce..fb61fe76608d 100644 --- a/AdsAdManager/src/V1/ChildPublisher.php +++ b/AdsAdManager/src/V1/ChildPublisher.php @@ -23,6 +23,122 @@ class ChildPublisher extends \Google\Protobuf\Internal\Message * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; */ protected $name = ''; + /** + * Required. The display name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Required. The email for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional string email = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $email = null; + /** + * Immutable. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s Ad Manager + * network. + * Format: `networks/{network_code}` + * + * Generated from protobuf field optional string child_network = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + */ + protected $child_network = null; + /** + * Required. The type of delegation for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This attribute is immutable while the relationship is active. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 9 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $delegation_type = null; + /** + * Optional. The revenue share that the parent publisher will receive in + * millipercent. For example, 15000 millipercent is 15%. + * This attribute is only settable for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. Otherwise, it is read-only and always 100%. + * Additionally, this attribute is immutable while the relationship is active. + * + * Generated from protobuf field optional int64 parent_revenue_share_millipercent = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $parent_revenue_share_millipercent = null; + /** + * Optional. The seller ID for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher], as specified in + * the parent publisher's sellers.json file. + * This attribute is only applicable to Manage Inventory + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. + * + * Generated from protobuf field optional string seller_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $seller_id = null; + /** + * Output only. The overall onboarding readiness of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This status is correlated with ad serving, but does not include site-level + * approval information. + * + * Generated from protobuf field optional .google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatus readiness_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $readiness_status = null; + /** + * Output only. The status of the invitation request to the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatus invitation_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $invitation_status = null; + /** + * Output only. The approval status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatus approval_status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approval_status = null; + /** + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s identity + * verification. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatus identity_verification_status = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $identity_verification_status = null; + /** + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s address + * verification (i.e., mail PIN). + * + * Generated from protobuf field optional .google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatus address_verification_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $address_verification_status = null; + /** + * Output only. The pending onboarding tasks that must be completed by the + * child publisher before Google's policy compliance (i.e. + * [DelegationApprovalStatus.PENDING_GOOGLE_APPROVAL][]) can be verified. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTask pending_onboarding_tasks = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private $pending_onboarding_tasks; + /** + * Output only. The account status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatus account_status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $account_status = null; + /** + * Output only. Provides the approved revenue share that the parent publisher + * will receive in millipercent. For example, 15000 millipercent is 15%. + * This attribute is only set for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. + * + * Generated from protobuf field optional int64 approved_manage_account_revenue_share_millipercent = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $approved_manage_account_revenue_share_millipercent = null; /** * Constructor. @@ -34,6 +150,66 @@ class ChildPublisher extends \Google\Protobuf\Internal\Message * Identifier. The resource name of the * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format: * `networks/{network_code}/childPublishers/{child_publisher_id}` + * @type string $display_name + * Required. The display name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * @type string $email + * Required. The email for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * @type string $child_network + * Immutable. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s Ad Manager + * network. + * Format: `networks/{network_code}` + * @type int $delegation_type + * Required. The type of delegation for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This attribute is immutable while the relationship is active. + * @type int|string $parent_revenue_share_millipercent + * Optional. The revenue share that the parent publisher will receive in + * millipercent. For example, 15000 millipercent is 15%. + * This attribute is only settable for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. Otherwise, it is read-only and always 100%. + * Additionally, this attribute is immutable while the relationship is active. + * @type string $seller_id + * Optional. The seller ID for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher], as specified in + * the parent publisher's sellers.json file. + * This attribute is only applicable to Manage Inventory + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. + * @type int $readiness_status + * Output only. The overall onboarding readiness of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This status is correlated with ad serving, but does not include site-level + * approval information. + * @type int $invitation_status + * Output only. The status of the invitation request to the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * @type int $approval_status + * Output only. The approval status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * @type int $identity_verification_status + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s identity + * verification. + * @type int $address_verification_status + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s address + * verification (i.e., mail PIN). + * @type int[] $pending_onboarding_tasks + * Output only. The pending onboarding tasks that must be completed by the + * child publisher before Google's policy compliance (i.e. + * [DelegationApprovalStatus.PENDING_GOOGLE_APPROVAL][]) can be verified. + * @type int $account_status + * Output only. The account status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * @type int|string $approved_manage_account_revenue_share_millipercent + * Output only. Provides the approved revenue share that the parent publisher + * will receive in millipercent. For example, 15000 millipercent is 15%. + * This attribute is only set for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. * } */ public function __construct($data = NULL) { @@ -71,5 +247,563 @@ public function setName($var) return $this; } + /** + * Required. The display name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The email for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional string email = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Required. The email for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional string email = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Immutable. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s Ad Manager + * network. + * Format: `networks/{network_code}` + * + * Generated from protobuf field optional string child_network = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @return string + */ + public function getChildNetwork() + { + return isset($this->child_network) ? $this->child_network : ''; + } + + public function hasChildNetwork() + { + return isset($this->child_network); + } + + public function clearChildNetwork() + { + unset($this->child_network); + } + + /** + * Immutable. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s Ad Manager + * network. + * Format: `networks/{network_code}` + * + * Generated from protobuf field optional string child_network = 5 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setChildNetwork($var) + { + GPBUtil::checkString($var, True); + $this->child_network = $var; + + return $this; + } + + /** + * Required. The type of delegation for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This attribute is immutable while the relationship is active. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getDelegationType() + { + return isset($this->delegation_type) ? $this->delegation_type : 0; + } + + public function hasDelegationType() + { + return isset($this->delegation_type); + } + + public function clearDelegationType() + { + unset($this->delegation_type); + } + + /** + * Required. The type of delegation for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This attribute is immutable while the relationship is active. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationTypeEnum.DelegationType delegation_type = 9 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setDelegationType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DelegationTypeEnum\DelegationType::class); + $this->delegation_type = $var; + + return $this; + } + + /** + * Optional. The revenue share that the parent publisher will receive in + * millipercent. For example, 15000 millipercent is 15%. + * This attribute is only settable for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. Otherwise, it is read-only and always 100%. + * Additionally, this attribute is immutable while the relationship is active. + * + * Generated from protobuf field optional int64 parent_revenue_share_millipercent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return int|string + */ + public function getParentRevenueShareMillipercent() + { + return isset($this->parent_revenue_share_millipercent) ? $this->parent_revenue_share_millipercent : 0; + } + + public function hasParentRevenueShareMillipercent() + { + return isset($this->parent_revenue_share_millipercent); + } + + public function clearParentRevenueShareMillipercent() + { + unset($this->parent_revenue_share_millipercent); + } + + /** + * Optional. The revenue share that the parent publisher will receive in + * millipercent. For example, 15000 millipercent is 15%. + * This attribute is only settable for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. Otherwise, it is read-only and always 100%. + * Additionally, this attribute is immutable while the relationship is active. + * + * Generated from protobuf field optional int64 parent_revenue_share_millipercent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param int|string $var + * @return $this + */ + public function setParentRevenueShareMillipercent($var) + { + GPBUtil::checkInt64($var); + $this->parent_revenue_share_millipercent = $var; + + return $this; + } + + /** + * Optional. The seller ID for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher], as specified in + * the parent publisher's sellers.json file. + * This attribute is only applicable to Manage Inventory + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. + * + * Generated from protobuf field optional string seller_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getSellerId() + { + return isset($this->seller_id) ? $this->seller_id : ''; + } + + public function hasSellerId() + { + return isset($this->seller_id); + } + + public function clearSellerId() + { + unset($this->seller_id); + } + + /** + * Optional. The seller ID for the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher], as specified in + * the parent publisher's sellers.json file. + * This attribute is only applicable to Manage Inventory + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. + * + * Generated from protobuf field optional string seller_id = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setSellerId($var) + { + GPBUtil::checkString($var, True); + $this->seller_id = $var; + + return $this; + } + + /** + * Output only. The overall onboarding readiness of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This status is correlated with ad serving, but does not include site-level + * approval information. + * + * Generated from protobuf field optional .google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatus readiness_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getReadinessStatus() + { + return isset($this->readiness_status) ? $this->readiness_status : 0; + } + + public function hasReadinessStatus() + { + return isset($this->readiness_status); + } + + public function clearReadinessStatus() + { + unset($this->readiness_status); + } + + /** + * Output only. The overall onboarding readiness of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * This status is correlated with ad serving, but does not include site-level + * approval information. + * + * Generated from protobuf field optional .google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatus readiness_status = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setReadinessStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\McmReadinessStatusEnum\McmReadinessStatus::class); + $this->readiness_status = $var; + + return $this; + } + + /** + * Output only. The status of the invitation request to the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatus invitation_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getInvitationStatus() + { + return isset($this->invitation_status) ? $this->invitation_status : 0; + } + + public function hasInvitationStatus() + { + return isset($this->invitation_status); + } + + public function clearInvitationStatus() + { + unset($this->invitation_status); + } + + /** + * Output only. The status of the invitation request to the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatus invitation_status = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setInvitationStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DelegationInvitationStatusEnum\DelegationInvitationStatus::class); + $this->invitation_status = $var; + + return $this; + } + + /** + * Output only. The approval status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatus approval_status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getApprovalStatus() + { + return isset($this->approval_status) ? $this->approval_status : 0; + } + + public function hasApprovalStatus() + { + return isset($this->approval_status); + } + + public function clearApprovalStatus() + { + unset($this->approval_status); + } + + /** + * Output only. The approval status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatus approval_status = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setApprovalStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DelegationApprovalStatusEnum\DelegationApprovalStatus::class); + $this->approval_status = $var; + + return $this; + } + + /** + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s identity + * verification. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatus identity_verification_status = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getIdentityVerificationStatus() + { + return isset($this->identity_verification_status) ? $this->identity_verification_status : 0; + } + + public function hasIdentityVerificationStatus() + { + return isset($this->identity_verification_status); + } + + public function clearIdentityVerificationStatus() + { + unset($this->identity_verification_status); + } + + /** + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s identity + * verification. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatus identity_verification_status = 17 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setIdentityVerificationStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ChildPublisherIdentityVerificationStatusEnum\ChildPublisherIdentityVerificationStatus::class); + $this->identity_verification_status = $var; + + return $this; + } + + /** + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s address + * verification (i.e., mail PIN). + * + * Generated from protobuf field optional .google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatus address_verification_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAddressVerificationStatus() + { + return isset($this->address_verification_status) ? $this->address_verification_status : 0; + } + + public function hasAddressVerificationStatus() + { + return isset($this->address_verification_status); + } + + public function clearAddressVerificationStatus() + { + unset($this->address_verification_status); + } + + /** + * Output only. The status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s address + * verification (i.e., mail PIN). + * + * Generated from protobuf field optional .google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatus address_verification_status = 19 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAddressVerificationStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ChildPublisherAddressVerificationStatusEnum\ChildPublisherAddressVerificationStatus::class); + $this->address_verification_status = $var; + + return $this; + } + + /** + * Output only. The pending onboarding tasks that must be completed by the + * child publisher before Google's policy compliance (i.e. + * [DelegationApprovalStatus.PENDING_GOOGLE_APPROVAL][]) can be verified. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTask pending_onboarding_tasks = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return RepeatedField + */ + public function getPendingOnboardingTasks() + { + return $this->pending_onboarding_tasks; + } + + /** + * Output only. The pending onboarding tasks that must be completed by the + * child publisher before Google's policy compliance (i.e. + * [DelegationApprovalStatus.PENDING_GOOGLE_APPROVAL][]) can be verified. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTask pending_onboarding_tasks = 22 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int[] $var + * @return $this + */ + public function setPendingOnboardingTasks($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::ENUM, \Google\Ads\AdManager\V1\ChildPublisherOnboardingTaskEnum\ChildPublisherOnboardingTask::class); + $this->pending_onboarding_tasks = $arr; + + return $this; + } + + /** + * Output only. The account status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatus account_status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getAccountStatus() + { + return isset($this->account_status) ? $this->account_status : 0; + } + + public function hasAccountStatus() + { + return isset($this->account_status); + } + + public function clearAccountStatus() + { + unset($this->account_status); + } + + /** + * Output only. The account status of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatus account_status = 26 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setAccountStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DelegationAccountStatusEnum\DelegationAccountStatus::class); + $this->account_status = $var; + + return $this; + } + + /** + * Output only. Provides the approved revenue share that the parent publisher + * will receive in millipercent. For example, 15000 millipercent is 15%. + * This attribute is only set for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. + * + * Generated from protobuf field optional int64 approved_manage_account_revenue_share_millipercent = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int|string + */ + public function getApprovedManageAccountRevenueShareMillipercent() + { + return isset($this->approved_manage_account_revenue_share_millipercent) ? $this->approved_manage_account_revenue_share_millipercent : 0; + } + + public function hasApprovedManageAccountRevenueShareMillipercent() + { + return isset($this->approved_manage_account_revenue_share_millipercent); + } + + public function clearApprovedManageAccountRevenueShareMillipercent() + { + unset($this->approved_manage_account_revenue_share_millipercent); + } + + /** + * Output only. Provides the approved revenue share that the parent publisher + * will receive in millipercent. For example, 15000 millipercent is 15%. + * This attribute is only set for Manage Account + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s of non-reseller + * parent publishers. + * + * Generated from protobuf field optional int64 approved_manage_account_revenue_share_millipercent = 29 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int|string $var + * @return $this + */ + public function setApprovedManageAccountRevenueShareMillipercent($var) + { + GPBUtil::checkInt64($var); + $this->approved_manage_account_revenue_share_millipercent = $var; + + return $this; + } + } diff --git a/AdsAdManager/src/V1/ChildPublisherAddressVerificationStatusEnum.php b/AdsAdManager/src/V1/ChildPublisherAddressVerificationStatusEnum.php new file mode 100644 index 000000000000..cdbe3329d615 --- /dev/null +++ b/AdsAdManager/src/V1/ChildPublisherAddressVerificationStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum + */ +class ChildPublisherAddressVerificationStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ChildPublisherAddressVerificationStatusEnum/ChildPublisherAddressVerificationStatus.php b/AdsAdManager/src/V1/ChildPublisherAddressVerificationStatusEnum/ChildPublisherAddressVerificationStatus.php new file mode 100644 index 000000000000..1cd569143970 --- /dev/null +++ b/AdsAdManager/src/V1/ChildPublisherAddressVerificationStatusEnum/ChildPublisherAddressVerificationStatus.php @@ -0,0 +1,90 @@ +google.ads.admanager.v1.ChildPublisherAddressVerificationStatusEnum.ChildPublisherAddressVerificationStatus + */ +class ChildPublisherAddressVerificationStatus +{ + /** + * No value specified + * + * Generated from protobuf enum CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED = 0; + */ + const CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED = 0; + /** + * Indicates publisher is exempt from address verification. + * + * Generated from protobuf enum EXEMPT = 1; + */ + const EXEMPT = 1; + /** + * Indicates publisher hasn't completed address verification before the + * expiration date. + * + * Generated from protobuf enum EXPIRED = 2; + */ + const EXPIRED = 2; + /** + * Indicates publisher failed address verification. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * Indicates publisher's address pin has been mailed and must be verified. + * + * Generated from protobuf enum PENDING = 4; + */ + const PENDING = 4; + /** + * Indicates publisher is not eligible for address verification. + * + * Generated from protobuf enum NOT_ELIGIBLE = 5; + */ + const NOT_ELIGIBLE = 5; + /** + * Indicates publisher's address is verified. + * + * Generated from protobuf enum VERIFIED = 6; + */ + const VERIFIED = 6; + + private static $valueToName = [ + self::CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED => 'CHILD_PUBLISHER_ADDRESS_VERIFICATION_STATUS_UNSPECIFIED', + self::EXEMPT => 'EXEMPT', + self::EXPIRED => 'EXPIRED', + self::FAILED => 'FAILED', + self::PENDING => 'PENDING', + self::NOT_ELIGIBLE => 'NOT_ELIGIBLE', + self::VERIFIED => 'VERIFIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/ChildPublisherIdentityVerificationStatusEnum.php b/AdsAdManager/src/V1/ChildPublisherIdentityVerificationStatusEnum.php new file mode 100644 index 000000000000..94338e9fc7fc --- /dev/null +++ b/AdsAdManager/src/V1/ChildPublisherIdentityVerificationStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum + */ +class ChildPublisherIdentityVerificationStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ChildPublisherIdentityVerificationStatusEnum/ChildPublisherIdentityVerificationStatus.php b/AdsAdManager/src/V1/ChildPublisherIdentityVerificationStatusEnum/ChildPublisherIdentityVerificationStatus.php new file mode 100644 index 000000000000..0eccf3b2868e --- /dev/null +++ b/AdsAdManager/src/V1/ChildPublisherIdentityVerificationStatusEnum/ChildPublisherIdentityVerificationStatus.php @@ -0,0 +1,90 @@ +google.ads.admanager.v1.ChildPublisherIdentityVerificationStatusEnum.ChildPublisherIdentityVerificationStatus + */ +class ChildPublisherIdentityVerificationStatus +{ + /** + * No value specified + * + * Generated from protobuf enum CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED = 0; + */ + const CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED = 0; + /** + * Indicates publisher is exempt from identify verification. + * + * Generated from protobuf enum EXEMPT = 1; + */ + const EXEMPT = 1; + /** + * Indicates publisher hasn't completed identity verification before the + * expiration date. + * + * Generated from protobuf enum EXPIRED = 2; + */ + const EXPIRED = 2; + /** + * Indicates publisher failed identity verification. + * + * Generated from protobuf enum FAILED = 3; + */ + const FAILED = 3; + /** + * Indicates publisher is pending identity verification. + * + * Generated from protobuf enum PENDING = 4; + */ + const PENDING = 4; + /** + * Indicates publisher is not eligible for identity verification. + * + * Generated from protobuf enum NOT_ELIGIBLE = 5; + */ + const NOT_ELIGIBLE = 5; + /** + * Indicates publisher has completed identity verification. + * + * Generated from protobuf enum VERIFIED = 6; + */ + const VERIFIED = 6; + + private static $valueToName = [ + self::CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED => 'CHILD_PUBLISHER_IDENTITY_VERIFICATION_STATUS_UNSPECIFIED', + self::EXEMPT => 'EXEMPT', + self::EXPIRED => 'EXPIRED', + self::FAILED => 'FAILED', + self::PENDING => 'PENDING', + self::NOT_ELIGIBLE => 'NOT_ELIGIBLE', + self::VERIFIED => 'VERIFIED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/ChildPublisherOnboardingTaskEnum.php b/AdsAdManager/src/V1/ChildPublisherOnboardingTaskEnum.php new file mode 100644 index 000000000000..b2a926aae67d --- /dev/null +++ b/AdsAdManager/src/V1/ChildPublisherOnboardingTaskEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum + */ +class ChildPublisherOnboardingTaskEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ChildPublisherOnboardingTaskEnum/ChildPublisherOnboardingTask.php b/AdsAdManager/src/V1/ChildPublisherOnboardingTaskEnum/ChildPublisherOnboardingTask.php new file mode 100644 index 000000000000..59720565cd9c --- /dev/null +++ b/AdsAdManager/src/V1/ChildPublisherOnboardingTaskEnum/ChildPublisherOnboardingTask.php @@ -0,0 +1,73 @@ +google.ads.admanager.v1.ChildPublisherOnboardingTaskEnum.ChildPublisherOnboardingTask + */ +class ChildPublisherOnboardingTask +{ + /** + * No value specified + * + * Generated from protobuf enum CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED = 0; + */ + const CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED = 0; + /** + * Indicates the child publisher is required to create a payments billing + * profile. + * + * Generated from protobuf enum BILLING_PROFILE_CREATION = 1; + */ + const BILLING_PROFILE_CREATION = 1; + /** + * Indicates the child publisher is required to verify their phone number. + * + * Generated from protobuf enum PHONE_PIN_VERIFICATION = 2; + */ + const PHONE_PIN_VERIFICATION = 2; + /** + * Indicates the child publisher is required to setup their Ad Manager + * account. + * + * Generated from protobuf enum AD_MANAGER_ACCOUNT_SETUP = 4; + */ + const AD_MANAGER_ACCOUNT_SETUP = 4; + + private static $valueToName = [ + self::CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED => 'CHILD_PUBLISHER_ONBOARDING_TASK_UNSPECIFIED', + self::BILLING_PROFILE_CREATION => 'BILLING_PROFILE_CREATION', + self::PHONE_PIN_VERIFICATION => 'PHONE_PIN_VERIFICATION', + self::AD_MANAGER_ACCOUNT_SETUP => 'AD_MANAGER_ACCOUNT_SETUP', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php b/AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php index 01cc965bccc8..356dc282c779 100644 --- a/AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php +++ b/AdsAdManager/src/V1/Client/AudienceSegmentServiceClient.php @@ -259,7 +259,7 @@ public function __call($method, $args) } /** - * API to retrieve an `AudienceSegment` object. + * Retrieves an `AudienceSegment` object. * * The async variant is * {@see AudienceSegmentServiceClient::getAudienceSegmentAsync()} . @@ -286,7 +286,7 @@ public function getAudienceSegment(GetAudienceSegmentRequest $request, array $ca } /** - * API to retrieve a list of `AudienceSegment` objects. + * Lists `AudienceSegment` objects. * * The async variant is * {@see AudienceSegmentServiceClient::listAudienceSegmentsAsync()} . diff --git a/AdsAdManager/src/V1/Client/ChildPublisherServiceClient.php b/AdsAdManager/src/V1/Client/ChildPublisherServiceClient.php new file mode 100644 index 000000000000..9644f64a77eb --- /dev/null +++ b/AdsAdManager/src/V1/Client/ChildPublisherServiceClient.php @@ -0,0 +1,439 @@ + batchCreateChildPublishersAsync(BatchCreateChildPublishersRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateChildPublishersAsync(BatchUpdateChildPublishersRequest $request, array $optionalArgs = []) + * @method PromiseInterface createChildPublisherAsync(CreateChildPublisherRequest $request, array $optionalArgs = []) + * @method PromiseInterface getChildPublisherAsync(GetChildPublisherRequest $request, array $optionalArgs = []) + * @method PromiseInterface listChildPublishersAsync(ListChildPublishersRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateChildPublisherAsync(UpdateChildPublisherRequest $request, array $optionalArgs = []) + */ +final class ChildPublisherServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ChildPublisherService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** + * The default scopes required by the service. + * + * @internal + */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + 'https://www.googleapis.com/auth/admanager.readonly', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/child_publisher_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/child_publisher_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/child_publisher_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * child_publisher resource. + * + * @param string $networkCode + * @param string $childPublisher + * + * @return string The formatted child_publisher resource. + */ + public static function childPublisherName(string $networkCode, string $childPublisher): string + { + return self::getPathTemplate('childPublisher')->render([ + 'network_code' => $networkCode, + 'child_publisher' => $childPublisher, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - childPublisher: networks/{network_code}/childPublishers/{child_publisher} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ChildPublisherServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ChildPublisherServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects. + * + * The async variant is + * {@see ChildPublisherServiceClient::batchCreateChildPublishersAsync()} . + * + * @example samples/V1/ChildPublisherServiceClient/batch_create_child_publishers.php + * + * @param BatchCreateChildPublishersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateChildPublishersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateChildPublishers( + BatchCreateChildPublishersRequest $request, + array $callOptions = [] + ): BatchCreateChildPublishersResponse { + return $this->startApiCall('BatchCreateChildPublishers', $request, $callOptions)->wait(); + } + + /** + * Batch updates [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects. + * + * The async variant is + * {@see ChildPublisherServiceClient::batchUpdateChildPublishersAsync()} . + * + * @example samples/V1/ChildPublisherServiceClient/batch_update_child_publishers.php + * + * @param BatchUpdateChildPublishersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateChildPublishersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateChildPublishers( + BatchUpdateChildPublishersRequest $request, + array $callOptions = [] + ): BatchUpdateChildPublishersResponse { + return $this->startApiCall('BatchUpdateChildPublishers', $request, $callOptions)->wait(); + } + + /** + * Creates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] object. + * + * The async variant is + * {@see ChildPublisherServiceClient::createChildPublisherAsync()} . + * + * @example samples/V1/ChildPublisherServiceClient/create_child_publisher.php + * + * @param CreateChildPublisherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChildPublisher + * + * @throws ApiException Thrown if the API call fails. + */ + public function createChildPublisher(CreateChildPublisherRequest $request, array $callOptions = []): ChildPublisher + { + return $this->startApiCall('CreateChildPublisher', $request, $callOptions)->wait(); + } + + /** + * Retrieves a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * object. + * + * The async variant is + * {@see ChildPublisherServiceClient::getChildPublisherAsync()} . + * + * @example samples/V1/ChildPublisherServiceClient/get_child_publisher.php + * + * @param GetChildPublisherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChildPublisher + * + * @throws ApiException Thrown if the API call fails. + */ + public function getChildPublisher(GetChildPublisherRequest $request, array $callOptions = []): ChildPublisher + { + return $this->startApiCall('GetChildPublisher', $request, $callOptions)->wait(); + } + + /** + * Lists [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects. + * + * The async variant is + * {@see ChildPublisherServiceClient::listChildPublishersAsync()} . + * + * @example samples/V1/ChildPublisherServiceClient/list_child_publishers.php + * + * @param ListChildPublishersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listChildPublishers(ListChildPublishersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListChildPublishers', $request, $callOptions); + } + + /** + * Updates a [ChildPublisher][google.ads.admanager.v1.ChildPublisher] object. + * + * The async variant is + * {@see ChildPublisherServiceClient::updateChildPublisherAsync()} . + * + * @example samples/V1/ChildPublisherServiceClient/update_child_publisher.php + * + * @param UpdateChildPublisherRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ChildPublisher + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateChildPublisher(UpdateChildPublisherRequest $request, array $callOptions = []): ChildPublisher + { + return $this->startApiCall('UpdateChildPublisher', $request, $callOptions)->wait(); + } +} diff --git a/AdsAdManager/src/V1/Client/CompanyServiceClient.php b/AdsAdManager/src/V1/Client/CompanyServiceClient.php index 54a8df38a3ca..e06029a9571b 100644 --- a/AdsAdManager/src/V1/Client/CompanyServiceClient.php +++ b/AdsAdManager/src/V1/Client/CompanyServiceClient.php @@ -24,9 +24,15 @@ namespace Google\Ads\AdManager\V1\Client; +use Google\Ads\AdManager\V1\BatchCreateCompaniesRequest; +use Google\Ads\AdManager\V1\BatchCreateCompaniesResponse; +use Google\Ads\AdManager\V1\BatchUpdateCompaniesRequest; +use Google\Ads\AdManager\V1\BatchUpdateCompaniesResponse; use Google\Ads\AdManager\V1\Company; +use Google\Ads\AdManager\V1\CreateCompanyRequest; use Google\Ads\AdManager\V1\GetCompanyRequest; use Google\Ads\AdManager\V1\ListCompaniesRequest; +use Google\Ads\AdManager\V1\UpdateCompanyRequest; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\GapicClientTrait; @@ -41,7 +47,8 @@ use Psr\Log\LoggerInterface; /** - * Service Description: Provides methods for handling `Company` objects. + * Service Description: Provides methods for handling [Company][google.ads.admanager.v1.Company] + * objects. * * This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. @@ -51,8 +58,12 @@ * name, and additionally a parseName method to extract the individual identifiers * contained within formatted names that are returned by the API. * + * @method PromiseInterface batchCreateCompaniesAsync(BatchCreateCompaniesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateCompaniesAsync(BatchUpdateCompaniesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCompanyAsync(CreateCompanyRequest $request, array $optionalArgs = []) * @method PromiseInterface getCompanyAsync(GetCompanyRequest $request, array $optionalArgs = []) * @method PromiseInterface listCompaniesAsync(ListCompaniesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCompanyAsync(UpdateCompanyRequest $request, array $optionalArgs = []) */ final class CompanyServiceClient { @@ -136,6 +147,40 @@ public static function companyName(string $networkCode, string $company): string ]); } + /** + * Formats a string containing the fully-qualified path to represent a contact + * resource. + * + * @param string $networkCode + * @param string $contact + * + * @return string The formatted contact resource. + */ + public static function contactName(string $networkCode, string $contact): string + { + return self::getPathTemplate('contact')->render([ + 'network_code' => $networkCode, + 'contact' => $contact, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a label + * resource. + * + * @param string $networkCode + * @param string $label + * + * @return string The formatted label resource. + */ + public static function labelName(string $networkCode, string $label): string + { + return self::getPathTemplate('label')->render([ + 'network_code' => $networkCode, + 'label' => $label, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a network * resource. @@ -151,12 +196,32 @@ public static function networkName(string $networkCode): string ]); } + /** + * Formats a string containing the fully-qualified path to represent a team + * resource. + * + * @param string $networkCode + * @param string $team + * + * @return string The formatted team resource. + */ + public static function teamName(string $networkCode, string $team): string + { + return self::getPathTemplate('team')->render([ + 'network_code' => $networkCode, + 'team' => $team, + ]); + } + /** * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern * - company: networks/{network_code}/companies/{company} + * - contact: networks/{network_code}/contacts/{contact} + * - label: networks/{network_code}/labels/{label} * - network: networks/{network_code} + * - team: networks/{network_code}/teams/{team} * * The optional $template argument can be supplied to specify a particular pattern, * and must match one of the templates listed above. If no $template argument is @@ -259,7 +324,89 @@ public function __call($method, $args) } /** - * Retrieves a `Company` object. + * Creates [Company][google.ads.admanager.v1.Company] objects. + * + * The async variant is {@see CompanyServiceClient::batchCreateCompaniesAsync()} . + * + * @example samples/V1/CompanyServiceClient/batch_create_companies.php + * + * @param BatchCreateCompaniesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateCompaniesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateCompanies( + BatchCreateCompaniesRequest $request, + array $callOptions = [] + ): BatchCreateCompaniesResponse { + return $this->startApiCall('BatchCreateCompanies', $request, $callOptions)->wait(); + } + + /** + * Batch updates [Company][google.ads.admanager.v1.Company] objects. + * + * The async variant is {@see CompanyServiceClient::batchUpdateCompaniesAsync()} . + * + * @example samples/V1/CompanyServiceClient/batch_update_companies.php + * + * @param BatchUpdateCompaniesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateCompaniesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateCompanies( + BatchUpdateCompaniesRequest $request, + array $callOptions = [] + ): BatchUpdateCompaniesResponse { + return $this->startApiCall('BatchUpdateCompanies', $request, $callOptions)->wait(); + } + + /** + * Creates a [Company][google.ads.admanager.v1.Company] object. + * + * The async variant is {@see CompanyServiceClient::createCompanyAsync()} . + * + * @example samples/V1/CompanyServiceClient/create_company.php + * + * @param CreateCompanyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Company + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCompany(CreateCompanyRequest $request, array $callOptions = []): Company + { + return $this->startApiCall('CreateCompany', $request, $callOptions)->wait(); + } + + /** + * Retrieves a [Company][google.ads.admanager.v1.Company] object. * * The async variant is {@see CompanyServiceClient::getCompanyAsync()} . * @@ -285,7 +432,7 @@ public function getCompany(GetCompanyRequest $request, array $callOptions = []): } /** - * Lists `Company` objects. + * Lists [Company][google.ads.admanager.v1.Company] objects. * * The async variant is {@see CompanyServiceClient::listCompaniesAsync()} . * @@ -309,4 +456,30 @@ public function listCompanies(ListCompaniesRequest $request, array $callOptions { return $this->startApiCall('ListCompanies', $request, $callOptions); } + + /** + * Updates a [Company][google.ads.admanager.v1.Company] object. + * + * The async variant is {@see CompanyServiceClient::updateCompanyAsync()} . + * + * @example samples/V1/CompanyServiceClient/update_company.php + * + * @param UpdateCompanyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Company + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCompany(UpdateCompanyRequest $request, array $callOptions = []): Company + { + return $this->startApiCall('UpdateCompany', $request, $callOptions)->wait(); + } } diff --git a/AdsAdManager/src/V1/Client/CreativeWrapperServiceClient.php b/AdsAdManager/src/V1/Client/CreativeWrapperServiceClient.php new file mode 100644 index 000000000000..3fa034078bdf --- /dev/null +++ b/AdsAdManager/src/V1/Client/CreativeWrapperServiceClient.php @@ -0,0 +1,560 @@ + batchActivateCreativeWrappersAsync(BatchActivateCreativeWrappersRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateCreativeWrappersAsync(BatchCreateCreativeWrappersRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivateCreativeWrappersAsync(BatchDeactivateCreativeWrappersRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateCreativeWrappersAsync(BatchUpdateCreativeWrappersRequest $request, array $optionalArgs = []) + * @method PromiseInterface createCreativeWrapperAsync(CreateCreativeWrapperRequest $request, array $optionalArgs = []) + * @method PromiseInterface getCreativeWrapperAsync(GetCreativeWrapperRequest $request, array $optionalArgs = []) + * @method PromiseInterface listCreativeWrappersAsync(ListCreativeWrappersRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateCreativeWrapperAsync(UpdateCreativeWrapperRequest $request, array $optionalArgs = []) + */ +final class CreativeWrapperServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.CreativeWrapperService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** + * The default scopes required by the service. + * + * @internal + */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + 'https://www.googleapis.com/auth/admanager.readonly', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/creative_wrapper_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/creative_wrapper_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/creative_wrapper_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a creative + * resource. + * + * @param string $networkCode + * @param string $creative + * + * @return string The formatted creative resource. + */ + public static function creativeName(string $networkCode, string $creative): string + { + return self::getPathTemplate('creative')->render([ + 'network_code' => $networkCode, + 'creative' => $creative, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * creative_wrapper resource. + * + * @param string $networkCode + * @param string $creativeWrapper + * + * @return string The formatted creative_wrapper resource. + */ + public static function creativeWrapperName(string $networkCode, string $creativeWrapper): string + { + return self::getPathTemplate('creativeWrapper')->render([ + 'network_code' => $networkCode, + 'creative_wrapper' => $creativeWrapper, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a label + * resource. + * + * @param string $networkCode + * @param string $label + * + * @return string The formatted label resource. + */ + public static function labelName(string $networkCode, string $label): string + { + return self::getPathTemplate('label')->render([ + 'network_code' => $networkCode, + 'label' => $label, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * third_party_company resource. + * + * @param string $networkCode + * @param string $thirdPartyCompany + * + * @return string The formatted third_party_company resource. + */ + public static function thirdPartyCompanyName(string $networkCode, string $thirdPartyCompany): string + { + return self::getPathTemplate('thirdPartyCompany')->render([ + 'network_code' => $networkCode, + 'third_party_company' => $thirdPartyCompany, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - creative: networks/{network_code}/creatives/{creative} + * - creativeWrapper: networks/{network_code}/creativeWrappers/{creative_wrapper} + * - label: networks/{network_code}/labels/{label} + * - network: networks/{network_code} + * - thirdPartyCompany: networks/{network_code}/thirdPartyCompanies/{third_party_company} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\CreativeWrapperServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new CreativeWrapperServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Batch activates `CreativeWrapper` objects. + * + * The async variant is + * {@see CreativeWrapperServiceClient::batchActivateCreativeWrappersAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/batch_activate_creative_wrappers.php + * + * @param BatchActivateCreativeWrappersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivateCreativeWrappersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivateCreativeWrappers( + BatchActivateCreativeWrappersRequest $request, + array $callOptions = [] + ): BatchActivateCreativeWrappersResponse { + return $this->startApiCall('BatchActivateCreativeWrappers', $request, $callOptions)->wait(); + } + + /** + * Creates `CreativeWrapper` objects. + * + * The async variant is + * {@see CreativeWrapperServiceClient::batchCreateCreativeWrappersAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/batch_create_creative_wrappers.php + * + * @param BatchCreateCreativeWrappersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateCreativeWrappersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateCreativeWrappers( + BatchCreateCreativeWrappersRequest $request, + array $callOptions = [] + ): BatchCreateCreativeWrappersResponse { + return $this->startApiCall('BatchCreateCreativeWrappers', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `CreativeWrapper` objects. + * + * The async variant is + * {@see CreativeWrapperServiceClient::batchDeactivateCreativeWrappersAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/batch_deactivate_creative_wrappers.php + * + * @param BatchDeactivateCreativeWrappersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivateCreativeWrappersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivateCreativeWrappers( + BatchDeactivateCreativeWrappersRequest $request, + array $callOptions = [] + ): BatchDeactivateCreativeWrappersResponse { + return $this->startApiCall('BatchDeactivateCreativeWrappers', $request, $callOptions)->wait(); + } + + /** + * Batch updates `CreativeWrapper` objects. + * + * The async variant is + * {@see CreativeWrapperServiceClient::batchUpdateCreativeWrappersAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/batch_update_creative_wrappers.php + * + * @param BatchUpdateCreativeWrappersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateCreativeWrappersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateCreativeWrappers( + BatchUpdateCreativeWrappersRequest $request, + array $callOptions = [] + ): BatchUpdateCreativeWrappersResponse { + return $this->startApiCall('BatchUpdateCreativeWrappers', $request, $callOptions)->wait(); + } + + /** + * Creates a `CreativeWrapper` object. + * + * The async variant is + * {@see CreativeWrapperServiceClient::createCreativeWrapperAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/create_creative_wrapper.php + * + * @param CreateCreativeWrapperRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CreativeWrapper + * + * @throws ApiException Thrown if the API call fails. + */ + public function createCreativeWrapper( + CreateCreativeWrapperRequest $request, + array $callOptions = [] + ): CreativeWrapper { + return $this->startApiCall('CreateCreativeWrapper', $request, $callOptions)->wait(); + } + + /** + * Retrieves a `CreativeWrapper` object. + * + * The async variant is + * {@see CreativeWrapperServiceClient::getCreativeWrapperAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/get_creative_wrapper.php + * + * @param GetCreativeWrapperRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CreativeWrapper + * + * @throws ApiException Thrown if the API call fails. + */ + public function getCreativeWrapper(GetCreativeWrapperRequest $request, array $callOptions = []): CreativeWrapper + { + return $this->startApiCall('GetCreativeWrapper', $request, $callOptions)->wait(); + } + + /** + * Lists `CreativeWrapper` objects. + * + * The async variant is + * {@see CreativeWrapperServiceClient::listCreativeWrappersAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/list_creative_wrappers.php + * + * @param ListCreativeWrappersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listCreativeWrappers( + ListCreativeWrappersRequest $request, + array $callOptions = [] + ): PagedListResponse { + return $this->startApiCall('ListCreativeWrappers', $request, $callOptions); + } + + /** + * Updates a `CreativeWrapper` object. + * + * The async variant is + * {@see CreativeWrapperServiceClient::updateCreativeWrapperAsync()} . + * + * @example samples/V1/CreativeWrapperServiceClient/update_creative_wrapper.php + * + * @param UpdateCreativeWrapperRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return CreativeWrapper + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateCreativeWrapper( + UpdateCreativeWrapperRequest $request, + array $callOptions = [] + ): CreativeWrapper { + return $this->startApiCall('UpdateCreativeWrapper', $request, $callOptions)->wait(); + } +} diff --git a/AdsAdManager/src/V1/Client/DaiAuthenticationKeyServiceClient.php b/AdsAdManager/src/V1/Client/DaiAuthenticationKeyServiceClient.php new file mode 100644 index 000000000000..d77ccbfd8b49 --- /dev/null +++ b/AdsAdManager/src/V1/Client/DaiAuthenticationKeyServiceClient.php @@ -0,0 +1,513 @@ + batchActivateDaiAuthenticationKeysAsync(BatchActivateDaiAuthenticationKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateDaiAuthenticationKeysAsync(BatchCreateDaiAuthenticationKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchDeactivateDaiAuthenticationKeysAsync(BatchDeactivateDaiAuthenticationKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateDaiAuthenticationKeysAsync(BatchUpdateDaiAuthenticationKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDaiAuthenticationKeyAsync(CreateDaiAuthenticationKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDaiAuthenticationKeyAsync(GetDaiAuthenticationKeyRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDaiAuthenticationKeysAsync(ListDaiAuthenticationKeysRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDaiAuthenticationKeyAsync(UpdateDaiAuthenticationKeyRequest $request, array $optionalArgs = []) + */ +final class DaiAuthenticationKeyServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.DaiAuthenticationKeyService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** + * The default scopes required by the service. + * + * @internal + */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + 'https://www.googleapis.com/auth/admanager.readonly', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dai_authentication_key_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dai_authentication_key_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => + __DIR__ . '/../resources/dai_authentication_key_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dai_authentication_key resource. + * + * @param string $networkCode + * @param string $daiAuthenticationKey + * + * @return string The formatted dai_authentication_key resource. + */ + public static function daiAuthenticationKeyName(string $networkCode, string $daiAuthenticationKey): string + { + return self::getPathTemplate('daiAuthenticationKey')->render([ + 'network_code' => $networkCode, + 'dai_authentication_key' => $daiAuthenticationKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - daiAuthenticationKey: networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\DaiAuthenticationKeyServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DaiAuthenticationKeyServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Activates a list of `DaiAuthenticationKey` objects. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::batchActivateDaiAuthenticationKeysAsync()} + * . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/batch_activate_dai_authentication_keys.php + * + * @param BatchActivateDaiAuthenticationKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivateDaiAuthenticationKeysResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivateDaiAuthenticationKeys( + BatchActivateDaiAuthenticationKeysRequest $request, + array $callOptions = [] + ): BatchActivateDaiAuthenticationKeysResponse { + return $this->startApiCall('BatchActivateDaiAuthenticationKeys', $request, $callOptions)->wait(); + } + + /** + * Batch creates `DaiAuthenticationKey` objects. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::batchCreateDaiAuthenticationKeysAsync()} + * . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/batch_create_dai_authentication_keys.php + * + * @param BatchCreateDaiAuthenticationKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateDaiAuthenticationKeysResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateDaiAuthenticationKeys( + BatchCreateDaiAuthenticationKeysRequest $request, + array $callOptions = [] + ): BatchCreateDaiAuthenticationKeysResponse { + return $this->startApiCall('BatchCreateDaiAuthenticationKeys', $request, $callOptions)->wait(); + } + + /** + * Deactivates a list of `DaiAuthenticationKey` objects. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::batchDeactivateDaiAuthenticationKeysAsync()} + * . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/batch_deactivate_dai_authentication_keys.php + * + * @param BatchDeactivateDaiAuthenticationKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchDeactivateDaiAuthenticationKeysResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchDeactivateDaiAuthenticationKeys( + BatchDeactivateDaiAuthenticationKeysRequest $request, + array $callOptions = [] + ): BatchDeactivateDaiAuthenticationKeysResponse { + return $this->startApiCall('BatchDeactivateDaiAuthenticationKeys', $request, $callOptions)->wait(); + } + + /** + * Batch updates `DaiAuthenticationKey` objects. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::batchUpdateDaiAuthenticationKeysAsync()} + * . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/batch_update_dai_authentication_keys.php + * + * @param BatchUpdateDaiAuthenticationKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateDaiAuthenticationKeysResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateDaiAuthenticationKeys( + BatchUpdateDaiAuthenticationKeysRequest $request, + array $callOptions = [] + ): BatchUpdateDaiAuthenticationKeysResponse { + return $this->startApiCall('BatchUpdateDaiAuthenticationKeys', $request, $callOptions)->wait(); + } + + /** + * Creates a `DaiAuthenticationKey` object. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::createDaiAuthenticationKeyAsync()} . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/create_dai_authentication_key.php + * + * @param CreateDaiAuthenticationKeyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DaiAuthenticationKey + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDaiAuthenticationKey( + CreateDaiAuthenticationKeyRequest $request, + array $callOptions = [] + ): DaiAuthenticationKey { + return $this->startApiCall('CreateDaiAuthenticationKey', $request, $callOptions)->wait(); + } + + /** + * Retrieves a `DaiAuthenticationKey` object. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::getDaiAuthenticationKeyAsync()} . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/get_dai_authentication_key.php + * + * @param GetDaiAuthenticationKeyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DaiAuthenticationKey + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDaiAuthenticationKey( + GetDaiAuthenticationKeyRequest $request, + array $callOptions = [] + ): DaiAuthenticationKey { + return $this->startApiCall('GetDaiAuthenticationKey', $request, $callOptions)->wait(); + } + + /** + * Lists `DaiAuthenticationKey` objects. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::listDaiAuthenticationKeysAsync()} . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/list_dai_authentication_keys.php + * + * @param ListDaiAuthenticationKeysRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDaiAuthenticationKeys( + ListDaiAuthenticationKeysRequest $request, + array $callOptions = [] + ): PagedListResponse { + return $this->startApiCall('ListDaiAuthenticationKeys', $request, $callOptions); + } + + /** + * Updates a `DaiAuthenticationKey` object. + * + * The async variant is + * {@see DaiAuthenticationKeyServiceClient::updateDaiAuthenticationKeyAsync()} . + * + * @example samples/V1/DaiAuthenticationKeyServiceClient/update_dai_authentication_key.php + * + * @param UpdateDaiAuthenticationKeyRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DaiAuthenticationKey + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDaiAuthenticationKey( + UpdateDaiAuthenticationKeyRequest $request, + array $callOptions = [] + ): DaiAuthenticationKey { + return $this->startApiCall('UpdateDaiAuthenticationKey', $request, $callOptions)->wait(); + } +} diff --git a/AdsAdManager/src/V1/Client/DaiEncodingProfileServiceClient.php b/AdsAdManager/src/V1/Client/DaiEncodingProfileServiceClient.php new file mode 100644 index 000000000000..8787e692b4b4 --- /dev/null +++ b/AdsAdManager/src/V1/Client/DaiEncodingProfileServiceClient.php @@ -0,0 +1,510 @@ + batchActivateDaiEncodingProfilesAsync(BatchActivateDaiEncodingProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchArchiveDaiEncodingProfilesAsync(BatchArchiveDaiEncodingProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchCreateDaiEncodingProfilesAsync(BatchCreateDaiEncodingProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateDaiEncodingProfilesAsync(BatchUpdateDaiEncodingProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface createDaiEncodingProfileAsync(CreateDaiEncodingProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface getDaiEncodingProfileAsync(GetDaiEncodingProfileRequest $request, array $optionalArgs = []) + * @method PromiseInterface listDaiEncodingProfilesAsync(ListDaiEncodingProfilesRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateDaiEncodingProfileAsync(UpdateDaiEncodingProfileRequest $request, array $optionalArgs = []) + */ +final class DaiEncodingProfileServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.DaiEncodingProfileService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** + * The default scopes required by the service. + * + * @internal + */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + 'https://www.googleapis.com/auth/admanager.readonly', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/dai_encoding_profile_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/dai_encoding_profile_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => + __DIR__ . '/../resources/dai_encoding_profile_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dai_encoding_profile resource. + * + * @param string $networkCode + * @param string $daiEncodingProfile + * + * @return string The formatted dai_encoding_profile resource. + */ + public static function daiEncodingProfileName(string $networkCode, string $daiEncodingProfile): string + { + return self::getPathTemplate('daiEncodingProfile')->render([ + 'network_code' => $networkCode, + 'dai_encoding_profile' => $daiEncodingProfile, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - daiEncodingProfile: networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile} + * - network: networks/{network_code} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\DaiEncodingProfileServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new DaiEncodingProfileServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Activates a list of `DaiEncodingProfile` objects. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::batchActivateDaiEncodingProfilesAsync()} + * . + * + * @example samples/V1/DaiEncodingProfileServiceClient/batch_activate_dai_encoding_profiles.php + * + * @param BatchActivateDaiEncodingProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchActivateDaiEncodingProfilesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchActivateDaiEncodingProfiles( + BatchActivateDaiEncodingProfilesRequest $request, + array $callOptions = [] + ): BatchActivateDaiEncodingProfilesResponse { + return $this->startApiCall('BatchActivateDaiEncodingProfiles', $request, $callOptions)->wait(); + } + + /** + * Archives a list of `DaiEncodingProfile` objects. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::batchArchiveDaiEncodingProfilesAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/batch_archive_dai_encoding_profiles.php + * + * @param BatchArchiveDaiEncodingProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchArchiveDaiEncodingProfilesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchArchiveDaiEncodingProfiles( + BatchArchiveDaiEncodingProfilesRequest $request, + array $callOptions = [] + ): BatchArchiveDaiEncodingProfilesResponse { + return $this->startApiCall('BatchArchiveDaiEncodingProfiles', $request, $callOptions)->wait(); + } + + /** + * Batch creates `DaiEncodingProfile` objects. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::batchCreateDaiEncodingProfilesAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/batch_create_dai_encoding_profiles.php + * + * @param BatchCreateDaiEncodingProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateDaiEncodingProfilesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateDaiEncodingProfiles( + BatchCreateDaiEncodingProfilesRequest $request, + array $callOptions = [] + ): BatchCreateDaiEncodingProfilesResponse { + return $this->startApiCall('BatchCreateDaiEncodingProfiles', $request, $callOptions)->wait(); + } + + /** + * Batch updates `DaiEncodingProfile` objects. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::batchUpdateDaiEncodingProfilesAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/batch_update_dai_encoding_profiles.php + * + * @param BatchUpdateDaiEncodingProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateDaiEncodingProfilesResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateDaiEncodingProfiles( + BatchUpdateDaiEncodingProfilesRequest $request, + array $callOptions = [] + ): BatchUpdateDaiEncodingProfilesResponse { + return $this->startApiCall('BatchUpdateDaiEncodingProfiles', $request, $callOptions)->wait(); + } + + /** + * Creates a `DaiEncodingProfile` object. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::createDaiEncodingProfileAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/create_dai_encoding_profile.php + * + * @param CreateDaiEncodingProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DaiEncodingProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function createDaiEncodingProfile( + CreateDaiEncodingProfileRequest $request, + array $callOptions = [] + ): DaiEncodingProfile { + return $this->startApiCall('CreateDaiEncodingProfile', $request, $callOptions)->wait(); + } + + /** + * Retrieves a `DaiEncodingProfile` object. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::getDaiEncodingProfileAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/get_dai_encoding_profile.php + * + * @param GetDaiEncodingProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DaiEncodingProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function getDaiEncodingProfile( + GetDaiEncodingProfileRequest $request, + array $callOptions = [] + ): DaiEncodingProfile { + return $this->startApiCall('GetDaiEncodingProfile', $request, $callOptions)->wait(); + } + + /** + * Lists `DaiEncodingProfile` objects. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::listDaiEncodingProfilesAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/list_dai_encoding_profiles.php + * + * @param ListDaiEncodingProfilesRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listDaiEncodingProfiles( + ListDaiEncodingProfilesRequest $request, + array $callOptions = [] + ): PagedListResponse { + return $this->startApiCall('ListDaiEncodingProfiles', $request, $callOptions); + } + + /** + * Updates a `DaiEncodingProfile` object. + * + * The async variant is + * {@see DaiEncodingProfileServiceClient::updateDaiEncodingProfileAsync()} . + * + * @example samples/V1/DaiEncodingProfileServiceClient/update_dai_encoding_profile.php + * + * @param UpdateDaiEncodingProfileRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return DaiEncodingProfile + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateDaiEncodingProfile( + UpdateDaiEncodingProfileRequest $request, + array $callOptions = [] + ): DaiEncodingProfile { + return $this->startApiCall('UpdateDaiEncodingProfile', $request, $callOptions)->wait(); + } +} diff --git a/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php b/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php index cfaea9be3095..ea82870bdbf6 100644 --- a/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php +++ b/AdsAdManager/src/V1/Client/EntitySignalsMappingServiceClient.php @@ -270,7 +270,7 @@ public function __call($method, $args) } /** - * API to batch create `EntitySignalsMapping` objects. + * Creates `EntitySignalsMapping` objects. * * The async variant is * {@see EntitySignalsMappingServiceClient::batchCreateEntitySignalsMappingsAsync()} @@ -300,7 +300,7 @@ public function batchCreateEntitySignalsMappings( } /** - * API to batch update `EntitySignalsMapping` objects. + * Batch updates `EntitySignalsMapping` objects. * * The async variant is * {@see EntitySignalsMappingServiceClient::batchUpdateEntitySignalsMappingsAsync()} @@ -330,7 +330,7 @@ public function batchUpdateEntitySignalsMappings( } /** - * API to create an `EntitySignalsMapping` object. + * Creates an `EntitySignalsMapping` object. * * The async variant is * {@see EntitySignalsMappingServiceClient::createEntitySignalsMappingAsync()} . @@ -359,7 +359,7 @@ public function createEntitySignalsMapping( } /** - * API to retrieve a `EntitySignalsMapping` object. + * Retrieves a `EntitySignalsMapping` object. * * The async variant is * {@see EntitySignalsMappingServiceClient::getEntitySignalsMappingAsync()} . @@ -388,7 +388,7 @@ public function getEntitySignalsMapping( } /** - * API to retrieve a list of `EntitySignalsMapping` objects. + * Lists `EntitySignalsMapping` objects. * * The async variant is * {@see EntitySignalsMappingServiceClient::listEntitySignalsMappingsAsync()} . @@ -417,7 +417,7 @@ public function listEntitySignalsMappings( } /** - * API to update an `EntitySignalsMapping` object. + * Updates an `EntitySignalsMapping` object. * * The async variant is * {@see EntitySignalsMappingServiceClient::updateEntitySignalsMappingAsync()} . diff --git a/AdsAdManager/src/V1/Client/LiveStreamServiceClient.php b/AdsAdManager/src/V1/Client/LiveStreamServiceClient.php index 627835f2e03f..7d2982c7f4bf 100644 --- a/AdsAdManager/src/V1/Client/LiveStreamServiceClient.php +++ b/AdsAdManager/src/V1/Client/LiveStreamServiceClient.php @@ -161,6 +161,40 @@ public static function cdnConfigName(string $networkCode, string $cdnConfig): st ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * dai_authentication_key resource. + * + * @param string $networkCode + * @param string $daiAuthenticationKey + * + * @return string The formatted dai_authentication_key resource. + */ + public static function daiAuthenticationKeyName(string $networkCode, string $daiAuthenticationKey): string + { + return self::getPathTemplate('daiAuthenticationKey')->render([ + 'network_code' => $networkCode, + 'dai_authentication_key' => $daiAuthenticationKey, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * dai_encoding_profile resource. + * + * @param string $networkCode + * @param string $daiEncodingProfile + * + * @return string The formatted dai_encoding_profile resource. + */ + public static function daiEncodingProfileName(string $networkCode, string $daiEncodingProfile): string + { + return self::getPathTemplate('daiEncodingProfile')->render([ + 'network_code' => $networkCode, + 'dai_encoding_profile' => $daiEncodingProfile, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a live_stream * resource. @@ -193,13 +227,33 @@ public static function networkName(string $networkCode): string ]); } + /** + * Formats a string containing the fully-qualified path to represent a slate + * resource. + * + * @param string $networkCode + * @param string $slate + * + * @return string The formatted slate resource. + */ + public static function slateName(string $networkCode, string $slate): string + { + return self::getPathTemplate('slate')->render([ + 'network_code' => $networkCode, + 'slate' => $slate, + ]); + } + /** * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern * - cdnConfig: networks/{network_code}/cdnConfigs/{cdn_config} + * - daiAuthenticationKey: networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key} + * - daiEncodingProfile: networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile} * - liveStream: networks/{network_code}/liveStreams/{live_stream} * - network: networks/{network_code} + * - slate: networks/{network_code}/slates/{slate} * * The optional $template argument can be supplied to specify a particular pattern, * and must match one of the templates listed above. If no $template argument is diff --git a/AdsAdManager/src/V1/Client/PartnerServiceClient.php b/AdsAdManager/src/V1/Client/PartnerServiceClient.php new file mode 100644 index 000000000000..2db530c23e4f --- /dev/null +++ b/AdsAdManager/src/V1/Client/PartnerServiceClient.php @@ -0,0 +1,426 @@ + batchUpdatePartnersAsync(BatchUpdatePartnersRequest $request, array $optionalArgs = []) + * @method PromiseInterface getPartnerAsync(GetPartnerRequest $request, array $optionalArgs = []) + * @method PromiseInterface listPartnersAsync(ListPartnersRequest $request, array $optionalArgs = []) + * @method PromiseInterface updatePartnerAsync(UpdatePartnerRequest $request, array $optionalArgs = []) + */ +final class PartnerServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.PartnerService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** + * The default scopes required by the service. + * + * @internal + */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + 'https://www.googleapis.com/auth/admanager.readonly', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/partner_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/partner_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => __DIR__ . '/../resources/partner_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a contact + * resource. + * + * @param string $networkCode + * @param string $contact + * + * @return string The formatted contact resource. + */ + public static function contactName(string $networkCode, string $contact): string + { + return self::getPathTemplate('contact')->render([ + 'network_code' => $networkCode, + 'contact' => $contact, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a label + * resource. + * + * @param string $networkCode + * @param string $label + * + * @return string The formatted label resource. + */ + public static function labelName(string $networkCode, string $label): string + { + return self::getPathTemplate('label')->render([ + 'network_code' => $networkCode, + 'label' => $label, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a partner + * resource. + * + * @param string $networkCode + * @param string $partner + * + * @return string The formatted partner resource. + */ + public static function partnerName(string $networkCode, string $partner): string + { + return self::getPathTemplate('partner')->render([ + 'network_code' => $networkCode, + 'partner' => $partner, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a team + * resource. + * + * @param string $networkCode + * @param string $team + * + * @return string The formatted team resource. + */ + public static function teamName(string $networkCode, string $team): string + { + return self::getPathTemplate('team')->render([ + 'network_code' => $networkCode, + 'team' => $team, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - contact: networks/{network_code}/contacts/{contact} + * - label: networks/{network_code}/labels/{label} + * - network: networks/{network_code} + * - partner: networks/{network_code}/partners/{partner} + * - team: networks/{network_code}/teams/{team} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\PartnerServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new PartnerServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Batch updates [Partner][google.ads.admanager.v1.Partner] objects. + * + * The async variant is {@see PartnerServiceClient::batchUpdatePartnersAsync()} . + * + * @example samples/V1/PartnerServiceClient/batch_update_partners.php + * + * @param BatchUpdatePartnersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdatePartnersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdatePartners( + BatchUpdatePartnersRequest $request, + array $callOptions = [] + ): BatchUpdatePartnersResponse { + return $this->startApiCall('BatchUpdatePartners', $request, $callOptions)->wait(); + } + + /** + * Retrieves a [Partner][google.ads.admanager.v1.Partner] object. + * + * The async variant is {@see PartnerServiceClient::getPartnerAsync()} . + * + * @example samples/V1/PartnerServiceClient/get_partner.php + * + * @param GetPartnerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Partner + * + * @throws ApiException Thrown if the API call fails. + */ + public function getPartner(GetPartnerRequest $request, array $callOptions = []): Partner + { + return $this->startApiCall('GetPartner', $request, $callOptions)->wait(); + } + + /** + * Lists [Partner][google.ads.admanager.v1.Partner] objects. + * + * The async variant is {@see PartnerServiceClient::listPartnersAsync()} . + * + * @example samples/V1/PartnerServiceClient/list_partners.php + * + * @param ListPartnersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listPartners(ListPartnersRequest $request, array $callOptions = []): PagedListResponse + { + return $this->startApiCall('ListPartners', $request, $callOptions); + } + + /** + * Updates a [Partner][google.ads.admanager.v1.Partner] object. + * + * The async variant is {@see PartnerServiceClient::updatePartnerAsync()} . + * + * @example samples/V1/PartnerServiceClient/update_partner.php + * + * @param UpdatePartnerRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return Partner + * + * @throws ApiException Thrown if the API call fails. + */ + public function updatePartner(UpdatePartnerRequest $request, array $callOptions = []): Partner + { + return $this->startApiCall('UpdatePartner', $request, $callOptions)->wait(); + } +} diff --git a/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php b/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php index a2b57f7d8dd0..698b9204b983 100644 --- a/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php +++ b/AdsAdManager/src/V1/Client/TaxonomyCategoryServiceClient.php @@ -260,7 +260,7 @@ public function __call($method, $args) } /** - * API to retrieve a `TaxonomyCategory` object. + * Retrieves a `TaxonomyCategory` object. * * The async variant is * {@see TaxonomyCategoryServiceClient::getTaxonomyCategoryAsync()} . @@ -287,7 +287,7 @@ public function getTaxonomyCategory(GetTaxonomyCategoryRequest $request, array $ } /** - * API to retrieve a list of `TaxonomyCategory` objects. + * Lists `TaxonomyCategory` objects. * * The async variant is * {@see TaxonomyCategoryServiceClient::listTaxonomyCategoriesAsync()} . diff --git a/AdsAdManager/src/V1/Client/ViewabilityProviderServiceClient.php b/AdsAdManager/src/V1/Client/ViewabilityProviderServiceClient.php new file mode 100644 index 000000000000..562507ae3f46 --- /dev/null +++ b/AdsAdManager/src/V1/Client/ViewabilityProviderServiceClient.php @@ -0,0 +1,490 @@ + batchCreateViewabilityProvidersAsync(BatchCreateViewabilityProvidersRequest $request, array $optionalArgs = []) + * @method PromiseInterface batchUpdateViewabilityProvidersAsync(BatchUpdateViewabilityProvidersRequest $request, array $optionalArgs = []) + * @method PromiseInterface createViewabilityProviderAsync(CreateViewabilityProviderRequest $request, array $optionalArgs = []) + * @method PromiseInterface getViewabilityProviderAsync(GetViewabilityProviderRequest $request, array $optionalArgs = []) + * @method PromiseInterface listViewabilityProvidersAsync(ListViewabilityProvidersRequest $request, array $optionalArgs = []) + * @method PromiseInterface updateViewabilityProviderAsync(UpdateViewabilityProviderRequest $request, array $optionalArgs = []) + */ +final class ViewabilityProviderServiceClient +{ + use GapicClientTrait; + use ResourceHelperTrait; + + /** The name of the service. */ + private const SERVICE_NAME = 'google.ads.admanager.v1.ViewabilityProviderService'; + + /** + * The default address of the service. + * + * @deprecated SERVICE_ADDRESS_TEMPLATE should be used instead. + */ + private const SERVICE_ADDRESS = 'admanager.googleapis.com'; + + /** The address template of the service. */ + private const SERVICE_ADDRESS_TEMPLATE = 'admanager.UNIVERSE_DOMAIN'; + + /** The default port of the service. */ + private const DEFAULT_SERVICE_PORT = 443; + + /** The name of the code generator, to be included in the agent header. */ + private const CODEGEN_NAME = 'gapic'; + + /** + * The default scopes required by the service. + * + * @internal + */ + public static $serviceScopes = [ + 'https://www.googleapis.com/auth/admanager', + 'https://www.googleapis.com/auth/admanager.readonly', + ]; + + private static function getClientDefaults() + { + return [ + 'serviceName' => self::SERVICE_NAME, + 'apiEndpoint' => self::SERVICE_ADDRESS . ':' . self::DEFAULT_SERVICE_PORT, + 'clientConfig' => __DIR__ . '/../resources/viewability_provider_service_client_config.json', + 'descriptorsConfigPath' => __DIR__ . '/../resources/viewability_provider_service_descriptor_config.php', + 'credentialsConfig' => [ + 'defaultScopes' => self::$serviceScopes, + 'useJwtAccessWithScope' => false, + ], + 'transportConfig' => [ + 'rest' => [ + 'restClientConfigPath' => + __DIR__ . '/../resources/viewability_provider_service_rest_client_config.php', + ], + ], + ]; + } + + /** Implements GapicClientTrait::defaultTransport. */ + private static function defaultTransport() + { + return 'rest'; + } + + /** Implements ClientOptionsTrait::supportedTransports. */ + private static function supportedTransports() + { + return ['rest']; + } + + /** + * Formats a string containing the fully-qualified path to represent a contact + * resource. + * + * @param string $networkCode + * @param string $contact + * + * @return string The formatted contact resource. + */ + public static function contactName(string $networkCode, string $contact): string + { + return self::getPathTemplate('contact')->render([ + 'network_code' => $networkCode, + 'contact' => $contact, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $networkCode + * + * @return string The formatted network resource. + */ + public static function networkName(string $networkCode): string + { + return self::getPathTemplate('network')->render([ + 'network_code' => $networkCode, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a team + * resource. + * + * @param string $networkCode + * @param string $team + * + * @return string The formatted team resource. + */ + public static function teamName(string $networkCode, string $team): string + { + return self::getPathTemplate('team')->render([ + 'network_code' => $networkCode, + 'team' => $team, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * viewability_provider resource. + * + * @param string $networkCode + * @param string $viewabilityProvider + * + * @return string The formatted viewability_provider resource. + */ + public static function viewabilityProviderName(string $networkCode, string $viewabilityProvider): string + { + return self::getPathTemplate('viewabilityProvider')->render([ + 'network_code' => $networkCode, + 'viewability_provider' => $viewabilityProvider, + ]); + } + + /** + * Parses a formatted name string and returns an associative array of the components in the name. + * The following name formats are supported: + * Template: Pattern + * - contact: networks/{network_code}/contacts/{contact} + * - network: networks/{network_code} + * - team: networks/{network_code}/teams/{team} + * - viewabilityProvider: networks/{network_code}/viewabilityProviders/{viewability_provider} + * + * The optional $template argument can be supplied to specify a particular pattern, + * and must match one of the templates listed above. If no $template argument is + * provided, or if the $template argument does not match one of the templates + * listed, then parseName will check each of the supported templates, and return + * the first match. + * + * @param string $formattedName The formatted name string + * @param ?string $template Optional name of template to match + * + * @return array An associative array from name component IDs to component values. + * + * @throws ValidationException If $formattedName could not be matched. + */ + public static function parseName(string $formattedName, ?string $template = null): array + { + return self::parseFormattedName($formattedName, $template); + } + + /** + * Constructor. + * + * @param array|ClientOptions $options { + * Optional. Options for configuring the service API wrapper. + * + * @type string $apiEndpoint + * The address of the API remote host. May optionally include the port, formatted + * as ":". Default 'admanager.googleapis.com:443'. + * @type FetchAuthTokenInterface|CredentialsWrapper $credentials + * This option should only be used with a pre-constructed + * {@see FetchAuthTokenInterface} or {@see CredentialsWrapper} object. Note that + * when one of these objects are provided, any settings in $credentialsConfig will + * be ignored. + * **Important**: If you are providing a path to a credentials file, or a decoded + * credentials file as a PHP array, this usage is now DEPRECATED. Providing an + * unvalidated credential configuration to Google APIs can compromise the security + * of your systems and data. It is recommended to create the credentials explicitly + * ``` + * use Google\Auth\Credentials\ServiceAccountCredentials; + * use Google\Ads\AdManager\V1\ViewabilityProviderServiceClient; + * $creds = new ServiceAccountCredentials($scopes, $json); + * $options = new ViewabilityProviderServiceClient(['credentials' => $creds]); + * ``` + * {@see + * https://cloud.google.com/docs/authentication/external/externally-sourced-credentials} + * @type array $credentialsConfig + * Options used to configure credentials, including auth token caching, for the + * client. For a full list of supporting configuration options, see + * {@see \Google\ApiCore\CredentialsWrapper::build()} . + * @type bool $disableRetries + * Determines whether or not retries defined by the client configuration should be + * disabled. Defaults to `false`. + * @type string|array $clientConfig + * Client method configuration, including retry settings. This option can be either + * a path to a JSON file, or a PHP array containing the decoded JSON data. By + * default this settings points to the default client config file, which is + * provided in the resources folder. + * @type string|TransportInterface $transport + * The transport used for executing network requests. At the moment, supports only + * `rest`. *Advanced usage*: Additionally, it is possible to pass in an already + * instantiated {@see \Google\ApiCore\Transport\TransportInterface} object. Note + * that when this object is provided, any settings in $transportConfig, and any + * $apiEndpoint setting, will be ignored. + * @type array $transportConfig + * Configuration options that will be used to construct the transport. Options for + * each supported transport type should be passed in a key for that transport. For + * example: + * $transportConfig = [ + * 'rest' => [...], + * ]; + * See the {@see \Google\ApiCore\Transport\RestTransport::build()} method for the + * supported options. + * @type callable $clientCertSource + * A callable which returns the client cert as a string. This can be used to + * provide a certificate and private key to the transport layer for mTLS. + * @type false|LoggerInterface $logger + * A PSR-3 compliant logger. If set to false, logging is disabled, ignoring the + * 'GOOGLE_SDK_PHP_LOGGING' environment flag + * @type string $universeDomain + * The service domain for the client. Defaults to 'googleapis.com'. + * } + * + * @throws ValidationException + */ + public function __construct(array|ClientOptions $options = []) + { + $clientOptions = $this->buildClientOptions($options); + $this->setClientOptions($clientOptions); + } + + /** Handles execution of the async variants for each documented method. */ + public function __call($method, $args) + { + if (substr($method, -5) !== 'Async') { + trigger_error('Call to undefined method ' . __CLASS__ . "::$method()", E_USER_ERROR); + } + + array_unshift($args, substr($method, 0, -5)); + return call_user_func_array([$this, 'startAsyncCall'], $args); + } + + /** + * Creates [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects. + * + * The async variant is + * {@see ViewabilityProviderServiceClient::batchCreateViewabilityProvidersAsync()} + * . + * + * @example samples/V1/ViewabilityProviderServiceClient/batch_create_viewability_providers.php + * + * @param BatchCreateViewabilityProvidersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchCreateViewabilityProvidersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchCreateViewabilityProviders( + BatchCreateViewabilityProvidersRequest $request, + array $callOptions = [] + ): BatchCreateViewabilityProvidersResponse { + return $this->startApiCall('BatchCreateViewabilityProviders', $request, $callOptions)->wait(); + } + + /** + * Batch updates + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + * + * The async variant is + * {@see ViewabilityProviderServiceClient::batchUpdateViewabilityProvidersAsync()} + * . + * + * @example samples/V1/ViewabilityProviderServiceClient/batch_update_viewability_providers.php + * + * @param BatchUpdateViewabilityProvidersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return BatchUpdateViewabilityProvidersResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function batchUpdateViewabilityProviders( + BatchUpdateViewabilityProvidersRequest $request, + array $callOptions = [] + ): BatchUpdateViewabilityProvidersResponse { + return $this->startApiCall('BatchUpdateViewabilityProviders', $request, $callOptions)->wait(); + } + + /** + * Creates a + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. + * + * The async variant is + * {@see ViewabilityProviderServiceClient::createViewabilityProviderAsync()} . + * + * @example samples/V1/ViewabilityProviderServiceClient/create_viewability_provider.php + * + * @param CreateViewabilityProviderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ViewabilityProvider + * + * @throws ApiException Thrown if the API call fails. + */ + public function createViewabilityProvider( + CreateViewabilityProviderRequest $request, + array $callOptions = [] + ): ViewabilityProvider { + return $this->startApiCall('CreateViewabilityProvider', $request, $callOptions)->wait(); + } + + /** + * Retrieves a + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. + * + * The async variant is + * {@see ViewabilityProviderServiceClient::getViewabilityProviderAsync()} . + * + * @example samples/V1/ViewabilityProviderServiceClient/get_viewability_provider.php + * + * @param GetViewabilityProviderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ViewabilityProvider + * + * @throws ApiException Thrown if the API call fails. + */ + public function getViewabilityProvider( + GetViewabilityProviderRequest $request, + array $callOptions = [] + ): ViewabilityProvider { + return $this->startApiCall('GetViewabilityProvider', $request, $callOptions)->wait(); + } + + /** + * Lists [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects. + * + * The async variant is + * {@see ViewabilityProviderServiceClient::listViewabilityProvidersAsync()} . + * + * @example samples/V1/ViewabilityProviderServiceClient/list_viewability_providers.php + * + * @param ListViewabilityProvidersRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return PagedListResponse + * + * @throws ApiException Thrown if the API call fails. + */ + public function listViewabilityProviders( + ListViewabilityProvidersRequest $request, + array $callOptions = [] + ): PagedListResponse { + return $this->startApiCall('ListViewabilityProviders', $request, $callOptions); + } + + /** + * Updates a + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] object. + * + * The async variant is + * {@see ViewabilityProviderServiceClient::updateViewabilityProviderAsync()} . + * + * @example samples/V1/ViewabilityProviderServiceClient/update_viewability_provider.php + * + * @param UpdateViewabilityProviderRequest $request A request to house fields associated with the call. + * @param array $callOptions { + * Optional. + * + * @type RetrySettings|array $retrySettings + * Retry settings to use for this call. Can be a {@see RetrySettings} object, or an + * associative array of retry settings parameters. See the documentation on + * {@see RetrySettings} for example usage. + * } + * + * @return ViewabilityProvider + * + * @throws ApiException Thrown if the API call fails. + */ + public function updateViewabilityProvider( + UpdateViewabilityProviderRequest $request, + array $callOptions = [] + ): ViewabilityProvider { + return $this->startApiCall('UpdateViewabilityProvider', $request, $callOptions)->wait(); + } +} diff --git a/AdsAdManager/src/V1/ContainerTypeEnum.php b/AdsAdManager/src/V1/ContainerTypeEnum.php new file mode 100644 index 000000000000..419142a3aa41 --- /dev/null +++ b/AdsAdManager/src/V1/ContainerTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ContainerTypeEnum + */ +class ContainerTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ContainerTypeEnum/ContainerType.php b/AdsAdManager/src/V1/ContainerTypeEnum/ContainerType.php new file mode 100644 index 000000000000..a8ebbedba95d --- /dev/null +++ b/AdsAdManager/src/V1/ContainerTypeEnum/ContainerType.php @@ -0,0 +1,68 @@ +google.ads.admanager.v1.ContainerTypeEnum.ContainerType + */ +class ContainerType +{ + /** + * Not specified value. + * + * Generated from protobuf enum CONTAINER_TYPE_UNSPECIFIED = 0; + */ + const CONTAINER_TYPE_UNSPECIFIED = 0; + /** + * Transport stream (TS) container. + * + * Generated from protobuf enum TS = 1; + */ + const TS = 1; + /** + * Fragmented MPEG-4 (fMP4) output container. + * + * Generated from protobuf enum FMP4 = 2; + */ + const FMP4 = 2; + /** + * HTTP live streaming (HLS) packed audio container. + * + * Generated from protobuf enum HLS_AUDIO = 3; + */ + const HLS_AUDIO = 3; + + private static $valueToName = [ + self::CONTAINER_TYPE_UNSPECIFIED => 'CONTAINER_TYPE_UNSPECIFIED', + self::TS => 'TS', + self::FMP4 => 'FMP4', + self::HLS_AUDIO => 'HLS_AUDIO', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/ConversionEventEnum.php b/AdsAdManager/src/V1/ConversionEventEnum.php new file mode 100644 index 000000000000..882ffa81db03 --- /dev/null +++ b/AdsAdManager/src/V1/ConversionEventEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ConversionEventEnum + */ +class ConversionEventEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ConversionEventEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ConversionEventEnum/ConversionEvent.php b/AdsAdManager/src/V1/ConversionEventEnum/ConversionEvent.php new file mode 100644 index 000000000000..1d04f677b574 --- /dev/null +++ b/AdsAdManager/src/V1/ConversionEventEnum/ConversionEvent.php @@ -0,0 +1,239 @@ +google.ads.admanager.v1.ConversionEventEnum.ConversionEvent + */ +class ConversionEvent +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CONVERSION_EVENT_UNSPECIFIED = 0; + */ + const CONVERSION_EVENT_UNSPECIFIED = 0; + /** + * Corresponds to the `acceptInvitation` tracking event. + * + * Generated from protobuf enum ACCEPT_INVITATION = 1; + */ + const ACCEPT_INVITATION = 1; + /** + * Corresponds to the `Linear.VideoClicks.ClickTracking` node. + * + * Generated from protobuf enum CLICK_TRACKING = 2; + */ + const CLICK_TRACKING = 2; + /** + * Corresponds to the `close` tracking event. + * + * Generated from protobuf enum CLOSE = 3; + */ + const CLOSE = 3; + /** + * Corresponds to the `collapse` tracking event. + * + * Generated from protobuf enum COLLAPSE = 4; + */ + const COLLAPSE = 4; + /** + * Corresponds to the `complete` tracking event. + * + * Generated from protobuf enum COMPLETE = 5; + */ + const COMPLETE = 5; + /** + * Corresponds to the `creativeView` tracking event. + * + * Generated from protobuf enum CREATIVE_VIEW = 6; + */ + const CREATIVE_VIEW = 6; + /** + * Corresponds to the `Linear.VideoClicks.CustomClick` node. + * + * Generated from protobuf enum CUSTOM_CLICK = 7; + */ + const CUSTOM_CLICK = 7; + /** + * An event that is fired after 30 seconds of viewing the video + * or when the video finished (if the video duration is less than 30 + * seconds). This event does not correspond to any VAST element and is + * implemented using an extension. + * + * Generated from protobuf enum ENGAGED_VIEW = 8; + */ + const ENGAGED_VIEW = 8; + /** + * Corresponds to the `expand` tracking event. + * + * Generated from protobuf enum EXPAND = 9; + */ + const EXPAND = 9; + /** + * Corresponds to the `firstQuartile` tracking event. + * + * Generated from protobuf enum FIRST_QUARTILE = 10; + */ + const FIRST_QUARTILE = 10; + /** + * Corresponds to the `fullscreen` tracking event. + * + * Generated from protobuf enum FULLSCREEN = 11; + */ + const FULLSCREEN = 11; + /** + * Corresponds to the `fullyViewableAudibleHalfDurationImpression` tracking + * event. + * + * Generated from protobuf enum FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 12; + */ + const FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION = 12; + /** + * Corresponds to the `measurableImpression` tracking event. + * + * Generated from protobuf enum MEASURABLE_IMPRESSION = 13; + */ + const MEASURABLE_IMPRESSION = 13; + /** + * Corresponds to the `midpoint` tracking event. + * + * Generated from protobuf enum MIDPOINT = 14; + */ + const MIDPOINT = 14; + /** + * Corresponds to the `mute` tracking event. + * + * Generated from protobuf enum MUTE = 15; + */ + const MUTE = 15; + /** + * Corresponds to the `pause` tracking event. + * + * Generated from protobuf enum PAUSE = 16; + */ + const PAUSE = 16; + /** + * Corresponds to the `resume` tracking event. + * + * Generated from protobuf enum RESUME = 17; + */ + const RESUME = 17; + /** + * Corresponds to the `rewind` tracking event. + * + * Generated from protobuf enum REWIND = 18; + */ + const REWIND = 18; + /** + * An event that is fired when a video was skipped. + * This event does not correspond to any VAST element and is implemented + * using an extension. + * + * Generated from protobuf enum SKIPPED = 19; + */ + const SKIPPED = 19; + /** + * An event that is fired when a video skip button is shown, + * usually after 5 seconds of viewing the video. + * This event does not correspond to any VAST element and is implemented + * using an extension. + * + * Generated from protobuf enum SKIP_SHOWN = 20; + */ + const SKIP_SHOWN = 20; + /** + * Corresponds to the `start` tracking event. + * + * Generated from protobuf enum START = 21; + */ + const START = 21; + /** + * Corresponds to the `InLine.Survey` node. + * + * Generated from protobuf enum SURVEY = 22; + */ + const SURVEY = 22; + /** + * Corresponds to the `thirdQuartile` tracking event. + * + * Generated from protobuf enum THIRD_QUARTILE = 23; + */ + const THIRD_QUARTILE = 23; + /** + * Corresponds to the `unmute` tracking event. + * + * Generated from protobuf enum UNMUTE = 24; + */ + const UNMUTE = 24; + /** + * Corresponds to the `abandon` tracking event. + * + * Generated from protobuf enum VIDEO_ABANDON = 25; + */ + const VIDEO_ABANDON = 25; + /** + * Corresponds to the `viewableImpression` tracking event. + * + * Generated from protobuf enum VIEWABLE_IMPRESSION = 26; + */ + const VIEWABLE_IMPRESSION = 26; + + private static $valueToName = [ + self::CONVERSION_EVENT_UNSPECIFIED => 'CONVERSION_EVENT_UNSPECIFIED', + self::ACCEPT_INVITATION => 'ACCEPT_INVITATION', + self::CLICK_TRACKING => 'CLICK_TRACKING', + self::CLOSE => 'CLOSE', + self::COLLAPSE => 'COLLAPSE', + self::COMPLETE => 'COMPLETE', + self::CREATIVE_VIEW => 'CREATIVE_VIEW', + self::CUSTOM_CLICK => 'CUSTOM_CLICK', + self::ENGAGED_VIEW => 'ENGAGED_VIEW', + self::EXPAND => 'EXPAND', + self::FIRST_QUARTILE => 'FIRST_QUARTILE', + self::FULLSCREEN => 'FULLSCREEN', + self::FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION => 'FULLY_VIEWABLE_AUDIBLE_HALF_DURATION_IMPRESSION', + self::MEASURABLE_IMPRESSION => 'MEASURABLE_IMPRESSION', + self::MIDPOINT => 'MIDPOINT', + self::MUTE => 'MUTE', + self::PAUSE => 'PAUSE', + self::RESUME => 'RESUME', + self::REWIND => 'REWIND', + self::SKIPPED => 'SKIPPED', + self::SKIP_SHOWN => 'SKIP_SHOWN', + self::START => 'START', + self::SURVEY => 'SURVEY', + self::THIRD_QUARTILE => 'THIRD_QUARTILE', + self::UNMUTE => 'UNMUTE', + self::VIDEO_ABANDON => 'VIDEO_ABANDON', + self::VIEWABLE_IMPRESSION => 'VIEWABLE_IMPRESSION', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/CreateChildPublisherRequest.php b/AdsAdManager/src/V1/CreateChildPublisherRequest.php new file mode 100644 index 000000000000..8f1eb658bbc8 --- /dev/null +++ b/AdsAdManager/src/V1/CreateChildPublisherRequest.php @@ -0,0 +1,142 @@ +google.ads.admanager.v1.CreateChildPublisherRequest + */ +class CreateChildPublisherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * create. + * + * Generated from protobuf field .google.ads.admanager.v1.ChildPublisher child_publisher = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $child_publisher = null; + + /** + * @param string $parent Required. The parent resource where this + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. + * Format: `networks/{network_code}` + * Please see {@see ChildPublisherServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\ChildPublisher $childPublisher Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * create. + * + * @return \Google\Ads\AdManager\V1\CreateChildPublisherRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\ChildPublisher $childPublisher): self + { + return (new self()) + ->setParent($parent) + ->setChildPublisher($childPublisher); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\ChildPublisher $child_publisher + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * create. + * + * Generated from protobuf field .google.ads.admanager.v1.ChildPublisher child_publisher = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ChildPublisher|null + */ + public function getChildPublisher() + { + return $this->child_publisher; + } + + public function hasChildPublisher() + { + return isset($this->child_publisher); + } + + public function clearChildPublisher() + { + unset($this->child_publisher); + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * create. + * + * Generated from protobuf field .google.ads.admanager.v1.ChildPublisher child_publisher = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ChildPublisher $var + * @return $this + */ + public function setChildPublisher($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ChildPublisher::class); + $this->child_publisher = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreateCompanyRequest.php b/AdsAdManager/src/V1/CreateCompanyRequest.php new file mode 100644 index 000000000000..c71f7d548b39 --- /dev/null +++ b/AdsAdManager/src/V1/CreateCompanyRequest.php @@ -0,0 +1,137 @@ +google.ads.admanager.v1.CreateCompanyRequest + */ +class CreateCompanyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this + * [Company][google.ads.admanager.v1.Company] will be created. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The [Company][google.ads.admanager.v1.Company] to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Company company = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $company = null; + + /** + * @param string $parent Required. The parent resource where this + * [Company][google.ads.admanager.v1.Company] will be created. Format: + * `networks/{network_code}` + * Please see {@see CompanyServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\Company $company Required. The [Company][google.ads.admanager.v1.Company] to create. + * + * @return \Google\Ads\AdManager\V1\CreateCompanyRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\Company $company): self + { + return (new self()) + ->setParent($parent) + ->setCompany($company); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this + * [Company][google.ads.admanager.v1.Company] will be created. Format: + * `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\Company $company + * Required. The [Company][google.ads.admanager.v1.Company] to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this + * [Company][google.ads.admanager.v1.Company] will be created. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this + * [Company][google.ads.admanager.v1.Company] will be created. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Company company = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Company|null + */ + public function getCompany() + { + return $this->company; + } + + public function hasCompany() + { + return isset($this->company); + } + + public function clearCompany() + { + unset($this->company); + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] to create. + * + * Generated from protobuf field .google.ads.admanager.v1.Company company = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Company $var + * @return $this + */ + public function setCompany($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Company::class); + $this->company = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreateCreativeWrapperRequest.php b/AdsAdManager/src/V1/CreateCreativeWrapperRequest.php new file mode 100644 index 000000000000..b49fbfcd1b0d --- /dev/null +++ b/AdsAdManager/src/V1/CreateCreativeWrapperRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateCreativeWrapperRequest + */ +class CreateCreativeWrapperRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `CreativeWrapper` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `CreativeWrapper` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeWrapper creative_wrapper = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $creative_wrapper = null; + + /** + * @param string $parent Required. The parent resource where this `CreativeWrapper` will be created. + * Format: `networks/{network_code}` + * Please see {@see CreativeWrapperServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\CreativeWrapper $creativeWrapper Required. The `CreativeWrapper` to create. + * + * @return \Google\Ads\AdManager\V1\CreateCreativeWrapperRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\CreativeWrapper $creativeWrapper): self + { + return (new self()) + ->setParent($parent) + ->setCreativeWrapper($creativeWrapper); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `CreativeWrapper` will be created. + * Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\CreativeWrapper $creative_wrapper + * Required. The `CreativeWrapper` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `CreativeWrapper` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `CreativeWrapper` will be created. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `CreativeWrapper` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeWrapper creative_wrapper = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\CreativeWrapper|null + */ + public function getCreativeWrapper() + { + return $this->creative_wrapper; + } + + public function hasCreativeWrapper() + { + return isset($this->creative_wrapper); + } + + public function clearCreativeWrapper() + { + unset($this->creative_wrapper); + } + + /** + * Required. The `CreativeWrapper` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeWrapper creative_wrapper = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreativeWrapper $var + * @return $this + */ + public function setCreativeWrapper($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeWrapper::class); + $this->creative_wrapper = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreateDaiAuthenticationKeyRequest.php b/AdsAdManager/src/V1/CreateDaiAuthenticationKeyRequest.php new file mode 100644 index 000000000000..79b6c2b95202 --- /dev/null +++ b/AdsAdManager/src/V1/CreateDaiAuthenticationKeyRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateDaiAuthenticationKeyRequest + */ +class CreateDaiAuthenticationKeyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `DaiAuthenticationKey` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiAuthenticationKey` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_key = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dai_authentication_key = null; + + /** + * @param string $parent Required. The parent resource where this `DaiAuthenticationKey` will be + * created. Format: `networks/{network_code}` + * Please see {@see DaiAuthenticationKeyServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey $daiAuthenticationKey Required. The `DaiAuthenticationKey` to create. + * + * @return \Google\Ads\AdManager\V1\CreateDaiAuthenticationKeyRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\DaiAuthenticationKey $daiAuthenticationKey): self + { + return (new self()) + ->setParent($parent) + ->setDaiAuthenticationKey($daiAuthenticationKey); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `DaiAuthenticationKey` will be + * created. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\DaiAuthenticationKey $dai_authentication_key + * Required. The `DaiAuthenticationKey` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `DaiAuthenticationKey` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `DaiAuthenticationKey` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiAuthenticationKey` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\DaiAuthenticationKey|null + */ + public function getDaiAuthenticationKey() + { + return $this->dai_authentication_key; + } + + public function hasDaiAuthenticationKey() + { + return isset($this->dai_authentication_key); + } + + public function clearDaiAuthenticationKey() + { + unset($this->dai_authentication_key); + } + + /** + * Required. The `DaiAuthenticationKey` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_key = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey $var + * @return $this + */ + public function setDaiAuthenticationKey($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DaiAuthenticationKey::class); + $this->dai_authentication_key = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreateDaiEncodingProfileRequest.php b/AdsAdManager/src/V1/CreateDaiEncodingProfileRequest.php new file mode 100644 index 000000000000..009793b576ea --- /dev/null +++ b/AdsAdManager/src/V1/CreateDaiEncodingProfileRequest.php @@ -0,0 +1,132 @@ +google.ads.admanager.v1.CreateDaiEncodingProfileRequest + */ +class CreateDaiEncodingProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this `DaiEncodingProfile` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The `DaiEncodingProfile` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dai_encoding_profile = null; + + /** + * @param string $parent Required. The parent resource where this `DaiEncodingProfile` will be + * created. Format: `networks/{network_code}` + * Please see {@see DaiEncodingProfileServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile $daiEncodingProfile Required. The `DaiEncodingProfile` to create. + * + * @return \Google\Ads\AdManager\V1\CreateDaiEncodingProfileRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\DaiEncodingProfile $daiEncodingProfile): self + { + return (new self()) + ->setParent($parent) + ->setDaiEncodingProfile($daiEncodingProfile); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this `DaiEncodingProfile` will be + * created. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\DaiEncodingProfile $dai_encoding_profile + * Required. The `DaiEncodingProfile` to create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this `DaiEncodingProfile` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this `DaiEncodingProfile` will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The `DaiEncodingProfile` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\DaiEncodingProfile|null + */ + public function getDaiEncodingProfile() + { + return $this->dai_encoding_profile; + } + + public function hasDaiEncodingProfile() + { + return isset($this->dai_encoding_profile); + } + + public function clearDaiEncodingProfile() + { + unset($this->dai_encoding_profile); + } + + /** + * Required. The `DaiEncodingProfile` to create. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profile = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile $var + * @return $this + */ + public function setDaiEncodingProfile($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DaiEncodingProfile::class); + $this->dai_encoding_profile = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreateViewabilityProviderRequest.php b/AdsAdManager/src/V1/CreateViewabilityProviderRequest.php new file mode 100644 index 000000000000..a33cb048fa6f --- /dev/null +++ b/AdsAdManager/src/V1/CreateViewabilityProviderRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.CreateViewabilityProviderRequest + */ +class CreateViewabilityProviderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent resource where this + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * create. + * + * Generated from protobuf field .google.ads.admanager.v1.ViewabilityProvider viewability_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $viewability_provider = null; + + /** + * @param string $parent Required. The parent resource where this + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be + * created. Format: `networks/{network_code}` + * Please see {@see ViewabilityProviderServiceClient::networkName()} for help formatting this field. + * @param \Google\Ads\AdManager\V1\ViewabilityProvider $viewabilityProvider Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * create. + * + * @return \Google\Ads\AdManager\V1\CreateViewabilityProviderRequest + * + * @experimental + */ + public static function build(string $parent, \Google\Ads\AdManager\V1\ViewabilityProvider $viewabilityProvider): self + { + return (new self()) + ->setParent($parent) + ->setViewabilityProvider($viewabilityProvider); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent resource where this + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be + * created. Format: `networks/{network_code}` + * @type \Google\Ads\AdManager\V1\ViewabilityProvider $viewability_provider + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * create. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent resource where this + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent resource where this + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] will be + * created. Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * create. + * + * Generated from protobuf field .google.ads.admanager.v1.ViewabilityProvider viewability_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ViewabilityProvider|null + */ + public function getViewabilityProvider() + { + return $this->viewability_provider; + } + + public function hasViewabilityProvider() + { + return isset($this->viewability_provider); + } + + public function clearViewabilityProvider() + { + unset($this->viewability_provider); + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * create. + * + * Generated from protobuf field .google.ads.admanager.v1.ViewabilityProvider viewability_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ViewabilityProvider $var + * @return $this + */ + public function setViewabilityProvider($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ViewabilityProvider::class); + $this->viewability_provider = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreativeWrapper.php b/AdsAdManager/src/V1/CreativeWrapper.php new file mode 100644 index 000000000000..c25725c0bae4 --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapper.php @@ -0,0 +1,664 @@ +google.ads.admanager.v1.CreativeWrapper + */ +class CreativeWrapper extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `CreativeWrapper`. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. Immutable. The resource name of the + * [Label][google.ads.admanager.v1.Label]. + * Format:`networks/{network_code}/label/{label_id}` + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $label = ''; + /** + * Required. The `creative_wrapper_type`. If the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL], + * the `video_tracking_urls` field must be set. If the `creative_wrapper_type` + * is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML], + * either the header or footer field must be set. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType creative_wrapper_type = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $creative_wrapper_type = null; + /** + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * + * Generated from protobuf field optional string header_creative = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $header_creative = null; + /** + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * + * Generated from protobuf field optional string footer_creative = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + */ + protected $footer_creative = null; + /** + * Optional. The header HTML snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string html_header = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $html_header = null; + /** + * Optional. The footer HTML snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string html_footer = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $html_footer = null; + /** + * Optional. The header AMP snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string amp_header = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $amp_header = null; + /** + * Optional. The footer AMP snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string amp_footer = 14 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $amp_footer = null; + /** + * Optional. The video tracking URLs that this `CreativeWrapper` delivers. + * This field is required if the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL] + * and ignored otherwise. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.VideoTrackingUrl video_tracking_urls = 15 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $video_tracking_urls; + /** + * Optional. The `ThirdPartyDataDeclaration` for this creative wrapper. + * The third party companies that are associated with this `CreativeWrapper` + * and are present in the `html_header` or `html_footer`. This field is only + * applicable when the `creative_wrapper_type` is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ThirdPartyDataDeclaration third_party_data_declaration = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $third_party_data_declaration = null; + /** + * Optional. If there are multiple wrappers for a + * [Creative][google.ads.admanager.v1.Creative], then ordering + * defines the order in which the HTML snippets are rendered. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrdering ordering = 20 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $ordering = null; + /** + * Output only. The status of the `CreativeWrapper`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatus status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `CreativeWrapper`. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * @type string $label + * Required. Immutable. The resource name of the + * [Label][google.ads.admanager.v1.Label]. + * Format:`networks/{network_code}/label/{label_id}` + * @type int $creative_wrapper_type + * Required. The `creative_wrapper_type`. If the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL], + * the `video_tracking_urls` field must be set. If the `creative_wrapper_type` + * is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML], + * either the header or footer field must be set. + * @type string $header_creative + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * @type string $footer_creative + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * @type string $html_header + * Optional. The header HTML snippet that this `CreativeWrapper` delivers. + * @type string $html_footer + * Optional. The footer HTML snippet that this `CreativeWrapper` delivers. + * @type string $amp_header + * Optional. The header AMP snippet that this `CreativeWrapper` delivers. + * @type string $amp_footer + * Optional. The footer AMP snippet that this `CreativeWrapper` delivers. + * @type \Google\Ads\AdManager\V1\VideoTrackingUrl[] $video_tracking_urls + * Optional. The video tracking URLs that this `CreativeWrapper` delivers. + * This field is required if the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL] + * and ignored otherwise. + * @type \Google\Ads\AdManager\V1\ThirdPartyDataDeclaration $third_party_data_declaration + * Optional. The `ThirdPartyDataDeclaration` for this creative wrapper. + * The third party companies that are associated with this `CreativeWrapper` + * and are present in the `html_header` or `html_footer`. This field is only + * applicable when the `creative_wrapper_type` is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML]. + * @type int $ordering + * Optional. If there are multiple wrappers for a + * [Creative][google.ads.admanager.v1.Creative], then ordering + * defines the order in which the HTML snippets are rendered. + * @type int $status + * Output only. The status of the `CreativeWrapper`. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `CreativeWrapper`. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `CreativeWrapper`. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. Immutable. The resource name of the + * [Label][google.ads.admanager.v1.Label]. + * Format:`networks/{network_code}/label/{label_id}` + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getLabel() + { + return $this->label; + } + + /** + * Required. Immutable. The resource name of the + * [Label][google.ads.admanager.v1.Label]. + * Format:`networks/{network_code}/label/{label_id}` + * + * Generated from protobuf field string label = 4 [(.google.api.field_behavior) = IMMUTABLE, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setLabel($var) + { + GPBUtil::checkString($var, True); + $this->label = $var; + + return $this; + } + + /** + * Required. The `creative_wrapper_type`. If the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL], + * the `video_tracking_urls` field must be set. If the `creative_wrapper_type` + * is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML], + * either the header or footer field must be set. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType creative_wrapper_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getCreativeWrapperType() + { + return isset($this->creative_wrapper_type) ? $this->creative_wrapper_type : 0; + } + + public function hasCreativeWrapperType() + { + return isset($this->creative_wrapper_type); + } + + public function clearCreativeWrapperType() + { + unset($this->creative_wrapper_type); + } + + /** + * Required. The `creative_wrapper_type`. If the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL], + * the `video_tracking_urls` field must be set. If the `creative_wrapper_type` + * is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML], + * either the header or footer field must be set. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType creative_wrapper_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setCreativeWrapperType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CreativeWrapperTypeEnum\CreativeWrapperType::class); + $this->creative_wrapper_type = $var; + + return $this; + } + + /** + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * + * Generated from protobuf field optional string header_creative = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getHeaderCreative() + { + return isset($this->header_creative) ? $this->header_creative : ''; + } + + public function hasHeaderCreative() + { + return isset($this->header_creative); + } + + public function clearHeaderCreative() + { + unset($this->header_creative); + } + + /** + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * + * Generated from protobuf field optional string header_creative = 7 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setHeaderCreative($var) + { + GPBUtil::checkString($var, True); + $this->header_creative = $var; + + return $this; + } + + /** + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * + * Generated from protobuf field optional string footer_creative = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @return string + */ + public function getFooterCreative() + { + return isset($this->footer_creative) ? $this->footer_creative : ''; + } + + public function hasFooterCreative() + { + return isset($this->footer_creative); + } + + public function clearFooterCreative() + { + unset($this->footer_creative); + } + + /** + * Output only. The resource name of the + * [Creative][google.ads.admanager.v1.Creative]. Format: + * `networks/{network_code}/creative/{creative_id}` + * + * Generated from protobuf field optional string footer_creative = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setFooterCreative($var) + { + GPBUtil::checkString($var, True); + $this->footer_creative = $var; + + return $this; + } + + /** + * Optional. The header HTML snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string html_header = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getHtmlHeader() + { + return isset($this->html_header) ? $this->html_header : ''; + } + + public function hasHtmlHeader() + { + return isset($this->html_header); + } + + public function clearHtmlHeader() + { + unset($this->html_header); + } + + /** + * Optional. The header HTML snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string html_header = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setHtmlHeader($var) + { + GPBUtil::checkString($var, True); + $this->html_header = $var; + + return $this; + } + + /** + * Optional. The footer HTML snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string html_footer = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getHtmlFooter() + { + return isset($this->html_footer) ? $this->html_footer : ''; + } + + public function hasHtmlFooter() + { + return isset($this->html_footer); + } + + public function clearHtmlFooter() + { + unset($this->html_footer); + } + + /** + * Optional. The footer HTML snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string html_footer = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setHtmlFooter($var) + { + GPBUtil::checkString($var, True); + $this->html_footer = $var; + + return $this; + } + + /** + * Optional. The header AMP snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string amp_header = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAmpHeader() + { + return isset($this->amp_header) ? $this->amp_header : ''; + } + + public function hasAmpHeader() + { + return isset($this->amp_header); + } + + public function clearAmpHeader() + { + unset($this->amp_header); + } + + /** + * Optional. The header AMP snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string amp_header = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAmpHeader($var) + { + GPBUtil::checkString($var, True); + $this->amp_header = $var; + + return $this; + } + + /** + * Optional. The footer AMP snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string amp_footer = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAmpFooter() + { + return isset($this->amp_footer) ? $this->amp_footer : ''; + } + + public function hasAmpFooter() + { + return isset($this->amp_footer); + } + + public function clearAmpFooter() + { + unset($this->amp_footer); + } + + /** + * Optional. The footer AMP snippet that this `CreativeWrapper` delivers. + * + * Generated from protobuf field optional string amp_footer = 14 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAmpFooter($var) + { + GPBUtil::checkString($var, True); + $this->amp_footer = $var; + + return $this; + } + + /** + * Optional. The video tracking URLs that this `CreativeWrapper` delivers. + * This field is required if the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL] + * and ignored otherwise. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.VideoTrackingUrl video_tracking_urls = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Ads\AdManager\V1\VideoTrackingUrl> + */ + public function getVideoTrackingUrls() + { + return $this->video_tracking_urls; + } + + /** + * Optional. The video tracking URLs that this `CreativeWrapper` delivers. + * This field is required if the `creative_wrapper_type` is + * [CreativeWrapperType.VIDEO_TRACKING_URL][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.VIDEO_TRACKING_URL] + * and ignored otherwise. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.VideoTrackingUrl video_tracking_urls = 15 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\VideoTrackingUrl[] $var + * @return $this + */ + public function setVideoTrackingUrls($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\VideoTrackingUrl::class); + $this->video_tracking_urls = $arr; + + return $this; + } + + /** + * Optional. The `ThirdPartyDataDeclaration` for this creative wrapper. + * The third party companies that are associated with this `CreativeWrapper` + * and are present in the `html_header` or `html_footer`. This field is only + * applicable when the `creative_wrapper_type` is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ThirdPartyDataDeclaration third_party_data_declaration = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\ThirdPartyDataDeclaration|null + */ + public function getThirdPartyDataDeclaration() + { + return $this->third_party_data_declaration; + } + + public function hasThirdPartyDataDeclaration() + { + return isset($this->third_party_data_declaration); + } + + public function clearThirdPartyDataDeclaration() + { + unset($this->third_party_data_declaration); + } + + /** + * Optional. The `ThirdPartyDataDeclaration` for this creative wrapper. + * The third party companies that are associated with this `CreativeWrapper` + * and are present in the `html_header` or `html_footer`. This field is only + * applicable when the `creative_wrapper_type` is + * [CreativeWrapperType.HTML][google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType.HTML]. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ThirdPartyDataDeclaration third_party_data_declaration = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\ThirdPartyDataDeclaration $var + * @return $this + */ + public function setThirdPartyDataDeclaration($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ThirdPartyDataDeclaration::class); + $this->third_party_data_declaration = $var; + + return $this; + } + + /** + * Optional. If there are multiple wrappers for a + * [Creative][google.ads.admanager.v1.Creative], then ordering + * defines the order in which the HTML snippets are rendered. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrdering ordering = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getOrdering() + { + return isset($this->ordering) ? $this->ordering : 0; + } + + public function hasOrdering() + { + return isset($this->ordering); + } + + public function clearOrdering() + { + unset($this->ordering); + } + + /** + * Optional. If there are multiple wrappers for a + * [Creative][google.ads.admanager.v1.Creative], then ordering + * defines the order in which the HTML snippets are rendered. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrdering ordering = 20 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setOrdering($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CreativeWrapperOrderingEnum\CreativeWrapperOrdering::class); + $this->ordering = $var; + + return $this; + } + + /** + * Output only. The status of the `CreativeWrapper`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatus status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of the `CreativeWrapper`. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatus status = 21 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CreativeWrapperStatusEnum\CreativeWrapperStatus::class); + $this->status = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/CreativeWrapperOrderingEnum.php b/AdsAdManager/src/V1/CreativeWrapperOrderingEnum.php new file mode 100644 index 000000000000..92d33055378a --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapperOrderingEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CreativeWrapperOrderingEnum + */ +class CreativeWrapperOrderingEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/CreativeWrapperOrderingEnum/CreativeWrapperOrdering.php b/AdsAdManager/src/V1/CreativeWrapperOrderingEnum/CreativeWrapperOrdering.php new file mode 100644 index 000000000000..2229c4663b32 --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapperOrderingEnum/CreativeWrapperOrdering.php @@ -0,0 +1,72 @@ +google.ads.admanager.v1.CreativeWrapperOrderingEnum.CreativeWrapperOrdering + */ +class CreativeWrapperOrdering +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CREATIVE_WRAPPER_ORDERING_UNSPECIFIED = 0; + */ + const CREATIVE_WRAPPER_ORDERING_UNSPECIFIED = 0; + /** + * Wrapping occurs as early as possible. + * + * Generated from protobuf enum INNER = 1; + */ + const INNER = 1; + /** + * Wrapping occurs after `INNER` but before `OUTER` + * + * Generated from protobuf enum NO_PREFERENCE = 2; + */ + const NO_PREFERENCE = 2; + /** + * Wrapping occurs after both `NO_PREFERENCE` and `INNER` + * + * Generated from protobuf enum OUTER = 3; + */ + const OUTER = 3; + + private static $valueToName = [ + self::CREATIVE_WRAPPER_ORDERING_UNSPECIFIED => 'CREATIVE_WRAPPER_ORDERING_UNSPECIFIED', + self::INNER => 'INNER', + self::NO_PREFERENCE => 'NO_PREFERENCE', + self::OUTER => 'OUTER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/CreativeWrapperStatusEnum.php b/AdsAdManager/src/V1/CreativeWrapperStatusEnum.php new file mode 100644 index 000000000000..4e3d0f30740e --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapperStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CreativeWrapperStatusEnum + */ +class CreativeWrapperStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/CreativeWrapperStatusEnum/CreativeWrapperStatus.php b/AdsAdManager/src/V1/CreativeWrapperStatusEnum/CreativeWrapperStatus.php new file mode 100644 index 000000000000..6bf764b9fc78 --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapperStatusEnum/CreativeWrapperStatus.php @@ -0,0 +1,62 @@ +google.ads.admanager.v1.CreativeWrapperStatusEnum.CreativeWrapperStatus + */ +class CreativeWrapperStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CREATIVE_WRAPPER_STATUS_UNSPECIFIED = 0; + */ + const CREATIVE_WRAPPER_STATUS_UNSPECIFIED = 0; + /** + * The CreativeWrapper will be applied to served creatives. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * The CreativeWrapper will not be applied to served creatives. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::CREATIVE_WRAPPER_STATUS_UNSPECIFIED => 'CREATIVE_WRAPPER_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/CreativeWrapperTypeEnum.php b/AdsAdManager/src/V1/CreativeWrapperTypeEnum.php new file mode 100644 index 000000000000..5e8e76173b84 --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapperTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.CreativeWrapperTypeEnum + */ +class CreativeWrapperTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/CreativeWrapperTypeEnum/CreativeWrapperType.php b/AdsAdManager/src/V1/CreativeWrapperTypeEnum/CreativeWrapperType.php new file mode 100644 index 000000000000..d39a4cf214bf --- /dev/null +++ b/AdsAdManager/src/V1/CreativeWrapperTypeEnum/CreativeWrapperType.php @@ -0,0 +1,61 @@ +google.ads.admanager.v1.CreativeWrapperTypeEnum.CreativeWrapperType + */ +class CreativeWrapperType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum CREATIVE_WRAPPER_TYPE_UNSPECIFIED = 0; + */ + const CREATIVE_WRAPPER_TYPE_UNSPECIFIED = 0; + /** + * HTML CreativeWrappers that include header/footer HTML snippets. + * + * Generated from protobuf enum HTML = 1; + */ + const HTML = 1; + /** + * Video Tracking URL CreativeWrappers that include tracking URIs. + * + * Generated from protobuf enum VIDEO_TRACKING_URL = 2; + */ + const VIDEO_TRACKING_URL = 2; + + private static $valueToName = [ + self::CREATIVE_WRAPPER_TYPE_UNSPECIFIED => 'CREATIVE_WRAPPER_TYPE_UNSPECIFIED', + self::HTML => 'HTML', + self::VIDEO_TRACKING_URL => 'VIDEO_TRACKING_URL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DaiAuthenticationKey.php b/AdsAdManager/src/V1/DaiAuthenticationKey.php new file mode 100644 index 000000000000..b97a3811c725 --- /dev/null +++ b/AdsAdManager/src/V1/DaiAuthenticationKey.php @@ -0,0 +1,228 @@ +google.ads.admanager.v1.DaiAuthenticationKey + */ +class DaiAuthenticationKey extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Output only. The status of this DaiAuthenticationKey. + * DAI authentication keys are created in the + * [`ACTIVE`][google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus.ACTIVE] + * state. + * Only active keys will be accepted by the IMA SDK API as valid. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Required. The name for this DaiAuthenticationKey. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. The type of this key, which determines how it should be used on + * stream create requests. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyType key_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $key_type = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * @type int $status + * Output only. The status of this DaiAuthenticationKey. + * DAI authentication keys are created in the + * [`ACTIVE`][google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus.ACTIVE] + * state. + * Only active keys will be accepted by the IMA SDK API as valid. + * @type string $display_name + * Required. The name for this DaiAuthenticationKey. + * @type int $key_type + * Optional. The type of this key, which determines how it should be used on + * stream create requests. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Output only. The status of this DaiAuthenticationKey. + * DAI authentication keys are created in the + * [`ACTIVE`][google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus.ACTIVE] + * state. + * Only active keys will be accepted by the IMA SDK API as valid. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of this DaiAuthenticationKey. + * DAI authentication keys are created in the + * [`ACTIVE`][google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus.ACTIVE] + * state. + * Only active keys will be accepted by the IMA SDK API as valid. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DaiAuthenticationKeyStatusEnum\DaiAuthenticationKeyStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Required. The name for this DaiAuthenticationKey. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name for this DaiAuthenticationKey. + * + * Generated from protobuf field optional string display_name = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The type of this key, which determines how it should be used on + * stream create requests. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyType key_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getKeyType() + { + return isset($this->key_type) ? $this->key_type : 0; + } + + public function hasKeyType() + { + return isset($this->key_type); + } + + public function clearKeyType() + { + unset($this->key_type); + } + + /** + * Optional. The type of this key, which determines how it should be used on + * stream create requests. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyType key_type = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setKeyType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DaiAuthenticationKeyTypeEnum\DaiAuthenticationKeyType::class); + $this->key_type = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/DaiAuthenticationKeyStatusEnum.php b/AdsAdManager/src/V1/DaiAuthenticationKeyStatusEnum.php new file mode 100644 index 000000000000..dfe4aa44a8a4 --- /dev/null +++ b/AdsAdManager/src/V1/DaiAuthenticationKeyStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum + */ +class DaiAuthenticationKeyStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DaiAuthenticationKeyStatusEnum/DaiAuthenticationKeyStatus.php b/AdsAdManager/src/V1/DaiAuthenticationKeyStatusEnum/DaiAuthenticationKeyStatus.php new file mode 100644 index 000000000000..c339e6548b66 --- /dev/null +++ b/AdsAdManager/src/V1/DaiAuthenticationKeyStatusEnum/DaiAuthenticationKeyStatus.php @@ -0,0 +1,63 @@ +google.ads.admanager.v1.DaiAuthenticationKeyStatusEnum.DaiAuthenticationKeyStatus + */ +class DaiAuthenticationKeyStatus +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED = 0; + */ + const DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED = 0; + /** + * Indicates that the API key is actively in use and that the IMA SDK API + * should accept it as a valid key in requests. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * Indicates that the API key is no longer is use and that the IMA SDK API + * should not accept it as a valid key in requests. + * + * Generated from protobuf enum INACTIVE = 2; + */ + const INACTIVE = 2; + + private static $valueToName = [ + self::DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED => 'DAI_AUTHENTICATION_KEY_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DaiAuthenticationKeyTypeEnum.php b/AdsAdManager/src/V1/DaiAuthenticationKeyTypeEnum.php new file mode 100644 index 000000000000..96bcfe7539d7 --- /dev/null +++ b/AdsAdManager/src/V1/DaiAuthenticationKeyTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum + */ +class DaiAuthenticationKeyTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DaiAuthenticationKeyTypeEnum/DaiAuthenticationKeyType.php b/AdsAdManager/src/V1/DaiAuthenticationKeyTypeEnum/DaiAuthenticationKeyType.php new file mode 100644 index 000000000000..f17bf6da4c84 --- /dev/null +++ b/AdsAdManager/src/V1/DaiAuthenticationKeyTypeEnum/DaiAuthenticationKeyType.php @@ -0,0 +1,64 @@ +google.ads.admanager.v1.DaiAuthenticationKeyTypeEnum.DaiAuthenticationKeyType + */ +class DaiAuthenticationKeyType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED = 0; + */ + const DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED = 0; + /** + * Indicates that the key is a standard API key and should be used with the + * api-key SDK parameter when authenticating stream create requests. + * + * Generated from protobuf enum API = 1; + */ + const API = 1; + /** + * Indicates that the key is an HMAC key and should be used to generate a + * signature for the stream create request with the auth-token SDK + * parameter. + * + * Generated from protobuf enum HMAC = 2; + */ + const HMAC = 2; + + private static $valueToName = [ + self::DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED => 'DAI_AUTHENTICATION_KEY_TYPE_UNSPECIFIED', + self::API => 'API', + self::HMAC => 'HMAC', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DaiEncodingProfile.php b/AdsAdManager/src/V1/DaiEncodingProfile.php new file mode 100644 index 000000000000..530134bcd314 --- /dev/null +++ b/AdsAdManager/src/V1/DaiEncodingProfile.php @@ -0,0 +1,386 @@ +google.ads.admanager.v1.DaiEncodingProfile + */ +class DaiEncodingProfile extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the `DaiEncodingProfile`. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The name of the DaiEncodingProfile. It may be at most 64 + * characters. The name field can contain alphanumeric characters and symbols + * other than the following: ", ', =, !, +, #, , ~, ;, ^, (, ), <, >, [, ], + * the white space character. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Output only. The status of this DaiEncodingProfile. + * DAI encoding profiles are created in the + * [DaiEncodingProfileStatus.ACTIVE][] state by default. + * Only active profiles will be allowed to be associated with live streams. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $status = null; + /** + * Required. The variant playlist type that this DaiEncodingProfile + * represents. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantType variant_type = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $variant_type = null; + /** + * Required. The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContainerTypeEnum.ContainerType container_type = 6 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $container_type = null; + /** + * Optional. Information about the video media, if present. This field will + * only be set if the media contains video, or is an IFRAME variant type. + * + * Generated from protobuf field .google.ads.admanager.v1.VideoSettings video_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $video_settings = null; + /** + * Optional. Information about the audio media, if present. This field will + * only be set if the media contains audio. Only MEDIA and IFRAME variant + * types can set audio. + * + * Generated from protobuf field .google.ads.admanager.v1.AudioSettings audio_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $audio_settings = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the `DaiEncodingProfile`. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * @type string $display_name + * Required. The name of the DaiEncodingProfile. It may be at most 64 + * characters. The name field can contain alphanumeric characters and symbols + * other than the following: ", ', =, !, +, #, , ~, ;, ^, (, ), <, >, [, ], + * the white space character. + * @type int $status + * Output only. The status of this DaiEncodingProfile. + * DAI encoding profiles are created in the + * [DaiEncodingProfileStatus.ACTIVE][] state by default. + * Only active profiles will be allowed to be associated with live streams. + * @type int $variant_type + * Required. The variant playlist type that this DaiEncodingProfile + * represents. + * @type int $container_type + * Required. The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + * @type \Google\Ads\AdManager\V1\VideoSettings $video_settings + * Optional. Information about the video media, if present. This field will + * only be set if the media contains video, or is an IFRAME variant type. + * @type \Google\Ads\AdManager\V1\AudioSettings $audio_settings + * Optional. Information about the audio media, if present. This field will + * only be set if the media contains audio. Only MEDIA and IFRAME variant + * types can set audio. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the `DaiEncodingProfile`. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the `DaiEncodingProfile`. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The name of the DaiEncodingProfile. It may be at most 64 + * characters. The name field can contain alphanumeric characters and symbols + * other than the following: ", ', =, !, +, #, , ~, ;, ^, (, ), <, >, [, ], + * the white space character. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The name of the DaiEncodingProfile. It may be at most 64 + * characters. The name field can contain alphanumeric characters and symbols + * other than the following: ", ', =, !, +, #, , ~, ;, ^, (, ), <, >, [, ], + * the white space character. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Output only. The status of this DaiEncodingProfile. + * DAI encoding profiles are created in the + * [DaiEncodingProfileStatus.ACTIVE][] state by default. + * Only active profiles will be allowed to be associated with live streams. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return int + */ + public function getStatus() + { + return isset($this->status) ? $this->status : 0; + } + + public function hasStatus() + { + return isset($this->status); + } + + public function clearStatus() + { + unset($this->status); + } + + /** + * Output only. The status of this DaiEncodingProfile. + * DAI encoding profiles are created in the + * [DaiEncodingProfileStatus.ACTIVE][] state by default. + * Only active profiles will be allowed to be associated with live streams. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatus status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param int $var + * @return $this + */ + public function setStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DaiEncodingProfileStatusEnum\DaiEncodingProfileStatus::class); + $this->status = $var; + + return $this; + } + + /** + * Required. The variant playlist type that this DaiEncodingProfile + * represents. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantType variant_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getVariantType() + { + return isset($this->variant_type) ? $this->variant_type : 0; + } + + public function hasVariantType() + { + return isset($this->variant_type); + } + + public function clearVariantType() + { + unset($this->variant_type); + } + + /** + * Required. The variant playlist type that this DaiEncodingProfile + * represents. + * + * Generated from protobuf field optional .google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantType variant_type = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setVariantType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\DaiEncodingProfileVariantTypeEnum\DaiEncodingProfileVariantType::class); + $this->variant_type = $var; + + return $this; + } + + /** + * Required. The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContainerTypeEnum.ContainerType container_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getContainerType() + { + return isset($this->container_type) ? $this->container_type : 0; + } + + public function hasContainerType() + { + return isset($this->container_type); + } + + public function clearContainerType() + { + unset($this->container_type); + } + + /** + * Required. The digital container type of the underlying media. This is + * required for MEDIA and IFRAME variant types. + * + * Generated from protobuf field optional .google.ads.admanager.v1.ContainerTypeEnum.ContainerType container_type = 6 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setContainerType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ContainerTypeEnum\ContainerType::class); + $this->container_type = $var; + + return $this; + } + + /** + * Optional. Information about the video media, if present. This field will + * only be set if the media contains video, or is an IFRAME variant type. + * + * Generated from protobuf field .google.ads.admanager.v1.VideoSettings video_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\VideoSettings|null + */ + public function getVideoSettings() + { + return $this->video_settings; + } + + public function hasVideoSettings() + { + return isset($this->video_settings); + } + + public function clearVideoSettings() + { + unset($this->video_settings); + } + + /** + * Optional. Information about the video media, if present. This field will + * only be set if the media contains video, or is an IFRAME variant type. + * + * Generated from protobuf field .google.ads.admanager.v1.VideoSettings video_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\VideoSettings $var + * @return $this + */ + public function setVideoSettings($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\VideoSettings::class); + $this->video_settings = $var; + + return $this; + } + + /** + * Optional. Information about the audio media, if present. This field will + * only be set if the media contains audio. Only MEDIA and IFRAME variant + * types can set audio. + * + * Generated from protobuf field .google.ads.admanager.v1.AudioSettings audio_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Ads\AdManager\V1\AudioSettings|null + */ + public function getAudioSettings() + { + return $this->audio_settings; + } + + public function hasAudioSettings() + { + return isset($this->audio_settings); + } + + public function clearAudioSettings() + { + unset($this->audio_settings); + } + + /** + * Optional. Information about the audio media, if present. This field will + * only be set if the media contains audio. Only MEDIA and IFRAME variant + * types can set audio. + * + * Generated from protobuf field .google.ads.admanager.v1.AudioSettings audio_settings = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\AudioSettings $var + * @return $this + */ + public function setAudioSettings($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\AudioSettings::class); + $this->audio_settings = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/DaiEncodingProfileStatusEnum.php b/AdsAdManager/src/V1/DaiEncodingProfileStatusEnum.php new file mode 100644 index 000000000000..58660fb8fc9f --- /dev/null +++ b/AdsAdManager/src/V1/DaiEncodingProfileStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DaiEncodingProfileStatusEnum + */ +class DaiEncodingProfileStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DaiEncodingProfileStatusEnum/DaiEncodingProfileStatus.php b/AdsAdManager/src/V1/DaiEncodingProfileStatusEnum/DaiEncodingProfileStatus.php new file mode 100644 index 000000000000..712a982476fb --- /dev/null +++ b/AdsAdManager/src/V1/DaiEncodingProfileStatusEnum/DaiEncodingProfileStatus.php @@ -0,0 +1,62 @@ +google.ads.admanager.v1.DaiEncodingProfileStatusEnum.DaiEncodingProfileStatus + */ +class DaiEncodingProfileStatus +{ + /** + * Not specified value. + * + * Generated from protobuf enum DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED = 0; + */ + const DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED = 0; + /** + * Indicates the DaiEncodingProfile has been created and is eligible for + * streaming. + * + * Generated from protobuf enum ACTIVE = 1; + */ + const ACTIVE = 1; + /** + * Indicates the DaiEncodingProfile has been archived. + * + * Generated from protobuf enum ARCHIVED = 2; + */ + const ARCHIVED = 2; + + private static $valueToName = [ + self::DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED => 'DAI_ENCODING_PROFILE_STATUS_UNSPECIFIED', + self::ACTIVE => 'ACTIVE', + self::ARCHIVED => 'ARCHIVED', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DaiEncodingProfileVariantTypeEnum.php b/AdsAdManager/src/V1/DaiEncodingProfileVariantTypeEnum.php new file mode 100644 index 000000000000..f8c345ac96d0 --- /dev/null +++ b/AdsAdManager/src/V1/DaiEncodingProfileVariantTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum + */ +class DaiEncodingProfileVariantTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DaiEncodingProfileVariantTypeEnum/DaiEncodingProfileVariantType.php b/AdsAdManager/src/V1/DaiEncodingProfileVariantTypeEnum/DaiEncodingProfileVariantType.php new file mode 100644 index 000000000000..5da38a2a4a07 --- /dev/null +++ b/AdsAdManager/src/V1/DaiEncodingProfileVariantTypeEnum/DaiEncodingProfileVariantType.php @@ -0,0 +1,70 @@ +google.ads.admanager.v1.DaiEncodingProfileVariantTypeEnum.DaiEncodingProfileVariantType + */ +class DaiEncodingProfileVariantType +{ + /** + * Not specified value. + * + * Generated from protobuf enum DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED = 0; + */ + const DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED = 0; + /** + * Media variant playlist type. Media playlists may: contain audio only + * video only, or audio and video. + * + * Generated from protobuf enum MEDIA = 1; + */ + const MEDIA = 1; + /** + * iFrame variant playlist type. iFrame playlists may: contain video or + * contain audio and video (i.e. video must be present). + * + * Generated from protobuf enum IFRAME = 2; + */ + const IFRAME = 2; + /** + * Subtitles variant playlist type. + * + * Generated from protobuf enum SUBTITLES = 3; + */ + const SUBTITLES = 3; + + private static $valueToName = [ + self::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED => 'DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED', + self::MEDIA => 'MEDIA', + self::IFRAME => 'IFRAME', + self::SUBTITLES => 'SUBTITLES', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DelegationAccountStatusEnum.php b/AdsAdManager/src/V1/DelegationAccountStatusEnum.php new file mode 100644 index 000000000000..a4f696fe75c4 --- /dev/null +++ b/AdsAdManager/src/V1/DelegationAccountStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DelegationAccountStatusEnum + */ +class DelegationAccountStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DelegationAccountStatusEnum/DelegationAccountStatus.php b/AdsAdManager/src/V1/DelegationAccountStatusEnum/DelegationAccountStatus.php new file mode 100644 index 000000000000..c0fafde83a56 --- /dev/null +++ b/AdsAdManager/src/V1/DelegationAccountStatusEnum/DelegationAccountStatus.php @@ -0,0 +1,145 @@ +google.ads.admanager.v1.DelegationAccountStatusEnum.DelegationAccountStatus + */ +class DelegationAccountStatus +{ + /** + * No value specified + * + * Generated from protobuf enum DELEGATION_ACCOUNT_STATUS_UNSPECIFIED = 0; + */ + const DELEGATION_ACCOUNT_STATUS_UNSPECIFIED = 0; + /** + * Indicates the child publisher has not acted on the invite from the + * parent. + * + * Generated from protobuf enum INVITED = 1; + */ + const INVITED = 1; + /** + * Indicates the child publisher has declined the invite. + * + * Generated from protobuf enum DECLINED = 2; + */ + const DECLINED = 2; + /** + * Indicates the child publisher accepted the invite, and Google found it to + * be compliant with its policies, i.e. no policy violations were found, + * and the child publisher can be served ads. + * + * Generated from protobuf enum APPROVED = 3; + */ + const APPROVED = 3; + /** + * Indicates the child publisher has closed their own account. + * + * Generated from protobuf enum CLOSED_BY_PUBLISHER = 4; + */ + const CLOSED_BY_PUBLISHER = 4; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * Google for invalid activity. + * + * Generated from protobuf enum CLOSED_INVALID_ACTIVITY = 5; + */ + const CLOSED_INVALID_ACTIVITY = 5; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * Google for violating its policies. + * + * Generated from protobuf enum CLOSED_POLICY_VIOLATION = 6; + */ + const CLOSED_POLICY_VIOLATION = 6; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * a Googler. + * + * Generated from protobuf enum DEACTIVATED_BY_AD_MANAGER = 7; + */ + const DEACTIVATED_BY_AD_MANAGER = 7; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * Google for being a duplicate of another account. + * + * Generated from protobuf enum DISAPPROVED_DUPLICATE_ACCOUNT = 8; + */ + const DISAPPROVED_DUPLICATE_ACCOUNT = 8; + /** + * Indicates the child publisher accepted the invite, but was disapproved as + * ineligible by Google. + * + * Generated from protobuf enum DISAPPROVED_INELIGIBLE = 9; + */ + const DISAPPROVED_INELIGIBLE = 9; + /** + * Indicates the child publisher has accepted the invite, and is awaiting + * Google's policy compliance verifications. + * + * Generated from protobuf enum PENDING_GOOGLE_APPROVAL = 10; + */ + const PENDING_GOOGLE_APPROVAL = 10; + /** + * Indicates the invite was sent to the child publisher more than 90 days + * ago, due to which it has been deactivated. + * + * Generated from protobuf enum EXPIRED = 11; + */ + const EXPIRED = 11; + /** + * Indicates either the child publisher disconnected from the parent + * network, or the parent network withdrew the invite. + * + * Generated from protobuf enum INACTIVE = 12; + */ + const INACTIVE = 12; + + private static $valueToName = [ + self::DELEGATION_ACCOUNT_STATUS_UNSPECIFIED => 'DELEGATION_ACCOUNT_STATUS_UNSPECIFIED', + self::INVITED => 'INVITED', + self::DECLINED => 'DECLINED', + self::APPROVED => 'APPROVED', + self::CLOSED_BY_PUBLISHER => 'CLOSED_BY_PUBLISHER', + self::CLOSED_INVALID_ACTIVITY => 'CLOSED_INVALID_ACTIVITY', + self::CLOSED_POLICY_VIOLATION => 'CLOSED_POLICY_VIOLATION', + self::DEACTIVATED_BY_AD_MANAGER => 'DEACTIVATED_BY_AD_MANAGER', + self::DISAPPROVED_DUPLICATE_ACCOUNT => 'DISAPPROVED_DUPLICATE_ACCOUNT', + self::DISAPPROVED_INELIGIBLE => 'DISAPPROVED_INELIGIBLE', + self::PENDING_GOOGLE_APPROVAL => 'PENDING_GOOGLE_APPROVAL', + self::EXPIRED => 'EXPIRED', + self::INACTIVE => 'INACTIVE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DelegationApprovalStatusEnum.php b/AdsAdManager/src/V1/DelegationApprovalStatusEnum.php new file mode 100644 index 000000000000..9a8ec6608ea3 --- /dev/null +++ b/AdsAdManager/src/V1/DelegationApprovalStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DelegationApprovalStatusEnum + */ +class DelegationApprovalStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DelegationApprovalStatusEnum/DelegationApprovalStatus.php b/AdsAdManager/src/V1/DelegationApprovalStatusEnum/DelegationApprovalStatus.php new file mode 100644 index 000000000000..efc5c6eafd85 --- /dev/null +++ b/AdsAdManager/src/V1/DelegationApprovalStatusEnum/DelegationApprovalStatus.php @@ -0,0 +1,114 @@ +google.ads.admanager.v1.DelegationApprovalStatusEnum.DelegationApprovalStatus + */ +class DelegationApprovalStatus +{ + /** + * No value specified + * + * Generated from protobuf enum DELEGATION_APPROVAL_STATUS_UNSPECIFIED = 0; + */ + const DELEGATION_APPROVAL_STATUS_UNSPECIFIED = 0; + /** + * Indicates the child publisher accepted the invite, and Google found it to + * be compliant with its policies, i.e. no policy violations were found, + * and the child publisher can be served ads. + * + * Generated from protobuf enum APPROVED = 1; + */ + const APPROVED = 1; + /** + * Indicates the child publisher has closed their own account. + * + * Generated from protobuf enum CLOSED_BY_PUBLISHER = 2; + */ + const CLOSED_BY_PUBLISHER = 2; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * Google for invalid activity. + * + * Generated from protobuf enum CLOSED_INVALID_ACTIVITY = 3; + */ + const CLOSED_INVALID_ACTIVITY = 3; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * Google for violating its policies. + * + * Generated from protobuf enum CLOSED_POLICY_VIOLATION = 4; + */ + const CLOSED_POLICY_VIOLATION = 4; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * a Googler. + * + * Generated from protobuf enum DEACTIVATED_BY_AD_MANAGER = 5; + */ + const DEACTIVATED_BY_AD_MANAGER = 5; + /** + * Indicates the child publisher accepted the invite, but was disapproved by + * Google for being a duplicate of another account. + * + * Generated from protobuf enum DISAPPROVED_DUPLICATE_ACCOUNT = 6; + */ + const DISAPPROVED_DUPLICATE_ACCOUNT = 6; + /** + * Indicates the child publisher accepted the invite, but was disapproved as + * ineligible by Google. + * + * Generated from protobuf enum DISAPPROVED_INELIGIBLE = 7; + */ + const DISAPPROVED_INELIGIBLE = 7; + /** + * Indicates the child publisher has accepted the invite, and is awaiting + * Google's policy compliance verifications. + * + * Generated from protobuf enum PENDING_GOOGLE_APPROVAL = 8; + */ + const PENDING_GOOGLE_APPROVAL = 8; + + private static $valueToName = [ + self::DELEGATION_APPROVAL_STATUS_UNSPECIFIED => 'DELEGATION_APPROVAL_STATUS_UNSPECIFIED', + self::APPROVED => 'APPROVED', + self::CLOSED_BY_PUBLISHER => 'CLOSED_BY_PUBLISHER', + self::CLOSED_INVALID_ACTIVITY => 'CLOSED_INVALID_ACTIVITY', + self::CLOSED_POLICY_VIOLATION => 'CLOSED_POLICY_VIOLATION', + self::DEACTIVATED_BY_AD_MANAGER => 'DEACTIVATED_BY_AD_MANAGER', + self::DISAPPROVED_DUPLICATE_ACCOUNT => 'DISAPPROVED_DUPLICATE_ACCOUNT', + self::DISAPPROVED_INELIGIBLE => 'DISAPPROVED_INELIGIBLE', + self::PENDING_GOOGLE_APPROVAL => 'PENDING_GOOGLE_APPROVAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/DelegationInvitationStatusEnum.php b/AdsAdManager/src/V1/DelegationInvitationStatusEnum.php new file mode 100644 index 000000000000..78b19caca741 --- /dev/null +++ b/AdsAdManager/src/V1/DelegationInvitationStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.DelegationInvitationStatusEnum + */ +class DelegationInvitationStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/DelegationInvitationStatusEnum/DelegationInvitationStatus.php b/AdsAdManager/src/V1/DelegationInvitationStatusEnum/DelegationInvitationStatus.php new file mode 100644 index 000000000000..ecc8cb2af7a8 --- /dev/null +++ b/AdsAdManager/src/V1/DelegationInvitationStatusEnum/DelegationInvitationStatus.php @@ -0,0 +1,94 @@ +google.ads.admanager.v1.DelegationInvitationStatusEnum.DelegationInvitationStatus + */ +class DelegationInvitationStatus +{ + /** + * No value specified + * + * Generated from protobuf enum DELEGATION_INVITATION_STATUS_UNSPECIFIED = 0; + */ + const DELEGATION_INVITATION_STATUS_UNSPECIFIED = 0; + /** + * Indicates the association request from the parent network is accepted by + * the child network. + * + * Generated from protobuf enum ACCEPTED = 1; + */ + const ACCEPTED = 1; + /** + * Indicates the invite was sent to the child publisher more than 90 days + * ago, due to which it has been deactivated. + * + * Generated from protobuf enum EXPIRED = 2; + */ + const EXPIRED = 2; + /** + * Indicates the child publisher has not acted on the invite from the + * parent. + * + * Generated from protobuf enum PENDING = 3; + */ + const PENDING = 3; + /** + * Indicates the child publisher has declined the invite. + * + * Generated from protobuf enum REJECTED = 4; + */ + const REJECTED = 4; + /** + * Indicates the parent network withdrew the invite. + * + * Generated from protobuf enum WITHDRAWN = 5; + */ + const WITHDRAWN = 5; + /** + * Indicates the invitation was disapproved by Google. + * + * Generated from protobuf enum DEACTIVATED_BY_AD_MANAGER = 6; + */ + const DEACTIVATED_BY_AD_MANAGER = 6; + + private static $valueToName = [ + self::DELEGATION_INVITATION_STATUS_UNSPECIFIED => 'DELEGATION_INVITATION_STATUS_UNSPECIFIED', + self::ACCEPTED => 'ACCEPTED', + self::EXPIRED => 'EXPIRED', + self::PENDING => 'PENDING', + self::REJECTED => 'REJECTED', + self::WITHDRAWN => 'WITHDRAWN', + self::DEACTIVATED_BY_AD_MANAGER => 'DEACTIVATED_BY_AD_MANAGER', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/GetChildPublisherRequest.php b/AdsAdManager/src/V1/GetChildPublisherRequest.php new file mode 100644 index 000000000000..2a0a5bb0a220 --- /dev/null +++ b/AdsAdManager/src/V1/GetChildPublisherRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetChildPublisherRequest + */ +class GetChildPublisherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format: + * `networks/{network_code}/childPublishers/{child_publisher_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format: + * `networks/{network_code}/childPublishers/{child_publisher_id}` + * Please see {@see ChildPublisherServiceClient::childPublisherName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetChildPublisherRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format: + * `networks/{network_code}/childPublishers/{child_publisher_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format: + * `networks/{network_code}/childPublishers/{child_publisher_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]. Format: + * `networks/{network_code}/childPublishers/{child_publisher_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/GetCompanyRequest.php b/AdsAdManager/src/V1/GetCompanyRequest.php index fdf14dc264b0..88d021344285 100644 --- a/AdsAdManager/src/V1/GetCompanyRequest.php +++ b/AdsAdManager/src/V1/GetCompanyRequest.php @@ -9,7 +9,7 @@ use Google\Protobuf\RepeatedField; /** - * Request object for `GetCompany` method. + * Request object for [GetCompany][] method. * * Generated from protobuf message google.ads.admanager.v1.GetCompanyRequest */ diff --git a/AdsAdManager/src/V1/GetCreativeWrapperRequest.php b/AdsAdManager/src/V1/GetCreativeWrapperRequest.php new file mode 100644 index 000000000000..17d1cb34e3cc --- /dev/null +++ b/AdsAdManager/src/V1/GetCreativeWrapperRequest.php @@ -0,0 +1,86 @@ +google.ads.admanager.v1.GetCreativeWrapperRequest + */ +class GetCreativeWrapperRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the CreativeWrapper. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the CreativeWrapper. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * Please see {@see CreativeWrapperServiceClient::creativeWrapperName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetCreativeWrapperRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the CreativeWrapper. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the CreativeWrapper. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the CreativeWrapper. + * Format: `networks/{network_code}/creativeWrappers/{creative_wrapper_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/GetDaiAuthenticationKeyRequest.php b/AdsAdManager/src/V1/GetDaiAuthenticationKeyRequest.php new file mode 100644 index 000000000000..4eb0d1261b6f --- /dev/null +++ b/AdsAdManager/src/V1/GetDaiAuthenticationKeyRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetDaiAuthenticationKeyRequest + */ +class GetDaiAuthenticationKeyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + * Please see {@see DaiAuthenticationKeyServiceClient::daiAuthenticationKeyName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetDaiAuthenticationKeyRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the `DaiAuthenticationKey`. + * Format: + * `networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/GetDaiEncodingProfileRequest.php b/AdsAdManager/src/V1/GetDaiEncodingProfileRequest.php new file mode 100644 index 000000000000..cea63822dc21 --- /dev/null +++ b/AdsAdManager/src/V1/GetDaiEncodingProfileRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetDaiEncodingProfileRequest + */ +class GetDaiEncodingProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the DaiEncodingProfile. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the DaiEncodingProfile. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * Please see {@see DaiEncodingProfileServiceClient::daiEncodingProfileName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetDaiEncodingProfileRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the DaiEncodingProfile. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the DaiEncodingProfile. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the DaiEncodingProfile. + * Format: + * `networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/GetPartnerRequest.php b/AdsAdManager/src/V1/GetPartnerRequest.php new file mode 100644 index 000000000000..8a065f087c2b --- /dev/null +++ b/AdsAdManager/src/V1/GetPartnerRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetPartnerRequest + */ +class GetPartnerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * Please see {@see PartnerServiceClient::partnerName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetPartnerRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/GetViewabilityProviderRequest.php b/AdsAdManager/src/V1/GetViewabilityProviderRequest.php new file mode 100644 index 000000000000..7bdac54c58a1 --- /dev/null +++ b/AdsAdManager/src/V1/GetViewabilityProviderRequest.php @@ -0,0 +1,91 @@ +google.ads.admanager.v1.GetViewabilityProviderRequest + */ +class GetViewabilityProviderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $name = ''; + + /** + * @param string $name Required. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * Please see {@see ViewabilityProviderServiceClient::viewabilityProviderName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\GetViewabilityProviderRequest + * + * @experimental + */ + public static function build(string $name): self + { + return (new self()) + ->setName($name); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Required. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Required. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListAdRulesRequest.php b/AdsAdManager/src/V1/ListAdRulesRequest.php index 94a64b8876a1..b5613461c724 100644 --- a/AdsAdManager/src/V1/ListAdRulesRequest.php +++ b/AdsAdManager/src/V1/ListAdRulesRequest.php @@ -44,13 +44,11 @@ class ListAdRulesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • priority
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `priority` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -108,13 +106,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • priority
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `priority` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -224,13 +220,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • priority
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `priority` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -244,13 +238,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • priority
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `priority` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListAdSpotsRequest.php b/AdsAdManager/src/V1/ListAdSpotsRequest.php index df9f3ed79dec..9c944d1bf9e4 100644 --- a/AdsAdManager/src/V1/ListAdSpotsRequest.php +++ b/AdsAdManager/src/V1/ListAdSpotsRequest.php @@ -44,14 +44,12 @@ class ListAdSpotsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalDisplayName
  • - *
  • customSpot
  • - *
  • displayName
  • - *
  • flexible
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `canonicalDisplayName` + * * `customSpot` + * * `displayName` + * * `flexible` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalDisplayName
  • - *
  • customSpot
  • - *
  • displayName
  • - *
  • flexible
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `canonicalDisplayName` + * * `customSpot` + * * `displayName` + * * `flexible` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalDisplayName
  • - *
  • customSpot
  • - *
  • displayName
  • - *
  • flexible
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `canonicalDisplayName` + * * `customSpot` + * * `displayName` + * * `flexible` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalDisplayName
  • - *
  • customSpot
  • - *
  • displayName
  • - *
  • flexible
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `canonicalDisplayName` + * * `customSpot` + * * `displayName` + * * `flexible` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListAdUnitsRequest.php b/AdsAdManager/src/V1/ListAdUnitsRequest.php index d22031dacd2f..70a8a338bc28 100644 --- a/AdsAdManager/src/V1/ListAdUnitsRequest.php +++ b/AdsAdManager/src/V1/ListAdUnitsRequest.php @@ -44,21 +44,19 @@ class ListAdUnitsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adUnitCode
  • - *
  • adUnitSizes.canonicalName
  • - *
  • displayName
  • - *
  • effectiveAdsenseEnabled
  • - *
  • explicitlyTargeted
  • - *
  • externalSetTopBoxChannelId
  • - *
  • hasChildren
  • - *
  • name
  • - *
  • parentAdUnit
  • - *
  • status
  • - *
  • teams
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `adUnitCode` + * * `adUnitSizes.canonicalName` + * * `displayName` + * * `effectiveAdsenseEnabled` + * * `explicitlyTargeted` + * * `externalSetTopBoxChannelId` + * * `hasChildren` + * * `name` + * * `parentAdUnit` + * * `status` + * * `teams` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -116,21 +114,19 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adUnitCode
  • - *
  • adUnitSizes.canonicalName
  • - *
  • displayName
  • - *
  • effectiveAdsenseEnabled
  • - *
  • explicitlyTargeted
  • - *
  • externalSetTopBoxChannelId
  • - *
  • hasChildren
  • - *
  • name
  • - *
  • parentAdUnit
  • - *
  • status
  • - *
  • teams
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `adUnitCode` + * * `adUnitSizes.canonicalName` + * * `displayName` + * * `effectiveAdsenseEnabled` + * * `explicitlyTargeted` + * * `externalSetTopBoxChannelId` + * * `hasChildren` + * * `name` + * * `parentAdUnit` + * * `status` + * * `teams` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -240,21 +236,19 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adUnitCode
  • - *
  • adUnitSizes.canonicalName
  • - *
  • displayName
  • - *
  • effectiveAdsenseEnabled
  • - *
  • explicitlyTargeted
  • - *
  • externalSetTopBoxChannelId
  • - *
  • hasChildren
  • - *
  • name
  • - *
  • parentAdUnit
  • - *
  • status
  • - *
  • teams
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `adUnitCode` + * * `adUnitSizes.canonicalName` + * * `displayName` + * * `effectiveAdsenseEnabled` + * * `explicitlyTargeted` + * * `externalSetTopBoxChannelId` + * * `hasChildren` + * * `name` + * * `parentAdUnit` + * * `status` + * * `teams` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -268,21 +262,19 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adUnitCode
  • - *
  • adUnitSizes.canonicalName
  • - *
  • displayName
  • - *
  • effectiveAdsenseEnabled
  • - *
  • explicitlyTargeted
  • - *
  • externalSetTopBoxChannelId
  • - *
  • hasChildren
  • - *
  • name
  • - *
  • parentAdUnit
  • - *
  • status
  • - *
  • teams
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `adUnitCode` + * * `adUnitSizes.canonicalName` + * * `displayName` + * * `effectiveAdsenseEnabled` + * * `explicitlyTargeted` + * * `externalSetTopBoxChannelId` + * * `hasChildren` + * * `name` + * * `parentAdUnit` + * * `status` + * * `teams` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListApplicationsRequest.php b/AdsAdManager/src/V1/ListApplicationsRequest.php index 901aceae6687..c9195dbd6a2a 100644 --- a/AdsAdManager/src/V1/ListApplicationsRequest.php +++ b/AdsAdManager/src/V1/ListApplicationsRequest.php @@ -44,18 +44,16 @@ class ListApplicationsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • appStoreId
  • - *
  • appStores
  • - *
  • applicationCode
  • - *
  • approvalStatus
  • - *
  • archived
  • - *
  • displayName
  • - *
  • name
  • - *
  • platform
  • - *
  • webviewClaimingStatus
  • - *
+ * **Filterable fields:** + * * `appStoreId` + * * `appStores` + * * `applicationCode` + * * `approvalStatus` + * * `archived` + * * `displayName` + * * `name` + * * `platform` + * * `webviewClaimingStatus` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -113,18 +111,16 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • appStoreId
  • - *
  • appStores
  • - *
  • applicationCode
  • - *
  • approvalStatus
  • - *
  • archived
  • - *
  • displayName
  • - *
  • name
  • - *
  • platform
  • - *
  • webviewClaimingStatus
  • - *
+ * **Filterable fields:** + * * `appStoreId` + * * `appStores` + * * `applicationCode` + * * `approvalStatus` + * * `archived` + * * `displayName` + * * `name` + * * `platform` + * * `webviewClaimingStatus` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -234,18 +230,16 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • appStoreId
  • - *
  • appStores
  • - *
  • applicationCode
  • - *
  • approvalStatus
  • - *
  • archived
  • - *
  • displayName
  • - *
  • name
  • - *
  • platform
  • - *
  • webviewClaimingStatus
  • - *
+ * **Filterable fields:** + * * `appStoreId` + * * `appStores` + * * `applicationCode` + * * `approvalStatus` + * * `archived` + * * `displayName` + * * `name` + * * `platform` + * * `webviewClaimingStatus` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -259,18 +253,16 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • appStoreId
  • - *
  • appStores
  • - *
  • applicationCode
  • - *
  • approvalStatus
  • - *
  • archived
  • - *
  • displayName
  • - *
  • name
  • - *
  • platform
  • - *
  • webviewClaimingStatus
  • - *
+ * **Filterable fields:** + * * `appStoreId` + * * `appStores` + * * `applicationCode` + * * `approvalStatus` + * * `archived` + * * `displayName` + * * `name` + * * `platform` + * * `webviewClaimingStatus` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListAudienceSegmentsRequest.php b/AdsAdManager/src/V1/ListAudienceSegmentsRequest.php index 71abcf871a4e..49fe3f6cf1f9 100644 --- a/AdsAdManager/src/V1/ListAudienceSegmentsRequest.php +++ b/AdsAdManager/src/V1/ListAudienceSegmentsRequest.php @@ -44,10 +44,8 @@ class ListAudienceSegmentsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
+ * **Filterable fields:** + * * `displayName` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -105,10 +103,8 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
+ * **Filterable fields:** + * * `displayName` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -218,10 +214,8 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
+ * **Filterable fields:** + * * `displayName` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -235,10 +229,8 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
+ * **Filterable fields:** + * * `displayName` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php b/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php index 04473a6ccd7b..938d540f93fb 100644 --- a/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php +++ b/AdsAdManager/src/V1/ListBandwidthGroupsRequest.php @@ -44,11 +44,9 @@ class ListBandwidthGroupsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListBrowserLanguagesRequest.php b/AdsAdManager/src/V1/ListBrowserLanguagesRequest.php index 028805836891..f448acf79824 100644 --- a/AdsAdManager/src/V1/ListBrowserLanguagesRequest.php +++ b/AdsAdManager/src/V1/ListBrowserLanguagesRequest.php @@ -44,11 +44,9 @@ class ListBrowserLanguagesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListBrowsersRequest.php b/AdsAdManager/src/V1/ListBrowsersRequest.php index 5f591320bfe2..9f97aaa0532f 100644 --- a/AdsAdManager/src/V1/ListBrowsersRequest.php +++ b/AdsAdManager/src/V1/ListBrowsersRequest.php @@ -44,13 +44,11 @@ class ListBrowsersRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • majorVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `majorVersion` + * * `minorVersion` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -108,13 +106,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • majorVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `majorVersion` + * * `minorVersion` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -224,13 +220,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • majorVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `majorVersion` + * * `minorVersion` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -244,13 +238,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • majorVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `majorVersion` + * * `minorVersion` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCdnConfigsRequest.php b/AdsAdManager/src/V1/ListCdnConfigsRequest.php index 67ab5a6f7c02..917385abb790 100644 --- a/AdsAdManager/src/V1/ListCdnConfigsRequest.php +++ b/AdsAdManager/src/V1/ListCdnConfigsRequest.php @@ -44,14 +44,12 @@ class ListCdnConfigsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cdnConfigStatus
  • - *
  • cdnConfigType
  • - *
  • displayName
  • - *
  • name
  • - *
  • sourceContentConfig.ingestSettings.urlPrefix
  • - *
+ * **Filterable fields:** + * * `cdnConfigStatus` + * * `cdnConfigType` + * * `displayName` + * * `name` + * * `sourceContentConfig.ingestSettings.urlPrefix` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cdnConfigStatus
  • - *
  • cdnConfigType
  • - *
  • displayName
  • - *
  • name
  • - *
  • sourceContentConfig.ingestSettings.urlPrefix
  • - *
+ * **Filterable fields:** + * * `cdnConfigStatus` + * * `cdnConfigType` + * * `displayName` + * * `name` + * * `sourceContentConfig.ingestSettings.urlPrefix` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cdnConfigStatus
  • - *
  • cdnConfigType
  • - *
  • displayName
  • - *
  • name
  • - *
  • sourceContentConfig.ingestSettings.urlPrefix
  • - *
+ * **Filterable fields:** + * * `cdnConfigStatus` + * * `cdnConfigType` + * * `displayName` + * * `name` + * * `sourceContentConfig.ingestSettings.urlPrefix` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cdnConfigStatus
  • - *
  • cdnConfigType
  • - *
  • displayName
  • - *
  • name
  • - *
  • sourceContentConfig.ingestSettings.urlPrefix
  • - *
+ * **Filterable fields:** + * * `cdnConfigStatus` + * * `cdnConfigType` + * * `displayName` + * * `name` + * * `sourceContentConfig.ingestSettings.urlPrefix` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListChildPublishersRequest.php b/AdsAdManager/src/V1/ListChildPublishersRequest.php new file mode 100644 index 000000000000..1903161cbf3b --- /dev/null +++ b/AdsAdManager/src/V1/ListChildPublishersRequest.php @@ -0,0 +1,373 @@ +google.ads.admanager.v1.ListChildPublishersRequest + */ +class ListChildPublishersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s to return. The + * service may return fewer than this value. If unspecified, at most 50 + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous [ListChildPublishers][] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListChildPublishers][] + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `accountStatus` + * * `addressVerificationStatus` + * * `approvalStatus` + * * `approvedManageAccountRevenueShareMillipercent` + * * `childNetwork` + * * `delegationType` + * * `displayName` + * * `email` + * * `identityVerificationStatus` + * * `invitationStatus` + * * `name` + * * `parentRevenueShareMillipercent` + * * `pendingOnboardingTasks` + * * `readinessStatus` + * * `sellerId` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format: + * `networks/{network_code}` + * Please see {@see ChildPublisherServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListChildPublishersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format: + * `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s to return. The + * service may return fewer than this value. If unspecified, at most 50 + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * @type string $page_token + * Optional. A page token, received from a previous [ListChildPublishers][] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListChildPublishers][] + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `accountStatus` + * * `addressVerificationStatus` + * * `approvalStatus` + * * `approvedManageAccountRevenueShareMillipercent` + * * `childNetwork` + * * `delegationType` + * * `displayName` + * * `email` + * * `identityVerificationStatus` + * * `invitationStatus` + * * `name` + * * `parentRevenueShareMillipercent` + * * `pendingOnboardingTasks` + * * `readinessStatus` + * * `sellerId` + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s to return. The + * service may return fewer than this value. If unspecified, at most 50 + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s to return. The + * service may return fewer than this value. If unspecified, at most 50 + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher]s will be returned. + * The maximum value is 1000; values greater than 1000 will be coerced to + * 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous [ListChildPublishers][] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListChildPublishers][] + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous [ListChildPublishers][] + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListChildPublishers][] + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `accountStatus` + * * `addressVerificationStatus` + * * `approvalStatus` + * * `approvedManageAccountRevenueShareMillipercent` + * * `childNetwork` + * * `delegationType` + * * `displayName` + * * `email` + * * `identityVerificationStatus` + * * `invitationStatus` + * * `name` + * * `parentRevenueShareMillipercent` + * * `pendingOnboardingTasks` + * * `readinessStatus` + * * `sellerId` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `accountStatus` + * * `addressVerificationStatus` + * * `approvalStatus` + * * `approvedManageAccountRevenueShareMillipercent` + * * `childNetwork` + * * `delegationType` + * * `displayName` + * * `email` + * * `identityVerificationStatus` + * * `invitationStatus` + * * `name` + * * `parentRevenueShareMillipercent` + * * `pendingOnboardingTasks` + * * `readinessStatus` + * * `sellerId` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListChildPublishersResponse.php b/AdsAdManager/src/V1/ListChildPublishersResponse.php new file mode 100644 index 000000000000..50d93f672c99 --- /dev/null +++ b/AdsAdManager/src/V1/ListChildPublishersResponse.php @@ -0,0 +1,176 @@ +google.ads.admanager.v1.ListChildPublishersResponse + */ +class ListChildPublishersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects from + * the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + */ + private $child_publishers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects. If a filter was included in the request, this reflects the total + * number after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ChildPublisher[] $child_publishers + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects from + * the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects. If a filter was included in the request, this reflects the total + * number after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects from + * the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\ChildPublisher> + */ + public function getChildPublishers() + { + return $this->child_publishers; + } + + /** + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] objects from + * the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ChildPublisher child_publishers = 1; + * @param \Google\Ads\AdManager\V1\ChildPublisher[] $var + * @return $this + */ + public function setChildPublishers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ChildPublisher::class); + $this->child_publishers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects. If a filter was included in the request, this reflects the total + * number after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of [ChildPublisher][google.ads.admanager.v1.ChildPublisher] + * objects. If a filter was included in the request, this reflects the total + * number after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListCmsMetadataKeysRequest.php b/AdsAdManager/src/V1/ListCmsMetadataKeysRequest.php index 3bdd4e57e26d..78c09f8af7b5 100644 --- a/AdsAdManager/src/V1/ListCmsMetadataKeysRequest.php +++ b/AdsAdManager/src/V1/ListCmsMetadataKeysRequest.php @@ -44,12 +44,10 @@ class ListCmsMetadataKeysRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -107,12 +105,10 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -222,12 +218,10 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -241,12 +235,10 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCmsMetadataValuesRequest.php b/AdsAdManager/src/V1/ListCmsMetadataValuesRequest.php index 5650983a585b..efc0663f9f02 100644 --- a/AdsAdManager/src/V1/ListCmsMetadataValuesRequest.php +++ b/AdsAdManager/src/V1/ListCmsMetadataValuesRequest.php @@ -44,13 +44,11 @@ class ListCmsMetadataValuesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • key
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `key` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -108,13 +106,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • key
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `key` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -224,13 +220,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • key
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `key` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -244,13 +238,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • key
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `key` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCompaniesRequest.php b/AdsAdManager/src/V1/ListCompaniesRequest.php index 04bce32119f5..e8622dddd21e 100644 --- a/AdsAdManager/src/V1/ListCompaniesRequest.php +++ b/AdsAdManager/src/V1/ListCompaniesRequest.php @@ -9,22 +9,22 @@ use Google\Protobuf\RepeatedField; /** - * Request object for `ListCompanies` method. + * Request object for [ListCompanies][] method. * * Generated from protobuf message google.ads.admanager.v1.ListCompaniesRequest */ class ListCompaniesRequest extends \Google\Protobuf\Internal\Message { /** - * Required. The parent, which owns this collection of Companies. + * Required. The parent, which owns this collection of [Companies][]. * Format: `networks/{network_code}` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { */ protected $parent = ''; /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will + * Optional. The maximum number of [Companies][] to return. The service may + * return fewer than this value. If unspecified, at most 50 [Companies][] will * be returned. The maximum value is 1000; values greater than 1000 will be * coerced to 1000. * @@ -32,9 +32,9 @@ class ListCompaniesRequest extends \Google\Protobuf\Internal\Message */ protected $page_size = 0; /** - * Optional. A page token, received from a previous `ListCompanies` call. + * Optional. A page token, received from a previous [ListCompanies][] call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must + * When paginating, all other parameters provided to [ListCompanies][] must * match the call that provided the page token. * * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -44,22 +44,20 @@ class ListCompaniesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • comment
  • - *
  • companyId
  • - *
  • creditStatus
  • - *
  • displayName
  • - *
  • email
  • - *
  • externalId
  • - *
  • fax
  • - *
  • name
  • - *
  • phone
  • - *
  • thirdPartyCompanyId
  • - *
  • type
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `address` + * * `comment` + * * `companyId` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `thirdPartyCompanyId` + * * `type` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -80,7 +78,7 @@ class ListCompaniesRequest extends \Google\Protobuf\Internal\Message protected $skip = 0; /** - * @param string $parent Required. The parent, which owns this collection of Companies. + * @param string $parent Required. The parent, which owns this collection of [Companies][]. * Format: `networks/{network_code}` * Please see {@see CompanyServiceClient::networkName()} for help formatting this field. * @@ -101,38 +99,36 @@ public static function build(string $parent): self * Optional. Data for populating the Message object. * * @type string $parent - * Required. The parent, which owns this collection of Companies. + * Required. The parent, which owns this collection of [Companies][]. * Format: `networks/{network_code}` * @type int $page_size - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will + * Optional. The maximum number of [Companies][] to return. The service may + * return fewer than this value. If unspecified, at most 50 [Companies][] will * be returned. The maximum value is 1000; values greater than 1000 will be * coerced to 1000. * @type string $page_token - * Optional. A page token, received from a previous `ListCompanies` call. + * Optional. A page token, received from a previous [ListCompanies][] call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must + * When paginating, all other parameters provided to [ListCompanies][] must * match the call that provided the page token. * @type string $filter * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • comment
  • - *
  • companyId
  • - *
  • creditStatus
  • - *
  • displayName
  • - *
  • email
  • - *
  • externalId
  • - *
  • fax
  • - *
  • name
  • - *
  • phone
  • - *
  • thirdPartyCompanyId
  • - *
  • type
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `address` + * * `comment` + * * `companyId` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `thirdPartyCompanyId` + * * `type` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -147,7 +143,7 @@ public function __construct($data = NULL) { } /** - * Required. The parent, which owns this collection of Companies. + * Required. The parent, which owns this collection of [Companies][]. * Format: `networks/{network_code}` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -159,7 +155,7 @@ public function getParent() } /** - * Required. The parent, which owns this collection of Companies. + * Required. The parent, which owns this collection of [Companies][]. * Format: `networks/{network_code}` * * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { @@ -175,8 +171,8 @@ public function setParent($var) } /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will + * Optional. The maximum number of [Companies][] to return. The service may + * return fewer than this value. If unspecified, at most 50 [Companies][] will * be returned. The maximum value is 1000; values greater than 1000 will be * coerced to 1000. * @@ -189,8 +185,8 @@ public function getPageSize() } /** - * Optional. The maximum number of `Companies` to return. The service may - * return fewer than this value. If unspecified, at most 50 `Companies` will + * Optional. The maximum number of [Companies][] to return. The service may + * return fewer than this value. If unspecified, at most 50 [Companies][] will * be returned. The maximum value is 1000; values greater than 1000 will be * coerced to 1000. * @@ -207,9 +203,9 @@ public function setPageSize($var) } /** - * Optional. A page token, received from a previous `ListCompanies` call. + * Optional. A page token, received from a previous [ListCompanies][] call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must + * When paginating, all other parameters provided to [ListCompanies][] must * match the call that provided the page token. * * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -221,9 +217,9 @@ public function getPageToken() } /** - * Optional. A page token, received from a previous `ListCompanies` call. + * Optional. A page token, received from a previous [ListCompanies][] call. * Provide this to retrieve the subsequent page. - * When paginating, all other parameters provided to `ListCompanies` must + * When paginating, all other parameters provided to [ListCompanies][] must * match the call that provided the page token. * * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -242,22 +238,20 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • comment
  • - *
  • companyId
  • - *
  • creditStatus
  • - *
  • displayName
  • - *
  • email
  • - *
  • externalId
  • - *
  • fax
  • - *
  • name
  • - *
  • phone
  • - *
  • thirdPartyCompanyId
  • - *
  • type
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `address` + * * `comment` + * * `companyId` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `thirdPartyCompanyId` + * * `type` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -271,22 +265,20 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • comment
  • - *
  • companyId
  • - *
  • creditStatus
  • - *
  • displayName
  • - *
  • email
  • - *
  • externalId
  • - *
  • fax
  • - *
  • name
  • - *
  • phone
  • - *
  • thirdPartyCompanyId
  • - *
  • type
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `address` + * * `comment` + * * `companyId` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `thirdPartyCompanyId` + * * `type` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCompaniesResponse.php b/AdsAdManager/src/V1/ListCompaniesResponse.php index f727c7d1b02b..e6724153fa16 100644 --- a/AdsAdManager/src/V1/ListCompaniesResponse.php +++ b/AdsAdManager/src/V1/ListCompaniesResponse.php @@ -9,15 +9,17 @@ use Google\Protobuf\RepeatedField; /** - * Response object for `ListCompaniesRequest` containing matching `Company` - * objects. + * Response object for + * [ListCompaniesRequest][google.ads.admanager.v1.ListCompaniesRequest] + * containing matching [Company][google.ads.admanager.v1.Company] objects. * * Generated from protobuf message google.ads.admanager.v1.ListCompaniesResponse */ class ListCompaniesResponse extends \Google\Protobuf\Internal\Message { /** - * The `Company` objects from the specified network. + * The [Company][google.ads.admanager.v1.Company] objects from the specified + * network. * * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; */ @@ -30,7 +32,7 @@ class ListCompaniesResponse extends \Google\Protobuf\Internal\Message */ protected $next_page_token = ''; /** - * Total number of `Company` objects. + * Total number of [Company][google.ads.admanager.v1.Company] objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. * `total_size` won't be calculated in the response unless it has been @@ -51,12 +53,13 @@ class ListCompaniesResponse extends \Google\Protobuf\Internal\Message * Optional. Data for populating the Message object. * * @type \Google\Ads\AdManager\V1\Company[] $companies - * The `Company` objects from the specified network. + * The [Company][google.ads.admanager.v1.Company] objects from the specified + * network. * @type string $next_page_token * A token, which can be sent as `page_token` to retrieve the next page. * If this field is omitted, there are no subsequent pages. * @type int $total_size - * Total number of `Company` objects. + * Total number of [Company][google.ads.admanager.v1.Company] objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. * `total_size` won't be calculated in the response unless it has been @@ -73,7 +76,8 @@ public function __construct($data = NULL) { } /** - * The `Company` objects from the specified network. + * The [Company][google.ads.admanager.v1.Company] objects from the specified + * network. * * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; * @return RepeatedField<\Google\Ads\AdManager\V1\Company> @@ -84,7 +88,8 @@ public function getCompanies() } /** - * The `Company` objects from the specified network. + * The [Company][google.ads.admanager.v1.Company] objects from the specified + * network. * * Generated from protobuf field repeated .google.ads.admanager.v1.Company companies = 1; * @param \Google\Ads\AdManager\V1\Company[] $var @@ -127,7 +132,7 @@ public function setNextPageToken($var) } /** - * Total number of `Company` objects. + * Total number of [Company][google.ads.admanager.v1.Company] objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. * `total_size` won't be calculated in the response unless it has been @@ -146,7 +151,7 @@ public function getTotalSize() } /** - * Total number of `Company` objects. + * Total number of [Company][google.ads.admanager.v1.Company] objects. * If a filter was included in the request, this reflects the total number * after the filtering is applied. * `total_size` won't be calculated in the response unless it has been diff --git a/AdsAdManager/src/V1/ListContactsRequest.php b/AdsAdManager/src/V1/ListContactsRequest.php index 30b4fd8df21b..72390b8247c4 100644 --- a/AdsAdManager/src/V1/ListContactsRequest.php +++ b/AdsAdManager/src/V1/ListContactsRequest.php @@ -44,20 +44,18 @@ class ListContactsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • cellPhone
  • - *
  • comment
  • - *
  • company
  • - *
  • displayName
  • - *
  • email
  • - *
  • fax
  • - *
  • name
  • - *
  • status
  • - *
  • title
  • - *
  • workPhone
  • - *
+ * **Filterable fields:** + * * `address` + * * `cellPhone` + * * `comment` + * * `company` + * * `displayName` + * * `email` + * * `fax` + * * `name` + * * `status` + * * `title` + * * `workPhone` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -115,20 +113,18 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • cellPhone
  • - *
  • comment
  • - *
  • company
  • - *
  • displayName
  • - *
  • email
  • - *
  • fax
  • - *
  • name
  • - *
  • status
  • - *
  • title
  • - *
  • workPhone
  • - *
+ * **Filterable fields:** + * * `address` + * * `cellPhone` + * * `comment` + * * `company` + * * `displayName` + * * `email` + * * `fax` + * * `name` + * * `status` + * * `title` + * * `workPhone` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -238,20 +234,18 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • cellPhone
  • - *
  • comment
  • - *
  • company
  • - *
  • displayName
  • - *
  • email
  • - *
  • fax
  • - *
  • name
  • - *
  • status
  • - *
  • title
  • - *
  • workPhone
  • - *
+ * **Filterable fields:** + * * `address` + * * `cellPhone` + * * `comment` + * * `company` + * * `displayName` + * * `email` + * * `fax` + * * `name` + * * `status` + * * `title` + * * `workPhone` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -265,20 +259,18 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • address
  • - *
  • cellPhone
  • - *
  • comment
  • - *
  • company
  • - *
  • displayName
  • - *
  • email
  • - *
  • fax
  • - *
  • name
  • - *
  • status
  • - *
  • title
  • - *
  • workPhone
  • - *
+ * **Filterable fields:** + * * `address` + * * `cellPhone` + * * `comment` + * * `company` + * * `displayName` + * * `email` + * * `fax` + * * `name` + * * `status` + * * `title` + * * `workPhone` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListContentBundlesRequest.php b/AdsAdManager/src/V1/ListContentBundlesRequest.php index fdf6f1c5269e..cb0fe8f00c8d 100644 --- a/AdsAdManager/src/V1/ListContentBundlesRequest.php +++ b/AdsAdManager/src/V1/ListContentBundlesRequest.php @@ -44,13 +44,11 @@ class ListContentBundlesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -108,13 +106,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -224,13 +220,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -244,13 +238,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListContentLabelsRequest.php b/AdsAdManager/src/V1/ListContentLabelsRequest.php index f2d9f29a435f..0395e40ab16b 100644 --- a/AdsAdManager/src/V1/ListContentLabelsRequest.php +++ b/AdsAdManager/src/V1/ListContentLabelsRequest.php @@ -44,11 +44,9 @@ class ListContentLabelsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListContentRequest.php b/AdsAdManager/src/V1/ListContentRequest.php index c57fcd9d0e94..9e754f2b5a8b 100644 --- a/AdsAdManager/src/V1/ListContentRequest.php +++ b/AdsAdManager/src/V1/ListContentRequest.php @@ -44,24 +44,22 @@ class ListContentRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cmsMetadataValues
  • - *
  • cmsSources.contentSource
  • - *
  • cmsSources.contentSourceDisplayName
  • - *
  • contentBundles
  • - *
  • contentStatusSource
  • - *
  • dashIngestStatus
  • - *
  • displayName
  • - *
  • duration
  • - *
  • hlsIngestStatus
  • - *
  • importTime
  • - *
  • lastDashIngestTime
  • - *
  • lastHlsIngestTime
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `cmsMetadataValues` + * * `cmsSources.contentSource` + * * `cmsSources.contentSourceDisplayName` + * * `contentBundles` + * * `contentStatusSource` + * * `dashIngestStatus` + * * `displayName` + * * `duration` + * * `hlsIngestStatus` + * * `importTime` + * * `lastDashIngestTime` + * * `lastHlsIngestTime` + * * `name` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -119,24 +117,22 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cmsMetadataValues
  • - *
  • cmsSources.contentSource
  • - *
  • cmsSources.contentSourceDisplayName
  • - *
  • contentBundles
  • - *
  • contentStatusSource
  • - *
  • dashIngestStatus
  • - *
  • displayName
  • - *
  • duration
  • - *
  • hlsIngestStatus
  • - *
  • importTime
  • - *
  • lastDashIngestTime
  • - *
  • lastHlsIngestTime
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `cmsMetadataValues` + * * `cmsSources.contentSource` + * * `cmsSources.contentSourceDisplayName` + * * `contentBundles` + * * `contentStatusSource` + * * `dashIngestStatus` + * * `displayName` + * * `duration` + * * `hlsIngestStatus` + * * `importTime` + * * `lastDashIngestTime` + * * `lastHlsIngestTime` + * * `name` + * * `status` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -246,24 +242,22 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cmsMetadataValues
  • - *
  • cmsSources.contentSource
  • - *
  • cmsSources.contentSourceDisplayName
  • - *
  • contentBundles
  • - *
  • contentStatusSource
  • - *
  • dashIngestStatus
  • - *
  • displayName
  • - *
  • duration
  • - *
  • hlsIngestStatus
  • - *
  • importTime
  • - *
  • lastDashIngestTime
  • - *
  • lastHlsIngestTime
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `cmsMetadataValues` + * * `cmsSources.contentSource` + * * `cmsSources.contentSourceDisplayName` + * * `contentBundles` + * * `contentStatusSource` + * * `dashIngestStatus` + * * `displayName` + * * `duration` + * * `hlsIngestStatus` + * * `importTime` + * * `lastDashIngestTime` + * * `lastHlsIngestTime` + * * `name` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -277,24 +271,22 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • cmsMetadataValues
  • - *
  • cmsSources.contentSource
  • - *
  • cmsSources.contentSourceDisplayName
  • - *
  • contentBundles
  • - *
  • contentStatusSource
  • - *
  • dashIngestStatus
  • - *
  • displayName
  • - *
  • duration
  • - *
  • hlsIngestStatus
  • - *
  • importTime
  • - *
  • lastDashIngestTime
  • - *
  • lastHlsIngestTime
  • - *
  • name
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `cmsMetadataValues` + * * `cmsSources.contentSource` + * * `cmsSources.contentSourceDisplayName` + * * `contentBundles` + * * `contentStatusSource` + * * `dashIngestStatus` + * * `displayName` + * * `duration` + * * `hlsIngestStatus` + * * `importTime` + * * `lastDashIngestTime` + * * `lastHlsIngestTime` + * * `name` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCreativeSetsRequest.php b/AdsAdManager/src/V1/ListCreativeSetsRequest.php index a429130cdcbd..09faa49ba663 100644 --- a/AdsAdManager/src/V1/ListCreativeSetsRequest.php +++ b/AdsAdManager/src/V1/ListCreativeSetsRequest.php @@ -44,14 +44,12 @@ class ListCreativeSetsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companionCreatives
  • - *
  • displayName
  • - *
  • masterCreative
  • - *
  • name
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `companionCreatives` + * * `displayName` + * * `masterCreative` + * * `name` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companionCreatives
  • - *
  • displayName
  • - *
  • masterCreative
  • - *
  • name
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `companionCreatives` + * * `displayName` + * * `masterCreative` + * * `name` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companionCreatives
  • - *
  • displayName
  • - *
  • masterCreative
  • - *
  • name
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `companionCreatives` + * * `displayName` + * * `masterCreative` + * * `name` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companionCreatives
  • - *
  • displayName
  • - *
  • masterCreative
  • - *
  • name
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `companionCreatives` + * * `displayName` + * * `masterCreative` + * * `name` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCreativeTemplatesRequest.php b/AdsAdManager/src/V1/ListCreativeTemplatesRequest.php index 11313961621b..1534ccd43bae 100644 --- a/AdsAdManager/src/V1/ListCreativeTemplatesRequest.php +++ b/AdsAdManager/src/V1/ListCreativeTemplatesRequest.php @@ -44,18 +44,16 @@ class ListCreativeTemplatesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • interstitial
  • - *
  • name
  • - *
  • nativeEligible
  • - *
  • nativeVideoEligible
  • - *
  • safeFrameCompatible
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `interstitial` + * * `name` + * * `nativeEligible` + * * `nativeVideoEligible` + * * `safeFrameCompatible` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -113,18 +111,16 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • interstitial
  • - *
  • name
  • - *
  • nativeEligible
  • - *
  • nativeVideoEligible
  • - *
  • safeFrameCompatible
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `interstitial` + * * `name` + * * `nativeEligible` + * * `nativeVideoEligible` + * * `safeFrameCompatible` + * * `status` + * * `type` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -234,18 +230,16 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • interstitial
  • - *
  • name
  • - *
  • nativeEligible
  • - *
  • nativeVideoEligible
  • - *
  • safeFrameCompatible
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `interstitial` + * * `name` + * * `nativeEligible` + * * `nativeVideoEligible` + * * `safeFrameCompatible` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -259,18 +253,16 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • interstitial
  • - *
  • name
  • - *
  • nativeEligible
  • - *
  • nativeVideoEligible
  • - *
  • safeFrameCompatible
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `interstitial` + * * `name` + * * `nativeEligible` + * * `nativeVideoEligible` + * * `safeFrameCompatible` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCreativeWrappersRequest.php b/AdsAdManager/src/V1/ListCreativeWrappersRequest.php new file mode 100644 index 000000000000..d6088b2531e3 --- /dev/null +++ b/AdsAdManager/src/V1/ListCreativeWrappersRequest.php @@ -0,0 +1,320 @@ +google.ads.admanager.v1.ListCreativeWrappersRequest + */ +class ListCreativeWrappersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of CreativeWrappers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `CreativeWrappers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeWrappers` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListCreativeWrappers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeWrappers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `creativeWrapperType` + * * `label` + * * `name` + * * `ordering` + * * `status` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of CreativeWrappers. + * Format: `networks/{network_code}` + * Please see {@see CreativeWrapperServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListCreativeWrappersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of CreativeWrappers. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `CreativeWrappers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeWrappers` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListCreativeWrappers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeWrappers` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `creativeWrapperType` + * * `label` + * * `name` + * * `ordering` + * * `status` + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of CreativeWrappers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of CreativeWrappers. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `CreativeWrappers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeWrappers` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `CreativeWrappers` to return. The service + * may return fewer than this value. If unspecified, at most 50 + * `CreativeWrappers` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListCreativeWrappers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeWrappers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListCreativeWrappers` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListCreativeWrappers` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `creativeWrapperType` + * * `label` + * * `name` + * * `ordering` + * * `status` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `creativeWrapperType` + * * `label` + * * `name` + * * `ordering` + * * `status` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListCreativeWrappersResponse.php b/AdsAdManager/src/V1/ListCreativeWrappersResponse.php new file mode 100644 index 000000000000..9003a85d9b93 --- /dev/null +++ b/AdsAdManager/src/V1/ListCreativeWrappersResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListCreativeWrappersResponse + */ +class ListCreativeWrappersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `CreativeWrapper` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + */ + private $creative_wrappers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `CreativeWrapper` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\CreativeWrapper[] $creative_wrappers + * The `CreativeWrapper` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `CreativeWrapper` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * The `CreativeWrapper` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\CreativeWrapper> + */ + public function getCreativeWrappers() + { + return $this->creative_wrappers; + } + + /** + * The `CreativeWrapper` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.CreativeWrapper creative_wrappers = 1; + * @param \Google\Ads\AdManager\V1\CreativeWrapper[] $var + * @return $this + */ + public function setCreativeWrappers($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\CreativeWrapper::class); + $this->creative_wrappers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `CreativeWrapper` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `CreativeWrapper` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListCustomFieldsRequest.php b/AdsAdManager/src/V1/ListCustomFieldsRequest.php index 4d4834926004..0791bcc2c58d 100644 --- a/AdsAdManager/src/V1/ListCustomFieldsRequest.php +++ b/AdsAdManager/src/V1/ListCustomFieldsRequest.php @@ -44,18 +44,16 @@ class ListCustomFieldsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • dataType
  • - *
  • description
  • - *
  • displayName
  • - *
  • entityType
  • - *
  • name
  • - *
  • options.customFieldOptionId
  • - *
  • options.displayName
  • - *
  • status
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `dataType` + * * `description` + * * `displayName` + * * `entityType` + * * `name` + * * `options.customFieldOptionId` + * * `options.displayName` + * * `status` + * * `visibility` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -113,18 +111,16 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • dataType
  • - *
  • description
  • - *
  • displayName
  • - *
  • entityType
  • - *
  • name
  • - *
  • options.customFieldOptionId
  • - *
  • options.displayName
  • - *
  • status
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `dataType` + * * `description` + * * `displayName` + * * `entityType` + * * `name` + * * `options.customFieldOptionId` + * * `options.displayName` + * * `status` + * * `visibility` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -234,18 +230,16 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • dataType
  • - *
  • description
  • - *
  • displayName
  • - *
  • entityType
  • - *
  • name
  • - *
  • options.customFieldOptionId
  • - *
  • options.displayName
  • - *
  • status
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `dataType` + * * `description` + * * `displayName` + * * `entityType` + * * `name` + * * `options.customFieldOptionId` + * * `options.displayName` + * * `status` + * * `visibility` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -259,18 +253,16 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • dataType
  • - *
  • description
  • - *
  • displayName
  • - *
  • entityType
  • - *
  • name
  • - *
  • options.customFieldOptionId
  • - *
  • options.displayName
  • - *
  • status
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `dataType` + * * `description` + * * `displayName` + * * `entityType` + * * `name` + * * `options.customFieldOptionId` + * * `options.displayName` + * * `status` + * * `visibility` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCustomTargetingKeysRequest.php b/AdsAdManager/src/V1/ListCustomTargetingKeysRequest.php index 399b1c66df69..dbab54e79ec2 100644 --- a/AdsAdManager/src/V1/ListCustomTargetingKeysRequest.php +++ b/AdsAdManager/src/V1/ListCustomTargetingKeysRequest.php @@ -44,15 +44,13 @@ class ListCustomTargetingKeysRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • displayName
  • - *
  • name
  • - *
  • reportableType
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `displayName` + * * `name` + * * `reportableType` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -110,15 +108,13 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • displayName
  • - *
  • name
  • - *
  • reportableType
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `displayName` + * * `name` + * * `reportableType` + * * `status` + * * `type` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -228,15 +224,13 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • displayName
  • - *
  • name
  • - *
  • reportableType
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `displayName` + * * `name` + * * `reportableType` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -250,15 +244,13 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • displayName
  • - *
  • name
  • - *
  • reportableType
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `displayName` + * * `name` + * * `reportableType` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListCustomTargetingValuesRequest.php b/AdsAdManager/src/V1/ListCustomTargetingValuesRequest.php index 0b46b44f4952..8caa795e4428 100644 --- a/AdsAdManager/src/V1/ListCustomTargetingValuesRequest.php +++ b/AdsAdManager/src/V1/ListCustomTargetingValuesRequest.php @@ -47,15 +47,13 @@ class ListCustomTargetingValuesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • customTargetingKey
  • - *
  • displayName
  • - *
  • matchType
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `customTargetingKey` + * * `displayName` + * * `matchType` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -117,15 +115,13 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • customTargetingKey
  • - *
  • displayName
  • - *
  • matchType
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `customTargetingKey` + * * `displayName` + * * `matchType` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -241,15 +237,13 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • customTargetingKey
  • - *
  • displayName
  • - *
  • matchType
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `customTargetingKey` + * * `displayName` + * * `matchType` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -263,15 +257,13 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • adTagName
  • - *
  • customTargetingKey
  • - *
  • displayName
  • - *
  • matchType
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `adTagName` + * * `customTargetingKey` + * * `displayName` + * * `matchType` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListDaiAuthenticationKeysRequest.php b/AdsAdManager/src/V1/ListDaiAuthenticationKeysRequest.php new file mode 100644 index 000000000000..231c9d169f35 --- /dev/null +++ b/AdsAdManager/src/V1/ListDaiAuthenticationKeysRequest.php @@ -0,0 +1,320 @@ +google.ads.admanager.v1.ListDaiAuthenticationKeysRequest + */ +class ListDaiAuthenticationKeysRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of DaiAuthenticationKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `DaiAuthenticationKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiAuthenticationKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * `ListDaiAuthenticationKeys` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListDaiAuthenticationKeys` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of DaiAuthenticationKeys. + * Format: `networks/{network_code}` + * Please see {@see DaiAuthenticationKeyServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListDaiAuthenticationKeysRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of DaiAuthenticationKeys. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `DaiAuthenticationKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiAuthenticationKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * `ListDaiAuthenticationKeys` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListDaiAuthenticationKeys` must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of DaiAuthenticationKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of DaiAuthenticationKeys. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `DaiAuthenticationKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiAuthenticationKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `DaiAuthenticationKeys` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiAuthenticationKeys` will be returned. The maximum value is 1000; values + * greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * `ListDaiAuthenticationKeys` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListDaiAuthenticationKeys` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * `ListDaiAuthenticationKeys` call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * `ListDaiAuthenticationKeys` must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListDaiAuthenticationKeysResponse.php b/AdsAdManager/src/V1/ListDaiAuthenticationKeysResponse.php new file mode 100644 index 000000000000..69a1bbff3d95 --- /dev/null +++ b/AdsAdManager/src/V1/ListDaiAuthenticationKeysResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListDaiAuthenticationKeysResponse + */ +class ListDaiAuthenticationKeysResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DaiAuthenticationKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + */ + private $dai_authentication_keys; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `DaiAuthenticationKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiAuthenticationKey[] $dai_authentication_keys + * The `DaiAuthenticationKey` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `DaiAuthenticationKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * The `DaiAuthenticationKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\DaiAuthenticationKey> + */ + public function getDaiAuthenticationKeys() + { + return $this->dai_authentication_keys; + } + + /** + * The `DaiAuthenticationKey` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_keys = 1; + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey[] $var + * @return $this + */ + public function setDaiAuthenticationKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DaiAuthenticationKey::class); + $this->dai_authentication_keys = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `DaiAuthenticationKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `DaiAuthenticationKey` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListDaiEncodingProfilesRequest.php b/AdsAdManager/src/V1/ListDaiEncodingProfilesRequest.php new file mode 100644 index 000000000000..b8a35e2139aa --- /dev/null +++ b/AdsAdManager/src/V1/ListDaiEncodingProfilesRequest.php @@ -0,0 +1,320 @@ +google.ads.admanager.v1.ListDaiEncodingProfilesRequest + */ +class ListDaiEncodingProfilesRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of DaiEncodingProfiles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of `DaiEncodingProfiles` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiEncodingProfiles` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous `ListDaiEncodingProfiles` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDaiEncodingProfiles` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `containerType` + * * `displayName` + * * `name` + * * `status` + * * `variantType` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of DaiEncodingProfiles. + * Format: `networks/{network_code}` + * Please see {@see DaiEncodingProfileServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListDaiEncodingProfilesRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of DaiEncodingProfiles. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of `DaiEncodingProfiles` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiEncodingProfiles` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous `ListDaiEncodingProfiles` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDaiEncodingProfiles` + * must match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `containerType` + * * `displayName` + * * `name` + * * `status` + * * `variantType` + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of DaiEncodingProfiles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of DaiEncodingProfiles. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of `DaiEncodingProfiles` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiEncodingProfiles` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of `DaiEncodingProfiles` to return. The + * service may return fewer than this value. If unspecified, at most 50 + * `DaiEncodingProfiles` will be returned. The maximum value is 1000; values + * above 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous `ListDaiEncodingProfiles` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDaiEncodingProfiles` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous `ListDaiEncodingProfiles` + * call. Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to `ListDaiEncodingProfiles` + * must match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `containerType` + * * `displayName` + * * `name` + * * `status` + * * `variantType` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `containerType` + * * `displayName` + * * `name` + * * `status` + * * `variantType` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListDaiEncodingProfilesResponse.php b/AdsAdManager/src/V1/ListDaiEncodingProfilesResponse.php new file mode 100644 index 000000000000..39f242e7f352 --- /dev/null +++ b/AdsAdManager/src/V1/ListDaiEncodingProfilesResponse.php @@ -0,0 +1,172 @@ +google.ads.admanager.v1.ListDaiEncodingProfilesResponse + */ +class ListDaiEncodingProfilesResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The `DaiEncodingProfile` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + */ + private $dai_encoding_profiles; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of `DaiEncodingProfile` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` will not be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiEncodingProfile[] $dai_encoding_profiles + * The `DaiEncodingProfile` objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of `DaiEncodingProfile` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` will not be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * The `DaiEncodingProfile` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\DaiEncodingProfile> + */ + public function getDaiEncodingProfiles() + { + return $this->dai_encoding_profiles; + } + + /** + * The `DaiEncodingProfile` objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profiles = 1; + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile[] $var + * @return $this + */ + public function setDaiEncodingProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\DaiEncodingProfile::class); + $this->dai_encoding_profiles = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of `DaiEncodingProfile` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` will not be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of `DaiEncodingProfile` objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` will not be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListDeviceCapabilitiesRequest.php b/AdsAdManager/src/V1/ListDeviceCapabilitiesRequest.php index 6a2bd0536fdc..9f8b7f45656a 100644 --- a/AdsAdManager/src/V1/ListDeviceCapabilitiesRequest.php +++ b/AdsAdManager/src/V1/ListDeviceCapabilitiesRequest.php @@ -44,11 +44,9 @@ class ListDeviceCapabilitiesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php b/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php index fd5e5ecbb20c..9963ba7896d3 100644 --- a/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php +++ b/AdsAdManager/src/V1/ListDeviceCategoriesRequest.php @@ -44,11 +44,9 @@ class ListDeviceCategoriesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListDeviceManufacturersRequest.php b/AdsAdManager/src/V1/ListDeviceManufacturersRequest.php index d1d7ed5627c4..9269352476df 100644 --- a/AdsAdManager/src/V1/ListDeviceManufacturersRequest.php +++ b/AdsAdManager/src/V1/ListDeviceManufacturersRequest.php @@ -44,11 +44,9 @@ class ListDeviceManufacturersRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListGeoTargetsRequest.php b/AdsAdManager/src/V1/ListGeoTargetsRequest.php index 2289bf068c50..dc9857075518 100644 --- a/AdsAdManager/src/V1/ListGeoTargetsRequest.php +++ b/AdsAdManager/src/V1/ListGeoTargetsRequest.php @@ -44,14 +44,12 @@ class ListGeoTargetsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalParent
  • - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `canonicalParent` + * * `displayName` + * * `name` + * * `regionCode` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalParent
  • - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `canonicalParent` + * * `displayName` + * * `name` + * * `regionCode` + * * `type` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalParent
  • - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `canonicalParent` + * * `displayName` + * * `name` + * * `regionCode` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • canonicalParent
  • - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `canonicalParent` + * * `displayName` + * * `name` + * * `regionCode` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListLabelsRequest.php b/AdsAdManager/src/V1/ListLabelsRequest.php index 5a97958c2096..03bf82f3534c 100644 --- a/AdsAdManager/src/V1/ListLabelsRequest.php +++ b/AdsAdManager/src/V1/ListLabelsRequest.php @@ -44,14 +44,12 @@ class ListLabelsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • active
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • types
  • - *
+ * **Filterable fields:** + * * `active` + * * `description` + * * `displayName` + * * `name` + * * `types` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • active
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • types
  • - *
+ * **Filterable fields:** + * * `active` + * * `description` + * * `displayName` + * * `name` + * * `types` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • active
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • types
  • - *
+ * **Filterable fields:** + * * `active` + * * `description` + * * `displayName` + * * `name` + * * `types` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • active
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • types
  • - *
+ * **Filterable fields:** + * * `active` + * * `description` + * * `displayName` + * * `name` + * * `types` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListLineItemsRequest.php b/AdsAdManager/src/V1/ListLineItemsRequest.php index 220a936c47cc..78d22b160832 100644 --- a/AdsAdManager/src/V1/ListLineItemsRequest.php +++ b/AdsAdManager/src/V1/ListLineItemsRequest.php @@ -44,43 +44,41 @@ class ListLineItemsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • archived
  • - *
  • contractedUnitsBought
  • - *
  • costType
  • - *
  • createTime
  • - *
  • creativePlaceholders.size.canonicalName
  • - *
  • dealInfo.externalDealId
  • - *
  • deliveryRateType
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • environmentType
  • - *
  • externalLineItemId
  • - *
  • goal.units
  • - *
  • grpSettings.growbirdNielsenEnabled
  • - *
  • grpSettings.inTargetRatioEstimateMilliPercent
  • - *
  • lineItemType
  • - *
  • missingCreatives
  • - *
  • name
  • - *
  • notes
  • - *
  • order
  • - *
  • orderDisplayName
  • - *
  • priority
  • - *
  • roadblockingType
  • - *
  • startTime
  • - *
  • stats.clickThroughRate
  • - *
  • stats.clicksDelivered
  • - *
  • stats.impressionsDelivered
  • - *
  • stats.viewableImpressionsDelivered
  • - *
  • status
  • - *
  • targeting.inventoryTargeting.targetedAdUnits.adUnit
  • - *
  • targeting.inventoryTargeting.targetedPlacements
  • - *
  • targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications
  • - *
  • updateSource
  • - *
  • updateTime
  • - *
  • webPropertyCode
  • - *
+ * **Filterable fields:** + * * `archived` + * * `contractedUnitsBought` + * * `costType` + * * `createTime` + * * `creativePlaceholders.size.canonicalName` + * * `dealInfo.externalDealId` + * * `deliveryRateType` + * * `displayName` + * * `endTime` + * * `environmentType` + * * `externalLineItemId` + * * `goal.units` + * * `grpSettings.growbirdNielsenEnabled` + * * `grpSettings.inTargetRatioEstimateMilliPercent` + * * `lineItemType` + * * `missingCreatives` + * * `name` + * * `notes` + * * `order` + * * `orderDisplayName` + * * `priority` + * * `roadblockingType` + * * `startTime` + * * `stats.clickThroughRate` + * * `stats.clicksDelivered` + * * `stats.impressionsDelivered` + * * `stats.viewableImpressionsDelivered` + * * `status` + * * `targeting.inventoryTargeting.targetedAdUnits.adUnit` + * * `targeting.inventoryTargeting.targetedPlacements` + * * `targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications` + * * `updateSource` + * * `updateTime` + * * `webPropertyCode` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -138,43 +136,41 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • archived
  • - *
  • contractedUnitsBought
  • - *
  • costType
  • - *
  • createTime
  • - *
  • creativePlaceholders.size.canonicalName
  • - *
  • dealInfo.externalDealId
  • - *
  • deliveryRateType
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • environmentType
  • - *
  • externalLineItemId
  • - *
  • goal.units
  • - *
  • grpSettings.growbirdNielsenEnabled
  • - *
  • grpSettings.inTargetRatioEstimateMilliPercent
  • - *
  • lineItemType
  • - *
  • missingCreatives
  • - *
  • name
  • - *
  • notes
  • - *
  • order
  • - *
  • orderDisplayName
  • - *
  • priority
  • - *
  • roadblockingType
  • - *
  • startTime
  • - *
  • stats.clickThroughRate
  • - *
  • stats.clicksDelivered
  • - *
  • stats.impressionsDelivered
  • - *
  • stats.viewableImpressionsDelivered
  • - *
  • status
  • - *
  • targeting.inventoryTargeting.targetedAdUnits.adUnit
  • - *
  • targeting.inventoryTargeting.targetedPlacements
  • - *
  • targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications
  • - *
  • updateSource
  • - *
  • updateTime
  • - *
  • webPropertyCode
  • - *
+ * **Filterable fields:** + * * `archived` + * * `contractedUnitsBought` + * * `costType` + * * `createTime` + * * `creativePlaceholders.size.canonicalName` + * * `dealInfo.externalDealId` + * * `deliveryRateType` + * * `displayName` + * * `endTime` + * * `environmentType` + * * `externalLineItemId` + * * `goal.units` + * * `grpSettings.growbirdNielsenEnabled` + * * `grpSettings.inTargetRatioEstimateMilliPercent` + * * `lineItemType` + * * `missingCreatives` + * * `name` + * * `notes` + * * `order` + * * `orderDisplayName` + * * `priority` + * * `roadblockingType` + * * `startTime` + * * `stats.clickThroughRate` + * * `stats.clicksDelivered` + * * `stats.impressionsDelivered` + * * `stats.viewableImpressionsDelivered` + * * `status` + * * `targeting.inventoryTargeting.targetedAdUnits.adUnit` + * * `targeting.inventoryTargeting.targetedPlacements` + * * `targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications` + * * `updateSource` + * * `updateTime` + * * `webPropertyCode` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -284,43 +280,41 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • archived
  • - *
  • contractedUnitsBought
  • - *
  • costType
  • - *
  • createTime
  • - *
  • creativePlaceholders.size.canonicalName
  • - *
  • dealInfo.externalDealId
  • - *
  • deliveryRateType
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • environmentType
  • - *
  • externalLineItemId
  • - *
  • goal.units
  • - *
  • grpSettings.growbirdNielsenEnabled
  • - *
  • grpSettings.inTargetRatioEstimateMilliPercent
  • - *
  • lineItemType
  • - *
  • missingCreatives
  • - *
  • name
  • - *
  • notes
  • - *
  • order
  • - *
  • orderDisplayName
  • - *
  • priority
  • - *
  • roadblockingType
  • - *
  • startTime
  • - *
  • stats.clickThroughRate
  • - *
  • stats.clicksDelivered
  • - *
  • stats.impressionsDelivered
  • - *
  • stats.viewableImpressionsDelivered
  • - *
  • status
  • - *
  • targeting.inventoryTargeting.targetedAdUnits.adUnit
  • - *
  • targeting.inventoryTargeting.targetedPlacements
  • - *
  • targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications
  • - *
  • updateSource
  • - *
  • updateTime
  • - *
  • webPropertyCode
  • - *
+ * **Filterable fields:** + * * `archived` + * * `contractedUnitsBought` + * * `costType` + * * `createTime` + * * `creativePlaceholders.size.canonicalName` + * * `dealInfo.externalDealId` + * * `deliveryRateType` + * * `displayName` + * * `endTime` + * * `environmentType` + * * `externalLineItemId` + * * `goal.units` + * * `grpSettings.growbirdNielsenEnabled` + * * `grpSettings.inTargetRatioEstimateMilliPercent` + * * `lineItemType` + * * `missingCreatives` + * * `name` + * * `notes` + * * `order` + * * `orderDisplayName` + * * `priority` + * * `roadblockingType` + * * `startTime` + * * `stats.clickThroughRate` + * * `stats.clicksDelivered` + * * `stats.impressionsDelivered` + * * `stats.viewableImpressionsDelivered` + * * `status` + * * `targeting.inventoryTargeting.targetedAdUnits.adUnit` + * * `targeting.inventoryTargeting.targetedPlacements` + * * `targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications` + * * `updateSource` + * * `updateTime` + * * `webPropertyCode` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -334,43 +328,41 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • archived
  • - *
  • contractedUnitsBought
  • - *
  • costType
  • - *
  • createTime
  • - *
  • creativePlaceholders.size.canonicalName
  • - *
  • dealInfo.externalDealId
  • - *
  • deliveryRateType
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • environmentType
  • - *
  • externalLineItemId
  • - *
  • goal.units
  • - *
  • grpSettings.growbirdNielsenEnabled
  • - *
  • grpSettings.inTargetRatioEstimateMilliPercent
  • - *
  • lineItemType
  • - *
  • missingCreatives
  • - *
  • name
  • - *
  • notes
  • - *
  • order
  • - *
  • orderDisplayName
  • - *
  • priority
  • - *
  • roadblockingType
  • - *
  • startTime
  • - *
  • stats.clickThroughRate
  • - *
  • stats.clicksDelivered
  • - *
  • stats.impressionsDelivered
  • - *
  • stats.viewableImpressionsDelivered
  • - *
  • status
  • - *
  • targeting.inventoryTargeting.targetedAdUnits.adUnit
  • - *
  • targeting.inventoryTargeting.targetedPlacements
  • - *
  • targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications
  • - *
  • updateSource
  • - *
  • updateTime
  • - *
  • webPropertyCode
  • - *
+ * **Filterable fields:** + * * `archived` + * * `contractedUnitsBought` + * * `costType` + * * `createTime` + * * `creativePlaceholders.size.canonicalName` + * * `dealInfo.externalDealId` + * * `deliveryRateType` + * * `displayName` + * * `endTime` + * * `environmentType` + * * `externalLineItemId` + * * `goal.units` + * * `grpSettings.growbirdNielsenEnabled` + * * `grpSettings.inTargetRatioEstimateMilliPercent` + * * `lineItemType` + * * `missingCreatives` + * * `name` + * * `notes` + * * `order` + * * `orderDisplayName` + * * `priority` + * * `roadblockingType` + * * `startTime` + * * `stats.clickThroughRate` + * * `stats.clicksDelivered` + * * `stats.impressionsDelivered` + * * `stats.viewableImpressionsDelivered` + * * `status` + * * `targeting.inventoryTargeting.targetedAdUnits.adUnit` + * * `targeting.inventoryTargeting.targetedPlacements` + * * `targeting.mobileApplicationTargeting.firstPartyTargeting.targetedApplications` + * * `updateSource` + * * `updateTime` + * * `webPropertyCode` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListLinkedDevicesRequest.php b/AdsAdManager/src/V1/ListLinkedDevicesRequest.php index 165abd4d1593..6cec588e3d08 100644 --- a/AdsAdManager/src/V1/ListLinkedDevicesRequest.php +++ b/AdsAdManager/src/V1/ListLinkedDevicesRequest.php @@ -44,13 +44,11 @@ class ListLinkedDevicesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • owner
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `owner` + * * `visibility` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -108,13 +106,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • owner
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `owner` + * * `visibility` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -224,13 +220,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • owner
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `owner` + * * `visibility` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -244,13 +238,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • owner
  • - *
  • visibility
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `owner` + * * `visibility` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListLiveStreamsRequest.php b/AdsAdManager/src/V1/ListLiveStreamsRequest.php index de8f95d7b056..65a79e3e8fb6 100644 --- a/AdsAdManager/src/V1/ListLiveStreamsRequest.php +++ b/AdsAdManager/src/V1/ListLiveStreamsRequest.php @@ -44,21 +44,23 @@ class ListLiveStreamsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • assetKey
  • - *
  • createTime
  • - *
  • customAssetKey
  • - *
  • displayName
  • - *
  • dynamicAdInsertionType
  • - *
  • effectiveAssetKey
  • - *
  • endTime
  • - *
  • sourceContentConfigurations
  • - *
  • startTime
  • - *
  • status
  • - *
  • streamingFormat
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `assetKey` + * * `createTime` + * * `customAssetKey` + * * `daiAuthenticationKeys` + * * `daiEncodingProfiles` + * * `displayName` + * * `dynamicAdInsertionType` + * * `effectiveAssetKey` + * * `endTime` + * * `segmentUrlAuthenticationKeys` + * * `slate` + * * `sourceContentConfigurations` + * * `startTime` + * * `status` + * * `streamingFormat` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -116,21 +118,23 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • assetKey
  • - *
  • createTime
  • - *
  • customAssetKey
  • - *
  • displayName
  • - *
  • dynamicAdInsertionType
  • - *
  • effectiveAssetKey
  • - *
  • endTime
  • - *
  • sourceContentConfigurations
  • - *
  • startTime
  • - *
  • status
  • - *
  • streamingFormat
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `assetKey` + * * `createTime` + * * `customAssetKey` + * * `daiAuthenticationKeys` + * * `daiEncodingProfiles` + * * `displayName` + * * `dynamicAdInsertionType` + * * `effectiveAssetKey` + * * `endTime` + * * `segmentUrlAuthenticationKeys` + * * `slate` + * * `sourceContentConfigurations` + * * `startTime` + * * `status` + * * `streamingFormat` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -240,21 +244,23 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • assetKey
  • - *
  • createTime
  • - *
  • customAssetKey
  • - *
  • displayName
  • - *
  • dynamicAdInsertionType
  • - *
  • effectiveAssetKey
  • - *
  • endTime
  • - *
  • sourceContentConfigurations
  • - *
  • startTime
  • - *
  • status
  • - *
  • streamingFormat
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `assetKey` + * * `createTime` + * * `customAssetKey` + * * `daiAuthenticationKeys` + * * `daiEncodingProfiles` + * * `displayName` + * * `dynamicAdInsertionType` + * * `effectiveAssetKey` + * * `endTime` + * * `segmentUrlAuthenticationKeys` + * * `slate` + * * `sourceContentConfigurations` + * * `startTime` + * * `status` + * * `streamingFormat` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -268,21 +274,23 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • assetKey
  • - *
  • createTime
  • - *
  • customAssetKey
  • - *
  • displayName
  • - *
  • dynamicAdInsertionType
  • - *
  • effectiveAssetKey
  • - *
  • endTime
  • - *
  • sourceContentConfigurations
  • - *
  • startTime
  • - *
  • status
  • - *
  • streamingFormat
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `assetKey` + * * `createTime` + * * `customAssetKey` + * * `daiAuthenticationKeys` + * * `daiEncodingProfiles` + * * `displayName` + * * `dynamicAdInsertionType` + * * `effectiveAssetKey` + * * `endTime` + * * `segmentUrlAuthenticationKeys` + * * `slate` + * * `sourceContentConfigurations` + * * `startTime` + * * `status` + * * `streamingFormat` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListMobileCarriersRequest.php b/AdsAdManager/src/V1/ListMobileCarriersRequest.php index c5a8b38e03a4..4ee6f039cbde 100644 --- a/AdsAdManager/src/V1/ListMobileCarriersRequest.php +++ b/AdsAdManager/src/V1/ListMobileCarriersRequest.php @@ -44,12 +44,10 @@ class ListMobileCarriersRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `regionCode` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -107,12 +105,10 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `regionCode` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -222,12 +218,10 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `regionCode` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -241,12 +235,10 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • regionCode
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `regionCode` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListMobileDeviceSubmodelsRequest.php b/AdsAdManager/src/V1/ListMobileDeviceSubmodelsRequest.php index b2ae39b058d0..5a89a02332e1 100644 --- a/AdsAdManager/src/V1/ListMobileDeviceSubmodelsRequest.php +++ b/AdsAdManager/src/V1/ListMobileDeviceSubmodelsRequest.php @@ -46,12 +46,10 @@ class ListMobileDeviceSubmodelsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • mobileDevice
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `mobileDevice` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -111,12 +109,10 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • mobileDevice
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `mobileDevice` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -230,12 +226,10 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • mobileDevice
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `mobileDevice` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -249,12 +243,10 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • mobileDevice
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `mobileDevice` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListMobileDevicesRequest.php b/AdsAdManager/src/V1/ListMobileDevicesRequest.php index ecb625c4d46e..b2a9863b05bb 100644 --- a/AdsAdManager/src/V1/ListMobileDevicesRequest.php +++ b/AdsAdManager/src/V1/ListMobileDevicesRequest.php @@ -44,12 +44,10 @@ class ListMobileDevicesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • manufacturer
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `manufacturer` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -107,12 +105,10 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • manufacturer
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `manufacturer` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -222,12 +218,10 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • manufacturer
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `manufacturer` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -241,12 +235,10 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • manufacturer
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `manufacturer` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php b/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php index 46478293dc26..a9b764f6b92a 100644 --- a/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php +++ b/AdsAdManager/src/V1/ListOperatingSystemVersionsRequest.php @@ -46,13 +46,11 @@ class ListOperatingSystemVersionsRequest extends \Google\Protobuf\Internal\Messa * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • majorVersion
  • - *
  • microVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `majorVersion` + * * `microVersion` + * * `minorVersion` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -112,13 +110,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • majorVersion
  • - *
  • microVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `majorVersion` + * * `microVersion` + * * `minorVersion` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -232,13 +228,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • majorVersion
  • - *
  • microVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `majorVersion` + * * `microVersion` + * * `minorVersion` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -252,13 +246,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • majorVersion
  • - *
  • microVersion
  • - *
  • minorVersion
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `majorVersion` + * * `microVersion` + * * `minorVersion` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListOperatingSystemsRequest.php b/AdsAdManager/src/V1/ListOperatingSystemsRequest.php index 8209a8149f4a..5a1ca8041a23 100644 --- a/AdsAdManager/src/V1/ListOperatingSystemsRequest.php +++ b/AdsAdManager/src/V1/ListOperatingSystemsRequest.php @@ -44,11 +44,9 @@ class ListOperatingSystemsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -106,11 +104,9 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -220,11 +216,9 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -238,11 +232,9 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListOrdersRequest.php b/AdsAdManager/src/V1/ListOrdersRequest.php index 70b5aaad5487..1d0461bb61dc 100644 --- a/AdsAdManager/src/V1/ListOrdersRequest.php +++ b/AdsAdManager/src/V1/ListOrdersRequest.php @@ -44,31 +44,29 @@ class ListOrdersRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • advertiser
  • - *
  • agency
  • - *
  • appliedTeams
  • - *
  • archived
  • - *
  • creator
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • externalOrderId
  • - *
  • impressionsDelivered
  • - *
  • name
  • - *
  • orderId
  • - *
  • poNumber
  • - *
  • programmatic
  • - *
  • salesperson
  • - *
  • secondarySalespeople
  • - *
  • secondaryTraffickers
  • - *
  • startTime
  • - *
  • status
  • - *
  • totalClicksDelivered
  • - *
  • totalViewableImpressionsDelivered
  • - *
  • trafficker
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `advertiser` + * * `agency` + * * `appliedTeams` + * * `archived` + * * `creator` + * * `displayName` + * * `endTime` + * * `externalOrderId` + * * `impressionsDelivered` + * * `name` + * * `orderId` + * * `poNumber` + * * `programmatic` + * * `salesperson` + * * `secondarySalespeople` + * * `secondaryTraffickers` + * * `startTime` + * * `status` + * * `totalClicksDelivered` + * * `totalViewableImpressionsDelivered` + * * `trafficker` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -126,31 +124,29 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • advertiser
  • - *
  • agency
  • - *
  • appliedTeams
  • - *
  • archived
  • - *
  • creator
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • externalOrderId
  • - *
  • impressionsDelivered
  • - *
  • name
  • - *
  • orderId
  • - *
  • poNumber
  • - *
  • programmatic
  • - *
  • salesperson
  • - *
  • secondarySalespeople
  • - *
  • secondaryTraffickers
  • - *
  • startTime
  • - *
  • status
  • - *
  • totalClicksDelivered
  • - *
  • totalViewableImpressionsDelivered
  • - *
  • trafficker
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `advertiser` + * * `agency` + * * `appliedTeams` + * * `archived` + * * `creator` + * * `displayName` + * * `endTime` + * * `externalOrderId` + * * `impressionsDelivered` + * * `name` + * * `orderId` + * * `poNumber` + * * `programmatic` + * * `salesperson` + * * `secondarySalespeople` + * * `secondaryTraffickers` + * * `startTime` + * * `status` + * * `totalClicksDelivered` + * * `totalViewableImpressionsDelivered` + * * `trafficker` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -260,31 +256,29 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • advertiser
  • - *
  • agency
  • - *
  • appliedTeams
  • - *
  • archived
  • - *
  • creator
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • externalOrderId
  • - *
  • impressionsDelivered
  • - *
  • name
  • - *
  • orderId
  • - *
  • poNumber
  • - *
  • programmatic
  • - *
  • salesperson
  • - *
  • secondarySalespeople
  • - *
  • secondaryTraffickers
  • - *
  • startTime
  • - *
  • status
  • - *
  • totalClicksDelivered
  • - *
  • totalViewableImpressionsDelivered
  • - *
  • trafficker
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `advertiser` + * * `agency` + * * `appliedTeams` + * * `archived` + * * `creator` + * * `displayName` + * * `endTime` + * * `externalOrderId` + * * `impressionsDelivered` + * * `name` + * * `orderId` + * * `poNumber` + * * `programmatic` + * * `salesperson` + * * `secondarySalespeople` + * * `secondaryTraffickers` + * * `startTime` + * * `status` + * * `totalClicksDelivered` + * * `totalViewableImpressionsDelivered` + * * `trafficker` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -298,31 +292,29 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • advertiser
  • - *
  • agency
  • - *
  • appliedTeams
  • - *
  • archived
  • - *
  • creator
  • - *
  • displayName
  • - *
  • endTime
  • - *
  • externalOrderId
  • - *
  • impressionsDelivered
  • - *
  • name
  • - *
  • orderId
  • - *
  • poNumber
  • - *
  • programmatic
  • - *
  • salesperson
  • - *
  • secondarySalespeople
  • - *
  • secondaryTraffickers
  • - *
  • startTime
  • - *
  • status
  • - *
  • totalClicksDelivered
  • - *
  • totalViewableImpressionsDelivered
  • - *
  • trafficker
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `advertiser` + * * `agency` + * * `appliedTeams` + * * `archived` + * * `creator` + * * `displayName` + * * `endTime` + * * `externalOrderId` + * * `impressionsDelivered` + * * `name` + * * `orderId` + * * `poNumber` + * * `programmatic` + * * `salesperson` + * * `secondarySalespeople` + * * `secondaryTraffickers` + * * `startTime` + * * `status` + * * `totalClicksDelivered` + * * `totalViewableImpressionsDelivered` + * * `trafficker` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListPartnersRequest.php b/AdsAdManager/src/V1/ListPartnersRequest.php new file mode 100644 index 000000000000..208c48059895 --- /dev/null +++ b/AdsAdManager/src/V1/ListPartnersRequest.php @@ -0,0 +1,341 @@ +google.ads.admanager.v1.ListPartnersRequest + */ +class ListPartnersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of + * [Partner][google.ads.admanager.v1.Partner]s. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of [Partner][google.ads.admanager.v1.Partner]s + * to return. The service may return fewer than this value. If unspecified, at + * most 50 [Partner][google.ads.admanager.v1.Partner]s will be returned. The + * maximum value is 1000; values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous [ListPartners][] call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListPartners][] must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of + * [Partner][google.ads.admanager.v1.Partner]s. Format: + * `networks/{network_code}` + * Please see {@see PartnerServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListPartnersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of + * [Partner][google.ads.admanager.v1.Partner]s. Format: + * `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of [Partner][google.ads.admanager.v1.Partner]s + * to return. The service may return fewer than this value. If unspecified, at + * most 50 [Partner][google.ads.admanager.v1.Partner]s will be returned. The + * maximum value is 1000; values greater than 1000 will be coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous [ListPartners][] call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListPartners][] must + * match the call that provided the page token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of + * [Partner][google.ads.admanager.v1.Partner]s. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of + * [Partner][google.ads.admanager.v1.Partner]s. Format: + * `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of [Partner][google.ads.admanager.v1.Partner]s + * to return. The service may return fewer than this value. If unspecified, at + * most 50 [Partner][google.ads.admanager.v1.Partner]s will be returned. The + * maximum value is 1000; values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of [Partner][google.ads.admanager.v1.Partner]s + * to return. The service may return fewer than this value. If unspecified, at + * most 50 [Partner][google.ads.admanager.v1.Partner]s will be returned. The + * maximum value is 1000; values greater than 1000 will be coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous [ListPartners][] call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListPartners][] must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous [ListPartners][] call. + * Provide this to retrieve the subsequent page. + * When paginating, all other parameters provided to [ListPartners][] must + * match the call that provided the page token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `creditStatus` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListPartnersResponse.php b/AdsAdManager/src/V1/ListPartnersResponse.php new file mode 100644 index 000000000000..2db622130166 --- /dev/null +++ b/AdsAdManager/src/V1/ListPartnersResponse.php @@ -0,0 +1,177 @@ +google.ads.admanager.v1.ListPartnersResponse + */ +class ListPartnersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [Partner][google.ads.admanager.v1.Partner] objects from the specified + * network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Partner partners = 1; + */ + private $partners; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of [Partner][google.ads.admanager.v1.Partner] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Partner[] $partners + * The [Partner][google.ads.admanager.v1.Partner] objects from the specified + * network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of [Partner][google.ads.admanager.v1.Partner] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerService::initOnce(); + parent::__construct($data); + } + + /** + * The [Partner][google.ads.admanager.v1.Partner] objects from the specified + * network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Partner partners = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\Partner> + */ + public function getPartners() + { + return $this->partners; + } + + /** + * The [Partner][google.ads.admanager.v1.Partner] objects from the specified + * network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.Partner partners = 1; + * @param \Google\Ads\AdManager\V1\Partner[] $var + * @return $this + */ + public function setPartners($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\Partner::class); + $this->partners = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of [Partner][google.ads.admanager.v1.Partner] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of [Partner][google.ads.admanager.v1.Partner] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListPlacementsRequest.php b/AdsAdManager/src/V1/ListPlacementsRequest.php index 18ae7c98e3b9..c11c32857d9b 100644 --- a/AdsAdManager/src/V1/ListPlacementsRequest.php +++ b/AdsAdManager/src/V1/ListPlacementsRequest.php @@ -44,16 +44,14 @@ class ListPlacementsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • placementCode
  • - *
  • status
  • - *
  • targetedAdUnits
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `name` + * * `placementCode` + * * `status` + * * `targetedAdUnits` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -111,16 +109,14 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • placementCode
  • - *
  • status
  • - *
  • targetedAdUnits
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `name` + * * `placementCode` + * * `status` + * * `targetedAdUnits` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -230,16 +226,14 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • placementCode
  • - *
  • status
  • - *
  • targetedAdUnits
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `name` + * * `placementCode` + * * `status` + * * `targetedAdUnits` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -253,16 +247,14 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • placementCode
  • - *
  • status
  • - *
  • targetedAdUnits
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `description` + * * `displayName` + * * `name` + * * `placementCode` + * * `status` + * * `targetedAdUnits` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php b/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php index 73849e2c80bd..5aaaa7b6148d 100644 --- a/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php +++ b/AdsAdManager/src/V1/ListPrivateAuctionDealsRequest.php @@ -46,22 +46,20 @@ class ListPrivateAuctionDealsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • auctionPriorityEnabled
  • - *
  • blockOverrideEnabled
  • - *
  • buyerAccountId
  • - *
  • buyerPermissionType
  • - *
  • endTime
  • - *
  • externalDealId
  • - *
  • floorPrice
  • - *
  • name
  • - *
  • privateAuctionDealId
  • - *
  • privateAuctionDisplayName
  • - *
  • privateAuctionId
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `auctionPriorityEnabled` + * * `blockOverrideEnabled` + * * `buyerAccountId` + * * `buyerPermissionType` + * * `endTime` + * * `externalDealId` + * * `floorPrice` + * * `name` + * * `privateAuctionDealId` + * * `privateAuctionDisplayName` + * * `privateAuctionId` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -122,22 +120,20 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • auctionPriorityEnabled
  • - *
  • blockOverrideEnabled
  • - *
  • buyerAccountId
  • - *
  • buyerPermissionType
  • - *
  • endTime
  • - *
  • externalDealId
  • - *
  • floorPrice
  • - *
  • name
  • - *
  • privateAuctionDealId
  • - *
  • privateAuctionDisplayName
  • - *
  • privateAuctionId
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `auctionPriorityEnabled` + * * `blockOverrideEnabled` + * * `buyerAccountId` + * * `buyerPermissionType` + * * `endTime` + * * `externalDealId` + * * `floorPrice` + * * `name` + * * `privateAuctionDealId` + * * `privateAuctionDisplayName` + * * `privateAuctionId` + * * `status` + * * `updateTime` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -251,22 +247,20 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • auctionPriorityEnabled
  • - *
  • blockOverrideEnabled
  • - *
  • buyerAccountId
  • - *
  • buyerPermissionType
  • - *
  • endTime
  • - *
  • externalDealId
  • - *
  • floorPrice
  • - *
  • name
  • - *
  • privateAuctionDealId
  • - *
  • privateAuctionDisplayName
  • - *
  • privateAuctionId
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `auctionPriorityEnabled` + * * `blockOverrideEnabled` + * * `buyerAccountId` + * * `buyerPermissionType` + * * `endTime` + * * `externalDealId` + * * `floorPrice` + * * `name` + * * `privateAuctionDealId` + * * `privateAuctionDisplayName` + * * `privateAuctionId` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -280,22 +274,20 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • auctionPriorityEnabled
  • - *
  • blockOverrideEnabled
  • - *
  • buyerAccountId
  • - *
  • buyerPermissionType
  • - *
  • endTime
  • - *
  • externalDealId
  • - *
  • floorPrice
  • - *
  • name
  • - *
  • privateAuctionDealId
  • - *
  • privateAuctionDisplayName
  • - *
  • privateAuctionId
  • - *
  • status
  • - *
  • updateTime
  • - *
+ * **Filterable fields:** + * * `auctionPriorityEnabled` + * * `blockOverrideEnabled` + * * `buyerAccountId` + * * `buyerPermissionType` + * * `endTime` + * * `externalDealId` + * * `floorPrice` + * * `name` + * * `privateAuctionDealId` + * * `privateAuctionDisplayName` + * * `privateAuctionId` + * * `status` + * * `updateTime` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListProgrammaticBuyersRequest.php b/AdsAdManager/src/V1/ListProgrammaticBuyersRequest.php index 292b22c1dc66..8607210259c8 100644 --- a/AdsAdManager/src/V1/ListProgrammaticBuyersRequest.php +++ b/AdsAdManager/src/V1/ListProgrammaticBuyersRequest.php @@ -44,17 +44,15 @@ class ListProgrammaticBuyersRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • agency
  • - *
  • buyerAccountId
  • - *
  • displayName
  • - *
  • name
  • - *
  • parentAccountId
  • - *
  • partnerClientId
  • - *
  • preferredDealsEnabled
  • - *
  • programmaticGuaranteedEnabled
  • - *
+ * **Filterable fields:** + * * `agency` + * * `buyerAccountId` + * * `displayName` + * * `name` + * * `parentAccountId` + * * `partnerClientId` + * * `preferredDealsEnabled` + * * `programmaticGuaranteedEnabled` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -112,17 +110,15 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • agency
  • - *
  • buyerAccountId
  • - *
  • displayName
  • - *
  • name
  • - *
  • parentAccountId
  • - *
  • partnerClientId
  • - *
  • preferredDealsEnabled
  • - *
  • programmaticGuaranteedEnabled
  • - *
+ * **Filterable fields:** + * * `agency` + * * `buyerAccountId` + * * `displayName` + * * `name` + * * `parentAccountId` + * * `partnerClientId` + * * `preferredDealsEnabled` + * * `programmaticGuaranteedEnabled` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -232,17 +228,15 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • agency
  • - *
  • buyerAccountId
  • - *
  • displayName
  • - *
  • name
  • - *
  • parentAccountId
  • - *
  • partnerClientId
  • - *
  • preferredDealsEnabled
  • - *
  • programmaticGuaranteedEnabled
  • - *
+ * **Filterable fields:** + * * `agency` + * * `buyerAccountId` + * * `displayName` + * * `name` + * * `parentAccountId` + * * `partnerClientId` + * * `preferredDealsEnabled` + * * `programmaticGuaranteedEnabled` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -256,17 +250,15 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • agency
  • - *
  • buyerAccountId
  • - *
  • displayName
  • - *
  • name
  • - *
  • parentAccountId
  • - *
  • partnerClientId
  • - *
  • preferredDealsEnabled
  • - *
  • programmaticGuaranteedEnabled
  • - *
+ * **Filterable fields:** + * * `agency` + * * `buyerAccountId` + * * `displayName` + * * `name` + * * `parentAccountId` + * * `partnerClientId` + * * `preferredDealsEnabled` + * * `programmaticGuaranteedEnabled` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListRichMediaAdsCompaniesRequest.php b/AdsAdManager/src/V1/ListRichMediaAdsCompaniesRequest.php index 29d18ee24eb8..26939b97ba19 100644 --- a/AdsAdManager/src/V1/ListRichMediaAdsCompaniesRequest.php +++ b/AdsAdManager/src/V1/ListRichMediaAdsCompaniesRequest.php @@ -46,14 +46,12 @@ class ListRichMediaAdsCompaniesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companyGvlId
  • - *
  • displayName
  • - *
  • gdprStatus
  • - *
  • name
  • - *
  • policyUrl
  • - *
+ * **Filterable fields:** + * * `companyGvlId` + * * `displayName` + * * `gdprStatus` + * * `name` + * * `policyUrl` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -113,14 +111,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companyGvlId
  • - *
  • displayName
  • - *
  • gdprStatus
  • - *
  • name
  • - *
  • policyUrl
  • - *
+ * **Filterable fields:** + * * `companyGvlId` + * * `displayName` + * * `gdprStatus` + * * `name` + * * `policyUrl` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -234,14 +230,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companyGvlId
  • - *
  • displayName
  • - *
  • gdprStatus
  • - *
  • name
  • - *
  • policyUrl
  • - *
+ * **Filterable fields:** + * * `companyGvlId` + * * `displayName` + * * `gdprStatus` + * * `name` + * * `policyUrl` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -255,14 +249,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • companyGvlId
  • - *
  • displayName
  • - *
  • gdprStatus
  • - *
  • name
  • - *
  • policyUrl
  • - *
+ * **Filterable fields:** + * * `companyGvlId` + * * `displayName` + * * `gdprStatus` + * * `name` + * * `policyUrl` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListRolesRequest.php b/AdsAdManager/src/V1/ListRolesRequest.php index 7e2269e7371b..7da345bd4e2e 100644 --- a/AdsAdManager/src/V1/ListRolesRequest.php +++ b/AdsAdManager/src/V1/ListRolesRequest.php @@ -44,14 +44,12 @@ class ListRolesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • builtIn
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `builtIn` + * * `description` + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • builtIn
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `builtIn` + * * `description` + * * `displayName` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • builtIn
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `builtIn` + * * `description` + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • builtIn
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `builtIn` + * * `description` + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListSitesRequest.php b/AdsAdManager/src/V1/ListSitesRequest.php index baa4dea4962b..4e532ffc98ef 100644 --- a/AdsAdManager/src/V1/ListSitesRequest.php +++ b/AdsAdManager/src/V1/ListSitesRequest.php @@ -44,14 +44,12 @@ class ListSitesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • approvalStatus
  • - *
  • approvalStatusUpdateTime
  • - *
  • childNetworkCode
  • - *
  • name
  • - *
  • url
  • - *
+ * **Filterable fields:** + * * `approvalStatus` + * * `approvalStatusUpdateTime` + * * `childNetworkCode` + * * `name` + * * `url` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -109,14 +107,12 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • approvalStatus
  • - *
  • approvalStatusUpdateTime
  • - *
  • childNetworkCode
  • - *
  • name
  • - *
  • url
  • - *
+ * **Filterable fields:** + * * `approvalStatus` + * * `approvalStatusUpdateTime` + * * `childNetworkCode` + * * `name` + * * `url` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -226,14 +222,12 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • approvalStatus
  • - *
  • approvalStatusUpdateTime
  • - *
  • childNetworkCode
  • - *
  • name
  • - *
  • url
  • - *
+ * **Filterable fields:** + * * `approvalStatus` + * * `approvalStatusUpdateTime` + * * `childNetworkCode` + * * `name` + * * `url` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -247,14 +241,12 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • approvalStatus
  • - *
  • approvalStatusUpdateTime
  • - *
  • childNetworkCode
  • - *
  • name
  • - *
  • url
  • - *
+ * **Filterable fields:** + * * `approvalStatus` + * * `approvalStatusUpdateTime` + * * `childNetworkCode` + * * `name` + * * `url` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListSlatesRequest.php b/AdsAdManager/src/V1/ListSlatesRequest.php index 70c222d31d6f..8d94317cdcdd 100644 --- a/AdsAdManager/src/V1/ListSlatesRequest.php +++ b/AdsAdManager/src/V1/ListSlatesRequest.php @@ -43,12 +43,10 @@ class ListSlatesRequest extends \Google\Protobuf\Internal\Message /** * Optional. Expression to filter the response. * See syntax details at https://google.aip.dev/160 - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -104,12 +102,10 @@ public static function build(string $parent): self * @type string $filter * Optional. Expression to filter the response. * See syntax details at https://google.aip.dev/160 - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at https://google.aip.dev/132#ordering @@ -217,12 +213,10 @@ public function setPageToken($var) /** * Optional. Expression to filter the response. * See syntax details at https://google.aip.dev/160 - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -235,12 +229,10 @@ public function getFilter() /** * Optional. Expression to filter the response. * See syntax details at https://google.aip.dev/160 - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListSuggestedAdUnitsRequest.php b/AdsAdManager/src/V1/ListSuggestedAdUnitsRequest.php index bd1c561e5bd6..799abead4dc2 100644 --- a/AdsAdManager/src/V1/ListSuggestedAdUnitsRequest.php +++ b/AdsAdManager/src/V1/ListSuggestedAdUnitsRequest.php @@ -44,12 +44,10 @@ class ListSuggestedAdUnitsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • name
  • - *
  • newCodePath
  • - *
  • weeklyRequestCount
  • - *
+ * **Filterable fields:** + * * `name` + * * `newCodePath` + * * `weeklyRequestCount` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -107,12 +105,10 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • name
  • - *
  • newCodePath
  • - *
  • weeklyRequestCount
  • - *
+ * **Filterable fields:** + * * `name` + * * `newCodePath` + * * `weeklyRequestCount` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -222,12 +218,10 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • name
  • - *
  • newCodePath
  • - *
  • weeklyRequestCount
  • - *
+ * **Filterable fields:** + * * `name` + * * `newCodePath` + * * `weeklyRequestCount` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -241,12 +235,10 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • name
  • - *
  • newCodePath
  • - *
  • weeklyRequestCount
  • - *
+ * **Filterable fields:** + * * `name` + * * `newCodePath` + * * `weeklyRequestCount` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListTargetingPresetsRequest.php b/AdsAdManager/src/V1/ListTargetingPresetsRequest.php index 0f7c913e8b71..1046953b3923 100644 --- a/AdsAdManager/src/V1/ListTargetingPresetsRequest.php +++ b/AdsAdManager/src/V1/ListTargetingPresetsRequest.php @@ -44,12 +44,10 @@ class ListTargetingPresetsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -107,12 +105,10 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -222,12 +218,10 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -241,12 +235,10 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListTeamsRequest.php b/AdsAdManager/src/V1/ListTeamsRequest.php index a87b1f207227..fb76b19af4de 100644 --- a/AdsAdManager/src/V1/ListTeamsRequest.php +++ b/AdsAdManager/src/V1/ListTeamsRequest.php @@ -44,16 +44,14 @@ class ListTeamsRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • accessType
  • - *
  • allCompaniesAccess
  • - *
  • allInventoryAccess
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `accessType` + * * `allCompaniesAccess` + * * `allInventoryAccess` + * * `description` + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -111,16 +109,14 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • accessType
  • - *
  • allCompaniesAccess
  • - *
  • allInventoryAccess
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `accessType` + * * `allCompaniesAccess` + * * `allInventoryAccess` + * * `description` + * * `displayName` + * * `name` + * * `status` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -230,16 +226,14 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • accessType
  • - *
  • allCompaniesAccess
  • - *
  • allInventoryAccess
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `accessType` + * * `allCompaniesAccess` + * * `allInventoryAccess` + * * `description` + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -253,16 +247,14 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • accessType
  • - *
  • allCompaniesAccess
  • - *
  • allInventoryAccess
  • - *
  • description
  • - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
+ * **Filterable fields:** + * * `accessType` + * * `allCompaniesAccess` + * * `allInventoryAccess` + * * `description` + * * `displayName` + * * `name` + * * `status` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListThirdPartyCompaniesRequest.php b/AdsAdManager/src/V1/ListThirdPartyCompaniesRequest.php index 048d33950c75..eb5a81be2b83 100644 --- a/AdsAdManager/src/V1/ListThirdPartyCompaniesRequest.php +++ b/AdsAdManager/src/V1/ListThirdPartyCompaniesRequest.php @@ -44,13 +44,11 @@ class ListThirdPartyCompaniesRequest extends \Google\Protobuf\Internal\Message * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; */ @@ -108,13 +106,11 @@ public static function build(string $parent): self * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `type` * @type string $order_by * Optional. Expression to specify sorting order. * See syntax details at @@ -224,13 +220,11 @@ public function setPageToken($var) * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @return string @@ -244,13 +238,11 @@ public function getFilter() * Optional. Expression to filter the response. * See syntax details at * https://developers.google.com/ad-manager/api/beta/filters - * Filterable fields: - *
    - *
  • displayName
  • - *
  • name
  • - *
  • status
  • - *
  • type
  • - *
+ * **Filterable fields:** + * * `displayName` + * * `name` + * * `status` + * * `type` * * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; * @param string $var diff --git a/AdsAdManager/src/V1/ListViewabilityProvidersRequest.php b/AdsAdManager/src/V1/ListViewabilityProvidersRequest.php new file mode 100644 index 000000000000..8c05e1324b10 --- /dev/null +++ b/AdsAdManager/src/V1/ListViewabilityProvidersRequest.php @@ -0,0 +1,373 @@ +google.ads.admanager.v1.ListViewabilityProvidersRequest + */ +class ListViewabilityProvidersRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The parent, which owns this collection of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + */ + protected $parent = ''; + /** + * Optional. The maximum number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s to + * return. The service may return fewer than this value. If unspecified, at + * most 50 [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_size = 0; + /** + * Optional. A page token, received from a previous + * [ListViewabilityProviders][] call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * [ListViewabilityProviders][] must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $page_token = ''; + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `primaryContact` + * * `rejectionTrackerUrl` + * * `vendorKey` + * * `verificationScriptUrl` + * * `verificationScriptUrlParameters` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $filter = ''; + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $order_by = ''; + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $skip = 0; + + /** + * @param string $parent Required. The parent, which owns this collection of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. + * Format: `networks/{network_code}` + * Please see {@see ViewabilityProviderServiceClient::networkName()} for help formatting this field. + * + * @return \Google\Ads\AdManager\V1\ListViewabilityProvidersRequest + * + * @experimental + */ + public static function build(string $parent): self + { + return (new self()) + ->setParent($parent); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $parent + * Required. The parent, which owns this collection of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. + * Format: `networks/{network_code}` + * @type int $page_size + * Optional. The maximum number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s to + * return. The service may return fewer than this value. If unspecified, at + * most 50 [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * @type string $page_token + * Optional. A page token, received from a previous + * [ListViewabilityProviders][] call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * [ListViewabilityProviders][] must match the call that provided the page + * token. + * @type string $filter + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `primaryContact` + * * `rejectionTrackerUrl` + * * `vendorKey` + * * `verificationScriptUrl` + * * `verificationScriptUrlParameters` + * @type string $order_by + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * @type int $skip + * Optional. Number of individual resources to skip while paginating. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The parent, which owns this collection of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @return string + */ + public function getParent() + { + return $this->parent; + } + + /** + * Required. The parent, which owns this collection of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s. + * Format: `networks/{network_code}` + * + * Generated from protobuf field string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setParent($var) + { + GPBUtil::checkString($var, True); + $this->parent = $var; + + return $this; + } + + /** + * Optional. The maximum number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s to + * return. The service may return fewer than this value. If unspecified, at + * most 50 [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getPageSize() + { + return $this->page_size; + } + + /** + * Optional. The maximum number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s to + * return. The service may return fewer than this value. If unspecified, at + * most 50 [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]s + * will be returned. The maximum value is 1000; values above 1000 will be + * coerced to 1000. + * + * Generated from protobuf field int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setPageSize($var) + { + GPBUtil::checkInt32($var); + $this->page_size = $var; + + return $this; + } + + /** + * Optional. A page token, received from a previous + * [ListViewabilityProviders][] call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * [ListViewabilityProviders][] must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPageToken() + { + return $this->page_token; + } + + /** + * Optional. A page token, received from a previous + * [ListViewabilityProviders][] call. Provide this to retrieve the subsequent + * page. + * When paginating, all other parameters provided to + * [ListViewabilityProviders][] must match the call that provided the page + * token. + * + * Generated from protobuf field string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPageToken($var) + { + GPBUtil::checkString($var, True); + $this->page_token = $var; + + return $this; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `primaryContact` + * * `rejectionTrackerUrl` + * * `vendorKey` + * * `verificationScriptUrl` + * * `verificationScriptUrlParameters` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFilter() + { + return $this->filter; + } + + /** + * Optional. Expression to filter the response. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters + * **Filterable fields:** + * * `address` + * * `comment` + * * `displayName` + * * `email` + * * `externalId` + * * `fax` + * * `name` + * * `phone` + * * `primaryContact` + * * `rejectionTrackerUrl` + * * `vendorKey` + * * `verificationScriptUrl` + * * `verificationScriptUrlParameters` + * + * Generated from protobuf field string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFilter($var) + { + GPBUtil::checkString($var, True); + $this->filter = $var; + + return $this; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getOrderBy() + { + return $this->order_by; + } + + /** + * Optional. Expression to specify sorting order. + * See syntax details at + * https://developers.google.com/ad-manager/api/beta/filters#order + * + * Generated from protobuf field string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setOrderBy($var) + { + GPBUtil::checkString($var, True); + $this->order_by = $var; + + return $this; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getSkip() + { + return $this->skip; + } + + /** + * Optional. Number of individual resources to skip while paginating. + * + * Generated from protobuf field int32 skip = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setSkip($var) + { + GPBUtil::checkInt32($var); + $this->skip = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ListViewabilityProvidersResponse.php b/AdsAdManager/src/V1/ListViewabilityProvidersResponse.php new file mode 100644 index 000000000000..6d8bf54cafe0 --- /dev/null +++ b/AdsAdManager/src/V1/ListViewabilityProvidersResponse.php @@ -0,0 +1,180 @@ +google.ads.admanager.v1.ListViewabilityProvidersResponse + */ +class ListViewabilityProvidersResponse extends \Google\Protobuf\Internal\Message +{ + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + */ + private $viewability_providers; + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + */ + protected $next_page_token = ''; + /** + * Total number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + */ + protected $total_size = 0; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ViewabilityProvider[] $viewability_providers + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects from the specified network. + * @type string $next_page_token + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * @type int $total_size + * Total number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + * @return RepeatedField<\Google\Ads\AdManager\V1\ViewabilityProvider> + */ + public function getViewabilityProviders() + { + return $this->viewability_providers; + } + + /** + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] + * objects from the specified network. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.ViewabilityProvider viewability_providers = 1; + * @param \Google\Ads\AdManager\V1\ViewabilityProvider[] $var + * @return $this + */ + public function setViewabilityProviders($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\ViewabilityProvider::class); + $this->viewability_providers = $arr; + + return $this; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @return string + */ + public function getNextPageToken() + { + return $this->next_page_token; + } + + /** + * A token, which can be sent as `page_token` to retrieve the next page. + * If this field is omitted, there are no subsequent pages. + * + * Generated from protobuf field string next_page_token = 2; + * @param string $var + * @return $this + */ + public function setNextPageToken($var) + { + GPBUtil::checkString($var, True); + $this->next_page_token = $var; + + return $this; + } + + /** + * Total number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @return int + */ + public function getTotalSize() + { + return $this->total_size; + } + + /** + * Total number of + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] objects. + * If a filter was included in the request, this reflects the total number + * after the filtering is applied. + * `total_size` won't be calculated in the response unless it has been + * included in a response field mask. The response field mask can be provided + * to the method by using the URL parameter `$fields` or `fields`, or by using + * the HTTP/gRPC header `X-Goog-FieldMask`. + * For more information, see + * https://developers.google.com/ad-manager/api/beta/field-masks + * + * Generated from protobuf field int32 total_size = 3; + * @param int $var + * @return $this + */ + public function setTotalSize($var) + { + GPBUtil::checkInt32($var); + $this->total_size = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/LiveStream.php b/AdsAdManager/src/V1/LiveStream.php index 45d826d86228..e2b555ce8604 100644 --- a/AdsAdManager/src/V1/LiveStream.php +++ b/AdsAdManager/src/V1/LiveStream.php @@ -101,6 +101,22 @@ class LiveStream extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string asset_key = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ protected $asset_key = null; + /** + * Optional. The slate to use for this live stream. If not set, network + * default slate will be used. Format: + * "networks/{network_code}/slates/{slate_id}" + * + * Generated from protobuf field optional string slate = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $slate = null; + /** + * Optional. The duration of the DVR window. If unset the default window as + * provided by the input encoder will be used. Modifying this value for an + * active live stream can impact traffic. + * + * Generated from protobuf field optional .google.protobuf.Duration dvr_window_duration = 59 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $dvr_window_duration = null; /** * Optional. Whether the live stream's requests to the IMA SDK API will be * authenticated using the DAI authentication keys. @@ -174,6 +190,16 @@ class LiveStream extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional .google.protobuf.Duration default_ad_break_duration = 22 [(.google.api.field_behavior) = OPTIONAL]; */ protected $default_ad_break_duration = null; + /** + * Optional. The list of DaiAuthenticationKey objects used to authenticate + * stream create requests for this live stream. Modifying settings for an + * active live stream may break the stream for some users. Exercise caution. + * Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" + * + * Generated from protobuf field repeated string dai_authentication_keys = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $dai_authentication_keys; /** * Optional. The list of CdnConfigurations that provide settings for ingesting * and delivering the videos associated with this source. Modifying settings @@ -276,6 +302,22 @@ class LiveStream extends \Google\Protobuf\Internal\Message * Generated from protobuf field optional string custom_asset_key = 39 [(.google.api.field_behavior) = IMMUTABLE]; */ protected $custom_asset_key = null; + /** + * Optional. The list of DaiEncodingProfiles that will be used for this live + * stream event. Format: + * "networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}" + * + * Generated from protobuf field repeated string dai_encoding_profiles = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $dai_encoding_profiles; + /** + * Optional. The list of DaiAuthenticationKeys used to authenticate ad segment + * url requests for this live stream. Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" + * + * Generated from protobuf field repeated string segment_url_authentication_keys = 41 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $segment_url_authentication_keys; /** * Optional. The formats that will be recognized as ad break start/end * markers. This field is ignored if `adBreakMarkupTypesEnabled` is false. @@ -370,6 +412,14 @@ class LiveStream extends \Google\Protobuf\Internal\Message * @type string $asset_key * Output only. The code used in constructing a live stream master playlist * URL. + * @type string $slate + * Optional. The slate to use for this live stream. If not set, network + * default slate will be used. Format: + * "networks/{network_code}/slates/{slate_id}" + * @type \Google\Protobuf\Duration $dvr_window_duration + * Optional. The duration of the DVR window. If unset the default window as + * provided by the input encoder will be used. Modifying this value for an + * active live stream can impact traffic. * @type bool $enable_dai_authentication_keys * Optional. Whether the live stream's requests to the IMA SDK API will be * authenticated using the DAI authentication keys. @@ -407,6 +457,12 @@ class LiveStream extends \Google\Protobuf\Internal\Message * @type \Google\Protobuf\Duration $default_ad_break_duration * Optional. The default ad pod duration that will be requested when an ad * break cue-out does not specify a duration. Defaults to 0. + * @type string[] $dai_authentication_keys + * Optional. The list of DaiAuthenticationKey objects used to authenticate + * stream create requests for this live stream. Modifying settings for an + * active live stream may break the stream for some users. Exercise caution. + * Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" * @type string[] $source_content_configurations * Optional. The list of CdnConfigurations that provide settings for ingesting * and delivering the videos associated with this source. Modifying settings @@ -457,6 +513,14 @@ class LiveStream extends \Google\Protobuf\Internal\Message * key may be at most 64 characters and can contain alphanumeric characters * and symbols other than the following: * ", ', =, !, +, #, *, ~, ;, ^, (, ), <, >, [, ], the white space character. + * @type string[] $dai_encoding_profiles + * Optional. The list of DaiEncodingProfiles that will be used for this live + * stream event. Format: + * "networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}" + * @type string[] $segment_url_authentication_keys + * Optional. The list of DaiAuthenticationKeys used to authenticate ad segment + * url requests for this live stream. Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" * @type int[] $ad_break_markups * Optional. The formats that will be recognized as ad break start/end * markers. This field is ignored if `adBreakMarkupTypesEnabled` is false. @@ -883,6 +947,86 @@ public function setAssetKey($var) return $this; } + /** + * Optional. The slate to use for this live stream. If not set, network + * default slate will be used. Format: + * "networks/{network_code}/slates/{slate_id}" + * + * Generated from protobuf field optional string slate = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getSlate() + { + return isset($this->slate) ? $this->slate : ''; + } + + public function hasSlate() + { + return isset($this->slate); + } + + public function clearSlate() + { + unset($this->slate); + } + + /** + * Optional. The slate to use for this live stream. If not set, network + * default slate will be used. Format: + * "networks/{network_code}/slates/{slate_id}" + * + * Generated from protobuf field optional string slate = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setSlate($var) + { + GPBUtil::checkString($var, True); + $this->slate = $var; + + return $this; + } + + /** + * Optional. The duration of the DVR window. If unset the default window as + * provided by the input encoder will be used. Modifying this value for an + * active live stream can impact traffic. + * + * Generated from protobuf field optional .google.protobuf.Duration dvr_window_duration = 59 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\Duration|null + */ + public function getDvrWindowDuration() + { + return $this->dvr_window_duration; + } + + public function hasDvrWindowDuration() + { + return isset($this->dvr_window_duration); + } + + public function clearDvrWindowDuration() + { + unset($this->dvr_window_duration); + } + + /** + * Optional. The duration of the DVR window. If unset the default window as + * provided by the input encoder will be used. Modifying this value for an + * active live stream can impact traffic. + * + * Generated from protobuf field optional .google.protobuf.Duration dvr_window_duration = 59 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\Duration $var + * @return $this + */ + public function setDvrWindowDuration($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Duration::class); + $this->dvr_window_duration = $var; + + return $this; + } + /** * Optional. Whether the live stream's requests to the IMA SDK API will be * authenticated using the DAI authentication keys. @@ -1245,6 +1389,40 @@ public function setDefaultAdBreakDuration($var) return $this; } + /** + * Optional. The list of DaiAuthenticationKey objects used to authenticate + * stream create requests for this live stream. Modifying settings for an + * active live stream may break the stream for some users. Exercise caution. + * Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" + * + * Generated from protobuf field repeated string dai_authentication_keys = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getDaiAuthenticationKeys() + { + return $this->dai_authentication_keys; + } + + /** + * Optional. The list of DaiAuthenticationKey objects used to authenticate + * stream create requests for this live stream. Modifying settings for an + * active live stream may break the stream for some users. Exercise caution. + * Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" + * + * Generated from protobuf field repeated string dai_authentication_keys = 24 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setDaiAuthenticationKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->dai_authentication_keys = $arr; + + return $this; + } + /** * Optional. The list of CdnConfigurations that provide settings for ingesting * and delivering the videos associated with this source. Modifying settings @@ -1751,6 +1929,66 @@ public function setCustomAssetKey($var) return $this; } + /** + * Optional. The list of DaiEncodingProfiles that will be used for this live + * stream event. Format: + * "networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}" + * + * Generated from protobuf field repeated string dai_encoding_profiles = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getDaiEncodingProfiles() + { + return $this->dai_encoding_profiles; + } + + /** + * Optional. The list of DaiEncodingProfiles that will be used for this live + * stream event. Format: + * "networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile_id}" + * + * Generated from protobuf field repeated string dai_encoding_profiles = 40 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setDaiEncodingProfiles($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->dai_encoding_profiles = $arr; + + return $this; + } + + /** + * Optional. The list of DaiAuthenticationKeys used to authenticate ad segment + * url requests for this live stream. Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" + * + * Generated from protobuf field repeated string segment_url_authentication_keys = 41 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getSegmentUrlAuthenticationKeys() + { + return $this->segment_url_authentication_keys; + } + + /** + * Optional. The list of DaiAuthenticationKeys used to authenticate ad segment + * url requests for this live stream. Format: + * "networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key_id}" + * + * Generated from protobuf field repeated string segment_url_authentication_keys = 41 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setSegmentUrlAuthenticationKeys($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->segment_url_authentication_keys = $arr; + + return $this; + } + /** * Optional. The formats that will be recognized as ad break start/end * markers. This field is ignored if `adBreakMarkupTypesEnabled` is false. diff --git a/AdsAdManager/src/V1/McmReadinessStatusEnum.php b/AdsAdManager/src/V1/McmReadinessStatusEnum.php new file mode 100644 index 000000000000..05d72e847275 --- /dev/null +++ b/AdsAdManager/src/V1/McmReadinessStatusEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.McmReadinessStatusEnum + */ +class McmReadinessStatusEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\McmEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/McmReadinessStatusEnum/McmReadinessStatus.php b/AdsAdManager/src/V1/McmReadinessStatusEnum/McmReadinessStatus.php new file mode 100644 index 000000000000..0d33201c4fc3 --- /dev/null +++ b/AdsAdManager/src/V1/McmReadinessStatusEnum/McmReadinessStatus.php @@ -0,0 +1,74 @@ +google.ads.admanager.v1.McmReadinessStatusEnum.McmReadinessStatus + */ +class McmReadinessStatus +{ + /** + * No value specified + * + * Generated from protobuf enum MCM_READINESS_STATUS_UNSPECIFIED = 0; + */ + const MCM_READINESS_STATUS_UNSPECIFIED = 0; + /** + * Indicates the invitation to the child is declined or withdrawn. + * + * Generated from protobuf enum INACTIVE = 1; + */ + const INACTIVE = 1; + /** + * Indicates the MCM setup has not yet completed. It could be child not yet + * accepted the invitation, Google found noncompliance settings or child has + * not yet completed identity or address verifications. + * + * Generated from protobuf enum NOT_READY = 2; + */ + const NOT_READY = 2; + /** + * Indicates MCM setup has completed. Including the child publisher accepted + * the invite, Google found it to be compliant with its policies, i.e. no + * policy violations were found, related verifications have completed and + * the child publisher can be served ads. + * + * Generated from protobuf enum READY = 3; + */ + const READY = 3; + + private static $valueToName = [ + self::MCM_READINESS_STATUS_UNSPECIFIED => 'MCM_READINESS_STATUS_UNSPECIFIED', + self::INACTIVE => 'INACTIVE', + self::NOT_READY => 'NOT_READY', + self::READY => 'READY', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/Partner.php b/AdsAdManager/src/V1/Partner.php new file mode 100644 index 000000000000..ba9f834a6b00 --- /dev/null +++ b/AdsAdManager/src/V1/Partner.php @@ -0,0 +1,667 @@ +google.ads.admanager.v1.Partner + */ +class Partner extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The display name of the + * [Partner][google.ads.admanager.v1.Partner]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Optional. The address for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string address = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $address = null; + /** + * Optional. The email for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 5 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $email = null; + /** + * Optional. The fax number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fax = null; + /** + * Optional. The phone number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $phone = null; + /** + * Optional. The external ID for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_id = null; + /** + * Optional. Comments about the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $comment = null; + /** + * Optional. The labels that are directly applied to the + * [Partner][google.ads.admanager.v1.Partner]. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + private $applied_labels; + /** + * Optional. The resource names of primary Contact of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $primary_contact = null; + /** + * Optional. The resource names of Teams that are directly associated with the + * [Partner][google.ads.admanager.v1.Partner]. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $applied_teams; + /** + * Output only. The time the [Partner][google.ads.admanager.v1.Partner] was + * last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + /** + * Optional. The credit status of the + * [Partner][google.ads.admanager.v1.Partner]. + * This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic + * settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance + * settings are enabled. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $credit_status = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * @type string $display_name + * Required. The display name of the + * [Partner][google.ads.admanager.v1.Partner]. + * @type string $address + * Optional. The address for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * @type string $email + * Optional. The email for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 128 characters. + * @type string $fax + * Optional. The fax number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * @type string $phone + * Optional. The phone number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * @type string $external_id + * Optional. The external ID for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 255 characters. + * @type string $comment + * Optional. Comments about the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * @type \Google\Ads\AdManager\V1\AppliedLabel[] $applied_labels + * Optional. The labels that are directly applied to the + * [Partner][google.ads.admanager.v1.Partner]. + * @type string $primary_contact + * Optional. The resource names of primary Contact of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * @type string[] $applied_teams + * Optional. The resource names of Teams that are directly associated with the + * [Partner][google.ads.admanager.v1.Partner]. + * Format: "networks/{network_code}/teams/{team_id}" + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the [Partner][google.ads.admanager.v1.Partner] was + * last updated. + * @type int $credit_status + * Optional. The credit status of the + * [Partner][google.ads.admanager.v1.Partner]. + * This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic + * settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance + * settings are enabled. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * `networks/{network_code}/partners/{partner_id}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the + * [Partner][google.ads.admanager.v1.Partner]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the + * [Partner][google.ads.admanager.v1.Partner]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Optional. The address for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAddress() + { + return isset($this->address) ? $this->address : ''; + } + + public function hasAddress() + { + return isset($this->address); + } + + public function clearAddress() + { + unset($this->address); + } + + /** + * Optional. The address for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string address = 4 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * Optional. The email for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Optional. The email for the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 128 characters. + * + * Generated from protobuf field optional string email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Optional. The fax number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFax() + { + return isset($this->fax) ? $this->fax : ''; + } + + public function hasFax() + { + return isset($this->fax); + } + + public function clearFax() + { + unset($this->fax); + } + + /** + * Optional. The fax number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string fax = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFax($var) + { + GPBUtil::checkString($var, True); + $this->fax = $var; + + return $this; + } + + /** + * Optional. The phone number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPhone() + { + return isset($this->phone) ? $this->phone : ''; + } + + public function hasPhone() + { + return isset($this->phone); + } + + public function clearPhone() + { + unset($this->phone); + } + + /** + * Optional. The phone number for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 63 characters. + * + * Generated from protobuf field optional string phone = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPhone($var) + { + GPBUtil::checkString($var, True); + $this->phone = $var; + + return $this; + } + + /** + * Optional. The external ID for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExternalId() + { + return isset($this->external_id) ? $this->external_id : ''; + } + + public function hasExternalId() + { + return isset($this->external_id); + } + + public function clearExternalId() + { + unset($this->external_id); + } + + /** + * Optional. The external ID for the + * [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 255 characters. + * + * Generated from protobuf field optional string external_id = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExternalId($var) + { + GPBUtil::checkString($var, True); + $this->external_id = $var; + + return $this; + } + + /** + * Optional. Comments about the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getComment() + { + return isset($this->comment) ? $this->comment : ''; + } + + public function hasComment() + { + return isset($this->comment); + } + + public function clearComment() + { + unset($this->comment); + } + + /** + * Optional. Comments about the [Partner][google.ads.admanager.v1.Partner]. + * This value has a maximum length of 1024 characters. + * + * Generated from protobuf field optional string comment = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setComment($var) + { + GPBUtil::checkString($var, True); + $this->comment = $var; + + return $this; + } + + /** + * Optional. The labels that are directly applied to the + * [Partner][google.ads.admanager.v1.Partner]. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return RepeatedField<\Google\Ads\AdManager\V1\AppliedLabel> + */ + public function getAppliedLabels() + { + return $this->applied_labels; + } + + /** + * Optional. The labels that are directly applied to the + * [Partner][google.ads.admanager.v1.Partner]. + * + * Generated from protobuf field repeated .google.ads.admanager.v1.AppliedLabel applied_labels = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Ads\AdManager\V1\AppliedLabel[] $var + * @return $this + */ + public function setAppliedLabels($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Ads\AdManager\V1\AppliedLabel::class); + $this->applied_labels = $arr; + + return $this; + } + + /** + * Optional. The resource names of primary Contact of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getPrimaryContact() + { + return isset($this->primary_contact) ? $this->primary_contact : ''; + } + + public function hasPrimaryContact() + { + return isset($this->primary_contact); + } + + public function clearPrimaryContact() + { + unset($this->primary_contact); + } + + /** + * Optional. The resource names of primary Contact of the + * [Partner][google.ads.admanager.v1.Partner]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 11 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setPrimaryContact($var) + { + GPBUtil::checkString($var, True); + $this->primary_contact = $var; + + return $this; + } + + /** + * Optional. The resource names of Teams that are directly associated with the + * [Partner][google.ads.admanager.v1.Partner]. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAppliedTeams() + { + return $this->applied_teams; + } + + /** + * Optional. The resource names of Teams that are directly associated with the + * [Partner][google.ads.admanager.v1.Partner]. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 13 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAppliedTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->applied_teams = $arr; + + return $this; + } + + /** + * Output only. The time the [Partner][google.ads.admanager.v1.Partner] was + * last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time the [Partner][google.ads.admanager.v1.Partner] was + * last updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 15 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + + /** + * Optional. The credit status of the + * [Partner][google.ads.admanager.v1.Partner]. + * This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic + * settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance + * settings are enabled. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getCreditStatus() + { + return isset($this->credit_status) ? $this->credit_status : 0; + } + + public function hasCreditStatus() + { + return isset($this->credit_status); + } + + public function clearCreditStatus() + { + unset($this->credit_status); + } + + /** + * Optional. The credit status of the + * [Partner][google.ads.admanager.v1.Partner]. + * This attribute defaults to [CompanyCreditStatus.ACTIVE][] if basic + * settings are enabled and [CompanyCreditStatus.ON_HOLD][] if advance + * settings are enabled. + * + * Generated from protobuf field optional .google.ads.admanager.v1.CompanyCreditStatusEnum.CompanyCreditStatus credit_status = 16 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setCreditStatus($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\CompanyCreditStatusEnum\CompanyCreditStatus::class); + $this->credit_status = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/RefreshRateTypeEnum.php b/AdsAdManager/src/V1/RefreshRateTypeEnum.php new file mode 100644 index 000000000000..01db9f8e8105 --- /dev/null +++ b/AdsAdManager/src/V1/RefreshRateTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.RefreshRateTypeEnum + */ +class RefreshRateTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\AdUnitEnums::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/RefreshRateTypeEnum/RefreshRateType.php b/AdsAdManager/src/V1/RefreshRateTypeEnum/RefreshRateType.php new file mode 100644 index 000000000000..f62012580583 --- /dev/null +++ b/AdsAdManager/src/V1/RefreshRateTypeEnum/RefreshRateType.php @@ -0,0 +1,69 @@ +google.ads.admanager.v1.RefreshRateTypeEnum.RefreshRateType + */ +class RefreshRateType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum REFRESH_RATE_TYPE_UNSPECIFIED = 0; + */ + const REFRESH_RATE_TYPE_UNSPECIFIED = 0; + /** + * Indicates refresh is disabled. + * + * Generated from protobuf enum DISABLED = 1; + */ + const DISABLED = 1; + /** + * Represents the Google optimized refresh rate. + * + * Generated from protobuf enum OPTIMIZED = 2; + */ + const OPTIMIZED = 2; + /** + * Represents a fixed interval refresh rate. + * + * Generated from protobuf enum FIXED_INTERVAL = 3; + */ + const FIXED_INTERVAL = 3; + + private static $valueToName = [ + self::REFRESH_RATE_TYPE_UNSPECIFIED => 'REFRESH_RATE_TYPE_UNSPECIFIED', + self::DISABLED => 'DISABLED', + self::OPTIMIZED => 'OPTIMIZED', + self::FIXED_INTERVAL => 'FIXED_INTERVAL', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/Report.php b/AdsAdManager/src/V1/Report.php index f03ff0c8ce64..854ad1032bde 100644 --- a/AdsAdManager/src/V1/Report.php +++ b/AdsAdManager/src/V1/Report.php @@ -32,7 +32,7 @@ class Report extends \Google\Protobuf\Internal\Message /** * Optional. The visibility of a report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; */ protected $visibility = 0; /** @@ -166,7 +166,7 @@ public function setReportId($var) /** * Optional. The visibility of a report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; * @return int */ public function getVisibility() @@ -177,13 +177,13 @@ public function getVisibility() /** * Optional. The visibility of a report. * - * Generated from protobuf field .google.ads.admanager.v1.Report.Visibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; + * Generated from protobuf field .google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibility visibility = 2 [(.google.api.field_behavior) = OPTIONAL]; * @param int $var * @return $this */ public function setVisibility($var) { - GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\Report\Visibility::class); + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ReportVisibilityEnum\ReportVisibility::class); $this->visibility = $var; return $this; diff --git a/AdsAdManager/src/V1/ReportDefinition/Dimension.php b/AdsAdManager/src/V1/ReportDefinition/Dimension.php index db86bdcd79a1..04159eead317 100644 --- a/AdsAdManager/src/V1/ReportDefinition/Dimension.php +++ b/AdsAdManager/src/V1/ReportDefinition/Dimension.php @@ -62,10 +62,10 @@ class Dimension /** * The domain name of the advertiser. * Corresponds to "Landing page domain" in the Ad Manager UI. - * Compatible with the following report types: `HISTORICAL` + * Compatible with the following report types: `HISTORICAL`, `REACH` * Data format: `STRING` * - * Generated from protobuf enum ADVERTISER_DOMAIN_NAME = 242; + * Generated from protobuf enum ADVERTISER_DOMAIN_NAME = 242 [deprecated = true]; */ const ADVERTISER_DOMAIN_NAME = 242; /** @@ -1479,7 +1479,8 @@ class Dimension /** * The criteria ID of the city in which the ad served. * Corresponds to "City ID" in the Ad Manager UI. - * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `OFF_PROPERTY_CAMPAIGNS` * Data format: `IDENTIFIER` * * Generated from protobuf enum CITY_ID = 459; @@ -1498,7 +1499,8 @@ class Dimension * The ID of an advertiser, classified by Google, associated with a creative * transacted * Corresponds to "Advertiser ID (classified)" in the Ad Manager UI. - * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` * Data format: `IDENTIFIER` * * Generated from protobuf enum CLASSIFIED_ADVERTISER_ID = 133; @@ -1508,7 +1510,8 @@ class Dimension * The name of an advertiser, classified by Google, associated with a * creative transacted * Corresponds to "Advertiser (classified)" in the Ad Manager UI. - * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `REACH` * Data format: `STRING` * * Generated from protobuf enum CLASSIFIED_ADVERTISER_NAME = 134; @@ -2748,6 +2751,13 @@ class Dimension * Generated from protobuf enum KEY_VALUES_SET = 713; */ const KEY_VALUES_SET = 713; + /** + * The landing page domain name of the advertiser. + * This will eventually replace ADVERTISER_DOMAIN_NAME. + * + * Generated from protobuf enum LANDING_PAGE_DOMAIN = 242; + */ + const LANDING_PAGE_DOMAIN = 242; /** * The agency of the order associated with the line item. * Corresponds to "Line item agency" in the Ad Manager UI. @@ -3430,7 +3440,8 @@ class Dimension /** * The criteria ID of the metro area in which the ad served. * Corresponds to "Metro ID" in the Ad Manager UI. - * Compatible with the following report types: `HISTORICAL`, `AD_SPEED` + * Compatible with the following report types: `HISTORICAL`, `AD_SPEED`, + * `OFF_PROPERTY_CAMPAIGNS` * Data format: `IDENTIFIER` * * Generated from protobuf enum METRO_ID = 453; @@ -3733,6 +3744,15 @@ class Dimension * Generated from protobuf enum NO_FILL_REASON_CATEGORY_NAME = 587; */ const NO_FILL_REASON_CATEGORY_NAME = 587; + /** + * Number of ads served in a pod response. + * Corresponds to "Number of ads in pod" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum NUM_ADS_IN_POD = 804; + */ + const NUM_ADS_IN_POD = 804; /** * Operating system category. * Corresponds to "Operating system category value" in the Ad Manager UI @@ -4558,6 +4578,25 @@ class Dimension * Generated from protobuf enum REQUESTED_AD_SIZES = 352; */ const REQUESTED_AD_SIZES = 352; + /** + * The orientation of the creative requested. + * Corresponds to "Requested creative orientation value" in the Ad Manager + * UI (when showing API fields). + * Compatible with the following report types: `HISTORICAL` + * Data format: `ENUM_LIST` + * + * Generated from protobuf enum REQUESTED_CREATIVE_ORIENTATION = 828; + */ + const REQUESTED_CREATIVE_ORIENTATION = 828; + /** + * Localized name of the requested creative orientation. + * Corresponds to "Requested creative orientation" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `STRING_LIST` + * + * Generated from protobuf enum REQUESTED_CREATIVE_ORIENTATION_NAME = 829; + */ + const REQUESTED_CREATIVE_ORIENTATION_NAME = 829; /** * Request type ENUM * Corresponds to "Request type value" in the Ad Manager UI (when showing @@ -5093,7 +5132,7 @@ class Dimension * mid-roll, post-roll. * Corresponds to "Position of pod" in the Ad Manager UI. * Compatible with the following report types: `HISTORICAL`, - * `REAL_TIME_VIDEO` + * `REAL_TIME_VIDEO`, `OFF_PROPERTY_CAMPAIGNS` * Data format: `STRING` * * Generated from protobuf enum VIDEO_POSITION_OF_POD = 539; @@ -7482,6 +7521,7 @@ class Dimension self::KEY_VALUES_ID => 'KEY_VALUES_ID', self::KEY_VALUES_NAME => 'KEY_VALUES_NAME', self::KEY_VALUES_SET => 'KEY_VALUES_SET', + self::LANDING_PAGE_DOMAIN => 'LANDING_PAGE_DOMAIN', self::LINE_ITEM_AGENCY => 'LINE_ITEM_AGENCY', self::LINE_ITEM_ARCHIVED => 'LINE_ITEM_ARCHIVED', self::LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS => 'LINE_ITEM_AVERAGE_NUMBER_OF_VIEWERS', @@ -7579,6 +7619,7 @@ class Dimension self::NIELSEN_SEGMENT => 'NIELSEN_SEGMENT', self::NIELSEN_SITE_URL => 'NIELSEN_SITE_URL', self::NO_FILL_REASON_CATEGORY_NAME => 'NO_FILL_REASON_CATEGORY_NAME', + self::NUM_ADS_IN_POD => 'NUM_ADS_IN_POD', self::OPERATING_SYSTEM_CATEGORY => 'OPERATING_SYSTEM_CATEGORY', self::OPERATING_SYSTEM_CATEGORY_NAME => 'OPERATING_SYSTEM_CATEGORY_NAME', self::OPERATING_SYSTEM_VERSION_ID => 'OPERATING_SYSTEM_VERSION_ID', @@ -7663,6 +7704,8 @@ class Dimension self::REJECTION_CLASS_CATEGORY_NAME => 'REJECTION_CLASS_CATEGORY_NAME', self::RENDERED_CREATIVE_SIZE => 'RENDERED_CREATIVE_SIZE', self::REQUESTED_AD_SIZES => 'REQUESTED_AD_SIZES', + self::REQUESTED_CREATIVE_ORIENTATION => 'REQUESTED_CREATIVE_ORIENTATION', + self::REQUESTED_CREATIVE_ORIENTATION_NAME => 'REQUESTED_CREATIVE_ORIENTATION_NAME', self::REQUEST_TYPE => 'REQUEST_TYPE', self::REQUEST_TYPE_NAME => 'REQUEST_TYPE_NAME', self::REVENUE_VERIFICATION_ID => 'REVENUE_VERIFICATION_ID', diff --git a/AdsAdManager/src/V1/ReportDefinition/Metric.php b/AdsAdManager/src/V1/ReportDefinition/Metric.php index d4239617fd29..38b6db7b0935 100644 --- a/AdsAdManager/src/V1/ReportDefinition/Metric.php +++ b/AdsAdManager/src/V1/ReportDefinition/Metric.php @@ -2192,6 +2192,19 @@ class Metric * Generated from protobuf enum CTR = 3; */ const CTR = 3; + /** + * For standard ads, your ad clickthrough rate (CTR) is the number of ad + * clicks divided by the number of individual ad impressions expressed as a + * fraction. Ad CTR = Clicks / Ad impressions. Counts companion impressions + * in the number of ad impressions. + * Corresponds to "Total CTR with companion" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `ADS_TRAFFIC_NAVIGATOR`, `AD_SPEED` + * Data format: `PERCENT` + * + * Generated from protobuf enum CTR_WITH_COMPANION = 742; + */ + const CTR_WITH_COMPANION = 742; /** * Number of bids received for a deal. * Corresponds to "Deals bids" in the Ad Manager UI. @@ -2577,6 +2590,17 @@ class Metric * Generated from protobuf enum IMPRESSIONS = 1; */ const IMPRESSIONS = 1; + /** + * Total impressions from the Google Ad Manager server, AdSense, + * Ad Exchange, and yield group partners, including companion ads. + * Corresponds to "Total impressions with companion" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL`, + * `ADS_TRAFFIC_NAVIGATOR`, `AD_SPEED` + * Data format: `INTEGER` + * + * Generated from protobuf enum IMPRESSIONS_WITH_COMPANION = 741; + */ + const IMPRESSIONS_WITH_COMPANION = 741; /** * The number of impressions (via begin to render methodology) considered * inactive, as defined by served to a device receiving ad or bid requests @@ -3149,6 +3173,33 @@ class Metric * Generated from protobuf enum PARTNER_SOLD_IMPRESSIONS = 123; */ const PARTNER_SOLD_IMPRESSIONS = 123; + /** + * Total pod eCPM. + * Corresponds to "Total pod eCPM" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum POD_ECPM = 738; + */ + const POD_ECPM = 738; + /** + * Total pod eCPM without CPD. + * Corresponds to "Total pod eCPM without CPD" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `MONEY` + * + * Generated from protobuf enum POD_ECPM_WITHOUT_CPD = 739; + */ + const POD_ECPM_WITHOUT_CPD = 739; + /** + * Total pod views. + * Corresponds to "Total pod views" in the Ad Manager UI. + * Compatible with the following report types: `HISTORICAL` + * Data format: `INTEGER` + * + * Generated from protobuf enum POD_VIEWS = 740; + */ + const POD_VIEWS = 740; /** * The total number of ad requests eligible for programmatic inventory, * including Programmatic Guaranteed, Preferred Deals, backfill, and open @@ -5415,6 +5466,7 @@ class Metric self::CREATIVE_LOAD_TIME_500_1000_PERCENT => 'CREATIVE_LOAD_TIME_500_1000_PERCENT', self::CREATIVE_LOAD_TIME_GT_8000_PERCENT => 'CREATIVE_LOAD_TIME_GT_8000_PERCENT', self::CTR => 'CTR', + self::CTR_WITH_COMPANION => 'CTR_WITH_COMPANION', self::DEALS_BIDS => 'DEALS_BIDS', self::DEALS_BID_RATE => 'DEALS_BID_RATE', self::DEALS_BID_REQUESTS => 'DEALS_BID_REQUESTS', @@ -5455,6 +5507,7 @@ class Metric self::GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS => 'GOOGLE_SOLD_RESERVATION_COVIEWED_IMPRESSIONS', self::GOOGLE_SOLD_RESERVATION_IMPRESSIONS => 'GOOGLE_SOLD_RESERVATION_IMPRESSIONS', self::IMPRESSIONS => 'IMPRESSIONS', + self::IMPRESSIONS_WITH_COMPANION => 'IMPRESSIONS_WITH_COMPANION', self::INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS => 'INACTIVE_BEGIN_TO_RENDER_IMPRESSIONS', self::INVENTORY_SHARES => 'INVENTORY_SHARES', self::INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES => 'INVENTORY_SHARE_PARTNER_UNFILLED_OPPORTUNITIES', @@ -5514,6 +5567,9 @@ class Metric self::PARTNER_SOLD_CODE_SERVED => 'PARTNER_SOLD_CODE_SERVED', self::PARTNER_SOLD_COVIEWED_IMPRESSIONS => 'PARTNER_SOLD_COVIEWED_IMPRESSIONS', self::PARTNER_SOLD_IMPRESSIONS => 'PARTNER_SOLD_IMPRESSIONS', + self::POD_ECPM => 'POD_ECPM', + self::POD_ECPM_WITHOUT_CPD => 'POD_ECPM_WITHOUT_CPD', + self::POD_VIEWS => 'POD_VIEWS', self::PROGRAMMATIC_ELIGIBLE_AD_REQUESTS => 'PROGRAMMATIC_ELIGIBLE_AD_REQUESTS', self::PROGRAMMATIC_MATCH_RATE => 'PROGRAMMATIC_MATCH_RATE', self::PROGRAMMATIC_RESPONSES_SERVED => 'PROGRAMMATIC_RESPONSES_SERVED', diff --git a/AdsAdManager/src/V1/ReportVisibilityEnum.php b/AdsAdManager/src/V1/ReportVisibilityEnum.php new file mode 100644 index 000000000000..ee0474394f5a --- /dev/null +++ b/AdsAdManager/src/V1/ReportVisibilityEnum.php @@ -0,0 +1,33 @@ +google.ads.admanager.v1.ReportVisibilityEnum + */ +class ReportVisibilityEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ReportVisibilityEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ReportVisibilityEnum/ReportVisibility.php b/AdsAdManager/src/V1/ReportVisibilityEnum/ReportVisibility.php new file mode 100644 index 000000000000..2debf7595712 --- /dev/null +++ b/AdsAdManager/src/V1/ReportVisibilityEnum/ReportVisibility.php @@ -0,0 +1,55 @@ +google.ads.admanager.v1.ReportVisibilityEnum.ReportVisibility + */ +class ReportVisibility +{ + /** + * Default value. Reports with hidden visibility won't appear in the Ad + * Manager UI. + * + * Generated from protobuf enum HIDDEN = 0; + */ + const HIDDEN = 0; + /** + * Reports with this visibility will appear in the Ad Manager UI. + * + * Generated from protobuf enum VISIBLE = 2; + */ + const VISIBLE = 2; + + private static $valueToName = [ + self::HIDDEN => 'HIDDEN', + self::VISIBLE => 'VISIBLE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/ThirdPartyDataDeclaration.php b/AdsAdManager/src/V1/ThirdPartyDataDeclaration.php new file mode 100644 index 000000000000..5f0a76356f1c --- /dev/null +++ b/AdsAdManager/src/V1/ThirdPartyDataDeclaration.php @@ -0,0 +1,111 @@ +google.ads.admanager.v1.ThirdPartyDataDeclaration + */ +class ThirdPartyDataDeclaration extends \Google\Protobuf\Internal\Message +{ + /** + * Optional. The declaration about third party data usage on the associated + * entity. + * + * Generated from protobuf field .google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType declaration_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $declaration_type = 0; + /** + * Optional. A list of ThirdPartyCompanies associated with this entity. + * Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}" + * + * Generated from protobuf field repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $third_party_companies; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $declaration_type + * Optional. The declaration about third party data usage on the associated + * entity. + * @type string[] $third_party_companies + * Optional. A list of ThirdPartyCompanies associated with this entity. + * Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}" + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ThirdPartyDataDeclaration::initOnce(); + parent::__construct($data); + } + + /** + * Optional. The declaration about third party data usage on the associated + * entity. + * + * Generated from protobuf field .google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType declaration_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @return int + */ + public function getDeclarationType() + { + return $this->declaration_type; + } + + /** + * Optional. The declaration about third party data usage on the associated + * entity. + * + * Generated from protobuf field .google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType declaration_type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * @param int $var + * @return $this + */ + public function setDeclarationType($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ThirdPartyDataDeclarationTypeEnum\ThirdPartyDataDeclarationType::class); + $this->declaration_type = $var; + + return $this; + } + + /** + * Optional. A list of ThirdPartyCompanies associated with this entity. + * Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}" + * + * Generated from protobuf field repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getThirdPartyCompanies() + { + return $this->third_party_companies; + } + + /** + * Optional. A list of ThirdPartyCompanies associated with this entity. + * Format: "networks/{network_code}/thirdPartyCompanies/{third_party_company}" + * + * Generated from protobuf field repeated string third_party_companies = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setThirdPartyCompanies($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->third_party_companies = $arr; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ThirdPartyDataDeclarationTypeEnum.php b/AdsAdManager/src/V1/ThirdPartyDataDeclarationTypeEnum.php new file mode 100644 index 000000000000..4e11fc07ef13 --- /dev/null +++ b/AdsAdManager/src/V1/ThirdPartyDataDeclarationTypeEnum.php @@ -0,0 +1,34 @@ +google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum + */ +class ThirdPartyDataDeclarationTypeEnum extends \Google\Protobuf\Internal\Message +{ + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ThirdPartyDataDeclarationTypeEnum::initOnce(); + parent::__construct($data); + } + +} + diff --git a/AdsAdManager/src/V1/ThirdPartyDataDeclarationTypeEnum/ThirdPartyDataDeclarationType.php b/AdsAdManager/src/V1/ThirdPartyDataDeclarationTypeEnum/ThirdPartyDataDeclarationType.php new file mode 100644 index 000000000000..a4449de57e1c --- /dev/null +++ b/AdsAdManager/src/V1/ThirdPartyDataDeclarationTypeEnum/ThirdPartyDataDeclarationType.php @@ -0,0 +1,62 @@ +google.ads.admanager.v1.ThirdPartyDataDeclarationTypeEnum.ThirdPartyDataDeclarationType + */ +class ThirdPartyDataDeclarationType +{ + /** + * Default value. This value is unused. + * + * Generated from protobuf enum THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED = 0; + */ + const THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED = 0; + /** + * There is a set of ThirdPartyCompanies associated with this entity. + * + * Generated from protobuf enum DECLARED = 1; + */ + const DECLARED = 1; + /** + * There are no companies associated. Functionally the same as DECLARED, + * combined with an empty company list. + * + * Generated from protobuf enum NONE = 2; + */ + const NONE = 2; + + private static $valueToName = [ + self::THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED => 'THIRD_PARTY_DATA_DECLARATION_TYPE_UNSPECIFIED', + self::DECLARED => 'DECLARED', + self::NONE => 'NONE', + ]; + + public static function name($value) + { + if (!isset(self::$valueToName[$value])) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no name defined for value %s', __CLASS__, $value)); + } + return self::$valueToName[$value]; + } + + + public static function value($name) + { + $const = __CLASS__ . '::' . strtoupper($name); + if (!defined($const)) { + throw new UnexpectedValueException(sprintf( + 'Enum %s has no value defined for name %s', __CLASS__, $name)); + } + return constant($const); + } +} + diff --git a/AdsAdManager/src/V1/UpdateChildPublisherRequest.php b/AdsAdManager/src/V1/UpdateChildPublisherRequest.php new file mode 100644 index 000000000000..b26526110f06 --- /dev/null +++ b/AdsAdManager/src/V1/UpdateChildPublisherRequest.php @@ -0,0 +1,157 @@ +google.ads.admanager.v1.UpdateChildPublisherRequest + */ +class UpdateChildPublisherRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * update. + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s `name` is + * used to identify the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.ChildPublisher child_publisher = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $child_publisher = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\ChildPublisher $childPublisher Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * update. + * + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s `name` is + * used to identify the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateChildPublisherRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\ChildPublisher $childPublisher, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setChildPublisher($childPublisher) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ChildPublisher $child_publisher + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * update. + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s `name` is + * used to identify the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ChildPublisherService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * update. + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s `name` is + * used to identify the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.ChildPublisher child_publisher = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ChildPublisher|null + */ + public function getChildPublisher() + { + return $this->child_publisher; + } + + public function hasChildPublisher() + { + return isset($this->child_publisher); + } + + public function clearChildPublisher() + { + unset($this->child_publisher); + } + + /** + * Required. The [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to + * update. + * The [ChildPublisher][google.ads.admanager.v1.ChildPublisher]'s `name` is + * used to identify the + * [ChildPublisher][google.ads.admanager.v1.ChildPublisher] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.ChildPublisher child_publisher = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ChildPublisher $var + * @return $this + */ + public function setChildPublisher($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ChildPublisher::class); + $this->child_publisher = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/UpdateCompanyRequest.php b/AdsAdManager/src/V1/UpdateCompanyRequest.php new file mode 100644 index 000000000000..8f41c78f0f48 --- /dev/null +++ b/AdsAdManager/src/V1/UpdateCompanyRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdateCompanyRequest + */ +class UpdateCompanyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [Company][google.ads.admanager.v1.Company] to update. + * The [Company][google.ads.admanager.v1.Company]'s `name` is used to identify + * the [Company][google.ads.admanager.v1.Company] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Company company = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $company = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Company $company Required. The [Company][google.ads.admanager.v1.Company] to update. + * + * The [Company][google.ads.admanager.v1.Company]'s `name` is used to identify + * the [Company][google.ads.admanager.v1.Company] to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateCompanyRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Company $company, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCompany($company) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Company $company + * Required. The [Company][google.ads.admanager.v1.Company] to update. + * The [Company][google.ads.admanager.v1.Company]'s `name` is used to identify + * the [Company][google.ads.admanager.v1.Company] to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CompanyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] to update. + * The [Company][google.ads.admanager.v1.Company]'s `name` is used to identify + * the [Company][google.ads.admanager.v1.Company] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Company company = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Company|null + */ + public function getCompany() + { + return $this->company; + } + + public function hasCompany() + { + return isset($this->company); + } + + public function clearCompany() + { + unset($this->company); + } + + /** + * Required. The [Company][google.ads.admanager.v1.Company] to update. + * The [Company][google.ads.admanager.v1.Company]'s `name` is used to identify + * the [Company][google.ads.admanager.v1.Company] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Company company = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Company $var + * @return $this + */ + public function setCompany($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Company::class); + $this->company = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/UpdateCreativeWrapperRequest.php b/AdsAdManager/src/V1/UpdateCreativeWrapperRequest.php new file mode 100644 index 000000000000..516ed0db24b3 --- /dev/null +++ b/AdsAdManager/src/V1/UpdateCreativeWrapperRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdateCreativeWrapperRequest + */ +class UpdateCreativeWrapperRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `CreativeWrapper` to update. + * The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + * update. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeWrapper creative_wrapper = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $creative_wrapper = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\CreativeWrapper $creativeWrapper Required. The `CreativeWrapper` to update. + * + * The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + * update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateCreativeWrapperRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\CreativeWrapper $creativeWrapper, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setCreativeWrapper($creativeWrapper) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\CreativeWrapper $creative_wrapper + * Required. The `CreativeWrapper` to update. + * The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + * update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\CreativeWrapperService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `CreativeWrapper` to update. + * The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + * update. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeWrapper creative_wrapper = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\CreativeWrapper|null + */ + public function getCreativeWrapper() + { + return $this->creative_wrapper; + } + + public function hasCreativeWrapper() + { + return isset($this->creative_wrapper); + } + + public function clearCreativeWrapper() + { + unset($this->creative_wrapper); + } + + /** + * Required. The `CreativeWrapper` to update. + * The `CreativeWrapper`'s `name` is used to identify the `CreativeWrapper` to + * update. + * + * Generated from protobuf field .google.ads.admanager.v1.CreativeWrapper creative_wrapper = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\CreativeWrapper $var + * @return $this + */ + public function setCreativeWrapper($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\CreativeWrapper::class); + $this->creative_wrapper = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/UpdateDaiAuthenticationKeyRequest.php b/AdsAdManager/src/V1/UpdateDaiAuthenticationKeyRequest.php new file mode 100644 index 000000000000..a8df0b986d04 --- /dev/null +++ b/AdsAdManager/src/V1/UpdateDaiAuthenticationKeyRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdateDaiAuthenticationKeyRequest + */ +class UpdateDaiAuthenticationKeyRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `DaiAuthenticationKey` to update. + * The `DaiAuthenticationKey`'s `name` is used to identify the + * `DaiAuthenticationKey` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_key = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dai_authentication_key = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey $daiAuthenticationKey Required. The `DaiAuthenticationKey` to update. + * + * The `DaiAuthenticationKey`'s `name` is used to identify the + * `DaiAuthenticationKey` to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateDaiAuthenticationKeyRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\DaiAuthenticationKey $daiAuthenticationKey, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDaiAuthenticationKey($daiAuthenticationKey) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiAuthenticationKey $dai_authentication_key + * Required. The `DaiAuthenticationKey` to update. + * The `DaiAuthenticationKey`'s `name` is used to identify the + * `DaiAuthenticationKey` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiAuthenticationKeyService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `DaiAuthenticationKey` to update. + * The `DaiAuthenticationKey`'s `name` is used to identify the + * `DaiAuthenticationKey` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\DaiAuthenticationKey|null + */ + public function getDaiAuthenticationKey() + { + return $this->dai_authentication_key; + } + + public function hasDaiAuthenticationKey() + { + return isset($this->dai_authentication_key); + } + + public function clearDaiAuthenticationKey() + { + unset($this->dai_authentication_key); + } + + /** + * Required. The `DaiAuthenticationKey` to update. + * The `DaiAuthenticationKey`'s `name` is used to identify the + * `DaiAuthenticationKey` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiAuthenticationKey dai_authentication_key = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\DaiAuthenticationKey $var + * @return $this + */ + public function setDaiAuthenticationKey($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DaiAuthenticationKey::class); + $this->dai_authentication_key = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/UpdateDaiEncodingProfileRequest.php b/AdsAdManager/src/V1/UpdateDaiEncodingProfileRequest.php new file mode 100644 index 000000000000..97056d46cf25 --- /dev/null +++ b/AdsAdManager/src/V1/UpdateDaiEncodingProfileRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdateDaiEncodingProfileRequest + */ +class UpdateDaiEncodingProfileRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The `DaiEncodingProfile` to update. + * The `DaiEncodingProfile`'s `name` is used to identify the + * `DaiEncodingProfile` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profile = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $dai_encoding_profile = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile $daiEncodingProfile Required. The `DaiEncodingProfile` to update. + * + * The `DaiEncodingProfile`'s `name` is used to identify the + * `DaiEncodingProfile` to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateDaiEncodingProfileRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\DaiEncodingProfile $daiEncodingProfile, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setDaiEncodingProfile($daiEncodingProfile) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\DaiEncodingProfile $dai_encoding_profile + * Required. The `DaiEncodingProfile` to update. + * The `DaiEncodingProfile`'s `name` is used to identify the + * `DaiEncodingProfile` to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The `DaiEncodingProfile` to update. + * The `DaiEncodingProfile`'s `name` is used to identify the + * `DaiEncodingProfile` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profile = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\DaiEncodingProfile|null + */ + public function getDaiEncodingProfile() + { + return $this->dai_encoding_profile; + } + + public function hasDaiEncodingProfile() + { + return isset($this->dai_encoding_profile); + } + + public function clearDaiEncodingProfile() + { + unset($this->dai_encoding_profile); + } + + /** + * Required. The `DaiEncodingProfile` to update. + * The `DaiEncodingProfile`'s `name` is used to identify the + * `DaiEncodingProfile` to update. + * + * Generated from protobuf field .google.ads.admanager.v1.DaiEncodingProfile dai_encoding_profile = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\DaiEncodingProfile $var + * @return $this + */ + public function setDaiEncodingProfile($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\DaiEncodingProfile::class); + $this->dai_encoding_profile = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/UpdatePartnerRequest.php b/AdsAdManager/src/V1/UpdatePartnerRequest.php new file mode 100644 index 000000000000..65b5e79a0431 --- /dev/null +++ b/AdsAdManager/src/V1/UpdatePartnerRequest.php @@ -0,0 +1,147 @@ +google.ads.admanager.v1.UpdatePartnerRequest + */ +class UpdatePartnerRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The [Partner][google.ads.admanager.v1.Partner] to update. + * The [Partner][google.ads.admanager.v1.Partner]'s `name` is used to identify + * the [Partner][google.ads.admanager.v1.Partner] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Partner partner = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $partner = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\Partner $partner Required. The [Partner][google.ads.admanager.v1.Partner] to update. + * + * The [Partner][google.ads.admanager.v1.Partner]'s `name` is used to identify + * the [Partner][google.ads.admanager.v1.Partner] to update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdatePartnerRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\Partner $partner, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setPartner($partner) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\Partner $partner + * Required. The [Partner][google.ads.admanager.v1.Partner] to update. + * The [Partner][google.ads.admanager.v1.Partner]'s `name` is used to identify + * the [Partner][google.ads.admanager.v1.Partner] to update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\PartnerService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The [Partner][google.ads.admanager.v1.Partner] to update. + * The [Partner][google.ads.admanager.v1.Partner]'s `name` is used to identify + * the [Partner][google.ads.admanager.v1.Partner] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Partner partner = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Partner|null + */ + public function getPartner() + { + return $this->partner; + } + + public function hasPartner() + { + return isset($this->partner); + } + + public function clearPartner() + { + unset($this->partner); + } + + /** + * Required. The [Partner][google.ads.admanager.v1.Partner] to update. + * The [Partner][google.ads.admanager.v1.Partner]'s `name` is used to identify + * the [Partner][google.ads.admanager.v1.Partner] to update. + * + * Generated from protobuf field .google.ads.admanager.v1.Partner partner = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Partner $var + * @return $this + */ + public function setPartner($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Partner::class); + $this->partner = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/UpdateViewabilityProviderRequest.php b/AdsAdManager/src/V1/UpdateViewabilityProviderRequest.php new file mode 100644 index 000000000000..7577af0d6cd3 --- /dev/null +++ b/AdsAdManager/src/V1/UpdateViewabilityProviderRequest.php @@ -0,0 +1,167 @@ +google.ads.admanager.v1.UpdateViewabilityProviderRequest + */ +class UpdateViewabilityProviderRequest extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]'s + * `name` is used to identify the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * + * Generated from protobuf field .google.ads.admanager.v1.ViewabilityProvider viewability_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $viewability_provider = null; + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $update_mask = null; + + /** + * @param \Google\Ads\AdManager\V1\ViewabilityProvider $viewabilityProvider Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]'s + * `name` is used to identify the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * @param \Google\Protobuf\FieldMask $updateMask Optional. The list of fields to update. + * + * @return \Google\Ads\AdManager\V1\UpdateViewabilityProviderRequest + * + * @experimental + */ + public static function build(\Google\Ads\AdManager\V1\ViewabilityProvider $viewabilityProvider, \Google\Protobuf\FieldMask $updateMask): self + { + return (new self()) + ->setViewabilityProvider($viewabilityProvider) + ->setUpdateMask($updateMask); + } + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type \Google\Ads\AdManager\V1\ViewabilityProvider $viewability_provider + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]'s + * `name` is used to identify the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * @type \Google\Protobuf\FieldMask $update_mask + * Optional. The list of fields to update. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderService::initOnce(); + parent::__construct($data); + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]'s + * `name` is used to identify the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * + * Generated from protobuf field .google.ads.admanager.v1.ViewabilityProvider viewability_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\ViewabilityProvider|null + */ + public function getViewabilityProvider() + { + return $this->viewability_provider; + } + + public function hasViewabilityProvider() + { + return isset($this->viewability_provider); + } + + public function clearViewabilityProvider() + { + unset($this->viewability_provider); + } + + /** + * Required. The + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * The [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]'s + * `name` is used to identify the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] to + * update. + * + * Generated from protobuf field .google.ads.admanager.v1.ViewabilityProvider viewability_provider = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\ViewabilityProvider $var + * @return $this + */ + public function setViewabilityProvider($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\ViewabilityProvider::class); + $this->viewability_provider = $var; + + return $this; + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return \Google\Protobuf\FieldMask|null + */ + public function getUpdateMask() + { + return $this->update_mask; + } + + public function hasUpdateMask() + { + return isset($this->update_mask); + } + + public function clearUpdateMask() + { + unset($this->update_mask); + } + + /** + * Optional. The list of fields to update. + * + * Generated from protobuf field .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param \Google\Protobuf\FieldMask $var + * @return $this + */ + public function setUpdateMask($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\FieldMask::class); + $this->update_mask = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/VideoSettings.php b/AdsAdManager/src/V1/VideoSettings.php new file mode 100644 index 000000000000..a442780e8db1 --- /dev/null +++ b/AdsAdManager/src/V1/VideoSettings.php @@ -0,0 +1,217 @@ +google.ads.admanager.v1.VideoSettings + */ +class VideoSettings extends \Google\Protobuf\Internal\Message +{ + /** + * Required. The RFC6381 codec string of the video. + * + * Generated from protobuf field optional string codec = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $codec = null; + /** + * Required. The bitrate of the video, in bits per second. This value must be + * between 32kbps and 250 Mbps. + * + * Generated from protobuf field optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $bitrate = null; + /** + * Required. The frames per second of the video. This value will be truncated + * to three decimal places. + * + * Generated from protobuf field optional double frames_per_second = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $frames_per_second = null; + /** + * Required. The resolution of the video, in pixels. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Size resolution = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $resolution = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $codec + * Required. The RFC6381 codec string of the video. + * @type int|string $bitrate + * Required. The bitrate of the video, in bits per second. This value must be + * between 32kbps and 250 Mbps. + * @type float $frames_per_second + * Required. The frames per second of the video. This value will be truncated + * to three decimal places. + * @type \Google\Ads\AdManager\V1\Size $resolution + * Required. The resolution of the video, in pixels. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\DaiEncodingProfileMessages::initOnce(); + parent::__construct($data); + } + + /** + * Required. The RFC6381 codec string of the video. + * + * Generated from protobuf field optional string codec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getCodec() + { + return isset($this->codec) ? $this->codec : ''; + } + + public function hasCodec() + { + return isset($this->codec); + } + + public function clearCodec() + { + unset($this->codec); + } + + /** + * Required. The RFC6381 codec string of the video. + * + * Generated from protobuf field optional string codec = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setCodec($var) + { + GPBUtil::checkString($var, True); + $this->codec = $var; + + return $this; + } + + /** + * Required. The bitrate of the video, in bits per second. This value must be + * between 32kbps and 250 Mbps. + * + * Generated from protobuf field optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED]; + * @return int|string + */ + public function getBitrate() + { + return isset($this->bitrate) ? $this->bitrate : 0; + } + + public function hasBitrate() + { + return isset($this->bitrate); + } + + public function clearBitrate() + { + unset($this->bitrate); + } + + /** + * Required. The bitrate of the video, in bits per second. This value must be + * between 32kbps and 250 Mbps. + * + * Generated from protobuf field optional int64 bitrate = 2 [(.google.api.field_behavior) = REQUIRED]; + * @param int|string $var + * @return $this + */ + public function setBitrate($var) + { + GPBUtil::checkInt64($var); + $this->bitrate = $var; + + return $this; + } + + /** + * Required. The frames per second of the video. This value will be truncated + * to three decimal places. + * + * Generated from protobuf field optional double frames_per_second = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return float + */ + public function getFramesPerSecond() + { + return isset($this->frames_per_second) ? $this->frames_per_second : 0.0; + } + + public function hasFramesPerSecond() + { + return isset($this->frames_per_second); + } + + public function clearFramesPerSecond() + { + unset($this->frames_per_second); + } + + /** + * Required. The frames per second of the video. This value will be truncated + * to three decimal places. + * + * Generated from protobuf field optional double frames_per_second = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param float $var + * @return $this + */ + public function setFramesPerSecond($var) + { + GPBUtil::checkDouble($var); + $this->frames_per_second = $var; + + return $this; + } + + /** + * Required. The resolution of the video, in pixels. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Size resolution = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return \Google\Ads\AdManager\V1\Size|null + */ + public function getResolution() + { + return $this->resolution; + } + + public function hasResolution() + { + return isset($this->resolution); + } + + public function clearResolution() + { + unset($this->resolution); + } + + /** + * Required. The resolution of the video, in pixels. + * + * Generated from protobuf field optional .google.ads.admanager.v1.Size resolution = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param \Google\Ads\AdManager\V1\Size $var + * @return $this + */ + public function setResolution($var) + { + GPBUtil::checkMessage($var, \Google\Ads\AdManager\V1\Size::class); + $this->resolution = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/VideoTrackingUrl.php b/AdsAdManager/src/V1/VideoTrackingUrl.php new file mode 100644 index 000000000000..bff9cdb75bac --- /dev/null +++ b/AdsAdManager/src/V1/VideoTrackingUrl.php @@ -0,0 +1,103 @@ +google.ads.admanager.v1.VideoTrackingUrl + */ +class VideoTrackingUrl extends \Google\Protobuf\Internal\Message +{ + /** + * Required. All possible tracking event types. + * + * Generated from protobuf field .google.ads.admanager.v1.ConversionEventEnum.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $conversion_event = 0; + /** + * Optional. A URL that should be pinged for the conversion event. + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $url = ''; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type int $conversion_event + * Required. All possible tracking event types. + * @type string $url + * Optional. A URL that should be pinged for the conversion event. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\VideoTrackingUrl::initOnce(); + parent::__construct($data); + } + + /** + * Required. All possible tracking event types. + * + * Generated from protobuf field .google.ads.admanager.v1.ConversionEventEnum.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @return int + */ + public function getConversionEvent() + { + return $this->conversion_event; + } + + /** + * Required. All possible tracking event types. + * + * Generated from protobuf field .google.ads.admanager.v1.ConversionEventEnum.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * @param int $var + * @return $this + */ + public function setConversionEvent($var) + { + GPBUtil::checkEnum($var, \Google\Ads\AdManager\V1\ConversionEventEnum\ConversionEvent::class); + $this->conversion_event = $var; + + return $this; + } + + /** + * Optional. A URL that should be pinged for the conversion event. + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getUrl() + { + return $this->url; + } + + /** + * Optional. A URL that should be pinged for the conversion event. + * + * Generated from protobuf field string url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setUrl($var) + { + GPBUtil::checkString($var, True); + $this->url = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/ViewabilityProvider.php b/AdsAdManager/src/V1/ViewabilityProvider.php new file mode 100644 index 000000000000..302845399934 --- /dev/null +++ b/AdsAdManager/src/V1/ViewabilityProvider.php @@ -0,0 +1,751 @@ +google.ads.admanager.v1.ViewabilityProvider + */ +class ViewabilityProvider extends \Google\Protobuf\Internal\Message +{ + /** + * Identifier. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + */ + protected $name = ''; + /** + * Required. The display name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $display_name = null; + /** + * Required. The key for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string vendor_key = 4 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $vendor_key = null; + /** + * Required. The URL that hosts the verification script for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string verification_script_url = 5 [(.google.api.field_behavior) = REQUIRED]; + */ + protected $verification_script_url = null; + /** + * Optional. The URL parameters that will be passed to the verification + * script. + * + * Generated from protobuf field optional string verification_script_url_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $verification_script_url_parameters = null; + /** + * Optional. The URL that should be pinged if the verification script cannot + * be run. + * + * Generated from protobuf field optional string rejection_tracker_url = 7 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $rejection_tracker_url = null; + /** + * Optional. The address of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string address = 8 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $address = null; + /** + * Optional. The email of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string email = 9 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $email = null; + /** + * Optional. The fax number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string fax = 10 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $fax = null; + /** + * Optional. The phone number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string phone = 11 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $phone = null; + /** + * Optional. The external ID of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string external_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $external_id = null; + /** + * Optional. Comment about the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string comment = 13 [(.google.api.field_behavior) = OPTIONAL]; + */ + protected $comment = null; + /** + * Optional. The resource name of primary Contact of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + protected $primary_contact = null; + /** + * Optional. The resource names of Teams that are directly associated with the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + */ + private $applied_teams; + /** + * Output only. The time the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] was last + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + protected $update_time = null; + + /** + * Constructor. + * + * @param array $data { + * Optional. Data for populating the Message object. + * + * @type string $name + * Identifier. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * @type string $display_name + * Required. The display name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $vendor_key + * Required. The key for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $verification_script_url + * Required. The URL that hosts the verification script for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $verification_script_url_parameters + * Optional. The URL parameters that will be passed to the verification + * script. + * @type string $rejection_tracker_url + * Optional. The URL that should be pinged if the verification script cannot + * be run. + * @type string $address + * Optional. The address of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $email + * Optional. The email of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $fax + * Optional. The fax number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $phone + * Optional. The phone number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $external_id + * Optional. The external ID of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $comment + * Optional. Comment about the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * @type string $primary_contact + * Optional. The resource name of primary Contact of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * @type string[] $applied_teams + * Optional. The resource names of Teams that are directly associated with the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * Format: "networks/{network_code}/teams/{team_id}" + * @type \Google\Protobuf\Timestamp $update_time + * Output only. The time the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] was last + * updated. + * } + */ + public function __construct($data = NULL) { + \GPBMetadata\Google\Ads\Admanager\V1\ViewabilityProviderMessages::initOnce(); + parent::__construct($data); + } + + /** + * Identifier. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @return string + */ + public function getName() + { + return $this->name; + } + + /** + * Identifier. The resource name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * `networks/{network_code}/viewabilityProviders/{viewability_provider}` + * + * Generated from protobuf field string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * @param string $var + * @return $this + */ + public function setName($var) + { + GPBUtil::checkString($var, True); + $this->name = $var; + + return $this; + } + + /** + * Required. The display name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getDisplayName() + { + return isset($this->display_name) ? $this->display_name : ''; + } + + public function hasDisplayName() + { + return isset($this->display_name); + } + + public function clearDisplayName() + { + unset($this->display_name); + } + + /** + * Required. The display name of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setDisplayName($var) + { + GPBUtil::checkString($var, True); + $this->display_name = $var; + + return $this; + } + + /** + * Required. The key for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string vendor_key = 4 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVendorKey() + { + return isset($this->vendor_key) ? $this->vendor_key : ''; + } + + public function hasVendorKey() + { + return isset($this->vendor_key); + } + + public function clearVendorKey() + { + unset($this->vendor_key); + } + + /** + * Required. The key for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string vendor_key = 4 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVendorKey($var) + { + GPBUtil::checkString($var, True); + $this->vendor_key = $var; + + return $this; + } + + /** + * Required. The URL that hosts the verification script for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string verification_script_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * @return string + */ + public function getVerificationScriptUrl() + { + return isset($this->verification_script_url) ? $this->verification_script_url : ''; + } + + public function hasVerificationScriptUrl() + { + return isset($this->verification_script_url); + } + + public function clearVerificationScriptUrl() + { + unset($this->verification_script_url); + } + + /** + * Required. The URL that hosts the verification script for the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string verification_script_url = 5 [(.google.api.field_behavior) = REQUIRED]; + * @param string $var + * @return $this + */ + public function setVerificationScriptUrl($var) + { + GPBUtil::checkString($var, True); + $this->verification_script_url = $var; + + return $this; + } + + /** + * Optional. The URL parameters that will be passed to the verification + * script. + * + * Generated from protobuf field optional string verification_script_url_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getVerificationScriptUrlParameters() + { + return isset($this->verification_script_url_parameters) ? $this->verification_script_url_parameters : ''; + } + + public function hasVerificationScriptUrlParameters() + { + return isset($this->verification_script_url_parameters); + } + + public function clearVerificationScriptUrlParameters() + { + unset($this->verification_script_url_parameters); + } + + /** + * Optional. The URL parameters that will be passed to the verification + * script. + * + * Generated from protobuf field optional string verification_script_url_parameters = 6 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setVerificationScriptUrlParameters($var) + { + GPBUtil::checkString($var, True); + $this->verification_script_url_parameters = $var; + + return $this; + } + + /** + * Optional. The URL that should be pinged if the verification script cannot + * be run. + * + * Generated from protobuf field optional string rejection_tracker_url = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getRejectionTrackerUrl() + { + return isset($this->rejection_tracker_url) ? $this->rejection_tracker_url : ''; + } + + public function hasRejectionTrackerUrl() + { + return isset($this->rejection_tracker_url); + } + + public function clearRejectionTrackerUrl() + { + unset($this->rejection_tracker_url); + } + + /** + * Optional. The URL that should be pinged if the verification script cannot + * be run. + * + * Generated from protobuf field optional string rejection_tracker_url = 7 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setRejectionTrackerUrl($var) + { + GPBUtil::checkString($var, True); + $this->rejection_tracker_url = $var; + + return $this; + } + + /** + * Optional. The address of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string address = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getAddress() + { + return isset($this->address) ? $this->address : ''; + } + + public function hasAddress() + { + return isset($this->address); + } + + public function clearAddress() + { + unset($this->address); + } + + /** + * Optional. The address of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string address = 8 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setAddress($var) + { + GPBUtil::checkString($var, True); + $this->address = $var; + + return $this; + } + + /** + * Optional. The email of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string email = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getEmail() + { + return isset($this->email) ? $this->email : ''; + } + + public function hasEmail() + { + return isset($this->email); + } + + public function clearEmail() + { + unset($this->email); + } + + /** + * Optional. The email of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string email = 9 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setEmail($var) + { + GPBUtil::checkString($var, True); + $this->email = $var; + + return $this; + } + + /** + * Optional. The fax number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string fax = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getFax() + { + return isset($this->fax) ? $this->fax : ''; + } + + public function hasFax() + { + return isset($this->fax); + } + + public function clearFax() + { + unset($this->fax); + } + + /** + * Optional. The fax number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string fax = 10 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setFax($var) + { + GPBUtil::checkString($var, True); + $this->fax = $var; + + return $this; + } + + /** + * Optional. The phone number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string phone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getPhone() + { + return isset($this->phone) ? $this->phone : ''; + } + + public function hasPhone() + { + return isset($this->phone); + } + + public function clearPhone() + { + unset($this->phone); + } + + /** + * Optional. The phone number of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string phone = 11 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setPhone($var) + { + GPBUtil::checkString($var, True); + $this->phone = $var; + + return $this; + } + + /** + * Optional. The external ID of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string external_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getExternalId() + { + return isset($this->external_id) ? $this->external_id : ''; + } + + public function hasExternalId() + { + return isset($this->external_id); + } + + public function clearExternalId() + { + unset($this->external_id); + } + + /** + * Optional. The external ID of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string external_id = 12 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setExternalId($var) + { + GPBUtil::checkString($var, True); + $this->external_id = $var; + + return $this; + } + + /** + * Optional. Comment about the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string comment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @return string + */ + public function getComment() + { + return isset($this->comment) ? $this->comment : ''; + } + + public function hasComment() + { + return isset($this->comment); + } + + public function clearComment() + { + unset($this->comment); + } + + /** + * Optional. Comment about the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * + * Generated from protobuf field optional string comment = 13 [(.google.api.field_behavior) = OPTIONAL]; + * @param string $var + * @return $this + */ + public function setComment($var) + { + GPBUtil::checkString($var, True); + $this->comment = $var; + + return $this; + } + + /** + * Optional. The resource name of primary Contact of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return string + */ + public function getPrimaryContact() + { + return isset($this->primary_contact) ? $this->primary_contact : ''; + } + + public function hasPrimaryContact() + { + return isset($this->primary_contact); + } + + public function clearPrimaryContact() + { + unset($this->primary_contact); + } + + /** + * Optional. The resource name of primary Contact of the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. Format: + * "networks/{network_code}/contacts/{contact_id}" + * + * Generated from protobuf field optional string primary_contact = 14 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string $var + * @return $this + */ + public function setPrimaryContact($var) + { + GPBUtil::checkString($var, True); + $this->primary_contact = $var; + + return $this; + } + + /** + * Optional. The resource names of Teams that are directly associated with the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @return RepeatedField + */ + public function getAppliedTeams() + { + return $this->applied_teams; + } + + /** + * Optional. The resource names of Teams that are directly associated with the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider]. + * Format: "networks/{network_code}/teams/{team_id}" + * + * Generated from protobuf field repeated string applied_teams = 16 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { + * @param string[] $var + * @return $this + */ + public function setAppliedTeams($var) + { + $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); + $this->applied_teams = $arr; + + return $this; + } + + /** + * Output only. The time the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] was last + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @return \Google\Protobuf\Timestamp|null + */ + public function getUpdateTime() + { + return $this->update_time; + } + + public function hasUpdateTime() + { + return isset($this->update_time); + } + + public function clearUpdateTime() + { + unset($this->update_time); + } + + /** + * Output only. The time the + * [ViewabilityProvider][google.ads.admanager.v1.ViewabilityProvider] was last + * updated. + * + * Generated from protobuf field .google.protobuf.Timestamp update_time = 18 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * @param \Google\Protobuf\Timestamp $var + * @return $this + */ + public function setUpdateTime($var) + { + GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); + $this->update_time = $var; + + return $this; + } + +} + diff --git a/AdsAdManager/src/V1/gapic_metadata.json b/AdsAdManager/src/V1/gapic_metadata.json index ffc6b66b1d04..ff915cfe6aea 100644 --- a/AdsAdManager/src/V1/gapic_metadata.json +++ b/AdsAdManager/src/V1/gapic_metadata.json @@ -389,6 +389,45 @@ } } }, + "ChildPublisherService": { + "clients": { + "grpc": { + "libraryClient": "ChildPublisherServiceClient", + "rpcs": { + "BatchCreateChildPublishers": { + "methods": [ + "batchCreateChildPublishers" + ] + }, + "BatchUpdateChildPublishers": { + "methods": [ + "batchUpdateChildPublishers" + ] + }, + "CreateChildPublisher": { + "methods": [ + "createChildPublisher" + ] + }, + "GetChildPublisher": { + "methods": [ + "getChildPublisher" + ] + }, + "ListChildPublishers": { + "methods": [ + "listChildPublishers" + ] + }, + "UpdateChildPublisher": { + "methods": [ + "updateChildPublisher" + ] + } + } + } + } + }, "CmsMetadataKeyService": { "clients": { "grpc": { @@ -452,6 +491,21 @@ "grpc": { "libraryClient": "CompanyServiceClient", "rpcs": { + "BatchCreateCompanies": { + "methods": [ + "batchCreateCompanies" + ] + }, + "BatchUpdateCompanies": { + "methods": [ + "batchUpdateCompanies" + ] + }, + "CreateCompany": { + "methods": [ + "createCompany" + ] + }, "GetCompany": { "methods": [ "getCompany" @@ -461,6 +515,11 @@ "methods": [ "listCompanies" ] + }, + "UpdateCompany": { + "methods": [ + "updateCompany" + ] } } } @@ -620,6 +679,55 @@ } } }, + "CreativeWrapperService": { + "clients": { + "grpc": { + "libraryClient": "CreativeWrapperServiceClient", + "rpcs": { + "BatchActivateCreativeWrappers": { + "methods": [ + "batchActivateCreativeWrappers" + ] + }, + "BatchCreateCreativeWrappers": { + "methods": [ + "batchCreateCreativeWrappers" + ] + }, + "BatchDeactivateCreativeWrappers": { + "methods": [ + "batchDeactivateCreativeWrappers" + ] + }, + "BatchUpdateCreativeWrappers": { + "methods": [ + "batchUpdateCreativeWrappers" + ] + }, + "CreateCreativeWrapper": { + "methods": [ + "createCreativeWrapper" + ] + }, + "GetCreativeWrapper": { + "methods": [ + "getCreativeWrapper" + ] + }, + "ListCreativeWrappers": { + "methods": [ + "listCreativeWrappers" + ] + }, + "UpdateCreativeWrapper": { + "methods": [ + "updateCreativeWrapper" + ] + } + } + } + } + }, "CustomFieldService": { "clients": { "grpc": { @@ -767,6 +875,104 @@ } } }, + "DaiAuthenticationKeyService": { + "clients": { + "grpc": { + "libraryClient": "DaiAuthenticationKeyServiceClient", + "rpcs": { + "BatchActivateDaiAuthenticationKeys": { + "methods": [ + "batchActivateDaiAuthenticationKeys" + ] + }, + "BatchCreateDaiAuthenticationKeys": { + "methods": [ + "batchCreateDaiAuthenticationKeys" + ] + }, + "BatchDeactivateDaiAuthenticationKeys": { + "methods": [ + "batchDeactivateDaiAuthenticationKeys" + ] + }, + "BatchUpdateDaiAuthenticationKeys": { + "methods": [ + "batchUpdateDaiAuthenticationKeys" + ] + }, + "CreateDaiAuthenticationKey": { + "methods": [ + "createDaiAuthenticationKey" + ] + }, + "GetDaiAuthenticationKey": { + "methods": [ + "getDaiAuthenticationKey" + ] + }, + "ListDaiAuthenticationKeys": { + "methods": [ + "listDaiAuthenticationKeys" + ] + }, + "UpdateDaiAuthenticationKey": { + "methods": [ + "updateDaiAuthenticationKey" + ] + } + } + } + } + }, + "DaiEncodingProfileService": { + "clients": { + "grpc": { + "libraryClient": "DaiEncodingProfileServiceClient", + "rpcs": { + "BatchActivateDaiEncodingProfiles": { + "methods": [ + "batchActivateDaiEncodingProfiles" + ] + }, + "BatchArchiveDaiEncodingProfiles": { + "methods": [ + "batchArchiveDaiEncodingProfiles" + ] + }, + "BatchCreateDaiEncodingProfiles": { + "methods": [ + "batchCreateDaiEncodingProfiles" + ] + }, + "BatchUpdateDaiEncodingProfiles": { + "methods": [ + "batchUpdateDaiEncodingProfiles" + ] + }, + "CreateDaiEncodingProfile": { + "methods": [ + "createDaiEncodingProfile" + ] + }, + "GetDaiEncodingProfile": { + "methods": [ + "getDaiEncodingProfile" + ] + }, + "ListDaiEncodingProfiles": { + "methods": [ + "listDaiEncodingProfiles" + ] + }, + "UpdateDaiEncodingProfile": { + "methods": [ + "updateDaiEncodingProfile" + ] + } + } + } + } + }, "DeviceCapabilityService": { "clients": { "grpc": { @@ -1270,6 +1476,35 @@ } } }, + "PartnerService": { + "clients": { + "grpc": { + "libraryClient": "PartnerServiceClient", + "rpcs": { + "BatchUpdatePartners": { + "methods": [ + "batchUpdatePartners" + ] + }, + "GetPartner": { + "methods": [ + "getPartner" + ] + }, + "ListPartners": { + "methods": [ + "listPartners" + ] + }, + "UpdatePartner": { + "methods": [ + "updatePartner" + ] + } + } + } + } + }, "PlacementService": { "clients": { "grpc": { @@ -1744,6 +1979,45 @@ } } } + }, + "ViewabilityProviderService": { + "clients": { + "grpc": { + "libraryClient": "ViewabilityProviderServiceClient", + "rpcs": { + "BatchCreateViewabilityProviders": { + "methods": [ + "batchCreateViewabilityProviders" + ] + }, + "BatchUpdateViewabilityProviders": { + "methods": [ + "batchUpdateViewabilityProviders" + ] + }, + "CreateViewabilityProvider": { + "methods": [ + "createViewabilityProvider" + ] + }, + "GetViewabilityProvider": { + "methods": [ + "getViewabilityProvider" + ] + }, + "ListViewabilityProviders": { + "methods": [ + "listViewabilityProviders" + ] + }, + "UpdateViewabilityProvider": { + "methods": [ + "updateViewabilityProvider" + ] + } + } + } + } } } } \ No newline at end of file diff --git a/AdsAdManager/src/V1/resources/child_publisher_service_client_config.json b/AdsAdManager/src/V1/resources/child_publisher_service_client_config.json new file mode 100644 index 000000000000..f76232834e32 --- /dev/null +++ b/AdsAdManager/src/V1/resources/child_publisher_service_client_config.json @@ -0,0 +1,52 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ChildPublisherService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchCreateChildPublishers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateChildPublishers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateChildPublisher": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetChildPublisher": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListChildPublishers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateChildPublisher": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/AdsAdManager/src/V1/resources/child_publisher_service_descriptor_config.php b/AdsAdManager/src/V1/resources/child_publisher_service_descriptor_config.php new file mode 100644 index 000000000000..e16474bcb476 --- /dev/null +++ b/AdsAdManager/src/V1/resources/child_publisher_service_descriptor_config.php @@ -0,0 +1,113 @@ + [ + 'google.ads.admanager.v1.ChildPublisherService' => [ + 'BatchCreateChildPublishers' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateChildPublishersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateChildPublishers' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateChildPublishersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChildPublisher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ChildPublisher', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetChildPublisher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ChildPublisher', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListChildPublishers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getChildPublishers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListChildPublishersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateChildPublisher' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ChildPublisher', + 'headerParams' => [ + [ + 'keyName' => 'child_publisher.name', + 'fieldAccessors' => [ + 'getChildPublisher', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'childPublisher' => 'networks/{network_code}/childPublishers/{child_publisher}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/AdsAdManager/src/V1/resources/child_publisher_service_rest_client_config.php b/AdsAdManager/src/V1/resources/child_publisher_service_rest_client_config.php new file mode 100644 index 000000000000..009fb77a94e5 --- /dev/null +++ b/AdsAdManager/src/V1/resources/child_publisher_service_rest_client_config.php @@ -0,0 +1,124 @@ + [ + 'google.ads.admanager.v1.ChildPublisherService' => [ + 'BatchCreateChildPublishers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/childPublishers:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateChildPublishers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/childPublishers:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateChildPublisher' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/childPublishers', + 'body' => 'child_publisher', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetChildPublisher' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/childPublishers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListChildPublishers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/childPublishers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateChildPublisher' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{child_publisher.name=networks/*/childPublishers/*}', + 'body' => 'child_publisher', + 'placeholders' => [ + 'child_publisher.name' => [ + 'getters' => [ + 'getChildPublisher', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/AdsAdManager/src/V1/resources/company_service_client_config.json b/AdsAdManager/src/V1/resources/company_service_client_config.json index 00bdee6fd628..99ca2a14e2a9 100644 --- a/AdsAdManager/src/V1/resources/company_service_client_config.json +++ b/AdsAdManager/src/V1/resources/company_service_client_config.json @@ -16,6 +16,21 @@ } }, "methods": { + "BatchCreateCompanies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateCompanies": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCompany": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, "GetCompany": { "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", @@ -25,6 +40,11 @@ "timeout_millis": 60000, "retry_codes_name": "no_retry_codes", "retry_params_name": "no_retry_params" + }, + "UpdateCompany": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" } } } diff --git a/AdsAdManager/src/V1/resources/company_service_descriptor_config.php b/AdsAdManager/src/V1/resources/company_service_descriptor_config.php index 702b48d1cefb..13aa58149f02 100644 --- a/AdsAdManager/src/V1/resources/company_service_descriptor_config.php +++ b/AdsAdManager/src/V1/resources/company_service_descriptor_config.php @@ -23,6 +23,42 @@ return [ 'interfaces' => [ 'google.ads.admanager.v1.CompanyService' => [ + 'BatchCreateCompanies' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateCompaniesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCompanies' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateCompaniesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCompany' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Company', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], 'GetCompany' => [ 'callType' => \Google\ApiCore\Call::UNARY_CALL, 'responseType' => 'Google\Ads\AdManager\V1\Company', @@ -55,9 +91,25 @@ ], ], ], + 'UpdateCompany' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Company', + 'headerParams' => [ + [ + 'keyName' => 'company.name', + 'fieldAccessors' => [ + 'getCompany', + 'getName', + ], + ], + ], + ], 'templateMap' => [ 'company' => 'networks/{network_code}/companies/{company}', + 'contact' => 'networks/{network_code}/contacts/{contact}', + 'label' => 'networks/{network_code}/labels/{label}', 'network' => 'networks/{network_code}', + 'team' => 'networks/{network_code}/teams/{team}', ], ], ], diff --git a/AdsAdManager/src/V1/resources/company_service_rest_client_config.php b/AdsAdManager/src/V1/resources/company_service_rest_client_config.php index cf556605285a..1151d3cea945 100644 --- a/AdsAdManager/src/V1/resources/company_service_rest_client_config.php +++ b/AdsAdManager/src/V1/resources/company_service_rest_client_config.php @@ -23,6 +23,42 @@ return [ 'interfaces' => [ 'google.ads.admanager.v1.CompanyService' => [ + 'BatchCreateCompanies' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/companies:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCompanies' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/companies:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCompany' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/companies', + 'body' => 'company', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], 'GetCompany' => [ 'method' => 'get', 'uriTemplate' => '/v1/{name=networks/*/companies/*}', @@ -45,6 +81,19 @@ ], ], ], + 'UpdateCompany' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{company.name=networks/*/companies/*}', + 'body' => 'company', + 'placeholders' => [ + 'company.name' => [ + 'getters' => [ + 'getCompany', + 'getName', + ], + ], + ], + ], ], 'google.longrunning.Operations' => [ 'CancelOperation' => [ diff --git a/AdsAdManager/src/V1/resources/creative_wrapper_service_client_config.json b/AdsAdManager/src/V1/resources/creative_wrapper_service_client_config.json new file mode 100644 index 000000000000..90b86ac5f514 --- /dev/null +++ b/AdsAdManager/src/V1/resources/creative_wrapper_service_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.ads.admanager.v1.CreativeWrapperService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchActivateCreativeWrappers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreateCreativeWrappers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivateCreativeWrappers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateCreativeWrappers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateCreativeWrapper": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetCreativeWrapper": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListCreativeWrappers": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateCreativeWrapper": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/AdsAdManager/src/V1/resources/creative_wrapper_service_descriptor_config.php b/AdsAdManager/src/V1/resources/creative_wrapper_service_descriptor_config.php new file mode 100644 index 000000000000..2341d986d872 --- /dev/null +++ b/AdsAdManager/src/V1/resources/creative_wrapper_service_descriptor_config.php @@ -0,0 +1,140 @@ + [ + 'google.ads.admanager.v1.CreativeWrapperService' => [ + 'BatchActivateCreativeWrappers' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateCreativeWrappersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateCreativeWrappers' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateCreativeWrappersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateCreativeWrappers' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateCreativeWrappersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCreativeWrappers' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateCreativeWrappersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCreativeWrapper' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CreativeWrapper', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetCreativeWrapper' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CreativeWrapper', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListCreativeWrappers' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getCreativeWrappers', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListCreativeWrappersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateCreativeWrapper' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\CreativeWrapper', + 'headerParams' => [ + [ + 'keyName' => 'creative_wrapper.name', + 'fieldAccessors' => [ + 'getCreativeWrapper', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'creative' => 'networks/{network_code}/creatives/{creative}', + 'creativeWrapper' => 'networks/{network_code}/creativeWrappers/{creative_wrapper}', + 'label' => 'networks/{network_code}/labels/{label}', + 'network' => 'networks/{network_code}', + 'thirdPartyCompany' => 'networks/{network_code}/thirdPartyCompanies/{third_party_company}', + ], + ], + ], +]; diff --git a/AdsAdManager/src/V1/resources/creative_wrapper_service_rest_client_config.php b/AdsAdManager/src/V1/resources/creative_wrapper_service_rest_client_config.php new file mode 100644 index 000000000000..2578dc680a9b --- /dev/null +++ b/AdsAdManager/src/V1/resources/creative_wrapper_service_rest_client_config.php @@ -0,0 +1,148 @@ + [ + 'google.ads.admanager.v1.CreativeWrapperService' => [ + 'BatchActivateCreativeWrappers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeWrappers:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateCreativeWrappers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeWrappers:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateCreativeWrappers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeWrappers:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateCreativeWrappers' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeWrappers:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateCreativeWrapper' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeWrappers', + 'body' => 'creative_wrapper', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetCreativeWrapper' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/creativeWrappers/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListCreativeWrappers' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/creativeWrappers', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateCreativeWrapper' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{creative_wrapper.name=networks/*/creativeWrappers/*}', + 'body' => 'creative_wrapper', + 'placeholders' => [ + 'creative_wrapper.name' => [ + 'getters' => [ + 'getCreativeWrapper', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/AdsAdManager/src/V1/resources/dai_authentication_key_service_client_config.json b/AdsAdManager/src/V1/resources/dai_authentication_key_service_client_config.json new file mode 100644 index 000000000000..28a4120317a7 --- /dev/null +++ b/AdsAdManager/src/V1/resources/dai_authentication_key_service_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.ads.admanager.v1.DaiAuthenticationKeyService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchActivateDaiAuthenticationKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreateDaiAuthenticationKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchDeactivateDaiAuthenticationKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateDaiAuthenticationKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDaiAuthenticationKey": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDaiAuthenticationKey": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDaiAuthenticationKeys": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDaiAuthenticationKey": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/AdsAdManager/src/V1/resources/dai_authentication_key_service_descriptor_config.php b/AdsAdManager/src/V1/resources/dai_authentication_key_service_descriptor_config.php new file mode 100644 index 000000000000..18a4c4ab8e00 --- /dev/null +++ b/AdsAdManager/src/V1/resources/dai_authentication_key_service_descriptor_config.php @@ -0,0 +1,137 @@ + [ + 'google.ads.admanager.v1.DaiAuthenticationKeyService' => [ + 'BatchActivateDaiAuthenticationKeys' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateDaiAuthenticationKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateDaiAuthenticationKeys' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateDaiAuthenticationKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateDaiAuthenticationKeys' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchDeactivateDaiAuthenticationKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateDaiAuthenticationKeys' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateDaiAuthenticationKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDaiAuthenticationKey' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DaiAuthenticationKey', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDaiAuthenticationKey' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DaiAuthenticationKey', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDaiAuthenticationKeys' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDaiAuthenticationKeys', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListDaiAuthenticationKeysResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDaiAuthenticationKey' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DaiAuthenticationKey', + 'headerParams' => [ + [ + 'keyName' => 'dai_authentication_key.name', + 'fieldAccessors' => [ + 'getDaiAuthenticationKey', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'daiAuthenticationKey' => 'networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/AdsAdManager/src/V1/resources/dai_authentication_key_service_rest_client_config.php b/AdsAdManager/src/V1/resources/dai_authentication_key_service_rest_client_config.php new file mode 100644 index 000000000000..e2a304a9b533 --- /dev/null +++ b/AdsAdManager/src/V1/resources/dai_authentication_key_service_rest_client_config.php @@ -0,0 +1,148 @@ + [ + 'google.ads.admanager.v1.DaiAuthenticationKeyService' => [ + 'BatchActivateDaiAuthenticationKeys' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiAuthenticationKeys:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateDaiAuthenticationKeys' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiAuthenticationKeys:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchDeactivateDaiAuthenticationKeys' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiAuthenticationKeys:batchDeactivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateDaiAuthenticationKeys' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiAuthenticationKeys:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDaiAuthenticationKey' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiAuthenticationKeys', + 'body' => 'dai_authentication_key', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDaiAuthenticationKey' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/daiAuthenticationKeys/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDaiAuthenticationKeys' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/daiAuthenticationKeys', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDaiAuthenticationKey' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{dai_authentication_key.name=networks/*/daiAuthenticationKeys/*}', + 'body' => 'dai_authentication_key', + 'placeholders' => [ + 'dai_authentication_key.name' => [ + 'getters' => [ + 'getDaiAuthenticationKey', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/AdsAdManager/src/V1/resources/dai_encoding_profile_service_client_config.json b/AdsAdManager/src/V1/resources/dai_encoding_profile_service_client_config.json new file mode 100644 index 000000000000..03eca3092bfb --- /dev/null +++ b/AdsAdManager/src/V1/resources/dai_encoding_profile_service_client_config.json @@ -0,0 +1,62 @@ +{ + "interfaces": { + "google.ads.admanager.v1.DaiEncodingProfileService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchActivateDaiEncodingProfiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchArchiveDaiEncodingProfiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchCreateDaiEncodingProfiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateDaiEncodingProfiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateDaiEncodingProfile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetDaiEncodingProfile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListDaiEncodingProfiles": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateDaiEncodingProfile": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/AdsAdManager/src/V1/resources/dai_encoding_profile_service_descriptor_config.php b/AdsAdManager/src/V1/resources/dai_encoding_profile_service_descriptor_config.php new file mode 100644 index 000000000000..3e011ffbdbe9 --- /dev/null +++ b/AdsAdManager/src/V1/resources/dai_encoding_profile_service_descriptor_config.php @@ -0,0 +1,137 @@ + [ + 'google.ads.admanager.v1.DaiEncodingProfileService' => [ + 'BatchActivateDaiEncodingProfiles' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchActivateDaiEncodingProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchArchiveDaiEncodingProfiles' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchArchiveDaiEncodingProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateDaiEncodingProfiles' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateDaiEncodingProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateDaiEncodingProfiles' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateDaiEncodingProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDaiEncodingProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DaiEncodingProfile', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetDaiEncodingProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DaiEncodingProfile', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListDaiEncodingProfiles' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getDaiEncodingProfiles', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListDaiEncodingProfilesResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDaiEncodingProfile' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\DaiEncodingProfile', + 'headerParams' => [ + [ + 'keyName' => 'dai_encoding_profile.name', + 'fieldAccessors' => [ + 'getDaiEncodingProfile', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'daiEncodingProfile' => 'networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}', + 'network' => 'networks/{network_code}', + ], + ], + ], +]; diff --git a/AdsAdManager/src/V1/resources/dai_encoding_profile_service_rest_client_config.php b/AdsAdManager/src/V1/resources/dai_encoding_profile_service_rest_client_config.php new file mode 100644 index 000000000000..5af9aa0aeafd --- /dev/null +++ b/AdsAdManager/src/V1/resources/dai_encoding_profile_service_rest_client_config.php @@ -0,0 +1,148 @@ + [ + 'google.ads.admanager.v1.DaiEncodingProfileService' => [ + 'BatchActivateDaiEncodingProfiles' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiEncodingProfiles:batchActivate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchArchiveDaiEncodingProfiles' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiEncodingProfiles:batchArchive', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchCreateDaiEncodingProfiles' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiEncodingProfiles:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateDaiEncodingProfiles' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiEncodingProfiles:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateDaiEncodingProfile' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/daiEncodingProfiles', + 'body' => 'dai_encoding_profile', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetDaiEncodingProfile' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/daiEncodingProfiles/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListDaiEncodingProfiles' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/daiEncodingProfiles', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateDaiEncodingProfile' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{dai_encoding_profile.name=networks/*/daiEncodingProfiles/*}', + 'body' => 'dai_encoding_profile', + 'placeholders' => [ + 'dai_encoding_profile.name' => [ + 'getters' => [ + 'getDaiEncodingProfile', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/AdsAdManager/src/V1/resources/live_stream_service_descriptor_config.php b/AdsAdManager/src/V1/resources/live_stream_service_descriptor_config.php index 9a03004b6831..5af1db2393eb 100644 --- a/AdsAdManager/src/V1/resources/live_stream_service_descriptor_config.php +++ b/AdsAdManager/src/V1/resources/live_stream_service_descriptor_config.php @@ -166,8 +166,11 @@ ], 'templateMap' => [ 'cdnConfig' => 'networks/{network_code}/cdnConfigs/{cdn_config}', + 'daiAuthenticationKey' => 'networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}', + 'daiEncodingProfile' => 'networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}', 'liveStream' => 'networks/{network_code}/liveStreams/{live_stream}', 'network' => 'networks/{network_code}', + 'slate' => 'networks/{network_code}/slates/{slate}', ], ], ], diff --git a/AdsAdManager/src/V1/resources/partner_service_client_config.json b/AdsAdManager/src/V1/resources/partner_service_client_config.json new file mode 100644 index 000000000000..6cd5f97472ef --- /dev/null +++ b/AdsAdManager/src/V1/resources/partner_service_client_config.json @@ -0,0 +1,42 @@ +{ + "interfaces": { + "google.ads.admanager.v1.PartnerService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchUpdatePartners": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetPartner": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListPartners": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdatePartner": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/AdsAdManager/src/V1/resources/partner_service_descriptor_config.php b/AdsAdManager/src/V1/resources/partner_service_descriptor_config.php new file mode 100644 index 000000000000..3dda7d461639 --- /dev/null +++ b/AdsAdManager/src/V1/resources/partner_service_descriptor_config.php @@ -0,0 +1,92 @@ + [ + 'google.ads.admanager.v1.PartnerService' => [ + 'BatchUpdatePartners' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdatePartnersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetPartner' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Partner', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListPartners' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getPartners', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListPartnersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePartner' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\Partner', + 'headerParams' => [ + [ + 'keyName' => 'partner.name', + 'fieldAccessors' => [ + 'getPartner', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'contact' => 'networks/{network_code}/contacts/{contact}', + 'label' => 'networks/{network_code}/labels/{label}', + 'network' => 'networks/{network_code}', + 'partner' => 'networks/{network_code}/partners/{partner}', + 'team' => 'networks/{network_code}/teams/{team}', + ], + ], + ], +]; diff --git a/AdsAdManager/src/V1/resources/partner_service_rest_client_config.php b/AdsAdManager/src/V1/resources/partner_service_rest_client_config.php new file mode 100644 index 000000000000..5fd9a4ff809e --- /dev/null +++ b/AdsAdManager/src/V1/resources/partner_service_rest_client_config.php @@ -0,0 +1,100 @@ + [ + 'google.ads.admanager.v1.PartnerService' => [ + 'BatchUpdatePartners' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/partners:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetPartner' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/partners/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListPartners' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/partners', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdatePartner' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{partner.name=networks/*/partners/*}', + 'body' => 'partner', + 'placeholders' => [ + 'partner.name' => [ + 'getters' => [ + 'getPartner', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/AdsAdManager/src/V1/resources/suggested_ad_unit_service_rest_client_config.php b/AdsAdManager/src/V1/resources/suggested_ad_unit_service_rest_client_config.php index 39733f087ab8..0d512f754b04 100644 --- a/AdsAdManager/src/V1/resources/suggested_ad_unit_service_rest_client_config.php +++ b/AdsAdManager/src/V1/resources/suggested_ad_unit_service_rest_client_config.php @@ -25,7 +25,7 @@ 'google.ads.admanager.v1.SuggestedAdUnitService' => [ 'BatchApproveSuggestedAdUnits' => [ 'method' => 'post', - 'uriTemplate' => '/v1/{parent=networks/*}/suggestedAdUnit:batchApprove', + 'uriTemplate' => '/v1/{parent=networks/*}/suggestedAdUnits:batchApprove', 'body' => '*', 'placeholders' => [ 'parent' => [ diff --git a/AdsAdManager/src/V1/resources/viewability_provider_service_client_config.json b/AdsAdManager/src/V1/resources/viewability_provider_service_client_config.json new file mode 100644 index 000000000000..734f17549fea --- /dev/null +++ b/AdsAdManager/src/V1/resources/viewability_provider_service_client_config.json @@ -0,0 +1,52 @@ +{ + "interfaces": { + "google.ads.admanager.v1.ViewabilityProviderService": { + "retry_codes": { + "no_retry_codes": [] + }, + "retry_params": { + "no_retry_params": { + "initial_retry_delay_millis": 0, + "retry_delay_multiplier": 0.0, + "max_retry_delay_millis": 0, + "initial_rpc_timeout_millis": 0, + "rpc_timeout_multiplier": 1.0, + "max_rpc_timeout_millis": 0, + "total_timeout_millis": 0 + } + }, + "methods": { + "BatchCreateViewabilityProviders": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "BatchUpdateViewabilityProviders": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "CreateViewabilityProvider": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "GetViewabilityProvider": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "ListViewabilityProviders": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + }, + "UpdateViewabilityProvider": { + "timeout_millis": 60000, + "retry_codes_name": "no_retry_codes", + "retry_params_name": "no_retry_params" + } + } + } + } +} diff --git a/AdsAdManager/src/V1/resources/viewability_provider_service_descriptor_config.php b/AdsAdManager/src/V1/resources/viewability_provider_service_descriptor_config.php new file mode 100644 index 000000000000..cded29019f2b --- /dev/null +++ b/AdsAdManager/src/V1/resources/viewability_provider_service_descriptor_config.php @@ -0,0 +1,115 @@ + [ + 'google.ads.admanager.v1.ViewabilityProviderService' => [ + 'BatchCreateViewabilityProviders' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchCreateViewabilityProvidersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateViewabilityProviders' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\BatchUpdateViewabilityProvidersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'CreateViewabilityProvider' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ViewabilityProvider', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'GetViewabilityProvider' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ViewabilityProvider', + 'headerParams' => [ + [ + 'keyName' => 'name', + 'fieldAccessors' => [ + 'getName', + ], + ], + ], + ], + 'ListViewabilityProviders' => [ + 'pageStreaming' => [ + 'requestPageTokenGetMethod' => 'getPageToken', + 'requestPageTokenSetMethod' => 'setPageToken', + 'requestPageSizeGetMethod' => 'getPageSize', + 'requestPageSizeSetMethod' => 'setPageSize', + 'responsePageTokenGetMethod' => 'getNextPageToken', + 'resourcesGetMethod' => 'getViewabilityProviders', + ], + 'callType' => \Google\ApiCore\Call::PAGINATED_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ListViewabilityProvidersResponse', + 'headerParams' => [ + [ + 'keyName' => 'parent', + 'fieldAccessors' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateViewabilityProvider' => [ + 'callType' => \Google\ApiCore\Call::UNARY_CALL, + 'responseType' => 'Google\Ads\AdManager\V1\ViewabilityProvider', + 'headerParams' => [ + [ + 'keyName' => 'viewability_provider.name', + 'fieldAccessors' => [ + 'getViewabilityProvider', + 'getName', + ], + ], + ], + ], + 'templateMap' => [ + 'contact' => 'networks/{network_code}/contacts/{contact}', + 'network' => 'networks/{network_code}', + 'team' => 'networks/{network_code}/teams/{team}', + 'viewabilityProvider' => 'networks/{network_code}/viewabilityProviders/{viewability_provider}', + ], + ], + ], +]; diff --git a/AdsAdManager/src/V1/resources/viewability_provider_service_rest_client_config.php b/AdsAdManager/src/V1/resources/viewability_provider_service_rest_client_config.php new file mode 100644 index 000000000000..152ec542ad88 --- /dev/null +++ b/AdsAdManager/src/V1/resources/viewability_provider_service_rest_client_config.php @@ -0,0 +1,124 @@ + [ + 'google.ads.admanager.v1.ViewabilityProviderService' => [ + 'BatchCreateViewabilityProviders' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/viewabilityProviders:batchCreate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'BatchUpdateViewabilityProviders' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/viewabilityProviders:batchUpdate', + 'body' => '*', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'CreateViewabilityProvider' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{parent=networks/*}/viewabilityProviders', + 'body' => 'viewability_provider', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'GetViewabilityProvider' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/viewabilityProviders/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'ListViewabilityProviders' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{parent=networks/*}/viewabilityProviders', + 'placeholders' => [ + 'parent' => [ + 'getters' => [ + 'getParent', + ], + ], + ], + ], + 'UpdateViewabilityProvider' => [ + 'method' => 'patch', + 'uriTemplate' => '/v1/{viewability_provider.name=networks/*/viewabilityProviders/*}', + 'body' => 'viewability_provider', + 'placeholders' => [ + 'viewability_provider.name' => [ + 'getters' => [ + 'getViewabilityProvider', + 'getName', + ], + ], + ], + ], + ], + 'google.longrunning.Operations' => [ + 'CancelOperation' => [ + 'method' => 'post', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}:cancel', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + 'GetOperation' => [ + 'method' => 'get', + 'uriTemplate' => '/v1/{name=networks/*/operations/reports/runs/*}', + 'placeholders' => [ + 'name' => [ + 'getters' => [ + 'getName', + ], + ], + ], + ], + ], + ], + 'numericEnums' => true, +]; diff --git a/AdsAdManager/tests/Unit/V1/Client/ChildPublisherServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ChildPublisherServiceClientTest.php new file mode 100644 index 000000000000..edc5f8a137a4 --- /dev/null +++ b/AdsAdManager/tests/Unit/V1/Client/ChildPublisherServiceClientTest.php @@ -0,0 +1,574 @@ +getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); + } + + /** @return ChildPublisherServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ChildPublisherServiceClient($options); + } + + /** @test */ + public function batchCreateChildPublishersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateChildPublishersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateChildPublishersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateChildPublishers($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/BatchCreateChildPublishers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateChildPublishersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateChildPublishersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateChildPublishers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateChildPublishersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateChildPublishersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateChildPublishersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateChildPublishers($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/BatchUpdateChildPublishers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateChildPublishersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateChildPublishersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateChildPublishers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChildPublisherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $email = 'email96619420'; + $childNetwork = 'childNetwork1657543179'; + $parentRevenueShareMillipercent = 1577502224; + $sellerId = 'sellerId-1513783845'; + $approvedManageAccountRevenueShareMillipercent = 797069343; + $expectedResponse = new ChildPublisher(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEmail($email); + $expectedResponse->setChildNetwork($childNetwork); + $expectedResponse->setParentRevenueShareMillipercent($parentRevenueShareMillipercent); + $expectedResponse->setSellerId($sellerId); + $expectedResponse->setApprovedManageAccountRevenueShareMillipercent( + $approvedManageAccountRevenueShareMillipercent + ); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $childPublisher = new ChildPublisher(); + $childPublisherDisplayName = 'childPublisherDisplayName933726733'; + $childPublisher->setDisplayName($childPublisherDisplayName); + $childPublisherEmail = 'childPublisherEmail-1133168836'; + $childPublisher->setEmail($childPublisherEmail); + $childPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + $childPublisher->setDelegationType($childPublisherDelegationType); + $request = (new CreateChildPublisherRequest())->setParent($formattedParent)->setChildPublisher($childPublisher); + $response = $gapicClient->createChildPublisher($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/CreateChildPublisher', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getChildPublisher(); + $this->assertProtobufEquals($childPublisher, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createChildPublisherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $childPublisher = new ChildPublisher(); + $childPublisherDisplayName = 'childPublisherDisplayName933726733'; + $childPublisher->setDisplayName($childPublisherDisplayName); + $childPublisherEmail = 'childPublisherEmail-1133168836'; + $childPublisher->setEmail($childPublisherEmail); + $childPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + $childPublisher->setDelegationType($childPublisherDelegationType); + $request = (new CreateChildPublisherRequest())->setParent($formattedParent)->setChildPublisher($childPublisher); + try { + $gapicClient->createChildPublisher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChildPublisherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $email = 'email96619420'; + $childNetwork = 'childNetwork1657543179'; + $parentRevenueShareMillipercent = 1577502224; + $sellerId = 'sellerId-1513783845'; + $approvedManageAccountRevenueShareMillipercent = 797069343; + $expectedResponse = new ChildPublisher(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEmail($email); + $expectedResponse->setChildNetwork($childNetwork); + $expectedResponse->setParentRevenueShareMillipercent($parentRevenueShareMillipercent); + $expectedResponse->setSellerId($sellerId); + $expectedResponse->setApprovedManageAccountRevenueShareMillipercent( + $approvedManageAccountRevenueShareMillipercent + ); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->childPublisherName('[NETWORK_CODE]', '[CHILD_PUBLISHER]'); + $request = (new GetChildPublisherRequest())->setName($formattedName); + $response = $gapicClient->getChildPublisher($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/GetChildPublisher', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getChildPublisherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->childPublisherName('[NETWORK_CODE]', '[CHILD_PUBLISHER]'); + $request = (new GetChildPublisherRequest())->setName($formattedName); + try { + $gapicClient->getChildPublisher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChildPublishersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $childPublishersElement = new ChildPublisher(); + $childPublishers = [$childPublishersElement]; + $expectedResponse = new ListChildPublishersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setChildPublishers($childPublishers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListChildPublishersRequest())->setParent($formattedParent); + $response = $gapicClient->listChildPublishers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getChildPublishers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/ListChildPublishers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listChildPublishersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListChildPublishersRequest())->setParent($formattedParent); + try { + $gapicClient->listChildPublishers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChildPublisherTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $email = 'email96619420'; + $childNetwork = 'childNetwork1657543179'; + $parentRevenueShareMillipercent = 1577502224; + $sellerId = 'sellerId-1513783845'; + $approvedManageAccountRevenueShareMillipercent = 797069343; + $expectedResponse = new ChildPublisher(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setEmail($email); + $expectedResponse->setChildNetwork($childNetwork); + $expectedResponse->setParentRevenueShareMillipercent($parentRevenueShareMillipercent); + $expectedResponse->setSellerId($sellerId); + $expectedResponse->setApprovedManageAccountRevenueShareMillipercent( + $approvedManageAccountRevenueShareMillipercent + ); + $transport->addResponse($expectedResponse); + // Mock request + $childPublisher = new ChildPublisher(); + $childPublisherDisplayName = 'childPublisherDisplayName933726733'; + $childPublisher->setDisplayName($childPublisherDisplayName); + $childPublisherEmail = 'childPublisherEmail-1133168836'; + $childPublisher->setEmail($childPublisherEmail); + $childPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + $childPublisher->setDelegationType($childPublisherDelegationType); + $request = (new UpdateChildPublisherRequest())->setChildPublisher($childPublisher); + $response = $gapicClient->updateChildPublisher($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/UpdateChildPublisher', $actualFuncCall); + $actualValue = $actualRequestObject->getChildPublisher(); + $this->assertProtobufEquals($childPublisher, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateChildPublisherExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $childPublisher = new ChildPublisher(); + $childPublisherDisplayName = 'childPublisherDisplayName933726733'; + $childPublisher->setDisplayName($childPublisherDisplayName); + $childPublisherEmail = 'childPublisherEmail-1133168836'; + $childPublisher->setEmail($childPublisherEmail); + $childPublisherDelegationType = DelegationType::DELEGATION_TYPE_UNSPECIFIED; + $childPublisher->setDelegationType($childPublisherDelegationType); + $request = (new UpdateChildPublisherRequest())->setChildPublisher($childPublisher); + try { + $gapicClient->updateChildPublisher($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateChildPublishersAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateChildPublishersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateChildPublishersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateChildPublishersAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.ChildPublisherService/BatchCreateChildPublishers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/AdsAdManager/tests/Unit/V1/Client/CompanyServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/CompanyServiceClientTest.php index 4e512619f2c3..c8b7205b8661 100644 --- a/AdsAdManager/tests/Unit/V1/Client/CompanyServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/CompanyServiceClientTest.php @@ -22,11 +22,18 @@ namespace Google\Ads\AdManager\Tests\Unit\V1\Client; +use Google\Ads\AdManager\V1\BatchCreateCompaniesRequest; +use Google\Ads\AdManager\V1\BatchCreateCompaniesResponse; +use Google\Ads\AdManager\V1\BatchUpdateCompaniesRequest; +use Google\Ads\AdManager\V1\BatchUpdateCompaniesResponse; use Google\Ads\AdManager\V1\Client\CompanyServiceClient; use Google\Ads\AdManager\V1\Company; +use Google\Ads\AdManager\V1\CompanyTypeEnum\CompanyType; +use Google\Ads\AdManager\V1\CreateCompanyRequest; use Google\Ads\AdManager\V1\GetCompanyRequest; use Google\Ads\AdManager\V1\ListCompaniesRequest; use Google\Ads\AdManager\V1\ListCompaniesResponse; +use Google\Ads\AdManager\V1\UpdateCompanyRequest; use Google\ApiCore\ApiException; use Google\ApiCore\CredentialsWrapper; use Google\ApiCore\Testing\GeneratedTest; @@ -64,6 +71,237 @@ private function createClient(array $options = []) return new CompanyServiceClient($options); } + /** @test */ + public function batchCreateCompaniesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateCompaniesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCompaniesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateCompanies($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/BatchCreateCompanies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCompaniesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCompaniesRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateCompanies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCompaniesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateCompaniesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCompaniesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateCompanies($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/BatchUpdateCompanies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCompaniesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCompaniesRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateCompanies($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCompanyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $companyId = 847673315; + $displayName = 'displayName1615086568'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $thirdPartyCompanyId = 2003341038; + $expectedResponse = new Company(); + $expectedResponse->setName($name); + $expectedResponse->setCompanyId($companyId); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $company = new Company(); + $companyDisplayName = 'companyDisplayName-686915152'; + $company->setDisplayName($companyDisplayName); + $companyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + $company->setType($companyType); + $request = (new CreateCompanyRequest())->setParent($formattedParent)->setCompany($company); + $response = $gapicClient->createCompany($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/CreateCompany', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCompany(); + $this->assertProtobufEquals($company, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCompanyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $company = new Company(); + $companyDisplayName = 'companyDisplayName-686915152'; + $company->setDisplayName($companyDisplayName); + $companyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + $company->setType($companyType); + $request = (new CreateCompanyRequest())->setParent($formattedParent)->setCompany($company); + try { + $gapicClient->createCompany($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + /** @test */ public function getCompanyTest() { @@ -223,7 +461,7 @@ public function listCompaniesExceptionTest() } /** @test */ - public function getCompanyAsyncTest() + public function updateCompanyTest() { $transport = $this->createTransport(); $gapicClient = $this->createClient([ @@ -231,7 +469,7 @@ public function getCompanyAsyncTest() ]); $this->assertTrue($transport->isExhausted()); // Mock response - $name2 = 'name2-1052831874'; + $name = 'name3373707'; $companyId = 847673315; $displayName = 'displayName1615086568'; $address = 'address-1147692044'; @@ -243,7 +481,7 @@ public function getCompanyAsyncTest() $primaryContact = 'primaryContact203339491'; $thirdPartyCompanyId = 2003341038; $expectedResponse = new Company(); - $expectedResponse->setName($name2); + $expectedResponse->setName($name); $expectedResponse->setCompanyId($companyId); $expectedResponse->setDisplayName($displayName); $expectedResponse->setAddress($address); @@ -256,17 +494,91 @@ public function getCompanyAsyncTest() $expectedResponse->setThirdPartyCompanyId($thirdPartyCompanyId); $transport->addResponse($expectedResponse); // Mock request - $formattedName = $gapicClient->companyName('[NETWORK_CODE]', '[COMPANY]'); - $request = (new GetCompanyRequest())->setName($formattedName); - $response = $gapicClient->getCompanyAsync($request)->wait(); + $company = new Company(); + $companyDisplayName = 'companyDisplayName-686915152'; + $company->setDisplayName($companyDisplayName); + $companyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + $company->setType($companyType); + $request = (new UpdateCompanyRequest())->setCompany($company); + $response = $gapicClient->updateCompany($request); $this->assertEquals($expectedResponse, $response); $actualRequests = $transport->popReceivedCalls(); $this->assertSame(1, count($actualRequests)); $actualFuncCall = $actualRequests[0]->getFuncCall(); $actualRequestObject = $actualRequests[0]->getRequestObject(); - $this->assertSame('/google.ads.admanager.v1.CompanyService/GetCompany', $actualFuncCall); - $actualValue = $actualRequestObject->getName(); - $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertSame('/google.ads.admanager.v1.CompanyService/UpdateCompany', $actualFuncCall); + $actualValue = $actualRequestObject->getCompany(); + $this->assertProtobufEquals($company, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCompanyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $company = new Company(); + $companyDisplayName = 'companyDisplayName-686915152'; + $company->setDisplayName($companyDisplayName); + $companyType = CompanyType::COMPANY_TYPE_UNSPECIFIED; + $company->setType($companyType); + $request = (new UpdateCompanyRequest())->setCompany($company); + try { + $gapicClient->updateCompany($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCompaniesAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateCompaniesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCompaniesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateCompaniesAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CompanyService/BatchCreateCompanies', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); $this->assertTrue($transport->isExhausted()); } } diff --git a/AdsAdManager/tests/Unit/V1/Client/CreativeWrapperServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/CreativeWrapperServiceClientTest.php new file mode 100644 index 000000000000..84fea4e8b67c --- /dev/null +++ b/AdsAdManager/tests/Unit/V1/Client/CreativeWrapperServiceClientTest.php @@ -0,0 +1,727 @@ +getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); + } + + /** @return CreativeWrapperServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new CreativeWrapperServiceClient($options); + } + + /** @test */ + public function batchActivateCreativeWrappersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateCreativeWrappersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]')]; + $request = (new BatchActivateCreativeWrappersRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchActivateCreativeWrappers($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.CreativeWrapperService/BatchActivateCreativeWrappers', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateCreativeWrappersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]')]; + $request = (new BatchActivateCreativeWrappersRequest())->setParent($formattedParent)->setNames($formattedNames); + try { + $gapicClient->batchActivateCreativeWrappers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCreativeWrappersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateCreativeWrappersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCreativeWrappersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateCreativeWrappers($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.CreativeWrapperService/BatchCreateCreativeWrappers', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateCreativeWrappersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateCreativeWrappersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateCreativeWrappers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateCreativeWrappersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivateCreativeWrappersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]')]; + $request = (new BatchDeactivateCreativeWrappersRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchDeactivateCreativeWrappers($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.CreativeWrapperService/BatchDeactivateCreativeWrappers', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateCreativeWrappersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]')]; + $request = (new BatchDeactivateCreativeWrappersRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchDeactivateCreativeWrappers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCreativeWrappersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateCreativeWrappersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCreativeWrappersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateCreativeWrappers($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.CreativeWrapperService/BatchUpdateCreativeWrappers', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateCreativeWrappersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateCreativeWrappersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateCreativeWrappers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCreativeWrapperTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $label = 'label102727412'; + $headerCreative = 'headerCreative-142389983'; + $footerCreative = 'footerCreative-1665463853'; + $htmlHeader = 'htmlHeader2063004065'; + $htmlFooter = 'htmlFooter2015413423'; + $ampHeader = 'ampHeader2082447720'; + $ampFooter = 'ampFooter2034857078'; + $expectedResponse = new CreativeWrapper(); + $expectedResponse->setName($name); + $expectedResponse->setLabel($label); + $expectedResponse->setHeaderCreative($headerCreative); + $expectedResponse->setFooterCreative($footerCreative); + $expectedResponse->setHtmlHeader($htmlHeader); + $expectedResponse->setHtmlFooter($htmlFooter); + $expectedResponse->setAmpHeader($ampHeader); + $expectedResponse->setAmpFooter($ampFooter); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $creativeWrapper = new CreativeWrapper(); + $creativeWrapperLabel = $gapicClient->labelName('[NETWORK_CODE]', '[LABEL]'); + $creativeWrapper->setLabel($creativeWrapperLabel); + $creativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + $creativeWrapper->setCreativeWrapperType($creativeWrapperCreativeWrapperType); + $request = (new CreateCreativeWrapperRequest()) + ->setParent($formattedParent) + ->setCreativeWrapper($creativeWrapper); + $response = $gapicClient->createCreativeWrapper($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeWrapperService/CreateCreativeWrapper', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getCreativeWrapper(); + $this->assertProtobufEquals($creativeWrapper, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createCreativeWrapperExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $creativeWrapper = new CreativeWrapper(); + $creativeWrapperLabel = $gapicClient->labelName('[NETWORK_CODE]', '[LABEL]'); + $creativeWrapper->setLabel($creativeWrapperLabel); + $creativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + $creativeWrapper->setCreativeWrapperType($creativeWrapperCreativeWrapperType); + $request = (new CreateCreativeWrapperRequest()) + ->setParent($formattedParent) + ->setCreativeWrapper($creativeWrapper); + try { + $gapicClient->createCreativeWrapper($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCreativeWrapperTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $label = 'label102727412'; + $headerCreative = 'headerCreative-142389983'; + $footerCreative = 'footerCreative-1665463853'; + $htmlHeader = 'htmlHeader2063004065'; + $htmlFooter = 'htmlFooter2015413423'; + $ampHeader = 'ampHeader2082447720'; + $ampFooter = 'ampFooter2034857078'; + $expectedResponse = new CreativeWrapper(); + $expectedResponse->setName($name2); + $expectedResponse->setLabel($label); + $expectedResponse->setHeaderCreative($headerCreative); + $expectedResponse->setFooterCreative($footerCreative); + $expectedResponse->setHtmlHeader($htmlHeader); + $expectedResponse->setHtmlFooter($htmlFooter); + $expectedResponse->setAmpHeader($ampHeader); + $expectedResponse->setAmpFooter($ampFooter); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]'); + $request = (new GetCreativeWrapperRequest())->setName($formattedName); + $response = $gapicClient->getCreativeWrapper($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeWrapperService/GetCreativeWrapper', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getCreativeWrapperExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]'); + $request = (new GetCreativeWrapperRequest())->setName($formattedName); + try { + $gapicClient->getCreativeWrapper($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCreativeWrappersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $creativeWrappersElement = new CreativeWrapper(); + $creativeWrappers = [$creativeWrappersElement]; + $expectedResponse = new ListCreativeWrappersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setCreativeWrappers($creativeWrappers); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCreativeWrappersRequest())->setParent($formattedParent); + $response = $gapicClient->listCreativeWrappers($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getCreativeWrappers()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeWrapperService/ListCreativeWrappers', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listCreativeWrappersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListCreativeWrappersRequest())->setParent($formattedParent); + try { + $gapicClient->listCreativeWrappers($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCreativeWrapperTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $label = 'label102727412'; + $headerCreative = 'headerCreative-142389983'; + $footerCreative = 'footerCreative-1665463853'; + $htmlHeader = 'htmlHeader2063004065'; + $htmlFooter = 'htmlFooter2015413423'; + $ampHeader = 'ampHeader2082447720'; + $ampFooter = 'ampFooter2034857078'; + $expectedResponse = new CreativeWrapper(); + $expectedResponse->setName($name); + $expectedResponse->setLabel($label); + $expectedResponse->setHeaderCreative($headerCreative); + $expectedResponse->setFooterCreative($footerCreative); + $expectedResponse->setHtmlHeader($htmlHeader); + $expectedResponse->setHtmlFooter($htmlFooter); + $expectedResponse->setAmpHeader($ampHeader); + $expectedResponse->setAmpFooter($ampFooter); + $transport->addResponse($expectedResponse); + // Mock request + $creativeWrapper = new CreativeWrapper(); + $creativeWrapperLabel = $gapicClient->labelName('[NETWORK_CODE]', '[LABEL]'); + $creativeWrapper->setLabel($creativeWrapperLabel); + $creativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + $creativeWrapper->setCreativeWrapperType($creativeWrapperCreativeWrapperType); + $request = (new UpdateCreativeWrapperRequest())->setCreativeWrapper($creativeWrapper); + $response = $gapicClient->updateCreativeWrapper($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.CreativeWrapperService/UpdateCreativeWrapper', $actualFuncCall); + $actualValue = $actualRequestObject->getCreativeWrapper(); + $this->assertProtobufEquals($creativeWrapper, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateCreativeWrapperExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $creativeWrapper = new CreativeWrapper(); + $creativeWrapperLabel = $gapicClient->labelName('[NETWORK_CODE]', '[LABEL]'); + $creativeWrapper->setLabel($creativeWrapperLabel); + $creativeWrapperCreativeWrapperType = CreativeWrapperType::CREATIVE_WRAPPER_TYPE_UNSPECIFIED; + $creativeWrapper->setCreativeWrapperType($creativeWrapperCreativeWrapperType); + $request = (new UpdateCreativeWrapperRequest())->setCreativeWrapper($creativeWrapper); + try { + $gapicClient->updateCreativeWrapper($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateCreativeWrappersAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateCreativeWrappersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->creativeWrapperName('[NETWORK_CODE]', '[CREATIVE_WRAPPER]')]; + $request = (new BatchActivateCreativeWrappersRequest())->setParent($formattedParent)->setNames($formattedNames); + $response = $gapicClient->batchActivateCreativeWrappersAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.CreativeWrapperService/BatchActivateCreativeWrappers', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/AdsAdManager/tests/Unit/V1/Client/DaiAuthenticationKeyServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/DaiAuthenticationKeyServiceClientTest.php new file mode 100644 index 000000000000..7e2a7d44b81a --- /dev/null +++ b/AdsAdManager/tests/Unit/V1/Client/DaiAuthenticationKeyServiceClientTest.php @@ -0,0 +1,700 @@ +getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); + } + + /** @return DaiAuthenticationKeyServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DaiAuthenticationKeyServiceClient($options); + } + + /** @test */ + public function batchActivateDaiAuthenticationKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateDaiAuthenticationKeysResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]')]; + $request = (new BatchActivateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivateDaiAuthenticationKeys($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/BatchActivateDaiAuthenticationKeys', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateDaiAuthenticationKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]')]; + $request = (new BatchActivateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchActivateDaiAuthenticationKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateDaiAuthenticationKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateDaiAuthenticationKeysResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateDaiAuthenticationKeysRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateDaiAuthenticationKeys($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/BatchCreateDaiAuthenticationKeys', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateDaiAuthenticationKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateDaiAuthenticationKeysRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateDaiAuthenticationKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateDaiAuthenticationKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchDeactivateDaiAuthenticationKeysResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]')]; + $request = (new BatchDeactivateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchDeactivateDaiAuthenticationKeys($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/BatchDeactivateDaiAuthenticationKeys', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchDeactivateDaiAuthenticationKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]')]; + $request = (new BatchDeactivateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + try { + $gapicClient->batchDeactivateDaiAuthenticationKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateDaiAuthenticationKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateDaiAuthenticationKeysResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateDaiAuthenticationKeysRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateDaiAuthenticationKeys($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/BatchUpdateDaiAuthenticationKeys', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateDaiAuthenticationKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateDaiAuthenticationKeysRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateDaiAuthenticationKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDaiAuthenticationKeyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DaiAuthenticationKey(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $daiAuthenticationKey = new DaiAuthenticationKey(); + $daiAuthenticationKeyDisplayName = 'daiAuthenticationKeyDisplayName1917159634'; + $daiAuthenticationKey->setDisplayName($daiAuthenticationKeyDisplayName); + $request = (new CreateDaiAuthenticationKeyRequest()) + ->setParent($formattedParent) + ->setDaiAuthenticationKey($daiAuthenticationKey); + $response = $gapicClient->createDaiAuthenticationKey($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/CreateDaiAuthenticationKey', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDaiAuthenticationKey(); + $this->assertProtobufEquals($daiAuthenticationKey, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDaiAuthenticationKeyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $daiAuthenticationKey = new DaiAuthenticationKey(); + $daiAuthenticationKeyDisplayName = 'daiAuthenticationKeyDisplayName1917159634'; + $daiAuthenticationKey->setDisplayName($daiAuthenticationKeyDisplayName); + $request = (new CreateDaiAuthenticationKeyRequest()) + ->setParent($formattedParent) + ->setDaiAuthenticationKey($daiAuthenticationKey); + try { + $gapicClient->createDaiAuthenticationKey($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDaiAuthenticationKeyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DaiAuthenticationKey(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]'); + $request = (new GetDaiAuthenticationKeyRequest())->setName($formattedName); + $response = $gapicClient->getDaiAuthenticationKey($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/GetDaiAuthenticationKey', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDaiAuthenticationKeyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]'); + $request = (new GetDaiAuthenticationKeyRequest())->setName($formattedName); + try { + $gapicClient->getDaiAuthenticationKey($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDaiAuthenticationKeysTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $daiAuthenticationKeysElement = new DaiAuthenticationKey(); + $daiAuthenticationKeys = [$daiAuthenticationKeysElement]; + $expectedResponse = new ListDaiAuthenticationKeysResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setDaiAuthenticationKeys($daiAuthenticationKeys); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDaiAuthenticationKeysRequest())->setParent($formattedParent); + $response = $gapicClient->listDaiAuthenticationKeys($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDaiAuthenticationKeys()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/ListDaiAuthenticationKeys', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDaiAuthenticationKeysExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDaiAuthenticationKeysRequest())->setParent($formattedParent); + try { + $gapicClient->listDaiAuthenticationKeys($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDaiAuthenticationKeyTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DaiAuthenticationKey(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $daiAuthenticationKey = new DaiAuthenticationKey(); + $daiAuthenticationKeyDisplayName = 'daiAuthenticationKeyDisplayName1917159634'; + $daiAuthenticationKey->setDisplayName($daiAuthenticationKeyDisplayName); + $request = (new UpdateDaiAuthenticationKeyRequest())->setDaiAuthenticationKey($daiAuthenticationKey); + $response = $gapicClient->updateDaiAuthenticationKey($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/UpdateDaiAuthenticationKey', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getDaiAuthenticationKey(); + $this->assertProtobufEquals($daiAuthenticationKey, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDaiAuthenticationKeyExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $daiAuthenticationKey = new DaiAuthenticationKey(); + $daiAuthenticationKeyDisplayName = 'daiAuthenticationKeyDisplayName1917159634'; + $daiAuthenticationKey->setDisplayName($daiAuthenticationKeyDisplayName); + $request = (new UpdateDaiAuthenticationKeyRequest())->setDaiAuthenticationKey($daiAuthenticationKey); + try { + $gapicClient->updateDaiAuthenticationKey($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateDaiAuthenticationKeysAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateDaiAuthenticationKeysResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $formattedNames = [$gapicClient->daiAuthenticationKeyName('[NETWORK_CODE]', '[DAI_AUTHENTICATION_KEY]')]; + $request = (new BatchActivateDaiAuthenticationKeysRequest()) + ->setParent($formattedParent) + ->setNames($formattedNames); + $response = $gapicClient->batchActivateDaiAuthenticationKeysAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiAuthenticationKeyService/BatchActivateDaiAuthenticationKeys', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getNames(); + $this->assertProtobufEquals($formattedNames, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/AdsAdManager/tests/Unit/V1/Client/DaiEncodingProfileServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/DaiEncodingProfileServiceClientTest.php new file mode 100644 index 000000000000..f4fa94e70f9c --- /dev/null +++ b/AdsAdManager/tests/Unit/V1/Client/DaiEncodingProfileServiceClientTest.php @@ -0,0 +1,705 @@ +getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); + } + + /** @return DaiEncodingProfileServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new DaiEncodingProfileServiceClient($options); + } + + /** @test */ + public function batchActivateDaiEncodingProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateDaiEncodingProfilesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchActivateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchActivateDaiEncodingProfiles($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/BatchActivateDaiEncodingProfiles', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateDaiEncodingProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchActivateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchActivateDaiEncodingProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchArchiveDaiEncodingProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchArchiveDaiEncodingProfilesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchArchiveDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchArchiveDaiEncodingProfiles($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/BatchArchiveDaiEncodingProfiles', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchArchiveDaiEncodingProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchArchiveDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchArchiveDaiEncodingProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateDaiEncodingProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateDaiEncodingProfilesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateDaiEncodingProfiles($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/BatchCreateDaiEncodingProfiles', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateDaiEncodingProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateDaiEncodingProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateDaiEncodingProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateDaiEncodingProfilesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateDaiEncodingProfiles($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/BatchUpdateDaiEncodingProfiles', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateDaiEncodingProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateDaiEncodingProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDaiEncodingProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DaiEncodingProfile(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $daiEncodingProfile = new DaiEncodingProfile(); + $daiEncodingProfileDisplayName = 'daiEncodingProfileDisplayName-637836189'; + $daiEncodingProfile->setDisplayName($daiEncodingProfileDisplayName); + $daiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $daiEncodingProfile->setVariantType($daiEncodingProfileVariantType); + $daiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + $daiEncodingProfile->setContainerType($daiEncodingProfileContainerType); + $request = (new CreateDaiEncodingProfileRequest()) + ->setParent($formattedParent) + ->setDaiEncodingProfile($daiEncodingProfile); + $response = $gapicClient->createDaiEncodingProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/CreateDaiEncodingProfile', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getDaiEncodingProfile(); + $this->assertProtobufEquals($daiEncodingProfile, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createDaiEncodingProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $daiEncodingProfile = new DaiEncodingProfile(); + $daiEncodingProfileDisplayName = 'daiEncodingProfileDisplayName-637836189'; + $daiEncodingProfile->setDisplayName($daiEncodingProfileDisplayName); + $daiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $daiEncodingProfile->setVariantType($daiEncodingProfileVariantType); + $daiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + $daiEncodingProfile->setContainerType($daiEncodingProfileContainerType); + $request = (new CreateDaiEncodingProfileRequest()) + ->setParent($formattedParent) + ->setDaiEncodingProfile($daiEncodingProfile); + try { + $gapicClient->createDaiEncodingProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDaiEncodingProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DaiEncodingProfile(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->daiEncodingProfileName('[NETWORK_CODE]', '[DAI_ENCODING_PROFILE]'); + $request = (new GetDaiEncodingProfileRequest())->setName($formattedName); + $response = $gapicClient->getDaiEncodingProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.DaiEncodingProfileService/GetDaiEncodingProfile', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getDaiEncodingProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->daiEncodingProfileName('[NETWORK_CODE]', '[DAI_ENCODING_PROFILE]'); + $request = (new GetDaiEncodingProfileRequest())->setName($formattedName); + try { + $gapicClient->getDaiEncodingProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDaiEncodingProfilesTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $daiEncodingProfilesElement = new DaiEncodingProfile(); + $daiEncodingProfiles = [$daiEncodingProfilesElement]; + $expectedResponse = new ListDaiEncodingProfilesResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setDaiEncodingProfiles($daiEncodingProfiles); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDaiEncodingProfilesRequest())->setParent($formattedParent); + $response = $gapicClient->listDaiEncodingProfiles($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getDaiEncodingProfiles()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/ListDaiEncodingProfiles', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listDaiEncodingProfilesExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListDaiEncodingProfilesRequest())->setParent($formattedParent); + try { + $gapicClient->listDaiEncodingProfiles($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDaiEncodingProfileTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $expectedResponse = new DaiEncodingProfile(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $transport->addResponse($expectedResponse); + // Mock request + $daiEncodingProfile = new DaiEncodingProfile(); + $daiEncodingProfileDisplayName = 'daiEncodingProfileDisplayName-637836189'; + $daiEncodingProfile->setDisplayName($daiEncodingProfileDisplayName); + $daiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $daiEncodingProfile->setVariantType($daiEncodingProfileVariantType); + $daiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + $daiEncodingProfile->setContainerType($daiEncodingProfileContainerType); + $request = (new UpdateDaiEncodingProfileRequest())->setDaiEncodingProfile($daiEncodingProfile); + $response = $gapicClient->updateDaiEncodingProfile($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/UpdateDaiEncodingProfile', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getDaiEncodingProfile(); + $this->assertProtobufEquals($daiEncodingProfile, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateDaiEncodingProfileExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $daiEncodingProfile = new DaiEncodingProfile(); + $daiEncodingProfileDisplayName = 'daiEncodingProfileDisplayName-637836189'; + $daiEncodingProfile->setDisplayName($daiEncodingProfileDisplayName); + $daiEncodingProfileVariantType = DaiEncodingProfileVariantType::DAI_ENCODING_PROFILE_VARIANT_TYPE_UNSPECIFIED; + $daiEncodingProfile->setVariantType($daiEncodingProfileVariantType); + $daiEncodingProfileContainerType = ContainerType::CONTAINER_TYPE_UNSPECIFIED; + $daiEncodingProfile->setContainerType($daiEncodingProfileContainerType); + $request = (new UpdateDaiEncodingProfileRequest())->setDaiEncodingProfile($daiEncodingProfile); + try { + $gapicClient->updateDaiEncodingProfile($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchActivateDaiEncodingProfilesAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchActivateDaiEncodingProfilesResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchActivateDaiEncodingProfilesRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchActivateDaiEncodingProfilesAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.DaiEncodingProfileService/BatchActivateDaiEncodingProfiles', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/AdsAdManager/tests/Unit/V1/Client/LiveStreamServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/LiveStreamServiceClientTest.php index 2ee3e3d4beab..9f5fb28a6cf9 100644 --- a/AdsAdManager/tests/Unit/V1/Client/LiveStreamServiceClientTest.php +++ b/AdsAdManager/tests/Unit/V1/Client/LiveStreamServiceClientTest.php @@ -562,6 +562,7 @@ public function createLiveStreamTest() $displayName = 'displayName1615086568'; $endTimeUnlimited = false; $assetKey = 'assetKey1315618960'; + $slate = 'slate109519257'; $enableDaiAuthenticationKeys = true; $enableMaxFillerDuration = true; $enableDurationlessAdBreaks = true; @@ -580,6 +581,7 @@ public function createLiveStreamTest() $expectedResponse->setDisplayName($displayName); $expectedResponse->setEndTimeUnlimited($endTimeUnlimited); $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setSlate($slate); $expectedResponse->setEnableDaiAuthenticationKeys($enableDaiAuthenticationKeys); $expectedResponse->setEnableMaxFillerDuration($enableMaxFillerDuration); $expectedResponse->setEnableDurationlessAdBreaks($enableDurationlessAdBreaks); @@ -677,6 +679,7 @@ public function getLiveStreamTest() $displayName = 'displayName1615086568'; $endTimeUnlimited = false; $assetKey = 'assetKey1315618960'; + $slate = 'slate109519257'; $enableDaiAuthenticationKeys = true; $enableMaxFillerDuration = true; $enableDurationlessAdBreaks = true; @@ -695,6 +698,7 @@ public function getLiveStreamTest() $expectedResponse->setDisplayName($displayName); $expectedResponse->setEndTimeUnlimited($endTimeUnlimited); $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setSlate($slate); $expectedResponse->setEnableDaiAuthenticationKeys($enableDaiAuthenticationKeys); $expectedResponse->setEnableMaxFillerDuration($enableMaxFillerDuration); $expectedResponse->setEnableDurationlessAdBreaks($enableDurationlessAdBreaks); @@ -849,6 +853,7 @@ public function updateLiveStreamTest() $displayName = 'displayName1615086568'; $endTimeUnlimited = false; $assetKey = 'assetKey1315618960'; + $slate = 'slate109519257'; $enableDaiAuthenticationKeys = true; $enableMaxFillerDuration = true; $enableDurationlessAdBreaks = true; @@ -867,6 +872,7 @@ public function updateLiveStreamTest() $expectedResponse->setDisplayName($displayName); $expectedResponse->setEndTimeUnlimited($endTimeUnlimited); $expectedResponse->setAssetKey($assetKey); + $expectedResponse->setSlate($slate); $expectedResponse->setEnableDaiAuthenticationKeys($enableDaiAuthenticationKeys); $expectedResponse->setEnableMaxFillerDuration($enableMaxFillerDuration); $expectedResponse->setEnableDurationlessAdBreaks($enableDurationlessAdBreaks); diff --git a/AdsAdManager/tests/Unit/V1/Client/PartnerServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/PartnerServiceClientTest.php new file mode 100644 index 000000000000..b0ee287516b5 --- /dev/null +++ b/AdsAdManager/tests/Unit/V1/Client/PartnerServiceClientTest.php @@ -0,0 +1,404 @@ +getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); + } + + /** @return PartnerServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new PartnerServiceClient($options); + } + + /** @test */ + public function batchUpdatePartnersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdatePartnersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePartnersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdatePartners($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PartnerService/BatchUpdatePartners', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdatePartnersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePartnersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdatePartners($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $expectedResponse = new Partner(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->partnerName('[NETWORK_CODE]', '[PARTNER]'); + $request = (new GetPartnerRequest())->setName($formattedName); + $response = $gapicClient->getPartner($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PartnerService/GetPartner', $actualFuncCall); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getPartnerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->partnerName('[NETWORK_CODE]', '[PARTNER]'); + $request = (new GetPartnerRequest())->setName($formattedName); + try { + $gapicClient->getPartner($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPartnersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $partnersElement = new Partner(); + $partners = [$partnersElement]; + $expectedResponse = new ListPartnersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setPartners($partners); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPartnersRequest())->setParent($formattedParent); + $response = $gapicClient->listPartners($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getPartners()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PartnerService/ListPartners', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listPartnersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListPartnersRequest())->setParent($formattedParent); + try { + $gapicClient->listPartners($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePartnerTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $expectedResponse = new Partner(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $transport->addResponse($expectedResponse); + // Mock request + $partner = new Partner(); + $partnerDisplayName = 'partnerDisplayName406869125'; + $partner->setDisplayName($partnerDisplayName); + $request = (new UpdatePartnerRequest())->setPartner($partner); + $response = $gapicClient->updatePartner($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PartnerService/UpdatePartner', $actualFuncCall); + $actualValue = $actualRequestObject->getPartner(); + $this->assertProtobufEquals($partner, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updatePartnerExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $partner = new Partner(); + $partnerDisplayName = 'partnerDisplayName406869125'; + $partner->setDisplayName($partnerDisplayName); + $request = (new UpdatePartnerRequest())->setPartner($partner); + try { + $gapicClient->updatePartner($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdatePartnersAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdatePartnersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdatePartnersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdatePartnersAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame('/google.ads.admanager.v1.PartnerService/BatchUpdatePartners', $actualFuncCall); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +} diff --git a/AdsAdManager/tests/Unit/V1/Client/ViewabilityProviderServiceClientTest.php b/AdsAdManager/tests/Unit/V1/Client/ViewabilityProviderServiceClientTest.php new file mode 100644 index 000000000000..8483de1e72f0 --- /dev/null +++ b/AdsAdManager/tests/Unit/V1/Client/ViewabilityProviderServiceClientTest.php @@ -0,0 +1,628 @@ +getMockBuilder(CredentialsWrapper::class) + ->disableOriginalConstructor() + ->getMock(); + } + + /** @return ViewabilityProviderServiceClient */ + private function createClient(array $options = []) + { + $options += [ + 'credentials' => $this->createCredentials(), + ]; + return new ViewabilityProviderServiceClient($options); + } + + /** @test */ + public function batchCreateViewabilityProvidersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateViewabilityProvidersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateViewabilityProvidersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateViewabilityProviders($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/BatchCreateViewabilityProviders', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateViewabilityProvidersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateViewabilityProvidersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchCreateViewabilityProviders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateViewabilityProvidersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchUpdateViewabilityProvidersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateViewabilityProvidersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchUpdateViewabilityProviders($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/BatchUpdateViewabilityProviders', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchUpdateViewabilityProvidersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchUpdateViewabilityProvidersRequest())->setParent($formattedParent)->setRequests($requests); + try { + $gapicClient->batchUpdateViewabilityProviders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createViewabilityProviderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $vendorKey = 'vendorKey694652648'; + $verificationScriptUrl = 'verificationScriptUrl1107990687'; + $verificationScriptUrlParameters = 'verificationScriptUrlParameters-1854786166'; + $rejectionTrackerUrl = 'rejectionTrackerUrl-1482910542'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $expectedResponse = new ViewabilityProvider(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setVendorKey($vendorKey); + $expectedResponse->setVerificationScriptUrl($verificationScriptUrl); + $expectedResponse->setVerificationScriptUrlParameters($verificationScriptUrlParameters); + $expectedResponse->setRejectionTrackerUrl($rejectionTrackerUrl); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $viewabilityProvider = new ViewabilityProvider(); + $viewabilityProviderDisplayName = 'viewabilityProviderDisplayName1689037975'; + $viewabilityProvider->setDisplayName($viewabilityProviderDisplayName); + $viewabilityProviderVendorKey = 'viewabilityProviderVendorKey2038002849'; + $viewabilityProvider->setVendorKey($viewabilityProviderVendorKey); + $viewabilityProviderVerificationScriptUrl = 'viewabilityProviderVerificationScriptUrl640968307'; + $viewabilityProvider->setVerificationScriptUrl($viewabilityProviderVerificationScriptUrl); + $request = (new CreateViewabilityProviderRequest()) + ->setParent($formattedParent) + ->setViewabilityProvider($viewabilityProvider); + $response = $gapicClient->createViewabilityProvider($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/CreateViewabilityProvider', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getViewabilityProvider(); + $this->assertProtobufEquals($viewabilityProvider, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function createViewabilityProviderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $viewabilityProvider = new ViewabilityProvider(); + $viewabilityProviderDisplayName = 'viewabilityProviderDisplayName1689037975'; + $viewabilityProvider->setDisplayName($viewabilityProviderDisplayName); + $viewabilityProviderVendorKey = 'viewabilityProviderVendorKey2038002849'; + $viewabilityProvider->setVendorKey($viewabilityProviderVendorKey); + $viewabilityProviderVerificationScriptUrl = 'viewabilityProviderVerificationScriptUrl640968307'; + $viewabilityProvider->setVerificationScriptUrl($viewabilityProviderVerificationScriptUrl); + $request = (new CreateViewabilityProviderRequest()) + ->setParent($formattedParent) + ->setViewabilityProvider($viewabilityProvider); + try { + $gapicClient->createViewabilityProvider($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getViewabilityProviderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name2 = 'name2-1052831874'; + $displayName = 'displayName1615086568'; + $vendorKey = 'vendorKey694652648'; + $verificationScriptUrl = 'verificationScriptUrl1107990687'; + $verificationScriptUrlParameters = 'verificationScriptUrlParameters-1854786166'; + $rejectionTrackerUrl = 'rejectionTrackerUrl-1482910542'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $expectedResponse = new ViewabilityProvider(); + $expectedResponse->setName($name2); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setVendorKey($vendorKey); + $expectedResponse->setVerificationScriptUrl($verificationScriptUrl); + $expectedResponse->setVerificationScriptUrlParameters($verificationScriptUrlParameters); + $expectedResponse->setRejectionTrackerUrl($rejectionTrackerUrl); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $transport->addResponse($expectedResponse); + // Mock request + $formattedName = $gapicClient->viewabilityProviderName('[NETWORK_CODE]', '[VIEWABILITY_PROVIDER]'); + $request = (new GetViewabilityProviderRequest())->setName($formattedName); + $response = $gapicClient->getViewabilityProvider($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/GetViewabilityProvider', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getName(); + $this->assertProtobufEquals($formattedName, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function getViewabilityProviderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedName = $gapicClient->viewabilityProviderName('[NETWORK_CODE]', '[VIEWABILITY_PROVIDER]'); + $request = (new GetViewabilityProviderRequest())->setName($formattedName); + try { + $gapicClient->getViewabilityProvider($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listViewabilityProvidersTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $nextPageToken = ''; + $totalSize = 705419236; + $viewabilityProvidersElement = new ViewabilityProvider(); + $viewabilityProviders = [$viewabilityProvidersElement]; + $expectedResponse = new ListViewabilityProvidersResponse(); + $expectedResponse->setNextPageToken($nextPageToken); + $expectedResponse->setTotalSize($totalSize); + $expectedResponse->setViewabilityProviders($viewabilityProviders); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListViewabilityProvidersRequest())->setParent($formattedParent); + $response = $gapicClient->listViewabilityProviders($request); + $this->assertEquals($expectedResponse, $response->getPage()->getResponseObject()); + $resources = iterator_to_array($response->iterateAllElements()); + $this->assertSame(1, count($resources)); + $this->assertEquals($expectedResponse->getViewabilityProviders()[0], $resources[0]); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/ListViewabilityProviders', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function listViewabilityProvidersExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $request = (new ListViewabilityProvidersRequest())->setParent($formattedParent); + try { + $gapicClient->listViewabilityProviders($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateViewabilityProviderTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $name = 'name3373707'; + $displayName = 'displayName1615086568'; + $vendorKey = 'vendorKey694652648'; + $verificationScriptUrl = 'verificationScriptUrl1107990687'; + $verificationScriptUrlParameters = 'verificationScriptUrlParameters-1854786166'; + $rejectionTrackerUrl = 'rejectionTrackerUrl-1482910542'; + $address = 'address-1147692044'; + $email = 'email96619420'; + $fax = 'fax101149'; + $phone = 'phone106642798'; + $externalId = 'externalId-1153075697'; + $comment = 'comment950398559'; + $primaryContact = 'primaryContact203339491'; + $expectedResponse = new ViewabilityProvider(); + $expectedResponse->setName($name); + $expectedResponse->setDisplayName($displayName); + $expectedResponse->setVendorKey($vendorKey); + $expectedResponse->setVerificationScriptUrl($verificationScriptUrl); + $expectedResponse->setVerificationScriptUrlParameters($verificationScriptUrlParameters); + $expectedResponse->setRejectionTrackerUrl($rejectionTrackerUrl); + $expectedResponse->setAddress($address); + $expectedResponse->setEmail($email); + $expectedResponse->setFax($fax); + $expectedResponse->setPhone($phone); + $expectedResponse->setExternalId($externalId); + $expectedResponse->setComment($comment); + $expectedResponse->setPrimaryContact($primaryContact); + $transport->addResponse($expectedResponse); + // Mock request + $viewabilityProvider = new ViewabilityProvider(); + $viewabilityProviderDisplayName = 'viewabilityProviderDisplayName1689037975'; + $viewabilityProvider->setDisplayName($viewabilityProviderDisplayName); + $viewabilityProviderVendorKey = 'viewabilityProviderVendorKey2038002849'; + $viewabilityProvider->setVendorKey($viewabilityProviderVendorKey); + $viewabilityProviderVerificationScriptUrl = 'viewabilityProviderVerificationScriptUrl640968307'; + $viewabilityProvider->setVerificationScriptUrl($viewabilityProviderVerificationScriptUrl); + $request = (new UpdateViewabilityProviderRequest())->setViewabilityProvider($viewabilityProvider); + $response = $gapicClient->updateViewabilityProvider($request); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/UpdateViewabilityProvider', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getViewabilityProvider(); + $this->assertProtobufEquals($viewabilityProvider, $actualValue); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function updateViewabilityProviderExceptionTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + $status = new stdClass(); + $status->code = Code::DATA_LOSS; + $status->details = 'internal error'; + $expectedExceptionMessage = json_encode( + [ + 'message' => 'internal error', + 'code' => Code::DATA_LOSS, + 'status' => 'DATA_LOSS', + 'details' => [], + ], + JSON_PRETTY_PRINT + ); + $transport->addResponse(null, $status); + // Mock request + $viewabilityProvider = new ViewabilityProvider(); + $viewabilityProviderDisplayName = 'viewabilityProviderDisplayName1689037975'; + $viewabilityProvider->setDisplayName($viewabilityProviderDisplayName); + $viewabilityProviderVendorKey = 'viewabilityProviderVendorKey2038002849'; + $viewabilityProvider->setVendorKey($viewabilityProviderVendorKey); + $viewabilityProviderVerificationScriptUrl = 'viewabilityProviderVerificationScriptUrl640968307'; + $viewabilityProvider->setVerificationScriptUrl($viewabilityProviderVerificationScriptUrl); + $request = (new UpdateViewabilityProviderRequest())->setViewabilityProvider($viewabilityProvider); + try { + $gapicClient->updateViewabilityProvider($request); + // If the $gapicClient method call did not throw, fail the test + $this->fail('Expected an ApiException, but no exception was thrown.'); + } catch (ApiException $ex) { + $this->assertEquals($status->code, $ex->getCode()); + $this->assertEquals($expectedExceptionMessage, $ex->getMessage()); + } + // Call popReceivedCalls to ensure the stub is exhausted + $transport->popReceivedCalls(); + $this->assertTrue($transport->isExhausted()); + } + + /** @test */ + public function batchCreateViewabilityProvidersAsyncTest() + { + $transport = $this->createTransport(); + $gapicClient = $this->createClient([ + 'transport' => $transport, + ]); + $this->assertTrue($transport->isExhausted()); + // Mock response + $expectedResponse = new BatchCreateViewabilityProvidersResponse(); + $transport->addResponse($expectedResponse); + // Mock request + $formattedParent = $gapicClient->networkName('[NETWORK_CODE]'); + $requests = []; + $request = (new BatchCreateViewabilityProvidersRequest())->setParent($formattedParent)->setRequests($requests); + $response = $gapicClient->batchCreateViewabilityProvidersAsync($request)->wait(); + $this->assertEquals($expectedResponse, $response); + $actualRequests = $transport->popReceivedCalls(); + $this->assertSame(1, count($actualRequests)); + $actualFuncCall = $actualRequests[0]->getFuncCall(); + $actualRequestObject = $actualRequests[0]->getRequestObject(); + $this->assertSame( + '/google.ads.admanager.v1.ViewabilityProviderService/BatchCreateViewabilityProviders', + $actualFuncCall + ); + $actualValue = $actualRequestObject->getParent(); + $this->assertProtobufEquals($formattedParent, $actualValue); + $actualValue = $actualRequestObject->getRequests(); + $this->assertProtobufEquals($requests, $actualValue); + $this->assertTrue($transport->isExhausted()); + } +}