floodlightActivities

POST /userprofiles/{userprofilesId}/floodlightActivities

Inserts a new floodlight activity.

Request

  • Base URL
    https://dfareporting.googleapis.com/dfareporting/v5
  • Auth
    OAuth 2 and OAuth 2
    Implicithttps://accounts.google.com/o/oauth2/auth
    Scopeshttps://www.googleapis.com/auth/dfatrafficking
    Authorization codehttps://accounts.google.com/o/oauth2/auth
    Token URLhttps://accounts.google.com/o/oauth2/token
    Scopeshttps://www.googleapis.com/auth/dfatrafficking
  • TypeScript
    A function with typed inputs. Its response is checked against the schema.

Path parameters

userprofilesIdstring required

Request body

accountIdstring int64

Account ID of this floodlight activity. This is a read-only field that can be left blank.

advertiserIdstring int64

Advertiser ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's advertiser or the existing activity's advertiser.

attributionEnabledboolean

Whether the activity is enabled for attribution.

cacheBustingType'JAVASCRIPT' | 'ACTIVE_SERVER_PAGE' | 'JSP' | 'PHP' | 'COLD_FUSION'

Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING.

conversionCategory'CONVERSION_CATEGORY_DEFAULT' | 'CONVERSION_CATEGORY_PURCHASE' | 'CONVERSION_CATEGORY_SIGNUP' | 'CONVERSION_CATEGORY_PAGE_VIEW' | 'CONVERSION_CATEGORY_DOWNLOAD' | 'CONVERSION_CATEGORY_ADD_TO_CART' | 'CONVERSION_CATEGORY_BEGIN_CHECKOUT' | 'CONVERSION_CATEGORY_SUBSCRIBE_PAID' | 'CONVERSION_CATEGORY_SUBMIT_LEAD_FORM' | 'CONVERSION_CATEGORY_BOOK_APPOINTMENT' | 'CONVERSION_CATEGORY_REQUEST_QUOTE' | 'CONVERSION_CATEGORY_GET_DIRECTIONS' | 'CONVERSION_CATEGORY_OUTBOUND_CLICK' | 'CONVERSION_CATEGORY_CONTACT' | 'CONVERSION_CATEGORY_QUALIFIED_LEAD' | 'CONVERSION_CATEGORY_CONVERTED_LEAD' | 'CONVERSION_CATEGORY_IN_APP_AD_REVENUE'

Required. The conversion category of the activity.

countingMethod'STANDARD_COUNTING' | 'UNIQUE_COUNTING' | 'SESSION_COUNTING' | 'TRANSACTIONS_COUNTING' | 'ITEMS_SOLD_COUNTING'

Counting method for conversions for this floodlight activity. This is a required field.

expectedUrlstring

URL where this tag will be deployed. If specified, must be less than 256 characters long.

floodlightActivityGroupIdstring int64

Floodlight activity group ID of this floodlight activity. This is a required field.

floodlightActivityGroupNamestring

Name of the associated floodlight activity group. This is a read-only field.

floodlightActivityGroupTagStringstring

Tag string of the associated floodlight activity group. This is a read-only field.

floodlightActivityGroupType'COUNTER' | 'SALE'

Type of the associated floodlight activity group. This is a read-only field.

floodlightConfigurationIdstring int64

Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration.

floodlightTagType'IFRAME' | 'IMAGE' | 'GLOBAL_SITE_TAG'

The type of Floodlight tag this activity will generate. This is a required field.

idstring int64

ID of this floodlight activity. This is a read-only, auto-generated field.

kindstring

Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivity".

namestring

Name of this floodlight activity. This is a required field. Must be less than 129 characters long and cannot contain quotes.

notesstring

General notes or implementation instructions for the tag.

secureboolean

Whether this tag should use SSL.

sslCompliantboolean

Whether the floodlight activity is SSL-compliant. This is a read-only field, its value detected by the system from the floodlight tags.

sslRequiredboolean

Whether this floodlight activity must be SSL-compliant.

status'ACTIVE' | 'ARCHIVED_AND_DISABLED' | 'ARCHIVED' | 'DISABLED_POLICY'

The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information.

subaccountIdstring int64

Subaccount ID of this floodlight activity. This is a read-only field that can be left blank.

tagFormat'HTML' | 'XHTML'

Tag format type for the floodlight activity. If left blank, the tag format will default to HTML.

tagStringstring

Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion.

userDefinedVariableTypesstring[]

List of the user-defined variables used by this conversion tag. These map to the "u[1-100]=" in the tags. Each of these can have a user defined type. Acceptable values are U1 to U100, inclusive.

Response

Successful response

accountIdstring int64

Account ID of this floodlight activity. This is a read-only field that can be left blank.

advertiserIdstring int64

Advertiser ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's advertiser or the existing activity's advertiser.

attributionEnabledboolean

Whether the activity is enabled for attribution.

cacheBustingType'JAVASCRIPT' | 'ACTIVE_SERVER_PAGE' | 'JSP' | 'PHP' | 'COLD_FUSION'

Code type used for cache busting in the generated tag. Applicable only when floodlightActivityGroupType is COUNTER and countingMethod is STANDARD_COUNTING or UNIQUE_COUNTING.

conversionCategory'CONVERSION_CATEGORY_DEFAULT' | 'CONVERSION_CATEGORY_PURCHASE' | 'CONVERSION_CATEGORY_SIGNUP' | 'CONVERSION_CATEGORY_PAGE_VIEW' | 'CONVERSION_CATEGORY_DOWNLOAD' | 'CONVERSION_CATEGORY_ADD_TO_CART' | 'CONVERSION_CATEGORY_BEGIN_CHECKOUT' | 'CONVERSION_CATEGORY_SUBSCRIBE_PAID' | 'CONVERSION_CATEGORY_SUBMIT_LEAD_FORM' | 'CONVERSION_CATEGORY_BOOK_APPOINTMENT' | 'CONVERSION_CATEGORY_REQUEST_QUOTE' | 'CONVERSION_CATEGORY_GET_DIRECTIONS' | 'CONVERSION_CATEGORY_OUTBOUND_CLICK' | 'CONVERSION_CATEGORY_CONTACT' | 'CONVERSION_CATEGORY_QUALIFIED_LEAD' | 'CONVERSION_CATEGORY_CONVERTED_LEAD' | 'CONVERSION_CATEGORY_IN_APP_AD_REVENUE'

Required. The conversion category of the activity.

countingMethod'STANDARD_COUNTING' | 'UNIQUE_COUNTING' | 'SESSION_COUNTING' | 'TRANSACTIONS_COUNTING' | 'ITEMS_SOLD_COUNTING'

Counting method for conversions for this floodlight activity. This is a required field.

expectedUrlstring

URL where this tag will be deployed. If specified, must be less than 256 characters long.

floodlightActivityGroupIdstring int64

Floodlight activity group ID of this floodlight activity. This is a required field.

floodlightActivityGroupNamestring

Name of the associated floodlight activity group. This is a read-only field.

floodlightActivityGroupTagStringstring

Tag string of the associated floodlight activity group. This is a read-only field.

floodlightActivityGroupType'COUNTER' | 'SALE'

Type of the associated floodlight activity group. This is a read-only field.

floodlightConfigurationIdstring int64

Floodlight configuration ID of this floodlight activity. If this field is left blank, the value will be copied over either from the activity group's floodlight configuration or from the existing activity's floodlight configuration.

floodlightTagType'IFRAME' | 'IMAGE' | 'GLOBAL_SITE_TAG'

The type of Floodlight tag this activity will generate. This is a required field.

idstring int64

ID of this floodlight activity. This is a read-only, auto-generated field.

kindstring

Identifies what kind of resource this is. Value: the fixed string "dfareporting#floodlightActivity".

namestring

Name of this floodlight activity. This is a required field. Must be less than 129 characters long and cannot contain quotes.

notesstring

General notes or implementation instructions for the tag.

secureboolean

Whether this tag should use SSL.

sslCompliantboolean

Whether the floodlight activity is SSL-compliant. This is a read-only field, its value detected by the system from the floodlight tags.

sslRequiredboolean

Whether this floodlight activity must be SSL-compliant.

status'ACTIVE' | 'ARCHIVED_AND_DISABLED' | 'ARCHIVED' | 'DISABLED_POLICY'

The status of the activity. This can only be set to ACTIVE or ARCHIVED_AND_DISABLED. The ARCHIVED status is no longer supported and cannot be set for Floodlight activities. The DISABLED_POLICY status indicates that a Floodlight activity is violating Google policy. Contact your account manager for more information.

subaccountIdstring int64

Subaccount ID of this floodlight activity. This is a read-only field that can be left blank.

tagFormat'HTML' | 'XHTML'

Tag format type for the floodlight activity. If left blank, the tag format will default to HTML.

tagStringstring

Value of the cat= parameter in the floodlight tag, which the ad servers use to identify the activity. This is optional: if empty, a new tag string will be generated for you. This string must be 1 to 8 characters long, with valid characters being a-z0-9[ _ ]. This tag string must also be unique among activities of the same activity group. This field is read-only after insertion.

userDefinedVariableTypesstring[]

List of the user-defined variables used by this conversion tag. These map to the "u[1-100]=" in the tags. Each of these can have a user defined type. Acceptable values are U1 to U100, inclusive.

Changes

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