google-ads-node
Version:
Google Ads gRPC Client Library for Node
1 lines • 4.33 kB
JavaScript
;var grpc=require("grpc"),google_ads_googleads_v2_services_custom_interest_service_pb=require("../../../../../google/ads/googleads/v2/services/custom_interest_service_pb.js"),google_ads_googleads_v2_resources_custom_interest_pb=require("../../../../../google/ads/googleads/v2/resources/custom_interest_pb.js"),google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js"),google_protobuf_field_mask_pb=require("google-protobuf/google/protobuf/field_mask_pb.js"),google_api_client_pb=require("../../../../../google/api/client_pb.js");function serialize_google_ads_googleads_v2_resources_CustomInterest(arg){if(!(arg instanceof google_ads_googleads_v2_resources_custom_interest_pb.CustomInterest))throw new Error("Expected argument of type google.ads.googleads.v2.resources.CustomInterest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_resources_CustomInterest(buffer_arg){return google_ads_googleads_v2_resources_custom_interest_pb.CustomInterest.deserializeBinary(new Uint8Array(buffer_arg))}function serialize_google_ads_googleads_v2_services_GetCustomInterestRequest(arg){if(!(arg instanceof google_ads_googleads_v2_services_custom_interest_service_pb.GetCustomInterestRequest))throw new Error("Expected argument of type google.ads.googleads.v2.services.GetCustomInterestRequest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_services_GetCustomInterestRequest(buffer_arg){return google_ads_googleads_v2_services_custom_interest_service_pb.GetCustomInterestRequest.deserializeBinary(new Uint8Array(buffer_arg))}function serialize_google_ads_googleads_v2_services_MutateCustomInterestsRequest(arg){if(!(arg instanceof google_ads_googleads_v2_services_custom_interest_service_pb.MutateCustomInterestsRequest))throw new Error("Expected argument of type google.ads.googleads.v2.services.MutateCustomInterestsRequest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_services_MutateCustomInterestsRequest(buffer_arg){return google_ads_googleads_v2_services_custom_interest_service_pb.MutateCustomInterestsRequest.deserializeBinary(new Uint8Array(buffer_arg))}function serialize_google_ads_googleads_v2_services_MutateCustomInterestsResponse(arg){if(!(arg instanceof google_ads_googleads_v2_services_custom_interest_service_pb.MutateCustomInterestsResponse))throw new Error("Expected argument of type google.ads.googleads.v2.services.MutateCustomInterestsResponse");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_services_MutateCustomInterestsResponse(buffer_arg){return google_ads_googleads_v2_services_custom_interest_service_pb.MutateCustomInterestsResponse.deserializeBinary(new Uint8Array(buffer_arg))}var CustomInterestServiceService=exports.CustomInterestServiceService={getCustomInterest:{path:"/google.ads.googleads.v2.services.CustomInterestService/GetCustomInterest",requestStream:!1,responseStream:!1,requestType:google_ads_googleads_v2_services_custom_interest_service_pb.GetCustomInterestRequest,responseType:google_ads_googleads_v2_resources_custom_interest_pb.CustomInterest,requestSerialize:serialize_google_ads_googleads_v2_services_GetCustomInterestRequest,requestDeserialize:deserialize_google_ads_googleads_v2_services_GetCustomInterestRequest,responseSerialize:serialize_google_ads_googleads_v2_resources_CustomInterest,responseDeserialize:deserialize_google_ads_googleads_v2_resources_CustomInterest},mutateCustomInterests:{path:"/google.ads.googleads.v2.services.CustomInterestService/MutateCustomInterests",requestStream:!1,responseStream:!1,requestType:google_ads_googleads_v2_services_custom_interest_service_pb.MutateCustomInterestsRequest,responseType:google_ads_googleads_v2_services_custom_interest_service_pb.MutateCustomInterestsResponse,requestSerialize:serialize_google_ads_googleads_v2_services_MutateCustomInterestsRequest,requestDeserialize:deserialize_google_ads_googleads_v2_services_MutateCustomInterestsRequest,responseSerialize:serialize_google_ads_googleads_v2_services_MutateCustomInterestsResponse,responseDeserialize:deserialize_google_ads_googleads_v2_services_MutateCustomInterestsResponse}};exports.CustomInterestServiceClient=grpc.makeGenericClientConstructor(CustomInterestServiceService);