Add width and height args to embed code functions

The width and height will be inserted into the embed code.

HTTP response code in `getAd()` checked for 200. That's the only success.
The result is `null` otherwise.

Fix the single-attribute retrieval methods. They were returning `null` but
echoing the result.