API request - Budget change

47 views
Skip to first unread message

Deniz Yücel

unread,
May 5, 2025, 5:02:29 AMMay 5
to Outbrain-AmplifyApi
Hey,

i am working on an automatic budget updater for our Outbrain campaigns and i want to make a PUT request where i am using https://api.outbrain.com/amplify/v0.1/budgets/{{1.`0`}} URL where the "{{1.`0`}}" is budget ID retrieved from Outbrain. And the body i send is (1.`3` is new budget amount):
{
  "budget": {
    "amount": {{1.`3`}}, 
    "type": "DAILY"
  }
}
However i cannot get to succeed here, could you help me with how i can make budget update requests to the system?

Thank you so much!

Best,
Deniz

kaja.gros

unread,
May 5, 2025, 9:16:44 AMMay 5
to Outbrain-AmplifyApi
Hi Deniz,

You'll need to modify the body slightly for the update to be successful. It should be structured like this:

{
  "amount": {{your_new_budget}},
  "type": "DAILY"
}

Remember to replace {{your_new_budget}} with your desired value.

Best,
Kaja

Deniz Yücel

unread,
May 7, 2025, 6:33:00 AMMay 7
to kaja.gros, Outbrain-AmplifyApi
Hey Kaja,

Thank you so much for your return! I am still getting errors and therefore I wanted to ask if my url is correct or how I put the OB Token for authorization.
Here is my request URL: https://api.outbrain.com/amplify/v0.1/campaigns/X/budget - I am not sure if the X should be campaign ID or budget ID
And as addition, 
my Header name: Authorization 
Header body: OB-TOKEN-V1 <value>

Thank you so much and wish you a nice day!

Best,
Deniz

--
You received this message because you are subscribed to the Google Groups "Outbrain-AmplifyApi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to outbrain-amplif...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/outbrain-amplifyapi/1a9c978c-dd56-4a4a-a809-ecbd3837a928n%40googlegroups.com.


--

Deniz Yücel
Digital Campaign Specialist

shopfully.com
Follow us on LinkedIn

Notice. The information contained in this message is intended only for use of the individuals named above. The message may contain confidential, proprietary or legally privileged information. If you are not the intended recipient of this message, you must not use, disseminate or copy it in any form or take any action in reliance of it. If you have received this message in error, please delete it and notify the sender immediately. This e-mail address is not a private address and, therefore, its use is regulated.

kaja.gros

unread,
May 7, 2025, 7:53:17 AMMay 7
to Outbrain-AmplifyApi
Hi Deniz,

You should try this request URL, where X is budget ID: https://api.outbrain.com/amplify/v0.1/budgets/X
The OB Token for authorisation appears to be correct. I am using Postman where, in the Headers, the key is OB-TOKEN-V1, and the value is the token. Let me know if the errors still occur.

Best,
Kaja

Deniz Yücel

unread,
May 7, 2025, 10:55:28 AMMay 7
to kaja.gros, Outbrain-AmplifyApi
Hey Kaja,

This works perfectly! Thank you so much for your help🙏🙏 I would have a final additional question and would it be possible to update cpc as well adding to this body "{
  "amount": {{your_new_budget}},
  "type": "DAILY"
} "
Thank you so much again and wish you a great evening!

Best,
Deniz

kaja.gros

unread,
May 9, 2025, 4:36:21 AMMay 9
to Outbrain-AmplifyApi
Hi Deniz,

To update the CPC, you'll need to initiate an additional request to this endpoint. Include the new CPC value in the request body, formatted as follows:
{
  "cpc": {{new_cpc}}
}

Best,
Kaja


Deniz Yücel

unread,
Sep 22, 2025, 8:04:28 AMSep 22
to kaja.gros, Outbrain-AmplifyApi
Hi Kaja,

Hope you are well! Thanks a lot again for all your help, I wanted to ask something. Recently I got errors for my cpc change request and it says it has a malfunctioned request body, is there any change in your system that I need to send to a different body? Thank you so much!
{
  "cpc": {{new_cpc}}
}

Best regards,
Deniz 

kaja.gros

unread,
Sep 22, 2025, 8:44:13 AMSep 22
to Outbrain-AmplifyApi
Hi Deniz,

I noticed I did not send the endpoint you should be calling when trying to update the cpc, so just to be on the same page, it is this one. And if that is the one you use, I'm not aware of any changes in our system regarding the cpc change. Could you send me some screenshots of the error and the setup of the call you have on your side (including full body and endpoint you are calling). 

Best regards,
Kaja
Reply all
Reply to author
Forward
0 new messages