@google-ads/admanager 0.4.1 → 0.5.0
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 +68 -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 +237 -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 +6 -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 +1 -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/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/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 +7 -8
- 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 +12478 -0
- package/build/protos/google/ads/admanager/v1/report_messages.proto +118 -3410
- 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 +30764 -11410
- package/build/protos/protos.js +93644 -43318
- package/build/protos/protos.json +9909 -3734
- package/build/src/index.d.ts +58 -1
- package/build/src/index.js +40 -2
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +441 -0
- package/build/src/v1/ad_break_service_client.js +624 -0
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +49 -1
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +1607 -0
- package/build/src/v1/ad_review_center_ad_service_client.js +2291 -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 +122 -0
- package/build/src/v1/ad_unit_service_client.d.ts +453 -12
- package/build/src/v1/ad_unit_service_client.js +632 -8
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +49 -1
- package/build/src/v1/application_service_client.d.ts +1345 -0
- package/build/src/v1/application_service_client.js +1993 -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 +122 -0
- package/build/src/v1/audience_segment_service_client.d.ts +1345 -0
- package/build/src/v1/audience_segment_service_client.js +1993 -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 +122 -0
- package/build/src/v1/bandwidth_group_service_client.d.ts +447 -6
- package/build/src/v1/bandwidth_group_service_client.js +628 -4
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +49 -1
- package/build/src/v1/browser_language_service_client.d.ts +1345 -0
- package/build/src/v1/browser_language_service_client.js +1993 -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 +122 -0
- package/build/src/v1/browser_service_client.d.ts +1345 -0
- package/build/src/v1/browser_service_client.js +1993 -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 +122 -0
- package/build/src/v1/cms_metadata_key_service_client.d.ts +1345 -0
- package/build/src/v1/cms_metadata_key_service_client.js +1993 -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 +122 -0
- package/build/src/v1/cms_metadata_value_service_client.d.ts +1345 -0
- package/build/src/v1/cms_metadata_value_service_client.js +1993 -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 +122 -0
- package/build/src/v1/company_service_client.d.ts +447 -6
- package/build/src/v1/company_service_client.js +628 -4
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +49 -1
- package/build/src/v1/contact_service_client.d.ts +1456 -0
- package/build/src/v1/contact_service_client.js +2137 -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 +122 -0
- package/build/src/v1/content_bundle_service_client.d.ts +1345 -0
- package/build/src/v1/content_bundle_service_client.js +1993 -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 +122 -0
- package/build/src/v1/content_label_service_client.d.ts +1345 -0
- package/build/src/v1/content_label_service_client.js +1993 -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 +122 -0
- package/build/src/v1/content_service_client.d.ts +1345 -0
- package/build/src/v1/content_service_client.js +1993 -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 +122 -0
- package/build/src/v1/creative_template_service_client.d.ts +1345 -0
- package/build/src/v1/creative_template_service_client.js +1993 -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 +122 -0
- package/build/src/v1/custom_field_service_client.d.ts +610 -6
- package/build/src/v1/custom_field_service_client.js +845 -5
- 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 +49 -1
- package/build/src/v1/custom_targeting_key_service_client.d.ts +441 -0
- package/build/src/v1/custom_targeting_key_service_client.js +624 -0
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +49 -1
- package/build/src/v1/custom_targeting_value_service_client.d.ts +441 -0
- package/build/src/v1/custom_targeting_value_service_client.js +624 -0
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +49 -1
- package/build/src/v1/device_capability_service_client.d.ts +1345 -0
- package/build/src/v1/device_capability_service_client.js +1993 -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 +122 -0
- package/build/src/v1/device_category_service_client.d.ts +444 -3
- package/build/src/v1/device_category_service_client.js +626 -2
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +49 -1
- package/build/src/v1/device_manufacturer_service_client.d.ts +1346 -0
- package/build/src/v1/device_manufacturer_service_client.js +1993 -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 +122 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +441 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +624 -0
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +49 -1
- package/build/src/v1/gapic_metadata.json +1026 -4
- package/build/src/v1/geo_target_service_client.d.ts +447 -6
- package/build/src/v1/geo_target_service_client.js +628 -4
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +49 -1
- package/build/src/v1/index.d.ts +19 -0
- package/build/src/v1/index.js +39 -1
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_client.d.ts +1345 -0
- package/build/src/v1/mobile_carrier_service_client.js +1993 -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 +122 -0
- package/build/src/v1/mobile_device_service_client.d.ts +1345 -0
- package/build/src/v1/mobile_device_service_client.js +1993 -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 +122 -0
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +1352 -0
- package/build/src/v1/mobile_device_submodel_service_client.js +1997 -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 +122 -0
- package/build/src/v1/network_service_client.d.ts +441 -0
- package/build/src/v1/network_service_client.js +624 -0
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_proto_list.json +49 -1
- package/build/src/v1/operating_system_service_client.d.ts +444 -3
- package/build/src/v1/operating_system_service_client.js +626 -2
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +49 -1
- package/build/src/v1/operating_system_version_service_client.d.ts +444 -3
- package/build/src/v1/operating_system_version_service_client.js +626 -2
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +49 -1
- package/build/src/v1/order_service_client.d.ts +447 -6
- package/build/src/v1/order_service_client.js +628 -4
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +49 -1
- package/build/src/v1/placement_service_client.d.ts +638 -6
- package/build/src/v1/placement_service_client.js +937 -61
- 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 +49 -1
- package/build/src/v1/private_auction_deal_service_client.d.ts +444 -3
- package/build/src/v1/private_auction_deal_service_client.js +626 -2
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +49 -1
- package/build/src/v1/private_auction_service_client.d.ts +444 -3
- package/build/src/v1/private_auction_service_client.js +626 -2
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +49 -1
- package/build/src/v1/programmatic_buyer_service_client.d.ts +441 -0
- package/build/src/v1/programmatic_buyer_service_client.js +624 -0
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +49 -1
- package/build/src/v1/report_service_client.d.ts +461 -17
- package/build/src/v1/report_service_client.js +634 -8
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +49 -1
- package/build/src/v1/role_service_client.d.ts +447 -3
- package/build/src/v1/role_service_client.js +628 -2
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +49 -1
- package/build/src/v1/site_service_client.d.ts +1506 -0
- package/build/src/v1/site_service_client.js +2209 -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 +122 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +441 -0
- package/build/src/v1/taxonomy_category_service_client.js +624 -0
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +49 -1
- package/build/src/v1/team_service_client.d.ts +1508 -0
- package/build/src/v1/team_service_client.js +2209 -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 +122 -0
- package/build/src/v1/user_service_client.d.ts +441 -0
- package/build/src/v1/user_service_client.js +624 -0
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +49 -1
- package/package.json +1 -1
|
@@ -168,18 +168,34 @@ 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}'),
|
|
182
195
|
liveStreamEventPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/liveStreamEvents/{live_stream_event}'),
|
|
196
|
+
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
197
|
+
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
198
|
+
mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
|
|
183
199
|
networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
|
|
184
200
|
operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
|
|
185
201
|
operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
|
|
@@ -190,9 +206,11 @@ class PlacementServiceClient {
|
|
|
190
206
|
programmaticBuyerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/programmaticBuyers/{programmatic_buyer}'),
|
|
191
207
|
reportPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/reports/{report}'),
|
|
192
208
|
rolePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/roles/{role}'),
|
|
209
|
+
sitePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/sites/{site}'),
|
|
193
210
|
taxonomyCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/taxonomyCategories/{taxonomy_category}'),
|
|
194
211
|
teamPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/teams/{team}'),
|
|
195
212
|
userPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/users/{user}'),
|
|
213
|
+
webPropertyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/webProperties/{web_property}'),
|
|
196
214
|
};
|
|
197
215
|
// Some of the methods on this service return "paged" results,
|
|
198
216
|
// (e.g. 50 results at a time, with tokens to get subsequent
|
|
@@ -233,7 +251,7 @@ class PlacementServiceClient {
|
|
|
233
251
|
this._protos.google.ads.admanager.v1.PlacementService, this._opts, this._providedCustomServicePath);
|
|
234
252
|
// Iterate over each of the methods that the service provides
|
|
235
253
|
// and create an API call method for each.
|
|
236
|
-
const placementServiceStubMethods = ['getPlacement', 'listPlacements'];
|
|
254
|
+
const placementServiceStubMethods = ['getPlacement', 'listPlacements', 'createPlacement', 'updatePlacement', 'batchCreatePlacements', 'batchUpdatePlacements', 'batchActivatePlacements', 'batchDeactivatePlacements', 'batchArchivePlacements'];
|
|
237
255
|
for (const methodName of placementServiceStubMethods) {
|
|
238
256
|
const callPromise = this.placementServiceStub.then(stub => (...args) => {
|
|
239
257
|
if (this._terminated) {
|
|
@@ -347,6 +365,258 @@ class PlacementServiceClient {
|
|
|
347
365
|
throw error;
|
|
348
366
|
});
|
|
349
367
|
}
|
|
368
|
+
createPlacement(request, optionsOrCallback, callback) {
|
|
369
|
+
request = request || {};
|
|
370
|
+
let options;
|
|
371
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
372
|
+
callback = optionsOrCallback;
|
|
373
|
+
options = {};
|
|
374
|
+
}
|
|
375
|
+
else {
|
|
376
|
+
options = optionsOrCallback;
|
|
377
|
+
}
|
|
378
|
+
options = options || {};
|
|
379
|
+
options.otherArgs = options.otherArgs || {};
|
|
380
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
381
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
382
|
+
'parent': request.parent ?? '',
|
|
383
|
+
});
|
|
384
|
+
this.initialize().catch(err => { throw err; });
|
|
385
|
+
this._log.info('createPlacement request %j', request);
|
|
386
|
+
const wrappedCallback = callback
|
|
387
|
+
? (error, response, options, rawResponse) => {
|
|
388
|
+
this._log.info('createPlacement response %j', response);
|
|
389
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
390
|
+
}
|
|
391
|
+
: undefined;
|
|
392
|
+
return this.innerApiCalls.createPlacement(request, options, wrappedCallback)
|
|
393
|
+
?.then(([response, options, rawResponse]) => {
|
|
394
|
+
this._log.info('createPlacement response %j', response);
|
|
395
|
+
return [response, options, rawResponse];
|
|
396
|
+
}).catch((error) => {
|
|
397
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
398
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
399
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
400
|
+
}
|
|
401
|
+
throw error;
|
|
402
|
+
});
|
|
403
|
+
}
|
|
404
|
+
updatePlacement(request, optionsOrCallback, callback) {
|
|
405
|
+
request = request || {};
|
|
406
|
+
let options;
|
|
407
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
408
|
+
callback = optionsOrCallback;
|
|
409
|
+
options = {};
|
|
410
|
+
}
|
|
411
|
+
else {
|
|
412
|
+
options = optionsOrCallback;
|
|
413
|
+
}
|
|
414
|
+
options = options || {};
|
|
415
|
+
options.otherArgs = options.otherArgs || {};
|
|
416
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
417
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
418
|
+
'placement.name': request.placement.name ?? '',
|
|
419
|
+
});
|
|
420
|
+
this.initialize().catch(err => { throw err; });
|
|
421
|
+
this._log.info('updatePlacement request %j', request);
|
|
422
|
+
const wrappedCallback = callback
|
|
423
|
+
? (error, response, options, rawResponse) => {
|
|
424
|
+
this._log.info('updatePlacement response %j', response);
|
|
425
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
426
|
+
}
|
|
427
|
+
: undefined;
|
|
428
|
+
return this.innerApiCalls.updatePlacement(request, options, wrappedCallback)
|
|
429
|
+
?.then(([response, options, rawResponse]) => {
|
|
430
|
+
this._log.info('updatePlacement response %j', response);
|
|
431
|
+
return [response, options, rawResponse];
|
|
432
|
+
}).catch((error) => {
|
|
433
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
434
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
435
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
436
|
+
}
|
|
437
|
+
throw error;
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
batchCreatePlacements(request, optionsOrCallback, callback) {
|
|
441
|
+
request = request || {};
|
|
442
|
+
let options;
|
|
443
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
444
|
+
callback = optionsOrCallback;
|
|
445
|
+
options = {};
|
|
446
|
+
}
|
|
447
|
+
else {
|
|
448
|
+
options = optionsOrCallback;
|
|
449
|
+
}
|
|
450
|
+
options = options || {};
|
|
451
|
+
options.otherArgs = options.otherArgs || {};
|
|
452
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
453
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
454
|
+
'parent': request.parent ?? '',
|
|
455
|
+
});
|
|
456
|
+
this.initialize().catch(err => { throw err; });
|
|
457
|
+
this._log.info('batchCreatePlacements request %j', request);
|
|
458
|
+
const wrappedCallback = callback
|
|
459
|
+
? (error, response, options, rawResponse) => {
|
|
460
|
+
this._log.info('batchCreatePlacements response %j', response);
|
|
461
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
462
|
+
}
|
|
463
|
+
: undefined;
|
|
464
|
+
return this.innerApiCalls.batchCreatePlacements(request, options, wrappedCallback)
|
|
465
|
+
?.then(([response, options, rawResponse]) => {
|
|
466
|
+
this._log.info('batchCreatePlacements response %j', response);
|
|
467
|
+
return [response, options, rawResponse];
|
|
468
|
+
}).catch((error) => {
|
|
469
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
470
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
471
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
472
|
+
}
|
|
473
|
+
throw error;
|
|
474
|
+
});
|
|
475
|
+
}
|
|
476
|
+
batchUpdatePlacements(request, optionsOrCallback, callback) {
|
|
477
|
+
request = request || {};
|
|
478
|
+
let options;
|
|
479
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
480
|
+
callback = optionsOrCallback;
|
|
481
|
+
options = {};
|
|
482
|
+
}
|
|
483
|
+
else {
|
|
484
|
+
options = optionsOrCallback;
|
|
485
|
+
}
|
|
486
|
+
options = options || {};
|
|
487
|
+
options.otherArgs = options.otherArgs || {};
|
|
488
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
489
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
490
|
+
'parent': request.parent ?? '',
|
|
491
|
+
});
|
|
492
|
+
this.initialize().catch(err => { throw err; });
|
|
493
|
+
this._log.info('batchUpdatePlacements request %j', request);
|
|
494
|
+
const wrappedCallback = callback
|
|
495
|
+
? (error, response, options, rawResponse) => {
|
|
496
|
+
this._log.info('batchUpdatePlacements response %j', response);
|
|
497
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
498
|
+
}
|
|
499
|
+
: undefined;
|
|
500
|
+
return this.innerApiCalls.batchUpdatePlacements(request, options, wrappedCallback)
|
|
501
|
+
?.then(([response, options, rawResponse]) => {
|
|
502
|
+
this._log.info('batchUpdatePlacements response %j', response);
|
|
503
|
+
return [response, options, rawResponse];
|
|
504
|
+
}).catch((error) => {
|
|
505
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
506
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
507
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
508
|
+
}
|
|
509
|
+
throw error;
|
|
510
|
+
});
|
|
511
|
+
}
|
|
512
|
+
batchActivatePlacements(request, optionsOrCallback, callback) {
|
|
513
|
+
request = request || {};
|
|
514
|
+
let options;
|
|
515
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
516
|
+
callback = optionsOrCallback;
|
|
517
|
+
options = {};
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
options = optionsOrCallback;
|
|
521
|
+
}
|
|
522
|
+
options = options || {};
|
|
523
|
+
options.otherArgs = options.otherArgs || {};
|
|
524
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
525
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
526
|
+
'parent': request.parent ?? '',
|
|
527
|
+
});
|
|
528
|
+
this.initialize().catch(err => { throw err; });
|
|
529
|
+
this._log.info('batchActivatePlacements request %j', request);
|
|
530
|
+
const wrappedCallback = callback
|
|
531
|
+
? (error, response, options, rawResponse) => {
|
|
532
|
+
this._log.info('batchActivatePlacements response %j', response);
|
|
533
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
534
|
+
}
|
|
535
|
+
: undefined;
|
|
536
|
+
return this.innerApiCalls.batchActivatePlacements(request, options, wrappedCallback)
|
|
537
|
+
?.then(([response, options, rawResponse]) => {
|
|
538
|
+
this._log.info('batchActivatePlacements response %j', response);
|
|
539
|
+
return [response, options, rawResponse];
|
|
540
|
+
}).catch((error) => {
|
|
541
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
542
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
543
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
544
|
+
}
|
|
545
|
+
throw error;
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
batchDeactivatePlacements(request, optionsOrCallback, callback) {
|
|
549
|
+
request = request || {};
|
|
550
|
+
let options;
|
|
551
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
552
|
+
callback = optionsOrCallback;
|
|
553
|
+
options = {};
|
|
554
|
+
}
|
|
555
|
+
else {
|
|
556
|
+
options = optionsOrCallback;
|
|
557
|
+
}
|
|
558
|
+
options = options || {};
|
|
559
|
+
options.otherArgs = options.otherArgs || {};
|
|
560
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
561
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
562
|
+
'parent': request.parent ?? '',
|
|
563
|
+
});
|
|
564
|
+
this.initialize().catch(err => { throw err; });
|
|
565
|
+
this._log.info('batchDeactivatePlacements request %j', request);
|
|
566
|
+
const wrappedCallback = callback
|
|
567
|
+
? (error, response, options, rawResponse) => {
|
|
568
|
+
this._log.info('batchDeactivatePlacements response %j', response);
|
|
569
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
570
|
+
}
|
|
571
|
+
: undefined;
|
|
572
|
+
return this.innerApiCalls.batchDeactivatePlacements(request, options, wrappedCallback)
|
|
573
|
+
?.then(([response, options, rawResponse]) => {
|
|
574
|
+
this._log.info('batchDeactivatePlacements response %j', response);
|
|
575
|
+
return [response, options, rawResponse];
|
|
576
|
+
}).catch((error) => {
|
|
577
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
578
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
579
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
580
|
+
}
|
|
581
|
+
throw error;
|
|
582
|
+
});
|
|
583
|
+
}
|
|
584
|
+
batchArchivePlacements(request, optionsOrCallback, callback) {
|
|
585
|
+
request = request || {};
|
|
586
|
+
let options;
|
|
587
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
588
|
+
callback = optionsOrCallback;
|
|
589
|
+
options = {};
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
options = optionsOrCallback;
|
|
593
|
+
}
|
|
594
|
+
options = options || {};
|
|
595
|
+
options.otherArgs = options.otherArgs || {};
|
|
596
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
597
|
+
options.otherArgs.headers['x-goog-request-params'] = this._gaxModule.routingHeader.fromParams({
|
|
598
|
+
'parent': request.parent ?? '',
|
|
599
|
+
});
|
|
600
|
+
this.initialize().catch(err => { throw err; });
|
|
601
|
+
this._log.info('batchArchivePlacements request %j', request);
|
|
602
|
+
const wrappedCallback = callback
|
|
603
|
+
? (error, response, options, rawResponse) => {
|
|
604
|
+
this._log.info('batchArchivePlacements response %j', response);
|
|
605
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
606
|
+
}
|
|
607
|
+
: undefined;
|
|
608
|
+
return this.innerApiCalls.batchArchivePlacements(request, options, wrappedCallback)
|
|
609
|
+
?.then(([response, options, rawResponse]) => {
|
|
610
|
+
this._log.info('batchArchivePlacements response %j', response);
|
|
611
|
+
return [response, options, rawResponse];
|
|
612
|
+
}).catch((error) => {
|
|
613
|
+
if (error && 'statusDetails' in error && error.statusDetails instanceof Array) {
|
|
614
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
615
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
616
|
+
}
|
|
617
|
+
throw error;
|
|
618
|
+
});
|
|
619
|
+
}
|
|
350
620
|
listPlacements(request, optionsOrCallback, callback) {
|
|
351
621
|
request = request || {};
|
|
352
622
|
let options;
|
|
@@ -388,8 +658,8 @@ class PlacementServiceClient {
|
|
|
388
658
|
* @param {number} [request.pageSize]
|
|
389
659
|
* Optional. The maximum number of `Placements` to return. The service may
|
|
390
660
|
* return fewer than this value. If unspecified, at most 50 `Placements` will
|
|
391
|
-
* be returned. The maximum value is 1000; values
|
|
392
|
-
* to 1000.
|
|
661
|
+
* be returned. The maximum value is 1000; values greater than 1000 will be
|
|
662
|
+
* coerced to 1000.
|
|
393
663
|
* @param {string} [request.pageToken]
|
|
394
664
|
* Optional. A page token, received from a previous `ListPlacements` call.
|
|
395
665
|
* Provide this to retrieve the subsequent page.
|
|
@@ -443,8 +713,8 @@ class PlacementServiceClient {
|
|
|
443
713
|
* @param {number} [request.pageSize]
|
|
444
714
|
* Optional. The maximum number of `Placements` to return. The service may
|
|
445
715
|
* return fewer than this value. If unspecified, at most 50 `Placements` will
|
|
446
|
-
* be returned. The maximum value is 1000; values
|
|
447
|
-
* to 1000.
|
|
716
|
+
* be returned. The maximum value is 1000; values greater than 1000 will be
|
|
717
|
+
* coerced to 1000.
|
|
448
718
|
* @param {string} [request.pageToken]
|
|
449
719
|
* Optional. A page token, received from a previous `ListPlacements` call.
|
|
450
720
|
* Provide this to retrieve the subsequent page.
|
|
@@ -491,115 +761,358 @@ class PlacementServiceClient {
|
|
|
491
761
|
// -- Path templates --
|
|
492
762
|
// --------------------
|
|
493
763
|
/**
|
|
494
|
-
* Return a fully-qualified adBreak resource name string.
|
|
764
|
+
* Return a fully-qualified adBreak resource name string.
|
|
765
|
+
*
|
|
766
|
+
* @param {string} network_code
|
|
767
|
+
* @param {string} asset_key
|
|
768
|
+
* @param {string} ad_break
|
|
769
|
+
* @returns {string} Resource name string.
|
|
770
|
+
*/
|
|
771
|
+
adBreakPath(networkCode, assetKey, adBreak) {
|
|
772
|
+
return this.pathTemplates.adBreakPathTemplate.render({
|
|
773
|
+
network_code: networkCode,
|
|
774
|
+
asset_key: assetKey,
|
|
775
|
+
ad_break: adBreak,
|
|
776
|
+
});
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Parse the network_code from AdBreak resource.
|
|
780
|
+
*
|
|
781
|
+
* @param {string} adBreakName
|
|
782
|
+
* A fully-qualified path representing AdBreak resource.
|
|
783
|
+
* @returns {string} A string representing the network_code.
|
|
784
|
+
*/
|
|
785
|
+
matchNetworkCodeFromAdBreakName(adBreakName) {
|
|
786
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).network_code;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Parse the asset_key from AdBreak resource.
|
|
790
|
+
*
|
|
791
|
+
* @param {string} adBreakName
|
|
792
|
+
* A fully-qualified path representing AdBreak resource.
|
|
793
|
+
* @returns {string} A string representing the asset_key.
|
|
794
|
+
*/
|
|
795
|
+
matchAssetKeyFromAdBreakName(adBreakName) {
|
|
796
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).asset_key;
|
|
797
|
+
}
|
|
798
|
+
/**
|
|
799
|
+
* Parse the ad_break from AdBreak resource.
|
|
800
|
+
*
|
|
801
|
+
* @param {string} adBreakName
|
|
802
|
+
* A fully-qualified path representing AdBreak resource.
|
|
803
|
+
* @returns {string} A string representing the ad_break.
|
|
804
|
+
*/
|
|
805
|
+
matchAdBreakFromAdBreakName(adBreakName) {
|
|
806
|
+
return this.pathTemplates.adBreakPathTemplate.match(adBreakName).ad_break;
|
|
807
|
+
}
|
|
808
|
+
/**
|
|
809
|
+
* Return a fully-qualified adReviewCenterAd resource name string.
|
|
810
|
+
*
|
|
811
|
+
* @param {string} network_code
|
|
812
|
+
* @param {string} web_property_code
|
|
813
|
+
* @param {string} ad_review_center_ad
|
|
814
|
+
* @returns {string} Resource name string.
|
|
815
|
+
*/
|
|
816
|
+
adReviewCenterAdPath(networkCode, webPropertyCode, adReviewCenterAd) {
|
|
817
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.render({
|
|
818
|
+
network_code: networkCode,
|
|
819
|
+
web_property_code: webPropertyCode,
|
|
820
|
+
ad_review_center_ad: adReviewCenterAd,
|
|
821
|
+
});
|
|
822
|
+
}
|
|
823
|
+
/**
|
|
824
|
+
* Parse the network_code from AdReviewCenterAd resource.
|
|
825
|
+
*
|
|
826
|
+
* @param {string} adReviewCenterAdName
|
|
827
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
828
|
+
* @returns {string} A string representing the network_code.
|
|
829
|
+
*/
|
|
830
|
+
matchNetworkCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
831
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).network_code;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Parse the web_property_code from AdReviewCenterAd resource.
|
|
835
|
+
*
|
|
836
|
+
* @param {string} adReviewCenterAdName
|
|
837
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
838
|
+
* @returns {string} A string representing the web_property_code.
|
|
839
|
+
*/
|
|
840
|
+
matchWebPropertyCodeFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
841
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).web_property_code;
|
|
842
|
+
}
|
|
843
|
+
/**
|
|
844
|
+
* Parse the ad_review_center_ad from AdReviewCenterAd resource.
|
|
845
|
+
*
|
|
846
|
+
* @param {string} adReviewCenterAdName
|
|
847
|
+
* A fully-qualified path representing AdReviewCenterAd resource.
|
|
848
|
+
* @returns {string} A string representing the ad_review_center_ad.
|
|
849
|
+
*/
|
|
850
|
+
matchAdReviewCenterAdFromAdReviewCenterAdName(adReviewCenterAdName) {
|
|
851
|
+
return this.pathTemplates.adReviewCenterAdPathTemplate.match(adReviewCenterAdName).ad_review_center_ad;
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Return a fully-qualified adUnit resource name string.
|
|
855
|
+
*
|
|
856
|
+
* @param {string} network_code
|
|
857
|
+
* @param {string} ad_unit
|
|
858
|
+
* @returns {string} Resource name string.
|
|
859
|
+
*/
|
|
860
|
+
adUnitPath(networkCode, adUnit) {
|
|
861
|
+
return this.pathTemplates.adUnitPathTemplate.render({
|
|
862
|
+
network_code: networkCode,
|
|
863
|
+
ad_unit: adUnit,
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* Parse the network_code from AdUnit resource.
|
|
868
|
+
*
|
|
869
|
+
* @param {string} adUnitName
|
|
870
|
+
* A fully-qualified path representing AdUnit resource.
|
|
871
|
+
* @returns {string} A string representing the network_code.
|
|
872
|
+
*/
|
|
873
|
+
matchNetworkCodeFromAdUnitName(adUnitName) {
|
|
874
|
+
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).network_code;
|
|
875
|
+
}
|
|
876
|
+
/**
|
|
877
|
+
* Parse the ad_unit from AdUnit resource.
|
|
878
|
+
*
|
|
879
|
+
* @param {string} adUnitName
|
|
880
|
+
* A fully-qualified path representing AdUnit resource.
|
|
881
|
+
* @returns {string} A string representing the ad_unit.
|
|
882
|
+
*/
|
|
883
|
+
matchAdUnitFromAdUnitName(adUnitName) {
|
|
884
|
+
return this.pathTemplates.adUnitPathTemplate.match(adUnitName).ad_unit;
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* Return a fully-qualified application resource name string.
|
|
888
|
+
*
|
|
889
|
+
* @param {string} network_code
|
|
890
|
+
* @param {string} application
|
|
891
|
+
* @returns {string} Resource name string.
|
|
892
|
+
*/
|
|
893
|
+
applicationPath(networkCode, application) {
|
|
894
|
+
return this.pathTemplates.applicationPathTemplate.render({
|
|
895
|
+
network_code: networkCode,
|
|
896
|
+
application: application,
|
|
897
|
+
});
|
|
898
|
+
}
|
|
899
|
+
/**
|
|
900
|
+
* Parse the network_code from Application resource.
|
|
901
|
+
*
|
|
902
|
+
* @param {string} applicationName
|
|
903
|
+
* A fully-qualified path representing Application resource.
|
|
904
|
+
* @returns {string} A string representing the network_code.
|
|
905
|
+
*/
|
|
906
|
+
matchNetworkCodeFromApplicationName(applicationName) {
|
|
907
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).network_code;
|
|
908
|
+
}
|
|
909
|
+
/**
|
|
910
|
+
* Parse the application from Application resource.
|
|
911
|
+
*
|
|
912
|
+
* @param {string} applicationName
|
|
913
|
+
* A fully-qualified path representing Application resource.
|
|
914
|
+
* @returns {string} A string representing the application.
|
|
915
|
+
*/
|
|
916
|
+
matchApplicationFromApplicationName(applicationName) {
|
|
917
|
+
return this.pathTemplates.applicationPathTemplate.match(applicationName).application;
|
|
918
|
+
}
|
|
919
|
+
/**
|
|
920
|
+
* Return a fully-qualified audienceSegment resource name string.
|
|
921
|
+
*
|
|
922
|
+
* @param {string} network_code
|
|
923
|
+
* @param {string} audience_segment
|
|
924
|
+
* @returns {string} Resource name string.
|
|
925
|
+
*/
|
|
926
|
+
audienceSegmentPath(networkCode, audienceSegment) {
|
|
927
|
+
return this.pathTemplates.audienceSegmentPathTemplate.render({
|
|
928
|
+
network_code: networkCode,
|
|
929
|
+
audience_segment: audienceSegment,
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
/**
|
|
933
|
+
* Parse the network_code from AudienceSegment resource.
|
|
934
|
+
*
|
|
935
|
+
* @param {string} audienceSegmentName
|
|
936
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
937
|
+
* @returns {string} A string representing the network_code.
|
|
938
|
+
*/
|
|
939
|
+
matchNetworkCodeFromAudienceSegmentName(audienceSegmentName) {
|
|
940
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).network_code;
|
|
941
|
+
}
|
|
942
|
+
/**
|
|
943
|
+
* Parse the audience_segment from AudienceSegment resource.
|
|
944
|
+
*
|
|
945
|
+
* @param {string} audienceSegmentName
|
|
946
|
+
* A fully-qualified path representing AudienceSegment resource.
|
|
947
|
+
* @returns {string} A string representing the audience_segment.
|
|
948
|
+
*/
|
|
949
|
+
matchAudienceSegmentFromAudienceSegmentName(audienceSegmentName) {
|
|
950
|
+
return this.pathTemplates.audienceSegmentPathTemplate.match(audienceSegmentName).audience_segment;
|
|
951
|
+
}
|
|
952
|
+
/**
|
|
953
|
+
* Return a fully-qualified bandwidthGroup resource name string.
|
|
954
|
+
*
|
|
955
|
+
* @param {string} network_code
|
|
956
|
+
* @param {string} bandwidth_group
|
|
957
|
+
* @returns {string} Resource name string.
|
|
958
|
+
*/
|
|
959
|
+
bandwidthGroupPath(networkCode, bandwidthGroup) {
|
|
960
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.render({
|
|
961
|
+
network_code: networkCode,
|
|
962
|
+
bandwidth_group: bandwidthGroup,
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Parse the network_code from BandwidthGroup resource.
|
|
967
|
+
*
|
|
968
|
+
* @param {string} bandwidthGroupName
|
|
969
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
970
|
+
* @returns {string} A string representing the network_code.
|
|
971
|
+
*/
|
|
972
|
+
matchNetworkCodeFromBandwidthGroupName(bandwidthGroupName) {
|
|
973
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).network_code;
|
|
974
|
+
}
|
|
975
|
+
/**
|
|
976
|
+
* Parse the bandwidth_group from BandwidthGroup resource.
|
|
977
|
+
*
|
|
978
|
+
* @param {string} bandwidthGroupName
|
|
979
|
+
* A fully-qualified path representing BandwidthGroup resource.
|
|
980
|
+
* @returns {string} A string representing the bandwidth_group.
|
|
981
|
+
*/
|
|
982
|
+
matchBandwidthGroupFromBandwidthGroupName(bandwidthGroupName) {
|
|
983
|
+
return this.pathTemplates.bandwidthGroupPathTemplate.match(bandwidthGroupName).bandwidth_group;
|
|
984
|
+
}
|
|
985
|
+
/**
|
|
986
|
+
* Return a fully-qualified browser resource name string.
|
|
495
987
|
*
|
|
496
988
|
* @param {string} network_code
|
|
497
|
-
* @param {string}
|
|
498
|
-
* @param {string} ad_break
|
|
989
|
+
* @param {string} browser
|
|
499
990
|
* @returns {string} Resource name string.
|
|
500
991
|
*/
|
|
501
|
-
|
|
502
|
-
return this.pathTemplates.
|
|
992
|
+
browserPath(networkCode, browser) {
|
|
993
|
+
return this.pathTemplates.browserPathTemplate.render({
|
|
503
994
|
network_code: networkCode,
|
|
504
|
-
|
|
505
|
-
ad_break: adBreak,
|
|
995
|
+
browser: browser,
|
|
506
996
|
});
|
|
507
997
|
}
|
|
508
998
|
/**
|
|
509
|
-
* Parse the network_code from
|
|
999
|
+
* Parse the network_code from Browser resource.
|
|
510
1000
|
*
|
|
511
|
-
* @param {string}
|
|
512
|
-
* A fully-qualified path representing
|
|
1001
|
+
* @param {string} browserName
|
|
1002
|
+
* A fully-qualified path representing Browser resource.
|
|
513
1003
|
* @returns {string} A string representing the network_code.
|
|
514
1004
|
*/
|
|
515
|
-
|
|
516
|
-
return this.pathTemplates.
|
|
1005
|
+
matchNetworkCodeFromBrowserName(browserName) {
|
|
1006
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).network_code;
|
|
517
1007
|
}
|
|
518
1008
|
/**
|
|
519
|
-
* Parse the
|
|
1009
|
+
* Parse the browser from Browser resource.
|
|
520
1010
|
*
|
|
521
|
-
* @param {string}
|
|
522
|
-
* A fully-qualified path representing
|
|
523
|
-
* @returns {string} A string representing the
|
|
1011
|
+
* @param {string} browserName
|
|
1012
|
+
* A fully-qualified path representing Browser resource.
|
|
1013
|
+
* @returns {string} A string representing the browser.
|
|
524
1014
|
*/
|
|
525
|
-
|
|
526
|
-
return this.pathTemplates.
|
|
1015
|
+
matchBrowserFromBrowserName(browserName) {
|
|
1016
|
+
return this.pathTemplates.browserPathTemplate.match(browserName).browser;
|
|
527
1017
|
}
|
|
528
1018
|
/**
|
|
529
|
-
*
|
|
1019
|
+
* Return a fully-qualified browserLanguage resource name string.
|
|
530
1020
|
*
|
|
531
|
-
* @param {string}
|
|
532
|
-
*
|
|
533
|
-
* @returns {string}
|
|
1021
|
+
* @param {string} network_code
|
|
1022
|
+
* @param {string} browser_language
|
|
1023
|
+
* @returns {string} Resource name string.
|
|
534
1024
|
*/
|
|
535
|
-
|
|
536
|
-
return this.pathTemplates.
|
|
1025
|
+
browserLanguagePath(networkCode, browserLanguage) {
|
|
1026
|
+
return this.pathTemplates.browserLanguagePathTemplate.render({
|
|
1027
|
+
network_code: networkCode,
|
|
1028
|
+
browser_language: browserLanguage,
|
|
1029
|
+
});
|
|
537
1030
|
}
|
|
538
1031
|
/**
|
|
539
|
-
*
|
|
1032
|
+
* Parse the network_code from BrowserLanguage resource.
|
|
1033
|
+
*
|
|
1034
|
+
* @param {string} browserLanguageName
|
|
1035
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
1036
|
+
* @returns {string} A string representing the network_code.
|
|
1037
|
+
*/
|
|
1038
|
+
matchNetworkCodeFromBrowserLanguageName(browserLanguageName) {
|
|
1039
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).network_code;
|
|
1040
|
+
}
|
|
1041
|
+
/**
|
|
1042
|
+
* Parse the browser_language from BrowserLanguage resource.
|
|
1043
|
+
*
|
|
1044
|
+
* @param {string} browserLanguageName
|
|
1045
|
+
* A fully-qualified path representing BrowserLanguage resource.
|
|
1046
|
+
* @returns {string} A string representing the browser_language.
|
|
1047
|
+
*/
|
|
1048
|
+
matchBrowserLanguageFromBrowserLanguageName(browserLanguageName) {
|
|
1049
|
+
return this.pathTemplates.browserLanguagePathTemplate.match(browserLanguageName).browser_language;
|
|
1050
|
+
}
|
|
1051
|
+
/**
|
|
1052
|
+
* Return a fully-qualified cmsMetadataKey resource name string.
|
|
540
1053
|
*
|
|
541
1054
|
* @param {string} network_code
|
|
542
|
-
* @param {string}
|
|
1055
|
+
* @param {string} cms_metadata_key
|
|
543
1056
|
* @returns {string} Resource name string.
|
|
544
1057
|
*/
|
|
545
|
-
|
|
546
|
-
return this.pathTemplates.
|
|
1058
|
+
cmsMetadataKeyPath(networkCode, cmsMetadataKey) {
|
|
1059
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.render({
|
|
547
1060
|
network_code: networkCode,
|
|
548
|
-
|
|
1061
|
+
cms_metadata_key: cmsMetadataKey,
|
|
549
1062
|
});
|
|
550
1063
|
}
|
|
551
1064
|
/**
|
|
552
|
-
* Parse the network_code from
|
|
1065
|
+
* Parse the network_code from CmsMetadataKey resource.
|
|
553
1066
|
*
|
|
554
|
-
* @param {string}
|
|
555
|
-
* A fully-qualified path representing
|
|
1067
|
+
* @param {string} cmsMetadataKeyName
|
|
1068
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
556
1069
|
* @returns {string} A string representing the network_code.
|
|
557
1070
|
*/
|
|
558
|
-
|
|
559
|
-
return this.pathTemplates.
|
|
1071
|
+
matchNetworkCodeFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
1072
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).network_code;
|
|
560
1073
|
}
|
|
561
1074
|
/**
|
|
562
|
-
* Parse the
|
|
1075
|
+
* Parse the cms_metadata_key from CmsMetadataKey resource.
|
|
563
1076
|
*
|
|
564
|
-
* @param {string}
|
|
565
|
-
* A fully-qualified path representing
|
|
566
|
-
* @returns {string} A string representing the
|
|
1077
|
+
* @param {string} cmsMetadataKeyName
|
|
1078
|
+
* A fully-qualified path representing CmsMetadataKey resource.
|
|
1079
|
+
* @returns {string} A string representing the cms_metadata_key.
|
|
567
1080
|
*/
|
|
568
|
-
|
|
569
|
-
return this.pathTemplates.
|
|
1081
|
+
matchCmsMetadataKeyFromCmsMetadataKeyName(cmsMetadataKeyName) {
|
|
1082
|
+
return this.pathTemplates.cmsMetadataKeyPathTemplate.match(cmsMetadataKeyName).cms_metadata_key;
|
|
570
1083
|
}
|
|
571
1084
|
/**
|
|
572
|
-
* Return a fully-qualified
|
|
1085
|
+
* Return a fully-qualified cmsMetadataValue resource name string.
|
|
573
1086
|
*
|
|
574
1087
|
* @param {string} network_code
|
|
575
|
-
* @param {string}
|
|
1088
|
+
* @param {string} cms_metadata_value
|
|
576
1089
|
* @returns {string} Resource name string.
|
|
577
1090
|
*/
|
|
578
|
-
|
|
579
|
-
return this.pathTemplates.
|
|
1091
|
+
cmsMetadataValuePath(networkCode, cmsMetadataValue) {
|
|
1092
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.render({
|
|
580
1093
|
network_code: networkCode,
|
|
581
|
-
|
|
1094
|
+
cms_metadata_value: cmsMetadataValue,
|
|
582
1095
|
});
|
|
583
1096
|
}
|
|
584
1097
|
/**
|
|
585
|
-
* Parse the network_code from
|
|
1098
|
+
* Parse the network_code from CmsMetadataValue resource.
|
|
586
1099
|
*
|
|
587
|
-
* @param {string}
|
|
588
|
-
* A fully-qualified path representing
|
|
1100
|
+
* @param {string} cmsMetadataValueName
|
|
1101
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
589
1102
|
* @returns {string} A string representing the network_code.
|
|
590
1103
|
*/
|
|
591
|
-
|
|
592
|
-
return this.pathTemplates.
|
|
1104
|
+
matchNetworkCodeFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
1105
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).network_code;
|
|
593
1106
|
}
|
|
594
1107
|
/**
|
|
595
|
-
* Parse the
|
|
1108
|
+
* Parse the cms_metadata_value from CmsMetadataValue resource.
|
|
596
1109
|
*
|
|
597
|
-
* @param {string}
|
|
598
|
-
* A fully-qualified path representing
|
|
599
|
-
* @returns {string} A string representing the
|
|
1110
|
+
* @param {string} cmsMetadataValueName
|
|
1111
|
+
* A fully-qualified path representing CmsMetadataValue resource.
|
|
1112
|
+
* @returns {string} A string representing the cms_metadata_value.
|
|
600
1113
|
*/
|
|
601
|
-
|
|
602
|
-
return this.pathTemplates.
|
|
1114
|
+
matchCmsMetadataValueFromCmsMetadataValueName(cmsMetadataValueName) {
|
|
1115
|
+
return this.pathTemplates.cmsMetadataValuePathTemplate.match(cmsMetadataValueName).cms_metadata_value;
|
|
603
1116
|
}
|
|
604
1117
|
/**
|
|
605
1118
|
* Return a fully-qualified company resource name string.
|
|
@@ -667,6 +1180,138 @@ class PlacementServiceClient {
|
|
|
667
1180
|
matchContactFromContactName(contactName) {
|
|
668
1181
|
return this.pathTemplates.contactPathTemplate.match(contactName).contact;
|
|
669
1182
|
}
|
|
1183
|
+
/**
|
|
1184
|
+
* Return a fully-qualified content resource name string.
|
|
1185
|
+
*
|
|
1186
|
+
* @param {string} network_code
|
|
1187
|
+
* @param {string} content
|
|
1188
|
+
* @returns {string} Resource name string.
|
|
1189
|
+
*/
|
|
1190
|
+
contentPath(networkCode, content) {
|
|
1191
|
+
return this.pathTemplates.contentPathTemplate.render({
|
|
1192
|
+
network_code: networkCode,
|
|
1193
|
+
content: content,
|
|
1194
|
+
});
|
|
1195
|
+
}
|
|
1196
|
+
/**
|
|
1197
|
+
* Parse the network_code from Content resource.
|
|
1198
|
+
*
|
|
1199
|
+
* @param {string} contentName
|
|
1200
|
+
* A fully-qualified path representing Content resource.
|
|
1201
|
+
* @returns {string} A string representing the network_code.
|
|
1202
|
+
*/
|
|
1203
|
+
matchNetworkCodeFromContentName(contentName) {
|
|
1204
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).network_code;
|
|
1205
|
+
}
|
|
1206
|
+
/**
|
|
1207
|
+
* Parse the content from Content resource.
|
|
1208
|
+
*
|
|
1209
|
+
* @param {string} contentName
|
|
1210
|
+
* A fully-qualified path representing Content resource.
|
|
1211
|
+
* @returns {string} A string representing the content.
|
|
1212
|
+
*/
|
|
1213
|
+
matchContentFromContentName(contentName) {
|
|
1214
|
+
return this.pathTemplates.contentPathTemplate.match(contentName).content;
|
|
1215
|
+
}
|
|
1216
|
+
/**
|
|
1217
|
+
* Return a fully-qualified contentBundle resource name string.
|
|
1218
|
+
*
|
|
1219
|
+
* @param {string} network_code
|
|
1220
|
+
* @param {string} content_bundle
|
|
1221
|
+
* @returns {string} Resource name string.
|
|
1222
|
+
*/
|
|
1223
|
+
contentBundlePath(networkCode, contentBundle) {
|
|
1224
|
+
return this.pathTemplates.contentBundlePathTemplate.render({
|
|
1225
|
+
network_code: networkCode,
|
|
1226
|
+
content_bundle: contentBundle,
|
|
1227
|
+
});
|
|
1228
|
+
}
|
|
1229
|
+
/**
|
|
1230
|
+
* Parse the network_code from ContentBundle resource.
|
|
1231
|
+
*
|
|
1232
|
+
* @param {string} contentBundleName
|
|
1233
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
1234
|
+
* @returns {string} A string representing the network_code.
|
|
1235
|
+
*/
|
|
1236
|
+
matchNetworkCodeFromContentBundleName(contentBundleName) {
|
|
1237
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).network_code;
|
|
1238
|
+
}
|
|
1239
|
+
/**
|
|
1240
|
+
* Parse the content_bundle from ContentBundle resource.
|
|
1241
|
+
*
|
|
1242
|
+
* @param {string} contentBundleName
|
|
1243
|
+
* A fully-qualified path representing ContentBundle resource.
|
|
1244
|
+
* @returns {string} A string representing the content_bundle.
|
|
1245
|
+
*/
|
|
1246
|
+
matchContentBundleFromContentBundleName(contentBundleName) {
|
|
1247
|
+
return this.pathTemplates.contentBundlePathTemplate.match(contentBundleName).content_bundle;
|
|
1248
|
+
}
|
|
1249
|
+
/**
|
|
1250
|
+
* Return a fully-qualified contentLabel resource name string.
|
|
1251
|
+
*
|
|
1252
|
+
* @param {string} network_code
|
|
1253
|
+
* @param {string} content_label
|
|
1254
|
+
* @returns {string} Resource name string.
|
|
1255
|
+
*/
|
|
1256
|
+
contentLabelPath(networkCode, contentLabel) {
|
|
1257
|
+
return this.pathTemplates.contentLabelPathTemplate.render({
|
|
1258
|
+
network_code: networkCode,
|
|
1259
|
+
content_label: contentLabel,
|
|
1260
|
+
});
|
|
1261
|
+
}
|
|
1262
|
+
/**
|
|
1263
|
+
* Parse the network_code from ContentLabel resource.
|
|
1264
|
+
*
|
|
1265
|
+
* @param {string} contentLabelName
|
|
1266
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
1267
|
+
* @returns {string} A string representing the network_code.
|
|
1268
|
+
*/
|
|
1269
|
+
matchNetworkCodeFromContentLabelName(contentLabelName) {
|
|
1270
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).network_code;
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Parse the content_label from ContentLabel resource.
|
|
1274
|
+
*
|
|
1275
|
+
* @param {string} contentLabelName
|
|
1276
|
+
* A fully-qualified path representing ContentLabel resource.
|
|
1277
|
+
* @returns {string} A string representing the content_label.
|
|
1278
|
+
*/
|
|
1279
|
+
matchContentLabelFromContentLabelName(contentLabelName) {
|
|
1280
|
+
return this.pathTemplates.contentLabelPathTemplate.match(contentLabelName).content_label;
|
|
1281
|
+
}
|
|
1282
|
+
/**
|
|
1283
|
+
* Return a fully-qualified creativeTemplate resource name string.
|
|
1284
|
+
*
|
|
1285
|
+
* @param {string} network_code
|
|
1286
|
+
* @param {string} creative_template
|
|
1287
|
+
* @returns {string} Resource name string.
|
|
1288
|
+
*/
|
|
1289
|
+
creativeTemplatePath(networkCode, creativeTemplate) {
|
|
1290
|
+
return this.pathTemplates.creativeTemplatePathTemplate.render({
|
|
1291
|
+
network_code: networkCode,
|
|
1292
|
+
creative_template: creativeTemplate,
|
|
1293
|
+
});
|
|
1294
|
+
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Parse the network_code from CreativeTemplate resource.
|
|
1297
|
+
*
|
|
1298
|
+
* @param {string} creativeTemplateName
|
|
1299
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1300
|
+
* @returns {string} A string representing the network_code.
|
|
1301
|
+
*/
|
|
1302
|
+
matchNetworkCodeFromCreativeTemplateName(creativeTemplateName) {
|
|
1303
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).network_code;
|
|
1304
|
+
}
|
|
1305
|
+
/**
|
|
1306
|
+
* Parse the creative_template from CreativeTemplate resource.
|
|
1307
|
+
*
|
|
1308
|
+
* @param {string} creativeTemplateName
|
|
1309
|
+
* A fully-qualified path representing CreativeTemplate resource.
|
|
1310
|
+
* @returns {string} A string representing the creative_template.
|
|
1311
|
+
*/
|
|
1312
|
+
matchCreativeTemplateFromCreativeTemplateName(creativeTemplateName) {
|
|
1313
|
+
return this.pathTemplates.creativeTemplatePathTemplate.match(creativeTemplateName).creative_template;
|
|
1314
|
+
}
|
|
670
1315
|
/**
|
|
671
1316
|
* Return a fully-qualified customField resource name string.
|
|
672
1317
|
*
|
|
@@ -766,6 +1411,39 @@ class PlacementServiceClient {
|
|
|
766
1411
|
matchCustomTargetingValueFromCustomTargetingValueName(customTargetingValueName) {
|
|
767
1412
|
return this.pathTemplates.customTargetingValuePathTemplate.match(customTargetingValueName).custom_targeting_value;
|
|
768
1413
|
}
|
|
1414
|
+
/**
|
|
1415
|
+
* Return a fully-qualified deviceCapability resource name string.
|
|
1416
|
+
*
|
|
1417
|
+
* @param {string} network_code
|
|
1418
|
+
* @param {string} device_capability
|
|
1419
|
+
* @returns {string} Resource name string.
|
|
1420
|
+
*/
|
|
1421
|
+
deviceCapabilityPath(networkCode, deviceCapability) {
|
|
1422
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.render({
|
|
1423
|
+
network_code: networkCode,
|
|
1424
|
+
device_capability: deviceCapability,
|
|
1425
|
+
});
|
|
1426
|
+
}
|
|
1427
|
+
/**
|
|
1428
|
+
* Parse the network_code from DeviceCapability resource.
|
|
1429
|
+
*
|
|
1430
|
+
* @param {string} deviceCapabilityName
|
|
1431
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1432
|
+
* @returns {string} A string representing the network_code.
|
|
1433
|
+
*/
|
|
1434
|
+
matchNetworkCodeFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1435
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).network_code;
|
|
1436
|
+
}
|
|
1437
|
+
/**
|
|
1438
|
+
* Parse the device_capability from DeviceCapability resource.
|
|
1439
|
+
*
|
|
1440
|
+
* @param {string} deviceCapabilityName
|
|
1441
|
+
* A fully-qualified path representing DeviceCapability resource.
|
|
1442
|
+
* @returns {string} A string representing the device_capability.
|
|
1443
|
+
*/
|
|
1444
|
+
matchDeviceCapabilityFromDeviceCapabilityName(deviceCapabilityName) {
|
|
1445
|
+
return this.pathTemplates.deviceCapabilityPathTemplate.match(deviceCapabilityName).device_capability;
|
|
1446
|
+
}
|
|
769
1447
|
/**
|
|
770
1448
|
* Return a fully-qualified deviceCategory resource name string.
|
|
771
1449
|
*
|
|
@@ -799,6 +1477,39 @@ class PlacementServiceClient {
|
|
|
799
1477
|
matchDeviceCategoryFromDeviceCategoryName(deviceCategoryName) {
|
|
800
1478
|
return this.pathTemplates.deviceCategoryPathTemplate.match(deviceCategoryName).device_category;
|
|
801
1479
|
}
|
|
1480
|
+
/**
|
|
1481
|
+
* Return a fully-qualified deviceManufacturer resource name string.
|
|
1482
|
+
*
|
|
1483
|
+
* @param {string} network_code
|
|
1484
|
+
* @param {string} device_manufacturer
|
|
1485
|
+
* @returns {string} Resource name string.
|
|
1486
|
+
*/
|
|
1487
|
+
deviceManufacturerPath(networkCode, deviceManufacturer) {
|
|
1488
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.render({
|
|
1489
|
+
network_code: networkCode,
|
|
1490
|
+
device_manufacturer: deviceManufacturer,
|
|
1491
|
+
});
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Parse the network_code from DeviceManufacturer resource.
|
|
1495
|
+
*
|
|
1496
|
+
* @param {string} deviceManufacturerName
|
|
1497
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1498
|
+
* @returns {string} A string representing the network_code.
|
|
1499
|
+
*/
|
|
1500
|
+
matchNetworkCodeFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1501
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).network_code;
|
|
1502
|
+
}
|
|
1503
|
+
/**
|
|
1504
|
+
* Parse the device_manufacturer from DeviceManufacturer resource.
|
|
1505
|
+
*
|
|
1506
|
+
* @param {string} deviceManufacturerName
|
|
1507
|
+
* A fully-qualified path representing DeviceManufacturer resource.
|
|
1508
|
+
* @returns {string} A string representing the device_manufacturer.
|
|
1509
|
+
*/
|
|
1510
|
+
matchDeviceManufacturerFromDeviceManufacturerName(deviceManufacturerName) {
|
|
1511
|
+
return this.pathTemplates.deviceManufacturerPathTemplate.match(deviceManufacturerName).device_manufacturer;
|
|
1512
|
+
}
|
|
802
1513
|
/**
|
|
803
1514
|
* Return a fully-qualified entitySignalsMapping resource name string.
|
|
804
1515
|
*
|
|
@@ -931,6 +1642,105 @@ class PlacementServiceClient {
|
|
|
931
1642
|
matchLiveStreamEventFromLiveStreamEventName(liveStreamEventName) {
|
|
932
1643
|
return this.pathTemplates.liveStreamEventPathTemplate.match(liveStreamEventName).live_stream_event;
|
|
933
1644
|
}
|
|
1645
|
+
/**
|
|
1646
|
+
* Return a fully-qualified mobileCarrier resource name string.
|
|
1647
|
+
*
|
|
1648
|
+
* @param {string} network_code
|
|
1649
|
+
* @param {string} mobile_carrier
|
|
1650
|
+
* @returns {string} Resource name string.
|
|
1651
|
+
*/
|
|
1652
|
+
mobileCarrierPath(networkCode, mobileCarrier) {
|
|
1653
|
+
return this.pathTemplates.mobileCarrierPathTemplate.render({
|
|
1654
|
+
network_code: networkCode,
|
|
1655
|
+
mobile_carrier: mobileCarrier,
|
|
1656
|
+
});
|
|
1657
|
+
}
|
|
1658
|
+
/**
|
|
1659
|
+
* Parse the network_code from MobileCarrier resource.
|
|
1660
|
+
*
|
|
1661
|
+
* @param {string} mobileCarrierName
|
|
1662
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1663
|
+
* @returns {string} A string representing the network_code.
|
|
1664
|
+
*/
|
|
1665
|
+
matchNetworkCodeFromMobileCarrierName(mobileCarrierName) {
|
|
1666
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).network_code;
|
|
1667
|
+
}
|
|
1668
|
+
/**
|
|
1669
|
+
* Parse the mobile_carrier from MobileCarrier resource.
|
|
1670
|
+
*
|
|
1671
|
+
* @param {string} mobileCarrierName
|
|
1672
|
+
* A fully-qualified path representing MobileCarrier resource.
|
|
1673
|
+
* @returns {string} A string representing the mobile_carrier.
|
|
1674
|
+
*/
|
|
1675
|
+
matchMobileCarrierFromMobileCarrierName(mobileCarrierName) {
|
|
1676
|
+
return this.pathTemplates.mobileCarrierPathTemplate.match(mobileCarrierName).mobile_carrier;
|
|
1677
|
+
}
|
|
1678
|
+
/**
|
|
1679
|
+
* Return a fully-qualified mobileDevice resource name string.
|
|
1680
|
+
*
|
|
1681
|
+
* @param {string} network_code
|
|
1682
|
+
* @param {string} mobile_device
|
|
1683
|
+
* @returns {string} Resource name string.
|
|
1684
|
+
*/
|
|
1685
|
+
mobileDevicePath(networkCode, mobileDevice) {
|
|
1686
|
+
return this.pathTemplates.mobileDevicePathTemplate.render({
|
|
1687
|
+
network_code: networkCode,
|
|
1688
|
+
mobile_device: mobileDevice,
|
|
1689
|
+
});
|
|
1690
|
+
}
|
|
1691
|
+
/**
|
|
1692
|
+
* Parse the network_code from MobileDevice resource.
|
|
1693
|
+
*
|
|
1694
|
+
* @param {string} mobileDeviceName
|
|
1695
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1696
|
+
* @returns {string} A string representing the network_code.
|
|
1697
|
+
*/
|
|
1698
|
+
matchNetworkCodeFromMobileDeviceName(mobileDeviceName) {
|
|
1699
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).network_code;
|
|
1700
|
+
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Parse the mobile_device from MobileDevice resource.
|
|
1703
|
+
*
|
|
1704
|
+
* @param {string} mobileDeviceName
|
|
1705
|
+
* A fully-qualified path representing MobileDevice resource.
|
|
1706
|
+
* @returns {string} A string representing the mobile_device.
|
|
1707
|
+
*/
|
|
1708
|
+
matchMobileDeviceFromMobileDeviceName(mobileDeviceName) {
|
|
1709
|
+
return this.pathTemplates.mobileDevicePathTemplate.match(mobileDeviceName).mobile_device;
|
|
1710
|
+
}
|
|
1711
|
+
/**
|
|
1712
|
+
* Return a fully-qualified mobileDeviceSubmodel resource name string.
|
|
1713
|
+
*
|
|
1714
|
+
* @param {string} network_code
|
|
1715
|
+
* @param {string} mobile_device_submodel
|
|
1716
|
+
* @returns {string} Resource name string.
|
|
1717
|
+
*/
|
|
1718
|
+
mobileDeviceSubmodelPath(networkCode, mobileDeviceSubmodel) {
|
|
1719
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.render({
|
|
1720
|
+
network_code: networkCode,
|
|
1721
|
+
mobile_device_submodel: mobileDeviceSubmodel,
|
|
1722
|
+
});
|
|
1723
|
+
}
|
|
1724
|
+
/**
|
|
1725
|
+
* Parse the network_code from MobileDeviceSubmodel resource.
|
|
1726
|
+
*
|
|
1727
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1728
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1729
|
+
* @returns {string} A string representing the network_code.
|
|
1730
|
+
*/
|
|
1731
|
+
matchNetworkCodeFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1732
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).network_code;
|
|
1733
|
+
}
|
|
1734
|
+
/**
|
|
1735
|
+
* Parse the mobile_device_submodel from MobileDeviceSubmodel resource.
|
|
1736
|
+
*
|
|
1737
|
+
* @param {string} mobileDeviceSubmodelName
|
|
1738
|
+
* A fully-qualified path representing MobileDeviceSubmodel resource.
|
|
1739
|
+
* @returns {string} A string representing the mobile_device_submodel.
|
|
1740
|
+
*/
|
|
1741
|
+
matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1742
|
+
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
|
|
1743
|
+
}
|
|
934
1744
|
/**
|
|
935
1745
|
* Return a fully-qualified network resource name string.
|
|
936
1746
|
*
|
|
@@ -1249,6 +2059,39 @@ class PlacementServiceClient {
|
|
|
1249
2059
|
matchRoleFromRoleName(roleName) {
|
|
1250
2060
|
return this.pathTemplates.rolePathTemplate.match(roleName).role;
|
|
1251
2061
|
}
|
|
2062
|
+
/**
|
|
2063
|
+
* Return a fully-qualified site resource name string.
|
|
2064
|
+
*
|
|
2065
|
+
* @param {string} network_code
|
|
2066
|
+
* @param {string} site
|
|
2067
|
+
* @returns {string} Resource name string.
|
|
2068
|
+
*/
|
|
2069
|
+
sitePath(networkCode, site) {
|
|
2070
|
+
return this.pathTemplates.sitePathTemplate.render({
|
|
2071
|
+
network_code: networkCode,
|
|
2072
|
+
site: site,
|
|
2073
|
+
});
|
|
2074
|
+
}
|
|
2075
|
+
/**
|
|
2076
|
+
* Parse the network_code from Site resource.
|
|
2077
|
+
*
|
|
2078
|
+
* @param {string} siteName
|
|
2079
|
+
* A fully-qualified path representing Site resource.
|
|
2080
|
+
* @returns {string} A string representing the network_code.
|
|
2081
|
+
*/
|
|
2082
|
+
matchNetworkCodeFromSiteName(siteName) {
|
|
2083
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).network_code;
|
|
2084
|
+
}
|
|
2085
|
+
/**
|
|
2086
|
+
* Parse the site from Site resource.
|
|
2087
|
+
*
|
|
2088
|
+
* @param {string} siteName
|
|
2089
|
+
* A fully-qualified path representing Site resource.
|
|
2090
|
+
* @returns {string} A string representing the site.
|
|
2091
|
+
*/
|
|
2092
|
+
matchSiteFromSiteName(siteName) {
|
|
2093
|
+
return this.pathTemplates.sitePathTemplate.match(siteName).site;
|
|
2094
|
+
}
|
|
1252
2095
|
/**
|
|
1253
2096
|
* Return a fully-qualified taxonomyCategory resource name string.
|
|
1254
2097
|
*
|
|
@@ -1348,6 +2191,39 @@ class PlacementServiceClient {
|
|
|
1348
2191
|
matchUserFromUserName(userName) {
|
|
1349
2192
|
return this.pathTemplates.userPathTemplate.match(userName).user;
|
|
1350
2193
|
}
|
|
2194
|
+
/**
|
|
2195
|
+
* Return a fully-qualified webProperty resource name string.
|
|
2196
|
+
*
|
|
2197
|
+
* @param {string} network_code
|
|
2198
|
+
* @param {string} web_property
|
|
2199
|
+
* @returns {string} Resource name string.
|
|
2200
|
+
*/
|
|
2201
|
+
webPropertyPath(networkCode, webProperty) {
|
|
2202
|
+
return this.pathTemplates.webPropertyPathTemplate.render({
|
|
2203
|
+
network_code: networkCode,
|
|
2204
|
+
web_property: webProperty,
|
|
2205
|
+
});
|
|
2206
|
+
}
|
|
2207
|
+
/**
|
|
2208
|
+
* Parse the network_code from WebProperty resource.
|
|
2209
|
+
*
|
|
2210
|
+
* @param {string} webPropertyName
|
|
2211
|
+
* A fully-qualified path representing WebProperty resource.
|
|
2212
|
+
* @returns {string} A string representing the network_code.
|
|
2213
|
+
*/
|
|
2214
|
+
matchNetworkCodeFromWebPropertyName(webPropertyName) {
|
|
2215
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).network_code;
|
|
2216
|
+
}
|
|
2217
|
+
/**
|
|
2218
|
+
* Parse the web_property from WebProperty resource.
|
|
2219
|
+
*
|
|
2220
|
+
* @param {string} webPropertyName
|
|
2221
|
+
* A fully-qualified path representing WebProperty resource.
|
|
2222
|
+
* @returns {string} A string representing the web_property.
|
|
2223
|
+
*/
|
|
2224
|
+
matchWebPropertyFromWebPropertyName(webPropertyName) {
|
|
2225
|
+
return this.pathTemplates.webPropertyPathTemplate.match(webPropertyName).web_property;
|
|
2226
|
+
}
|
|
1351
2227
|
/**
|
|
1352
2228
|
* Terminate the gRPC channel and close the client.
|
|
1353
2229
|
*
|