How to use the google-ads-node.UploadCallConversionsRequest function in google-ads-node

To help you get started, we’ve selected a few google-ads-node examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Opteo / google-ads-api / src / services / conversion_upload.ts View on Github external
public async uploadCallConversions(conversions: Array): Promise {
        const protobufs = this.buildResources('CallConversion', conversions) as Array

        const request = new grpc.UploadCallConversionsRequest()
        request.setCustomerId(this.cid)
        request.setConversionsList(protobufs)
        request.setPartialFailure(true)

        const response = await this.serviceCall('uploadCallConversions', request, true)
        return response
    }