organizations

POST /v1/organizations/{organizationsId}/publications/{publicationsId}/ctas

Creates a CTA.

Request

  • Base URL
    https://webcontentpublisher.googleapis.com
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/webcontentpublisher.publications.manage.system
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/webcontentpublisher.publications.manage.system

Path parameters

organizationsId, string required
publicationsId, string required

Query parameters

$.xgafv, '1' | '2'

V1 error format.

access_token, string

OAuth access token.

alt, 'json' | 'media' | 'proto'

Data format for response.

callback, string

JSONP

fields, string

Selector specifying which fields to include in a partial response.

key, string

API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.

oauth_token, string

OAuth 2.0 token for the current user.

prettyPrint, boolean

Returns response with indentations and line breaks.

quotaUser, string

Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.

uploadType, string

Legacy upload protocol for media (e.g. "media", "multipart").

upload_protocol, string

Upload protocol for media (e.g. "raw", "multipart").

ctaId, string

Optional. The unique identifier of the CTA to create. If not specified, the server will generate a random CTA ID.

Request body

Cta required

Represents a Call-To-Action (CTA) configuration for a publication.

displayName, string

Optional. The user-visible display name of the CTA (up to 40 characters). Defaults to a server-specified name based on the CTA type when omitted on creation.

name, string

Identifier. The resource name of the Cta. Format: organizations/{organization}/publications/{publication}/ctas/{cta}

newsletterConfig, NewsletterConfig

Configuration for newsletter signup calls-to-action (CTAs).

state, 'STATE_UNSPECIFIED' | 'DRAFT' | 'ACTIVE'

Optional. The current state of this CTA.

surveyConfig, SurveyConfig

Configuration for survey calls-to-action (CTAs).

type, 'TYPE_UNSPECIFIED' | 'NEWSLETTER_SIGNUP' | 'SURVEY'

Required. The type of this CTA.

Response

Successful response

Cta required

Represents a Call-To-Action (CTA) configuration for a publication.

displayName, string

Optional. The user-visible display name of the CTA (up to 40 characters). Defaults to a server-specified name based on the CTA type when omitted on creation.

name, string

Identifier. The resource name of the Cta. Format: organizations/{organization}/publications/{publication}/ctas/{cta}

newsletterConfig, NewsletterConfig

Configuration for newsletter signup calls-to-action (CTAs).

state, 'STATE_UNSPECIFIED' | 'DRAFT' | 'ACTIVE'

Optional. The current state of this CTA.

surveyConfig, SurveyConfig

Configuration for survey calls-to-action (CTAs).

type, 'TYPE_UNSPECIFIED' | 'NEWSLETTER_SIGNUP' | 'SURVEY'

Required. The type of this CTA.

Changes

No recorded changes to this operation across all 7 revisions of this API.