Thank you.
So I was using the wrong library, that's why It wasn't working.
Unfortunately when I run an UploadOfflineConversation, i can't pass the following partial error.
Intially, I ran php .\examples\Remarketing\AddConversionAction.php --customerId XXXX
which returned New conversion action added with resource name: 'customers/XXXX/conversionActions/AAAA'
Then I ran
php .\examples\Remarketing\UploadOfflineConversion.php --customerId XXXX --conversionActionId AAAA --gclid gclid123 --conversionDateTime '2021-01-01 12:32:45-08:00' --conversionValue 1.0 --conversionCustomVariableId customVarId1 --conversionCustomVariableValue customVarValue1
which returns
[2021-06-02T05:27:10.506647+00:00] google-ads.INFO: Request made: Host: "googleads.googleapis.com", Method: "/google.ads.googleads.v7.services.ConversionUploadService/UploadClickConversions", CustomerId: XXXX, RequestId: "elftztJ9gLLJYppP-fzkyg", IsFault: 0, FaultMessage: "None" Partial failures occurred: 'Resource name 'customers/XXXX/conversionCustomVariables/customVarId1' is malformed: expected 'customers/{customer_id}/conversionCustomVariables/{ConversionCustomVariable.conversion_custom_variable_id}'., at conversions[0].custom_variables[0].conversion_custom_variable'.
I don't really want to use "conversionCustomVariableId" or "conversionCustomVariableValue" but they are required parameters, so I'm lost.
I looked in Google Ads interface without finding any clue.
I know this issue is not related to the title anymore, but since I'm still not able to complete my OfflineConversion, I thought I will add in this topic.
Thank you by advance.
Cheers
Denis