Google+ Platform

App Activities: AddActivity

This type of app activity is the generic fallback type. Use it when no other app activity type is appropriate.

Example request body

The following object represents the payload that you would send in an HTTP POST to the moments.insert method to write this type of app activity to Google on behalf of the user. See the examples to learn how to perform this task in a variety of programming languages.

{
  "type": "http://schemas.google.com/AddActivity",
  "target": {
    "url": "https://developers.google.com/+/web/snippet/examples/thing"
  }
}

Target page markup

The following table shows the minimum schema.org markup that is required to appear on your target page (target.url) to write this type of app activity.

PropertyRequirementDescriptionValid values
itemtypeRequiredThe type of the itemhttp://schema.org/Thing or subtype
nameRequiredThe title of the item
descriptionOptionalThe description of the item
imageRecommendedA thumbnail URL

Example target page

A stand-alone version of this page is published as a snippet example. The example shows the schema.org microdata that will be used to populate the snippet in the app activity.

<!DOCTYPE html>
<html>
  <head>
    <title>The Google+ Platform</title>
    <link rel="shortcut icon" href="thing.ico" />
  </head>
  <body itemscope itemtype="http://schema.org/Thing">
    <section>Name: <div itemprop="name">The Google+ Platform</div></section>
    <section>Description: <div itemprop="description">Google+ is more than just
      plus.google.com. It's about adding people to all Google products. The
      Google+ platform extends this idea, allowing you to add people to your
      products too.</div></section>
    <section>
      Thumbnail: <img itemprop="image" src="thing.png"/>
    </section>
  </body>
</html>

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.