Activate and deactivate adverts

Activate ads

You can activate ads that have been deactivated using the request below. This operation is equivalent to clicking on “restore” in the Inactive tab on the portal’s my account.


curl --location --request POST 'https://api.olxgroup.com/advert/v1/<UUID>/activate'\
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <YOUR API KEY>' \
--header 'Authorization: Bearer <ACCESS TOKEN>' \
--header 'User-Agent: <CRM NAME>'

Note that you can activate only ads that:

  • Have been deactivated through the deactivate endpoint
  • Have been deactivated by the user on the portal

Deactivate ads

You can deactivate any active ad using the request below:


curl --location --request POST 'https://api.olxgroup.com/advert/v1/<UUID>/deactivate'\
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <YOUR API KEY>' \
--header 'Authorization: Bearer <ACCESS TOKEN>' \
--header 'User-Agent: <CRM NAME>'

Notifications

Activating and deactivating ads change their status and therefore generate lifecycle events.

Check out the relevant notifications for these events here on the Advert lifecycle page.