@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 PlacementServiceClient {
|
|
|
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 PlacementServiceClient {
|
|
|
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
|
|
@@ -233,7 +252,7 @@ class PlacementServiceClient {
|
|
|
233
252
|
this._protos.google.ads.admanager.v1.PlacementService, this._opts, this._providedCustomServicePath);
|
|
234
253
|
// Iterate over each of the methods that the service provides
|
|
235
254
|
// and create an API call method for each.
|
|
236
|
-
const placementServiceStubMethods = ['getPlacement', 'listPlacements'];
|
|
255
|
+
const placementServiceStubMethods = ['getPlacement', 'listPlacements', 'createPlacement', 'updatePlacement', 'batchCreatePlacements', 'batchUpdatePlacements', 'batchActivatePlacements', 'batchDeactivatePlacements', 'batchArchivePlacements'];
|
|
237
256
|
for (const methodName of placementServiceStubMethods) {
|
|
238
257
|
const callPromise = this.placementServiceStub.then(stub => (...args) => {
|
|
239
258
|
if (this._terminated) {
|
|
@@ -347,6 +366,258 @@ class PlacementServiceClient {
|
|
|
347
366
|
throw error;
|
|
348
367
|
});
|
|
349
368
|
}
|
|
369
|
+
createPlacement(request, optionsOrCallback, callback) {
|
|
370
|
+
request = request || {};
|
|
371
|
+
let options;
|
|
372
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
373
|
+
callback = optionsOrCallback;
|
|
374
|
+
options = {};
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
options = optionsOrCallback;
|
|
378
|
+
}
|
|
379
|
+
options = options || {};
|
|
380
|
+
options.otherArgs = options.otherArgs || {};
|
|
381
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
382
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
383
|
+
'parent': request.parent ?? '',
|
|
384
|
+
});
|
|
385
|
+
this.initialize().catch(err => { throw err; });
|
|
386
|
+
this._log.info('createPlacement request %j', request);
|
|
387
|
+
const wrappedCallback = callback
|
|
388
|
+
? (error, response, options, rawResponse) => {
|
|
389
|
+
this._log.info('createPlacement response %j', response);
|
|
390
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
391
|
+
}
|
|
392
|
+
: undefined;
|
|
393
|
+
return this.innerApiCalls.createPlacement(request, options, wrappedCallback)
|
|
394
|
+
?.then(([response, options, rawResponse]) => {
|
|
395
|
+
this._log.info('createPlacement response %j', response);
|
|
396
|
+
return [response, options, rawResponse];
|
|
397
|
+
}).catch((error) => {
|
|
398
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
399
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
400
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
401
|
+
}
|
|
402
|
+
throw error;
|
|
403
|
+
});
|
|
404
|
+
}
|
|
405
|
+
updatePlacement(request, optionsOrCallback, callback) {
|
|
406
|
+
request = request || {};
|
|
407
|
+
let options;
|
|
408
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
409
|
+
callback = optionsOrCallback;
|
|
410
|
+
options = {};
|
|
411
|
+
}
|
|
412
|
+
else {
|
|
413
|
+
options = optionsOrCallback;
|
|
414
|
+
}
|
|
415
|
+
options = options || {};
|
|
416
|
+
options.otherArgs = options.otherArgs || {};
|
|
417
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
418
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
419
|
+
'placement.name': request.placement.name ?? '',
|
|
420
|
+
});
|
|
421
|
+
this.initialize().catch(err => { throw err; });
|
|
422
|
+
this._log.info('updatePlacement request %j', request);
|
|
423
|
+
const wrappedCallback = callback
|
|
424
|
+
? (error, response, options, rawResponse) => {
|
|
425
|
+
this._log.info('updatePlacement response %j', response);
|
|
426
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
427
|
+
}
|
|
428
|
+
: undefined;
|
|
429
|
+
return this.innerApiCalls.updatePlacement(request, options, wrappedCallback)
|
|
430
|
+
?.then(([response, options, rawResponse]) => {
|
|
431
|
+
this._log.info('updatePlacement response %j', response);
|
|
432
|
+
return [response, options, rawResponse];
|
|
433
|
+
}).catch((error) => {
|
|
434
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
435
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
436
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
437
|
+
}
|
|
438
|
+
throw error;
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
batchCreatePlacements(request, optionsOrCallback, callback) {
|
|
442
|
+
request = request || {};
|
|
443
|
+
let options;
|
|
444
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
445
|
+
callback = optionsOrCallback;
|
|
446
|
+
options = {};
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
options = optionsOrCallback;
|
|
450
|
+
}
|
|
451
|
+
options = options || {};
|
|
452
|
+
options.otherArgs = options.otherArgs || {};
|
|
453
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
454
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
455
|
+
'parent': request.parent ?? '',
|
|
456
|
+
});
|
|
457
|
+
this.initialize().catch(err => { throw err; });
|
|
458
|
+
this._log.info('batchCreatePlacements request %j', request);
|
|
459
|
+
const wrappedCallback = callback
|
|
460
|
+
? (error, response, options, rawResponse) => {
|
|
461
|
+
this._log.info('batchCreatePlacements response %j', response);
|
|
462
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
463
|
+
}
|
|
464
|
+
: undefined;
|
|
465
|
+
return this.innerApiCalls.batchCreatePlacements(request, options, wrappedCallback)
|
|
466
|
+
?.then(([response, options, rawResponse]) => {
|
|
467
|
+
this._log.info('batchCreatePlacements response %j', response);
|
|
468
|
+
return [response, options, rawResponse];
|
|
469
|
+
}).catch((error) => {
|
|
470
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
471
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
472
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
473
|
+
}
|
|
474
|
+
throw error;
|
|
475
|
+
});
|
|
476
|
+
}
|
|
477
|
+
batchUpdatePlacements(request, optionsOrCallback, callback) {
|
|
478
|
+
request = request || {};
|
|
479
|
+
let options;
|
|
480
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
481
|
+
callback = optionsOrCallback;
|
|
482
|
+
options = {};
|
|
483
|
+
}
|
|
484
|
+
else {
|
|
485
|
+
options = optionsOrCallback;
|
|
486
|
+
}
|
|
487
|
+
options = options || {};
|
|
488
|
+
options.otherArgs = options.otherArgs || {};
|
|
489
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
490
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
491
|
+
'parent': request.parent ?? '',
|
|
492
|
+
});
|
|
493
|
+
this.initialize().catch(err => { throw err; });
|
|
494
|
+
this._log.info('batchUpdatePlacements request %j', request);
|
|
495
|
+
const wrappedCallback = callback
|
|
496
|
+
? (error, response, options, rawResponse) => {
|
|
497
|
+
this._log.info('batchUpdatePlacements response %j', response);
|
|
498
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
499
|
+
}
|
|
500
|
+
: undefined;
|
|
501
|
+
return this.innerApiCalls.batchUpdatePlacements(request, options, wrappedCallback)
|
|
502
|
+
?.then(([response, options, rawResponse]) => {
|
|
503
|
+
this._log.info('batchUpdatePlacements response %j', response);
|
|
504
|
+
return [response, options, rawResponse];
|
|
505
|
+
}).catch((error) => {
|
|
506
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
507
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
508
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
509
|
+
}
|
|
510
|
+
throw error;
|
|
511
|
+
});
|
|
512
|
+
}
|
|
513
|
+
batchActivatePlacements(request, optionsOrCallback, callback) {
|
|
514
|
+
request = request || {};
|
|
515
|
+
let options;
|
|
516
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
517
|
+
callback = optionsOrCallback;
|
|
518
|
+
options = {};
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
options = optionsOrCallback;
|
|
522
|
+
}
|
|
523
|
+
options = options || {};
|
|
524
|
+
options.otherArgs = options.otherArgs || {};
|
|
525
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
526
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
527
|
+
'parent': request.parent ?? '',
|
|
528
|
+
});
|
|
529
|
+
this.initialize().catch(err => { throw err; });
|
|
530
|
+
this._log.info('batchActivatePlacements request %j', request);
|
|
531
|
+
const wrappedCallback = callback
|
|
532
|
+
? (error, response, options, rawResponse) => {
|
|
533
|
+
this._log.info('batchActivatePlacements response %j', response);
|
|
534
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
535
|
+
}
|
|
536
|
+
: undefined;
|
|
537
|
+
return this.innerApiCalls.batchActivatePlacements(request, options, wrappedCallback)
|
|
538
|
+
?.then(([response, options, rawResponse]) => {
|
|
539
|
+
this._log.info('batchActivatePlacements response %j', response);
|
|
540
|
+
return [response, options, rawResponse];
|
|
541
|
+
}).catch((error) => {
|
|
542
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
543
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
544
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
545
|
+
}
|
|
546
|
+
throw error;
|
|
547
|
+
});
|
|
548
|
+
}
|
|
549
|
+
batchDeactivatePlacements(request, optionsOrCallback, callback) {
|
|
550
|
+
request = request || {};
|
|
551
|
+
let options;
|
|
552
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
553
|
+
callback = optionsOrCallback;
|
|
554
|
+
options = {};
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
options = optionsOrCallback;
|
|
558
|
+
}
|
|
559
|
+
options = options || {};
|
|
560
|
+
options.otherArgs = options.otherArgs || {};
|
|
561
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
562
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
563
|
+
'parent': request.parent ?? '',
|
|
564
|
+
});
|
|
565
|
+
this.initialize().catch(err => { throw err; });
|
|
566
|
+
this._log.info('batchDeactivatePlacements request %j', request);
|
|
567
|
+
const wrappedCallback = callback
|
|
568
|
+
? (error, response, options, rawResponse) => {
|
|
569
|
+
this._log.info('batchDeactivatePlacements response %j', response);
|
|
570
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
571
|
+
}
|
|
572
|
+
: undefined;
|
|
573
|
+
return this.innerApiCalls.batchDeactivatePlacements(request, options, wrappedCallback)
|
|
574
|
+
?.then(([response, options, rawResponse]) => {
|
|
575
|
+
this._log.info('batchDeactivatePlacements response %j', response);
|
|
576
|
+
return [response, options, rawResponse];
|
|
577
|
+
}).catch((error) => {
|
|
578
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
579
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
580
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
581
|
+
}
|
|
582
|
+
throw error;
|
|
583
|
+
});
|
|
584
|
+
}
|
|
585
|
+
batchArchivePlacements(request, optionsOrCallback, callback) {
|
|
586
|
+
request = request || {};
|
|
587
|
+
let options;
|
|
588
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
589
|
+
callback = optionsOrCallback;
|
|
590
|
+
options = {};
|
|
591
|
+
}
|
|
592
|
+
else {
|
|
593
|
+
options = optionsOrCallback;
|
|
594
|
+
}
|
|
595
|
+
options = options || {};
|
|
596
|
+
options.otherArgs = options.otherArgs || {};
|
|
597
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
598
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
599
|
+
'parent': request.parent ?? '',
|
|
600
|
+
});
|
|
601
|
+
this.initialize().catch(err => { throw err; });
|
|
602
|
+
this._log.info('batchArchivePlacements request %j', request);
|
|
603
|
+
const wrappedCallback = callback
|
|
604
|
+
? (error, response, options, rawResponse) => {
|
|
605
|
+
this._log.info('batchArchivePlacements response %j', response);
|
|
606
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
607
|
+
}
|
|
608
|
+
: undefined;
|
|
609
|
+
return this.innerApiCalls.batchArchivePlacements(request, options, wrappedCallback)
|
|
610
|
+
?.then(([response, options, rawResponse]) => {
|
|
611
|
+
this._log.info('batchArchivePlacements response %j', response);
|
|
612
|
+
return [response, options, rawResponse];
|
|
613
|
+
}).catch((error) => {
|
|
614
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
615
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
616
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
617
|
+
}
|
|
618
|
+
throw error;
|
|
619
|
+
});
|
|
620
|
+
}
|
|
350
621
|
listPlacements(request, optionsOrCallback, callback) {
|
|
351
622
|
request = request || {};
|
|
352
623
|
let options;
|
|
@@ -388,8 +659,8 @@ class PlacementServiceClient {
|
|
|
388
659
|
* @param {number} [request.pageSize]
|
|
389
660
|
* Optional. The maximum number of `Placements` to return. The service may
|
|
390
661
|
* return fewer than this value. If unspecified, at most 50 `Placements` will
|
|
391
|
-
* be returned. The maximum value is 1000; values
|
|
392
|
-
* to 1000.
|
|
662
|
+
* be returned. The maximum value is 1000; values greater than 1000 will be
|
|
663
|
+
* coerced to 1000.
|
|
393
664
|
* @param {string} [request.pageToken]
|
|
394
665
|
* Optional. A page token, received from a previous `ListPlacements` call.
|
|
395
666
|
* Provide this to retrieve the subsequent page.
|
|
@@ -443,8 +714,8 @@ class PlacementServiceClient {
|
|
|
443
714
|
* @param {number} [request.pageSize]
|
|
444
715
|
* Optional. The maximum number of `Placements` to return. The service may
|
|
445
716
|
* return fewer than this value. If unspecified, at most 50 `Placements` will
|
|
446
|
-
* be returned. The maximum value is 1000; values
|
|
447
|
-
* to 1000.
|
|
717
|
+
* be returned. The maximum value is 1000; values greater than 1000 will be
|
|
718
|
+
* coerced to 1000.
|
|
448
719
|
* @param {string} [request.pageToken]
|
|
449
720
|
* Optional. A page token, received from a previous `ListPlacements` call.
|
|
450
721
|
* Provide this to retrieve the subsequent page.
|
|
@@ -512,94 +783,337 @@ class PlacementServiceClient {
|
|
|
512
783
|
* A fully-qualified path representing AdBreak resource.
|
|
513
784
|
* @returns {string} A string representing the network_code.
|
|
514
785
|
*/
|
|
515
|
-
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
516
|
-
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
786
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
787
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Parse the asset_key from AdBreak resource.
|
|
791
|
+
*
|
|
792
|
+
* @param {string} adBreakName
|
|
793
|
+
* A fully-qualified path representing AdBreak resource.
|
|
794
|
+
* @returns {string} A string representing the asset_key.
|
|
795
|
+
*/
|
|
796
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
797
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
798
|
+
}
|
|
799
|
+
/**
|
|
800
|
+
* Parse the ad_break from AdBreak resource.
|
|
801
|
+
*
|
|
802
|
+
* @param {string} adBreakName
|
|
803
|
+
* A fully-qualified path representing AdBreak resource.
|
|
804
|
+
* @returns {string} A string representing the ad_break.
|
|
805
|
+
*/
|
|
806
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
807
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
808
|
+
}
|
|
809
|
+
/**
|
|
810
|
+
* Return a fully-qualified adReviewCenterAd resource name string.
|
|
811
|
+
*
|
|
812
|
+
* @param {string} network_code
|
|
813
|
+
* @param {string} web_property_code
|
|
814
|
+
* @param {string} ad_review_center_ad
|
|
815
|
+
* @returns {string} Resource name string.
|
|
816
|
+
*/
|
|
817
|
+
adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
|
|
818
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.render({
|
|
819
|
+
network_code: networkCode,
|
|
820
|
+
web_property_code: webPropertyCode,
|
|
821
|
+
ad_review_center_ad: adReviewCenterAd,
|
|
822
|
+
});
|
|
823
|
+
}
|
|
824
|
+
/**
|
|
825
|
+
* Parse the network_code from AdReviewCenterAd resource.
|
|
826
|
+
*
|
|
827
|
+
* @param {string} adReviewCenterAdName
|
|
828
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
829
|
+
* @returns {string} A string representing the network_code.
|
|
830
|
+
*/
|
|
831
|
+
matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
832
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
|
|
833
|
+
}
|
|
834
|
+
/**
|
|
835
|
+
* Parse the web_property_code from AdReviewCenterAd resource.
|
|
836
|
+
*
|
|
837
|
+
* @param {string} adReviewCenterAdName
|
|
838
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
839
|
+
* @returns {string} A string representing the web_property_code.
|
|
840
|
+
*/
|
|
841
|
+
matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
842
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
|
|
843
|
+
}
|
|
844
|
+
/**
|
|
845
|
+
* Parse the ad_review_center_ad from AdReviewCenterAd resource.
|
|
846
|
+
*
|
|
847
|
+
* @param {string} adReviewCenterAdName
|
|
848
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
849
|
+
* @returns {string} A string representing the ad_review_center_ad.
|
|
850
|
+
*/
|
|
851
|
+
matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
852
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
|
|
853
|
+
}
|
|
854
|
+
/**
|
|
855
|
+
* Return a fully-qualified adUnit resource name string.
|
|
856
|
+
*
|
|
857
|
+
* @param {string} network_code
|
|
858
|
+
* @param {string} ad_unit
|
|
859
|
+
* @returns {string} Resource name string.
|
|
860
|
+
*/
|
|
861
|
+
adUnitPath(networkCode, adUnit) {
|
|
862
|
+
return this.pathTemplates.adUnitPathTemplate.render({
|
|
863
|
+
network_code: networkCode,
|
|
864
|
+
ad_unit: adUnit,
|
|
865
|
+
});
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Parse the network_code from AdUnit resource.
|
|
869
|
+
*
|
|
870
|
+
* @param {string} adUnitName
|
|
871
|
+
* A fully-qualified path representing AdUnit resource.
|
|
872
|
+
* @returns {string} A string representing the network_code.
|
|
873
|
+
*/
|
|
874
|
+
matchNetworkCodeFromAdUnitName(adUnitName) {
|
|
875
|
+
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
|
|
876
|
+
}
|
|
877
|
+
/**
|
|
878
|
+
* Parse the ad_unit from AdUnit resource.
|
|
879
|
+
*
|
|
880
|
+
* @param {string} adUnitName
|
|
881
|
+
* A fully-qualified path representing AdUnit resource.
|
|
882
|
+
* @returns {string} A string representing the ad_unit.
|
|
883
|
+
*/
|
|
884
|
+
matchAdUnitFromAdUnitName(adUnitName) {
|
|
885
|
+
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
886
|
+
}
|
|
887
|
+
/**
|
|
888
|
+
* Return a fully-qualified application resource name string.
|
|
889
|
+
*
|
|
890
|
+
* @param {string} network_code
|
|
891
|
+
* @param {string} application
|
|
892
|
+
* @returns {string} Resource name string.
|
|
893
|
+
*/
|
|
894
|
+
applicationPath(networkCode, application) {
|
|
895
|
+
return this.pathTemplates.applicationPathTemplate.render({
|
|
896
|
+
network_code: networkCode,
|
|
897
|
+
application: application,
|
|
898
|
+
});
|
|
899
|
+
}
|
|
900
|
+
/**
|
|
901
|
+
* Parse the network_code from Application resource.
|
|
902
|
+
*
|
|
903
|
+
* @param {string} applicationName
|
|
904
|
+
* A fully-qualified path representing Application resource.
|
|
905
|
+
* @returns {string} A string representing the network_code.
|
|
906
|
+
*/
|
|
907
|
+
matchNetworkCodeFromApplicationName(applicationName) {
|
|
908
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
|
|
909
|
+
}
|
|
910
|
+
/**
|
|
911
|
+
* Parse the application from Application resource.
|
|
912
|
+
*
|
|
913
|
+
* @param {string} applicationName
|
|
914
|
+
* A fully-qualified path representing Application resource.
|
|
915
|
+
* @returns {string} A string representing the application.
|
|
916
|
+
*/
|
|
917
|
+
matchApplicationFromApplicationName(applicationName) {
|
|
918
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
|
|
919
|
+
}
|
|
920
|
+
/**
|
|
921
|
+
* Return a fully-qualified audienceSegment resource name string.
|
|
922
|
+
*
|
|
923
|
+
* @param {string} network_code
|
|
924
|
+
* @param {string} audience_segment
|
|
925
|
+
* @returns {string} Resource name string.
|
|
926
|
+
*/
|
|
927
|
+
audienceSegmentPath(networkCode, audienceSegment) {
|
|
928
|
+
return this.pathTemplates.audienceSegmentPathTemplate.render({
|
|
929
|
+
network_code: networkCode,
|
|
930
|
+
audience_segment: audienceSegment,
|
|
931
|
+
});
|
|
932
|
+
}
|
|
933
|
+
/**
|
|
934
|
+
* Parse the network_code from AudienceSegment resource.
|
|
935
|
+
*
|
|
936
|
+
* @param {string} audienceSegmentName
|
|
937
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
938
|
+
* @returns {string} A string representing the network_code.
|
|
939
|
+
*/
|
|
940
|
+
matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
|
|
941
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
|
|
942
|
+
}
|
|
943
|
+
/**
|
|
944
|
+
* Parse the audience_segment from AudienceSegment resource.
|
|
945
|
+
*
|
|
946
|
+
* @param {string} audienceSegmentName
|
|
947
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
948
|
+
* @returns {string} A string representing the audience_segment.
|
|
949
|
+
*/
|
|
950
|
+
matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
|
|
951
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
|
|
952
|
+
}
|
|
953
|
+
/**
|
|
954
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
955
|
+
*
|
|
956
|
+
* @param {string} network_code
|
|
957
|
+
* @param {string} bandwidth_group
|
|
958
|
+
* @returns {string} Resource name string.
|
|
959
|
+
*/
|
|
960
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
961
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
962
|
+
network_code: networkCode,
|
|
963
|
+
bandwidth_group: bandwidthGroup,
|
|
964
|
+
});
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
968
|
+
*
|
|
969
|
+
* @param {string} bandwidthGroupName
|
|
970
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
971
|
+
* @returns {string} A string representing the network_code.
|
|
972
|
+
*/
|
|
973
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
974
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
975
|
+
}
|
|
976
|
+
/**
|
|
977
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
978
|
+
*
|
|
979
|
+
* @param {string} bandwidthGroupName
|
|
980
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
981
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
982
|
+
*/
|
|
983
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
984
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
985
|
+
}
|
|
986
|
+
/**
|
|
987
|
+
* Return a fully-qualified browser resource name string.
|
|
988
|
+
*
|
|
989
|
+
* @param {string} network_code
|
|
990
|
+
* @param {string} browser
|
|
991
|
+
* @returns {string} Resource name string.
|
|
992
|
+
*/
|
|
993
|
+
browserPath(networkCode, browser) {
|
|
994
|
+
return this.pathTemplates.browserPathTemplate.render({
|
|
995
|
+
network_code: networkCode,
|
|
996
|
+
browser: browser,
|
|
997
|
+
});
|
|
998
|
+
}
|
|
999
|
+
/**
|
|
1000
|
+
* Parse the network_code from Browser resource.
|
|
1001
|
+
*
|
|
1002
|
+
* @param {string} browserName
|
|
1003
|
+
* A fully-qualified path representing Browser resource.
|
|
1004
|
+
* @returns {string} A string representing the network_code.
|
|
1005
|
+
*/
|
|
1006
|
+
matchNetworkCodeFromBrowserName(browserName) {
|
|
1007
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
|
|
1008
|
+
}
|
|
1009
|
+
/**
|
|
1010
|
+
* Parse the browser from Browser resource.
|
|
1011
|
+
*
|
|
1012
|
+
* @param {string} browserName
|
|
1013
|
+
* A fully-qualified path representing Browser resource.
|
|
1014
|
+
* @returns {string} A string representing the browser.
|
|
1015
|
+
*/
|
|
1016
|
+
matchBrowserFromBrowserName(browserName) {
|
|
1017
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).browser;
|
|
1018
|
+
}
|
|
1019
|
+
/**
|
|
1020
|
+
* Return a fully-qualified browserLanguage resource name string.
|
|
1021
|
+
*
|
|
1022
|
+
* @param {string} network_code
|
|
1023
|
+
* @param {string} browser_language
|
|
1024
|
+
* @returns {string} Resource name string.
|
|
1025
|
+
*/
|
|
1026
|
+
browserLanguagePath(networkCode, browserLanguage) {
|
|
1027
|
+
return this.pathTemplates.browserLanguagePathTemplate.render({
|
|
1028
|
+
network_code: networkCode,
|
|
1029
|
+
browser_language: browserLanguage,
|
|
1030
|
+
});
|
|
517
1031
|
}
|
|
518
1032
|
/**
|
|
519
|
-
* Parse the
|
|
1033
|
+
* Parse the network_code from BrowserLanguage resource.
|
|
520
1034
|
*
|
|
521
|
-
* @param {string}
|
|
522
|
-
* A fully-qualified path representing
|
|
523
|
-
* @returns {string} A string representing the
|
|
1035
|
+
* @param {string} browserLanguageName
|
|
1036
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
1037
|
+
* @returns {string} A string representing the network_code.
|
|
524
1038
|
*/
|
|
525
|
-
|
|
526
|
-
return this.pathTemplates.
|
|
1039
|
+
matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
|
|
1040
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
|
|
527
1041
|
}
|
|
528
1042
|
/**
|
|
529
|
-
* Parse the
|
|
1043
|
+
* Parse the browser_language from BrowserLanguage resource.
|
|
530
1044
|
*
|
|
531
|
-
* @param {string}
|
|
532
|
-
* A fully-qualified path representing
|
|
533
|
-
* @returns {string} A string representing the
|
|
1045
|
+
* @param {string} browserLanguageName
|
|
1046
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
1047
|
+
* @returns {string} A string representing the browser_language.
|
|
534
1048
|
*/
|
|
535
|
-
|
|
536
|
-
return this.pathTemplates.
|
|
1049
|
+
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1050
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
537
1051
|
}
|
|
538
1052
|
/**
|
|
539
|
-
* Return a fully-qualified
|
|
1053
|
+
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
540
1054
|
*
|
|
541
1055
|
* @param {string} network_code
|
|
542
|
-
* @param {string}
|
|
1056
|
+
* @param {string} cms_metadata_key
|
|
543
1057
|
* @returns {string} Resource name string.
|
|
544
1058
|
*/
|
|
545
|
-
|
|
546
|
-
return this.pathTemplates.
|
|
1059
|
+
cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
|
|
1060
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
|
|
547
1061
|
network_code: networkCode,
|
|
548
|
-
|
|
1062
|
+
cms_metadata_key: cmsMetadataKey,
|
|
549
1063
|
});
|
|
550
1064
|
}
|
|
551
1065
|
/**
|
|
552
|
-
* Parse the network_code from
|
|
1066
|
+
* Parse the network_code from CmsMetadataKey resource.
|
|
553
1067
|
*
|
|
554
|
-
* @param {string}
|
|
555
|
-
* A fully-qualified path representing
|
|
1068
|
+
* @param {string} cmsMetadataKeyName
|
|
1069
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
556
1070
|
* @returns {string} A string representing the network_code.
|
|
557
1071
|
*/
|
|
558
|
-
|
|
559
|
-
return this.pathTemplates.
|
|
1072
|
+
matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
1073
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
|
|
560
1074
|
}
|
|
561
1075
|
/**
|
|
562
|
-
* Parse the
|
|
1076
|
+
* Parse the cms_metadata_key from CmsMetadataKey resource.
|
|
563
1077
|
*
|
|
564
|
-
* @param {string}
|
|
565
|
-
* A fully-qualified path representing
|
|
566
|
-
* @returns {string} A string representing the
|
|
1078
|
+
* @param {string} cmsMetadataKeyName
|
|
1079
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
1080
|
+
* @returns {string} A string representing the cms_metadata_key.
|
|
567
1081
|
*/
|
|
568
|
-
|
|
569
|
-
return this.pathTemplates.
|
|
1082
|
+
matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
1083
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
|
|
570
1084
|
}
|
|
571
1085
|
/**
|
|
572
|
-
* Return a fully-qualified
|
|
1086
|
+
* Return a fully-qualified cmsMetadataValue resource name string.
|
|
573
1087
|
*
|
|
574
1088
|
* @param {string} network_code
|
|
575
|
-
* @param {string}
|
|
1089
|
+
* @param {string} cms_metadata_value
|
|
576
1090
|
* @returns {string} Resource name string.
|
|
577
1091
|
*/
|
|
578
|
-
|
|
579
|
-
return this.pathTemplates.
|
|
1092
|
+
cmsMetadataValuePath(networkCode, cmsMetadataValue) {
|
|
1093
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.render({
|
|
580
1094
|
network_code: networkCode,
|
|
581
|
-
|
|
1095
|
+
cms_metadata_value: cmsMetadataValue,
|
|
582
1096
|
});
|
|
583
1097
|
}
|
|
584
1098
|
/**
|
|
585
|
-
* Parse the network_code from
|
|
1099
|
+
* Parse the network_code from CmsMetadataValue resource.
|
|
586
1100
|
*
|
|
587
|
-
* @param {string}
|
|
588
|
-
* A fully-qualified path representing
|
|
1101
|
+
* @param {string} cmsMetadataValueName
|
|
1102
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
589
1103
|
* @returns {string} A string representing the network_code.
|
|
590
1104
|
*/
|
|
591
|
-
|
|
592
|
-
return this.pathTemplates.
|
|
1105
|
+
matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
1106
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
|
|
593
1107
|
}
|
|
594
1108
|
/**
|
|
595
|
-
* Parse the
|
|
1109
|
+
* Parse the cms_metadata_value from CmsMetadataValue resource.
|
|
596
1110
|
*
|
|
597
|
-
* @param {string}
|
|
598
|
-
* A fully-qualified path representing
|
|
599
|
-
* @returns {string} A string representing the
|
|
1111
|
+
* @param {string} cmsMetadataValueName
|
|
1112
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
1113
|
+
* @returns {string} A string representing the cms_metadata_value.
|
|
600
1114
|
*/
|
|
601
|
-
|
|
602
|
-
return this.pathTemplates.
|
|
1115
|
+
matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
1116
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
|
|
603
1117
|
}
|
|
604
1118
|
/**
|
|
605
1119
|
* Return a fully-qualified company resource name string.
|
|
@@ -667,6 +1181,138 @@ class PlacementServiceClient {
|
|
|
667
1181
|
matchContactFromContactName(contactName) {
|
|
668
1182
|
return this.pathTemplates.contactPathTemplate.match(contactName).contact;
|
|
669
1183
|
}
|
|
1184
|
+
/**
|
|
1185
|
+
* Return a fully-qualified content resource name string.
|
|
1186
|
+
*
|
|
1187
|
+
* @param {string} network_code
|
|
1188
|
+
* @param {string} content
|
|
1189
|
+
* @returns {string} Resource name string.
|
|
1190
|
+
*/
|
|
1191
|
+
contentPath(networkCode, content) {
|
|
1192
|
+
return this.pathTemplates.contentPathTemplate.render({
|
|
1193
|
+
network_code: networkCode,
|
|
1194
|
+
content: content,
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1197
|
+
/**
|
|
1198
|
+
* Parse the network_code from Content resource.
|
|
1199
|
+
*
|
|
1200
|
+
* @param {string} contentName
|
|
1201
|
+
* A fully-qualified path representing Content resource.
|
|
1202
|
+
* @returns {string} A string representing the network_code.
|
|
1203
|
+
*/
|
|
1204
|
+
matchNetworkCodeFromContentName(contentName) {
|
|
1205
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
|
|
1206
|
+
}
|
|
1207
|
+
/**
|
|
1208
|
+
* Parse the content from Content resource.
|
|
1209
|
+
*
|
|
1210
|
+
* @param {string} contentName
|
|
1211
|
+
* A fully-qualified path representing Content resource.
|
|
1212
|
+
* @returns {string} A string representing the content.
|
|
1213
|
+
*/
|
|
1214
|
+
matchContentFromContentName(contentName) {
|
|
1215
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).content;
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Return a fully-qualified contentBundle resource name string.
|
|
1219
|
+
*
|
|
1220
|
+
* @param {string} network_code
|
|
1221
|
+
* @param {string} content_bundle
|
|
1222
|
+
* @returns {string} Resource name string.
|
|
1223
|
+
*/
|
|
1224
|
+
contentBundlePath(networkCode, contentBundle) {
|
|
1225
|
+
return this.pathTemplates.contentBundlePathTemplate.render({
|
|
1226
|
+
network_code: networkCode,
|
|
1227
|
+
content_bundle: contentBundle,
|
|
1228
|
+
});
|
|
1229
|
+
}
|
|
1230
|
+
/**
|
|
1231
|
+
* Parse the network_code from ContentBundle resource.
|
|
1232
|
+
*
|
|
1233
|
+
* @param {string} contentBundleName
|
|
1234
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
1235
|
+
* @returns {string} A string representing the network_code.
|
|
1236
|
+
*/
|
|
1237
|
+
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1238
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
|
|
1239
|
+
}
|
|
1240
|
+
/**
|
|
1241
|
+
* Parse the content_bundle from ContentBundle resource.
|
|
1242
|
+
*
|
|
1243
|
+
* @param {string} contentBundleName
|
|
1244
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
1245
|
+
* @returns {string} A string representing the content_bundle.
|
|
1246
|
+
*/
|
|
1247
|
+
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1248
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
|
|
1249
|
+
}
|
|
1250
|
+
/**
|
|
1251
|
+
* Return a fully-qualified contentLabel resource name string.
|
|
1252
|
+
*
|
|
1253
|
+
* @param {string} network_code
|
|
1254
|
+
* @param {string} content_label
|
|
1255
|
+
* @returns {string} Resource name string.
|
|
1256
|
+
*/
|
|
1257
|
+
contentLabelPath(networkCode, contentLabel) {
|
|
1258
|
+
return this.pathTemplates.contentLabelPathTemplate.render({
|
|
1259
|
+
network_code: networkCode,
|
|
1260
|
+
content_label: contentLabel,
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Parse the network_code from ContentLabel resource.
|
|
1265
|
+
*
|
|
1266
|
+
* @param {string} contentLabelName
|
|
1267
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
1268
|
+
* @returns {string} A string representing the network_code.
|
|
1269
|
+
*/
|
|
1270
|
+
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1271
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
|
|
1272
|
+
}
|
|
1273
|
+
/**
|
|
1274
|
+
* Parse the content_label from ContentLabel resource.
|
|
1275
|
+
*
|
|
1276
|
+
* @param {string} contentLabelName
|
|
1277
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
1278
|
+
* @returns {string} A string representing the content_label.
|
|
1279
|
+
*/
|
|
1280
|
+
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1281
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
|
|
1282
|
+
}
|
|
1283
|
+
/**
|
|
1284
|
+
* Return a fully-qualified creativeTemplate resource name string.
|
|
1285
|
+
*
|
|
1286
|
+
* @param {string} network_code
|
|
1287
|
+
* @param {string} creative_template
|
|
1288
|
+
* @returns {string} Resource name string.
|
|
1289
|
+
*/
|
|
1290
|
+
creativeTemplatePath(networkCode, creativeTemplate) {
|
|
1291
|
+
return this.pathTemplates.creativeTemplatePathTemplate.render({
|
|
1292
|
+
network_code: networkCode,
|
|
1293
|
+
creative_template: creativeTemplate,
|
|
1294
|
+
});
|
|
1295
|
+
}
|
|
1296
|
+
/**
|
|
1297
|
+
* Parse the network_code from CreativeTemplate resource.
|
|
1298
|
+
*
|
|
1299
|
+
* @param {string} creativeTemplateName
|
|
1300
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1301
|
+
* @returns {string} A string representing the network_code.
|
|
1302
|
+
*/
|
|
1303
|
+
matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
|
|
1304
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
|
|
1305
|
+
}
|
|
1306
|
+
/**
|
|
1307
|
+
* Parse the creative_template from CreativeTemplate resource.
|
|
1308
|
+
*
|
|
1309
|
+
* @param {string} creativeTemplateName
|
|
1310
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1311
|
+
* @returns {string} A string representing the creative_template.
|
|
1312
|
+
*/
|
|
1313
|
+
matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
|
|
1314
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
|
|
1315
|
+
}
|
|
670
1316
|
/**
|
|
671
1317
|
* Return a fully-qualified customField resource name string.
|
|
672
1318
|
*
|
|
@@ -766,6 +1412,39 @@ class PlacementServiceClient {
|
|
|
766
1412
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
767
1413
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
768
1414
|
}
|
|
1415
|
+
/**
|
|
1416
|
+
* Return a fully-qualified deviceCapability resource name string.
|
|
1417
|
+
*
|
|
1418
|
+
* @param {string} network_code
|
|
1419
|
+
* @param {string} device_capability
|
|
1420
|
+
* @returns {string} Resource name string.
|
|
1421
|
+
*/
|
|
1422
|
+
deviceCapabilityPath(networkCode, deviceCapability) {
|
|
1423
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.render({
|
|
1424
|
+
network_code: networkCode,
|
|
1425
|
+
device_capability: deviceCapability,
|
|
1426
|
+
});
|
|
1427
|
+
}
|
|
1428
|
+
/**
|
|
1429
|
+
* Parse the network_code from DeviceCapability resource.
|
|
1430
|
+
*
|
|
1431
|
+
* @param {string} deviceCapabilityName
|
|
1432
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1433
|
+
* @returns {string} A string representing the network_code.
|
|
1434
|
+
*/
|
|
1435
|
+
matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1436
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
|
|
1437
|
+
}
|
|
1438
|
+
/**
|
|
1439
|
+
* Parse the device_capability from DeviceCapability resource.
|
|
1440
|
+
*
|
|
1441
|
+
* @param {string} deviceCapabilityName
|
|
1442
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1443
|
+
* @returns {string} A string representing the device_capability.
|
|
1444
|
+
*/
|
|
1445
|
+
matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1446
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
|
|
1447
|
+
}
|
|
769
1448
|
/**
|
|
770
1449
|
* Return a fully-qualified deviceCategory resource name string.
|
|
771
1450
|
*
|
|
@@ -799,6 +1478,39 @@ class PlacementServiceClient {
|
|
|
799
1478
|
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
800
1479
|
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
801
1480
|
}
|
|
1481
|
+
/**
|
|
1482
|
+
* Return a fully-qualified deviceManufacturer resource name string.
|
|
1483
|
+
*
|
|
1484
|
+
* @param {string} network_code
|
|
1485
|
+
* @param {string} device_manufacturer
|
|
1486
|
+
* @returns {string} Resource name string.
|
|
1487
|
+
*/
|
|
1488
|
+
deviceManufacturerPath(networkCode, deviceManufacturer) {
|
|
1489
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.render({
|
|
1490
|
+
network_code: networkCode,
|
|
1491
|
+
device_manufacturer: deviceManufacturer,
|
|
1492
|
+
});
|
|
1493
|
+
}
|
|
1494
|
+
/**
|
|
1495
|
+
* Parse the network_code from DeviceManufacturer resource.
|
|
1496
|
+
*
|
|
1497
|
+
* @param {string} deviceManufacturerName
|
|
1498
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1499
|
+
* @returns {string} A string representing the network_code.
|
|
1500
|
+
*/
|
|
1501
|
+
matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1502
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
|
|
1503
|
+
}
|
|
1504
|
+
/**
|
|
1505
|
+
* Parse the device_manufacturer from DeviceManufacturer resource.
|
|
1506
|
+
*
|
|
1507
|
+
* @param {string} deviceManufacturerName
|
|
1508
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1509
|
+
* @returns {string} A string representing the device_manufacturer.
|
|
1510
|
+
*/
|
|
1511
|
+
matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1512
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
|
|
1513
|
+
}
|
|
802
1514
|
/**
|
|
803
1515
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
804
1516
|
*
|
|
@@ -898,6 +1610,39 @@ class PlacementServiceClient {
|
|
|
898
1610
|
matchLabelFromLabelName(labelName) {
|
|
899
1611
|
return this.pathTemplates.labelPathTemplate.match(labelName).label;
|
|
900
1612
|
}
|
|
1613
|
+
/**
|
|
1614
|
+
* Return a fully-qualified lineItem resource name string.
|
|
1615
|
+
*
|
|
1616
|
+
* @param {string} network_code
|
|
1617
|
+
* @param {string} line_item
|
|
1618
|
+
* @returns {string} Resource name string.
|
|
1619
|
+
*/
|
|
1620
|
+
lineItemPath(networkCode, lineItem) {
|
|
1621
|
+
return this.pathTemplates.lineItemPathTemplate.render({
|
|
1622
|
+
network_code: networkCode,
|
|
1623
|
+
line_item: lineItem,
|
|
1624
|
+
});
|
|
1625
|
+
}
|
|
1626
|
+
/**
|
|
1627
|
+
* Parse the network_code from LineItem resource.
|
|
1628
|
+
*
|
|
1629
|
+
* @param {string} lineItemName
|
|
1630
|
+
* A fully-qualified path representing LineItem resource.
|
|
1631
|
+
* @returns {string} A string representing the network_code.
|
|
1632
|
+
*/
|
|
1633
|
+
matchNetworkCodeFromLineItemName(lineItemName) {
|
|
1634
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).network_code;
|
|
1635
|
+
}
|
|
1636
|
+
/**
|
|
1637
|
+
* Parse the line_item from LineItem resource.
|
|
1638
|
+
*
|
|
1639
|
+
* @param {string} lineItemName
|
|
1640
|
+
* A fully-qualified path representing LineItem resource.
|
|
1641
|
+
* @returns {string} A string representing the line_item.
|
|
1642
|
+
*/
|
|
1643
|
+
matchLineItemFromLineItemName(lineItemName) {
|
|
1644
|
+
return this.pathTemplates.lineItemPathTemplate.match(lineItemName).line_item;
|
|
1645
|
+
}
|
|
901
1646
|
/**
|
|
902
1647
|
* Return a fully-qualified liveStreamEvent resource name string.
|
|
903
1648
|
*
|
|
@@ -931,6 +1676,105 @@ class PlacementServiceClient {
|
|
|
931
1676
|
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
932
1677
|
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
933
1678
|
}
|
|
1679
|
+
/**
|
|
1680
|
+
* Return a fully-qualified mobileCarrier resource name string.
|
|
1681
|
+
*
|
|
1682
|
+
* @param {string} network_code
|
|
1683
|
+
* @param {string} mobile_carrier
|
|
1684
|
+
* @returns {string} Resource name string.
|
|
1685
|
+
*/
|
|
1686
|
+
mobileCarrierPath(networkCode, mobileCarrier) {
|
|
1687
|
+
return this.pathTemplates.mobileCarrierPathTemplate.render({
|
|
1688
|
+
network_code: networkCode,
|
|
1689
|
+
mobile_carrier: mobileCarrier,
|
|
1690
|
+
});
|
|
1691
|
+
}
|
|
1692
|
+
/**
|
|
1693
|
+
* Parse the network_code from MobileCarrier resource.
|
|
1694
|
+
*
|
|
1695
|
+
* @param {string} mobileCarrierName
|
|
1696
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1697
|
+
* @returns {string} A string representing the network_code.
|
|
1698
|
+
*/
|
|
1699
|
+
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1700
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
|
|
1701
|
+
}
|
|
1702
|
+
/**
|
|
1703
|
+
* Parse the mobile_carrier from MobileCarrier resource.
|
|
1704
|
+
*
|
|
1705
|
+
* @param {string} mobileCarrierName
|
|
1706
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1707
|
+
* @returns {string} A string representing the mobile_carrier.
|
|
1708
|
+
*/
|
|
1709
|
+
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1710
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Return a fully-qualified mobileDevice resource name string.
|
|
1714
|
+
*
|
|
1715
|
+
* @param {string} network_code
|
|
1716
|
+
* @param {string} mobile_device
|
|
1717
|
+
* @returns {string} Resource name string.
|
|
1718
|
+
*/
|
|
1719
|
+
mobileDevicePath(networkCode, mobileDevice) {
|
|
1720
|
+
return this.pathTemplates.mobileDevicePathTemplate.render({
|
|
1721
|
+
network_code: networkCode,
|
|
1722
|
+
mobile_device: mobileDevice,
|
|
1723
|
+
});
|
|
1724
|
+
}
|
|
1725
|
+
/**
|
|
1726
|
+
* Parse the network_code from MobileDevice resource.
|
|
1727
|
+
*
|
|
1728
|
+
* @param {string} mobileDeviceName
|
|
1729
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1730
|
+
* @returns {string} A string representing the network_code.
|
|
1731
|
+
*/
|
|
1732
|
+
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1733
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
|
|
1734
|
+
}
|
|
1735
|
+
/**
|
|
1736
|
+
* Parse the mobile_device from MobileDevice resource.
|
|
1737
|
+
*
|
|
1738
|
+
* @param {string} mobileDeviceName
|
|
1739
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1740
|
+
* @returns {string} A string representing the mobile_device.
|
|
1741
|
+
*/
|
|
1742
|
+
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1743
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
|
|
1744
|
+
}
|
|
1745
|
+
/**
|
|
1746
|
+
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
1747
|
+
*
|
|
1748
|
+
* @param {string} network_code
|
|
1749
|
+
* @param {string} mobile_device_submodel
|
|
1750
|
+
* @returns {string} Resource name string.
|
|
1751
|
+
*/
|
|
1752
|
+
mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
|
|
1753
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
|
|
1754
|
+
network_code: networkCode,
|
|
1755
|
+
mobile_device_submodel: mobileDeviceSubmodel,
|
|
1756
|
+
});
|
|
1757
|
+
}
|
|
1758
|
+
/**
|
|
1759
|
+
* Parse the network_code from MobileDeviceSubmodel resource.
|
|
1760
|
+
*
|
|
1761
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1762
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1763
|
+
* @returns {string} A string representing the network_code.
|
|
1764
|
+
*/
|
|
1765
|
+
matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1766
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
|
|
1767
|
+
}
|
|
1768
|
+
/**
|
|
1769
|
+
* Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
|
|
1770
|
+
*
|
|
1771
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1772
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1773
|
+
* @returns {string} A string representing the mobile_device_submodel.
|
|
1774
|
+
*/
|
|
1775
|
+
matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1776
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
|
|
1777
|
+
}
|
|
934
1778
|
/**
|
|
935
1779
|
* Return a fully-qualified network resource name string.
|
|
936
1780
|
*
|
|
@@ -1249,6 +2093,39 @@ class PlacementServiceClient {
|
|
|
1249
2093
|
matchRoleFromRoleName(roleName) {
|
|
1250
2094
|
return this.pathTemplates.rolePathTemplate.match(roleName).role;
|
|
1251
2095
|
}
|
|
2096
|
+
/**
|
|
2097
|
+
* Return a fully-qualified site resource name string.
|
|
2098
|
+
*
|
|
2099
|
+
* @param {string} network_code
|
|
2100
|
+
* @param {string} site
|
|
2101
|
+
* @returns {string} Resource name string.
|
|
2102
|
+
*/
|
|
2103
|
+
sitePath(networkCode, site) {
|
|
2104
|
+
return this.pathTemplates.sitePathTemplate.render({
|
|
2105
|
+
network_code: networkCode,
|
|
2106
|
+
site: site,
|
|
2107
|
+
});
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Parse the network_code from Site resource.
|
|
2111
|
+
*
|
|
2112
|
+
* @param {string} siteName
|
|
2113
|
+
* A fully-qualified path representing Site resource.
|
|
2114
|
+
* @returns {string} A string representing the network_code.
|
|
2115
|
+
*/
|
|
2116
|
+
matchNetworkCodeFromSiteName(siteName) {
|
|
2117
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
|
|
2118
|
+
}
|
|
2119
|
+
/**
|
|
2120
|
+
* Parse the site from Site resource.
|
|
2121
|
+
*
|
|
2122
|
+
* @param {string} siteName
|
|
2123
|
+
* A fully-qualified path representing Site resource.
|
|
2124
|
+
* @returns {string} A string representing the site.
|
|
2125
|
+
*/
|
|
2126
|
+
matchSiteFromSiteName(siteName) {
|
|
2127
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).site;
|
|
2128
|
+
}
|
|
1252
2129
|
/**
|
|
1253
2130
|
* Return a fully-qualified taxonomyCategory resource name string.
|
|
1254
2131
|
*
|
|
@@ -1348,6 +2225,39 @@ class PlacementServiceClient {
|
|
|
1348
2225
|
matchUserFromUserName(userName) {
|
|
1349
2226
|
return this.pathTemplates.userPathTemplate.match(userName).user;
|
|
1350
2227
|
}
|
|
2228
|
+
/**
|
|
2229
|
+
* Return a fully-qualified webProperty resource name string.
|
|
2230
|
+
*
|
|
2231
|
+
* @param {string} network_code
|
|
2232
|
+
* @param {string} web_property
|
|
2233
|
+
* @returns {string} Resource name string.
|
|
2234
|
+
*/
|
|
2235
|
+
webPropertyPath(networkCode, webProperty) {
|
|
2236
|
+
return this.pathTemplates.webPropertyPathTemplate.render({
|
|
2237
|
+
network_code: networkCode,
|
|
2238
|
+
web_property: webProperty,
|
|
2239
|
+
});
|
|
2240
|
+
}
|
|
2241
|
+
/**
|
|
2242
|
+
* Parse the network_code from WebProperty resource.
|
|
2243
|
+
*
|
|
2244
|
+
* @param {string} webPropertyName
|
|
2245
|
+
* A fully-qualified path representing WebProperty resource.
|
|
2246
|
+
* @returns {string} A string representing the network_code.
|
|
2247
|
+
*/
|
|
2248
|
+
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2249
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
|
|
2250
|
+
}
|
|
2251
|
+
/**
|
|
2252
|
+
* Parse the web_property from WebProperty resource.
|
|
2253
|
+
*
|
|
2254
|
+
* @param {string} webPropertyName
|
|
2255
|
+
* A fully-qualified path representing WebProperty resource.
|
|
2256
|
+
* @returns {string} A string representing the web_property.
|
|
2257
|
+
*/
|
|
2258
|
+
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2259
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
|
|
2260
|
+
}
|
|
1351
2261
|
/**
|
|
1352
2262
|
* Terminate the gRPC channel and close the client.
|
|
1353
2263
|
*
|