google-ads-node
Version:
Google Ads gRPC Client Library for Node
1 lines • 2.29 kB
JavaScript
;var grpc=require("grpc"),google_ads_googleads_v2_services_user_interest_service_pb=require("../../../../../google/ads/googleads/v2/services/user_interest_service_pb.js"),google_ads_googleads_v2_resources_user_interest_pb=require("../../../../../google/ads/googleads/v2/resources/user_interest_pb.js"),google_api_annotations_pb=require("../../../../../google/api/annotations_pb.js"),google_api_client_pb=require("../../../../../google/api/client_pb.js");function serialize_google_ads_googleads_v2_resources_UserInterest(arg){if(!(arg instanceof google_ads_googleads_v2_resources_user_interest_pb.UserInterest))throw new Error("Expected argument of type google.ads.googleads.v2.resources.UserInterest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_resources_UserInterest(buffer_arg){return google_ads_googleads_v2_resources_user_interest_pb.UserInterest.deserializeBinary(new Uint8Array(buffer_arg))}function serialize_google_ads_googleads_v2_services_GetUserInterestRequest(arg){if(!(arg instanceof google_ads_googleads_v2_services_user_interest_service_pb.GetUserInterestRequest))throw new Error("Expected argument of type google.ads.googleads.v2.services.GetUserInterestRequest");return Buffer.from(arg.serializeBinary())}function deserialize_google_ads_googleads_v2_services_GetUserInterestRequest(buffer_arg){return google_ads_googleads_v2_services_user_interest_service_pb.GetUserInterestRequest.deserializeBinary(new Uint8Array(buffer_arg))}var UserInterestServiceService=exports.UserInterestServiceService={getUserInterest:{path:"/google.ads.googleads.v2.services.UserInterestService/GetUserInterest",requestStream:!1,responseStream:!1,requestType:google_ads_googleads_v2_services_user_interest_service_pb.GetUserInterestRequest,responseType:google_ads_googleads_v2_resources_user_interest_pb.UserInterest,requestSerialize:serialize_google_ads_googleads_v2_services_GetUserInterestRequest,requestDeserialize:deserialize_google_ads_googleads_v2_services_GetUserInterestRequest,responseSerialize:serialize_google_ads_googleads_v2_resources_UserInterest,responseDeserialize:deserialize_google_ads_googleads_v2_resources_UserInterest}};exports.UserInterestServiceClient=grpc.makeGenericClientConstructor(UserInterestServiceService);