@google-ads/admanager 0.10.0 → 0.12.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/build/protos/google/ads/admanager/v1/audience_segment_enums.proto +111 -0
- package/build/protos/google/ads/admanager/v1/audience_segment_messages.proto +164 -1
- package/build/protos/google/ads/admanager/v1/audience_segment_service.proto +194 -0
- package/build/protos/google/ads/admanager/v1/child_publisher_service.proto +232 -0
- package/build/protos/google/ads/admanager/v1/native_style_enums.proto +46 -0
- package/build/protos/google/ads/admanager/v1/native_style_messages.proto +79 -0
- package/build/protos/google/ads/admanager/v1/native_style_service.proto +336 -0
- package/build/protos/google/ads/admanager/v1/network_messages.proto +21 -0
- package/build/protos/google/ads/admanager/v1/network_service.proto +69 -0
- package/build/protos/google/ads/admanager/v1/report_definition.proto +39 -3
- package/build/protos/protos.d.ts +26753 -21329
- package/build/protos/protos.js +1 -1
- package/build/protos/protos.json +1617 -166
- package/build/src/index.d.ts +4 -1
- package/build/src/index.js +5 -3
- package/build/src/index.js.map +1 -1
- package/build/src/v1/ad_break_service_client.d.ts +39 -0
- package/build/src/v1/ad_break_service_client.js +67 -9
- package/build/src/v1/ad_break_service_client.js.map +1 -1
- package/build/src/v1/ad_break_service_proto_list.json +4 -0
- package/build/src/v1/ad_review_center_ad_service_client.d.ts +39 -0
- package/build/src/v1/ad_review_center_ad_service_client.js +65 -7
- package/build/src/v1/ad_review_center_ad_service_client.js.map +1 -1
- package/build/src/v1/ad_review_center_ad_service_proto_list.json +4 -0
- package/build/src/v1/ad_rule_service_client.d.ts +39 -0
- package/build/src/v1/ad_rule_service_client.js +71 -13
- package/build/src/v1/ad_rule_service_client.js.map +1 -1
- package/build/src/v1/ad_rule_service_proto_list.json +4 -0
- package/build/src/v1/ad_spot_service_client.d.ts +39 -0
- package/build/src/v1/ad_spot_service_client.js +68 -10
- package/build/src/v1/ad_spot_service_client.js.map +1 -1
- package/build/src/v1/ad_spot_service_proto_list.json +4 -0
- package/build/src/v1/ad_unit_service_client.d.ts +39 -0
- package/build/src/v1/ad_unit_service_client.js +74 -16
- package/build/src/v1/ad_unit_service_client.js.map +1 -1
- package/build/src/v1/ad_unit_service_proto_list.json +4 -0
- package/build/src/v1/application_service_client.d.ts +39 -0
- package/build/src/v1/application_service_client.js +70 -12
- package/build/src/v1/application_service_client.js.map +1 -1
- package/build/src/v1/application_service_proto_list.json +4 -0
- package/build/src/v1/audience_segment_service_client.d.ts +211 -0
- package/build/src/v1/audience_segment_service_client.js +312 -6
- package/build/src/v1/audience_segment_service_client.js.map +1 -1
- package/build/src/v1/audience_segment_service_client_config.json +20 -0
- package/build/src/v1/audience_segment_service_proto_list.json +4 -0
- package/build/src/v1/bandwidth_group_service_client.d.ts +39 -0
- package/build/src/v1/bandwidth_group_service_client.js +64 -6
- package/build/src/v1/bandwidth_group_service_client.js.map +1 -1
- package/build/src/v1/bandwidth_group_service_proto_list.json +4 -0
- package/build/src/v1/browser_language_service_client.d.ts +39 -0
- package/build/src/v1/browser_language_service_client.js +64 -6
- package/build/src/v1/browser_language_service_client.js.map +1 -1
- package/build/src/v1/browser_language_service_proto_list.json +4 -0
- package/build/src/v1/browser_service_client.d.ts +39 -0
- package/build/src/v1/browser_service_client.js +64 -6
- package/build/src/v1/browser_service_client.js.map +1 -1
- package/build/src/v1/browser_service_proto_list.json +4 -0
- package/build/src/v1/cdn_config_service_client.d.ts +39 -0
- package/build/src/v1/cdn_config_service_client.js +70 -12
- package/build/src/v1/cdn_config_service_client.js.map +1 -1
- package/build/src/v1/cdn_config_service_proto_list.json +4 -0
- package/build/src/v1/child_publisher_service_client.d.ts +177 -0
- package/build/src/v1/child_publisher_service_client.js +244 -10
- package/build/src/v1/child_publisher_service_client.js.map +1 -1
- package/build/src/v1/child_publisher_service_client_config.json +16 -0
- package/build/src/v1/child_publisher_service_proto_list.json +4 -0
- package/build/src/v1/cms_metadata_key_service_client.d.ts +39 -0
- package/build/src/v1/cms_metadata_key_service_client.js +66 -8
- package/build/src/v1/cms_metadata_key_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_key_service_proto_list.json +4 -0
- package/build/src/v1/cms_metadata_value_service_client.d.ts +39 -0
- package/build/src/v1/cms_metadata_value_service_client.js +66 -8
- package/build/src/v1/cms_metadata_value_service_client.js.map +1 -1
- package/build/src/v1/cms_metadata_value_service_proto_list.json +4 -0
- package/build/src/v1/company_service_client.d.ts +39 -0
- package/build/src/v1/company_service_client.js +68 -10
- package/build/src/v1/company_service_client.js.map +1 -1
- package/build/src/v1/company_service_proto_list.json +4 -0
- package/build/src/v1/contact_service_client.d.ts +39 -0
- package/build/src/v1/contact_service_client.js +68 -10
- package/build/src/v1/contact_service_client.js.map +1 -1
- package/build/src/v1/contact_service_proto_list.json +4 -0
- package/build/src/v1/content_bundle_service_client.d.ts +39 -0
- package/build/src/v1/content_bundle_service_client.js +66 -8
- package/build/src/v1/content_bundle_service_client.js.map +1 -1
- package/build/src/v1/content_bundle_service_proto_list.json +4 -0
- package/build/src/v1/content_label_service_client.d.ts +39 -0
- package/build/src/v1/content_label_service_client.js +64 -6
- package/build/src/v1/content_label_service_client.js.map +1 -1
- package/build/src/v1/content_label_service_proto_list.json +4 -0
- package/build/src/v1/content_service_client.d.ts +39 -0
- package/build/src/v1/content_service_client.js +64 -6
- package/build/src/v1/content_service_client.js.map +1 -1
- package/build/src/v1/content_service_proto_list.json +4 -0
- package/build/src/v1/creative_set_service_client.d.ts +39 -0
- package/build/src/v1/creative_set_service_client.js +66 -8
- package/build/src/v1/creative_set_service_client.js.map +1 -1
- package/build/src/v1/creative_set_service_proto_list.json +4 -0
- package/build/src/v1/creative_template_service_client.d.ts +39 -0
- package/build/src/v1/creative_template_service_client.js +64 -6
- package/build/src/v1/creative_template_service_client.js.map +1 -1
- package/build/src/v1/creative_template_service_proto_list.json +4 -0
- package/build/src/v1/creative_wrapper_service_client.d.ts +39 -0
- package/build/src/v1/creative_wrapper_service_client.js +70 -12
- package/build/src/v1/creative_wrapper_service_client.js.map +1 -1
- package/build/src/v1/creative_wrapper_service_proto_list.json +4 -0
- package/build/src/v1/custom_field_service_client.d.ts +39 -0
- package/build/src/v1/custom_field_service_client.js +70 -12
- package/build/src/v1/custom_field_service_client.js.map +1 -1
- package/build/src/v1/custom_field_service_proto_list.json +4 -0
- package/build/src/v1/custom_targeting_key_service_client.d.ts +39 -0
- package/build/src/v1/custom_targeting_key_service_client.js +70 -12
- package/build/src/v1/custom_targeting_key_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_key_service_proto_list.json +4 -0
- package/build/src/v1/custom_targeting_value_service_client.d.ts +39 -0
- package/build/src/v1/custom_targeting_value_service_client.js +70 -12
- package/build/src/v1/custom_targeting_value_service_client.js.map +1 -1
- package/build/src/v1/custom_targeting_value_service_proto_list.json +4 -0
- package/build/src/v1/dai_authentication_key_service_client.d.ts +39 -0
- package/build/src/v1/dai_authentication_key_service_client.js +70 -12
- package/build/src/v1/dai_authentication_key_service_client.js.map +1 -1
- package/build/src/v1/dai_authentication_key_service_proto_list.json +4 -0
- package/build/src/v1/dai_encoding_profile_service_client.d.ts +39 -0
- package/build/src/v1/dai_encoding_profile_service_client.js +70 -12
- package/build/src/v1/dai_encoding_profile_service_client.js.map +1 -1
- package/build/src/v1/dai_encoding_profile_service_proto_list.json +4 -0
- package/build/src/v1/device_capability_service_client.d.ts +39 -0
- package/build/src/v1/device_capability_service_client.js +64 -6
- package/build/src/v1/device_capability_service_client.js.map +1 -1
- package/build/src/v1/device_capability_service_proto_list.json +4 -0
- package/build/src/v1/device_category_service_client.d.ts +39 -0
- package/build/src/v1/device_category_service_client.js +64 -6
- package/build/src/v1/device_category_service_client.js.map +1 -1
- package/build/src/v1/device_category_service_proto_list.json +4 -0
- package/build/src/v1/device_manufacturer_service_client.d.ts +39 -0
- package/build/src/v1/device_manufacturer_service_client.js +64 -6
- package/build/src/v1/device_manufacturer_service_client.js.map +1 -1
- package/build/src/v1/device_manufacturer_service_proto_list.json +4 -0
- package/build/src/v1/entity_signals_mapping_service_client.d.ts +39 -0
- package/build/src/v1/entity_signals_mapping_service_client.js +68 -10
- package/build/src/v1/entity_signals_mapping_service_client.js.map +1 -1
- package/build/src/v1/entity_signals_mapping_service_proto_list.json +4 -0
- package/build/src/v1/gapic_metadata.json +208 -0
- package/build/src/v1/geo_target_service_client.d.ts +39 -0
- package/build/src/v1/geo_target_service_client.js +64 -6
- package/build/src/v1/geo_target_service_client.js.map +1 -1
- package/build/src/v1/geo_target_service_proto_list.json +4 -0
- package/build/src/v1/index.d.ts +1 -0
- package/build/src/v1/index.js +4 -2
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1/label_service_client.d.ts +39 -0
- package/build/src/v1/label_service_client.js +70 -12
- package/build/src/v1/label_service_client.js.map +1 -1
- package/build/src/v1/label_service_proto_list.json +4 -0
- package/build/src/v1/line_item_service_client.d.ts +39 -0
- package/build/src/v1/line_item_service_client.js +64 -6
- package/build/src/v1/line_item_service_client.js.map +1 -1
- package/build/src/v1/line_item_service_proto_list.json +4 -0
- package/build/src/v1/linked_device_service_client.d.ts +39 -0
- package/build/src/v1/linked_device_service_client.js +64 -6
- package/build/src/v1/linked_device_service_client.js.map +1 -1
- package/build/src/v1/linked_device_service_proto_list.json +4 -0
- package/build/src/v1/live_stream_service_client.d.ts +39 -0
- package/build/src/v1/live_stream_service_client.js +73 -15
- package/build/src/v1/live_stream_service_client.js.map +1 -1
- package/build/src/v1/live_stream_service_proto_list.json +4 -0
- package/build/src/v1/mcm_earnings_service_client.d.ts +39 -0
- package/build/src/v1/mcm_earnings_service_client.js +63 -5
- package/build/src/v1/mcm_earnings_service_client.js.map +1 -1
- package/build/src/v1/mcm_earnings_service_proto_list.json +4 -0
- package/build/src/v1/mobile_carrier_service_client.d.ts +39 -0
- package/build/src/v1/mobile_carrier_service_client.js +64 -6
- package/build/src/v1/mobile_carrier_service_client.js.map +1 -1
- package/build/src/v1/mobile_carrier_service_proto_list.json +4 -0
- package/build/src/v1/mobile_device_service_client.d.ts +39 -0
- package/build/src/v1/mobile_device_service_client.js +64 -6
- package/build/src/v1/mobile_device_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_service_proto_list.json +4 -0
- package/build/src/v1/mobile_device_submodel_service_client.d.ts +39 -0
- package/build/src/v1/mobile_device_submodel_service_client.js +64 -6
- package/build/src/v1/mobile_device_submodel_service_client.js.map +1 -1
- package/build/src/v1/mobile_device_submodel_service_proto_list.json +4 -0
- package/build/src/v1/native_style_service_client.d.ts +2001 -0
- package/build/src/v1/native_style_service_client.js +2996 -0
- package/build/src/v1/native_style_service_client.js.map +1 -0
- package/build/src/v1/native_style_service_client_config.json +54 -0
- package/build/src/v1/native_style_service_proto_list.json +225 -0
- package/build/src/v1/network_service_client.d.ts +125 -0
- package/build/src/v1/network_service_client.js +196 -7
- package/build/src/v1/network_service_client.js.map +1 -1
- package/build/src/v1/network_service_client_config.json +12 -0
- package/build/src/v1/network_service_proto_list.json +4 -0
- package/build/src/v1/operating_system_service_client.d.ts +39 -0
- package/build/src/v1/operating_system_service_client.js +64 -6
- package/build/src/v1/operating_system_service_client.js.map +1 -1
- package/build/src/v1/operating_system_service_proto_list.json +4 -0
- package/build/src/v1/operating_system_version_service_client.d.ts +39 -0
- package/build/src/v1/operating_system_version_service_client.js +64 -6
- package/build/src/v1/operating_system_version_service_client.js.map +1 -1
- package/build/src/v1/operating_system_version_service_proto_list.json +4 -0
- package/build/src/v1/order_service_client.d.ts +39 -0
- package/build/src/v1/order_service_client.js +82 -24
- package/build/src/v1/order_service_client.js.map +1 -1
- package/build/src/v1/order_service_proto_list.json +4 -0
- package/build/src/v1/partner_service_client.d.ts +39 -0
- package/build/src/v1/partner_service_client.js +66 -8
- package/build/src/v1/partner_service_client.js.map +1 -1
- package/build/src/v1/partner_service_proto_list.json +4 -0
- package/build/src/v1/placement_service_client.d.ts +39 -0
- package/build/src/v1/placement_service_client.js +71 -13
- package/build/src/v1/placement_service_client.js.map +1 -1
- package/build/src/v1/placement_service_proto_list.json +4 -0
- package/build/src/v1/private_auction_deal_service_client.d.ts +39 -0
- package/build/src/v1/private_auction_deal_service_client.js +66 -8
- package/build/src/v1/private_auction_deal_service_client.js.map +1 -1
- package/build/src/v1/private_auction_deal_service_proto_list.json +4 -0
- package/build/src/v1/private_auction_service_client.d.ts +39 -0
- package/build/src/v1/private_auction_service_client.js +66 -8
- package/build/src/v1/private_auction_service_client.js.map +1 -1
- package/build/src/v1/private_auction_service_proto_list.json +4 -0
- package/build/src/v1/programmatic_buyer_service_client.d.ts +39 -0
- package/build/src/v1/programmatic_buyer_service_client.js +64 -6
- package/build/src/v1/programmatic_buyer_service_client.js.map +1 -1
- package/build/src/v1/programmatic_buyer_service_proto_list.json +4 -0
- package/build/src/v1/report_service_client.d.ts +39 -0
- package/build/src/v1/report_service_client.js +70 -12
- package/build/src/v1/report_service_client.js.map +1 -1
- package/build/src/v1/report_service_proto_list.json +4 -0
- package/build/src/v1/rich_media_ads_company_service_client.d.ts +39 -0
- package/build/src/v1/rich_media_ads_company_service_client.js +64 -6
- package/build/src/v1/rich_media_ads_company_service_client.js.map +1 -1
- package/build/src/v1/rich_media_ads_company_service_proto_list.json +4 -0
- package/build/src/v1/role_service_client.d.ts +39 -0
- package/build/src/v1/role_service_client.js +64 -6
- package/build/src/v1/role_service_client.js.map +1 -1
- package/build/src/v1/role_service_proto_list.json +4 -0
- package/build/src/v1/site_service_client.d.ts +39 -0
- package/build/src/v1/site_service_client.js +70 -12
- package/build/src/v1/site_service_client.js.map +1 -1
- package/build/src/v1/site_service_proto_list.json +4 -0
- package/build/src/v1/slate_service_client.d.ts +39 -0
- package/build/src/v1/slate_service_client.js +70 -12
- package/build/src/v1/slate_service_client.js.map +1 -1
- package/build/src/v1/slate_service_proto_list.json +4 -0
- package/build/src/v1/suggested_ad_unit_service_client.d.ts +39 -0
- package/build/src/v1/suggested_ad_unit_service_client.js +65 -7
- package/build/src/v1/suggested_ad_unit_service_client.js.map +1 -1
- package/build/src/v1/suggested_ad_unit_service_proto_list.json +4 -0
- package/build/src/v1/targeting_preset_service_client.d.ts +39 -0
- package/build/src/v1/targeting_preset_service_client.js +69 -11
- package/build/src/v1/targeting_preset_service_client.js.map +1 -1
- package/build/src/v1/targeting_preset_service_proto_list.json +4 -0
- package/build/src/v1/taxonomy_category_service_client.d.ts +39 -0
- package/build/src/v1/taxonomy_category_service_client.js +64 -6
- package/build/src/v1/taxonomy_category_service_client.js.map +1 -1
- package/build/src/v1/taxonomy_category_service_proto_list.json +4 -0
- package/build/src/v1/team_service_client.d.ts +39 -0
- package/build/src/v1/team_service_client.js +70 -12
- package/build/src/v1/team_service_client.js.map +1 -1
- package/build/src/v1/team_service_proto_list.json +4 -0
- package/build/src/v1/third_party_company_service_client.d.ts +39 -0
- package/build/src/v1/third_party_company_service_client.js +64 -6
- package/build/src/v1/third_party_company_service_client.js.map +1 -1
- package/build/src/v1/third_party_company_service_proto_list.json +4 -0
- package/build/src/v1/user_service_client.d.ts +39 -0
- package/build/src/v1/user_service_client.js +61 -3
- package/build/src/v1/user_service_client.js.map +1 -1
- package/build/src/v1/user_service_proto_list.json +4 -0
- package/build/src/v1/viewability_provider_service_client.d.ts +39 -0
- package/build/src/v1/viewability_provider_service_client.js +68 -10
- package/build/src/v1/viewability_provider_service_client.js.map +1 -1
- package/build/src/v1/viewability_provider_service_proto_list.json +4 -0
- package/package.json +1 -1
|
@@ -139,6 +139,136 @@ export declare class AudienceSegmentServiceClient {
|
|
|
139
139
|
]>;
|
|
140
140
|
getAudienceSegment(request: protos.google.ads.admanager.v1.IGetAudienceSegmentRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IAudienceSegment, protos.google.ads.admanager.v1.IGetAudienceSegmentRequest | null | undefined, {} | null | undefined>): void;
|
|
141
141
|
getAudienceSegment(request: protos.google.ads.admanager.v1.IGetAudienceSegmentRequest, callback: Callback<protos.google.ads.admanager.v1.IAudienceSegment, protos.google.ads.admanager.v1.IGetAudienceSegmentRequest | null | undefined, {} | null | undefined>): void;
|
|
142
|
+
/**
|
|
143
|
+
* Activates `AudienceSegment` objects.
|
|
144
|
+
*
|
|
145
|
+
* @param {Object} request
|
|
146
|
+
* The request object that will be sent.
|
|
147
|
+
* @param {string} request.parent
|
|
148
|
+
* Required. Format: `networks/{network_code}`
|
|
149
|
+
* @param {string[]} request.names
|
|
150
|
+
* Required. Resource names for the AudienceSegments.
|
|
151
|
+
* Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
|
|
152
|
+
* @param {object} [options]
|
|
153
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
154
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
155
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchActivateAudienceSegmentsResponse|BatchActivateAudienceSegmentsResponse}.
|
|
156
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
157
|
+
* for more details and examples.
|
|
158
|
+
* @example <caption>include:samples/generated/v1/audience_segment_service.batch_activate_audience_segments.js</caption>
|
|
159
|
+
* region_tag:admanager_v1_generated_AudienceSegmentService_BatchActivateAudienceSegments_async
|
|
160
|
+
*/
|
|
161
|
+
batchActivateAudienceSegments(request?: protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsRequest, options?: CallOptions): Promise<[
|
|
162
|
+
protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsResponse,
|
|
163
|
+
(protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsRequest | undefined),
|
|
164
|
+
{} | undefined
|
|
165
|
+
]>;
|
|
166
|
+
batchActivateAudienceSegments(request: protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
167
|
+
batchActivateAudienceSegments(request: protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchActivateAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
168
|
+
/**
|
|
169
|
+
* Deactivates `AudienceSegment` objects.
|
|
170
|
+
*
|
|
171
|
+
* @param {Object} request
|
|
172
|
+
* The request object that will be sent.
|
|
173
|
+
* @param {string} request.parent
|
|
174
|
+
* Required. Format: `networks/{network_code}`
|
|
175
|
+
* @param {string[]} request.names
|
|
176
|
+
* Required. Resource names for the AudienceSegments.
|
|
177
|
+
* Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
|
|
178
|
+
* @param {object} [options]
|
|
179
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
180
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
181
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchDeactivateAudienceSegmentsResponse|BatchDeactivateAudienceSegmentsResponse}.
|
|
182
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
183
|
+
* for more details and examples.
|
|
184
|
+
* @example <caption>include:samples/generated/v1/audience_segment_service.batch_deactivate_audience_segments.js</caption>
|
|
185
|
+
* region_tag:admanager_v1_generated_AudienceSegmentService_BatchDeactivateAudienceSegments_async
|
|
186
|
+
*/
|
|
187
|
+
batchDeactivateAudienceSegments(request?: protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsRequest, options?: CallOptions): Promise<[
|
|
188
|
+
protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsResponse,
|
|
189
|
+
(protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsRequest | undefined),
|
|
190
|
+
{} | undefined
|
|
191
|
+
]>;
|
|
192
|
+
batchDeactivateAudienceSegments(request: protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
193
|
+
batchDeactivateAudienceSegments(request: protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchDeactivateAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
194
|
+
/**
|
|
195
|
+
* Approves `AudienceSegment` objects.
|
|
196
|
+
*
|
|
197
|
+
* @param {Object} request
|
|
198
|
+
* The request object that will be sent.
|
|
199
|
+
* @param {string} request.parent
|
|
200
|
+
* Required. Format: `networks/{network_code}`
|
|
201
|
+
* @param {string[]} request.names
|
|
202
|
+
* Required. Resource names for the AudienceSegments.
|
|
203
|
+
* Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
|
|
204
|
+
* @param {object} [options]
|
|
205
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
206
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
207
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchApproveAudienceSegmentsResponse|BatchApproveAudienceSegmentsResponse}.
|
|
208
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
209
|
+
* for more details and examples.
|
|
210
|
+
* @example <caption>include:samples/generated/v1/audience_segment_service.batch_approve_audience_segments.js</caption>
|
|
211
|
+
* region_tag:admanager_v1_generated_AudienceSegmentService_BatchApproveAudienceSegments_async
|
|
212
|
+
*/
|
|
213
|
+
batchApproveAudienceSegments(request?: protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsRequest, options?: CallOptions): Promise<[
|
|
214
|
+
protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsResponse,
|
|
215
|
+
(protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsRequest | undefined),
|
|
216
|
+
{} | undefined
|
|
217
|
+
]>;
|
|
218
|
+
batchApproveAudienceSegments(request: protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
219
|
+
batchApproveAudienceSegments(request: protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchApproveAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
220
|
+
/**
|
|
221
|
+
* Rejects `AudienceSegment` objects.
|
|
222
|
+
*
|
|
223
|
+
* @param {Object} request
|
|
224
|
+
* The request object that will be sent.
|
|
225
|
+
* @param {string} request.parent
|
|
226
|
+
* Required. Format: `networks/{network_code}`
|
|
227
|
+
* @param {string[]} request.names
|
|
228
|
+
* Required. Resource names for the AudienceSegments.
|
|
229
|
+
* Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
|
|
230
|
+
* @param {object} [options]
|
|
231
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
232
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
233
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchRejectAudienceSegmentsResponse|BatchRejectAudienceSegmentsResponse}.
|
|
234
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
235
|
+
* for more details and examples.
|
|
236
|
+
* @example <caption>include:samples/generated/v1/audience_segment_service.batch_reject_audience_segments.js</caption>
|
|
237
|
+
* region_tag:admanager_v1_generated_AudienceSegmentService_BatchRejectAudienceSegments_async
|
|
238
|
+
*/
|
|
239
|
+
batchRejectAudienceSegments(request?: protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsRequest, options?: CallOptions): Promise<[
|
|
240
|
+
protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsResponse,
|
|
241
|
+
(protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsRequest | undefined),
|
|
242
|
+
{} | undefined
|
|
243
|
+
]>;
|
|
244
|
+
batchRejectAudienceSegments(request: protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
245
|
+
batchRejectAudienceSegments(request: protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchRejectAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
246
|
+
/**
|
|
247
|
+
* Populates `AudienceSegment` objects.
|
|
248
|
+
*
|
|
249
|
+
* @param {Object} request
|
|
250
|
+
* The request object that will be sent.
|
|
251
|
+
* @param {string} request.parent
|
|
252
|
+
* Required. Format: `networks/{network_code}`
|
|
253
|
+
* @param {string[]} request.names
|
|
254
|
+
* Required. Resource names for the AudienceSegments.
|
|
255
|
+
* Format: `networks/{network_code}/audienceSegments/{audience_segment_id}`
|
|
256
|
+
* @param {object} [options]
|
|
257
|
+
* Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details.
|
|
258
|
+
* @returns {Promise} - The promise which resolves to an array.
|
|
259
|
+
* The first element of the array is an object representing {@link protos.google.ads.admanager.v1.BatchPopulateAudienceSegmentsResponse|BatchPopulateAudienceSegmentsResponse}.
|
|
260
|
+
* Please see the {@link https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods | documentation }
|
|
261
|
+
* for more details and examples.
|
|
262
|
+
* @example <caption>include:samples/generated/v1/audience_segment_service.batch_populate_audience_segments.js</caption>
|
|
263
|
+
* region_tag:admanager_v1_generated_AudienceSegmentService_BatchPopulateAudienceSegments_async
|
|
264
|
+
*/
|
|
265
|
+
batchPopulateAudienceSegments(request?: protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsRequest, options?: CallOptions): Promise<[
|
|
266
|
+
protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsResponse,
|
|
267
|
+
(protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsRequest | undefined),
|
|
268
|
+
{} | undefined
|
|
269
|
+
]>;
|
|
270
|
+
batchPopulateAudienceSegments(request: protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsRequest, options: CallOptions, callback: Callback<protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
271
|
+
batchPopulateAudienceSegments(request: protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsRequest, callback: Callback<protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsResponse, protos.google.ads.admanager.v1.IBatchPopulateAudienceSegmentsRequest | null | undefined, {} | null | undefined>): void;
|
|
142
272
|
/**
|
|
143
273
|
* Lists `AudienceSegment` objects.
|
|
144
274
|
*
|
|
@@ -165,7 +295,21 @@ export declare class AudienceSegmentServiceClient {
|
|
|
165
295
|
*
|
|
166
296
|
* **Filterable fields:**
|
|
167
297
|
*
|
|
298
|
+
* * `adIdSize`
|
|
299
|
+
* * `categoryIds`
|
|
300
|
+
* * `dataProviderDisplayName`
|
|
168
301
|
* * `displayName`
|
|
302
|
+
* * `idfaSize`
|
|
303
|
+
* * `mobileWebSize`
|
|
304
|
+
* * `ppidSize`
|
|
305
|
+
* * `segmentType`
|
|
306
|
+
* * `sharedId`
|
|
307
|
+
* * `size`
|
|
308
|
+
* * `status`
|
|
309
|
+
* * `thirdPartyAudienceSegment.approvalStatus`
|
|
310
|
+
* * `thirdPartyAudienceSegment.cost`
|
|
311
|
+
* * `thirdPartyAudienceSegment.endTime`
|
|
312
|
+
* * `thirdPartyAudienceSegment.startTime`
|
|
169
313
|
* @param {string} [request.orderBy]
|
|
170
314
|
* Optional. Expression to specify sorting order.
|
|
171
315
|
* See syntax details at
|
|
@@ -216,7 +360,21 @@ export declare class AudienceSegmentServiceClient {
|
|
|
216
360
|
*
|
|
217
361
|
* **Filterable fields:**
|
|
218
362
|
*
|
|
363
|
+
* * `adIdSize`
|
|
364
|
+
* * `categoryIds`
|
|
365
|
+
* * `dataProviderDisplayName`
|
|
219
366
|
* * `displayName`
|
|
367
|
+
* * `idfaSize`
|
|
368
|
+
* * `mobileWebSize`
|
|
369
|
+
* * `ppidSize`
|
|
370
|
+
* * `segmentType`
|
|
371
|
+
* * `sharedId`
|
|
372
|
+
* * `size`
|
|
373
|
+
* * `status`
|
|
374
|
+
* * `thirdPartyAudienceSegment.approvalStatus`
|
|
375
|
+
* * `thirdPartyAudienceSegment.cost`
|
|
376
|
+
* * `thirdPartyAudienceSegment.endTime`
|
|
377
|
+
* * `thirdPartyAudienceSegment.startTime`
|
|
220
378
|
* @param {string} [request.orderBy]
|
|
221
379
|
* Optional. Expression to specify sorting order.
|
|
222
380
|
* See syntax details at
|
|
@@ -262,7 +420,21 @@ export declare class AudienceSegmentServiceClient {
|
|
|
262
420
|
*
|
|
263
421
|
* **Filterable fields:**
|
|
264
422
|
*
|
|
423
|
+
* * `adIdSize`
|
|
424
|
+
* * `categoryIds`
|
|
425
|
+
* * `dataProviderDisplayName`
|
|
265
426
|
* * `displayName`
|
|
427
|
+
* * `idfaSize`
|
|
428
|
+
* * `mobileWebSize`
|
|
429
|
+
* * `ppidSize`
|
|
430
|
+
* * `segmentType`
|
|
431
|
+
* * `sharedId`
|
|
432
|
+
* * `size`
|
|
433
|
+
* * `status`
|
|
434
|
+
* * `thirdPartyAudienceSegment.approvalStatus`
|
|
435
|
+
* * `thirdPartyAudienceSegment.cost`
|
|
436
|
+
* * `thirdPartyAudienceSegment.endTime`
|
|
437
|
+
* * `thirdPartyAudienceSegment.startTime`
|
|
266
438
|
* @param {string} [request.orderBy]
|
|
267
439
|
* Optional. Expression to specify sorting order.
|
|
268
440
|
* See syntax details at
|
|
@@ -972,6 +1144,21 @@ export declare class AudienceSegmentServiceClient {
|
|
|
972
1144
|
* @returns {string} A string representing the dai_encoding_profile.
|
|
973
1145
|
*/
|
|
974
1146
|
matchDaiEncodingProfileFromDaiEncodingProfileName(daiEncodingProfileName: string): string | number;
|
|
1147
|
+
/**
|
|
1148
|
+
* Return a fully-qualified defaultThirdPartyDataDeclaration resource name string.
|
|
1149
|
+
*
|
|
1150
|
+
* @param {string} network_code
|
|
1151
|
+
* @returns {string} Resource name string.
|
|
1152
|
+
*/
|
|
1153
|
+
defaultThirdPartyDataDeclarationPath(networkCode: string): string;
|
|
1154
|
+
/**
|
|
1155
|
+
* Parse the network_code from DefaultThirdPartyDataDeclaration resource.
|
|
1156
|
+
*
|
|
1157
|
+
* @param {string} defaultThirdPartyDataDeclarationName
|
|
1158
|
+
* A fully-qualified path representing DefaultThirdPartyDataDeclaration resource.
|
|
1159
|
+
* @returns {string} A string representing the network_code.
|
|
1160
|
+
*/
|
|
1161
|
+
matchNetworkCodeFromDefaultThirdPartyDataDeclarationName(defaultThirdPartyDataDeclarationName: string): string | number;
|
|
975
1162
|
/**
|
|
976
1163
|
* Return a fully-qualified deviceCapability resource name string.
|
|
977
1164
|
*
|
|
@@ -1284,6 +1471,30 @@ export declare class AudienceSegmentServiceClient {
|
|
|
1284
1471
|
* @returns {string} A string representing the mobile_device_submodel.
|
|
1285
1472
|
*/
|
|
1286
1473
|
matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName: string): string | number;
|
|
1474
|
+
/**
|
|
1475
|
+
* Return a fully-qualified nativeStyle resource name string.
|
|
1476
|
+
*
|
|
1477
|
+
* @param {string} network_code
|
|
1478
|
+
* @param {string} native_style
|
|
1479
|
+
* @returns {string} Resource name string.
|
|
1480
|
+
*/
|
|
1481
|
+
nativeStylePath(networkCode: string, nativeStyle: string): string;
|
|
1482
|
+
/**
|
|
1483
|
+
* Parse the network_code from NativeStyle resource.
|
|
1484
|
+
*
|
|
1485
|
+
* @param {string} nativeStyleName
|
|
1486
|
+
* A fully-qualified path representing NativeStyle resource.
|
|
1487
|
+
* @returns {string} A string representing the network_code.
|
|
1488
|
+
*/
|
|
1489
|
+
matchNetworkCodeFromNativeStyleName(nativeStyleName: string): string | number;
|
|
1490
|
+
/**
|
|
1491
|
+
* Parse the native_style from NativeStyle resource.
|
|
1492
|
+
*
|
|
1493
|
+
* @param {string} nativeStyleName
|
|
1494
|
+
* A fully-qualified path representing NativeStyle resource.
|
|
1495
|
+
* @returns {string} A string representing the native_style.
|
|
1496
|
+
*/
|
|
1497
|
+
matchNativeStyleFromNativeStyleName(nativeStyleName: string): string | number;
|
|
1287
1498
|
/**
|
|
1288
1499
|
* Return a fully-qualified network resource name string.
|
|
1289
1500
|
*
|
|
@@ -202,6 +202,7 @@ class AudienceSegmentServiceClient {
|
|
|
202
202
|
customTargetingValuePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/customTargetingValues/{custom_targeting_value}'),
|
|
203
203
|
daiAuthenticationKeyPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiAuthenticationKeys/{dai_authentication_key}'),
|
|
204
204
|
daiEncodingProfilePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/daiEncodingProfiles/{dai_encoding_profile}'),
|
|
205
|
+
defaultThirdPartyDataDeclarationPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/defaultThirdPartyDataDeclaration'),
|
|
205
206
|
deviceCapabilityPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCapabilities/{device_capability}'),
|
|
206
207
|
deviceCategoryPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceCategories/{device_category}'),
|
|
207
208
|
deviceManufacturerPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/deviceManufacturers/{device_manufacturer}'),
|
|
@@ -215,6 +216,7 @@ class AudienceSegmentServiceClient {
|
|
|
215
216
|
mobileCarrierPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileCarriers/{mobile_carrier}'),
|
|
216
217
|
mobileDevicePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDevices/{mobile_device}'),
|
|
217
218
|
mobileDeviceSubmodelPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/mobileDeviceSubmodels/{mobile_device_submodel}'),
|
|
219
|
+
nativeStylePathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/nativeStyles/{native_style}'),
|
|
218
220
|
networkPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}'),
|
|
219
221
|
operatingSystemPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystems/{operating_system}'),
|
|
220
222
|
operatingSystemVersionPathTemplate: new this._gaxModule.PathTemplate('networks/{network_code}/operatingSystemVersions/{operating_system_version}'),
|
|
@@ -280,9 +282,14 @@ class AudienceSegmentServiceClient {
|
|
|
280
282
|
const audienceSegmentServiceStubMethods = [
|
|
281
283
|
'getAudienceSegment',
|
|
282
284
|
'listAudienceSegments',
|
|
285
|
+
'batchActivateAudienceSegments',
|
|
286
|
+
'batchDeactivateAudienceSegments',
|
|
287
|
+
'batchApproveAudienceSegments',
|
|
288
|
+
'batchRejectAudienceSegments',
|
|
289
|
+
'batchPopulateAudienceSegments',
|
|
283
290
|
];
|
|
284
291
|
for (const methodName of audienceSegmentServiceStubMethods) {
|
|
285
|
-
const callPromise = this.audienceSegmentServiceStub.then(
|
|
292
|
+
const callPromise = this.audienceSegmentServiceStub.then(stub => (...args) => {
|
|
286
293
|
if (this._terminated) {
|
|
287
294
|
return Promise.reject('The client has already been closed.');
|
|
288
295
|
}
|
|
@@ -377,7 +384,7 @@ class AudienceSegmentServiceClient {
|
|
|
377
384
|
this._gaxModule.routingHeader.fromParams({
|
|
378
385
|
name: request.name ?? '',
|
|
379
386
|
});
|
|
380
|
-
this.initialize().catch(
|
|
387
|
+
this.initialize().catch(err => {
|
|
381
388
|
throw err;
|
|
382
389
|
});
|
|
383
390
|
this._log.info('getAudienceSegment request %j', request);
|
|
@@ -403,6 +410,221 @@ class AudienceSegmentServiceClient {
|
|
|
403
410
|
throw error;
|
|
404
411
|
});
|
|
405
412
|
}
|
|
413
|
+
batchActivateAudienceSegments(request, optionsOrCallback, callback) {
|
|
414
|
+
request = request || {};
|
|
415
|
+
let options;
|
|
416
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
417
|
+
callback = optionsOrCallback;
|
|
418
|
+
options = {};
|
|
419
|
+
}
|
|
420
|
+
else {
|
|
421
|
+
options = optionsOrCallback;
|
|
422
|
+
}
|
|
423
|
+
options = options || {};
|
|
424
|
+
options.otherArgs = options.otherArgs || {};
|
|
425
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
426
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
427
|
+
this._gaxModule.routingHeader.fromParams({
|
|
428
|
+
parent: request.parent ?? '',
|
|
429
|
+
});
|
|
430
|
+
this.initialize().catch(err => {
|
|
431
|
+
throw err;
|
|
432
|
+
});
|
|
433
|
+
this._log.info('batchActivateAudienceSegments request %j', request);
|
|
434
|
+
const wrappedCallback = callback
|
|
435
|
+
? (error, response, options, rawResponse) => {
|
|
436
|
+
this._log.info('batchActivateAudienceSegments response %j', response);
|
|
437
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
438
|
+
}
|
|
439
|
+
: undefined;
|
|
440
|
+
return this.innerApiCalls
|
|
441
|
+
.batchActivateAudienceSegments(request, options, wrappedCallback)
|
|
442
|
+
?.then(([response, options, rawResponse]) => {
|
|
443
|
+
this._log.info('batchActivateAudienceSegments response %j', response);
|
|
444
|
+
return [response, options, rawResponse];
|
|
445
|
+
})
|
|
446
|
+
.catch((error) => {
|
|
447
|
+
if (error &&
|
|
448
|
+
'statusDetails' in error &&
|
|
449
|
+
error.statusDetails instanceof Array) {
|
|
450
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
451
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
452
|
+
}
|
|
453
|
+
throw error;
|
|
454
|
+
});
|
|
455
|
+
}
|
|
456
|
+
batchDeactivateAudienceSegments(request, optionsOrCallback, callback) {
|
|
457
|
+
request = request || {};
|
|
458
|
+
let options;
|
|
459
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
460
|
+
callback = optionsOrCallback;
|
|
461
|
+
options = {};
|
|
462
|
+
}
|
|
463
|
+
else {
|
|
464
|
+
options = optionsOrCallback;
|
|
465
|
+
}
|
|
466
|
+
options = options || {};
|
|
467
|
+
options.otherArgs = options.otherArgs || {};
|
|
468
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
469
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
470
|
+
this._gaxModule.routingHeader.fromParams({
|
|
471
|
+
parent: request.parent ?? '',
|
|
472
|
+
});
|
|
473
|
+
this.initialize().catch(err => {
|
|
474
|
+
throw err;
|
|
475
|
+
});
|
|
476
|
+
this._log.info('batchDeactivateAudienceSegments request %j', request);
|
|
477
|
+
const wrappedCallback = callback
|
|
478
|
+
? (error, response, options, rawResponse) => {
|
|
479
|
+
this._log.info('batchDeactivateAudienceSegments response %j', response);
|
|
480
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
481
|
+
}
|
|
482
|
+
: undefined;
|
|
483
|
+
return this.innerApiCalls
|
|
484
|
+
.batchDeactivateAudienceSegments(request, options, wrappedCallback)
|
|
485
|
+
?.then(([response, options, rawResponse]) => {
|
|
486
|
+
this._log.info('batchDeactivateAudienceSegments response %j', response);
|
|
487
|
+
return [response, options, rawResponse];
|
|
488
|
+
})
|
|
489
|
+
.catch((error) => {
|
|
490
|
+
if (error &&
|
|
491
|
+
'statusDetails' in error &&
|
|
492
|
+
error.statusDetails instanceof Array) {
|
|
493
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
494
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
495
|
+
}
|
|
496
|
+
throw error;
|
|
497
|
+
});
|
|
498
|
+
}
|
|
499
|
+
batchApproveAudienceSegments(request, optionsOrCallback, callback) {
|
|
500
|
+
request = request || {};
|
|
501
|
+
let options;
|
|
502
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
503
|
+
callback = optionsOrCallback;
|
|
504
|
+
options = {};
|
|
505
|
+
}
|
|
506
|
+
else {
|
|
507
|
+
options = optionsOrCallback;
|
|
508
|
+
}
|
|
509
|
+
options = options || {};
|
|
510
|
+
options.otherArgs = options.otherArgs || {};
|
|
511
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
512
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
513
|
+
this._gaxModule.routingHeader.fromParams({
|
|
514
|
+
parent: request.parent ?? '',
|
|
515
|
+
});
|
|
516
|
+
this.initialize().catch(err => {
|
|
517
|
+
throw err;
|
|
518
|
+
});
|
|
519
|
+
this._log.info('batchApproveAudienceSegments request %j', request);
|
|
520
|
+
const wrappedCallback = callback
|
|
521
|
+
? (error, response, options, rawResponse) => {
|
|
522
|
+
this._log.info('batchApproveAudienceSegments response %j', response);
|
|
523
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
524
|
+
}
|
|
525
|
+
: undefined;
|
|
526
|
+
return this.innerApiCalls
|
|
527
|
+
.batchApproveAudienceSegments(request, options, wrappedCallback)
|
|
528
|
+
?.then(([response, options, rawResponse]) => {
|
|
529
|
+
this._log.info('batchApproveAudienceSegments response %j', response);
|
|
530
|
+
return [response, options, rawResponse];
|
|
531
|
+
})
|
|
532
|
+
.catch((error) => {
|
|
533
|
+
if (error &&
|
|
534
|
+
'statusDetails' in error &&
|
|
535
|
+
error.statusDetails instanceof Array) {
|
|
536
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
537
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
538
|
+
}
|
|
539
|
+
throw error;
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
batchRejectAudienceSegments(request, optionsOrCallback, callback) {
|
|
543
|
+
request = request || {};
|
|
544
|
+
let options;
|
|
545
|
+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
|
|
546
|
+
callback = optionsOrCallback;
|
|
547
|
+
options = {};
|
|
548
|
+
}
|
|
549
|
+
else {
|
|
550
|
+
options = optionsOrCallback;
|
|
551
|
+
}
|
|
552
|
+
options = options || {};
|
|
553
|
+
options.otherArgs = options.otherArgs || {};
|
|
554
|
+
options.otherArgs.headers = options.otherArgs.headers || {};
|
|
555
|
+
options.otherArgs.headers['x-goog-request-params'] =
|
|
556
|
+
this._gaxModule.routingHeader.fromParams({
|
|
557
|
+
parent: request.parent ?? '',
|
|
558
|
+
});
|
|
559
|
+
this.initialize().catch(err => {
|
|
560
|
+
throw err;
|
|
561
|
+
});
|
|
562
|
+
this._log.info('batchRejectAudienceSegments request %j', request);
|
|
563
|
+
const wrappedCallback = callback
|
|
564
|
+
? (error, response, options, rawResponse) => {
|
|
565
|
+
this._log.info('batchRejectAudienceSegments response %j', response);
|
|
566
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
567
|
+
}
|
|
568
|
+
: undefined;
|
|
569
|
+
return this.innerApiCalls
|
|
570
|
+
.batchRejectAudienceSegments(request, options, wrappedCallback)
|
|
571
|
+
?.then(([response, options, rawResponse]) => {
|
|
572
|
+
this._log.info('batchRejectAudienceSegments response %j', response);
|
|
573
|
+
return [response, options, rawResponse];
|
|
574
|
+
})
|
|
575
|
+
.catch((error) => {
|
|
576
|
+
if (error &&
|
|
577
|
+
'statusDetails' in error &&
|
|
578
|
+
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
|
+
batchPopulateAudienceSegments(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'] =
|
|
599
|
+
this._gaxModule.routingHeader.fromParams({
|
|
600
|
+
parent: request.parent ?? '',
|
|
601
|
+
});
|
|
602
|
+
this.initialize().catch(err => {
|
|
603
|
+
throw err;
|
|
604
|
+
});
|
|
605
|
+
this._log.info('batchPopulateAudienceSegments request %j', request);
|
|
606
|
+
const wrappedCallback = callback
|
|
607
|
+
? (error, response, options, rawResponse) => {
|
|
608
|
+
this._log.info('batchPopulateAudienceSegments response %j', response);
|
|
609
|
+
callback(error, response, options, rawResponse); // We verified callback above.
|
|
610
|
+
}
|
|
611
|
+
: undefined;
|
|
612
|
+
return this.innerApiCalls
|
|
613
|
+
.batchPopulateAudienceSegments(request, options, wrappedCallback)
|
|
614
|
+
?.then(([response, options, rawResponse]) => {
|
|
615
|
+
this._log.info('batchPopulateAudienceSegments response %j', response);
|
|
616
|
+
return [response, options, rawResponse];
|
|
617
|
+
})
|
|
618
|
+
.catch((error) => {
|
|
619
|
+
if (error &&
|
|
620
|
+
'statusDetails' in error &&
|
|
621
|
+
error.statusDetails instanceof Array) {
|
|
622
|
+
const protos = this._gaxModule.protobuf.Root.fromJSON(jsonProtos);
|
|
623
|
+
error.statusDetails = (0, google_gax_1.decodeAnyProtosInArray)(error.statusDetails, protos);
|
|
624
|
+
}
|
|
625
|
+
throw error;
|
|
626
|
+
});
|
|
627
|
+
}
|
|
406
628
|
listAudienceSegments(request, optionsOrCallback, callback) {
|
|
407
629
|
request = request || {};
|
|
408
630
|
let options;
|
|
@@ -420,7 +642,7 @@ class AudienceSegmentServiceClient {
|
|
|
420
642
|
this._gaxModule.routingHeader.fromParams({
|
|
421
643
|
parent: request.parent ?? '',
|
|
422
644
|
});
|
|
423
|
-
this.initialize().catch(
|
|
645
|
+
this.initialize().catch(err => {
|
|
424
646
|
throw err;
|
|
425
647
|
});
|
|
426
648
|
const wrappedCallback = callback
|
|
@@ -462,7 +684,21 @@ class AudienceSegmentServiceClient {
|
|
|
462
684
|
*
|
|
463
685
|
* **Filterable fields:**
|
|
464
686
|
*
|
|
687
|
+
* * `adIdSize`
|
|
688
|
+
* * `categoryIds`
|
|
689
|
+
* * `dataProviderDisplayName`
|
|
465
690
|
* * `displayName`
|
|
691
|
+
* * `idfaSize`
|
|
692
|
+
* * `mobileWebSize`
|
|
693
|
+
* * `ppidSize`
|
|
694
|
+
* * `segmentType`
|
|
695
|
+
* * `sharedId`
|
|
696
|
+
* * `size`
|
|
697
|
+
* * `status`
|
|
698
|
+
* * `thirdPartyAudienceSegment.approvalStatus`
|
|
699
|
+
* * `thirdPartyAudienceSegment.cost`
|
|
700
|
+
* * `thirdPartyAudienceSegment.endTime`
|
|
701
|
+
* * `thirdPartyAudienceSegment.startTime`
|
|
466
702
|
* @param {string} [request.orderBy]
|
|
467
703
|
* Optional. Expression to specify sorting order.
|
|
468
704
|
* See syntax details at
|
|
@@ -491,7 +727,7 @@ class AudienceSegmentServiceClient {
|
|
|
491
727
|
});
|
|
492
728
|
const defaultCallSettings = this._defaults['listAudienceSegments'];
|
|
493
729
|
const callSettings = defaultCallSettings.merge(options);
|
|
494
|
-
this.initialize().catch(
|
|
730
|
+
this.initialize().catch(err => {
|
|
495
731
|
throw err;
|
|
496
732
|
});
|
|
497
733
|
this._log.info('listAudienceSegments stream %j', request);
|
|
@@ -524,7 +760,21 @@ class AudienceSegmentServiceClient {
|
|
|
524
760
|
*
|
|
525
761
|
* **Filterable fields:**
|
|
526
762
|
*
|
|
763
|
+
* * `adIdSize`
|
|
764
|
+
* * `categoryIds`
|
|
765
|
+
* * `dataProviderDisplayName`
|
|
527
766
|
* * `displayName`
|
|
767
|
+
* * `idfaSize`
|
|
768
|
+
* * `mobileWebSize`
|
|
769
|
+
* * `ppidSize`
|
|
770
|
+
* * `segmentType`
|
|
771
|
+
* * `sharedId`
|
|
772
|
+
* * `size`
|
|
773
|
+
* * `status`
|
|
774
|
+
* * `thirdPartyAudienceSegment.approvalStatus`
|
|
775
|
+
* * `thirdPartyAudienceSegment.cost`
|
|
776
|
+
* * `thirdPartyAudienceSegment.endTime`
|
|
777
|
+
* * `thirdPartyAudienceSegment.startTime`
|
|
528
778
|
* @param {string} [request.orderBy]
|
|
529
779
|
* Optional. Expression to specify sorting order.
|
|
530
780
|
* See syntax details at
|
|
@@ -554,7 +804,7 @@ class AudienceSegmentServiceClient {
|
|
|
554
804
|
});
|
|
555
805
|
const defaultCallSettings = this._defaults['listAudienceSegments'];
|
|
556
806
|
const callSettings = defaultCallSettings.merge(options);
|
|
557
|
-
this.initialize().catch(
|
|
807
|
+
this.initialize().catch(err => {
|
|
558
808
|
throw err;
|
|
559
809
|
});
|
|
560
810
|
this._log.info('listAudienceSegments iterate %j', request);
|
|
@@ -1529,6 +1779,27 @@ class AudienceSegmentServiceClient {
|
|
|
1529
1779
|
matchDaiEncodingProfileFromDaiEncodingProfileName(daiEncodingProfileName) {
|
|
1530
1780
|
return this.pathTemplates.daiEncodingProfilePathTemplate.match(daiEncodingProfileName).dai_encoding_profile;
|
|
1531
1781
|
}
|
|
1782
|
+
/**
|
|
1783
|
+
* Return a fully-qualified defaultThirdPartyDataDeclaration resource name string.
|
|
1784
|
+
*
|
|
1785
|
+
* @param {string} network_code
|
|
1786
|
+
* @returns {string} Resource name string.
|
|
1787
|
+
*/
|
|
1788
|
+
defaultThirdPartyDataDeclarationPath(networkCode) {
|
|
1789
|
+
return this.pathTemplates.defaultThirdPartyDataDeclarationPathTemplate.render({
|
|
1790
|
+
network_code: networkCode,
|
|
1791
|
+
});
|
|
1792
|
+
}
|
|
1793
|
+
/**
|
|
1794
|
+
* Parse the network_code from DefaultThirdPartyDataDeclaration resource.
|
|
1795
|
+
*
|
|
1796
|
+
* @param {string} defaultThirdPartyDataDeclarationName
|
|
1797
|
+
* A fully-qualified path representing DefaultThirdPartyDataDeclaration resource.
|
|
1798
|
+
* @returns {string} A string representing the network_code.
|
|
1799
|
+
*/
|
|
1800
|
+
matchNetworkCodeFromDefaultThirdPartyDataDeclarationName(defaultThirdPartyDataDeclarationName) {
|
|
1801
|
+
return this.pathTemplates.defaultThirdPartyDataDeclarationPathTemplate.match(defaultThirdPartyDataDeclarationName).network_code;
|
|
1802
|
+
}
|
|
1532
1803
|
/**
|
|
1533
1804
|
* Return a fully-qualified deviceCapability resource name string.
|
|
1534
1805
|
*
|
|
@@ -1970,6 +2241,41 @@ class AudienceSegmentServiceClient {
|
|
|
1970
2241
|
matchMobileDeviceSubmodelFromMobileDeviceSubmodelName(mobileDeviceSubmodelName) {
|
|
1971
2242
|
return this.pathTemplates.mobileDeviceSubmodelPathTemplate.match(mobileDeviceSubmodelName).mobile_device_submodel;
|
|
1972
2243
|
}
|
|
2244
|
+
/**
|
|
2245
|
+
* Return a fully-qualified nativeStyle resource name string.
|
|
2246
|
+
*
|
|
2247
|
+
* @param {string} network_code
|
|
2248
|
+
* @param {string} native_style
|
|
2249
|
+
* @returns {string} Resource name string.
|
|
2250
|
+
*/
|
|
2251
|
+
nativeStylePath(networkCode, nativeStyle) {
|
|
2252
|
+
return this.pathTemplates.nativeStylePathTemplate.render({
|
|
2253
|
+
network_code: networkCode,
|
|
2254
|
+
native_style: nativeStyle,
|
|
2255
|
+
});
|
|
2256
|
+
}
|
|
2257
|
+
/**
|
|
2258
|
+
* Parse the network_code from NativeStyle resource.
|
|
2259
|
+
*
|
|
2260
|
+
* @param {string} nativeStyleName
|
|
2261
|
+
* A fully-qualified path representing NativeStyle resource.
|
|
2262
|
+
* @returns {string} A string representing the network_code.
|
|
2263
|
+
*/
|
|
2264
|
+
matchNetworkCodeFromNativeStyleName(nativeStyleName) {
|
|
2265
|
+
return this.pathTemplates.nativeStylePathTemplate.match(nativeStyleName)
|
|
2266
|
+
.network_code;
|
|
2267
|
+
}
|
|
2268
|
+
/**
|
|
2269
|
+
* Parse the native_style from NativeStyle resource.
|
|
2270
|
+
*
|
|
2271
|
+
* @param {string} nativeStyleName
|
|
2272
|
+
* A fully-qualified path representing NativeStyle resource.
|
|
2273
|
+
* @returns {string} A string representing the native_style.
|
|
2274
|
+
*/
|
|
2275
|
+
matchNativeStyleFromNativeStyleName(nativeStyleName) {
|
|
2276
|
+
return this.pathTemplates.nativeStylePathTemplate.match(nativeStyleName)
|
|
2277
|
+
.native_style;
|
|
2278
|
+
}
|
|
1973
2279
|
/**
|
|
1974
2280
|
* Return a fully-qualified network resource name string.
|
|
1975
2281
|
*
|
|
@@ -2698,7 +3004,7 @@ class AudienceSegmentServiceClient {
|
|
|
2698
3004
|
*/
|
|
2699
3005
|
close() {
|
|
2700
3006
|
if (this.audienceSegmentServiceStub && !this._terminated) {
|
|
2701
|
-
return this.audienceSegmentServiceStub.then(
|
|
3007
|
+
return this.audienceSegmentServiceStub.then(stub => {
|
|
2702
3008
|
this._log.info('ending gRPC channel');
|
|
2703
3009
|
this._terminated = true;
|
|
2704
3010
|
stub.close();
|