Unfortunately whenan object becomes lodged in the intestines and nothing is passing through it, then nothing given by mouth will reach theforeign object because the intestinals go through a process called lieus, where nothing is moving. Therefore the only fix in that situation is surgical removal of the foreign object. You know that your pet is expereincing ileus if they are excessively vomiting (even water), forming little to no stools, are extremely lethargic, and dilated loops of intestines are seen on their abdominal radiograph.
If it is a partial obstruction, then you can try feeding your pet 1/2-1 slice of high fiber bread and taking them on short 30 minute brisk walks twice a day to encourage GI motility. No oral oils are recommended because of the high risk of aspiration pneumonia. Oils don’t go down the mouth very well in dogs.
I hope this helps answer your question and I hope that if your pet is the one affected by this that he will be able to make a full and speedy recovery. Best wishes and take care.