alright, look at it this way,
now your work has been given a value. It is published which means, you have a recognition given to your work (though not directly and loudly) but still be happy.
in the future, just my suggestion, you may like to include certain clauses into you agreement/quotation and please, always have a official quotation signed.
e.g Media usage right where permission is required to be obtained from the photographer for advertising/mass publication purposed.
and always state the rights that you are giving them. this is especially important when it comes to advertising photography.
in this case, you may be commissioned to take the photos but you did not give them the rights to sell or advertise the photos. the rights can be given in form of written permission or listed in the agreement.
[Just a suggestion, maybe anyone with better legal knowledge can help to rectify any mistakes. =)]