Add "Meta Description" using Blogger API v3
Vicky <[email protected]>
| Newsgroups | gmane.comp.web.blogger.api |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I’m trying to publish posts into my blog using Blogger API v3 and all is
working fine, except the “Meta Description” (also known as “Search
Description”). Using default Blogger editor I can add the meta description
to every post or page, but I cannot do this using the Blogger API v3.
Please note that I already have been enabled this option in:
*Settings » Search preferences » Meta tags » Description*
At this moment, my JavaScript code looks like this:
var article = {
title : 'Hello World',
url : 'hello-world',
content : 'This is a "Hello World" article',
labels : ['Hello', 'World']
};
gapi.client.blogger.posts.insert({
blogId : '0123456789',
resource : article
}).execute(function (response) {
console.log(response);
});
The code above publishes the specified article into my blog but without
meta description. Also I tried to use article.metaDescription and
article.customMetaData — but without any success. Also, I noticed that
method gapi.client.blogger.posts.get don’t return the meta description for
specified post.
Can anyone help me or tell me what I’m doing wrong?
Thank you!
--
You received this message because you are subscribed to the Google Groups "Blogger Developer Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/bloggerdev.
For more options, visit https://groups.google.com/d/optout.