@google-ads/admanager 0.4.1 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +83 -0
- package/build/protos/google/ads/admanager/v1/ad_break_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_messages.proto +62 -0
- package/build/protos/google/ads/admanager/v1/ad_review_center_ad_service.proto +238 -0
- package/build/protos/google/ads/admanager/v1/ad_unit_messages.proto +7 -7
- package/build/protos/google/ads/admanager/v1/ad_unit_service.proto +222 -6
- package/build/protos/google/ads/admanager/v1/application_messages.proto +47 -0
- package/build/protos/google/ads/admanager/v1/application_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +49 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/bandwidth_group_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/browser_language_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/browser_language_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/browser_messages.proto +51 -0
- package/build/protos/google/ads/admanager/v1/browser_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_enums.proto +41 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_messages.proto +50 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_key_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_enums.proto +44 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_messages.proto +61 -0
- package/build/protos/google/ads/admanager/v1/cms_metadata_value_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/company_messages.proto +14 -12
- package/build/protos/google/ads/admanager/v1/company_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/contact_enums.proto +57 -0
- package/build/protos/google/ads/admanager/v1/contact_messages.proto +45 -2
- package/build/protos/google/ads/admanager/v1/contact_service.proto +244 -0
- package/build/protos/google/ads/admanager/v1/content_bundle_messages.proto +53 -0
- package/build/protos/google/ads/admanager/v1/content_bundle_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/content_label_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/content_label_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/content_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/content_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/creative_template_enums.proto +63 -0
- package/build/protos/google/ads/admanager/v1/creative_template_messages.proto +253 -0
- package/build/protos/google/ads/admanager/v1/creative_template_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/creative_template_variable_url_type_enum.proto +47 -0
- package/build/protos/google/ads/admanager/v1/custom_field_messages.proto +5 -2
- package/build/protos/google/ads/admanager/v1/custom_field_service.proto +185 -3
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_messages.proto +7 -6
- package/build/protos/google/ads/admanager/v1/custom_targeting_key_service.proto +191 -1
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_messages.proto +9 -9
- package/build/protos/google/ads/admanager/v1/custom_targeting_value_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/device_capability_messages.proto +45 -0
- package/build/protos/google/ads/admanager/v1/device_capability_service.proto +130 -0
- package/build/protos/google/ads/admanager/v1/device_category_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/device_manufacturer_messages.proto +46 -0
- package/build/protos/google/ads/admanager/v1/device_manufacturer_service.proto +131 -0
- package/build/protos/google/ads/admanager/v1/entity_signals_mapping_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/exchange_syndication_product_enum.proto +47 -0
- package/build/protos/google/ads/admanager/v1/geo_target_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/goal.proto +57 -0
- package/build/protos/google/ads/admanager/v1/goal_enums.proto +129 -0
- package/build/protos/google/ads/admanager/v1/line_item_enums.proto +86 -0
- package/build/protos/google/ads/admanager/v1/line_item_messages.proto +93 -0
- package/build/protos/google/ads/admanager/v1/line_item_service.proto +128 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_messages.proto +48 -0
- package/build/protos/google/ads/admanager/v1/mobile_carrier_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_messages.proto +54 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_service.proto +129 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_messages.proto +55 -0
- package/build/protos/google/ads/admanager/v1/mobile_device_submodel_service.proto +133 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +8 -8
- package/build/protos/google/ads/admanager/v1/network_service.proto +32 -1
- package/build/protos/google/ads/admanager/v1/operating_system_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/operating_system_version_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/order_messages.proto +11 -10
- package/build/protos/google/ads/admanager/v1/order_service.proto +3 -3
- package/build/protos/google/ads/admanager/v1/placement_service.proto +220 -3
- package/build/protos/google/ads/admanager/v1/private_auction_deal_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/private_auction_service.proto +2 -2
- package/build/protos/google/ads/admanager/v1/programmatic_buyer_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/report_definition.proto +13347 -0
- package/build/protos/google/ads/admanager/v1/report_messages.proto +124 -3411
- package/build/protos/google/ads/admanager/v1/report_service.proto +10 -8
- package/build/protos/google/ads/admanager/v1/report_value.proto +73 -0
- package/build/protos/google/ads/admanager/v1/role_service.proto +3 -2
- package/build/protos/google/ads/admanager/v1/site_enums.proto +72 -0
- package/build/protos/google/ads/admanager/v1/site_messages.proto +77 -0
- package/build/protos/google/ads/admanager/v1/site_service.proto +295 -0
- package/build/protos/google/ads/admanager/v1/targeting.proto +311 -0
- package/build/protos/google/ads/admanager/v1/taxonomy_category_service.proto +1 -1
- package/build/protos/google/ads/admanager/v1/taxonomy_type_enum.proto +3 -0
- package/build/protos/google/ads/admanager/v1/team_enums.proto +62 -0
- package/build/protos/google/ads/admanager/v1/team_messages.proto +30 -0
- package/build/protos/google/ads/admanager/v1/team_service.proto +303 -0
- package/build/protos/google/ads/admanager/v1/web_property.proto +54 -0
- package/build/protos/protos.d.ts +34075 -11179
- package/build/protos/protos.js +102857 -43311
- package/build/protos/protos.json +11142 -3881
- package/build/src/index.d.ts +61 -1
- package/build/src/index.js +43 -3
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +465 -0
- package/build/src/v1/ad_break_service_client.js +659 -1
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +54 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +1634 -0
- package/build/src/v1/ad_review_center_ad_service_client.js +2327 -0
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -0
- package/build/src/v1/ad_review_center_ad_service_client_config.json +38 -0
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +127 -0
- package/build/src/v1/ad_unit_service_client.d.ts +667 -12
- package/build/src/v1/ad_unit_service_client.js +966 -56
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_client_config.json +28 -0
- package/build/src/v1/ad_unit_service_proto_list.json +54 -1
- package/build/src/v1/application_service_client.d.ts +1369 -0
- package/build/src/v1/application_service_client.js +2027 -0
- package/build/src/v1/application_service_client.js.map +1 -0
- package/build/src/v1/application_service_client_config.json +34 -0
- package/build/src/v1/application_service_proto_list.json +127 -0
- package/build/src/v1/audience_segment_service_client.d.ts +1369 -0
- package/build/src/v1/audience_segment_service_client.js +2027 -0
- package/build/src/v1/audience_segment_service_client.js.map +1 -0
- package/build/src/v1/audience_segment_service_client_config.json +34 -0
- package/build/src/v1/audience_segment_service_proto_list.json +127 -0
- package/build/src/v1/bandwidth_group_service_client.d.ts +471 -6
- package/build/src/v1/bandwidth_group_service_client.js +663 -5
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +54 -1
- package/build/src/v1/browser_language_service_client.d.ts +1369 -0
- package/build/src/v1/browser_language_service_client.js +2027 -0
- package/build/src/v1/browser_language_service_client.js.map +1 -0
- package/build/src/v1/browser_language_service_client_config.json +34 -0
- package/build/src/v1/browser_language_service_proto_list.json +127 -0
- package/build/src/v1/browser_service_client.d.ts +1369 -0
- package/build/src/v1/browser_service_client.js +2027 -0
- package/build/src/v1/browser_service_client.js.map +1 -0
- package/build/src/v1/browser_service_client_config.json +34 -0
- package/build/src/v1/browser_service_proto_list.json +127 -0
- package/build/src/v1/cms_metadata_key_service_client.d.ts +1369 -0
- package/build/src/v1/cms_metadata_key_service_client.js +2027 -0
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -0
- package/build/src/v1/cms_metadata_key_service_client_config.json +34 -0
- package/build/src/v1/cms_metadata_key_service_proto_list.json +127 -0
- package/build/src/v1/cms_metadata_value_service_client.d.ts +1369 -0
- package/build/src/v1/cms_metadata_value_service_client.js +2027 -0
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -0
- package/build/src/v1/cms_metadata_value_service_client_config.json +34 -0
- package/build/src/v1/cms_metadata_value_service_proto_list.json +127 -0
- package/build/src/v1/company_service_client.d.ts +471 -6
- package/build/src/v1/company_service_client.js +663 -5
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +54 -1
- package/build/src/v1/contact_service_client.d.ts +1480 -0
- package/build/src/v1/contact_service_client.js +2171 -0
- package/build/src/v1/contact_service_client.js.map +1 -0
- package/build/src/v1/contact_service_client_config.json +50 -0
- package/build/src/v1/contact_service_proto_list.json +127 -0
- package/build/src/v1/content_bundle_service_client.d.ts +1369 -0
- package/build/src/v1/content_bundle_service_client.js +2027 -0
- package/build/src/v1/content_bundle_service_client.js.map +1 -0
- package/build/src/v1/content_bundle_service_client_config.json +34 -0
- package/build/src/v1/content_bundle_service_proto_list.json +127 -0
- package/build/src/v1/content_label_service_client.d.ts +1369 -0
- package/build/src/v1/content_label_service_client.js +2027 -0
- package/build/src/v1/content_label_service_client.js.map +1 -0
- package/build/src/v1/content_label_service_client_config.json +34 -0
- package/build/src/v1/content_label_service_proto_list.json +127 -0
- package/build/src/v1/content_service_client.d.ts +1369 -0
- package/build/src/v1/content_service_client.js +2027 -0
- package/build/src/v1/content_service_client.js.map +1 -0
- package/build/src/v1/content_service_client_config.json +34 -0
- package/build/src/v1/content_service_proto_list.json +127 -0
- package/build/src/v1/creative_template_service_client.d.ts +1369 -0
- package/build/src/v1/creative_template_service_client.js +2027 -0
- package/build/src/v1/creative_template_service_client.js.map +1 -0
- package/build/src/v1/creative_template_service_client_config.json +34 -0
- package/build/src/v1/creative_template_service_proto_list.json +127 -0
- package/build/src/v1/custom_field_service_client.d.ts +634 -6
- package/build/src/v1/custom_field_service_client.js +880 -6
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_client_config.json +24 -0
- package/build/src/v1/custom_field_service_proto_list.json +54 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +631 -0
- package/build/src/v1/custom_targeting_key_service_client.js +876 -2
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_client_config.json +24 -0
- package/build/src/v1/custom_targeting_key_service_proto_list.json +54 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +465 -0
- package/build/src/v1/custom_targeting_value_service_client.js +659 -1
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +54 -1
- package/build/src/v1/device_capability_service_client.d.ts +1369 -0
- package/build/src/v1/device_capability_service_client.js +2027 -0
- package/build/src/v1/device_capability_service_client.js.map +1 -0
- package/build/src/v1/device_capability_service_client_config.json +34 -0
- package/build/src/v1/device_capability_service_proto_list.json +127 -0
- package/build/src/v1/device_category_service_client.d.ts +468 -3
- package/build/src/v1/device_category_service_client.js +661 -3
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +54 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +1370 -0
- package/build/src/v1/device_manufacturer_service_client.js +2027 -0
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -0
- package/build/src/v1/device_manufacturer_service_client_config.json +34 -0
- package/build/src/v1/device_manufacturer_service_proto_list.json +127 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +465 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +659 -1
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +54 -1
- package/build/src/v1/gapic_metadata.json +1200 -6
- package/build/src/v1/geo_target_service_client.d.ts +471 -6
- package/build/src/v1/geo_target_service_client.js +663 -5
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +54 -1
- package/build/src/v1/index.d.ts +20 -0
- package/build/src/v1/index.js +42 -2
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/line_item_service_client.d.ts +1369 -0
- package/build/src/v1/line_item_service_client.js +2027 -0
- package/build/src/v1/line_item_service_client.js.map +1 -0
- package/build/src/v1/line_item_service_client_config.json +34 -0
- package/build/src/v1/line_item_service_proto_list.json +127 -0
- package/build/src/v1/mobile_carrier_service_client.d.ts +1369 -0
- package/build/src/v1/mobile_carrier_service_client.js +2027 -0
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -0
- package/build/src/v1/mobile_carrier_service_client_config.json +34 -0
- package/build/src/v1/mobile_carrier_service_proto_list.json +127 -0
- package/build/src/v1/mobile_device_service_client.d.ts +1369 -0
- package/build/src/v1/mobile_device_service_client.js +2027 -0
- package/build/src/v1/mobile_device_service_client.js.map +1 -0
- package/build/src/v1/mobile_device_service_client_config.json +34 -0
- package/build/src/v1/mobile_device_service_proto_list.json +127 -0
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +1376 -0
- package/build/src/v1/mobile_device_submodel_service_client.js +2031 -0
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -0
- package/build/src/v1/mobile_device_submodel_service_client_config.json +34 -0
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +127 -0
- package/build/src/v1/network_service_client.d.ts +555 -12
- package/build/src/v1/network_service_client.js +757 -16
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +54 -1
- package/build/src/v1/operating_system_service_client.d.ts +468 -3
- package/build/src/v1/operating_system_service_client.js +661 -3
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +54 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +468 -3
- package/build/src/v1/operating_system_version_service_client.js +661 -3
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +54 -1
- package/build/src/v1/order_service_client.d.ts +471 -6
- package/build/src/v1/order_service_client.js +663 -5
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +54 -1
- package/build/src/v1/placement_service_client.d.ts +662 -6
- package/build/src/v1/placement_service_client.js +962 -52
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_client_config.json +28 -0
- package/build/src/v1/placement_service_proto_list.json +54 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +468 -3
- package/build/src/v1/private_auction_deal_service_client.js +661 -3
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +54 -1
- package/build/src/v1/private_auction_service_client.d.ts +468 -3
- package/build/src/v1/private_auction_service_client.js +661 -3
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +54 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +465 -0
- package/build/src/v1/programmatic_buyer_service_client.js +659 -1
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +54 -1
- package/build/src/v1/report_service_client.d.ts +485 -17
- package/build/src/v1/report_service_client.js +669 -9
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +54 -1
- package/build/src/v1/role_service_client.d.ts +471 -3
- package/build/src/v1/role_service_client.js +663 -3
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +54 -1
- package/build/src/v1/site_service_client.d.ts +1530 -0
- package/build/src/v1/site_service_client.js +2243 -0
- package/build/src/v1/site_service_client.js.map +1 -0
- package/build/src/v1/site_service_client_config.json +58 -0
- package/build/src/v1/site_service_proto_list.json +127 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +465 -0
- package/build/src/v1/taxonomy_category_service_client.js +659 -1
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +54 -1
- package/build/src/v1/team_service_client.d.ts +1532 -0
- package/build/src/v1/team_service_client.js +2243 -0
- package/build/src/v1/team_service_client.js.map +1 -0
- package/build/src/v1/team_service_client_config.json +58 -0
- package/build/src/v1/team_service_proto_list.json +127 -0
- package/build/src/v1/user_service_client.d.ts +465 -0
- package/build/src/v1/user_service_client.js +659 -1
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +54 -1
- package/package.json +10 -2
- package/LICENSE +0 -202
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Copyright
|
|
2
|
+
// Copyright 2026 Google LLC
|
|
3
3
|
//
|
|
4
4
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
5
|
// you may not use this file except in compliance with the License.
|
|
@@ -168,18 +168,35 @@ class AdUnitServiceClient {
|
|
|
168
168
|
// Create useful helper objects for these.
|
|
169
169
|
this.pathTemplates = {
|
|
170
170
|
adBreakPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEventsByAssetKey/{asset_key}/adBreaks/{ad_break}'),
|
|
171
|
+
adReviewCenterAdPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property_code}/adReviewCenterAds/{ad_review_center_ad}'),
|
|
171
172
|
adUnitPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/adUnits/{ad_unit}'),
|
|
173
|
+
applicationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/applications/{application}'),
|
|
174
|
+
audienceSegmentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/audienceSegments/{audience_segment}'),
|
|
172
175
|
bandwidthGroupPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/bandwidthGroups/{bandwidth_group}'),
|
|
176
|
+
browserPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browsers/{browser}'),
|
|
177
|
+
browserLanguagePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/browserLanguages/{browser_language}'),
|
|
178
|
+
cmsMetadataKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataKeys/{cms_metadata_key}'),
|
|
179
|
+
cmsMetadataValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/cmsMetadataValues/{cms_metadata_value}'),
|
|
173
180
|
companyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/companies/{company}'),
|
|
174
181
|
contactPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contacts/{contact}'),
|
|
182
|
+
contentPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/content/{content}'),
|
|
183
|
+
contentBundlePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentBundles/{content_bundle}'),
|
|
184
|
+
contentLabelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/contentLabels/{content_label}'),
|
|
185
|
+
creativeTemplatePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/creativeTemplates/{creative_template}'),
|
|
175
186
|
customFieldPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customFields/{custom_field}'),
|
|
176
187
|
customTargetingKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingKeys/{custom_targeting_key}'),
|
|
177
188
|
customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
|
|
189
|
+
deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
|
|
178
190
|
deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
|
|
191
|
+
deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
|
|
179
192
|
entitySignalsMappingPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/entitySignalsMappings/{entity_signals_mapping}'),
|
|
180
193
|
geoTargetPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/geoTargets/{geo_target}'),
|
|
181
194
|
labelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/labels/{label}'),
|
|
195
|
+
lineItemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/lineItems/{line_item}'),
|
|
182
196
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
197
|
+
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
198
|
+
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
199
|
+
mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
|
|
183
200
|
networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
|
|
184
201
|
operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
|
|
185
202
|
operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
|
|
@@ -190,9 +207,11 @@ class AdUnitServiceClient {
|
|
|
190
207
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
191
208
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
192
209
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
210
|
+
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
193
211
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
194
212
|
teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
|
|
195
213
|
userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
|
|
214
|
+
webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
|
|
196
215
|
};
|
|
197
216
|
// Some of the methods on this service return "paged" results,
|
|
198
217
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
@@ -234,7 +253,7 @@ class AdUnitServiceClient {
|
|
|
234
253
|
this._protos.google.ads.admanager.v1.AdUnitService, this._opts, this._providedCustomServicePath);
|
|
235
254
|
// Iterate over each of the methods that the service provides
|
|
236
255
|
// and create an API call method for each.
|
|
237
|
-
const adUnitServiceStubMethods = ['getAdUnit', 'listAdUnits', 'listAdUnitSizes'];
|
|
256
|
+
const adUnitServiceStubMethods = ['getAdUnit', 'listAdUnits', 'listAdUnitSizes', 'createAdUnit', 'updateAdUnit', 'batchCreateAdUnits', 'batchUpdateAdUnits', 'batchActivateAdUnits', 'batchDeactivateAdUnits', 'batchArchiveAdUnits'];
|
|
238
257
|
for (const methodName of adUnitServiceStubMethods) {
|
|
239
258
|
const callPromise = this.adUnitServiceStub.then(stub => (...args) => {
|
|
240
259
|
if (this._terminated) {
|
|
@@ -348,6 +367,258 @@ class AdUnitServiceClient {
|
|
|
348
367
|
throw error;
|
|
349
368
|
});
|
|
350
369
|
}
|
|
370
|
+
createAdUnit(request, optionsOrCallback, callback) {
|
|
371
|
+
request = request || {};
|
|
372
|
+
let options;
|
|
373
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
374
|
+
callback = optionsOrCallback;
|
|
375
|
+
options = {};
|
|
376
|
+
}
|
|
377
|
+
else {
|
|
378
|
+
options = optionsOrCallback;
|
|
379
|
+
}
|
|
380
|
+
options = options || {};
|
|
381
|
+
options.otherArgs = options.otherArgs || {};
|
|
382
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
383
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
384
|
+
'parent': request.parent ?? '',
|
|
385
|
+
});
|
|
386
|
+
this.initialize().catch(err => { throw err; });
|
|
387
|
+
this._log.info('createAdUnit request %j', request);
|
|
388
|
+
const wrappedCallback = callback
|
|
389
|
+
? (error, response, options, rawResponse) => {
|
|
390
|
+
this._log.info('createAdUnit response %j', response);
|
|
391
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
392
|
+
}
|
|
393
|
+
: undefined;
|
|
394
|
+
return this.innerApiCalls.createAdUnit(request, options, wrappedCallback)
|
|
395
|
+
?.then(([response, options, rawResponse]) => {
|
|
396
|
+
this._log.info('createAdUnit response %j', response);
|
|
397
|
+
return [response, options, rawResponse];
|
|
398
|
+
}).catch((error) => {
|
|
399
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
400
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
401
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
402
|
+
}
|
|
403
|
+
throw error;
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
updateAdUnit(request, optionsOrCallback, callback) {
|
|
407
|
+
request = request || {};
|
|
408
|
+
let options;
|
|
409
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
410
|
+
callback = optionsOrCallback;
|
|
411
|
+
options = {};
|
|
412
|
+
}
|
|
413
|
+
else {
|
|
414
|
+
options = optionsOrCallback;
|
|
415
|
+
}
|
|
416
|
+
options = options || {};
|
|
417
|
+
options.otherArgs = options.otherArgs || {};
|
|
418
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
419
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
420
|
+
'ad_unit.name': request.adUnit.name ?? '',
|
|
421
|
+
});
|
|
422
|
+
this.initialize().catch(err => { throw err; });
|
|
423
|
+
this._log.info('updateAdUnit request %j', request);
|
|
424
|
+
const wrappedCallback = callback
|
|
425
|
+
? (error, response, options, rawResponse) => {
|
|
426
|
+
this._log.info('updateAdUnit response %j', response);
|
|
427
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
428
|
+
}
|
|
429
|
+
: undefined;
|
|
430
|
+
return this.innerApiCalls.updateAdUnit(request, options, wrappedCallback)
|
|
431
|
+
?.then(([response, options, rawResponse]) => {
|
|
432
|
+
this._log.info('updateAdUnit response %j', response);
|
|
433
|
+
return [response, options, rawResponse];
|
|
434
|
+
}).catch((error) => {
|
|
435
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
436
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
437
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
438
|
+
}
|
|
439
|
+
throw error;
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
batchCreateAdUnits(request, optionsOrCallback, callback) {
|
|
443
|
+
request = request || {};
|
|
444
|
+
let options;
|
|
445
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
446
|
+
callback = optionsOrCallback;
|
|
447
|
+
options = {};
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
options = optionsOrCallback;
|
|
451
|
+
}
|
|
452
|
+
options = options || {};
|
|
453
|
+
options.otherArgs = options.otherArgs || {};
|
|
454
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
455
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
456
|
+
'parent': request.parent ?? '',
|
|
457
|
+
});
|
|
458
|
+
this.initialize().catch(err => { throw err; });
|
|
459
|
+
this._log.info('batchCreateAdUnits request %j', request);
|
|
460
|
+
const wrappedCallback = callback
|
|
461
|
+
? (error, response, options, rawResponse) => {
|
|
462
|
+
this._log.info('batchCreateAdUnits response %j', response);
|
|
463
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
464
|
+
}
|
|
465
|
+
: undefined;
|
|
466
|
+
return this.innerApiCalls.batchCreateAdUnits(request, options, wrappedCallback)
|
|
467
|
+
?.then(([response, options, rawResponse]) => {
|
|
468
|
+
this._log.info('batchCreateAdUnits response %j', response);
|
|
469
|
+
return [response, options, rawResponse];
|
|
470
|
+
}).catch((error) => {
|
|
471
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
472
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
473
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
474
|
+
}
|
|
475
|
+
throw error;
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
batchUpdateAdUnits(request, optionsOrCallback, callback) {
|
|
479
|
+
request = request || {};
|
|
480
|
+
let options;
|
|
481
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
482
|
+
callback = optionsOrCallback;
|
|
483
|
+
options = {};
|
|
484
|
+
}
|
|
485
|
+
else {
|
|
486
|
+
options = optionsOrCallback;
|
|
487
|
+
}
|
|
488
|
+
options = options || {};
|
|
489
|
+
options.otherArgs = options.otherArgs || {};
|
|
490
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
491
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
492
|
+
'parent': request.parent ?? '',
|
|
493
|
+
});
|
|
494
|
+
this.initialize().catch(err => { throw err; });
|
|
495
|
+
this._log.info('batchUpdateAdUnits request %j', request);
|
|
496
|
+
const wrappedCallback = callback
|
|
497
|
+
? (error, response, options, rawResponse) => {
|
|
498
|
+
this._log.info('batchUpdateAdUnits response %j', response);
|
|
499
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
500
|
+
}
|
|
501
|
+
: undefined;
|
|
502
|
+
return this.innerApiCalls.batchUpdateAdUnits(request, options, wrappedCallback)
|
|
503
|
+
?.then(([response, options, rawResponse]) => {
|
|
504
|
+
this._log.info('batchUpdateAdUnits response %j', response);
|
|
505
|
+
return [response, options, rawResponse];
|
|
506
|
+
}).catch((error) => {
|
|
507
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
508
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
509
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
510
|
+
}
|
|
511
|
+
throw error;
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
batchActivateAdUnits(request, optionsOrCallback, callback) {
|
|
515
|
+
request = request || {};
|
|
516
|
+
let options;
|
|
517
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
518
|
+
callback = optionsOrCallback;
|
|
519
|
+
options = {};
|
|
520
|
+
}
|
|
521
|
+
else {
|
|
522
|
+
options = optionsOrCallback;
|
|
523
|
+
}
|
|
524
|
+
options = options || {};
|
|
525
|
+
options.otherArgs = options.otherArgs || {};
|
|
526
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
527
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
528
|
+
'parent': request.parent ?? '',
|
|
529
|
+
});
|
|
530
|
+
this.initialize().catch(err => { throw err; });
|
|
531
|
+
this._log.info('batchActivateAdUnits request %j', request);
|
|
532
|
+
const wrappedCallback = callback
|
|
533
|
+
? (error, response, options, rawResponse) => {
|
|
534
|
+
this._log.info('batchActivateAdUnits response %j', response);
|
|
535
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
536
|
+
}
|
|
537
|
+
: undefined;
|
|
538
|
+
return this.innerApiCalls.batchActivateAdUnits(request, options, wrappedCallback)
|
|
539
|
+
?.then(([response, options, rawResponse]) => {
|
|
540
|
+
this._log.info('batchActivateAdUnits response %j', response);
|
|
541
|
+
return [response, options, rawResponse];
|
|
542
|
+
}).catch((error) => {
|
|
543
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
544
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
545
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
546
|
+
}
|
|
547
|
+
throw error;
|
|
548
|
+
});
|
|
549
|
+
}
|
|
550
|
+
batchDeactivateAdUnits(request, optionsOrCallback, callback) {
|
|
551
|
+
request = request || {};
|
|
552
|
+
let options;
|
|
553
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
554
|
+
callback = optionsOrCallback;
|
|
555
|
+
options = {};
|
|
556
|
+
}
|
|
557
|
+
else {
|
|
558
|
+
options = optionsOrCallback;
|
|
559
|
+
}
|
|
560
|
+
options = options || {};
|
|
561
|
+
options.otherArgs = options.otherArgs || {};
|
|
562
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
563
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
564
|
+
'parent': request.parent ?? '',
|
|
565
|
+
});
|
|
566
|
+
this.initialize().catch(err => { throw err; });
|
|
567
|
+
this._log.info('batchDeactivateAdUnits request %j', request);
|
|
568
|
+
const wrappedCallback = callback
|
|
569
|
+
? (error, response, options, rawResponse) => {
|
|
570
|
+
this._log.info('batchDeactivateAdUnits response %j', response);
|
|
571
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
572
|
+
}
|
|
573
|
+
: undefined;
|
|
574
|
+
return this.innerApiCalls.batchDeactivateAdUnits(request, options, wrappedCallback)
|
|
575
|
+
?.then(([response, options, rawResponse]) => {
|
|
576
|
+
this._log.info('batchDeactivateAdUnits response %j', response);
|
|
577
|
+
return [response, options, rawResponse];
|
|
578
|
+
}).catch((error) => {
|
|
579
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
580
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
581
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
582
|
+
}
|
|
583
|
+
throw error;
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
batchArchiveAdUnits(request, optionsOrCallback, callback) {
|
|
587
|
+
request = request || {};
|
|
588
|
+
let options;
|
|
589
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
590
|
+
callback = optionsOrCallback;
|
|
591
|
+
options = {};
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
options = optionsOrCallback;
|
|
595
|
+
}
|
|
596
|
+
options = options || {};
|
|
597
|
+
options.otherArgs = options.otherArgs || {};
|
|
598
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
599
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
600
|
+
'parent': request.parent ?? '',
|
|
601
|
+
});
|
|
602
|
+
this.initialize().catch(err => { throw err; });
|
|
603
|
+
this._log.info('batchArchiveAdUnits request %j', request);
|
|
604
|
+
const wrappedCallback = callback
|
|
605
|
+
? (error, response, options, rawResponse) => {
|
|
606
|
+
this._log.info('batchArchiveAdUnits response %j', response);
|
|
607
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
608
|
+
}
|
|
609
|
+
: undefined;
|
|
610
|
+
return this.innerApiCalls.batchArchiveAdUnits(request, options, wrappedCallback)
|
|
611
|
+
?.then(([response, options, rawResponse]) => {
|
|
612
|
+
this._log.info('batchArchiveAdUnits response %j', response);
|
|
613
|
+
return [response, options, rawResponse];
|
|
614
|
+
}).catch((error) => {
|
|
615
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
616
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
617
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
618
|
+
}
|
|
619
|
+
throw error;
|
|
620
|
+
});
|
|
621
|
+
}
|
|
351
622
|
listAdUnits(request, optionsOrCallback, callback) {
|
|
352
623
|
request = request || {};
|
|
353
624
|
let options;
|
|
@@ -389,8 +660,8 @@ class AdUnitServiceClient {
|
|
|
389
660
|
* @param {number} [request.pageSize]
|
|
390
661
|
* Optional. The maximum number of AdUnits to return. The service may return
|
|
391
662
|
* fewer than this value. If unspecified, at most 50 ad units will be
|
|
392
|
-
* returned. The maximum value is 1000; values
|
|
393
|
-
* 1000.
|
|
663
|
+
* returned. The maximum value is 1000; values greater than 1000 will be
|
|
664
|
+
* coerced to 1000.
|
|
394
665
|
* @param {string} [request.pageToken]
|
|
395
666
|
* Optional. A page token, received from a previous `ListAdUnits` call.
|
|
396
667
|
* Provide this to retrieve the subsequent page.
|
|
@@ -444,8 +715,8 @@ class AdUnitServiceClient {
|
|
|
444
715
|
* @param {number} [request.pageSize]
|
|
445
716
|
* Optional. The maximum number of AdUnits to return. The service may return
|
|
446
717
|
* fewer than this value. If unspecified, at most 50 ad units will be
|
|
447
|
-
* returned. The maximum value is 1000; values
|
|
448
|
-
* 1000.
|
|
718
|
+
* returned. The maximum value is 1000; values greater than 1000 will be
|
|
719
|
+
* coerced to 1000.
|
|
449
720
|
* @param {string} [request.pageToken]
|
|
450
721
|
* Optional. A page token, received from a previous `ListAdUnits` call.
|
|
451
722
|
* Provide this to retrieve the subsequent page.
|
|
@@ -529,8 +800,8 @@ class AdUnitServiceClient {
|
|
|
529
800
|
* @param {number} [request.pageSize]
|
|
530
801
|
* Optional. The maximum number of AdUnitSizes to return. The service may
|
|
531
802
|
* return fewer than this value. If unspecified, at most 50 ad unit sizes will
|
|
532
|
-
* be returned. The maximum value is 1000; values
|
|
533
|
-
* to 1000.
|
|
803
|
+
* be returned. The maximum value is 1000; values greater than 1000 will be
|
|
804
|
+
* coerced to 1000.
|
|
534
805
|
* @param {string} [request.pageToken]
|
|
535
806
|
* Optional. A page token, received from a previous `ListAdUnitSizes` call.
|
|
536
807
|
* Provide this to retrieve the subsequent page.
|
|
@@ -584,8 +855,8 @@ class AdUnitServiceClient {
|
|
|
584
855
|
* @param {number} [request.pageSize]
|
|
585
856
|
* Optional. The maximum number of AdUnitSizes to return. The service may
|
|
586
857
|
* return fewer than this value. If unspecified, at most 50 ad unit sizes will
|
|
587
|
-
* be returned. The maximum value is 1000; values
|
|
588
|
-
* to 1000.
|
|
858
|
+
* be returned. The maximum value is 1000; values greater than 1000 will be
|
|
859
|
+
* coerced to 1000.
|
|
589
860
|
* @param {string} [request.pageToken]
|
|
590
861
|
* Optional. A page token, received from a previous `ListAdUnitSizes` call.
|
|
591
862
|
* Provide this to retrieve the subsequent page.
|
|
@@ -653,94 +924,337 @@ class AdUnitServiceClient {
|
|
|
653
924
|
* A fully-qualified path representing AdBreak resource.
|
|
654
925
|
* @returns {string} A string representing the network_code.
|
|
655
926
|
*/
|
|
656
|
-
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
657
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
927
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
928
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Parse the asset_key from AdBreak resource.
|
|
932
|
+
*
|
|
933
|
+
* @param {string} adBreakName
|
|
934
|
+
* A fully-qualified path representing AdBreak resource.
|
|
935
|
+
* @returns {string} A string representing the asset_key.
|
|
936
|
+
*/
|
|
937
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
938
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
939
|
+
}
|
|
940
|
+
/**
|
|
941
|
+
* Parse the ad_break from AdBreak resource.
|
|
942
|
+
*
|
|
943
|
+
* @param {string} adBreakName
|
|
944
|
+
* A fully-qualified path representing AdBreak resource.
|
|
945
|
+
* @returns {string} A string representing the ad_break.
|
|
946
|
+
*/
|
|
947
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
948
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
949
|
+
}
|
|
950
|
+
/**
|
|
951
|
+
* Return a fully-qualified adReviewCenterAd resource name string.
|
|
952
|
+
*
|
|
953
|
+
* @param {string} network_code
|
|
954
|
+
* @param {string} web_property_code
|
|
955
|
+
* @param {string} ad_review_center_ad
|
|
956
|
+
* @returns {string} Resource name string.
|
|
957
|
+
*/
|
|
958
|
+
adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
|
|
959
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.render({
|
|
960
|
+
network_code: networkCode,
|
|
961
|
+
web_property_code: webPropertyCode,
|
|
962
|
+
ad_review_center_ad: adReviewCenterAd,
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Parse the network_code from AdReviewCenterAd resource.
|
|
967
|
+
*
|
|
968
|
+
* @param {string} adReviewCenterAdName
|
|
969
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
970
|
+
* @returns {string} A string representing the network_code.
|
|
971
|
+
*/
|
|
972
|
+
matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
973
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Parse the web_property_code from AdReviewCenterAd resource.
|
|
977
|
+
*
|
|
978
|
+
* @param {string} adReviewCenterAdName
|
|
979
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
980
|
+
* @returns {string} A string representing the web_property_code.
|
|
981
|
+
*/
|
|
982
|
+
matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
983
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Parse the ad_review_center_ad from AdReviewCenterAd resource.
|
|
987
|
+
*
|
|
988
|
+
* @param {string} adReviewCenterAdName
|
|
989
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
990
|
+
* @returns {string} A string representing the ad_review_center_ad.
|
|
991
|
+
*/
|
|
992
|
+
matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
993
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
|
|
994
|
+
}
|
|
995
|
+
/**
|
|
996
|
+
* Return a fully-qualified adUnit resource name string.
|
|
997
|
+
*
|
|
998
|
+
* @param {string} network_code
|
|
999
|
+
* @param {string} ad_unit
|
|
1000
|
+
* @returns {string} Resource name string.
|
|
1001
|
+
*/
|
|
1002
|
+
adUnitPath(networkCode, adUnit) {
|
|
1003
|
+
return this.pathTemplates.adUnitPathTemplate.render({
|
|
1004
|
+
network_code: networkCode,
|
|
1005
|
+
ad_unit: adUnit,
|
|
1006
|
+
});
|
|
1007
|
+
}
|
|
1008
|
+
/**
|
|
1009
|
+
* Parse the network_code from AdUnit resource.
|
|
1010
|
+
*
|
|
1011
|
+
* @param {string} adUnitName
|
|
1012
|
+
* A fully-qualified path representing AdUnit resource.
|
|
1013
|
+
* @returns {string} A string representing the network_code.
|
|
1014
|
+
*/
|
|
1015
|
+
matchNetworkCodeFromAdUnitName(adUnitName) {
|
|
1016
|
+
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
|
|
1017
|
+
}
|
|
1018
|
+
/**
|
|
1019
|
+
* Parse the ad_unit from AdUnit resource.
|
|
1020
|
+
*
|
|
1021
|
+
* @param {string} adUnitName
|
|
1022
|
+
* A fully-qualified path representing AdUnit resource.
|
|
1023
|
+
* @returns {string} A string representing the ad_unit.
|
|
1024
|
+
*/
|
|
1025
|
+
matchAdUnitFromAdUnitName(adUnitName) {
|
|
1026
|
+
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Return a fully-qualified application resource name string.
|
|
1030
|
+
*
|
|
1031
|
+
* @param {string} network_code
|
|
1032
|
+
* @param {string} application
|
|
1033
|
+
* @returns {string} Resource name string.
|
|
1034
|
+
*/
|
|
1035
|
+
applicationPath(networkCode, application) {
|
|
1036
|
+
return this.pathTemplates.applicationPathTemplate.render({
|
|
1037
|
+
network_code: networkCode,
|
|
1038
|
+
application: application,
|
|
1039
|
+
});
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Parse the network_code from Application resource.
|
|
1043
|
+
*
|
|
1044
|
+
* @param {string} applicationName
|
|
1045
|
+
* A fully-qualified path representing Application resource.
|
|
1046
|
+
* @returns {string} A string representing the network_code.
|
|
1047
|
+
*/
|
|
1048
|
+
matchNetworkCodeFromApplicationName(applicationName) {
|
|
1049
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Parse the application from Application resource.
|
|
1053
|
+
*
|
|
1054
|
+
* @param {string} applicationName
|
|
1055
|
+
* A fully-qualified path representing Application resource.
|
|
1056
|
+
* @returns {string} A string representing the application.
|
|
1057
|
+
*/
|
|
1058
|
+
matchApplicationFromApplicationName(applicationName) {
|
|
1059
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
|
|
1060
|
+
}
|
|
1061
|
+
/**
|
|
1062
|
+
* Return a fully-qualified audienceSegment resource name string.
|
|
1063
|
+
*
|
|
1064
|
+
* @param {string} network_code
|
|
1065
|
+
* @param {string} audience_segment
|
|
1066
|
+
* @returns {string} Resource name string.
|
|
1067
|
+
*/
|
|
1068
|
+
audienceSegmentPath(networkCode, audienceSegment) {
|
|
1069
|
+
return this.pathTemplates.audienceSegmentPathTemplate.render({
|
|
1070
|
+
network_code: networkCode,
|
|
1071
|
+
audience_segment: audienceSegment,
|
|
1072
|
+
});
|
|
1073
|
+
}
|
|
1074
|
+
/**
|
|
1075
|
+
* Parse the network_code from AudienceSegment resource.
|
|
1076
|
+
*
|
|
1077
|
+
* @param {string} audienceSegmentName
|
|
1078
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
1079
|
+
* @returns {string} A string representing the network_code.
|
|
1080
|
+
*/
|
|
1081
|
+
matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
|
|
1082
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* Parse the audience_segment from AudienceSegment resource.
|
|
1086
|
+
*
|
|
1087
|
+
* @param {string} audienceSegmentName
|
|
1088
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
1089
|
+
* @returns {string} A string representing the audience_segment.
|
|
1090
|
+
*/
|
|
1091
|
+
matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
|
|
1092
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
|
|
1093
|
+
}
|
|
1094
|
+
/**
|
|
1095
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
1096
|
+
*
|
|
1097
|
+
* @param {string} network_code
|
|
1098
|
+
* @param {string} bandwidth_group
|
|
1099
|
+
* @returns {string} Resource name string.
|
|
1100
|
+
*/
|
|
1101
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
1102
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
1103
|
+
network_code: networkCode,
|
|
1104
|
+
bandwidth_group: bandwidthGroup,
|
|
1105
|
+
});
|
|
1106
|
+
}
|
|
1107
|
+
/**
|
|
1108
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
1109
|
+
*
|
|
1110
|
+
* @param {string} bandwidthGroupName
|
|
1111
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
1112
|
+
* @returns {string} A string representing the network_code.
|
|
1113
|
+
*/
|
|
1114
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
1115
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
1116
|
+
}
|
|
1117
|
+
/**
|
|
1118
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
1119
|
+
*
|
|
1120
|
+
* @param {string} bandwidthGroupName
|
|
1121
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
1122
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
1123
|
+
*/
|
|
1124
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
1125
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
1126
|
+
}
|
|
1127
|
+
/**
|
|
1128
|
+
* Return a fully-qualified browser resource name string.
|
|
1129
|
+
*
|
|
1130
|
+
* @param {string} network_code
|
|
1131
|
+
* @param {string} browser
|
|
1132
|
+
* @returns {string} Resource name string.
|
|
1133
|
+
*/
|
|
1134
|
+
browserPath(networkCode, browser) {
|
|
1135
|
+
return this.pathTemplates.browserPathTemplate.render({
|
|
1136
|
+
network_code: networkCode,
|
|
1137
|
+
browser: browser,
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
/**
|
|
1141
|
+
* Parse the network_code from Browser resource.
|
|
1142
|
+
*
|
|
1143
|
+
* @param {string} browserName
|
|
1144
|
+
* A fully-qualified path representing Browser resource.
|
|
1145
|
+
* @returns {string} A string representing the network_code.
|
|
1146
|
+
*/
|
|
1147
|
+
matchNetworkCodeFromBrowserName(browserName) {
|
|
1148
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
|
|
1149
|
+
}
|
|
1150
|
+
/**
|
|
1151
|
+
* Parse the browser from Browser resource.
|
|
1152
|
+
*
|
|
1153
|
+
* @param {string} browserName
|
|
1154
|
+
* A fully-qualified path representing Browser resource.
|
|
1155
|
+
* @returns {string} A string representing the browser.
|
|
1156
|
+
*/
|
|
1157
|
+
matchBrowserFromBrowserName(browserName) {
|
|
1158
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).browser;
|
|
1159
|
+
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Return a fully-qualified browserLanguage resource name string.
|
|
1162
|
+
*
|
|
1163
|
+
* @param {string} network_code
|
|
1164
|
+
* @param {string} browser_language
|
|
1165
|
+
* @returns {string} Resource name string.
|
|
1166
|
+
*/
|
|
1167
|
+
browserLanguagePath(networkCode, browserLanguage) {
|
|
1168
|
+
return this.pathTemplates.browserLanguagePathTemplate.render({
|
|
1169
|
+
network_code: networkCode,
|
|
1170
|
+
browser_language: browserLanguage,
|
|
1171
|
+
});
|
|
658
1172
|
}
|
|
659
1173
|
/**
|
|
660
|
-
* Parse the
|
|
1174
|
+
* Parse the network_code from BrowserLanguage resource.
|
|
661
1175
|
*
|
|
662
|
-
* @param {string}
|
|
663
|
-
* A fully-qualified path representing
|
|
664
|
-
* @returns {string} A string representing the
|
|
1176
|
+
* @param {string} browserLanguageName
|
|
1177
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
1178
|
+
* @returns {string} A string representing the network_code.
|
|
665
1179
|
*/
|
|
666
|
-
|
|
667
|
-
return this.pathTemplates.
|
|
1180
|
+
matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
|
|
1181
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
|
|
668
1182
|
}
|
|
669
1183
|
/**
|
|
670
|
-
* Parse the
|
|
1184
|
+
* Parse the browser_language from BrowserLanguage resource.
|
|
671
1185
|
*
|
|
672
|
-
* @param {string}
|
|
673
|
-
* A fully-qualified path representing
|
|
674
|
-
* @returns {string} A string representing the
|
|
1186
|
+
* @param {string} browserLanguageName
|
|
1187
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
1188
|
+
* @returns {string} A string representing the browser_language.
|
|
675
1189
|
*/
|
|
676
|
-
|
|
677
|
-
return this.pathTemplates.
|
|
1190
|
+
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1191
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
678
1192
|
}
|
|
679
1193
|
/**
|
|
680
|
-
* Return a fully-qualified
|
|
1194
|
+
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
681
1195
|
*
|
|
682
1196
|
* @param {string} network_code
|
|
683
|
-
* @param {string}
|
|
1197
|
+
* @param {string} cms_metadata_key
|
|
684
1198
|
* @returns {string} Resource name string.
|
|
685
1199
|
*/
|
|
686
|
-
|
|
687
|
-
return this.pathTemplates.
|
|
1200
|
+
cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
|
|
1201
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
|
|
688
1202
|
network_code: networkCode,
|
|
689
|
-
|
|
1203
|
+
cms_metadata_key: cmsMetadataKey,
|
|
690
1204
|
});
|
|
691
1205
|
}
|
|
692
1206
|
/**
|
|
693
|
-
* Parse the network_code from
|
|
1207
|
+
* Parse the network_code from CmsMetadataKey resource.
|
|
694
1208
|
*
|
|
695
|
-
* @param {string}
|
|
696
|
-
* A fully-qualified path representing
|
|
1209
|
+
* @param {string} cmsMetadataKeyName
|
|
1210
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
697
1211
|
* @returns {string} A string representing the network_code.
|
|
698
1212
|
*/
|
|
699
|
-
|
|
700
|
-
return this.pathTemplates.
|
|
1213
|
+
matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
1214
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
|
|
701
1215
|
}
|
|
702
1216
|
/**
|
|
703
|
-
* Parse the
|
|
1217
|
+
* Parse the cms_metadata_key from CmsMetadataKey resource.
|
|
704
1218
|
*
|
|
705
|
-
* @param {string}
|
|
706
|
-
* A fully-qualified path representing
|
|
707
|
-
* @returns {string} A string representing the
|
|
1219
|
+
* @param {string} cmsMetadataKeyName
|
|
1220
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
1221
|
+
* @returns {string} A string representing the cms_metadata_key.
|
|
708
1222
|
*/
|
|
709
|
-
|
|
710
|
-
return this.pathTemplates.
|
|
1223
|
+
matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
1224
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
|
|
711
1225
|
}
|
|
712
1226
|
/**
|
|
713
|
-
* Return a fully-qualified
|
|
1227
|
+
* Return a fully-qualified cmsMetadataValue resource name string.
|
|
714
1228
|
*
|
|
715
1229
|
* @param {string} network_code
|
|
716
|
-
* @param {string}
|
|
1230
|
+
* @param {string} cms_metadata_value
|
|
717
1231
|
* @returns {string} Resource name string.
|
|
718
1232
|
*/
|
|
719
|
-
|
|
720
|
-
return this.pathTemplates.
|
|
1233
|
+
cmsMetadataValuePath(networkCode, cmsMetadataValue) {
|
|
1234
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.render({
|
|
721
1235
|
network_code: networkCode,
|
|
722
|
-
|
|
1236
|
+
cms_metadata_value: cmsMetadataValue,
|
|
723
1237
|
});
|
|
724
1238
|
}
|
|
725
1239
|
/**
|
|
726
|
-
* Parse the network_code from
|
|
1240
|
+
* Parse the network_code from CmsMetadataValue resource.
|
|
727
1241
|
*
|
|
728
|
-
* @param {string}
|
|
729
|
-
* A fully-qualified path representing
|
|
1242
|
+
* @param {string} cmsMetadataValueName
|
|
1243
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
730
1244
|
* @returns {string} A string representing the network_code.
|
|
731
1245
|
*/
|
|
732
|
-
|
|
733
|
-
return this.pathTemplates.
|
|
1246
|
+
matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
1247
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
|
|
734
1248
|
}
|
|
735
1249
|
/**
|
|
736
|
-
* Parse the
|
|
1250
|
+
* Parse the cms_metadata_value from CmsMetadataValue resource.
|
|
737
1251
|
*
|
|
738
|
-
* @param {string}
|
|
739
|
-
* A fully-qualified path representing
|
|
740
|
-
* @returns {string} A string representing the
|
|
1252
|
+
* @param {string} cmsMetadataValueName
|
|
1253
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
1254
|
+
* @returns {string} A string representing the cms_metadata_value.
|
|
741
1255
|
*/
|
|
742
|
-
|
|
743
|
-
return this.pathTemplates.
|
|
1256
|
+
matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
1257
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
|
|
744
1258
|
}
|
|
745
1259
|
/**
|
|
746
1260
|
* Return a fully-qualified company resource name string.
|
|
@@ -808,6 +1322,138 @@ class AdUnitServiceClient {
|
|
|
808
1322
|
matchContactFromContactName(contactName) {
|
|
809
1323
|
return this.pathTemplates.contactPathTemplate.match(contactName).contact;
|
|
810
1324
|
}
|
|
1325
|
+
/**
|
|
1326
|
+
* Return a fully-qualified content resource name string.
|
|
1327
|
+
*
|
|
1328
|
+
* @param {string} network_code
|
|
1329
|
+
* @param {string} content
|
|
1330
|
+
* @returns {string} Resource name string.
|
|
1331
|
+
*/
|
|
1332
|
+
contentPath(networkCode, content) {
|
|
1333
|
+
return this.pathTemplates.contentPathTemplate.render({
|
|
1334
|
+
network_code: networkCode,
|
|
1335
|
+
content: content,
|
|
1336
|
+
});
|
|
1337
|
+
}
|
|
1338
|
+
/**
|
|
1339
|
+
* Parse the network_code from Content resource.
|
|
1340
|
+
*
|
|
1341
|
+
* @param {string} contentName
|
|
1342
|
+
* A fully-qualified path representing Content resource.
|
|
1343
|
+
* @returns {string} A string representing the network_code.
|
|
1344
|
+
*/
|
|
1345
|
+
matchNetworkCodeFromContentName(contentName) {
|
|
1346
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
|
|
1347
|
+
}
|
|
1348
|
+
/**
|
|
1349
|
+
* Parse the content from Content resource.
|
|
1350
|
+
*
|
|
1351
|
+
* @param {string} contentName
|
|
1352
|
+
* A fully-qualified path representing Content resource.
|
|
1353
|
+
* @returns {string} A string representing the content.
|
|
1354
|
+
*/
|
|
1355
|
+
matchContentFromContentName(contentName) {
|
|
1356
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).content;
|
|
1357
|
+
}
|
|
1358
|
+
/**
|
|
1359
|
+
* Return a fully-qualified contentBundle resource name string.
|
|
1360
|
+
*
|
|
1361
|
+
* @param {string} network_code
|
|
1362
|
+
* @param {string} content_bundle
|
|
1363
|
+
* @returns {string} Resource name string.
|
|
1364
|
+
*/
|
|
1365
|
+
contentBundlePath(networkCode, contentBundle) {
|
|
1366
|
+
return this.pathTemplates.contentBundlePathTemplate.render({
|
|
1367
|
+
network_code: networkCode,
|
|
1368
|
+
content_bundle: contentBundle,
|
|
1369
|
+
});
|
|
1370
|
+
}
|
|
1371
|
+
/**
|
|
1372
|
+
* Parse the network_code from ContentBundle resource.
|
|
1373
|
+
*
|
|
1374
|
+
* @param {string} contentBundleName
|
|
1375
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
1376
|
+
* @returns {string} A string representing the network_code.
|
|
1377
|
+
*/
|
|
1378
|
+
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1379
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Parse the content_bundle from ContentBundle resource.
|
|
1383
|
+
*
|
|
1384
|
+
* @param {string} contentBundleName
|
|
1385
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
1386
|
+
* @returns {string} A string representing the content_bundle.
|
|
1387
|
+
*/
|
|
1388
|
+
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1389
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
|
|
1390
|
+
}
|
|
1391
|
+
/**
|
|
1392
|
+
* Return a fully-qualified contentLabel resource name string.
|
|
1393
|
+
*
|
|
1394
|
+
* @param {string} network_code
|
|
1395
|
+
* @param {string} content_label
|
|
1396
|
+
* @returns {string} Resource name string.
|
|
1397
|
+
*/
|
|
1398
|
+
contentLabelPath(networkCode, contentLabel) {
|
|
1399
|
+
return this.pathTemplates.contentLabelPathTemplate.render({
|
|
1400
|
+
network_code: networkCode,
|
|
1401
|
+
content_label: contentLabel,
|
|
1402
|
+
});
|
|
1403
|
+
}
|
|
1404
|
+
/**
|
|
1405
|
+
* Parse the network_code from ContentLabel resource.
|
|
1406
|
+
*
|
|
1407
|
+
* @param {string} contentLabelName
|
|
1408
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
1409
|
+
* @returns {string} A string representing the network_code.
|
|
1410
|
+
*/
|
|
1411
|
+
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1412
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* Parse the content_label from ContentLabel resource.
|
|
1416
|
+
*
|
|
1417
|
+
* @param {string} contentLabelName
|
|
1418
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
1419
|
+
* @returns {string} A string representing the content_label.
|
|
1420
|
+
*/
|
|
1421
|
+
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1422
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* Return a fully-qualified creativeTemplate resource name string.
|
|
1426
|
+
*
|
|
1427
|
+
* @param {string} network_code
|
|
1428
|
+
* @param {string} creative_template
|
|
1429
|
+
* @returns {string} Resource name string.
|
|
1430
|
+
*/
|
|
1431
|
+
creativeTemplatePath(networkCode, creativeTemplate) {
|
|
1432
|
+
return this.pathTemplates.creativeTemplatePathTemplate.render({
|
|
1433
|
+
network_code: networkCode,
|
|
1434
|
+
creative_template: creativeTemplate,
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Parse the network_code from CreativeTemplate resource.
|
|
1439
|
+
*
|
|
1440
|
+
* @param {string} creativeTemplateName
|
|
1441
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1442
|
+
* @returns {string} A string representing the network_code.
|
|
1443
|
+
*/
|
|
1444
|
+
matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
|
|
1445
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
|
|
1446
|
+
}
|
|
1447
|
+
/**
|
|
1448
|
+
* Parse the creative_template from CreativeTemplate resource.
|
|
1449
|
+
*
|
|
1450
|
+
* @param {string} creativeTemplateName
|
|
1451
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1452
|
+
* @returns {string} A string representing the creative_template.
|
|
1453
|
+
*/
|
|
1454
|
+
matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
|
|
1455
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
|
|
1456
|
+
}
|
|
811
1457
|
/**
|
|
812
1458
|
* Return a fully-qualified customField resource name string.
|
|
813
1459
|
*
|
|
@@ -907,6 +1553,39 @@ class AdUnitServiceClient {
|
|
|
907
1553
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
908
1554
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
909
1555
|
}
|
|
1556
|
+
/**
|
|
1557
|
+
* Return a fully-qualified deviceCapability resource name string.
|
|
1558
|
+
*
|
|
1559
|
+
* @param {string} network_code
|
|
1560
|
+
* @param {string} device_capability
|
|
1561
|
+
* @returns {string} Resource name string.
|
|
1562
|
+
*/
|
|
1563
|
+
deviceCapabilityPath(networkCode, deviceCapability) {
|
|
1564
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.render({
|
|
1565
|
+
network_code: networkCode,
|
|
1566
|
+
device_capability: deviceCapability,
|
|
1567
|
+
});
|
|
1568
|
+
}
|
|
1569
|
+
/**
|
|
1570
|
+
* Parse the network_code from DeviceCapability resource.
|
|
1571
|
+
*
|
|
1572
|
+
* @param {string} deviceCapabilityName
|
|
1573
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1574
|
+
* @returns {string} A string representing the network_code.
|
|
1575
|
+
*/
|
|
1576
|
+
matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1577
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
|
|
1578
|
+
}
|
|
1579
|
+
/**
|
|
1580
|
+
* Parse the device_capability from DeviceCapability resource.
|
|
1581
|
+
*
|
|
1582
|
+
* @param {string} deviceCapabilityName
|
|
1583
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1584
|
+
* @returns {string} A string representing the device_capability.
|
|
1585
|
+
*/
|
|
1586
|
+
matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1587
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
|
|
1588
|
+
}
|
|
910
1589
|
/**
|
|
911
1590
|
* Return a fully-qualified deviceCategory resource name string.
|
|
912
1591
|
*
|
|
@@ -940,6 +1619,39 @@ class AdUnitServiceClient {
|
|
|
940
1619
|
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
941
1620
|
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
942
1621
|
}
|
|
1622
|
+
/**
|
|
1623
|
+
* Return a fully-qualified deviceManufacturer resource name string.
|
|
1624
|
+
*
|
|
1625
|
+
* @param {string} network_code
|
|
1626
|
+
* @param {string} device_manufacturer
|
|
1627
|
+
* @returns {string} Resource name string.
|
|
1628
|
+
*/
|
|
1629
|
+
deviceManufacturerPath(networkCode, deviceManufacturer) {
|
|
1630
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.render({
|
|
1631
|
+
network_code: networkCode,
|
|
1632
|
+
device_manufacturer: deviceManufacturer,
|
|
1633
|
+
});
|
|
1634
|
+
}
|
|
1635
|
+
/**
|
|
1636
|
+
* Parse the network_code from DeviceManufacturer resource.
|
|
1637
|
+
*
|
|
1638
|
+
* @param {string} deviceManufacturerName
|
|
1639
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1640
|
+
* @returns {string} A string representing the network_code.
|
|
1641
|
+
*/
|
|
1642
|
+
matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1643
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
|
|
1644
|
+
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Parse the device_manufacturer from DeviceManufacturer resource.
|
|
1647
|
+
*
|
|
1648
|
+
* @param {string} deviceManufacturerName
|
|
1649
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1650
|
+
* @returns {string} A string representing the device_manufacturer.
|
|
1651
|
+
*/
|
|
1652
|
+
matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1653
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
|
|
1654
|
+
}
|
|
943
1655
|
/**
|
|
944
1656
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
945
1657
|
*
|
|
@@ -1039,6 +1751,39 @@ class AdUnitServiceClient {
|
|
|
1039
1751
|
matchLabelFromLabelName(labelName) {
|
|
1040
1752
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
1041
1753
|
}
|
|
1754
|
+
/**
|
|
1755
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1756
|
+
*
|
|
1757
|
+
* @param {string} network_code
|
|
1758
|
+
* @param {string} line_item
|
|
1759
|
+
* @returns {string} Resource name string.
|
|
1760
|
+
*/
|
|
1761
|
+
lineItemPath(networkCode, lineItem) {
|
|
1762
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1763
|
+
network_code: networkCode,
|
|
1764
|
+
line_item: lineItem,
|
|
1765
|
+
});
|
|
1766
|
+
}
|
|
1767
|
+
/**
|
|
1768
|
+
* Parse the network_code from LineItem resource.
|
|
1769
|
+
*
|
|
1770
|
+
* @param {string} lineItemName
|
|
1771
|
+
* A fully-qualified path representing LineItem resource.
|
|
1772
|
+
* @returns {string} A string representing the network_code.
|
|
1773
|
+
*/
|
|
1774
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1775
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).network_code;
|
|
1776
|
+
}
|
|
1777
|
+
/**
|
|
1778
|
+
* Parse the line_item from LineItem resource.
|
|
1779
|
+
*
|
|
1780
|
+
* @param {string} lineItemName
|
|
1781
|
+
* A fully-qualified path representing LineItem resource.
|
|
1782
|
+
* @returns {string} A string representing the line_item.
|
|
1783
|
+
*/
|
|
1784
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1785
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).line_item;
|
|
1786
|
+
}
|
|
1042
1787
|
/**
|
|
1043
1788
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
1044
1789
|
*
|
|
@@ -1072,6 +1817,105 @@ class AdUnitServiceClient {
|
|
|
1072
1817
|
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
1073
1818
|
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
1074
1819
|
}
|
|
1820
|
+
/**
|
|
1821
|
+
* Return a fully-qualified mobileCarrier resource name string.
|
|
1822
|
+
*
|
|
1823
|
+
* @param {string} network_code
|
|
1824
|
+
* @param {string} mobile_carrier
|
|
1825
|
+
* @returns {string} Resource name string.
|
|
1826
|
+
*/
|
|
1827
|
+
mobileCarrierPath(networkCode, mobileCarrier) {
|
|
1828
|
+
return this.pathTemplates.mobileCarrierPathTemplate.render({
|
|
1829
|
+
network_code: networkCode,
|
|
1830
|
+
mobile_carrier: mobileCarrier,
|
|
1831
|
+
});
|
|
1832
|
+
}
|
|
1833
|
+
/**
|
|
1834
|
+
* Parse the network_code from MobileCarrier resource.
|
|
1835
|
+
*
|
|
1836
|
+
* @param {string} mobileCarrierName
|
|
1837
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1838
|
+
* @returns {string} A string representing the network_code.
|
|
1839
|
+
*/
|
|
1840
|
+
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1841
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
|
|
1842
|
+
}
|
|
1843
|
+
/**
|
|
1844
|
+
* Parse the mobile_carrier from MobileCarrier resource.
|
|
1845
|
+
*
|
|
1846
|
+
* @param {string} mobileCarrierName
|
|
1847
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1848
|
+
* @returns {string} A string representing the mobile_carrier.
|
|
1849
|
+
*/
|
|
1850
|
+
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1851
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
|
|
1852
|
+
}
|
|
1853
|
+
/**
|
|
1854
|
+
* Return a fully-qualified mobileDevice resource name string.
|
|
1855
|
+
*
|
|
1856
|
+
* @param {string} network_code
|
|
1857
|
+
* @param {string} mobile_device
|
|
1858
|
+
* @returns {string} Resource name string.
|
|
1859
|
+
*/
|
|
1860
|
+
mobileDevicePath(networkCode, mobileDevice) {
|
|
1861
|
+
return this.pathTemplates.mobileDevicePathTemplate.render({
|
|
1862
|
+
network_code: networkCode,
|
|
1863
|
+
mobile_device: mobileDevice,
|
|
1864
|
+
});
|
|
1865
|
+
}
|
|
1866
|
+
/**
|
|
1867
|
+
* Parse the network_code from MobileDevice resource.
|
|
1868
|
+
*
|
|
1869
|
+
* @param {string} mobileDeviceName
|
|
1870
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1871
|
+
* @returns {string} A string representing the network_code.
|
|
1872
|
+
*/
|
|
1873
|
+
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1874
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
|
|
1875
|
+
}
|
|
1876
|
+
/**
|
|
1877
|
+
* Parse the mobile_device from MobileDevice resource.
|
|
1878
|
+
*
|
|
1879
|
+
* @param {string} mobileDeviceName
|
|
1880
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1881
|
+
* @returns {string} A string representing the mobile_device.
|
|
1882
|
+
*/
|
|
1883
|
+
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1884
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
|
|
1885
|
+
}
|
|
1886
|
+
/**
|
|
1887
|
+
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
1888
|
+
*
|
|
1889
|
+
* @param {string} network_code
|
|
1890
|
+
* @param {string} mobile_device_submodel
|
|
1891
|
+
* @returns {string} Resource name string.
|
|
1892
|
+
*/
|
|
1893
|
+
mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
|
|
1894
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
|
|
1895
|
+
network_code: networkCode,
|
|
1896
|
+
mobile_device_submodel: mobileDeviceSubmodel,
|
|
1897
|
+
});
|
|
1898
|
+
}
|
|
1899
|
+
/**
|
|
1900
|
+
* Parse the network_code from MobileDeviceSubmodel resource.
|
|
1901
|
+
*
|
|
1902
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1903
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1904
|
+
* @returns {string} A string representing the network_code.
|
|
1905
|
+
*/
|
|
1906
|
+
matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1907
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
|
|
1908
|
+
}
|
|
1909
|
+
/**
|
|
1910
|
+
* Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
|
|
1911
|
+
*
|
|
1912
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1913
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1914
|
+
* @returns {string} A string representing the mobile_device_submodel.
|
|
1915
|
+
*/
|
|
1916
|
+
matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1917
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
|
|
1918
|
+
}
|
|
1075
1919
|
/**
|
|
1076
1920
|
* Return a fully-qualified network resource name string.
|
|
1077
1921
|
*
|
|
@@ -1390,6 +2234,39 @@ class AdUnitServiceClient {
|
|
|
1390
2234
|
matchRoleFromRoleName(roleName) {
|
|
1391
2235
|
return this.pathTemplates.rolePathTemplate.match(roleName).role;
|
|
1392
2236
|
}
|
|
2237
|
+
/**
|
|
2238
|
+
* Return a fully-qualified site resource name string.
|
|
2239
|
+
*
|
|
2240
|
+
* @param {string} network_code
|
|
2241
|
+
* @param {string} site
|
|
2242
|
+
* @returns {string} Resource name string.
|
|
2243
|
+
*/
|
|
2244
|
+
sitePath(networkCode, site) {
|
|
2245
|
+
return this.pathTemplates.sitePathTemplate.render({
|
|
2246
|
+
network_code: networkCode,
|
|
2247
|
+
site: site,
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
/**
|
|
2251
|
+
* Parse the network_code from Site resource.
|
|
2252
|
+
*
|
|
2253
|
+
* @param {string} siteName
|
|
2254
|
+
* A fully-qualified path representing Site resource.
|
|
2255
|
+
* @returns {string} A string representing the network_code.
|
|
2256
|
+
*/
|
|
2257
|
+
matchNetworkCodeFromSiteName(siteName) {
|
|
2258
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
|
|
2259
|
+
}
|
|
2260
|
+
/**
|
|
2261
|
+
* Parse the site from Site resource.
|
|
2262
|
+
*
|
|
2263
|
+
* @param {string} siteName
|
|
2264
|
+
* A fully-qualified path representing Site resource.
|
|
2265
|
+
* @returns {string} A string representing the site.
|
|
2266
|
+
*/
|
|
2267
|
+
matchSiteFromSiteName(siteName) {
|
|
2268
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).site;
|
|
2269
|
+
}
|
|
1393
2270
|
/**
|
|
1394
2271
|
* Return a fully-qualified taxonomyCategory resource name string.
|
|
1395
2272
|
*
|
|
@@ -1489,6 +2366,39 @@ class AdUnitServiceClient {
|
|
|
1489
2366
|
matchUserFromUserName(userName) {
|
|
1490
2367
|
return this.pathTemplates.userPathTemplate.match(userName).user;
|
|
1491
2368
|
}
|
|
2369
|
+
/**
|
|
2370
|
+
* Return a fully-qualified webProperty resource name string.
|
|
2371
|
+
*
|
|
2372
|
+
* @param {string} network_code
|
|
2373
|
+
* @param {string} web_property
|
|
2374
|
+
* @returns {string} Resource name string.
|
|
2375
|
+
*/
|
|
2376
|
+
webPropertyPath(networkCode, webProperty) {
|
|
2377
|
+
return this.pathTemplates.webPropertyPathTemplate.render({
|
|
2378
|
+
network_code: networkCode,
|
|
2379
|
+
web_property: webProperty,
|
|
2380
|
+
});
|
|
2381
|
+
}
|
|
2382
|
+
/**
|
|
2383
|
+
* Parse the network_code from WebProperty resource.
|
|
2384
|
+
*
|
|
2385
|
+
* @param {string} webPropertyName
|
|
2386
|
+
* A fully-qualified path representing WebProperty resource.
|
|
2387
|
+
* @returns {string} A string representing the network_code.
|
|
2388
|
+
*/
|
|
2389
|
+
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2390
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
|
|
2391
|
+
}
|
|
2392
|
+
/**
|
|
2393
|
+
* Parse the web_property from WebProperty resource.
|
|
2394
|
+
*
|
|
2395
|
+
* @param {string} webPropertyName
|
|
2396
|
+
* A fully-qualified path representing WebProperty resource.
|
|
2397
|
+
* @returns {string} A string representing the web_property.
|
|
2398
|
+
*/
|
|
2399
|
+
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2400
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
|
|
2401
|
+
}
|
|
1492
2402
|
/**
|
|
1493
2403
|
* Terminate the gRPC channel and close the client.
|
|
1494
2404
|
*
|