Hopefully I'm just doing something wrong, but I've tried multiple different ways of mutating billing setups of a customer with no success.
I am able to grab the payment profiles available to the customer with paymentsAccounts.listPaymentsAccounts() but no success in creating a billing setup linked to it.
First, I tried passing billingSetups.create() an object as Visual Studio Code tells me it expects that or an array.
Ads API now returns the following error: Mutate operations must have 'create', 'update', or 'remove' specified.
Looked through the library code, figured something was up with the abstractions over the API calls since it seems the array of billing setups gets mapped to a structure the API will accept, so I tried the generic mutateResources() method instead.
But I still get the same error: Mutate operations must have 'create', 'update', or 'remove' specified.
Looked through the code again and it too seems to be mapping the operations to a different object structure before sending to the API.
Maybe I'm missing something obvious, but comparing to the documentation provided this should be working just fine?
Running in Node.js, v22.5.1, library version 16.0.0, on Windows 11.
Hopefully I'm just doing something wrong, but I've tried multiple different ways of mutating billing setups of a customer with no success. I am able to grab the payment profiles available to the customer with paymentsAccounts.listPaymentsAccounts() but no success in creating a billing setup linked to it.
First, I tried passing billingSetups.create() an object as Visual Studio Code tells me it expects that or an array.
This results in error entities.map is not a function, so I tried passing an array of objects instead.
Ads API now returns the following error: Mutate operations must have 'create', 'update', or 'remove' specified. Looked through the library code, figured something was up with the abstractions over the API calls since it seems the array of billing setups gets mapped to a structure the API will accept, so I tried the generic mutateResources() method instead.
But I still get the same error: Mutate operations must have 'create', 'update', or 'remove' specified. Looked through the code again and it too seems to be mapping the operations to a different object structure before sending to the API. Maybe I'm missing something obvious, but comparing to the documentation provided this should be working just fine?
Running in Node.js, v22.5.1, library version 16.0.0, on Windows 11.