How to use the google-ads-node.UploadClickConversionsRequest 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 uploadClickConversions(conversions: Array): Promise {
        const protobufs = this.buildResources('ClickConversion', conversions) as Array

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

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