Run the code here . It is necessary to send the execute method update.

[{"ad_id":1234567,"cpc":13.255},{"ad_id":1234568,"cpc":0},{"ad_id":1234569,"cpc":12.155}] 

This does not work:

  return API.ads.updateAds({"account_id":123456789", "data":{"ad_id":1234567,"cpc":3}, {"ad_id":1234568,"cpc":5}}); 
  • one
    unclear. even if the request was written what you are doing .... "ad_id":ххххххх does not work because xxxxxx string but not a number .... and the lines are written in quotes - Alexey Shimansky
  • Transfer here what you do, what you want to get, what you get and how you tried to bring what you got to what you want. - user207618
  • @ Alexey Shimansky updated and added, I sent the numbers, just replaced id with xxxxx - Hardc0re
  • Так не работает: - when something does not work, they usually write what they get at the output, for example, a result or an error with a description ............. You can Выполнить код можно тут. - I’m afraid this particular code with update.Ads too specific for everyone to execute it)) ... but we need output , anyway - Alexey Shimansky

0